@shopify/cli 3.84.2 → 3.85.0

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 (105) hide show
  1. package/README.md +1 -1
  2. package/dist/{chokidar-KCZH6DIC.js → chokidar-TTCYG5AA.js} +5 -5
  3. package/dist/{chokidar-XPSJ2FUJ.js → chokidar-XUA2BN3J.js} +5 -5
  4. package/dist/{chunk-QS5WPZTS.js → chunk-2IA24ROR.js} +9 -8
  5. package/dist/{chunk-T2Z26YN7.js → chunk-2IEQZDJI.js} +3 -3
  6. package/dist/{chunk-MRQXBTNU.js → chunk-47CMAYQE.js} +3 -3
  7. package/dist/{chunk-M6EH6UKK.js → chunk-4JN3JAPL.js} +3 -3
  8. package/dist/{chunk-BSKQ4RKV.js → chunk-5FNCRAPA.js} +3 -3
  9. package/dist/{chunk-L5OKA4W4.js → chunk-76S5M67J.js} +7 -7
  10. package/dist/{chunk-DZCCH5OM.js → chunk-A26YXFMX.js} +8 -8
  11. package/dist/{chunk-YNNUWX3I.js → chunk-AJOVRT5K.js} +3 -3
  12. package/dist/{chunk-7YVG6N4O.js → chunk-AJYT5DKD.js} +2 -2
  13. package/dist/{chunk-HMDWNGIV.js → chunk-AM4QB5OM.js} +206 -100
  14. package/dist/{chunk-TAA5HGRT.js → chunk-B36FYNEM.js} +664 -587
  15. package/dist/{chunk-46YOOMEM.js → chunk-BB4VAGLH.js} +2 -2
  16. package/dist/{chunk-W5G2YPO2.js → chunk-BQ3PZIHZ.js} +7 -7
  17. package/dist/{chunk-ZBPY6YL5.js → chunk-C4XAKIGB.js} +8 -8
  18. package/dist/{chunk-AQVXNWM2.js → chunk-DJVJNSKZ.js} +2 -2
  19. package/dist/{chunk-BX2C6EVM.js → chunk-DKG2TMNN.js} +2 -2
  20. package/dist/{del-SAZHGAZZ.js → chunk-EFOOQV72.js} +17 -378
  21. package/dist/{chunk-3FBDJEGD.js → chunk-F7F4BQYW.js} +1824 -762
  22. package/dist/{chunk-66VZYBID.js → chunk-F7J5CUMZ.js} +4 -4
  23. package/dist/{chunk-KHBZ52PT.js → chunk-G2VTHDI5.js} +41 -17
  24. package/dist/{chunk-Z6MEYGAG.js → chunk-HNHQAN5R.js} +3 -3
  25. package/dist/chunk-IWFYXDPH.js +109 -0
  26. package/dist/{chunk-G74IQQ6M.js → chunk-JF6OJWJV.js} +3 -3
  27. package/dist/{chunk-UOLT7THS.js → chunk-JR35C77F.js} +3 -3
  28. package/dist/{chunk-YPRC4TK6.js → chunk-K2VBTQSL.js} +187 -43
  29. package/dist/chunk-KU6FTMKN.js +87 -0
  30. package/dist/{chunk-JHLYV5K7.js → chunk-NYUWDGSK.js} +7 -7
  31. package/dist/{chunk-OCEWRJZI.js → chunk-PUO72IWW.js} +16 -20
  32. package/dist/{chunk-ZRU5CKDG.js → chunk-T3FBGLW4.js} +4 -4
  33. package/dist/{chunk-G5R6YD27.js → chunk-UATXMR5F.js} +2 -103
  34. package/dist/{chunk-6A27UWO7.js → chunk-UGBL65P2.js} +4 -4
  35. package/dist/{chunk-RTTTZZGY.js → chunk-VELVK2EZ.js} +4 -4
  36. package/dist/{chunk-TFVMB62A.js → chunk-VLSFD7SJ.js} +19 -18
  37. package/dist/{chunk-YUI23PKV.js → chunk-WRIQTRQE.js} +2 -2
  38. package/dist/{chunk-2TBGVDDK.js → chunk-XO7GQ2WG.js} +3 -3
  39. package/dist/{chunk-6JFZSZKE.js → chunk-XTCT7ABH.js} +16379 -5792
  40. package/dist/{chunk-DCU33ZNP.js → chunk-Y4DWHLHN.js} +3 -3
  41. package/dist/{chunk-XD5EFQE2.js → chunk-Y7JIZJYE.js} +5 -5
  42. package/dist/{chunk-7UHRC35E.js → chunk-Z7TXQNKI.js} +2 -2
  43. package/dist/chunk-ZAVXS5HH.js +4654 -0
  44. package/dist/{chunk-MXDBI4PG.js → chunk-ZXKNRG53.js} +5 -5
  45. package/dist/cli/commands/auth/login.d.ts +8 -0
  46. package/dist/cli/commands/auth/login.js +28 -0
  47. package/dist/cli/commands/auth/login.test.js +53 -0
  48. package/dist/cli/commands/auth/logout.js +15 -17
  49. package/dist/cli/commands/auth/logout.test.js +20 -22
  50. package/dist/cli/commands/cache/clear.js +15 -16
  51. package/dist/cli/commands/debug/command-flags.js +15 -16
  52. package/dist/cli/commands/docs/generate.js +15 -16
  53. package/dist/cli/commands/docs/generate.test.js +21 -22
  54. package/dist/cli/commands/help.js +15 -16
  55. package/dist/cli/commands/kitchen-sink/async.js +16 -17
  56. package/dist/cli/commands/kitchen-sink/async.test.js +17 -18
  57. package/dist/cli/commands/kitchen-sink/index.js +18 -19
  58. package/dist/cli/commands/kitchen-sink/index.test.js +21 -22
  59. package/dist/cli/commands/kitchen-sink/prompts.js +16 -17
  60. package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -18
  61. package/dist/cli/commands/kitchen-sink/static.js +16 -17
  62. package/dist/cli/commands/kitchen-sink/static.test.js +17 -18
  63. package/dist/cli/commands/notifications/generate.js +16 -17
  64. package/dist/cli/commands/notifications/list.js +16 -17
  65. package/dist/cli/commands/search.js +16 -17
  66. package/dist/cli/commands/upgrade.js +16 -17
  67. package/dist/cli/commands/upgrade.test.js +1 -1
  68. package/dist/cli/commands/version.js +16 -17
  69. package/dist/cli/commands/version.test.js +17 -18
  70. package/dist/cli/services/commands/notifications.js +11 -12
  71. package/dist/cli/services/commands/search.js +7 -8
  72. package/dist/cli/services/commands/search.test.js +8 -9
  73. package/dist/cli/services/commands/version.js +8 -9
  74. package/dist/cli/services/commands/version.test.js +10 -11
  75. package/dist/cli/services/kitchen-sink/async.js +7 -8
  76. package/dist/cli/services/kitchen-sink/prompts.js +7 -8
  77. package/dist/cli/services/kitchen-sink/static.js +7 -8
  78. package/dist/cli/services/upgrade.js +8 -9
  79. package/dist/cli/services/upgrade.test.js +12 -13
  80. package/dist/configs/all.yml +3 -0
  81. package/dist/configs/recommended.yml +3 -0
  82. package/dist/{custom-oclif-loader-BBMEEF2H.js → custom-oclif-loader-J2DN7UTY.js} +11 -12
  83. package/dist/data/objects.json +2 -2
  84. package/dist/data/shopify_system_translations.json +69 -22
  85. package/dist/data/tags.json +10 -10
  86. package/dist/del-DNZ7X2HW.js +377 -0
  87. package/dist/{error-handler-734CUCMD.js → error-handler-JJ76ZQMC.js} +13 -14
  88. package/dist/hooks/postrun.js +13 -15
  89. package/dist/hooks/prerun.js +14 -15
  90. package/dist/index.d.ts +1 -1
  91. package/dist/index.js +7473 -5646
  92. package/dist/{lib-OSXFX3I2.js → lib-DEEC6IKU.js} +3 -4
  93. package/dist/{local-5AKZWHSS.js → local-2JWTG2IJ.js} +7 -8
  94. package/dist/{morph-TYIH255V.js → morph-5D7H6MU2.js} +13 -11
  95. package/dist/{node-package-manager-DMOU4DTB.js → node-package-manager-YCQL3774.js} +8 -9
  96. package/dist/{npa-E675GQOI.js → npa-LHT53SWR.js} +3 -5
  97. package/dist/tsconfig.tsbuildinfo +1 -1
  98. package/dist/{ui-JQXGLHMO.js → ui-HITLA3H3.js} +9 -8
  99. package/dist/{workerd-FTKMK3NR.js → workerd-KHWXFNPK.js} +22 -22
  100. package/oclif.manifest.json +79 -9
  101. package/package.json +10 -10
  102. package/dist/chunk-CP3BRHWK.js +0 -33
  103. package/dist/chunk-EZQWZ57B.js +0 -53
  104. package/dist/chunk-SJMHVGQ5.js +0 -119
  105. package/dist/chunk-SM7O6ZFJ.js +0 -1216
@@ -1,3 +1,18 @@
1
+ import {
2
+ require_ansi_styles,
3
+ require_brace_expansion,
4
+ require_lib,
5
+ require_semver
6
+ } from "./chunk-F7F4BQYW.js";
7
+ import {
8
+ require_has_flag
9
+ } from "./chunk-UMUTXITN.js";
10
+ import {
11
+ require_source_map
12
+ } from "./chunk-UATXMR5F.js";
13
+ import {
14
+ require_lib as require_lib2
15
+ } from "./chunk-B5EXYCV3.js";
1
16
  import {
2
17
  require_graceful_fs
3
18
  } from "./chunk-75LV6AQS.js";
@@ -10,23 +25,6 @@ import {
10
25
  relativizePath,
11
26
  sniffForPath
12
27
  } from "./chunk-EG6MBBEN.js";
13
- import {
14
- require_ansi_styles,
15
- require_lib
16
- } from "./chunk-3FBDJEGD.js";
17
- import {
18
- require_has_flag
19
- } from "./chunk-UMUTXITN.js";
20
- import {
21
- require_semver
22
- } from "./chunk-HMDWNGIV.js";
23
- import {
24
- require_brace_expansion,
25
- require_source_map
26
- } from "./chunk-G5R6YD27.js";
27
- import {
28
- require_lib as require_lib2
29
- } from "./chunk-B5EXYCV3.js";
30
28
  import {
31
29
  __commonJS,
32
30
  __esm,
@@ -5915,7 +5913,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
5915
5913
  }
5916
5914
  return dispatcher.useContext(Context);
5917
5915
  }
5918
- function useState14(initialState) {
5916
+ function useState15(initialState) {
5919
5917
  var dispatcher = resolveDispatcher();
5920
5918
  return dispatcher.useState(initialState);
5921
5919
  }
@@ -5927,7 +5925,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
5927
5925
  var dispatcher = resolveDispatcher();
5928
5926
  return dispatcher.useRef(initialValue);
5929
5927
  }
5930
- function useEffect11(create2, deps) {
5928
+ function useEffect12(create2, deps) {
5931
5929
  var dispatcher = resolveDispatcher();
5932
5930
  return dispatcher.useEffect(create2, deps);
5933
5931
  }
@@ -6456,7 +6454,7 @@ Check the top-level render call using <` + parentName + ">.");
6456
6454
  toArray,
6457
6455
  only: onlyChild
6458
6456
  };
6459
- exports.Children = Children, exports.Component = Component, exports.Fragment = REACT_FRAGMENT_TYPE, exports.Profiler = REACT_PROFILER_TYPE, exports.PureComponent = PureComponent2, exports.StrictMode = REACT_STRICT_MODE_TYPE, exports.Suspense = REACT_SUSPENSE_TYPE, exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals, exports.act = act, exports.cloneElement = cloneElement$1, exports.createContext = createContext6, exports.createElement = createElement$1, exports.createFactory = createFactory, exports.createRef = createRef, exports.forwardRef = forwardRef3, exports.isValidElement = isValidElement, exports.lazy = lazy, exports.memo = memo2, exports.startTransition = startTransition, exports.unstable_act = act, exports.useCallback = useCallback10, exports.useContext = useContext9, exports.useDebugValue = useDebugValue, exports.useDeferredValue = useDeferredValue, exports.useEffect = useEffect11, exports.useId = useId, exports.useImperativeHandle = useImperativeHandle, exports.useInsertionEffect = useInsertionEffect, exports.useLayoutEffect = useLayoutEffect6, exports.useMemo = useMemo5, exports.useReducer = useReducer2, exports.useRef = useRef5, exports.useState = useState14, exports.useSyncExternalStore = useSyncExternalStore, exports.useTransition = useTransition, exports.version = ReactVersion, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
6457
+ exports.Children = Children, exports.Component = Component, exports.Fragment = REACT_FRAGMENT_TYPE, exports.Profiler = REACT_PROFILER_TYPE, exports.PureComponent = PureComponent2, exports.StrictMode = REACT_STRICT_MODE_TYPE, exports.Suspense = REACT_SUSPENSE_TYPE, exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals, exports.act = act, exports.cloneElement = cloneElement$1, exports.createContext = createContext6, exports.createElement = createElement$1, exports.createFactory = createFactory, exports.createRef = createRef, exports.forwardRef = forwardRef3, exports.isValidElement = isValidElement, exports.lazy = lazy, exports.memo = memo2, exports.startTransition = startTransition, exports.unstable_act = act, exports.useCallback = useCallback10, exports.useContext = useContext9, exports.useDebugValue = useDebugValue, exports.useDeferredValue = useDeferredValue, exports.useEffect = useEffect12, exports.useId = useId, exports.useImperativeHandle = useImperativeHandle, exports.useInsertionEffect = useInsertionEffect, exports.useLayoutEffect = useLayoutEffect6, exports.useMemo = useMemo5, exports.useReducer = useReducer2, exports.useRef = useRef5, exports.useState = useState15, exports.useSyncExternalStore = useSyncExternalStore, exports.useTransition = useTransition, exports.version = ReactVersion, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
6460
6458
  }();
6461
6459
  }
6462
6460
  });
@@ -11255,7 +11253,7 @@ var require_react_reconciler_development = __commonJS({
11255
11253
  "use strict";
11256
11254
  init_cjs_shims();
11257
11255
  process.env.NODE_ENV !== "production" && (module.exports = function($$$hostConfig) {
11258
- var exports2 = {}, React39 = require_react(), Scheduler = require_scheduler(), ReactSharedInternals = React39.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, suppressWarning = !1;
11256
+ var exports2 = {}, React41 = require_react(), Scheduler = require_scheduler(), ReactSharedInternals = React41.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, suppressWarning = !1;
11259
11257
  function setSuppressWarning(newSuppressWarning) {
11260
11258
  suppressWarning = newSuppressWarning;
11261
11259
  }
@@ -11515,8 +11513,8 @@ var require_react_reconciler_development = __commonJS({
11515
11513
  {
11516
11514
  var owner = ReactCurrentOwner.current;
11517
11515
  if (owner !== null && owner.tag === ClassComponent) {
11518
- var ownerFiber = owner, instance2 = ownerFiber.stateNode;
11519
- instance2._warnedAboutRefsInRender || error("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", getComponentNameFromFiber(ownerFiber) || "A component"), instance2._warnedAboutRefsInRender = !0;
11516
+ var ownerFiber = owner, instance = ownerFiber.stateNode;
11517
+ instance._warnedAboutRefsInRender || error("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", getComponentNameFromFiber(ownerFiber) || "A component"), instance._warnedAboutRefsInRender = !0;
11520
11518
  }
11521
11519
  }
11522
11520
  var fiber = get(component);
@@ -11876,8 +11874,8 @@ var require_react_reconciler_development = __commonJS({
11876
11874
  }
11877
11875
  function cacheContext(workInProgress2, unmaskedContext, maskedContext) {
11878
11876
  {
11879
- var instance2 = workInProgress2.stateNode;
11880
- instance2.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, instance2.__reactInternalMemoizedMaskedChildContext = maskedContext;
11877
+ var instance = workInProgress2.stateNode;
11878
+ instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
11881
11879
  }
11882
11880
  }
11883
11881
  function getMaskedContext(workInProgress2, unmaskedContext) {
@@ -11885,9 +11883,9 @@ var require_react_reconciler_development = __commonJS({
11885
11883
  var type = workInProgress2.type, contextTypes = type.contextTypes;
11886
11884
  if (!contextTypes)
11887
11885
  return emptyContextObject;
11888
- var instance2 = workInProgress2.stateNode;
11889
- if (instance2 && instance2.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext)
11890
- return instance2.__reactInternalMemoizedMaskedChildContext;
11886
+ var instance = workInProgress2.stateNode;
11887
+ if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext)
11888
+ return instance.__reactInternalMemoizedMaskedChildContext;
11891
11889
  var context = {};
11892
11890
  for (var key in contextTypes)
11893
11891
  context[key] = unmaskedContext[key];
@@ -11895,7 +11893,7 @@ var require_react_reconciler_development = __commonJS({
11895
11893
  var name = getComponentNameFromFiber(workInProgress2) || "Unknown";
11896
11894
  checkPropTypes(contextTypes, context, "context", name);
11897
11895
  }
11898
- return instance2 && cacheContext(workInProgress2, unmaskedContext, context), context;
11896
+ return instance && cacheContext(workInProgress2, unmaskedContext, context), context;
11899
11897
  }
11900
11898
  }
11901
11899
  function hasContextChanged() {
@@ -11922,15 +11920,15 @@ var require_react_reconciler_development = __commonJS({
11922
11920
  }
11923
11921
  function processChildContext(fiber, type, parentContext) {
11924
11922
  {
11925
- var instance2 = fiber.stateNode, childContextTypes = type.childContextTypes;
11926
- if (typeof instance2.getChildContext != "function") {
11923
+ var instance = fiber.stateNode, childContextTypes = type.childContextTypes;
11924
+ if (typeof instance.getChildContext != "function") {
11927
11925
  {
11928
11926
  var componentName = getComponentNameFromFiber(fiber) || "Unknown";
11929
11927
  warnedAboutMissingGetChildContext[componentName] || (warnedAboutMissingGetChildContext[componentName] = !0, error("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.", componentName, componentName));
11930
11928
  }
11931
11929
  return parentContext;
11932
11930
  }
11933
- var childContext = instance2.getChildContext();
11931
+ var childContext = instance.getChildContext();
11934
11932
  for (var contextKey in childContext)
11935
11933
  if (!(contextKey in childContextTypes))
11936
11934
  throw new Error((getComponentNameFromFiber(fiber) || "Unknown") + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.');
@@ -11943,18 +11941,18 @@ var require_react_reconciler_development = __commonJS({
11943
11941
  }
11944
11942
  function pushContextProvider(workInProgress2) {
11945
11943
  {
11946
- var instance2 = workInProgress2.stateNode, memoizedMergedChildContext = instance2 && instance2.__reactInternalMemoizedMergedChildContext || emptyContextObject;
11944
+ var instance = workInProgress2.stateNode, memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;
11947
11945
  return previousContext = contextStackCursor.current, push(contextStackCursor, memoizedMergedChildContext, workInProgress2), push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress2), !0;
11948
11946
  }
11949
11947
  }
11950
11948
  function invalidateContextProvider(workInProgress2, type, didChange) {
11951
11949
  {
11952
- var instance2 = workInProgress2.stateNode;
11953
- if (!instance2)
11950
+ var instance = workInProgress2.stateNode;
11951
+ if (!instance)
11954
11952
  throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");
11955
11953
  if (didChange) {
11956
11954
  var mergedContext = processChildContext(workInProgress2, type, previousContext);
11957
- instance2.__reactInternalMemoizedMergedChildContext = mergedContext, pop(didPerformWorkStackCursor, workInProgress2), pop(contextStackCursor, workInProgress2), push(contextStackCursor, mergedContext, workInProgress2), push(didPerformWorkStackCursor, didChange, workInProgress2);
11955
+ instance.__reactInternalMemoizedMergedChildContext = mergedContext, pop(didPerformWorkStackCursor, workInProgress2), pop(contextStackCursor, workInProgress2), push(contextStackCursor, mergedContext, workInProgress2), push(didPerformWorkStackCursor, didChange, workInProgress2);
11958
11956
  } else
11959
11957
  pop(didPerformWorkStackCursor, workInProgress2), push(didPerformWorkStackCursor, didChange, workInProgress2);
11960
11958
  }
@@ -12761,10 +12759,10 @@ var require_react_reconciler_development = __commonJS({
12761
12759
  function reenterHydrationStateFromDehydratedSuspenseInstance(fiber, suspenseInstance, treeContext) {
12762
12760
  return supportsHydration ? (nextHydratableInstance = getFirstHydratableChildWithinSuspenseInstance(suspenseInstance), hydrationParentFiber = fiber, isHydrating = !0, hydrationErrors = null, didSuspendOrErrorDEV = !1, treeContext !== null && restoreSuspendedTreeContext(fiber, treeContext), !0) : !1;
12763
12761
  }
12764
- function warnUnhydratedInstance(returnFiber, instance2) {
12762
+ function warnUnhydratedInstance(returnFiber, instance) {
12765
12763
  switch (returnFiber.tag) {
12766
12764
  case HostRoot: {
12767
- didNotHydrateInstanceWithinContainer(returnFiber.stateNode.containerInfo, instance2);
12765
+ didNotHydrateInstanceWithinContainer(returnFiber.stateNode.containerInfo, instance);
12768
12766
  break;
12769
12767
  }
12770
12768
  case HostComponent: {
@@ -12773,7 +12771,7 @@ var require_react_reconciler_development = __commonJS({
12773
12771
  returnFiber.type,
12774
12772
  returnFiber.memoizedProps,
12775
12773
  returnFiber.stateNode,
12776
- instance2,
12774
+ instance,
12777
12775
  // TODO: Delete this argument when we remove the legacy root API.
12778
12776
  isConcurrentMode
12779
12777
  );
@@ -12781,15 +12779,15 @@ var require_react_reconciler_development = __commonJS({
12781
12779
  }
12782
12780
  case SuspenseComponent: {
12783
12781
  var suspenseState = returnFiber.memoizedState;
12784
- suspenseState.dehydrated !== null && didNotHydrateInstanceWithinSuspenseInstance(suspenseState.dehydrated, instance2);
12782
+ suspenseState.dehydrated !== null && didNotHydrateInstanceWithinSuspenseInstance(suspenseState.dehydrated, instance);
12785
12783
  break;
12786
12784
  }
12787
12785
  }
12788
12786
  }
12789
- function deleteHydratableInstance(returnFiber, instance2) {
12790
- warnUnhydratedInstance(returnFiber, instance2);
12787
+ function deleteHydratableInstance(returnFiber, instance) {
12788
+ warnUnhydratedInstance(returnFiber, instance);
12791
12789
  var childToDelete = createFiberFromHostInstanceForDeletion();
12792
- childToDelete.stateNode = instance2, childToDelete.return = returnFiber;
12790
+ childToDelete.stateNode = instance, childToDelete.return = returnFiber;
12793
12791
  var deletions = returnFiber.deletions;
12794
12792
  deletions === null ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= ChildDeletion) : deletions.push(childToDelete);
12795
12793
  }
@@ -12878,8 +12876,8 @@ var require_react_reconciler_development = __commonJS({
12878
12876
  function tryHydrate(fiber, nextInstance) {
12879
12877
  switch (fiber.tag) {
12880
12878
  case HostComponent: {
12881
- var type = fiber.type, props = fiber.pendingProps, instance2 = canHydrateInstance(nextInstance, type, props);
12882
- return instance2 !== null ? (fiber.stateNode = instance2, hydrationParentFiber = fiber, nextHydratableInstance = getFirstHydratableChild(instance2), !0) : !1;
12879
+ var type = fiber.type, props = fiber.pendingProps, instance = canHydrateInstance(nextInstance, type, props);
12880
+ return instance !== null ? (fiber.stateNode = instance, hydrationParentFiber = fiber, nextHydratableInstance = getFirstHydratableChild(instance), !0) : !1;
12883
12881
  }
12884
12882
  case HostText: {
12885
12883
  var text = fiber.pendingProps, textInstance = canHydrateTextInstance(nextInstance, text);
@@ -12931,7 +12929,7 @@ var require_react_reconciler_development = __commonJS({
12931
12929
  function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
12932
12930
  if (!supportsHydration)
12933
12931
  throw new Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");
12934
- var instance2 = fiber.stateNode, shouldWarnIfMismatchDev = !didSuspendOrErrorDEV, updatePayload = hydrateInstance(instance2, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber, shouldWarnIfMismatchDev);
12932
+ var instance = fiber.stateNode, shouldWarnIfMismatchDev = !didSuspendOrErrorDEV, updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber, shouldWarnIfMismatchDev);
12935
12933
  return fiber.updateQueue = updatePayload, updatePayload !== null;
12936
12934
  }
12937
12935
  function prepareToHydrateHostTextInstance(fiber) {
@@ -13108,11 +13106,11 @@ Error generating stack: ` + x.message + `
13108
13106
  isRendering = rendering;
13109
13107
  }
13110
13108
  var ReactStrictModeWarnings = {
13111
- recordUnsafeLifecycleWarnings: function(fiber, instance2) {
13109
+ recordUnsafeLifecycleWarnings: function(fiber, instance) {
13112
13110
  },
13113
13111
  flushPendingUnsafeLifecycleWarnings: function() {
13114
13112
  },
13115
- recordLegacyContextWarning: function(fiber, instance2) {
13113
+ recordLegacyContextWarning: function(fiber, instance) {
13116
13114
  },
13117
13115
  flushLegacyContextWarning: function() {
13118
13116
  },
@@ -13130,9 +13128,9 @@ Error generating stack: ` + x.message + `
13130
13128
  array.push(value);
13131
13129
  }), array.sort().join(", ");
13132
13130
  }, pendingComponentWillMountWarnings = [], pendingUNSAFE_ComponentWillMountWarnings = [], pendingComponentWillReceivePropsWarnings = [], pendingUNSAFE_ComponentWillReceivePropsWarnings = [], pendingComponentWillUpdateWarnings = [], pendingUNSAFE_ComponentWillUpdateWarnings = [], didWarnAboutUnsafeLifecycles = /* @__PURE__ */ new Set();
13133
- ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function(fiber, instance2) {
13134
- didWarnAboutUnsafeLifecycles.has(fiber.type) || (typeof instance2.componentWillMount == "function" && // Don't warn about react-lifecycles-compat polyfilled components.
13135
- instance2.componentWillMount.__suppressDeprecationWarning !== !0 && pendingComponentWillMountWarnings.push(fiber), fiber.mode & StrictLegacyMode && typeof instance2.UNSAFE_componentWillMount == "function" && pendingUNSAFE_ComponentWillMountWarnings.push(fiber), typeof instance2.componentWillReceiveProps == "function" && instance2.componentWillReceiveProps.__suppressDeprecationWarning !== !0 && pendingComponentWillReceivePropsWarnings.push(fiber), fiber.mode & StrictLegacyMode && typeof instance2.UNSAFE_componentWillReceiveProps == "function" && pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber), typeof instance2.componentWillUpdate == "function" && instance2.componentWillUpdate.__suppressDeprecationWarning !== !0 && pendingComponentWillUpdateWarnings.push(fiber), fiber.mode & StrictLegacyMode && typeof instance2.UNSAFE_componentWillUpdate == "function" && pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber));
13131
+ ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function(fiber, instance) {
13132
+ didWarnAboutUnsafeLifecycles.has(fiber.type) || (typeof instance.componentWillMount == "function" && // Don't warn about react-lifecycles-compat polyfilled components.
13133
+ instance.componentWillMount.__suppressDeprecationWarning !== !0 && pendingComponentWillMountWarnings.push(fiber), fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillMount == "function" && pendingUNSAFE_ComponentWillMountWarnings.push(fiber), typeof instance.componentWillReceiveProps == "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== !0 && pendingComponentWillReceivePropsWarnings.push(fiber), fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillReceiveProps == "function" && pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber), typeof instance.componentWillUpdate == "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== !0 && pendingComponentWillUpdateWarnings.push(fiber), fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillUpdate == "function" && pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber));
13136
13134
  }, ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function() {
13137
13135
  var componentWillMountUniqueNames = /* @__PURE__ */ new Set();
13138
13136
  pendingComponentWillMountWarnings.length > 0 && (pendingComponentWillMountWarnings.forEach(function(fiber) {
@@ -13212,7 +13210,7 @@ Please update the following components: %s`, _sortedNames5);
13212
13210
  }
13213
13211
  };
13214
13212
  var pendingLegacyContextWarning = /* @__PURE__ */ new Map(), didWarnAboutLegacyContext = /* @__PURE__ */ new Set();
13215
- ReactStrictModeWarnings.recordLegacyContextWarning = function(fiber, instance2) {
13213
+ ReactStrictModeWarnings.recordLegacyContextWarning = function(fiber, instance) {
13216
13214
  var strictRoot = findStrictRoot(fiber);
13217
13215
  if (strictRoot === null) {
13218
13216
  error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");
@@ -13220,7 +13218,7 @@ Please update the following components: %s`, _sortedNames5);
13220
13218
  }
13221
13219
  if (!didWarnAboutLegacyContext.has(fiber.type)) {
13222
13220
  var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
13223
- (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance2 !== null && typeof instance2.getChildContext == "function") && (warningsForRoot === void 0 && (warningsForRoot = [], pendingLegacyContextWarning.set(strictRoot, warningsForRoot)), warningsForRoot.push(fiber));
13221
+ (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext == "function") && (warningsForRoot === void 0 && (warningsForRoot = [], pendingLegacyContextWarning.set(strictRoot, warningsForRoot)), warningsForRoot.push(fiber));
13224
13222
  }
13225
13223
  }, ReactStrictModeWarnings.flushLegacyContextWarning = function() {
13226
13224
  pendingLegacyContextWarning.forEach(function(fiberArray, strictRoot) {
@@ -13990,18 +13988,18 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13990
13988
  var lastBaseUpdate = queue.lastBaseUpdate;
13991
13989
  lastBaseUpdate === null ? queue.firstBaseUpdate = capturedUpdate : lastBaseUpdate.next = capturedUpdate, queue.lastBaseUpdate = capturedUpdate;
13992
13990
  }
13993
- function getStateFromUpdate(workInProgress2, queue, update, prevState, nextProps, instance2) {
13991
+ function getStateFromUpdate(workInProgress2, queue, update, prevState, nextProps, instance) {
13994
13992
  switch (update.tag) {
13995
13993
  case ReplaceState: {
13996
13994
  var payload = update.payload;
13997
13995
  if (typeof payload == "function") {
13998
13996
  enterDisallowedContextReadInDEV();
13999
- var nextState = payload.call(instance2, prevState, nextProps);
13997
+ var nextState = payload.call(instance, prevState, nextProps);
14000
13998
  {
14001
13999
  if (workInProgress2.mode & StrictLegacyMode) {
14002
14000
  setIsStrictModeForDevtools(!0);
14003
14001
  try {
14004
- payload.call(instance2, prevState, nextProps);
14002
+ payload.call(instance, prevState, nextProps);
14005
14003
  } finally {
14006
14004
  setIsStrictModeForDevtools(!1);
14007
14005
  }
@@ -14018,12 +14016,12 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
14018
14016
  case UpdateState: {
14019
14017
  var _payload = update.payload, partialState;
14020
14018
  if (typeof _payload == "function") {
14021
- enterDisallowedContextReadInDEV(), partialState = _payload.call(instance2, prevState, nextProps);
14019
+ enterDisallowedContextReadInDEV(), partialState = _payload.call(instance, prevState, nextProps);
14022
14020
  {
14023
14021
  if (workInProgress2.mode & StrictLegacyMode) {
14024
14022
  setIsStrictModeForDevtools(!0);
14025
14023
  try {
14026
- _payload.call(instance2, prevState, nextProps);
14024
+ _payload.call(instance, prevState, nextProps);
14027
14025
  } finally {
14028
14026
  setIsStrictModeForDevtools(!1);
14029
14027
  }
@@ -14039,7 +14037,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
14039
14037
  }
14040
14038
  return prevState;
14041
14039
  }
14042
- function processUpdateQueue(workInProgress2, props, instance2, renderLanes2) {
14040
+ function processUpdateQueue(workInProgress2, props, instance, renderLanes2) {
14043
14041
  var queue = workInProgress2.updateQueue;
14044
14042
  hasForceUpdate = !1, currentlyProcessingQueue = queue.shared;
14045
14043
  var firstBaseUpdate = queue.firstBaseUpdate, lastBaseUpdate = queue.lastBaseUpdate, pendingQueue = queue.shared.pending;
@@ -14072,7 +14070,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
14072
14070
  };
14073
14071
  newLastBaseUpdate = newLastBaseUpdate.next = _clone;
14074
14072
  }
14075
- newState = getStateFromUpdate(workInProgress2, queue, update, newState, props, instance2);
14073
+ newState = getStateFromUpdate(workInProgress2, queue, update, newState, props, instance);
14076
14074
  var callback = update.callback;
14077
14075
  if (callback !== null && // If the update was already committed, we should not queue its
14078
14076
  // callback again.
@@ -14122,12 +14120,12 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
14122
14120
  function checkHasForceUpdateAfterProcessing() {
14123
14121
  return hasForceUpdate;
14124
14122
  }
14125
- function commitUpdateQueue(finishedWork, finishedQueue, instance2) {
14123
+ function commitUpdateQueue(finishedWork, finishedQueue, instance) {
14126
14124
  var effects = finishedQueue.effects;
14127
14125
  if (finishedQueue.effects = null, effects !== null)
14128
14126
  for (var i = 0; i < effects.length; i++) {
14129
14127
  var effect = effects[i], callback = effect.callback;
14130
- callback !== null && (effect.callback = null, callCallback(callback, instance2));
14128
+ callback !== null && (effect.callback = null, callCallback(callback, instance));
14131
14129
  }
14132
14130
  }
14133
14131
  var NO_CONTEXT = {}, contextStackCursor$1 = createCursor(NO_CONTEXT), contextFiberStackCursor = createCursor(NO_CONTEXT), rootInstanceStackCursor = createCursor(NO_CONTEXT);
@@ -15556,14 +15554,14 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
15556
15554
  }
15557
15555
  };
15558
15556
  function checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext) {
15559
- var instance2 = workInProgress2.stateNode;
15560
- if (typeof instance2.shouldComponentUpdate == "function") {
15561
- var shouldUpdate = instance2.shouldComponentUpdate(newProps, newState, nextContext);
15557
+ var instance = workInProgress2.stateNode;
15558
+ if (typeof instance.shouldComponentUpdate == "function") {
15559
+ var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
15562
15560
  {
15563
15561
  if (workInProgress2.mode & StrictLegacyMode) {
15564
15562
  setIsStrictModeForDevtools(!0);
15565
15563
  try {
15566
- shouldUpdate = instance2.shouldComponentUpdate(newProps, newState, nextContext);
15564
+ shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
15567
15565
  } finally {
15568
15566
  setIsStrictModeForDevtools(!1);
15569
15567
  }
@@ -15575,10 +15573,10 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
15575
15573
  return ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0;
15576
15574
  }
15577
15575
  function checkClassInstance(workInProgress2, ctor, newProps) {
15578
- var instance2 = workInProgress2.stateNode;
15576
+ var instance = workInProgress2.stateNode;
15579
15577
  {
15580
- var name = getComponentNameFromType(ctor) || "Component", renderPresent = instance2.render;
15581
- renderPresent || (ctor.prototype && typeof ctor.prototype.render == "function" ? error("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?", name) : error("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.", name)), instance2.getInitialState && !instance2.getInitialState.isReactClassApproved && !instance2.state && error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", name), instance2.getDefaultProps && !instance2.getDefaultProps.isReactClassApproved && error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", name), instance2.propTypes && error("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", name), instance2.contextType && error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", name), ctor.childContextTypes && !didWarnAboutLegacyContext$1.has(ctor) && // Strict Mode has its own warning for legacy context, so we can skip
15578
+ var name = getComponentNameFromType(ctor) || "Component", renderPresent = instance.render;
15579
+ renderPresent || (ctor.prototype && typeof ctor.prototype.render == "function" ? error("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?", name) : error("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.", name)), instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state && error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", name), instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved && error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", name), instance.propTypes && error("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", name), instance.contextType && error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", name), ctor.childContextTypes && !didWarnAboutLegacyContext$1.has(ctor) && // Strict Mode has its own warning for legacy context, so we can skip
15582
15580
  // this one.
15583
15581
  (workInProgress2.mode & StrictLegacyMode) === NoMode && (didWarnAboutLegacyContext$1.add(ctor), error(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
15584
15582
 
@@ -15586,15 +15584,15 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
15586
15584
  // this one.
15587
15585
  (workInProgress2.mode & StrictLegacyMode) === NoMode && (didWarnAboutLegacyContext$1.add(ctor), error(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
15588
15586
 
15589
- Learn more about this warning here: https://reactjs.org/link/legacy-context`, name)), instance2.contextTypes && error("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", name), ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor) && (didWarnAboutContextTypeAndContextTypes.add(ctor), error("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.", name)), typeof instance2.componentShouldUpdate == "function" && error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", name), ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance2.shouldComponentUpdate < "u" && error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", getComponentNameFromType(ctor) || "A pure component"), typeof instance2.componentDidUnmount == "function" && error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", name), typeof instance2.componentDidReceiveProps == "function" && error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name), typeof instance2.componentWillRecieveProps == "function" && error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name), typeof instance2.UNSAFE_componentWillRecieveProps == "function" && error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name);
15590
- var hasMutatedProps = instance2.props !== newProps;
15591
- instance2.props !== void 0 && hasMutatedProps && error("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", name, name), instance2.defaultProps && error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", name, name), typeof instance2.getSnapshotBeforeUpdate == "function" && typeof instance2.componentDidUpdate != "function" && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor) && (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor), error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", getComponentNameFromType(ctor))), typeof instance2.getDerivedStateFromProps == "function" && error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", name), typeof instance2.getDerivedStateFromError == "function" && error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", name), typeof ctor.getSnapshotBeforeUpdate == "function" && error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", name);
15592
- var _state = instance2.state;
15593
- _state && (typeof _state != "object" || isArray(_state)) && error("%s.state: must be set to an object or null", name), typeof instance2.getChildContext == "function" && typeof ctor.childContextTypes != "object" && error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", name);
15587
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`, name)), instance.contextTypes && error("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", name), ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor) && (didWarnAboutContextTypeAndContextTypes.add(ctor), error("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.", name)), typeof instance.componentShouldUpdate == "function" && error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", name), ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate < "u" && error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", getComponentNameFromType(ctor) || "A pure component"), typeof instance.componentDidUnmount == "function" && error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", name), typeof instance.componentDidReceiveProps == "function" && error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name), typeof instance.componentWillRecieveProps == "function" && error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name), typeof instance.UNSAFE_componentWillRecieveProps == "function" && error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name);
15588
+ var hasMutatedProps = instance.props !== newProps;
15589
+ instance.props !== void 0 && hasMutatedProps && error("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", name, name), instance.defaultProps && error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", name, name), typeof instance.getSnapshotBeforeUpdate == "function" && typeof instance.componentDidUpdate != "function" && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor) && (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor), error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", getComponentNameFromType(ctor))), typeof instance.getDerivedStateFromProps == "function" && error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", name), typeof instance.getDerivedStateFromError == "function" && error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", name), typeof ctor.getSnapshotBeforeUpdate == "function" && error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", name);
15590
+ var _state = instance.state;
15591
+ _state && (typeof _state != "object" || isArray(_state)) && error("%s.state: must be set to an object or null", name), typeof instance.getChildContext == "function" && typeof ctor.childContextTypes != "object" && error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", name);
15594
15592
  }
15595
15593
  }
15596
- function adoptClassInstance(workInProgress2, instance2) {
15597
- instance2.updater = classComponentUpdater, workInProgress2.stateNode = instance2, set(instance2, workInProgress2), instance2._reactInternalInstance = fakeInternalInstance;
15594
+ function adoptClassInstance(workInProgress2, instance) {
15595
+ instance.updater = classComponentUpdater, workInProgress2.stateNode = instance, set(instance, workInProgress2), instance._reactInternalInstance = fakeInternalInstance;
15598
15596
  }
15599
15597
  function constructClassInstance(workInProgress2, ctor, props) {
15600
15598
  var isLegacyContextConsumer = !1, unmaskedContext = emptyContextObject, context = emptyContextObject, contextType = ctor.contextType;
@@ -15616,25 +15614,25 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, na
15616
15614
  var contextTypes = ctor.contextTypes;
15617
15615
  isLegacyContextConsumer = contextTypes != null, context = isLegacyContextConsumer ? getMaskedContext(workInProgress2, unmaskedContext) : emptyContextObject;
15618
15616
  }
15619
- var instance2 = new ctor(props, context);
15617
+ var instance = new ctor(props, context);
15620
15618
  if (workInProgress2.mode & StrictLegacyMode) {
15621
15619
  setIsStrictModeForDevtools(!0);
15622
15620
  try {
15623
- instance2 = new ctor(props, context);
15621
+ instance = new ctor(props, context);
15624
15622
  } finally {
15625
15623
  setIsStrictModeForDevtools(!1);
15626
15624
  }
15627
15625
  }
15628
- var state = workInProgress2.memoizedState = instance2.state !== null && instance2.state !== void 0 ? instance2.state : null;
15629
- adoptClassInstance(workInProgress2, instance2);
15626
+ var state = workInProgress2.memoizedState = instance.state !== null && instance.state !== void 0 ? instance.state : null;
15627
+ adoptClassInstance(workInProgress2, instance);
15630
15628
  {
15631
15629
  if (typeof ctor.getDerivedStateFromProps == "function" && state === null) {
15632
15630
  var componentName = getComponentNameFromType(ctor) || "Component";
15633
- didWarnAboutUninitializedState.has(componentName) || (didWarnAboutUninitializedState.add(componentName), error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", componentName, instance2.state === null ? "null" : "undefined", componentName));
15631
+ didWarnAboutUninitializedState.has(componentName) || (didWarnAboutUninitializedState.add(componentName), error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", componentName, instance.state === null ? "null" : "undefined", componentName));
15634
15632
  }
15635
- if (typeof ctor.getDerivedStateFromProps == "function" || typeof instance2.getSnapshotBeforeUpdate == "function") {
15633
+ if (typeof ctor.getDerivedStateFromProps == "function" || typeof instance.getSnapshotBeforeUpdate == "function") {
15636
15634
  var foundWillMountName = null, foundWillReceivePropsName = null, foundWillUpdateName = null;
15637
- if (typeof instance2.componentWillMount == "function" && instance2.componentWillMount.__suppressDeprecationWarning !== !0 ? foundWillMountName = "componentWillMount" : typeof instance2.UNSAFE_componentWillMount == "function" && (foundWillMountName = "UNSAFE_componentWillMount"), typeof instance2.componentWillReceiveProps == "function" && instance2.componentWillReceiveProps.__suppressDeprecationWarning !== !0 ? foundWillReceivePropsName = "componentWillReceiveProps" : typeof instance2.UNSAFE_componentWillReceiveProps == "function" && (foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"), typeof instance2.componentWillUpdate == "function" && instance2.componentWillUpdate.__suppressDeprecationWarning !== !0 ? foundWillUpdateName = "componentWillUpdate" : typeof instance2.UNSAFE_componentWillUpdate == "function" && (foundWillUpdateName = "UNSAFE_componentWillUpdate"), foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
15635
+ if (typeof instance.componentWillMount == "function" && instance.componentWillMount.__suppressDeprecationWarning !== !0 ? foundWillMountName = "componentWillMount" : typeof instance.UNSAFE_componentWillMount == "function" && (foundWillMountName = "UNSAFE_componentWillMount"), typeof instance.componentWillReceiveProps == "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== !0 ? foundWillReceivePropsName = "componentWillReceiveProps" : typeof instance.UNSAFE_componentWillReceiveProps == "function" && (foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"), typeof instance.componentWillUpdate == "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== !0 ? foundWillUpdateName = "componentWillUpdate" : typeof instance.UNSAFE_componentWillUpdate == "function" && (foundWillUpdateName = "UNSAFE_componentWillUpdate"), foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
15638
15636
  var _componentName = getComponentNameFromType(ctor) || "Component", newApiName = typeof ctor.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
15639
15637
  didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName) || (didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName), error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
15640
15638
 
@@ -15648,62 +15646,62 @@ https://reactjs.org/link/unsafe-component-lifecycles`, _componentName, newApiNam
15648
15646
  }
15649
15647
  }
15650
15648
  }
15651
- return isLegacyContextConsumer && cacheContext(workInProgress2, unmaskedContext, context), instance2;
15649
+ return isLegacyContextConsumer && cacheContext(workInProgress2, unmaskedContext, context), instance;
15652
15650
  }
15653
- function callComponentWillMount(workInProgress2, instance2) {
15654
- var oldState = instance2.state;
15655
- typeof instance2.componentWillMount == "function" && instance2.componentWillMount(), typeof instance2.UNSAFE_componentWillMount == "function" && instance2.UNSAFE_componentWillMount(), oldState !== instance2.state && (error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", getComponentNameFromFiber(workInProgress2) || "Component"), classComponentUpdater.enqueueReplaceState(instance2, instance2.state, null));
15651
+ function callComponentWillMount(workInProgress2, instance) {
15652
+ var oldState = instance.state;
15653
+ typeof instance.componentWillMount == "function" && instance.componentWillMount(), typeof instance.UNSAFE_componentWillMount == "function" && instance.UNSAFE_componentWillMount(), oldState !== instance.state && (error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", getComponentNameFromFiber(workInProgress2) || "Component"), classComponentUpdater.enqueueReplaceState(instance, instance.state, null));
15656
15654
  }
15657
- function callComponentWillReceiveProps(workInProgress2, instance2, newProps, nextContext) {
15658
- var oldState = instance2.state;
15659
- if (typeof instance2.componentWillReceiveProps == "function" && instance2.componentWillReceiveProps(newProps, nextContext), typeof instance2.UNSAFE_componentWillReceiveProps == "function" && instance2.UNSAFE_componentWillReceiveProps(newProps, nextContext), instance2.state !== oldState) {
15655
+ function callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext) {
15656
+ var oldState = instance.state;
15657
+ if (typeof instance.componentWillReceiveProps == "function" && instance.componentWillReceiveProps(newProps, nextContext), typeof instance.UNSAFE_componentWillReceiveProps == "function" && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext), instance.state !== oldState) {
15660
15658
  {
15661
15659
  var componentName = getComponentNameFromFiber(workInProgress2) || "Component";
15662
15660
  didWarnAboutStateAssignmentForComponent.has(componentName) || (didWarnAboutStateAssignmentForComponent.add(componentName), error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", componentName));
15663
15661
  }
15664
- classComponentUpdater.enqueueReplaceState(instance2, instance2.state, null);
15662
+ classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
15665
15663
  }
15666
15664
  }
15667
15665
  function mountClassInstance(workInProgress2, ctor, newProps, renderLanes2) {
15668
15666
  checkClassInstance(workInProgress2, ctor, newProps);
15669
- var instance2 = workInProgress2.stateNode;
15670
- instance2.props = newProps, instance2.state = workInProgress2.memoizedState, instance2.refs = {}, initializeUpdateQueue(workInProgress2);
15667
+ var instance = workInProgress2.stateNode;
15668
+ instance.props = newProps, instance.state = workInProgress2.memoizedState, instance.refs = {}, initializeUpdateQueue(workInProgress2);
15671
15669
  var contextType = ctor.contextType;
15672
15670
  if (typeof contextType == "object" && contextType !== null)
15673
- instance2.context = readContext(contextType);
15671
+ instance.context = readContext(contextType);
15674
15672
  else {
15675
15673
  var unmaskedContext = getUnmaskedContext(workInProgress2, ctor, !0);
15676
- instance2.context = getMaskedContext(workInProgress2, unmaskedContext);
15674
+ instance.context = getMaskedContext(workInProgress2, unmaskedContext);
15677
15675
  }
15678
15676
  {
15679
- if (instance2.state === newProps) {
15677
+ if (instance.state === newProps) {
15680
15678
  var componentName = getComponentNameFromType(ctor) || "Component";
15681
15679
  didWarnAboutDirectlyAssigningPropsToState.has(componentName) || (didWarnAboutDirectlyAssigningPropsToState.add(componentName), error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", componentName));
15682
15680
  }
15683
- workInProgress2.mode & StrictLegacyMode && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress2, instance2), ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress2, instance2);
15681
+ workInProgress2.mode & StrictLegacyMode && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress2, instance), ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress2, instance);
15684
15682
  }
15685
- instance2.state = workInProgress2.memoizedState;
15683
+ instance.state = workInProgress2.memoizedState;
15686
15684
  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
15687
- if (typeof getDerivedStateFromProps == "function" && (applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, newProps), instance2.state = workInProgress2.memoizedState), typeof ctor.getDerivedStateFromProps != "function" && typeof instance2.getSnapshotBeforeUpdate != "function" && (typeof instance2.UNSAFE_componentWillMount == "function" || typeof instance2.componentWillMount == "function") && (callComponentWillMount(workInProgress2, instance2), processUpdateQueue(workInProgress2, newProps, instance2, renderLanes2), instance2.state = workInProgress2.memoizedState), typeof instance2.componentDidMount == "function") {
15685
+ if (typeof getDerivedStateFromProps == "function" && (applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, newProps), instance.state = workInProgress2.memoizedState), typeof ctor.getDerivedStateFromProps != "function" && typeof instance.getSnapshotBeforeUpdate != "function" && (typeof instance.UNSAFE_componentWillMount == "function" || typeof instance.componentWillMount == "function") && (callComponentWillMount(workInProgress2, instance), processUpdateQueue(workInProgress2, newProps, instance, renderLanes2), instance.state = workInProgress2.memoizedState), typeof instance.componentDidMount == "function") {
15688
15686
  var fiberFlags = Update;
15689
15687
  fiberFlags |= LayoutStatic, (workInProgress2.mode & StrictEffectsMode) !== NoMode && (fiberFlags |= MountLayoutDev), workInProgress2.flags |= fiberFlags;
15690
15688
  }
15691
15689
  }
15692
15690
  function resumeMountClassInstance(workInProgress2, ctor, newProps, renderLanes2) {
15693
- var instance2 = workInProgress2.stateNode, oldProps = workInProgress2.memoizedProps;
15694
- instance2.props = oldProps;
15695
- var oldContext = instance2.context, contextType = ctor.contextType, nextContext = emptyContextObject;
15691
+ var instance = workInProgress2.stateNode, oldProps = workInProgress2.memoizedProps;
15692
+ instance.props = oldProps;
15693
+ var oldContext = instance.context, contextType = ctor.contextType, nextContext = emptyContextObject;
15696
15694
  if (typeof contextType == "object" && contextType !== null)
15697
15695
  nextContext = readContext(contextType);
15698
15696
  else {
15699
15697
  var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress2, ctor, !0);
15700
15698
  nextContext = getMaskedContext(workInProgress2, nextLegacyUnmaskedContext);
15701
15699
  }
15702
- var getDerivedStateFromProps = ctor.getDerivedStateFromProps, hasNewLifecycles = typeof getDerivedStateFromProps == "function" || typeof instance2.getSnapshotBeforeUpdate == "function";
15703
- !hasNewLifecycles && (typeof instance2.UNSAFE_componentWillReceiveProps == "function" || typeof instance2.componentWillReceiveProps == "function") && (oldProps !== newProps || oldContext !== nextContext) && callComponentWillReceiveProps(workInProgress2, instance2, newProps, nextContext), resetHasForceUpdateBeforeProcessing();
15704
- var oldState = workInProgress2.memoizedState, newState = instance2.state = oldState;
15705
- if (processUpdateQueue(workInProgress2, newProps, instance2, renderLanes2), newState = workInProgress2.memoizedState, oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
15706
- if (typeof instance2.componentDidMount == "function") {
15700
+ var getDerivedStateFromProps = ctor.getDerivedStateFromProps, hasNewLifecycles = typeof getDerivedStateFromProps == "function" || typeof instance.getSnapshotBeforeUpdate == "function";
15701
+ !hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps == "function" || typeof instance.componentWillReceiveProps == "function") && (oldProps !== newProps || oldContext !== nextContext) && callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext), resetHasForceUpdateBeforeProcessing();
15702
+ var oldState = workInProgress2.memoizedState, newState = instance.state = oldState;
15703
+ if (processUpdateQueue(workInProgress2, newProps, instance, renderLanes2), newState = workInProgress2.memoizedState, oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
15704
+ if (typeof instance.componentDidMount == "function") {
15707
15705
  var fiberFlags = Update;
15708
15706
  fiberFlags |= LayoutStatic, (workInProgress2.mode & StrictEffectsMode) !== NoMode && (fiberFlags |= MountLayoutDev), workInProgress2.flags |= fiberFlags;
15709
15707
  }
@@ -15712,43 +15710,43 @@ https://reactjs.org/link/unsafe-component-lifecycles`, _componentName, newApiNam
15712
15710
  typeof getDerivedStateFromProps == "function" && (applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, newProps), newState = workInProgress2.memoizedState);
15713
15711
  var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext);
15714
15712
  if (shouldUpdate) {
15715
- if (!hasNewLifecycles && (typeof instance2.UNSAFE_componentWillMount == "function" || typeof instance2.componentWillMount == "function") && (typeof instance2.componentWillMount == "function" && instance2.componentWillMount(), typeof instance2.UNSAFE_componentWillMount == "function" && instance2.UNSAFE_componentWillMount()), typeof instance2.componentDidMount == "function") {
15713
+ if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount == "function" || typeof instance.componentWillMount == "function") && (typeof instance.componentWillMount == "function" && instance.componentWillMount(), typeof instance.UNSAFE_componentWillMount == "function" && instance.UNSAFE_componentWillMount()), typeof instance.componentDidMount == "function") {
15716
15714
  var _fiberFlags = Update;
15717
15715
  _fiberFlags |= LayoutStatic, (workInProgress2.mode & StrictEffectsMode) !== NoMode && (_fiberFlags |= MountLayoutDev), workInProgress2.flags |= _fiberFlags;
15718
15716
  }
15719
15717
  } else {
15720
- if (typeof instance2.componentDidMount == "function") {
15718
+ if (typeof instance.componentDidMount == "function") {
15721
15719
  var _fiberFlags2 = Update;
15722
15720
  _fiberFlags2 |= LayoutStatic, (workInProgress2.mode & StrictEffectsMode) !== NoMode && (_fiberFlags2 |= MountLayoutDev), workInProgress2.flags |= _fiberFlags2;
15723
15721
  }
15724
15722
  workInProgress2.memoizedProps = newProps, workInProgress2.memoizedState = newState;
15725
15723
  }
15726
- return instance2.props = newProps, instance2.state = newState, instance2.context = nextContext, shouldUpdate;
15724
+ return instance.props = newProps, instance.state = newState, instance.context = nextContext, shouldUpdate;
15727
15725
  }
15728
15726
  function updateClassInstance(current2, workInProgress2, ctor, newProps, renderLanes2) {
15729
- var instance2 = workInProgress2.stateNode;
15727
+ var instance = workInProgress2.stateNode;
15730
15728
  cloneUpdateQueue(current2, workInProgress2);
15731
15729
  var unresolvedOldProps = workInProgress2.memoizedProps, oldProps = workInProgress2.type === workInProgress2.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress2.type, unresolvedOldProps);
15732
- instance2.props = oldProps;
15733
- var unresolvedNewProps = workInProgress2.pendingProps, oldContext = instance2.context, contextType = ctor.contextType, nextContext = emptyContextObject;
15730
+ instance.props = oldProps;
15731
+ var unresolvedNewProps = workInProgress2.pendingProps, oldContext = instance.context, contextType = ctor.contextType, nextContext = emptyContextObject;
15734
15732
  if (typeof contextType == "object" && contextType !== null)
15735
15733
  nextContext = readContext(contextType);
15736
15734
  else {
15737
15735
  var nextUnmaskedContext = getUnmaskedContext(workInProgress2, ctor, !0);
15738
15736
  nextContext = getMaskedContext(workInProgress2, nextUnmaskedContext);
15739
15737
  }
15740
- var getDerivedStateFromProps = ctor.getDerivedStateFromProps, hasNewLifecycles = typeof getDerivedStateFromProps == "function" || typeof instance2.getSnapshotBeforeUpdate == "function";
15741
- !hasNewLifecycles && (typeof instance2.UNSAFE_componentWillReceiveProps == "function" || typeof instance2.componentWillReceiveProps == "function") && (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) && callComponentWillReceiveProps(workInProgress2, instance2, newProps, nextContext), resetHasForceUpdateBeforeProcessing();
15742
- var oldState = workInProgress2.memoizedState, newState = instance2.state = oldState;
15743
- if (processUpdateQueue(workInProgress2, newProps, instance2, renderLanes2), newState = workInProgress2.memoizedState, unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !enableLazyContextPropagation)
15744
- return typeof instance2.componentDidUpdate == "function" && (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) && (workInProgress2.flags |= Update), typeof instance2.getSnapshotBeforeUpdate == "function" && (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) && (workInProgress2.flags |= Snapshot), !1;
15738
+ var getDerivedStateFromProps = ctor.getDerivedStateFromProps, hasNewLifecycles = typeof getDerivedStateFromProps == "function" || typeof instance.getSnapshotBeforeUpdate == "function";
15739
+ !hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps == "function" || typeof instance.componentWillReceiveProps == "function") && (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) && callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext), resetHasForceUpdateBeforeProcessing();
15740
+ var oldState = workInProgress2.memoizedState, newState = instance.state = oldState;
15741
+ if (processUpdateQueue(workInProgress2, newProps, instance, renderLanes2), newState = workInProgress2.memoizedState, unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !enableLazyContextPropagation)
15742
+ return typeof instance.componentDidUpdate == "function" && (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) && (workInProgress2.flags |= Update), typeof instance.getSnapshotBeforeUpdate == "function" && (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) && (workInProgress2.flags |= Snapshot), !1;
15745
15743
  typeof getDerivedStateFromProps == "function" && (applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, newProps), newState = workInProgress2.memoizedState);
15746
15744
  var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext) || // TODO: In some cases, we'll end up checking if context has changed twice,
15747
15745
  // both before and after `shouldComponentUpdate` has been called. Not ideal,
15748
15746
  // but I'm loath to refactor this function. This only happens for memoized
15749
15747
  // components so it's not that common.
15750
15748
  enableLazyContextPropagation;
15751
- return shouldUpdate ? (!hasNewLifecycles && (typeof instance2.UNSAFE_componentWillUpdate == "function" || typeof instance2.componentWillUpdate == "function") && (typeof instance2.componentWillUpdate == "function" && instance2.componentWillUpdate(newProps, newState, nextContext), typeof instance2.UNSAFE_componentWillUpdate == "function" && instance2.UNSAFE_componentWillUpdate(newProps, newState, nextContext)), typeof instance2.componentDidUpdate == "function" && (workInProgress2.flags |= Update), typeof instance2.getSnapshotBeforeUpdate == "function" && (workInProgress2.flags |= Snapshot)) : (typeof instance2.componentDidUpdate == "function" && (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) && (workInProgress2.flags |= Update), typeof instance2.getSnapshotBeforeUpdate == "function" && (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) && (workInProgress2.flags |= Snapshot), workInProgress2.memoizedProps = newProps, workInProgress2.memoizedState = newState), instance2.props = newProps, instance2.state = newState, instance2.context = nextContext, shouldUpdate;
15749
+ return shouldUpdate ? (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate == "function" || typeof instance.componentWillUpdate == "function") && (typeof instance.componentWillUpdate == "function" && instance.componentWillUpdate(newProps, newState, nextContext), typeof instance.UNSAFE_componentWillUpdate == "function" && instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext)), typeof instance.componentDidUpdate == "function" && (workInProgress2.flags |= Update), typeof instance.getSnapshotBeforeUpdate == "function" && (workInProgress2.flags |= Snapshot)) : (typeof instance.componentDidUpdate == "function" && (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) && (workInProgress2.flags |= Update), typeof instance.getSnapshotBeforeUpdate == "function" && (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) && (workInProgress2.flags |= Snapshot), workInProgress2.memoizedProps = newProps, workInProgress2.memoizedState = newState), instance.props = newProps, instance.state = newState, instance.context = nextContext, shouldUpdate;
15752
15750
  }
15753
15751
  function createCapturedValueAtFiber(value, source) {
15754
15752
  return {
@@ -15921,8 +15919,8 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
15921
15919
  return;
15922
15920
  }
15923
15921
  case ClassComponent:
15924
- var errorInfo = value, ctor = workInProgress2.type, instance2 = workInProgress2.stateNode;
15925
- if ((workInProgress2.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError == "function" || instance2 !== null && typeof instance2.componentDidCatch == "function" && !isAlreadyFailedLegacyErrorBoundary(instance2))) {
15922
+ var errorInfo = value, ctor = workInProgress2.type, instance = workInProgress2.stateNode;
15923
+ if ((workInProgress2.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError == "function" || instance !== null && typeof instance.componentDidCatch == "function" && !isAlreadyFailedLegacyErrorBoundary(instance))) {
15926
15924
  workInProgress2.flags |= ShouldCapture;
15927
15925
  var _lane = pickArbitraryLane(rootRenderLanes);
15928
15926
  workInProgress2.lanes = mergeLanes(workInProgress2.lanes, _lane);
@@ -16170,8 +16168,8 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16170
16168
  }
16171
16169
  var hasContext;
16172
16170
  isContextProvider(Component) ? (hasContext = !0, pushContextProvider(workInProgress2)) : hasContext = !1, prepareToReadContext(workInProgress2, renderLanes2);
16173
- var instance2 = workInProgress2.stateNode, shouldUpdate;
16174
- instance2 === null ? (resetSuspendedCurrentOnMountInLegacyMode(current2, workInProgress2), constructClassInstance(workInProgress2, Component, nextProps), mountClassInstance(workInProgress2, Component, nextProps, renderLanes2), shouldUpdate = !0) : current2 === null ? shouldUpdate = resumeMountClassInstance(workInProgress2, Component, nextProps, renderLanes2) : shouldUpdate = updateClassInstance(current2, workInProgress2, Component, nextProps, renderLanes2);
16171
+ var instance = workInProgress2.stateNode, shouldUpdate;
16172
+ instance === null ? (resetSuspendedCurrentOnMountInLegacyMode(current2, workInProgress2), constructClassInstance(workInProgress2, Component, nextProps), mountClassInstance(workInProgress2, Component, nextProps, renderLanes2), shouldUpdate = !0) : current2 === null ? shouldUpdate = resumeMountClassInstance(workInProgress2, Component, nextProps, renderLanes2) : shouldUpdate = updateClassInstance(current2, workInProgress2, Component, nextProps, renderLanes2);
16175
16173
  var nextUnitOfWork = finishClassComponent(current2, workInProgress2, Component, shouldUpdate, hasContext, renderLanes2);
16176
16174
  {
16177
16175
  var inst = workInProgress2.stateNode;
@@ -16184,7 +16182,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16184
16182
  var didCaptureError = (workInProgress2.flags & DidCapture) !== NoFlags;
16185
16183
  if (!shouldUpdate && !didCaptureError)
16186
16184
  return hasContext && invalidateContextProvider(workInProgress2, Component, !1), bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2);
16187
- var instance2 = workInProgress2.stateNode;
16185
+ var instance = workInProgress2.stateNode;
16188
16186
  ReactCurrentOwner$1.current = workInProgress2;
16189
16187
  var nextChildren;
16190
16188
  if (didCaptureError && typeof Component.getDerivedStateFromError != "function")
@@ -16192,10 +16190,10 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16192
16190
  else {
16193
16191
  markComponentRenderStarted(workInProgress2);
16194
16192
  {
16195
- if (setIsRendering(!0), nextChildren = instance2.render(), workInProgress2.mode & StrictLegacyMode) {
16193
+ if (setIsRendering(!0), nextChildren = instance.render(), workInProgress2.mode & StrictLegacyMode) {
16196
16194
  setIsStrictModeForDevtools(!0);
16197
16195
  try {
16198
- instance2.render();
16196
+ instance.render();
16199
16197
  } finally {
16200
16198
  setIsStrictModeForDevtools(!1);
16201
16199
  }
@@ -16204,7 +16202,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16204
16202
  }
16205
16203
  markComponentRenderStopped();
16206
16204
  }
16207
- return workInProgress2.flags |= PerformedWork, current2 !== null && didCaptureError ? forceUnmountCurrentAndReconcile(current2, workInProgress2, nextChildren, renderLanes2) : reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2), workInProgress2.memoizedState = instance2.state, hasContext && invalidateContextProvider(workInProgress2, Component, !0), workInProgress2.child;
16205
+ return workInProgress2.flags |= PerformedWork, current2 !== null && didCaptureError ? forceUnmountCurrentAndReconcile(current2, workInProgress2, nextChildren, renderLanes2) : reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2), workInProgress2.memoizedState = instance.state, hasContext && invalidateContextProvider(workInProgress2, Component, !0), workInProgress2.child;
16208
16206
  }
16209
16207
  function pushHostRootContext(workInProgress2) {
16210
16208
  var root = workInProgress2.stateNode;
@@ -16989,7 +16987,7 @@ Check the render method of \`` + ownerName + "`.");
16989
16987
  }, updateHostComponent$1 = function(current2, workInProgress2, type, newProps, rootContainerInstance) {
16990
16988
  var oldProps = current2.memoizedProps;
16991
16989
  if (oldProps !== newProps) {
16992
- var instance2 = workInProgress2.stateNode, currentHostContext = getHostContext(), updatePayload = prepareUpdate(instance2, type, oldProps, newProps, rootContainerInstance, currentHostContext);
16990
+ var instance = workInProgress2.stateNode, currentHostContext = getHostContext(), updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
16993
16991
  workInProgress2.updateQueue = updatePayload, updatePayload && markUpdate(workInProgress2);
16994
16992
  }
16995
16993
  }, updateHostText$1 = function(current2, workInProgress2, oldText, newText) {
@@ -16999,12 +16997,12 @@ Check the render method of \`` + ownerName + "`.");
16999
16997
  appendAllChildren = function(parent, workInProgress2, needsVisibilityToggle, isHidden2) {
17000
16998
  for (var node = workInProgress2.child; node !== null; ) {
17001
16999
  if (node.tag === HostComponent) {
17002
- var instance2 = node.stateNode;
17000
+ var instance = node.stateNode;
17003
17001
  if (needsVisibilityToggle && isHidden2) {
17004
17002
  var props = node.memoizedProps, type = node.type;
17005
- instance2 = cloneHiddenInstance(instance2, type, props, node);
17003
+ instance = cloneHiddenInstance(instance, type, props, node);
17006
17004
  }
17007
- appendInitialChild(parent, instance2);
17005
+ appendInitialChild(parent, instance);
17008
17006
  } else if (node.tag === HostText) {
17009
17007
  var _instance = node.stateNode;
17010
17008
  if (needsVisibilityToggle && isHidden2) {
@@ -17034,12 +17032,12 @@ Check the render method of \`` + ownerName + "`.");
17034
17032
  var appendAllChildrenToContainer = function(containerChildSet, workInProgress2, needsVisibilityToggle, isHidden2) {
17035
17033
  for (var node = workInProgress2.child; node !== null; ) {
17036
17034
  if (node.tag === HostComponent) {
17037
- var instance2 = node.stateNode;
17035
+ var instance = node.stateNode;
17038
17036
  if (needsVisibilityToggle && isHidden2) {
17039
17037
  var props = node.memoizedProps, type = node.type;
17040
- instance2 = cloneHiddenInstance(instance2, type, props, node);
17038
+ instance = cloneHiddenInstance(instance, type, props, node);
17041
17039
  }
17042
- appendChildToContainerChildSet(containerChildSet, instance2);
17040
+ appendChildToContainerChildSet(containerChildSet, instance);
17043
17041
  } else if (node.tag === HostText) {
17044
17042
  var _instance2 = node.stateNode;
17045
17043
  if (needsVisibilityToggle && isHidden2) {
@@ -17214,8 +17212,8 @@ Check the render method of \`` + ownerName + "`.");
17214
17212
  if (_wasHydrated)
17215
17213
  prepareToHydrateHostInstance(workInProgress2, rootContainerInstance, currentHostContext) && markUpdate(workInProgress2);
17216
17214
  else {
17217
- var instance2 = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress2);
17218
- appendAllChildren(instance2, workInProgress2, !1, !1), workInProgress2.stateNode = instance2, finalizeInitialChildren(instance2, type, newProps, rootContainerInstance, currentHostContext) && markUpdate(workInProgress2);
17215
+ var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress2);
17216
+ appendAllChildren(instance, workInProgress2, !1, !1), workInProgress2.stateNode = instance, finalizeInitialChildren(instance, type, newProps, rootContainerInstance, currentHostContext) && markUpdate(workInProgress2);
17219
17217
  }
17220
17218
  workInProgress2.ref !== null && markRef$1(workInProgress2);
17221
17219
  }
@@ -17478,15 +17476,15 @@ Check the render method of \`` + ownerName + "`.");
17478
17476
  throw error2;
17479
17477
  }), clearCaughtError();
17480
17478
  }
17481
- var callComponentWillUnmountWithTimer = function(current2, instance2) {
17482
- if (instance2.props = current2.memoizedProps, instance2.state = current2.memoizedState, current2.mode & ProfileMode)
17479
+ var callComponentWillUnmountWithTimer = function(current2, instance) {
17480
+ if (instance.props = current2.memoizedProps, instance.state = current2.memoizedState, current2.mode & ProfileMode)
17483
17481
  try {
17484
- startLayoutEffectTimer(), instance2.componentWillUnmount();
17482
+ startLayoutEffectTimer(), instance.componentWillUnmount();
17485
17483
  } finally {
17486
17484
  recordLayoutEffectDuration(current2);
17487
17485
  }
17488
17486
  else
17489
- instance2.componentWillUnmount();
17487
+ instance.componentWillUnmount();
17490
17488
  };
17491
17489
  function safelyCallCommitHookLayoutEffectListMount(current2, nearestMountedAncestor) {
17492
17490
  try {
@@ -17495,16 +17493,16 @@ Check the render method of \`` + ownerName + "`.");
17495
17493
  captureCommitPhaseError(current2, nearestMountedAncestor, error2);
17496
17494
  }
17497
17495
  }
17498
- function safelyCallComponentWillUnmount(current2, nearestMountedAncestor, instance2) {
17496
+ function safelyCallComponentWillUnmount(current2, nearestMountedAncestor, instance) {
17499
17497
  try {
17500
- callComponentWillUnmountWithTimer(current2, instance2);
17498
+ callComponentWillUnmountWithTimer(current2, instance);
17501
17499
  } catch (error2) {
17502
17500
  captureCommitPhaseError(current2, nearestMountedAncestor, error2);
17503
17501
  }
17504
17502
  }
17505
- function safelyCallComponentDidMount(current2, nearestMountedAncestor, instance2) {
17503
+ function safelyCallComponentDidMount(current2, nearestMountedAncestor, instance) {
17506
17504
  try {
17507
- instance2.componentDidMount();
17505
+ instance.componentDidMount();
17508
17506
  } catch (error2) {
17509
17507
  captureCommitPhaseError(current2, nearestMountedAncestor, error2);
17510
17508
  }
@@ -17584,14 +17582,14 @@ Check the render method of \`` + ownerName + "`.");
17584
17582
  break;
17585
17583
  case ClassComponent: {
17586
17584
  if (current2 !== null) {
17587
- var prevProps = current2.memoizedProps, prevState = current2.memoizedState, instance2 = finishedWork.stateNode;
17588
- finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps && (instance2.props !== finishedWork.memoizedProps && error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), instance2.state !== finishedWork.memoizedState && error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"));
17589
- var snapshot = instance2.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
17585
+ var prevProps = current2.memoizedProps, prevState = current2.memoizedState, instance = finishedWork.stateNode;
17586
+ finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps && (instance.props !== finishedWork.memoizedProps && error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), instance.state !== finishedWork.memoizedState && error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"));
17587
+ var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
17590
17588
  {
17591
17589
  var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
17592
17590
  snapshot === void 0 && !didWarnSet.has(finishedWork.type) && (didWarnSet.add(finishedWork.type), error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", getComponentNameFromFiber(finishedWork)));
17593
17591
  }
17594
- instance2.__reactInternalSnapshotBeforeUpdate = snapshot;
17592
+ instance.__reactInternalSnapshotBeforeUpdate = snapshot;
17595
17593
  }
17596
17594
  break;
17597
17595
  }
@@ -17704,30 +17702,30 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
17704
17702
  break;
17705
17703
  }
17706
17704
  case ClassComponent: {
17707
- var instance2 = finishedWork.stateNode;
17705
+ var instance = finishedWork.stateNode;
17708
17706
  if (finishedWork.flags & Update && !offscreenSubtreeWasHidden)
17709
17707
  if (current2 === null)
17710
- if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps && (instance2.props !== finishedWork.memoizedProps && error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), instance2.state !== finishedWork.memoizedState && error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")), finishedWork.mode & ProfileMode)
17708
+ if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps && (instance.props !== finishedWork.memoizedProps && error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), instance.state !== finishedWork.memoizedState && error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")), finishedWork.mode & ProfileMode)
17711
17709
  try {
17712
- startLayoutEffectTimer(), instance2.componentDidMount();
17710
+ startLayoutEffectTimer(), instance.componentDidMount();
17713
17711
  } finally {
17714
17712
  recordLayoutEffectDuration(finishedWork);
17715
17713
  }
17716
17714
  else
17717
- instance2.componentDidMount();
17715
+ instance.componentDidMount();
17718
17716
  else {
17719
17717
  var prevProps = finishedWork.elementType === finishedWork.type ? current2.memoizedProps : resolveDefaultProps(finishedWork.type, current2.memoizedProps), prevState = current2.memoizedState;
17720
- if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps && (instance2.props !== finishedWork.memoizedProps && error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), instance2.state !== finishedWork.memoizedState && error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")), finishedWork.mode & ProfileMode)
17718
+ if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps && (instance.props !== finishedWork.memoizedProps && error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), instance.state !== finishedWork.memoizedState && error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")), finishedWork.mode & ProfileMode)
17721
17719
  try {
17722
- startLayoutEffectTimer(), instance2.componentDidUpdate(prevProps, prevState, instance2.__reactInternalSnapshotBeforeUpdate);
17720
+ startLayoutEffectTimer(), instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
17723
17721
  } finally {
17724
17722
  recordLayoutEffectDuration(finishedWork);
17725
17723
  }
17726
17724
  else
17727
- instance2.componentDidUpdate(prevProps, prevState, instance2.__reactInternalSnapshotBeforeUpdate);
17725
+ instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
17728
17726
  }
17729
17727
  var updateQueue = finishedWork.updateQueue;
17730
- updateQueue !== null && (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps && (instance2.props !== finishedWork.memoizedProps && error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), instance2.state !== finishedWork.memoizedState && error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")), commitUpdateQueue(finishedWork, updateQueue, instance2));
17728
+ updateQueue !== null && (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps && (instance.props !== finishedWork.memoizedProps && error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), instance.state !== finishedWork.memoizedState && error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")), commitUpdateQueue(finishedWork, updateQueue, instance));
17731
17729
  break;
17732
17730
  }
17733
17731
  case HostRoot: {
@@ -17815,8 +17813,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
17815
17813
  break;
17816
17814
  }
17817
17815
  case ClassComponent: {
17818
- var instance2 = node.stateNode;
17819
- typeof instance2.componentDidMount == "function" && safelyCallComponentDidMount(node, node.return, instance2), safelyAttachRef(node, node.return);
17816
+ var instance = node.stateNode;
17817
+ typeof instance.componentDidMount == "function" && safelyCallComponentDidMount(node, node.return, instance), safelyAttachRef(node, node.return);
17820
17818
  break;
17821
17819
  }
17822
17820
  case HostComponent: {
@@ -17833,8 +17831,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
17833
17831
  if (hostSubtreeRoot === null) {
17834
17832
  hostSubtreeRoot = node;
17835
17833
  try {
17836
- var instance2 = node.stateNode;
17837
- isHidden2 ? hideInstance(instance2) : unhideInstance(node.stateNode, node.memoizedProps);
17834
+ var instance = node.stateNode;
17835
+ isHidden2 ? hideInstance(instance) : unhideInstance(node.stateNode, node.memoizedProps);
17838
17836
  } catch (error2) {
17839
17837
  captureCommitPhaseError(finishedWork, finishedWork.return, error2);
17840
17838
  }
@@ -17866,13 +17864,13 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
17866
17864
  function commitAttachRef(finishedWork) {
17867
17865
  var ref = finishedWork.ref;
17868
17866
  if (ref !== null) {
17869
- var instance2 = finishedWork.stateNode, instanceToUse;
17867
+ var instance = finishedWork.stateNode, instanceToUse;
17870
17868
  switch (finishedWork.tag) {
17871
17869
  case HostComponent:
17872
- instanceToUse = getPublicInstance(instance2);
17870
+ instanceToUse = getPublicInstance(instance);
17873
17871
  break;
17874
17872
  default:
17875
- instanceToUse = instance2;
17873
+ instanceToUse = instance;
17876
17874
  }
17877
17875
  if (typeof ref == "function") {
17878
17876
  var retVal;
@@ -18069,8 +18067,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18069
18067
  case ClassComponent: {
18070
18068
  if (!offscreenSubtreeWasHidden) {
18071
18069
  safelyDetachRef(deletedFiber, nearestMountedAncestor);
18072
- var instance2 = deletedFiber.stateNode;
18073
- typeof instance2.componentWillUnmount == "function" && safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, instance2);
18070
+ var instance = deletedFiber.stateNode;
18071
+ typeof instance.componentWillUnmount == "function" && safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, instance);
18074
18072
  }
18075
18073
  recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
18076
18074
  return;
@@ -18188,9 +18186,9 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18188
18186
  case HostComponent: {
18189
18187
  if (recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), flags & Ref && current2 !== null && safelyDetachRef(current2, current2.return), supportsMutation) {
18190
18188
  if (finishedWork.flags & ContentReset) {
18191
- var instance2 = finishedWork.stateNode;
18189
+ var instance = finishedWork.stateNode;
18192
18190
  try {
18193
- resetTextContent(instance2);
18191
+ resetTextContent(instance);
18194
18192
  } catch (error2) {
18195
18193
  captureCommitPhaseError(finishedWork, finishedWork.return, error2);
18196
18194
  }
@@ -18394,8 +18392,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18394
18392
  }
18395
18393
  case ClassComponent: {
18396
18394
  safelyDetachRef(fiber, fiber.return);
18397
- var instance2 = fiber.stateNode;
18398
- typeof instance2.componentWillUnmount == "function" && safelyCallComponentWillUnmount(fiber, fiber.return, instance2);
18395
+ var instance = fiber.stateNode;
18396
+ typeof instance.componentWillUnmount == "function" && safelyCallComponentWillUnmount(fiber, fiber.return, instance);
18399
18397
  break;
18400
18398
  }
18401
18399
  case HostComponent: {
@@ -18613,9 +18611,9 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18613
18611
  break;
18614
18612
  }
18615
18613
  case ClassComponent: {
18616
- var instance2 = fiber.stateNode;
18614
+ var instance = fiber.stateNode;
18617
18615
  try {
18618
- instance2.componentDidMount();
18616
+ instance.componentDidMount();
18619
18617
  } catch (error2) {
18620
18618
  captureCommitPhaseError(fiber, fiber.return, error2);
18621
18619
  }
@@ -18650,8 +18648,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18650
18648
  break;
18651
18649
  }
18652
18650
  case ClassComponent: {
18653
- var instance2 = fiber.stateNode;
18654
- typeof instance2.componentWillUnmount == "function" && safelyCallComponentWillUnmount(fiber, fiber.return, instance2);
18651
+ var instance = fiber.stateNode;
18652
+ typeof instance.componentWillUnmount == "function" && safelyCallComponentWillUnmount(fiber, fiber.return, instance);
18655
18653
  break;
18656
18654
  }
18657
18655
  }
@@ -19501,11 +19499,11 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19501
19499
  }
19502
19500
  return !0;
19503
19501
  }
19504
- function isAlreadyFailedLegacyErrorBoundary(instance2) {
19505
- return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance2);
19502
+ function isAlreadyFailedLegacyErrorBoundary(instance) {
19503
+ return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
19506
19504
  }
19507
- function markLegacyErrorBoundaryAsFailed(instance2) {
19508
- legacyErrorBoundariesThatAlreadyFailed === null ? legacyErrorBoundariesThatAlreadyFailed = /* @__PURE__ */ new Set([instance2]) : legacyErrorBoundariesThatAlreadyFailed.add(instance2);
19505
+ function markLegacyErrorBoundaryAsFailed(instance) {
19506
+ legacyErrorBoundariesThatAlreadyFailed === null ? legacyErrorBoundariesThatAlreadyFailed = /* @__PURE__ */ new Set([instance]) : legacyErrorBoundariesThatAlreadyFailed.add(instance);
19509
19507
  }
19510
19508
  function prepareToThrowUncaughtError(error2) {
19511
19509
  hasUncaughtError || (hasUncaughtError = !0, firstUncaughtError = error2);
@@ -19526,8 +19524,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19526
19524
  captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error$1);
19527
19525
  return;
19528
19526
  } else if (fiber.tag === ClassComponent) {
19529
- var ctor = fiber.type, instance2 = fiber.stateNode;
19530
- if (typeof ctor.getDerivedStateFromError == "function" || typeof instance2.componentDidCatch == "function" && !isAlreadyFailedLegacyErrorBoundary(instance2)) {
19527
+ var ctor = fiber.type, instance = fiber.stateNode;
19528
+ if (typeof ctor.getDerivedStateFromError == "function" || typeof instance.componentDidCatch == "function" && !isAlreadyFailedLegacyErrorBoundary(instance)) {
19531
19529
  var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber), update = createClassErrorUpdate(fiber, errorInfo, SyncLane), root = enqueueUpdate(fiber, update, SyncLane), eventTime = requestEventTime();
19532
19530
  root !== null && (markRootUpdated(root, SyncLane, eventTime), ensureRootIsScheduled(root, eventTime));
19533
19531
  return;
@@ -20406,7 +20404,7 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
20406
20404
  var hostFiber = findCurrentHostFiber(fiber);
20407
20405
  return hostFiber === null ? null : hostFiber.stateNode;
20408
20406
  }
20409
- function emptyFindFiberByHostInstance(instance2) {
20407
+ function emptyFindFiberByHostInstance(instance) {
20410
20408
  return null;
20411
20409
  }
20412
20410
  function getCurrentFiberForDevTools() {
@@ -20908,36 +20906,36 @@ var require_cjs = __commonJS({
20908
20906
  var originalConstructor = this.constructor, constructorName = originalConstructor.name || function() {
20909
20907
  var constructorNameMatch = originalConstructor.toString().match(/^function\s*([^\s(]+)/);
20910
20908
  return constructorNameMatch === null ? extendableErrorName || "Error" : constructorNameMatch[1];
20911
- }(), constructorNameIsError = constructorName === "Error", name = constructorNameIsError ? extendableErrorName : constructorName, instance2 = Error.apply(this, arguments);
20912
- if (setPrototypeOf(instance2, getPrototypeOf(this)), !(instance2 instanceof originalConstructor) || !(instance2 instanceof ExtendableError2)) {
20913
- var instance2 = this;
20914
- Error.apply(this, arguments), defineProperty(instance2, "message", {
20909
+ }(), constructorNameIsError = constructorName === "Error", name = constructorNameIsError ? extendableErrorName : constructorName, instance = Error.apply(this, arguments);
20910
+ if (setPrototypeOf(instance, getPrototypeOf(this)), !(instance instanceof originalConstructor) || !(instance instanceof ExtendableError2)) {
20911
+ var instance = this;
20912
+ Error.apply(this, arguments), defineProperty(instance, "message", {
20915
20913
  configurable: !0,
20916
20914
  enumerable: !1,
20917
20915
  value: message,
20918
20916
  writable: !0
20919
20917
  });
20920
20918
  }
20921
- if (defineProperty(instance2, "name", {
20919
+ if (defineProperty(instance, "name", {
20922
20920
  configurable: !0,
20923
20921
  enumerable: !1,
20924
20922
  value: name,
20925
20923
  writable: !0
20926
20924
  }), Error.captureStackTrace && Error.captureStackTrace(
20927
- instance2,
20925
+ instance,
20928
20926
  constructorNameIsError ? ExtendableError2 : originalConstructor
20929
- ), instance2.stack === void 0) {
20927
+ ), instance.stack === void 0) {
20930
20928
  var err = new Error(message);
20931
- err.name = instance2.name, instance2.stack = err.stack;
20929
+ err.name = instance.name, instance.stack = err.stack;
20932
20930
  }
20933
- return uglyErrorPrinting && defineProperty(instance2, "toString", {
20931
+ return uglyErrorPrinting && defineProperty(instance, "toString", {
20934
20932
  configurable: !0,
20935
20933
  enumerable: !1,
20936
20934
  value: function() {
20937
20935
  return (this.name || "Error") + (typeof this.message > "u" ? "" : ": " + this.message);
20938
20936
  },
20939
20937
  writable: !0
20940
- }), instance2;
20938
+ }), instance;
20941
20939
  }
20942
20940
  extendableErrorName = ExtendableError2.name || "ExtendableError";
20943
20941
  ExtendableError2.prototype = objectCreate(Error.prototype, {
@@ -21809,36 +21807,36 @@ var require_templates = __commonJS({
21809
21807
  }
21810
21808
  return results;
21811
21809
  }
21812
- function buildStyle(chalk2, styles5) {
21810
+ function buildStyle(chalk2, styles6) {
21813
21811
  let enabled = {};
21814
- for (let layer of styles5)
21812
+ for (let layer of styles6)
21815
21813
  for (let style of layer.styles)
21816
21814
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
21817
21815
  let current = chalk2;
21818
- for (let [styleName, styles6] of Object.entries(enabled))
21819
- if (Array.isArray(styles6)) {
21816
+ for (let [styleName, styles7] of Object.entries(enabled))
21817
+ if (Array.isArray(styles7)) {
21820
21818
  if (!(styleName in current))
21821
21819
  throw new Error(`Unknown Chalk style: ${styleName}`);
21822
- current = styles6.length > 0 ? current[styleName](...styles6) : current[styleName];
21820
+ current = styles7.length > 0 ? current[styleName](...styles7) : current[styleName];
21823
21821
  }
21824
21822
  return current;
21825
21823
  }
21826
21824
  module.exports = (chalk2, temporary) => {
21827
- let styles5 = [], chunks = [], chunk = [];
21825
+ let styles6 = [], chunks = [], chunk = [];
21828
21826
  if (temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
21829
21827
  if (escapeCharacter)
21830
21828
  chunk.push(unescape3(escapeCharacter));
21831
21829
  else if (style) {
21832
21830
  let string = chunk.join("");
21833
- chunk = [], chunks.push(styles5.length === 0 ? string : buildStyle(chalk2, styles5)(string)), styles5.push({ inverse, styles: parseStyle(style) });
21831
+ chunk = [], chunks.push(styles6.length === 0 ? string : buildStyle(chalk2, styles6)(string)), styles6.push({ inverse, styles: parseStyle(style) });
21834
21832
  } else if (close) {
21835
- if (styles5.length === 0)
21833
+ if (styles6.length === 0)
21836
21834
  throw new Error("Found extraneous } in Chalk template literal");
21837
- chunks.push(buildStyle(chalk2, styles5)(chunk.join(""))), chunk = [], styles5.pop();
21835
+ chunks.push(buildStyle(chalk2, styles6)(chunk.join(""))), chunk = [], styles6.pop();
21838
21836
  } else
21839
21837
  chunk.push(character);
21840
- }), chunks.push(chunk.join("")), styles5.length > 0) {
21841
- let errMessage = `Chalk template literal is missing ${styles5.length} closing bracket${styles5.length === 1 ? "" : "s"} (\`}\`)`;
21838
+ }), chunks.push(chunk.join("")), styles6.length > 0) {
21839
+ let errMessage = `Chalk template literal is missing ${styles6.length} closing bracket${styles6.length === 1 ? "" : "s"} (\`}\`)`;
21842
21840
  throw new Error(errMessage);
21843
21841
  }
21844
21842
  return chunks.join("");
@@ -21851,7 +21849,7 @@ var require_source = __commonJS({
21851
21849
  "../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports, module) {
21852
21850
  "use strict";
21853
21851
  init_cjs_shims();
21854
- var ansiStyles3 = require_ansi_styles(), { stdout: stdoutColor2, stderr: stderrColor2 } = require_supports_color(), {
21852
+ var ansiStyles4 = require_ansi_styles(), { stdout: stdoutColor2, stderr: stderrColor2 } = require_supports_color(), {
21855
21853
  stringReplaceAll: stringReplaceAll2,
21856
21854
  stringEncaseCRLFWithFirstIndex: stringEncaseCRLFWithFirstIndex2
21857
21855
  } = require_util2(), { isArray } = Array, levelMapping2 = [
@@ -21859,7 +21857,7 @@ var require_source = __commonJS({
21859
21857
  "ansi",
21860
21858
  "ansi256",
21861
21859
  "ansi16m"
21862
- ], styles5 = /* @__PURE__ */ Object.create(null), applyOptions2 = (object, options = {}) => {
21860
+ ], styles6 = /* @__PURE__ */ Object.create(null), applyOptions2 = (object, options = {}) => {
21863
21861
  if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3))
21864
21862
  throw new Error("The `level` option should be an integer from 0 to 3");
21865
21863
  let colorLevel = stdoutColor2 ? stdoutColor2.level : 0;
@@ -21877,14 +21875,14 @@ var require_source = __commonJS({
21877
21875
  function Chalk(options) {
21878
21876
  return chalkFactory2(options);
21879
21877
  }
21880
- for (let [styleName, style] of Object.entries(ansiStyles3))
21881
- styles5[styleName] = {
21878
+ for (let [styleName, style] of Object.entries(ansiStyles4))
21879
+ styles6[styleName] = {
21882
21880
  get() {
21883
21881
  let builder = createBuilder2(this, createStyler2(style.open, style.close, this._styler), this._isEmpty);
21884
21882
  return Object.defineProperty(this, styleName, { value: builder }), builder;
21885
21883
  }
21886
21884
  };
21887
- styles5.visible = {
21885
+ styles6.visible = {
21888
21886
  get() {
21889
21887
  let builder = createBuilder2(this, this._styler, !0);
21890
21888
  return Object.defineProperty(this, "visible", { value: builder }), builder;
@@ -21892,22 +21890,22 @@ var require_source = __commonJS({
21892
21890
  };
21893
21891
  var usedModels2 = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
21894
21892
  for (let model of usedModels2)
21895
- styles5[model] = {
21893
+ styles6[model] = {
21896
21894
  get() {
21897
21895
  let { level } = this;
21898
21896
  return function(...arguments_) {
21899
- let styler = createStyler2(ansiStyles3.color[levelMapping2[level]][model](...arguments_), ansiStyles3.color.close, this._styler);
21897
+ let styler = createStyler2(ansiStyles4.color[levelMapping2[level]][model](...arguments_), ansiStyles4.color.close, this._styler);
21900
21898
  return createBuilder2(this, styler, this._isEmpty);
21901
21899
  };
21902
21900
  }
21903
21901
  };
21904
21902
  for (let model of usedModels2) {
21905
21903
  let bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
21906
- styles5[bgModel] = {
21904
+ styles6[bgModel] = {
21907
21905
  get() {
21908
21906
  let { level } = this;
21909
21907
  return function(...arguments_) {
21910
- let styler = createStyler2(ansiStyles3.bgColor[levelMapping2[level]][model](...arguments_), ansiStyles3.bgColor.close, this._styler);
21908
+ let styler = createStyler2(ansiStyles4.bgColor[levelMapping2[level]][model](...arguments_), ansiStyles4.bgColor.close, this._styler);
21911
21909
  return createBuilder2(this, styler, this._isEmpty);
21912
21910
  };
21913
21911
  }
@@ -21915,7 +21913,7 @@ var require_source = __commonJS({
21915
21913
  }
21916
21914
  var proto2 = Object.defineProperties(() => {
21917
21915
  }, {
21918
- ...styles5,
21916
+ ...styles6,
21919
21917
  level: {
21920
21918
  enumerable: !0,
21921
21919
  get() {
@@ -21962,7 +21960,7 @@ var require_source = __commonJS({
21962
21960
  );
21963
21961
  return template === void 0 && (template = require_templates()), template(chalk3, parts.join(""));
21964
21962
  };
21965
- Object.defineProperties(Chalk.prototype, styles5);
21963
+ Object.defineProperties(Chalk.prototype, styles6);
21966
21964
  var chalk2 = Chalk();
21967
21965
  chalk2.supportsColor = stdoutColor2;
21968
21966
  chalk2.stderr = Chalk({ level: stderrColor2 ? stderrColor2.level : 0 });
@@ -22989,15 +22987,169 @@ init_cjs_shims();
22989
22987
  // ../cli-kit/dist/public/node/context/local.js
22990
22988
  init_cjs_shims();
22991
22989
 
22992
- // ../cli-kit/dist/public/node/context/spin.js
22993
- init_cjs_shims();
22994
-
22995
22990
  // ../cli-kit/dist/public/node/context/utilities.js
22996
22991
  init_cjs_shims();
22997
22992
  function isTruthy(variable) {
22998
22993
  return variable ? ["1", "true", "TRUE", "yes", "YES"].includes(variable) : !1;
22999
22994
  }
23000
22995
 
22996
+ // ../cli-kit/dist/private/node/context/utilities.js
22997
+ init_cjs_shims();
22998
+ function isSet(variable) {
22999
+ return !(variable === void 0 || variable.trim() === "");
23000
+ }
23001
+ function getCIMetadata(envName, envs) {
23002
+ switch (envName) {
23003
+ case "bitbucket":
23004
+ return {
23005
+ branch: envs.BITBUCKET_BRANCH,
23006
+ build: envs.BITBUCKET_BUILD_NUMBER,
23007
+ commitSha: envs.BITBUCKET_COMMIT,
23008
+ run: envs.BITBUCKET_BUILD_NUMBER,
23009
+ url: `https://bitbucket.org/${envs.BITBUCKET_WORKSPACE}/${envs.BITBUCKET_REPO_SLUG}/pipelines/results/${envs.BITBUCKET_BUILD_NUMBER}`
23010
+ };
23011
+ case "circleci":
23012
+ return {
23013
+ actor: envs.CIRCLE_USERNAME,
23014
+ branch: envs.CIRCLE_BRANCH,
23015
+ build: envs.CIRCLE_BUILD_NUM,
23016
+ commitSha: envs.CIRCLE_SHA1,
23017
+ run: envs.CIRCLE_WORKFLOW_ID,
23018
+ url: envs.CIRCLE_BUILD_URL
23019
+ };
23020
+ case "github":
23021
+ return {
23022
+ actor: envs.GITHUB_ACTOR,
23023
+ attempt: envs.GITHUB_RUN_ATTEMPT,
23024
+ branch: envs.GITHUB_REF_NAME,
23025
+ build: envs.GITHUB_RUN_ID,
23026
+ commitSha: envs.GITHUB_SHA,
23027
+ run: envs.GITHUB_RUN_ID,
23028
+ runNumber: envs.GITHUB_RUN_NUMBER,
23029
+ url: `${envs.GITHUB_SERVER_URL}/${envs.GITHUB_REPOSITORY}/actions/runs/${envs.GITHUB_RUN_ID}`
23030
+ };
23031
+ case "gitlab":
23032
+ return {
23033
+ actor: envs.GITLAB_USER_LOGIN,
23034
+ branch: envs.CI_COMMIT_REF_NAME,
23035
+ build: envs.CI_PIPELINE_ID,
23036
+ commitSha: envs.CI_COMMIT_SHA,
23037
+ commitMessage: envs.CI_COMMIT_MESSAGE,
23038
+ run: envs.CI_RUNNER_ID,
23039
+ url: envs.CI_PIPELINE_URL
23040
+ };
23041
+ case "buildkite":
23042
+ return {
23043
+ branch: envs.BUILDKITE_BRANCH,
23044
+ build: envs.BUILDKITE_BUILD_NUMBER,
23045
+ commitSha: envs.BUILDKITE_COMMIT,
23046
+ commitMessage: envs.BUILDKITE_MESSAGE,
23047
+ run: envs.BUILDKITE_BUILD_NUMBER,
23048
+ url: envs.BUILDKITE_BUILD_URL
23049
+ };
23050
+ default:
23051
+ return {};
23052
+ }
23053
+ }
23054
+
23055
+ // ../cli-kit/dist/private/node/constants.js
23056
+ init_cjs_shims();
23057
+
23058
+ // ../../node_modules/.pnpm/env-paths@3.0.0/node_modules/env-paths/index.js
23059
+ init_cjs_shims();
23060
+ import path from "node:path";
23061
+ import os from "node:os";
23062
+ import process2 from "node:process";
23063
+ var homedir = os.homedir(), tmpdir = os.tmpdir(), { env } = process2, macos = (name) => {
23064
+ let library = path.join(homedir, "Library");
23065
+ return {
23066
+ data: path.join(library, "Application Support", name),
23067
+ config: path.join(library, "Preferences", name),
23068
+ cache: path.join(library, "Caches", name),
23069
+ log: path.join(library, "Logs", name),
23070
+ temp: path.join(tmpdir, name)
23071
+ };
23072
+ }, windows = (name) => {
23073
+ let appData = env.APPDATA || path.join(homedir, "AppData", "Roaming"), localAppData = env.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
23074
+ return {
23075
+ // Data/config/cache/log are invented by me as Windows isn't opinionated about this
23076
+ data: path.join(localAppData, name, "Data"),
23077
+ config: path.join(appData, name, "Config"),
23078
+ cache: path.join(localAppData, name, "Cache"),
23079
+ log: path.join(localAppData, name, "Log"),
23080
+ temp: path.join(tmpdir, name)
23081
+ };
23082
+ }, linux = (name) => {
23083
+ let username2 = path.basename(homedir);
23084
+ return {
23085
+ data: path.join(env.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
23086
+ config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
23087
+ cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
23088
+ // https://wiki.debian.org/XDGBaseDirectorySpecification#state
23089
+ log: path.join(env.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
23090
+ temp: path.join(tmpdir, username2, name)
23091
+ };
23092
+ };
23093
+ function envPaths(name, { suffix = "nodejs" } = {}) {
23094
+ if (typeof name != "string")
23095
+ throw new TypeError(`Expected a string, got ${typeof name}`);
23096
+ return suffix && (name += `-${suffix}`), process2.platform === "darwin" ? macos(name) : process2.platform === "win32" ? windows(name) : linux(name);
23097
+ }
23098
+
23099
+ // ../cli-kit/dist/private/node/constants.js
23100
+ var identifier = "shopify-cli", cacheFolder = () => process.env.XDG_CACHE_HOME ? process.env.XDG_CACHE_HOME : envPaths(identifier).cache;
23101
+ var environmentVariables = {
23102
+ alwaysLogAnalytics: "SHOPIFY_CLI_ALWAYS_LOG_ANALYTICS",
23103
+ alwaysLogMetrics: "SHOPIFY_CLI_ALWAYS_LOG_METRICS",
23104
+ deviceAuth: "SHOPIFY_CLI_DEVICE_AUTH",
23105
+ enableCliRedirect: "SHOPIFY_CLI_ENABLE_CLI_REDIRECT",
23106
+ env: "SHOPIFY_CLI_ENV",
23107
+ firstPartyDev: "SHOPIFY_CLI_1P_DEV",
23108
+ noAnalytics: "SHOPIFY_CLI_NO_ANALYTICS",
23109
+ partnersToken: "SHOPIFY_CLI_PARTNERS_TOKEN",
23110
+ runAsUser: "SHOPIFY_RUN_AS_USER",
23111
+ serviceEnv: "SHOPIFY_SERVICE_ENV",
23112
+ skipCliRedirect: "SHOPIFY_CLI_SKIP_CLI_REDIRECT",
23113
+ spinInstance: "SPIN_INSTANCE",
23114
+ themeToken: "SHOPIFY_CLI_THEME_TOKEN",
23115
+ unitTest: "SHOPIFY_UNIT_TEST",
23116
+ verbose: "SHOPIFY_FLAG_VERBOSE",
23117
+ // Variables to detect if the CLI is running in a cloud environment
23118
+ codespaces: "CODESPACES",
23119
+ codespaceName: "CODESPACE_NAME",
23120
+ codespacePortForwardingDomain: "GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN",
23121
+ gitpod: "GITPOD_WORKSPACE_URL",
23122
+ cloudShell: "CLOUD_SHELL",
23123
+ spinAppPort: "SERVER_PORT",
23124
+ spinAppHost: "SPIN_APP_HOST",
23125
+ organization: "SHOPIFY_CLI_ORGANIZATION",
23126
+ identityToken: "SHOPIFY_CLI_IDENTITY_TOKEN",
23127
+ refreshToken: "SHOPIFY_CLI_REFRESH_TOKEN",
23128
+ otelURL: "SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",
23129
+ themeKitAccessDomain: "SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN",
23130
+ json: "SHOPIFY_FLAG_JSON",
23131
+ neverUsePartnersApi: "SHOPIFY_CLI_NEVER_USE_PARTNERS_API",
23132
+ skipNetworkLevelRetry: "SHOPIFY_CLI_SKIP_NETWORK_LEVEL_RETRY",
23133
+ maxRequestTimeForNetworkCalls: "SHOPIFY_CLI_MAX_REQUEST_TIME_FOR_NETWORK_CALLS"
23134
+ }, defaultThemeKitAccessDomain = "theme-kit-access.shopifyapps.com", systemEnvironmentVariables = {
23135
+ backendPort: "BACKEND_PORT"
23136
+ }, pathConstants = {
23137
+ executables: {
23138
+ dev: "/opt/dev/bin/dev"
23139
+ },
23140
+ directories: {
23141
+ cache: {
23142
+ path: () => cacheFolder(),
23143
+ vendor: {
23144
+ path: () => joinPath(cacheFolder(), "vendor"),
23145
+ binaries: () => joinPath(cacheFolder(), "vendor", "binaries")
23146
+ }
23147
+ }
23148
+ }
23149
+ }, sessionConstants = {
23150
+ expirationTimeMarginInMinutes: 4
23151
+ }, bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae", reportingRateLimit = { limit: 300, timeout: { days: 1 } }, themeKitAccessDomain = process.env[environmentVariables.themeKitAccessDomain] ?? defaultThemeKitAccessDomain;
23152
+
23001
23153
  // ../cli-kit/dist/public/node/fs.js
23002
23154
  init_cjs_shims();
23003
23155
 
@@ -23264,7 +23416,7 @@ var import_copy = __toESM(require_copy2(), 1), import_empty = __toESM(require_em
23264
23416
  init_cjs_shims();
23265
23417
  import fs2 from "node:fs";
23266
23418
  import fsPromises from "node:fs/promises";
23267
- import path from "node:path";
23419
+ import path2 from "node:path";
23268
23420
  import stream from "node:stream";
23269
23421
  import { promisify as promisify2 } from "node:util";
23270
23422
 
@@ -23344,8 +23496,8 @@ function uniqueString() {
23344
23496
  // ../../node_modules/.pnpm/temp-dir@3.0.0/node_modules/temp-dir/index.js
23345
23497
  init_cjs_shims();
23346
23498
  import { promises as fs } from "node:fs";
23347
- import os from "node:os";
23348
- var temporaryDirectory = await fs.realpath(os.tmpdir()), temp_dir_default = temporaryDirectory;
23499
+ import os2 from "node:os";
23500
+ var temporaryDirectory = await fs.realpath(os2.tmpdir()), temp_dir_default = temporaryDirectory;
23349
23501
 
23350
23502
  // ../../node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.js
23351
23503
  init_cjs_shims();
@@ -23357,7 +23509,7 @@ function isWritableStream(stream2) {
23357
23509
  }
23358
23510
 
23359
23511
  // ../../node_modules/.pnpm/tempy@3.1.0/node_modules/tempy/index.js
23360
- var pipeline = promisify2(stream.pipeline), getPath = (prefix = "") => path.join(temp_dir_default, prefix + uniqueString());
23512
+ var pipeline = promisify2(stream.pipeline), getPath = (prefix = "") => path2.join(temp_dir_default, prefix + uniqueString());
23361
23513
  async function runTask(temporaryPath, callback) {
23362
23514
  try {
23363
23515
  return await callback(temporaryPath);
@@ -23373,13 +23525,13 @@ var temporaryDirectoryTask = async (callback, options) => runTask(temporaryDirec
23373
23525
 
23374
23526
  // ../../node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.js
23375
23527
  init_cjs_shims();
23376
- import path3 from "node:path";
23528
+ import path4 from "node:path";
23377
23529
  import { fileURLToPath as fileURLToPath2 } from "node:url";
23378
23530
 
23379
23531
  // ../../node_modules/.pnpm/locate-path@7.2.0/node_modules/locate-path/index.js
23380
23532
  init_cjs_shims();
23381
- import process2 from "node:process";
23382
- import path2 from "node:path";
23533
+ import process3 from "node:process";
23534
+ import path3 from "node:path";
23383
23535
  import fs3, { promises as fsPromises2 } from "node:fs";
23384
23536
  import { fileURLToPath } from "node:url";
23385
23537
 
@@ -23505,7 +23657,7 @@ function checkType(type) {
23505
23657
  }
23506
23658
  var matchType = (type, stat) => stat[typeMappings[type]](), toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
23507
23659
  async function locatePath(paths, {
23508
- cwd: cwd3 = process2.cwd(),
23660
+ cwd: cwd3 = process3.cwd(),
23509
23661
  type = "file",
23510
23662
  allowSymlinks = !0,
23511
23663
  concurrency,
@@ -23515,7 +23667,7 @@ async function locatePath(paths, {
23515
23667
  let statFunction = allowSymlinks ? fsPromises2.stat : fsPromises2.lstat;
23516
23668
  return pLocate(paths, async (path_) => {
23517
23669
  try {
23518
- let stat = await statFunction(path2.resolve(cwd3, path_));
23670
+ let stat = await statFunction(path3.resolve(cwd3, path_));
23519
23671
  return matchType(type, stat);
23520
23672
  } catch {
23521
23673
  return !1;
@@ -23529,7 +23681,7 @@ init_cjs_shims();
23529
23681
  // ../../node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.js
23530
23682
  var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath, findUpStop = Symbol("findUpStop");
23531
23683
  async function findUpMultiple(name, options = {}) {
23532
- let directory = path3.resolve(toPath2(options.cwd) || ""), { root } = path3.parse(directory), stopAt = path3.resolve(directory, options.stopAt || root), limit = options.limit || Number.POSITIVE_INFINITY, paths = [name].flat(), runMatcher = async (locateOptions) => {
23684
+ let directory = path4.resolve(toPath2(options.cwd) || ""), { root } = path4.parse(directory), stopAt = path4.resolve(directory, options.stopAt || root), limit = options.limit || Number.POSITIVE_INFINITY, paths = [name].flat(), runMatcher = async (locateOptions) => {
23533
23685
  if (typeof name != "function")
23534
23686
  return locatePath(paths, locateOptions);
23535
23687
  let foundPath = await name(locateOptions.cwd);
@@ -23537,9 +23689,9 @@ async function findUpMultiple(name, options = {}) {
23537
23689
  }, matches = [];
23538
23690
  for (; ; ) {
23539
23691
  let foundPath = await runMatcher({ ...options, cwd: directory });
23540
- if (foundPath === findUpStop || (foundPath && matches.push(path3.resolve(directory, foundPath)), directory === stopAt || matches.length >= limit))
23692
+ if (foundPath === findUpStop || (foundPath && matches.push(path4.resolve(directory, foundPath)), directory === stopAt || matches.length >= limit))
23541
23693
  break;
23542
- directory = path3.dirname(directory);
23694
+ directory = path4.dirname(directory);
23543
23695
  }
23544
23696
  return matches;
23545
23697
  }
@@ -23997,10 +24149,10 @@ var minimatch = (p, pattern, options = {}) => (assertValidPattern(pattern), !opt
23997
24149
  }, qmarksTestNoExtDot = ([$0]) => {
23998
24150
  let len = $0.length;
23999
24151
  return (f) => f.length === len && f !== "." && f !== "..";
24000
- }, defaultPlatform = typeof process == "object" && process ? typeof process.env == "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix", path4 = {
24152
+ }, defaultPlatform = typeof process == "object" && process ? typeof process.env == "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix", path5 = {
24001
24153
  win32: { sep: "\\" },
24002
24154
  posix: { sep: "/" }
24003
- }, sep = defaultPlatform === "win32" ? path4.win32.sep : path4.posix.sep;
24155
+ }, sep = defaultPlatform === "win32" ? path5.win32.sep : path5.posix.sep;
24004
24156
  minimatch.sep = sep;
24005
24157
  var GLOBSTAR = Symbol("globstar **");
24006
24158
  minimatch.GLOBSTAR = GLOBSTAR;
@@ -24453,7 +24605,7 @@ function removeFileSync(path8) {
24453
24605
  outputDebug(outputContent`Sync-removing file at ${outputToken.path(path8)}...`), removeSync(path8);
24454
24606
  }
24455
24607
  async function rmdir(path8, options = {}) {
24456
- let { default: del } = await import("./del-SAZHGAZZ.js");
24608
+ let { default: del } = await import("./del-DNZ7X2HW.js");
24457
24609
  outputDebug(outputContent`Removing directory at ${outputToken.path(path8)}...`), await del(path8, { force: options.force });
24458
24610
  }
24459
24611
  async function isDirectory(path8) {
@@ -24540,104 +24692,6 @@ async function copyDirectoryContents(srcDir, destDir) {
24540
24692
  await Promise.all(filesToCopy);
24541
24693
  }
24542
24694
 
24543
- // ../cli-kit/dist/private/node/constants.js
24544
- init_cjs_shims();
24545
-
24546
- // ../../node_modules/.pnpm/env-paths@3.0.0/node_modules/env-paths/index.js
24547
- init_cjs_shims();
24548
- import path5 from "node:path";
24549
- import os2 from "node:os";
24550
- import process3 from "node:process";
24551
- var homedir = os2.homedir(), tmpdir = os2.tmpdir(), { env } = process3, macos = (name) => {
24552
- let library = path5.join(homedir, "Library");
24553
- return {
24554
- data: path5.join(library, "Application Support", name),
24555
- config: path5.join(library, "Preferences", name),
24556
- cache: path5.join(library, "Caches", name),
24557
- log: path5.join(library, "Logs", name),
24558
- temp: path5.join(tmpdir, name)
24559
- };
24560
- }, windows = (name) => {
24561
- let appData = env.APPDATA || path5.join(homedir, "AppData", "Roaming"), localAppData = env.LOCALAPPDATA || path5.join(homedir, "AppData", "Local");
24562
- return {
24563
- // Data/config/cache/log are invented by me as Windows isn't opinionated about this
24564
- data: path5.join(localAppData, name, "Data"),
24565
- config: path5.join(appData, name, "Config"),
24566
- cache: path5.join(localAppData, name, "Cache"),
24567
- log: path5.join(localAppData, name, "Log"),
24568
- temp: path5.join(tmpdir, name)
24569
- };
24570
- }, linux = (name) => {
24571
- let username2 = path5.basename(homedir);
24572
- return {
24573
- data: path5.join(env.XDG_DATA_HOME || path5.join(homedir, ".local", "share"), name),
24574
- config: path5.join(env.XDG_CONFIG_HOME || path5.join(homedir, ".config"), name),
24575
- cache: path5.join(env.XDG_CACHE_HOME || path5.join(homedir, ".cache"), name),
24576
- // https://wiki.debian.org/XDGBaseDirectorySpecification#state
24577
- log: path5.join(env.XDG_STATE_HOME || path5.join(homedir, ".local", "state"), name),
24578
- temp: path5.join(tmpdir, username2, name)
24579
- };
24580
- };
24581
- function envPaths(name, { suffix = "nodejs" } = {}) {
24582
- if (typeof name != "string")
24583
- throw new TypeError(`Expected a string, got ${typeof name}`);
24584
- return suffix && (name += `-${suffix}`), process3.platform === "darwin" ? macos(name) : process3.platform === "win32" ? windows(name) : linux(name);
24585
- }
24586
-
24587
- // ../cli-kit/dist/private/node/constants.js
24588
- var identifier = "shopify-cli", cacheFolder = () => process.env.XDG_CACHE_HOME ? process.env.XDG_CACHE_HOME : envPaths(identifier).cache, logsFolder = () => envPaths(identifier).log, environmentVariables = {
24589
- alwaysLogAnalytics: "SHOPIFY_CLI_ALWAYS_LOG_ANALYTICS",
24590
- alwaysLogMetrics: "SHOPIFY_CLI_ALWAYS_LOG_METRICS",
24591
- deviceAuth: "SHOPIFY_CLI_DEVICE_AUTH",
24592
- enableCliRedirect: "SHOPIFY_CLI_ENABLE_CLI_REDIRECT",
24593
- env: "SHOPIFY_CLI_ENV",
24594
- firstPartyDev: "SHOPIFY_CLI_1P_DEV",
24595
- noAnalytics: "SHOPIFY_CLI_NO_ANALYTICS",
24596
- partnersToken: "SHOPIFY_CLI_PARTNERS_TOKEN",
24597
- runAsUser: "SHOPIFY_RUN_AS_USER",
24598
- serviceEnv: "SHOPIFY_SERVICE_ENV",
24599
- skipCliRedirect: "SHOPIFY_CLI_SKIP_CLI_REDIRECT",
24600
- spinInstance: "SPIN_INSTANCE",
24601
- themeToken: "SHOPIFY_CLI_THEME_TOKEN",
24602
- unitTest: "SHOPIFY_UNIT_TEST",
24603
- verbose: "SHOPIFY_FLAG_VERBOSE",
24604
- // Variables to detect if the CLI is running in a cloud environment
24605
- codespaces: "CODESPACES",
24606
- codespaceName: "CODESPACE_NAME",
24607
- codespacePortForwardingDomain: "GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN",
24608
- gitpod: "GITPOD_WORKSPACE_URL",
24609
- cloudShell: "CLOUD_SHELL",
24610
- spin: "SPIN",
24611
- spinAppPort: "SERVER_PORT",
24612
- spinAppHost: "SPIN_APP_HOST",
24613
- organization: "SHOPIFY_CLI_ORGANIZATION",
24614
- identityToken: "SHOPIFY_CLI_IDENTITY_TOKEN",
24615
- refreshToken: "SHOPIFY_CLI_REFRESH_TOKEN",
24616
- otelURL: "SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",
24617
- themeKitAccessDomain: "SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN",
24618
- json: "SHOPIFY_FLAG_JSON",
24619
- neverUsePartnersApi: "SHOPIFY_CLI_NEVER_USE_PARTNERS_API",
24620
- skipNetworkLevelRetry: "SHOPIFY_CLI_SKIP_NETWORK_LEVEL_RETRY",
24621
- maxRequestTimeForNetworkCalls: "SHOPIFY_CLI_MAX_REQUEST_TIME_FOR_NETWORK_CALLS"
24622
- }, defaultThemeKitAccessDomain = "theme-kit-access.shopifyapps.com", systemEnvironmentVariables = {
24623
- backendPort: "BACKEND_PORT"
24624
- }, pathConstants = {
24625
- executables: {
24626
- dev: "/opt/dev/bin/dev"
24627
- },
24628
- directories: {
24629
- cache: {
24630
- path: () => cacheFolder(),
24631
- vendor: {
24632
- path: () => joinPath(cacheFolder(), "vendor"),
24633
- binaries: () => joinPath(cacheFolder(), "vendor", "binaries")
24634
- }
24635
- }
24636
- }
24637
- }, sessionConstants = {
24638
- expirationTimeMarginInMinutes: 4
24639
- }, bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae", reportingRateLimit = { limit: 300, timeout: { days: 1 } }, themeKitAccessDomain = process.env[environmentVariables.themeKitAccessDomain] ?? defaultThemeKitAccessDomain;
24640
-
24641
24695
  // ../cli-kit/dist/public/node/system.js
24642
24696
  init_cjs_shims();
24643
24697
 
@@ -25709,157 +25763,6 @@ async function isWsl() {
25709
25763
  return (await import("./is-wsl-YAJ3DFN7.js")).default;
25710
25764
  }
25711
25765
 
25712
- // ../cli-kit/dist/private/node/context/spin-cache.js
25713
- init_cjs_shims();
25714
- var cachedSpinFQDN;
25715
- function getCachedSpinFqdn() {
25716
- return cachedSpinFQDN;
25717
- }
25718
- function setCachedSpinFqdn(fqdn) {
25719
- cachedSpinFQDN = fqdn;
25720
- }
25721
-
25722
- // ../cli-kit/dist/private/node/context/service.js
25723
- init_cjs_shims();
25724
- var Environment;
25725
- (function(Environment2) {
25726
- Environment2.Local = "local", Environment2.Production = "production", Environment2.Spin = "spin";
25727
- })(Environment || (Environment = {}));
25728
- function serviceEnvironment(env3 = process.env) {
25729
- let value = env3[environmentVariables.serviceEnv];
25730
- return value === "local" ? Environment.Local : value === "spin" || isSpin(env3) ? Environment.Spin : Environment.Production;
25731
- }
25732
-
25733
- // ../cli-kit/dist/public/node/context/spin.js
25734
- var SpinInstanceNotFoundMessages = (spinInstance, error) => {
25735
- let errorMessage = outputContent`${outputToken.genericShellCommand("spin")} yielded the following error trying to obtain the fully qualified domain name of the Spin instance:
25736
- ${error}
25737
- `, nextSteps;
25738
- return spinInstance && (nextSteps = `Make sure ${spinInstance} is the instance name and not a fully qualified domain name`), { errorMessage, nextSteps };
25739
- }, spinFqdnFilePath = "/etc/spin/machine/fqdn";
25740
- async function spinFqdn(env3 = process.env) {
25741
- let spinFqdn2 = getCachedSpinFqdn();
25742
- if (spinFqdn2)
25743
- return spinFqdn2;
25744
- if (await fileExists(spinFqdnFilePath))
25745
- spinFqdn2 = await readFileSync(spinFqdnFilePath).toString();
25746
- else {
25747
- let spinInstance = await instance(env3);
25748
- spinFqdn2 = (await show(spinInstance, env3)).fqdn;
25749
- }
25750
- return setCachedSpinFqdn(spinFqdn2), spinFqdn2;
25751
- }
25752
- async function show(spinInstance, env3 = process.env) {
25753
- let output2 = await captureOutput("spin", spinInstance === void 0 ? ["show", "--latest", "--json"] : ["show", "--json"], { env: env3 }), json = JSON.parse(output2);
25754
- if (json.error) {
25755
- let { errorMessage, nextSteps } = SpinInstanceNotFoundMessages(spinInstance, json.error);
25756
- throw new AbortError(errorMessage, nextSteps);
25757
- } else
25758
- return json;
25759
- }
25760
- function isSpin(env3 = process.env) {
25761
- return isTruthy(env3[environmentVariables.spin]);
25762
- }
25763
- function instance(env3 = process.env) {
25764
- return env3[environmentVariables.spinInstance];
25765
- }
25766
- function isSpinEnvironment(env3 = process.env) {
25767
- return serviceEnvironment(env3) === Environment.Spin;
25768
- }
25769
- function appPort(env3 = process.env) {
25770
- let port = Number(env3[environmentVariables.spinAppPort]);
25771
- return !isNaN(port) && port || void 0;
25772
- }
25773
- function appHost(env3 = process.env) {
25774
- return env3[environmentVariables.spinAppHost];
25775
- }
25776
- var spinVariables = {
25777
- partnersSpinService: "shopify--partners",
25778
- manualCliSpinPortName: "CLI_EXTENSION_SERVER"
25779
- };
25780
- async function fetchSpinPort(service, portEnvName, basePath = "/run") {
25781
- let spinVersionConfigurations = [
25782
- {
25783
- path: joinPath(basePath, "ports2", service, "custom", portEnvName),
25784
- contentPattern: /\[{"internal":(\d+)}\]/
25785
- },
25786
- {
25787
- path: joinPath(basePath, "ports", service, "proc", portEnvName),
25788
- contentPattern: /(\d+)/
25789
- }
25790
- ];
25791
- for (let config of spinVersionConfigurations) {
25792
- let fileContent;
25793
- try {
25794
- fileContent = await readFile(config.path);
25795
- } catch {
25796
- continue;
25797
- }
25798
- let match2 = config.contentPattern.exec(fileContent);
25799
- if (match2?.[1] && !isNaN(parseInt(match2[1], 10)))
25800
- return parseInt(match2[1], 10);
25801
- }
25802
- }
25803
-
25804
- // ../cli-kit/dist/private/node/context/utilities.js
25805
- init_cjs_shims();
25806
- function isSet(variable) {
25807
- return !(variable === void 0 || variable.trim() === "");
25808
- }
25809
- function getCIMetadata(envName, envs) {
25810
- switch (envName) {
25811
- case "bitbucket":
25812
- return {
25813
- branch: envs.BITBUCKET_BRANCH,
25814
- build: envs.BITBUCKET_BUILD_NUMBER,
25815
- commitSha: envs.BITBUCKET_COMMIT,
25816
- run: envs.BITBUCKET_BUILD_NUMBER,
25817
- url: `https://bitbucket.org/${envs.BITBUCKET_WORKSPACE}/${envs.BITBUCKET_REPO_SLUG}/pipelines/results/${envs.BITBUCKET_BUILD_NUMBER}`
25818
- };
25819
- case "circleci":
25820
- return {
25821
- actor: envs.CIRCLE_USERNAME,
25822
- branch: envs.CIRCLE_BRANCH,
25823
- build: envs.CIRCLE_BUILD_NUM,
25824
- commitSha: envs.CIRCLE_SHA1,
25825
- run: envs.CIRCLE_WORKFLOW_ID,
25826
- url: envs.CIRCLE_BUILD_URL
25827
- };
25828
- case "github":
25829
- return {
25830
- actor: envs.GITHUB_ACTOR,
25831
- attempt: envs.GITHUB_RUN_ATTEMPT,
25832
- branch: envs.GITHUB_REF_NAME,
25833
- build: envs.GITHUB_RUN_ID,
25834
- commitSha: envs.GITHUB_SHA,
25835
- run: envs.GITHUB_RUN_ID,
25836
- runNumber: envs.GITHUB_RUN_NUMBER,
25837
- url: `${envs.GITHUB_SERVER_URL}/${envs.GITHUB_REPOSITORY}/actions/runs/${envs.GITHUB_RUN_ID}`
25838
- };
25839
- case "gitlab":
25840
- return {
25841
- actor: envs.GITLAB_USER_LOGIN,
25842
- branch: envs.CI_COMMIT_REF_NAME,
25843
- build: envs.CI_PIPELINE_ID,
25844
- commitSha: envs.CI_COMMIT_SHA,
25845
- commitMessage: envs.CI_COMMIT_MESSAGE,
25846
- run: envs.CI_RUNNER_ID,
25847
- url: envs.CI_PIPELINE_URL
25848
- };
25849
- case "buildkite":
25850
- return {
25851
- branch: envs.BUILDKITE_BRANCH,
25852
- build: envs.BUILDKITE_BUILD_NUMBER,
25853
- commitSha: envs.BUILDKITE_COMMIT,
25854
- commitMessage: envs.BUILDKITE_MESSAGE,
25855
- run: envs.BUILDKITE_BUILD_NUMBER,
25856
- url: envs.BUILDKITE_BUILD_URL
25857
- };
25858
- default:
25859
- return {};
25860
- }
25861
- }
25862
-
25863
25766
  // ../../node_modules/.pnpm/is-interactive@2.0.0/node_modules/is-interactive/index.js
25864
25767
  init_cjs_shims();
25865
25768
  function isInteractive({ stream: stream2 = process.stdout } = {}) {
@@ -25882,7 +25785,7 @@ function isVerbose(env3 = process.env) {
25882
25785
  return isTruthy(env3[environmentVariables.verbose]) || process.argv.includes("--verbose");
25883
25786
  }
25884
25787
  async function isShopify(env3 = process.env) {
25885
- return Object.prototype.hasOwnProperty.call(env3, environmentVariables.runAsUser) ? !isTruthy(env3[environmentVariables.runAsUser]) : await fileExists(pathConstants.executables.dev) || isSpin(env3);
25788
+ return Object.prototype.hasOwnProperty.call(env3, environmentVariables.runAsUser) ? !isTruthy(env3[environmentVariables.runAsUser]) : await fileExists(pathConstants.executables.dev);
25886
25789
  }
25887
25790
  function isUnitTest(env3 = process.env) {
25888
25791
  return isTruthy(env3[environmentVariables.unitTest]);
@@ -25915,7 +25818,7 @@ function themeToken(env3 = process.env) {
25915
25818
  return env3[environmentVariables.themeToken];
25916
25819
  }
25917
25820
  function cloudEnvironment(env3 = process.env) {
25918
- return isSet(env3[environmentVariables.codespaces]) ? { platform: "codespaces", editor: !0 } : isSet(env3[environmentVariables.gitpod]) ? { platform: "gitpod", editor: !0 } : isSet(env3[environmentVariables.cloudShell]) ? { platform: "cloudShell", editor: !0 } : isSpin(env3) ? { platform: "spin", editor: !1 } : { platform: "localhost", editor: !1 };
25821
+ return isSet(env3[environmentVariables.codespaces]) ? { platform: "codespaces", editor: !0 } : isSet(env3[environmentVariables.gitpod]) ? { platform: "gitpod", editor: !0 } : isSet(env3[environmentVariables.cloudShell]) ? { platform: "cloudShell", editor: !0 } : { platform: "localhost", editor: !1 };
25919
25822
  }
25920
25823
  async function hasGit() {
25921
25824
  try {
@@ -27585,7 +27488,7 @@ var Yoga = await initYoga(await E(_(import.meta.url).resolve("./yoga.wasm")));
27585
27488
 
27586
27489
  // ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.3.1/node_modules/ink/build/reconciler.js
27587
27490
  init_cjs_shims();
27588
- var import_react_reconciler = __toESM(require_react_reconciler(), 1), import_constants4 = __toESM(require_constants(), 1);
27491
+ var import_react_reconciler = __toESM(require_react_reconciler(), 1), import_constants2 = __toESM(require_constants(), 1);
27589
27492
  import process10 from "node:process";
27590
27493
 
27591
27494
  // ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.3.1/node_modules/ink/build/dom.js
@@ -27916,6 +27819,147 @@ function isFullwidthCodePoint(codePoint) {
27916
27819
  131072 <= codePoint && codePoint <= 262141) : !1;
27917
27820
  }
27918
27821
 
27822
+ // ../../node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
27823
+ init_cjs_shims();
27824
+ var wrapAnsi163 = (offset = 0) => (code) => `\x1B[${code + offset}m`, wrapAnsi2563 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m3 = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, styles4 = {
27825
+ modifier: {
27826
+ reset: [0, 0],
27827
+ // 21 isn't widely supported and 22 does the same thing
27828
+ bold: [1, 22],
27829
+ dim: [2, 22],
27830
+ italic: [3, 23],
27831
+ underline: [4, 24],
27832
+ overline: [53, 55],
27833
+ inverse: [7, 27],
27834
+ hidden: [8, 28],
27835
+ strikethrough: [9, 29]
27836
+ },
27837
+ color: {
27838
+ black: [30, 39],
27839
+ red: [31, 39],
27840
+ green: [32, 39],
27841
+ yellow: [33, 39],
27842
+ blue: [34, 39],
27843
+ magenta: [35, 39],
27844
+ cyan: [36, 39],
27845
+ white: [37, 39],
27846
+ // Bright color
27847
+ blackBright: [90, 39],
27848
+ gray: [90, 39],
27849
+ // Alias of `blackBright`
27850
+ grey: [90, 39],
27851
+ // Alias of `blackBright`
27852
+ redBright: [91, 39],
27853
+ greenBright: [92, 39],
27854
+ yellowBright: [93, 39],
27855
+ blueBright: [94, 39],
27856
+ magentaBright: [95, 39],
27857
+ cyanBright: [96, 39],
27858
+ whiteBright: [97, 39]
27859
+ },
27860
+ bgColor: {
27861
+ bgBlack: [40, 49],
27862
+ bgRed: [41, 49],
27863
+ bgGreen: [42, 49],
27864
+ bgYellow: [43, 49],
27865
+ bgBlue: [44, 49],
27866
+ bgMagenta: [45, 49],
27867
+ bgCyan: [46, 49],
27868
+ bgWhite: [47, 49],
27869
+ // Bright color
27870
+ bgBlackBright: [100, 49],
27871
+ bgGray: [100, 49],
27872
+ // Alias of `bgBlackBright`
27873
+ bgGrey: [100, 49],
27874
+ // Alias of `bgBlackBright`
27875
+ bgRedBright: [101, 49],
27876
+ bgGreenBright: [102, 49],
27877
+ bgYellowBright: [103, 49],
27878
+ bgBlueBright: [104, 49],
27879
+ bgMagentaBright: [105, 49],
27880
+ bgCyanBright: [106, 49],
27881
+ bgWhiteBright: [107, 49]
27882
+ }
27883
+ }, modifierNames3 = Object.keys(styles4.modifier), foregroundColorNames3 = Object.keys(styles4.color), backgroundColorNames3 = Object.keys(styles4.bgColor), colorNames3 = [...foregroundColorNames3, ...backgroundColorNames3];
27884
+ function assembleStyles3() {
27885
+ let codes = /* @__PURE__ */ new Map();
27886
+ for (let [groupName, group] of Object.entries(styles4)) {
27887
+ for (let [styleName, style] of Object.entries(group))
27888
+ styles4[styleName] = {
27889
+ open: `\x1B[${style[0]}m`,
27890
+ close: `\x1B[${style[1]}m`
27891
+ }, group[styleName] = styles4[styleName], codes.set(style[0], style[1]);
27892
+ Object.defineProperty(styles4, groupName, {
27893
+ value: group,
27894
+ enumerable: !1
27895
+ });
27896
+ }
27897
+ return Object.defineProperty(styles4, "codes", {
27898
+ value: codes,
27899
+ enumerable: !1
27900
+ }), styles4.color.close = "\x1B[39m", styles4.bgColor.close = "\x1B[49m", styles4.color.ansi = wrapAnsi163(), styles4.color.ansi256 = wrapAnsi2563(), styles4.color.ansi16m = wrapAnsi16m3(), styles4.bgColor.ansi = wrapAnsi163(10), styles4.bgColor.ansi256 = wrapAnsi2563(10), styles4.bgColor.ansi16m = wrapAnsi16m3(10), Object.defineProperties(styles4, {
27901
+ rgbToAnsi256: {
27902
+ value(red, green, blue) {
27903
+ return red === green && green === blue ? red < 8 ? 16 : red > 248 ? 231 : Math.round((red - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
27904
+ },
27905
+ enumerable: !1
27906
+ },
27907
+ hexToRgb: {
27908
+ value(hex) {
27909
+ let matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
27910
+ if (!matches)
27911
+ return [0, 0, 0];
27912
+ let [colorString] = matches;
27913
+ colorString.length === 3 && (colorString = [...colorString].map((character) => character + character).join(""));
27914
+ let integer = Number.parseInt(colorString, 16);
27915
+ return [
27916
+ /* eslint-disable no-bitwise */
27917
+ integer >> 16 & 255,
27918
+ integer >> 8 & 255,
27919
+ integer & 255
27920
+ /* eslint-enable no-bitwise */
27921
+ ];
27922
+ },
27923
+ enumerable: !1
27924
+ },
27925
+ hexToAnsi256: {
27926
+ value: (hex) => styles4.rgbToAnsi256(...styles4.hexToRgb(hex)),
27927
+ enumerable: !1
27928
+ },
27929
+ ansi256ToAnsi: {
27930
+ value(code) {
27931
+ if (code < 8)
27932
+ return 30 + code;
27933
+ if (code < 16)
27934
+ return 90 + (code - 8);
27935
+ let red, green, blue;
27936
+ if (code >= 232)
27937
+ red = ((code - 232) * 10 + 8) / 255, green = red, blue = red;
27938
+ else {
27939
+ code -= 16;
27940
+ let remainder = code % 36;
27941
+ red = Math.floor(code / 36) / 5, green = Math.floor(remainder / 6) / 5, blue = remainder % 6 / 5;
27942
+ }
27943
+ let value = Math.max(red, green, blue) * 2;
27944
+ if (value === 0)
27945
+ return 30;
27946
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
27947
+ return value === 2 && (result += 60), result;
27948
+ },
27949
+ enumerable: !1
27950
+ },
27951
+ rgbToAnsi: {
27952
+ value: (red, green, blue) => styles4.ansi256ToAnsi(styles4.rgbToAnsi256(red, green, blue)),
27953
+ enumerable: !1
27954
+ },
27955
+ hexToAnsi: {
27956
+ value: (hex) => styles4.ansi256ToAnsi(styles4.hexToAnsi256(hex)),
27957
+ enumerable: !1
27958
+ }
27959
+ }), styles4;
27960
+ }
27961
+ var ansiStyles3 = assembleStyles3(), ansi_styles_default3 = ansiStyles3;
27962
+
27919
27963
  // ../../node_modules/.pnpm/slice-ansi@5.0.0/node_modules/slice-ansi/index.js
27920
27964
  var astralRegex = /^[\uD800-\uDBFF][\uDC00-\uDFFF]$/, ESCAPES2 = [
27921
27965
  "\x1B",
@@ -27926,7 +27970,7 @@ var astralRegex = /^[\uD800-\uDBFF][\uDC00-\uDFFF]$/, ESCAPES2 = [
27926
27970
  for (let ansiCode of ansiCodes) {
27927
27971
  let ansiCodeOrigin = ansiCode;
27928
27972
  ansiCode.includes(";") && (ansiCode = ansiCode.split(";")[0][0] + "0");
27929
- let item = ansi_styles_default2.codes.get(Number.parseInt(ansiCode, 10));
27973
+ let item = ansi_styles_default3.codes.get(Number.parseInt(ansiCode, 10));
27930
27974
  if (item) {
27931
27975
  let indexEscape = ansiCodes.indexOf(item.toString());
27932
27976
  indexEscape === -1 ? output2.push(wrapAnsi2(isEscapes ? item : ansiCodeOrigin)) : ansiCodes.splice(indexEscape, 1);
@@ -27937,7 +27981,7 @@ var astralRegex = /^[\uD800-\uDBFF][\uDC00-\uDFFF]$/, ESCAPES2 = [
27937
27981
  output2.push(wrapAnsi2(ansiCodeOrigin));
27938
27982
  }
27939
27983
  if (isEscapes && (output2 = output2.filter((element, index) => output2.indexOf(element) === index), endAnsiCode !== void 0)) {
27940
- let fistEscapeCode = wrapAnsi2(ansi_styles_default2.codes.get(Number.parseInt(endAnsiCode, 10)));
27984
+ let fistEscapeCode = wrapAnsi2(ansi_styles_default3.codes.get(Number.parseInt(endAnsiCode, 10)));
27941
27985
  output2 = output2.reduce((current, next) => next === fistEscapeCode ? [next, ...current] : [...current, next], []);
27942
27986
  }
27943
27987
  return output2.join("");
@@ -28123,9 +28167,9 @@ var applyPositionStyles = (node, style) => {
28123
28167
  }
28124
28168
  }, applyGapStyles = (node, style) => {
28125
28169
  "gap" in style && node.setGap(Yoga.GUTTER_ALL, style.gap ?? 0), "columnGap" in style && node.setGap(Yoga.GUTTER_COLUMN, style.columnGap ?? 0), "rowGap" in style && node.setGap(Yoga.GUTTER_ROW, style.rowGap ?? 0);
28126
- }, styles4 = (node, style = {}) => {
28170
+ }, styles5 = (node, style = {}) => {
28127
28171
  applyPositionStyles(node, style), applyMarginStyles(node, style), applyPaddingStyles(node, style), applyFlexStyles(node, style), applyDimensionStyles(node, style), applyDisplayStyles(node, style), applyBorderStyles(node, style), applyGapStyles(node, style);
28128
- }, styles_default = styles4;
28172
+ }, styles_default = styles5;
28129
28173
 
28130
28174
  // ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.3.1/node_modules/ink/build/reconciler.js
28131
28175
  if (process10.env.DEV === "true")
@@ -28210,7 +28254,7 @@ var diff = (before, after) => {
28210
28254
  unhideTextInstance(node, text) {
28211
28255
  setTextNodeValue(node, text);
28212
28256
  },
28213
- getPublicInstance: (instance2) => instance2,
28257
+ getPublicInstance: (instance) => instance,
28214
28258
  hideInstance(node) {
28215
28259
  node.yogaNode?.setDisplay(Yoga.DISPLAY_NONE);
28216
28260
  },
@@ -28230,7 +28274,7 @@ var diff = (before, after) => {
28230
28274
  scheduleTimeout: setTimeout,
28231
28275
  cancelTimeout: clearTimeout,
28232
28276
  noTimeout: -1,
28233
- getCurrentEventPriority: () => import_constants4.DefaultEventPriority,
28277
+ getCurrentEventPriority: () => import_constants2.DefaultEventPriority,
28234
28278
  beforeActiveInstanceBlur() {
28235
28279
  },
28236
28280
  afterActiveInstanceBlur() {
@@ -29547,22 +29591,22 @@ var render = (node, options) => {
29547
29591
  exitOnCtrlC: !0,
29548
29592
  patchConsole: !0,
29549
29593
  ...getOptions(options)
29550
- }, instance2 = getInstance(inkOptions.stdout, () => new Ink(inkOptions));
29551
- return instance2.render(node), {
29552
- rerender: instance2.render,
29594
+ }, instance = getInstance(inkOptions.stdout, () => new Ink(inkOptions));
29595
+ return instance.render(node), {
29596
+ rerender: instance.render,
29553
29597
  unmount() {
29554
- instance2.unmount();
29598
+ instance.unmount();
29555
29599
  },
29556
- waitUntilExit: instance2.waitUntilExit,
29600
+ waitUntilExit: instance.waitUntilExit,
29557
29601
  cleanup: () => instances_default.delete(inkOptions.stdout),
29558
- clear: instance2.clear
29602
+ clear: instance.clear
29559
29603
  };
29560
29604
  }, render_default = render, getOptions = (stdout = {}) => stdout instanceof Stream ? {
29561
29605
  stdout,
29562
29606
  stdin: process18.stdin
29563
29607
  } : stdout, getInstance = (stdout, createInstance) => {
29564
- let instance2 = instances_default.get(stdout);
29565
- return instance2 || (instance2 = createInstance(), instances_default.set(stdout, instance2)), instance2;
29608
+ let instance = instances_default.get(stdout);
29609
+ return instance || (instance = createInstance(), instances_default.set(stdout, instance)), instance;
29566
29610
  };
29567
29611
 
29568
29612
  // ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.3.1/node_modules/ink/build/components/Static.js
@@ -30304,7 +30348,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
30304
30348
  try {
30305
30349
  await getAndSet();
30306
30350
  } catch (error) {
30307
- let { sendErrorToBugsnag } = await import("./error-handler-734CUCMD.js");
30351
+ let { sendErrorToBugsnag } = await import("./error-handler-JJ76ZQMC.js");
30308
30352
  await sendErrorToBugsnag(error, "unexpected_error");
30309
30353
  }
30310
30354
  }, durationStack = [];
@@ -30731,7 +30775,7 @@ var Stdout = class extends EventEmitter3 {
30731
30775
  }, this.lastFrame = () => this._lastFrame, this.columns = options.columns ?? 80, this.rows = options.rows ?? 80;
30732
30776
  }
30733
30777
  }, renderString = (element, renderOptions) => {
30734
- let columns = isUnitTest() ? 80 : process.stdout.columns, stdout = renderOptions?.stdout ?? new Stdout({ columns }), instance2 = render_default(element, {
30778
+ let columns = isUnitTest() ? 80 : process.stdout.columns, stdout = renderOptions?.stdout ?? new Stdout({ columns }), instance = render_default(element, {
30735
30779
  stdout,
30736
30780
  debug: !0,
30737
30781
  exitOnCtrlC: !1,
@@ -30739,7 +30783,7 @@ var Stdout = class extends EventEmitter3 {
30739
30783
  });
30740
30784
  return {
30741
30785
  output: stdout.lastFrame(),
30742
- unmount: instance2.unmount
30786
+ unmount: instance.unmount
30743
30787
  };
30744
30788
  };
30745
30789
  function handleCtrlC(input, key, exit = () => {
@@ -31600,6 +31644,9 @@ function SelectPrompt({ message, choices, infoTable, infoMessage, onSubmit, defa
31600
31644
  // ../cli-kit/dist/private/node/ui/components/Tasks.js
31601
31645
  init_cjs_shims();
31602
31646
 
31647
+ // ../cli-kit/dist/private/node/ui/components/LoadingBar.js
31648
+ init_cjs_shims();
31649
+
31603
31650
  // ../cli-kit/dist/private/node/ui/components/TextAnimation.js
31604
31651
  init_cjs_shims();
31605
31652
  var import_react50 = __toESM(require_react(), 1), import_gradient_string = __toESM(require_gradient_string(), 1);
@@ -31636,14 +31683,31 @@ var TextAnimation = (0, import_react50.memo)(({ text, maxWidth }) => {
31636
31683
  });
31637
31684
  TextAnimation.displayName = "TextAnimation";
31638
31685
 
31686
+ // ../cli-kit/dist/private/node/ui/components/LoadingBar.js
31687
+ var import_react51 = __toESM(require_react(), 1);
31688
+ var loadingBarChar = "\u2580", hillString = "\u2581\u2581\u2582\u2582\u2583\u2583\u2584\u2584\u2585\u2585\u2586\u2586\u2587\u2587\u2588\u2588\u2587\u2587\u2586\u2586\u2585\u2585\u2584\u2584\u2583\u2583\u2582\u2582\u2581\u2581", LoadingBar = ({ title, noColor, noProgressBar }) => {
31689
+ let { twoThirds } = useLayout(), loadingBar = new Array(twoThirds).fill(loadingBarChar).join("");
31690
+ return (noColor ?? !shouldDisplayColors()) && (loadingBar = hillString.repeat(Math.ceil(twoThirds / hillString.length))), import_react51.default.createElement(
31691
+ Box_default,
31692
+ { flexDirection: "column" },
31693
+ !noProgressBar && import_react51.default.createElement(TextAnimation, { text: loadingBar, maxWidth: twoThirds }),
31694
+ import_react51.default.createElement(
31695
+ Text,
31696
+ null,
31697
+ title,
31698
+ " ..."
31699
+ )
31700
+ );
31701
+ };
31702
+
31639
31703
  // ../cli-kit/dist/private/node/ui/hooks/use-async-and-unmount.js
31640
31704
  init_cjs_shims();
31641
- var import_react51 = __toESM(require_react(), 1);
31705
+ var import_react52 = __toESM(require_react(), 1);
31642
31706
  function useAsyncAndUnmount(asyncFunction, { onFulfilled = () => {
31643
31707
  }, onRejected = () => {
31644
31708
  } } = {}) {
31645
31709
  let { exit: unmountInk } = use_app_default();
31646
- (0, import_react51.useEffect)(() => {
31710
+ (0, import_react52.useEffect)(() => {
31647
31711
  asyncFunction().then(() => {
31648
31712
  onFulfilled(), unmountInk();
31649
31713
  }).catch((error) => {
@@ -31652,8 +31716,18 @@ function useAsyncAndUnmount(asyncFunction, { onFulfilled = () => {
31652
31716
  }, []);
31653
31717
  }
31654
31718
 
31719
+ // ../cli-kit/dist/private/node/ui/hooks/use-exit-on-ctrl-c.js
31720
+ init_cjs_shims();
31721
+ function useExitOnCtrlC() {
31722
+ let { isRawModeSupported } = use_stdin_default();
31723
+ use_input_default((input, key) => {
31724
+ if (handleCtrlC(input, key), key.return)
31725
+ return null;
31726
+ }, { isActive: !!isRawModeSupported });
31727
+ }
31728
+
31655
31729
  // ../cli-kit/dist/private/node/ui/components/Tasks.js
31656
- var import_react52 = __toESM(require_react(), 1), loadingBarChar = "\u2580", hillString = "\u2581\u2581\u2582\u2582\u2583\u2583\u2584\u2584\u2585\u2585\u2586\u2586\u2587\u2587\u2588\u2588\u2587\u2587\u2586\u2586\u2585\u2585\u2584\u2584\u2583\u2583\u2582\u2582\u2581\u2581", TasksState;
31730
+ var import_react53 = __toESM(require_react(), 1), TasksState;
31657
31731
  (function(TasksState2) {
31658
31732
  TasksState2.Loading = "loading", TasksState2.Success = "success", TasksState2.Failure = "failure";
31659
31733
  })(TasksState || (TasksState = {}));
@@ -31671,10 +31745,8 @@ async function runTask2(task, ctx) {
31671
31745
  }
31672
31746
  var noop3 = () => {
31673
31747
  };
31674
- function Tasks({ tasks, silent = isUnitTest(), onComplete = noop3, abortSignal, noColor }) {
31675
- let { twoThirds } = useLayout(), loadingBar = new Array(twoThirds).fill(loadingBarChar).join("");
31676
- (noColor ?? !shouldDisplayColors()) && (loadingBar = hillString.repeat(Math.ceil(twoThirds / hillString.length)));
31677
- let [currentTask, setCurrentTask] = (0, import_react52.useState)(tasks[0]), [state, setState] = (0, import_react52.useState)(TasksState.Loading), ctx = (0, import_react52.useRef)({}), { isRawModeSupported } = use_stdin_default();
31748
+ function Tasks({ tasks, silent = isUnitTest(), onComplete = noop3, abortSignal, noColor, noProgressBar = !1 }) {
31749
+ let [currentTask, setCurrentTask] = (0, import_react53.useState)(tasks[0]), [state, setState] = (0, import_react53.useState)(TasksState.Loading), ctx = (0, import_react53.useRef)({});
31678
31750
  useAsyncAndUnmount(async () => {
31679
31751
  for (let task of tasks) {
31680
31752
  setCurrentTask(task);
@@ -31690,104 +31762,91 @@ function Tasks({ tasks, silent = isUnitTest(), onComplete = noop3, abortSignal,
31690
31762
  onRejected: () => {
31691
31763
  setState(TasksState.Failure);
31692
31764
  }
31693
- }), use_input_default((input, key) => {
31694
- if (handleCtrlC(input, key), key.return)
31695
- return null;
31696
- }, { isActive: !!isRawModeSupported });
31765
+ }), useExitOnCtrlC();
31697
31766
  let { isAborted } = useAbortSignal(abortSignal);
31698
- return silent ? null : state === TasksState.Loading && !isAborted ? import_react52.default.createElement(
31699
- Box_default,
31700
- { flexDirection: "column" },
31701
- import_react52.default.createElement(TextAnimation, { text: loadingBar, maxWidth: twoThirds }),
31702
- import_react52.default.createElement(
31703
- Text,
31704
- null,
31705
- currentTask.title,
31706
- " ..."
31707
- )
31708
- ) : null;
31767
+ return silent ? null : state === TasksState.Loading && !isAborted ? import_react53.default.createElement(LoadingBar, { title: currentTask.title, noColor, noProgressBar }) : null;
31709
31768
  }
31710
31769
 
31711
31770
  // ../cli-kit/dist/private/node/ui/components/TextPrompt.js
31712
31771
  init_cjs_shims();
31713
- var import_react53 = __toESM(require_react(), 1);
31772
+ var import_react54 = __toESM(require_react(), 1);
31714
31773
  var TextPrompt = ({ message, onSubmit, validate, defaultValue = "", password = !1, allowEmpty = !1, emptyDisplayedValue = "(empty)", abortSignal, preview, initialAnswer = "" }) => {
31715
31774
  if (password && defaultValue)
31716
31775
  throw new Error("Can't use defaultValue with password");
31717
- let validateAnswer = (0, import_react53.useCallback)((value) => {
31776
+ let validateAnswer = (0, import_react54.useCallback)((value) => {
31718
31777
  if (validate)
31719
31778
  return validate(value);
31720
31779
  if (value.length === 0 && !allowEmpty)
31721
31780
  return "Type an answer to the prompt.";
31722
31781
  }, [allowEmpty, validate]), { oneThird } = useLayout(), { promptState, setPromptState, answer, setAnswer } = usePrompt({
31723
31782
  initialAnswer
31724
- }), answerOrDefault = answer.length > 0 ? answer : defaultValue, displayEmptyValue = answerOrDefault === "", displayedAnswer = displayEmptyValue ? emptyDisplayedValue : answerOrDefault, { exit: unmountInk } = use_app_default(), [error, setError] = (0, import_react53.useState)(void 0), color = promptState === PromptState.Error ? "red" : "cyan", underline = new Array(oneThird - 3).fill("\u2594"), { isAborted } = useAbortSignal(abortSignal);
31783
+ }), answerOrDefault = answer.length > 0 ? answer : defaultValue, displayEmptyValue = answerOrDefault === "", displayedAnswer = displayEmptyValue ? emptyDisplayedValue : answerOrDefault, { exit: unmountInk } = use_app_default(), [error, setError] = (0, import_react54.useState)(void 0), color = promptState === PromptState.Error ? "red" : "cyan", underline = new Array(oneThird - 3).fill("\u2594"), { isAborted } = useAbortSignal(abortSignal);
31725
31784
  return use_input_default((input, key) => {
31726
31785
  if (handleCtrlC(input, key), key.return) {
31727
31786
  let error2 = validateAnswer(answerOrDefault);
31728
31787
  error2 ? (setPromptState(PromptState.Error), setError(error2)) : setPromptState(PromptState.Submitted);
31729
31788
  }
31730
- }), (0, import_react53.useEffect)(() => {
31789
+ }), (0, import_react54.useEffect)(() => {
31731
31790
  promptState === PromptState.Submitted && (onSubmit(answerOrDefault), unmountInk());
31732
- }, [answerOrDefault, onSubmit, promptState, unmountInk]), isAborted ? null : import_react53.default.createElement(
31791
+ }, [answerOrDefault, onSubmit, promptState, unmountInk]), isAborted ? null : import_react54.default.createElement(
31733
31792
  Box_default,
31734
31793
  { flexDirection: "column", marginBottom: 1, width: oneThird },
31735
- import_react53.default.createElement(
31794
+ import_react54.default.createElement(
31736
31795
  Box_default,
31737
31796
  null,
31738
- import_react53.default.createElement(
31797
+ import_react54.default.createElement(
31739
31798
  Box_default,
31740
31799
  { marginRight: 2 },
31741
- import_react53.default.createElement(Text, null, "?")
31800
+ import_react54.default.createElement(Text, null, "?")
31742
31801
  ),
31743
- import_react53.default.createElement(TokenizedText, { item: messageWithPunctuation(message) })
31802
+ import_react54.default.createElement(TokenizedText, { item: messageWithPunctuation(message) })
31744
31803
  ),
31745
- promptState === PromptState.Submitted ? import_react53.default.createElement(
31804
+ promptState === PromptState.Submitted ? import_react54.default.createElement(
31746
31805
  Box_default,
31747
31806
  null,
31748
- import_react53.default.createElement(
31807
+ import_react54.default.createElement(
31749
31808
  Box_default,
31750
31809
  { marginRight: 2 },
31751
- import_react53.default.createElement(Text, { color: "cyan" }, figures_default.tick)
31810
+ import_react54.default.createElement(Text, { color: "cyan" }, figures_default.tick)
31752
31811
  ),
31753
- import_react53.default.createElement(
31812
+ import_react54.default.createElement(
31754
31813
  Box_default,
31755
31814
  { flexGrow: 1 },
31756
- import_react53.default.createElement(Text, { color: "cyan", dimColor: displayEmptyValue }, password ? "*".repeat(answer.length) : displayedAnswer)
31815
+ import_react54.default.createElement(Text, { color: "cyan", dimColor: displayEmptyValue }, password ? "*".repeat(answer.length) : displayedAnswer)
31757
31816
  )
31758
- ) : import_react53.default.createElement(
31817
+ ) : import_react54.default.createElement(
31759
31818
  Box_default,
31760
31819
  { flexDirection: "column" },
31761
- import_react53.default.createElement(
31820
+ import_react54.default.createElement(
31762
31821
  Box_default,
31763
31822
  null,
31764
- import_react53.default.createElement(
31823
+ import_react54.default.createElement(
31765
31824
  Box_default,
31766
31825
  { marginRight: 2 },
31767
- import_react53.default.createElement(Text, { color }, ">")
31826
+ import_react54.default.createElement(Text, { color }, ">")
31768
31827
  ),
31769
- import_react53.default.createElement(
31828
+ import_react54.default.createElement(
31770
31829
  Box_default,
31771
31830
  { flexGrow: 1 },
31772
- import_react53.default.createElement(TextInput, { value: answer, onChange: (answer2) => {
31831
+ import_react54.default.createElement(TextInput, { value: answer, onChange: (answer2) => {
31773
31832
  setAnswer(answer2), setPromptState(PromptState.Idle);
31774
31833
  }, defaultValue, color, password })
31775
31834
  )
31776
31835
  ),
31777
- import_react53.default.createElement(
31836
+ import_react54.default.createElement(
31778
31837
  Box_default,
31779
31838
  { marginLeft: 3 },
31780
- import_react53.default.createElement(Text, { color }, underline)
31839
+ import_react54.default.createElement(Text, { color }, underline)
31781
31840
  ),
31782
- promptState === PromptState.Error ? import_react53.default.createElement(
31841
+ promptState === PromptState.Error ? import_react54.default.createElement(
31783
31842
  Box_default,
31784
31843
  { marginLeft: 3 },
31785
- import_react53.default.createElement(Text, { color }, error)
31844
+ import_react54.default.createElement(Text, { color }, error)
31786
31845
  ) : null,
31787
- promptState !== PromptState.Error && preview ? import_react53.default.createElement(
31846
+ promptState !== PromptState.Error && preview ? import_react54.default.createElement(
31788
31847
  Box_default,
31789
31848
  { marginLeft: 3 },
31790
- import_react53.default.createElement(TokenizedText, { item: preview(answerOrDefault) })
31849
+ import_react54.default.createElement(TokenizedText, { item: preview(answerOrDefault) })
31791
31850
  ) : null
31792
31851
  )
31793
31852
  );
@@ -31807,24 +31866,24 @@ function throttle2(func, wait, options) {
31807
31866
  }
31808
31867
 
31809
31868
  // ../cli-kit/dist/private/node/ui/components/AutocompletePrompt.js
31810
- var import_react54 = __toESM(require_react(), 1);
31869
+ var import_react55 = __toESM(require_react(), 1);
31811
31870
  var MIN_NUMBER_OF_ITEMS_FOR_SEARCH = 5;
31812
31871
  function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, hasMorePages: initialHasMorePages = !1, abortSignal, infoMessage, groupOrder }) {
31813
- let { exit: unmountInk } = use_app_default(), [searchTerm, setSearchTerm] = (0, import_react54.useState)(""), [searchResults, setSearchResults] = (0, import_react54.useState)(choices), canSearch = choices.length > MIN_NUMBER_OF_ITEMS_FOR_SEARCH, [hasMorePages, setHasMorePages] = (0, import_react54.useState)(initialHasMorePages), { promptState, setPromptState, answer, setAnswer } = usePrompt({
31872
+ let { exit: unmountInk } = use_app_default(), [searchTerm, setSearchTerm] = (0, import_react55.useState)(""), [searchResults, setSearchResults] = (0, import_react55.useState)(choices), canSearch = choices.length > MIN_NUMBER_OF_ITEMS_FOR_SEARCH, [hasMorePages, setHasMorePages] = (0, import_react55.useState)(initialHasMorePages), { promptState, setPromptState, answer, setAnswer } = usePrompt({
31814
31873
  initialAnswer: void 0
31815
- }), paginatedSearch = (0, import_react54.useCallback)(async (term) => await search(term), [search]), submitAnswer = (0, import_react54.useCallback)((answer2) => {
31874
+ }), paginatedSearch = (0, import_react55.useCallback)(async (term) => await search(term), [search]), submitAnswer = (0, import_react55.useCallback)((answer2) => {
31816
31875
  promptState === PromptState.Idle && (setAnswer(answer2), setPromptState(PromptState.Submitted));
31817
31876
  }, [promptState, setAnswer, setPromptState]);
31818
- (0, import_react54.useEffect)(() => {
31877
+ (0, import_react55.useEffect)(() => {
31819
31878
  promptState === PromptState.Submitted && answer && (setSearchTerm(""), unmountInk(), onSubmit(answer.value));
31820
31879
  }, [answer, onSubmit, promptState, unmountInk]);
31821
- let setLoadingWhenSlow = (0, import_react54.useRef)(), searchTermRef = (0, import_react54.useRef)("");
31880
+ let setLoadingWhenSlow = (0, import_react55.useRef)(), searchTermRef = (0, import_react55.useRef)("");
31822
31881
  searchTermRef.current = searchTerm;
31823
- let choicesRef = (0, import_react54.useRef)(choices);
31882
+ let choicesRef = (0, import_react55.useRef)(choices);
31824
31883
  choicesRef.current = choices;
31825
- let initialHasPagesRef = (0, import_react54.useRef)(initialHasMorePages);
31884
+ let initialHasPagesRef = (0, import_react55.useRef)(initialHasMorePages);
31826
31885
  initialHasPagesRef.current = initialHasMorePages;
31827
- let debounceSearch = import_react54.default.useMemo(() => throttle2((term) => {
31886
+ let debounceSearch = import_react55.default.useMemo(() => throttle2((term) => {
31828
31887
  setLoadingWhenSlow.current = setTimeout(() => {
31829
31888
  setPromptState(PromptState.Loading);
31830
31889
  }, 100), paginatedSearch(term).then((result) => {
@@ -31835,22 +31894,36 @@ function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, has
31835
31894
  clearTimeout(setLoadingWhenSlow.current);
31836
31895
  });
31837
31896
  }, 400, { leading: !0, trailing: !0 }), [paginatedSearch, setPromptState]);
31838
- return import_react54.default.createElement(PromptLayout, { message, state: promptState, infoTable, infoMessage, abortSignal, header: promptState !== PromptState.Submitted && canSearch ? import_react54.default.createElement(
31897
+ return import_react55.default.createElement(PromptLayout, { message, state: promptState, infoTable, infoMessage, abortSignal, header: promptState !== PromptState.Submitted && canSearch ? import_react55.default.createElement(
31839
31898
  Box_default,
31840
31899
  { marginLeft: 3 },
31841
- import_react54.default.createElement(TextInput, { value: searchTerm, onChange: (term) => {
31900
+ import_react55.default.createElement(TextInput, { value: searchTerm, onChange: (term) => {
31842
31901
  setSearchTerm(term), term.length > 0 ? debounceSearch(term) : (debounceSearch.cancel(), setPromptState(PromptState.Idle), setSearchResults(choices));
31843
31902
  }, placeholder: "Type to search..." })
31844
- ) : null, submittedAnswerLabel: answer?.label, input: import_react54.default.createElement(SelectInput, { items: searchResults, initialItems: choices, enableShortcuts: !1, emptyMessage: "No results found.", highlightedTerm: searchTerm, loading: promptState === PromptState.Loading, errorMessage: promptState === PromptState.Error ? "There has been an error while searching. Please try again later." : void 0, hasMorePages, morePagesMessage: "Find what you're looking for by typing its name.", onSubmit: submitAnswer, groupOrder }) });
31903
+ ) : null, submittedAnswerLabel: answer?.label, input: import_react55.default.createElement(SelectInput, { items: searchResults, initialItems: choices, enableShortcuts: !1, emptyMessage: "No results found.", highlightedTerm: searchTerm, loading: promptState === PromptState.Loading, errorMessage: promptState === PromptState.Error ? "There has been an error while searching. Please try again later." : void 0, hasMorePages, morePagesMessage: "Find what you're looking for by typing its name.", onSubmit: submitAnswer, groupOrder }) });
31845
31904
  }
31846
31905
 
31906
+ // ../cli-kit/dist/private/node/ui/components/SingleTask.js
31907
+ init_cjs_shims();
31908
+ var import_react56 = __toESM(require_react(), 1);
31909
+ var SingleTask = ({ taskPromise, title, noColor }) => {
31910
+ let [isDone, setIsDone] = (0, import_react56.useState)(!1), { exit: unmountInk } = use_app_default();
31911
+ return useExitOnCtrlC(), (0, import_react56.useEffect)(() => {
31912
+ taskPromise.then(() => {
31913
+ setIsDone(!0), unmountInk();
31914
+ }).catch((error) => {
31915
+ setIsDone(!0), unmountInk(error);
31916
+ });
31917
+ }, [taskPromise, unmountInk]), isDone ? null : import_react56.default.createElement(LoadingBar, { title, noColor });
31918
+ };
31919
+
31847
31920
  // ../cli-kit/dist/public/node/ui.js
31848
- var import_react55 = __toESM(require_react()), defaultUIDebugOptions = {
31921
+ var import_react57 = __toESM(require_react()), defaultUIDebugOptions = {
31849
31922
  skipTTYCheck: !1
31850
31923
  };
31851
31924
  async function renderConcurrent({ renderOptions, ...props }) {
31852
31925
  let abortSignal = props.abortSignal ?? new AbortController().signal;
31853
- return render2(import_react55.default.createElement(ConcurrentOutput, { ...props, abortSignal }), renderOptions);
31926
+ return render2(import_react57.default.createElement(ConcurrentOutput, { ...props, abortSignal }), renderOptions);
31854
31927
  }
31855
31928
  function renderInfo(options) {
31856
31929
  return alert({ ...options, type: "info" });
@@ -31865,12 +31938,12 @@ function renderError(options) {
31865
31938
  return alert({ ...options, type: "error" });
31866
31939
  }
31867
31940
  function renderFatalError(error, { renderOptions } = {}) {
31868
- return renderOnce(import_react55.default.createElement(FatalError2, { error }), { logLevel: "error", renderOptions });
31941
+ return renderOnce(import_react57.default.createElement(FatalError2, { error }), { logLevel: "error", renderOptions });
31869
31942
  }
31870
31943
  async function renderSelectPrompt({ renderOptions, isConfirmationPrompt, ...props }, uiDebugOptions = defaultUIDebugOptions) {
31871
31944
  return throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions), runWithTimer("cmd_all_timing_prompts_ms")(async () => {
31872
31945
  let selectedValue;
31873
- return await render2(import_react55.default.createElement(SelectPrompt, { ...props, onSubmit: (value) => {
31946
+ return await render2(import_react57.default.createElement(SelectPrompt, { ...props, onSubmit: (value) => {
31874
31947
  selectedValue = value;
31875
31948
  } }), {
31876
31949
  ...renderOptions,
@@ -31914,7 +31987,7 @@ async function renderAutocompletePrompt({ renderOptions, ...props }, uiDebugOpti
31914
31987
  };
31915
31988
  return runWithTimer("cmd_all_timing_prompts_ms")(async () => {
31916
31989
  let selectedValue;
31917
- return await render2(import_react55.default.createElement(AutocompletePrompt, { ...newProps, onSubmit: (value) => {
31990
+ return await render2(import_react57.default.createElement(AutocompletePrompt, { ...newProps, onSubmit: (value) => {
31918
31991
  selectedValue = value;
31919
31992
  } }), {
31920
31993
  ...renderOptions,
@@ -31923,21 +31996,31 @@ async function renderAutocompletePrompt({ renderOptions, ...props }, uiDebugOpti
31923
31996
  });
31924
31997
  }
31925
31998
  function renderTable({ renderOptions, ...props }) {
31926
- return renderOnce(import_react55.default.createElement(Table, { ...props }), { renderOptions });
31999
+ return renderOnce(import_react57.default.createElement(Table, { ...props }), { renderOptions });
31927
32000
  }
31928
- async function renderTasks(tasks, { renderOptions } = {}) {
32001
+ async function renderTasks(tasks, { renderOptions, noProgressBar } = {}) {
31929
32002
  return new Promise((resolve, reject) => {
31930
- render2(import_react55.default.createElement(Tasks, { tasks, onComplete: resolve }), {
32003
+ render2(import_react57.default.createElement(Tasks, { tasks, onComplete: resolve, noProgressBar }), {
31931
32004
  ...renderOptions,
31932
32005
  exitOnCtrlC: !1
31933
32006
  }).then(() => {
31934
32007
  }).catch(reject);
31935
32008
  });
31936
32009
  }
32010
+ async function renderSingleTask({ title, taskPromise }, { renderOptions } = {}) {
32011
+ let promise = typeof taskPromise == "function" ? taskPromise() : taskPromise, [_renderResult, taskResult] = await Promise.all([
32012
+ render2(import_react57.default.createElement(SingleTask, { title, taskPromise: promise }), {
32013
+ ...renderOptions,
32014
+ exitOnCtrlC: !1
32015
+ }),
32016
+ promise
32017
+ ]);
32018
+ return taskResult;
32019
+ }
31937
32020
  async function renderTextPrompt({ renderOptions, ...props }, uiDebugOptions = defaultUIDebugOptions) {
31938
32021
  return throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions), runWithTimer("cmd_all_timing_prompts_ms")(async () => {
31939
32022
  let enteredText = "";
31940
- return await render2(import_react55.default.createElement(TextPrompt, { ...props, onSubmit: (value) => {
32023
+ return await render2(import_react57.default.createElement(TextPrompt, { ...props, onSubmit: (value) => {
31941
32024
  enteredText = value;
31942
32025
  } }), {
31943
32026
  ...renderOptions,
@@ -31948,7 +32031,7 @@ async function renderTextPrompt({ renderOptions, ...props }, uiDebugOptions = de
31948
32031
  async function renderDangerousConfirmationPrompt({ renderOptions, ...props }, uiDebugOptions = defaultUIDebugOptions) {
31949
32032
  return throwInNonTTY({ message: props.message, stdin: renderOptions?.stdin }, uiDebugOptions), runWithTimer("cmd_all_timing_prompts_ms")(async () => {
31950
32033
  let confirmed;
31951
- return await render2(import_react55.default.createElement(DangerousConfirmationPrompt, { ...props, onSubmit: (value) => {
32034
+ return await render2(import_react57.default.createElement(DangerousConfirmationPrompt, { ...props, onSubmit: (value) => {
31952
32035
  confirmed = value;
31953
32036
  } }), {
31954
32037
  ...renderOptions,
@@ -31980,6 +32063,13 @@ This usually happens when running a command non-interactively, for example in a
31980
32063
 
31981
32064
  export {
31982
32065
  isTruthy,
32066
+ envPaths,
32067
+ environmentVariables,
32068
+ systemEnvironmentVariables,
32069
+ sessionConstants,
32070
+ bugsnagApiKey,
32071
+ reportingRateLimit,
32072
+ themeKitAccessDomain,
31983
32073
  AbortController,
31984
32074
  AbortSignal,
31985
32075
  createRuntimeMetadataContainer,
@@ -32003,7 +32093,7 @@ export {
32003
32093
  require_react_reconciler,
32004
32094
  require_constants,
32005
32095
  stripAnsi,
32006
- ansi_styles_default2 as ansi_styles_default,
32096
+ ansi_styles_default3 as ansi_styles_default,
32007
32097
  sliceAnsi,
32008
32098
  indentString,
32009
32099
  require_cli_boxes,
@@ -32027,6 +32117,7 @@ export {
32027
32117
  treeKill,
32028
32118
  render2 as render,
32029
32119
  handleCtrlC,
32120
+ require_supports_hyperlinks,
32030
32121
  Link,
32031
32122
  TabularData,
32032
32123
  Alert,
@@ -32092,6 +32183,7 @@ export {
32092
32183
  useAbortSignal,
32093
32184
  require_baseForOwn,
32094
32185
  require_baseEach,
32186
+ require_source,
32095
32187
  debounce,
32096
32188
  renderConcurrent,
32097
32189
  renderInfo,
@@ -32104,6 +32196,7 @@ export {
32104
32196
  renderAutocompletePrompt,
32105
32197
  renderTable,
32106
32198
  renderTasks,
32199
+ renderSingleTask,
32107
32200
  renderTextPrompt,
32108
32201
  renderDangerousConfirmationPrompt,
32109
32202
  keypress,
@@ -32118,6 +32211,7 @@ export {
32118
32211
  shouldReportErrorAsUnexpected,
32119
32212
  cleanSingleStackTracePath,
32120
32213
  import_ts_error,
32214
+ require_cross_spawn,
32121
32215
  npmRunPathEnv,
32122
32216
  mimicFunction,
32123
32217
  require_get_stream,
@@ -32192,23 +32286,6 @@ export {
32192
32286
  matchGlob,
32193
32287
  readdir,
32194
32288
  copyDirectoryContents,
32195
- envPaths,
32196
- logsFolder,
32197
- environmentVariables,
32198
- systemEnvironmentVariables,
32199
- sessionConstants,
32200
- bugsnagApiKey,
32201
- reportingRateLimit,
32202
- themeKitAccessDomain,
32203
- Environment,
32204
- serviceEnvironment,
32205
- spinFqdn,
32206
- isSpin,
32207
- isSpinEnvironment,
32208
- appPort,
32209
- appHost,
32210
- spinVariables,
32211
- fetchSpinPort,
32212
32289
  isTerminalInteractive,
32213
32290
  homeDirectory,
32214
32291
  isDevelopment,
@@ -32321,4 +32398,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
32321
32398
  * LICENSE file in the root directory of this source tree.
32322
32399
  *)
32323
32400
  */
32324
- //# sourceMappingURL=chunk-TAA5HGRT.js.map
32401
+ //# sourceMappingURL=chunk-B36FYNEM.js.map