From 061a986eb4843d69b28f0fcb48eebaabf1dc88a2 Mon Sep 17 00:00:00 2001 From: gkurt <6034931+gkurt@users.noreply.github.com> Date: Thu, 27 Aug 2026 15:10:57 +0000 Subject: [PATCH] chore: refresh the create scaffold bundle --- .../scaffold/Assets/Resources/react/index.js | 764 +++++++++--------- 1 file changed, 395 insertions(+), 369 deletions(-) diff --git a/packages/create/scaffold/Assets/Resources/react/index.js b/packages/create/scaffold/Assets/Resources/react/index.js index 639f9b46..958f2a3e 100644 --- a/packages/create/scaffold/Assets/Resources/react/index.js +++ b/packages/create/scaffold/Assets/Resources/react/index.js @@ -21,125 +21,256 @@ module.exports=function(i){return i[1];}; /***/ }, -/***/ "./node_modules/react-reconciler/cjs/react-reconciler-constants.production.js" +/***/ "./node_modules/scheduler/cjs/scheduler.production.js" (__unused_webpack_module, exports) { -var __webpack_unused_export__; /** * @license React - * react-reconciler-constants.production.js + * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */exports.ConcurrentRoot=1;exports.ContinuousEventPriority=8;exports.DefaultEventPriority=32;exports.DiscreteEventPriority=2;exports.IdleEventPriority=268435456;exports.LegacyRoot=0;__webpack_unused_export__=0; + */function push(heap,node){var index=heap.length;heap.push(node);a:for(;0>>1,parent=heap[parentIndex];if(0>>1;indexcompare(left,last))rightIndexcompare(right,left)?(heap[index]=right,heap[rightIndex]=last,index=rightIndex):(heap[index]=left,heap[leftIndex]=last,index=leftIndex);else if(rightIndexcompare(right,last))heap[index]=right,heap[rightIndex]=last,index=rightIndex;else break a;}}return first;}function compare(a,b){var diff=a.sortIndex-b.sortIndex;return 0!==diff?diff:a.id-b.id;}exports.unstable_now=void 0;if("object"===typeof performance&&"function"===typeof performance.now){var localPerformance=performance;exports.unstable_now=function(){return localPerformance.now();};}else{var localDate=Date,initialTime=localDate.now();exports.unstable_now=function(){return localDate.now()-initialTime;};}var taskQueue=[],timerQueue=[],taskIdCounter=1,currentTask=null,currentPriorityLevel=3,isPerformingWork=!1,isHostCallbackScheduled=!1,isHostTimeoutScheduled=!1,needsPaint=!1,localSetTimeout="function"===typeof setTimeout?setTimeout:null,localClearTimeout="function"===typeof clearTimeout?clearTimeout:null,localSetImmediate="undefined"!==typeof setImmediate?setImmediate:null;function advanceTimers(currentTime){for(var timer=peek(timerQueue);null!==timer;){if(null===timer.callback)pop(timerQueue);else if(timer.startTime<=currentTime)pop(timerQueue),timer.sortIndex=timer.expirationTime,push(taskQueue,timer);else break;timer=peek(timerQueue);}}function handleTimeout(currentTime){isHostTimeoutScheduled=!1;advanceTimers(currentTime);if(!isHostCallbackScheduled)if(null!==peek(taskQueue))isHostCallbackScheduled=!0,isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline());else{var firstTimer=peek(timerQueue);null!==firstTimer&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime);}}var isMessageLoopRunning=!1,taskTimeoutID=-1,frameInterval=5,startTime=-1;function shouldYieldToHost(){return needsPaint?!0:exports.unstable_now()-startTimecurrentTime&&shouldYieldToHost());){var callback=currentTask.callback;if("function"===typeof callback){currentTask.callback=null;currentPriorityLevel=currentTask.priorityLevel;var continuationCallback=callback(currentTask.expirationTime<=currentTime);currentTime=exports.unstable_now();if("function"===typeof continuationCallback){currentTask.callback=continuationCallback;advanceTimers(currentTime);hasMoreWork=!0;break b;}currentTask===peek(taskQueue)&&pop(taskQueue);advanceTimers(currentTime);}else pop(taskQueue);currentTask=peek(taskQueue);}if(null!==currentTask)hasMoreWork=!0;else{var firstTimer=peek(timerQueue);null!==firstTimer&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime);hasMoreWork=!1;}}break a;}finally{currentTask=null,currentPriorityLevel=previousPriorityLevel,isPerformingWork=!1;}hasMoreWork=void 0;}}finally{hasMoreWork?schedulePerformWorkUntilDeadline():isMessageLoopRunning=!1;}}}var schedulePerformWorkUntilDeadline;if("function"===typeof localSetImmediate)schedulePerformWorkUntilDeadline=function(){localSetImmediate(performWorkUntilDeadline);};else if("undefined"!==typeof MessageChannel){var channel=new MessageChannel(),port=channel.port2;channel.port1.onmessage=performWorkUntilDeadline;schedulePerformWorkUntilDeadline=function(){port.postMessage(null);};}else schedulePerformWorkUntilDeadline=function(){localSetTimeout(performWorkUntilDeadline,0);};function requestHostTimeout(callback,ms){taskTimeoutID=localSetTimeout(function(){callback(exports.unstable_now());},ms);}exports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(task){task.callback=null;};exports.unstable_forceFrameRate=function(fps){0>fps||125currentTime?(priorityLevel.sortIndex=options,push(timerQueue,priorityLevel),null===peek(taskQueue)&&priorityLevel===peek(timerQueue)&&(isHostTimeoutScheduled?(localClearTimeout(taskTimeoutID),taskTimeoutID=-1):isHostTimeoutScheduled=!0,requestHostTimeout(handleTimeout,options-currentTime))):(priorityLevel.sortIndex=timeout,push(taskQueue,priorityLevel),isHostCallbackScheduled||isPerformingWork||(isHostCallbackScheduled=!0,isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline())));return priorityLevel;};exports.unstable_shouldYield=shouldYieldToHost;exports.unstable_wrapCallback=function(callback){var parentPriorityLevel=currentPriorityLevel;return function(){var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=parentPriorityLevel;try{return callback.apply(this,arguments);}finally{currentPriorityLevel=previousPriorityLevel;}};}; /***/ }, -/***/ "./node_modules/react-reconciler/cjs/react-reconciler.production.js" +/***/ "./node_modules/scheduler/index.js" (module, __unused_webpack_exports, __webpack_require__) { -/** - * @license React - * react-reconciler.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */module.exports=function($$$config){function createFiber(tag,pendingProps,key,mode){return new FiberNode(tag,pendingProps,key,mode);}function noop(){}function formatProdErrorMessage(code){var url="https://react.dev/errors/"+code;if(1index$jscomp$0||(cursor.current=valueStack[index$jscomp$0],valueStack[index$jscomp$0]=null,index$jscomp$0--);}function push(cursor,value){index$jscomp$0++;valueStack[index$jscomp$0]=cursor.current;cursor.current=value;}function clz32Fallback(x){x>>>=0;return 0===x?32:31-(log$1(x)/LN2|0)|0;}function getHighestPriorityLanes(lanes){var pendingSyncLanes=lanes&42;if(0!==pendingSyncLanes)return pendingSyncLanes;switch(lanes&-lanes){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return lanes&261888;case 262144:case 524288:case 1048576:case 2097152:return lanes&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return lanes&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return lanes;}}function getNextLanes(root,wipLanes,rootHasPendingCommit){var pendingLanes=root.pendingLanes;if(0===pendingLanes)return 0;var nextLanes=0,suspendedLanes=root.suspendedLanes,pingedLanes=root.pingedLanes;root=root.warmLanes;var nonIdlePendingLanes=pendingLanes&134217727;0!==nonIdlePendingLanes?(pendingLanes=nonIdlePendingLanes&~suspendedLanes,0!==pendingLanes?nextLanes=getHighestPriorityLanes(pendingLanes):(pingedLanes&=nonIdlePendingLanes,0!==pingedLanes?nextLanes=getHighestPriorityLanes(pingedLanes):rootHasPendingCommit||(rootHasPendingCommit=nonIdlePendingLanes&~root,0!==rootHasPendingCommit&&(nextLanes=getHighestPriorityLanes(rootHasPendingCommit))))):(nonIdlePendingLanes=pendingLanes&~suspendedLanes,0!==nonIdlePendingLanes?nextLanes=getHighestPriorityLanes(nonIdlePendingLanes):0!==pingedLanes?nextLanes=getHighestPriorityLanes(pingedLanes):rootHasPendingCommit||(rootHasPendingCommit=pendingLanes&~root,0!==rootHasPendingCommit&&(nextLanes=getHighestPriorityLanes(rootHasPendingCommit))));return 0===nextLanes?0:0!==wipLanes&&wipLanes!==nextLanes&&0===(wipLanes&suspendedLanes)&&(suspendedLanes=nextLanes&-nextLanes,rootHasPendingCommit=wipLanes&-wipLanes,suspendedLanes>=rootHasPendingCommit||32===suspendedLanes&&0!==(rootHasPendingCommit&4194048))?wipLanes:nextLanes;}function checkIfRootIsPrerendering(root,renderLanes){return 0===(root.pendingLanes&~(root.suspendedLanes&~root.pingedLanes)&renderLanes);}function computeExpirationTime(lane,currentTime){switch(lane){case 1:case 2:case 4:case 8:case 64:return currentTime+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return currentTime+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1;}}function claimNextRetryLane(){var lane=nextRetryLane;nextRetryLane<<=1;0===(nextRetryLane&62914560)&&(nextRetryLane=4194304);return lane;}function createLaneMap(initial){for(var laneMap=[],i=0;31>i;i++)laneMap.push(initial);return laneMap;}function markRootUpdated$1(root,updateLane){root.pendingLanes|=updateLane;268435456!==updateLane&&(root.suspendedLanes=0,root.pingedLanes=0,root.warmLanes=0);}function markRootFinished(root,finishedLanes,remainingLanes,spawnedLane,updatedLanes,suspendedRetryLanes){var previouslyPendingLanes=root.pendingLanes;root.pendingLanes=remainingLanes;root.suspendedLanes=0;root.pingedLanes=0;root.warmLanes=0;root.expiredLanes&=remainingLanes;root.entangledLanes&=remainingLanes;root.errorRecoveryDisabledLanes&=remainingLanes;root.shellSuspendCounter=0;var entanglements=root.entanglements,expirationTimes=root.expirationTimes,hiddenUpdates=root.hiddenUpdates;for(remainingLanes=previouslyPendingLanes&~remainingLanes;0)":-1namePropDescriptor||sampleLines[RunInRootFrame]!==controlLines[namePropDescriptor]){var frame="\n"+sampleLines[RunInRootFrame].replace(" at new "," at ");fn.displayName&&frame.includes("")&&(frame=frame.replace("",fn.displayName));return frame;}while(1<=RunInRootFrame&&0<=namePropDescriptor);}break;}}}finally{reentry=!1,Error.prepareStackTrace=previousPrepareStackTrace;}return(previousPrepareStackTrace=fn?fn.displayName||fn.name:"")?describeBuiltInComponentFrame(previousPrepareStackTrace):"";}function describeFiber(fiber,childFiber){switch(fiber.tag){case 26:case 27:case 5:return describeBuiltInComponentFrame(fiber.type);case 16:return describeBuiltInComponentFrame("Lazy");case 13:return fiber.child!==childFiber&&null!==childFiber?describeBuiltInComponentFrame("Suspense Fallback"):describeBuiltInComponentFrame("Suspense");case 19:return describeBuiltInComponentFrame("SuspenseList");case 0:case 15:return describeNativeComponentFrame(fiber.type,!1);case 11:return describeNativeComponentFrame(fiber.type.render,!1);case 1:return describeNativeComponentFrame(fiber.type,!0);case 31:return describeBuiltInComponentFrame("Activity");default:return"";}}function getStackByFiberInDevAndProd(workInProgress){try{var info="",previous=null;do info+=describeFiber(workInProgress,previous),previous=workInProgress,workInProgress=workInProgress.return;while(workInProgress);return info;}catch(x){return"\nError generating stack: "+x.message+"\n"+x.stack;}}function createCapturedValueAtFiber(value,source){if("object"===typeof value&&null!==value){var existing=CapturedStacks.get(value);if(void 0!==existing)return existing;source={value:value,source:source,stack:getStackByFiberInDevAndProd(source)};CapturedStacks.set(value,source);return source;}return{value:value,source:source,stack:getStackByFiberInDevAndProd(source)};}function pushTreeFork(workInProgress,totalChildren){forkStack[forkStackIndex++]=treeForkCount;forkStack[forkStackIndex++]=treeForkProvider;treeForkProvider=workInProgress;treeForkCount=totalChildren;}function pushTreeId(workInProgress,totalChildren,index){idStack[idStackIndex++]=treeContextId;idStack[idStackIndex++]=treeContextOverflow;idStack[idStackIndex++]=treeContextProvider;treeContextProvider=workInProgress;var baseIdWithLeadingBit=treeContextId;workInProgress=treeContextOverflow;var baseLength=32-clz32(baseIdWithLeadingBit)-1;baseIdWithLeadingBit&=~(1<>=numberOfOverflowBits;baseLength-=numberOfOverflowBits;treeContextId=1<<32-clz32(totalChildren)+baseLength|index<newIdx?(nextOldFiber=oldFiber,oldFiber=null):nextOldFiber=oldFiber.sibling;var newFiber=updateSlot(returnFiber,oldFiber,newChildren[newIdx],lanes);if(null===newFiber){null===oldFiber&&(oldFiber=nextOldFiber);break;}shouldTrackSideEffects&&oldFiber&&null===newFiber.alternate&&deleteChild(returnFiber,oldFiber);currentFirstChild=placeChild(newFiber,currentFirstChild,newIdx);null===previousNewFiber?resultingFirstChild=newFiber:previousNewFiber.sibling=newFiber;previousNewFiber=newFiber;oldFiber=nextOldFiber;}if(newIdx===newChildren.length)return deleteRemainingChildren(returnFiber,oldFiber),isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild;if(null===oldFiber){for(;newIdxnewIdx?(nextOldFiber=oldFiber,oldFiber=null):nextOldFiber=oldFiber.sibling;var newFiber=updateSlot(returnFiber,oldFiber,step.value,lanes);if(null===newFiber){null===oldFiber&&(oldFiber=nextOldFiber);break;}shouldTrackSideEffects&&oldFiber&&null===newFiber.alternate&&deleteChild(returnFiber,oldFiber);currentFirstChild=placeChild(newFiber,currentFirstChild,newIdx);null===previousNewFiber?resultingFirstChild=newFiber:previousNewFiber.sibling=newFiber;previousNewFiber=newFiber;oldFiber=nextOldFiber;}if(step.done)return deleteRemainingChildren(returnFiber,oldFiber),isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild;if(null===oldFiber){for(;!step.done;newIdx++,step=newChildren.next())step=createChild(returnFiber,step.value,lanes),null!==step&&(currentFirstChild=placeChild(step,currentFirstChild,newIdx),null===previousNewFiber?resultingFirstChild=step:previousNewFiber.sibling=step,previousNewFiber=step);isHydrating&&pushTreeFork(returnFiber,newIdx);return resultingFirstChild;}for(oldFiber=mapRemainingChildren(oldFiber);!step.done;newIdx++,step=newChildren.next())step=updateFromMap(oldFiber,returnFiber,newIdx,step.value,lanes),null!==step&&(shouldTrackSideEffects&&null!==step.alternate&&oldFiber.delete(null===step.key?newIdx:step.key),currentFirstChild=placeChild(step,currentFirstChild,newIdx),null===previousNewFiber?resultingFirstChild=step:previousNewFiber.sibling=step,previousNewFiber=step);shouldTrackSideEffects&&oldFiber.forEach(function(child){return deleteChild(returnFiber,child);});isHydrating&&pushTreeFork(returnFiber,newIdx);return resultingFirstChild;}function reconcileChildFibersImpl(returnFiber,currentFirstChild,newChild,lanes){"object"===typeof newChild&&null!==newChild&&newChild.type===REACT_FRAGMENT_TYPE&&null===newChild.key&&(newChild=newChild.props.children);if("object"===typeof newChild&&null!==newChild){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:a:{for(var key=newChild.key;null!==currentFirstChild;){if(currentFirstChild.key===key){key=newChild.type;if(key===REACT_FRAGMENT_TYPE){if(7===currentFirstChild.tag){deleteRemainingChildren(returnFiber,currentFirstChild.sibling);lanes=useFiber(currentFirstChild,newChild.props.children);lanes.return=returnFiber;returnFiber=lanes;break a;}}else if(currentFirstChild.elementType===key||"object"===typeof key&&null!==key&&key.$$typeof===REACT_LAZY_TYPE&&resolveLazy(key)===currentFirstChild.type){deleteRemainingChildren(returnFiber,currentFirstChild.sibling);lanes=useFiber(currentFirstChild,newChild.props);coerceRef(lanes,newChild);lanes.return=returnFiber;returnFiber=lanes;break a;}deleteRemainingChildren(returnFiber,currentFirstChild);break;}else deleteChild(returnFiber,currentFirstChild);currentFirstChild=currentFirstChild.sibling;}newChild.type===REACT_FRAGMENT_TYPE?(lanes=createFiberFromFragment(newChild.props.children,returnFiber.mode,lanes,newChild.key),lanes.return=returnFiber,returnFiber=lanes):(lanes=createFiberFromTypeAndProps(newChild.type,newChild.key,newChild.props,null,returnFiber.mode,lanes),coerceRef(lanes,newChild),lanes.return=returnFiber,returnFiber=lanes);}return placeSingleChild(returnFiber);case REACT_PORTAL_TYPE:a:{for(key=newChild.key;null!==currentFirstChild;){if(currentFirstChild.key===key){if(4===currentFirstChild.tag&¤tFirstChild.stateNode.containerInfo===newChild.containerInfo&¤tFirstChild.stateNode.implementation===newChild.implementation){deleteRemainingChildren(returnFiber,currentFirstChild.sibling);lanes=useFiber(currentFirstChild,newChild.children||[]);lanes.return=returnFiber;returnFiber=lanes;break a;}else{deleteRemainingChildren(returnFiber,currentFirstChild);break;}}else deleteChild(returnFiber,currentFirstChild);currentFirstChild=currentFirstChild.sibling;}lanes=createFiberFromPortal(newChild,returnFiber.mode,lanes);lanes.return=returnFiber;returnFiber=lanes;}return placeSingleChild(returnFiber);case REACT_LAZY_TYPE:return newChild=resolveLazy(newChild),reconcileChildFibersImpl(returnFiber,currentFirstChild,newChild,lanes);}if(isArrayImpl(newChild))return reconcileChildrenArray(returnFiber,currentFirstChild,newChild,lanes);if(getIteratorFn(newChild)){key=getIteratorFn(newChild);if("function"!==typeof key)throw Error(formatProdErrorMessage(150));newChild=key.call(newChild);return reconcileChildrenIterator(returnFiber,currentFirstChild,newChild,lanes);}if("function"===typeof newChild.then)return reconcileChildFibersImpl(returnFiber,currentFirstChild,unwrapThenable(newChild),lanes);if(newChild.$$typeof===REACT_CONTEXT_TYPE)return reconcileChildFibersImpl(returnFiber,currentFirstChild,readContextDuringReconciliation(returnFiber,newChild),lanes);throwOnInvalidObjectTypeImpl(returnFiber,newChild);}return"string"===typeof newChild&&""!==newChild||"number"===typeof newChild||"bigint"===typeof newChild?(newChild=""+newChild,null!==currentFirstChild&&6===currentFirstChild.tag?(deleteRemainingChildren(returnFiber,currentFirstChild.sibling),lanes=useFiber(currentFirstChild,newChild),lanes.return=returnFiber,returnFiber=lanes):(deleteRemainingChildren(returnFiber,currentFirstChild),lanes=createFiberFromText(newChild,returnFiber.mode,lanes),lanes.return=returnFiber,returnFiber=lanes),placeSingleChild(returnFiber)):deleteRemainingChildren(returnFiber,currentFirstChild);}return function(returnFiber,currentFirstChild,newChild,lanes){try{thenableIndexCounter$1=0;var firstChildFiber=reconcileChildFibersImpl(returnFiber,currentFirstChild,newChild,lanes);thenableState$1=null;return firstChildFiber;}catch(x){if(x===SuspenseException||x===SuspenseActionException)throw x;var fiber=createFiber(29,x,null,returnFiber.mode);fiber.lanes=lanes;fiber.return=returnFiber;return fiber;}finally{}};}function finishQueueingConcurrentUpdates(){for(var endIndex=concurrentQueuesIndex,i=concurrentlyUpdatedLanes=concurrentQueuesIndex=0;ipreviousPriority?previousPriority:8);var prevTransition=ReactSharedInternals.T,currentTransition={};ReactSharedInternals.T=currentTransition;dispatchOptimisticSetState(fiber,!1,queue,pendingState);try{var returnValue=callback(),onStartTransitionFinish=ReactSharedInternals.S;null!==onStartTransitionFinish&&onStartTransitionFinish(currentTransition,returnValue);if(null!==returnValue&&"object"===typeof returnValue&&"function"===typeof returnValue.then){var thenableForFinishedState=chainThenableValue(returnValue,finishedState);dispatchSetStateInternal(fiber,queue,thenableForFinishedState,requestUpdateLane(fiber));}else dispatchSetStateInternal(fiber,queue,finishedState,requestUpdateLane(fiber));}catch(error){dispatchSetStateInternal(fiber,queue,{then:function(){},status:"rejected",reason:error},requestUpdateLane());}finally{setCurrentUpdatePriority(previousPriority),null!==prevTransition&&null!==currentTransition.types&&(prevTransition.types=currentTransition.types),ReactSharedInternals.T=prevTransition;}}function ensureFormComponentIsStateful(formFiber){var existingStateHook=formFiber.memoizedState;if(null!==existingStateHook)return existingStateHook;existingStateHook={memoizedState:NotPendingTransition,baseState:NotPendingTransition,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:NotPendingTransition},next:null};var initialResetState={};existingStateHook.next={memoizedState:initialResetState,baseState:initialResetState,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:initialResetState},next:null};formFiber.memoizedState=existingStateHook;formFiber=formFiber.alternate;null!==formFiber&&(formFiber.memoizedState=existingStateHook);return existingStateHook;}function useHostTransitionStatus(){return readContext(HostTransitionContext);}function updateId(){return updateWorkInProgressHook().memoizedState;}function updateRefresh(){return updateWorkInProgressHook().memoizedState;}function refreshCache(fiber){for(var provider=fiber.return;null!==provider;){switch(provider.tag){case 24:case 3:var lane=requestUpdateLane();fiber=createUpdate(lane);var root=enqueueUpdate(provider,fiber,lane);null!==root&&(scheduleUpdateOnFiber(root,provider,lane),entangleTransitions(root,provider,lane));provider={cache:createCache()};fiber.payload=provider;return;}provider=provider.return;}}function dispatchReducerAction(fiber,queue,action){var lane=requestUpdateLane();action={lane:lane,revertLane:0,gesture:null,action:action,hasEagerState:!1,eagerState:null,next:null};isRenderPhaseUpdate(fiber)?enqueueRenderPhaseUpdate(queue,action):(action=enqueueConcurrentHookUpdate(fiber,queue,action,lane),null!==action&&(scheduleUpdateOnFiber(action,fiber,lane),entangleTransitionUpdate(action,queue,lane)));}function dispatchSetState(fiber,queue,action){var lane=requestUpdateLane();dispatchSetStateInternal(fiber,queue,action,lane);}function dispatchSetStateInternal(fiber,queue,action,lane){var update={lane:lane,revertLane:0,gesture:null,action:action,hasEagerState:!1,eagerState:null,next:null};if(isRenderPhaseUpdate(fiber))enqueueRenderPhaseUpdate(queue,update);else{var alternate=fiber.alternate;if(0===fiber.lanes&&(null===alternate||0===alternate.lanes)&&(alternate=queue.lastRenderedReducer,null!==alternate))try{var currentState=queue.lastRenderedState,eagerState=alternate(currentState,action);update.hasEagerState=!0;update.eagerState=eagerState;if(objectIs(eagerState,currentState))return enqueueUpdate$1(fiber,queue,update,0),null===workInProgressRoot&&finishQueueingConcurrentUpdates(),!1;}catch(error){}finally{}action=enqueueConcurrentHookUpdate(fiber,queue,update,lane);if(null!==action)return scheduleUpdateOnFiber(action,fiber,lane),entangleTransitionUpdate(action,queue,lane),!0;}return!1;}function dispatchOptimisticSetState(fiber,throwIfDuringRender,queue,action){action={lane:2,revertLane:requestTransitionLane(),gesture:null,action:action,hasEagerState:!1,eagerState:null,next:null};if(isRenderPhaseUpdate(fiber)){if(throwIfDuringRender)throw Error(formatProdErrorMessage(479));}else throwIfDuringRender=enqueueConcurrentHookUpdate(fiber,queue,action,2),null!==throwIfDuringRender&&scheduleUpdateOnFiber(throwIfDuringRender,fiber,2);}function isRenderPhaseUpdate(fiber){var alternate=fiber.alternate;return fiber===currentlyRenderingFiber||null!==alternate&&alternate===currentlyRenderingFiber;}function enqueueRenderPhaseUpdate(queue,update){didScheduleRenderPhaseUpdateDuringThisPass=didScheduleRenderPhaseUpdate=!0;var pending=queue.pending;null===pending?update.next=update:(update.next=pending.next,pending.next=update);queue.pending=update;}function entangleTransitionUpdate(root,queue,lane){if(0!==(lane&4194048)){var queueLanes=queue.lanes;queueLanes&=root.pendingLanes;lane|=queueLanes;queue.lanes=lane;markRootEntangled(root,lane);}}function applyDerivedStateFromProps(workInProgress,ctor,getDerivedStateFromProps,nextProps){ctor=workInProgress.memoizedState;getDerivedStateFromProps=getDerivedStateFromProps(nextProps,ctor);getDerivedStateFromProps=null===getDerivedStateFromProps||void 0===getDerivedStateFromProps?ctor:assign({},ctor,getDerivedStateFromProps);workInProgress.memoizedState=getDerivedStateFromProps;0===workInProgress.lanes&&(workInProgress.updateQueue.baseState=getDerivedStateFromProps);}function checkShouldComponentUpdate(workInProgress,ctor,oldProps,newProps,oldState,newState,nextContext){workInProgress=workInProgress.stateNode;return"function"===typeof workInProgress.shouldComponentUpdate?workInProgress.shouldComponentUpdate(newProps,newState,nextContext):ctor.prototype&&ctor.prototype.isPureReactComponent?!shallowEqual(oldProps,newProps)||!shallowEqual(oldState,newState):!0;}function callComponentWillReceiveProps(workInProgress,instance,newProps,nextContext){workInProgress=instance.state;"function"===typeof instance.componentWillReceiveProps&&instance.componentWillReceiveProps(newProps,nextContext);"function"===typeof instance.UNSAFE_componentWillReceiveProps&&instance.UNSAFE_componentWillReceiveProps(newProps,nextContext);instance.state!==workInProgress&&classComponentUpdater.enqueueReplaceState(instance,instance.state,null);}function resolveClassComponentProps(Component,baseProps){var newProps=baseProps;if("ref"in baseProps){newProps={};for(var propName in baseProps)"ref"!==propName&&(newProps[propName]=baseProps[propName]);}if(Component=Component.defaultProps){newProps===baseProps&&(newProps=assign({},newProps));for(var propName$57 in Component)void 0===newProps[propName$57]&&(newProps[propName$57]=Component[propName$57]);}return newProps;}function logUncaughtError(root,errorInfo){try{var onUncaughtError=root.onUncaughtError;onUncaughtError(errorInfo.value,{componentStack:errorInfo.stack});}catch(e){setTimeout(function(){throw e;});}}function logCaughtError(root,boundary,errorInfo){try{var onCaughtError=root.onCaughtError;onCaughtError(errorInfo.value,{componentStack:errorInfo.stack,errorBoundary:1===boundary.tag?boundary.stateNode:null});}catch(e){setTimeout(function(){throw e;});}}function createRootErrorUpdate(root,errorInfo,lane){lane=createUpdate(lane);lane.tag=3;lane.payload={element:null};lane.callback=function(){logUncaughtError(root,errorInfo);};return lane;}function createClassErrorUpdate(lane){lane=createUpdate(lane);lane.tag=3;return lane;}function initializeClassErrorUpdate(update,root,fiber,errorInfo){var getDerivedStateFromError=fiber.type.getDerivedStateFromError;if("function"===typeof getDerivedStateFromError){var error=errorInfo.value;update.payload=function(){return getDerivedStateFromError(error);};update.callback=function(){logCaughtError(root,fiber,errorInfo);};}var inst=fiber.stateNode;null!==inst&&"function"===typeof inst.componentDidCatch&&(update.callback=function(){logCaughtError(root,fiber,errorInfo);"function"!==typeof getDerivedStateFromError&&(null===legacyErrorBoundariesThatAlreadyFailed?legacyErrorBoundariesThatAlreadyFailed=new Set([this]):legacyErrorBoundariesThatAlreadyFailed.add(this));var stack=errorInfo.stack;this.componentDidCatch(errorInfo.value,{componentStack:null!==stack?stack:""});});}function throwException(root,returnFiber,sourceFiber,value,rootRenderLanes){sourceFiber.flags|=32768;if(null!==value&&"object"===typeof value&&"function"===typeof value.then){returnFiber=sourceFiber.alternate;null!==returnFiber&&propagateParentContextChanges(returnFiber,sourceFiber,rootRenderLanes,!0);sourceFiber=suspenseHandlerStackCursor.current;if(null!==sourceFiber){switch(sourceFiber.tag){case 31:case 13:return null===shellBoundary?renderDidSuspendDelayIfPossible():null===sourceFiber.alternate&&0===workInProgressRootExitStatus&&(workInProgressRootExitStatus=3),sourceFiber.flags&=-257,sourceFiber.flags|=65536,sourceFiber.lanes=rootRenderLanes,value===noopSuspenseyCommitThenable?sourceFiber.flags|=16384:(returnFiber=sourceFiber.updateQueue,null===returnFiber?sourceFiber.updateQueue=new Set([value]):returnFiber.add(value),attachPingListener(root,value,rootRenderLanes)),!1;case 22:return sourceFiber.flags|=65536,value===noopSuspenseyCommitThenable?sourceFiber.flags|=16384:(returnFiber=sourceFiber.updateQueue,null===returnFiber?(returnFiber={transitions:null,markerInstances:null,retryQueue:new Set([value])},sourceFiber.updateQueue=returnFiber):(sourceFiber=returnFiber.retryQueue,null===sourceFiber?returnFiber.retryQueue=new Set([value]):sourceFiber.add(value)),attachPingListener(root,value,rootRenderLanes)),!1;}throw Error(formatProdErrorMessage(435,sourceFiber.tag));}attachPingListener(root,value,rootRenderLanes);renderDidSuspendDelayIfPossible();return!1;}if(isHydrating)return returnFiber=suspenseHandlerStackCursor.current,null!==returnFiber?(0===(returnFiber.flags&65536)&&(returnFiber.flags|=256),returnFiber.flags|=65536,returnFiber.lanes=rootRenderLanes,value!==HydrationMismatchException&&(root=Error(formatProdErrorMessage(422),{cause:value}),queueHydrationError(createCapturedValueAtFiber(root,sourceFiber)))):(value!==HydrationMismatchException&&(returnFiber=Error(formatProdErrorMessage(423),{cause:value}),queueHydrationError(createCapturedValueAtFiber(returnFiber,sourceFiber))),root=root.current.alternate,root.flags|=65536,rootRenderLanes&=-rootRenderLanes,root.lanes|=rootRenderLanes,value=createCapturedValueAtFiber(value,sourceFiber),rootRenderLanes=createRootErrorUpdate(root.stateNode,value,rootRenderLanes),enqueueCapturedUpdate(root,rootRenderLanes),4!==workInProgressRootExitStatus&&(workInProgressRootExitStatus=2)),!1;var wrapperError=Error(formatProdErrorMessage(520),{cause:value});wrapperError=createCapturedValueAtFiber(wrapperError,sourceFiber);null===workInProgressRootConcurrentErrors?workInProgressRootConcurrentErrors=[wrapperError]:workInProgressRootConcurrentErrors.push(wrapperError);4!==workInProgressRootExitStatus&&(workInProgressRootExitStatus=2);if(null===returnFiber)return!0;value=createCapturedValueAtFiber(value,sourceFiber);sourceFiber=returnFiber;do{switch(sourceFiber.tag){case 3:return sourceFiber.flags|=65536,root=rootRenderLanes&-rootRenderLanes,sourceFiber.lanes|=root,root=createRootErrorUpdate(sourceFiber.stateNode,value,root),enqueueCapturedUpdate(sourceFiber,root),!1;case 1:if(returnFiber=sourceFiber.type,wrapperError=sourceFiber.stateNode,0===(sourceFiber.flags&128)&&("function"===typeof returnFiber.getDerivedStateFromError||null!==wrapperError&&"function"===typeof wrapperError.componentDidCatch&&(null===legacyErrorBoundariesThatAlreadyFailed||!legacyErrorBoundariesThatAlreadyFailed.has(wrapperError))))return sourceFiber.flags|=65536,rootRenderLanes&=-rootRenderLanes,sourceFiber.lanes|=rootRenderLanes,rootRenderLanes=createClassErrorUpdate(rootRenderLanes),initializeClassErrorUpdate(rootRenderLanes,root,sourceFiber,value),enqueueCapturedUpdate(sourceFiber,rootRenderLanes),!1;}sourceFiber=sourceFiber.return;}while(null!==sourceFiber);return!1;}function reconcileChildren(current,workInProgress,nextChildren,renderLanes){workInProgress.child=null===current?mountChildFibers(workInProgress,null,nextChildren,renderLanes):reconcileChildFibers(workInProgress,current.child,nextChildren,renderLanes);}function updateForwardRef(current,workInProgress,Component,nextProps,renderLanes){Component=Component.render;var ref=workInProgress.ref;if("ref"in nextProps){var propsWithoutRef={};for(var key in nextProps)"ref"!==key&&(propsWithoutRef[key]=nextProps[key]);}else propsWithoutRef=nextProps;prepareToReadContext(workInProgress);nextProps=renderWithHooks(current,workInProgress,Component,propsWithoutRef,ref,renderLanes);key=checkDidRenderIdHook();if(null!==current&&!didReceiveUpdate)return bailoutHooks(current,workInProgress,renderLanes),bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);isHydrating&&key&&pushMaterializedTreeId(workInProgress);workInProgress.flags|=1;reconcileChildren(current,workInProgress,nextProps,renderLanes);return workInProgress.child;}function updateMemoComponent(current,workInProgress,Component,nextProps,renderLanes){if(null===current){var type=Component.type;if("function"===typeof type&&!shouldConstruct(type)&&void 0===type.defaultProps&&null===Component.compare)return workInProgress.tag=15,workInProgress.type=type,updateSimpleMemoComponent(current,workInProgress,type,nextProps,renderLanes);current=createFiberFromTypeAndProps(Component.type,null,nextProps,workInProgress,workInProgress.mode,renderLanes);current.ref=workInProgress.ref;current.return=workInProgress;return workInProgress.child=current;}type=current.child;if(!checkScheduledUpdateOrContext(current,renderLanes)){var prevProps=type.memoizedProps;Component=Component.compare;Component=null!==Component?Component:shallowEqual;if(Component(prevProps,nextProps)&¤t.ref===workInProgress.ref)return bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);}workInProgress.flags|=1;current=createWorkInProgress(type,nextProps);current.ref=workInProgress.ref;current.return=workInProgress;return workInProgress.child=current;}function updateSimpleMemoComponent(current,workInProgress,Component,nextProps,renderLanes){if(null!==current){var prevProps=current.memoizedProps;if(shallowEqual(prevProps,nextProps)&¤t.ref===workInProgress.ref)if(didReceiveUpdate=!1,workInProgress.pendingProps=nextProps=prevProps,checkScheduledUpdateOrContext(current,renderLanes))0!==(current.flags&131072)&&(didReceiveUpdate=!0);else return workInProgress.lanes=current.lanes,bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);}return updateFunctionComponent(current,workInProgress,Component,nextProps,renderLanes);}function updateOffscreenComponent(current,workInProgress,renderLanes,nextProps){var nextChildren=nextProps.children,prevState=null!==current?current.memoizedState:null;null===current&&null===workInProgress.stateNode&&(workInProgress.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null});if("hidden"===nextProps.mode){if(0!==(workInProgress.flags&128)){prevState=null!==prevState?prevState.baseLanes|renderLanes:renderLanes;if(null!==current){nextProps=workInProgress.child=current.child;for(nextChildren=0;null!==nextProps;)nextChildren=nextChildren|nextProps.lanes|nextProps.childLanes,nextProps=nextProps.sibling;nextProps=nextChildren&~prevState;}else nextProps=0,workInProgress.child=null;return deferHiddenOffscreenComponent(current,workInProgress,prevState,renderLanes,nextProps);}if(0!==(renderLanes&536870912))workInProgress.memoizedState={baseLanes:0,cachePool:null},null!==current&&pushTransition(workInProgress,null!==prevState?prevState.cachePool:null),null!==prevState?pushHiddenContext(workInProgress,prevState):reuseHiddenContextOnStack(),pushOffscreenSuspenseHandler(workInProgress);else return nextProps=workInProgress.lanes=536870912,deferHiddenOffscreenComponent(current,workInProgress,null!==prevState?prevState.baseLanes|renderLanes:renderLanes,renderLanes,nextProps);}else null!==prevState?(pushTransition(workInProgress,prevState.cachePool),pushHiddenContext(workInProgress,prevState),reuseSuspenseHandlerOnStack(workInProgress),workInProgress.memoizedState=null):(null!==current&&pushTransition(workInProgress,null),reuseHiddenContextOnStack(),reuseSuspenseHandlerOnStack(workInProgress));reconcileChildren(current,workInProgress,nextChildren,renderLanes);return workInProgress.child;}function bailoutOffscreenComponent(current,workInProgress){null!==current&&22===current.tag||null!==workInProgress.stateNode||(workInProgress.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null});return workInProgress.sibling;}function deferHiddenOffscreenComponent(current,workInProgress,nextBaseLanes,renderLanes,remainingChildLanes){var JSCompiler_inline_result=peekCacheFromPool();JSCompiler_inline_result=null===JSCompiler_inline_result?null:{parent:isPrimaryRenderer?CacheContext._currentValue:CacheContext._currentValue2,pool:JSCompiler_inline_result};workInProgress.memoizedState={baseLanes:nextBaseLanes,cachePool:JSCompiler_inline_result};null!==current&&pushTransition(workInProgress,null);reuseHiddenContextOnStack();pushOffscreenSuspenseHandler(workInProgress);null!==current&&propagateParentContextChanges(current,workInProgress,renderLanes,!0);workInProgress.childLanes=remainingChildLanes;return null;}function mountActivityChildren(workInProgress,nextProps){nextProps=mountWorkInProgressOffscreenFiber({mode:nextProps.mode,children:nextProps.children},workInProgress.mode);nextProps.ref=workInProgress.ref;workInProgress.child=nextProps;nextProps.return=workInProgress;return nextProps;}function retryActivityComponentWithoutHydrating(current,workInProgress,renderLanes){reconcileChildFibers(workInProgress,current.child,null,renderLanes);current=mountActivityChildren(workInProgress,workInProgress.pendingProps);current.flags|=2;popSuspenseHandler(workInProgress);workInProgress.memoizedState=null;return current;}function updateActivityComponent(current,workInProgress,renderLanes){var nextProps=workInProgress.pendingProps,didSuspend=0!==(workInProgress.flags&128);workInProgress.flags&=-129;if(null===current){if(isHydrating){if("hidden"===nextProps.mode)return current=mountActivityChildren(workInProgress,nextProps),workInProgress.lanes=536870912,bailoutOffscreenComponent(null,current);pushDehydratedActivitySuspenseHandler(workInProgress);(current=nextHydratableInstance)?(current=canHydrateActivityInstance(current,rootOrSingletonContext),null!==current&&(workInProgress.memoizedState={dehydrated:current,treeContext:null!==treeContextProvider?{id:treeContextId,overflow:treeContextOverflow}:null,retryLane:536870912,hydrationErrors:null},renderLanes=createFiberFromDehydratedFragment(current),renderLanes.return=workInProgress,workInProgress.child=renderLanes,hydrationParentFiber=workInProgress,nextHydratableInstance=null)):current=null;if(null===current)throw throwOnHydrationMismatch(workInProgress);workInProgress.lanes=536870912;return null;}return mountActivityChildren(workInProgress,nextProps);}var prevState=current.memoizedState;if(null!==prevState){var dehydrated=prevState.dehydrated;pushDehydratedActivitySuspenseHandler(workInProgress);if(didSuspend){if(workInProgress.flags&256)workInProgress.flags&=-257,workInProgress=retryActivityComponentWithoutHydrating(current,workInProgress,renderLanes);else if(null!==workInProgress.memoizedState)workInProgress.child=current.child,workInProgress.flags|=128,workInProgress=null;else throw Error(formatProdErrorMessage(558));}else if(didReceiveUpdate||propagateParentContextChanges(current,workInProgress,renderLanes,!1),didSuspend=0!==(renderLanes¤t.childLanes),didReceiveUpdate||didSuspend){nextProps=workInProgressRoot;if(null!==nextProps&&(dehydrated=getBumpedLaneForHydration(nextProps,renderLanes),0!==dehydrated&&dehydrated!==prevState.retryLane))throw prevState.retryLane=dehydrated,enqueueConcurrentRenderForLane(current,dehydrated),scheduleUpdateOnFiber(nextProps,current,dehydrated),SelectiveHydrationException;renderDidSuspendDelayIfPossible();workInProgress=retryActivityComponentWithoutHydrating(current,workInProgress,renderLanes);}else current=prevState.treeContext,supportsHydration&&(nextHydratableInstance=getFirstHydratableChildWithinActivityInstance(dehydrated),hydrationParentFiber=workInProgress,isHydrating=!0,hydrationErrors=null,rootOrSingletonContext=!1,null!==current&&restoreSuspendedTreeContext(workInProgress,current)),workInProgress=mountActivityChildren(workInProgress,nextProps),workInProgress.flags|=4096;return workInProgress;}current=createWorkInProgress(current.child,{mode:nextProps.mode,children:nextProps.children});current.ref=workInProgress.ref;workInProgress.child=current;current.return=workInProgress;return current;}function markRef(current,workInProgress){var ref=workInProgress.ref;if(null===ref)null!==current&&null!==current.ref&&(workInProgress.flags|=4194816);else{if("function"!==typeof ref&&"object"!==typeof ref)throw Error(formatProdErrorMessage(284));if(null===current||current.ref!==ref)workInProgress.flags|=4194816;}}function updateFunctionComponent(current,workInProgress,Component,nextProps,renderLanes){prepareToReadContext(workInProgress);Component=renderWithHooks(current,workInProgress,Component,nextProps,void 0,renderLanes);nextProps=checkDidRenderIdHook();if(null!==current&&!didReceiveUpdate)return bailoutHooks(current,workInProgress,renderLanes),bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);isHydrating&&nextProps&&pushMaterializedTreeId(workInProgress);workInProgress.flags|=1;reconcileChildren(current,workInProgress,Component,renderLanes);return workInProgress.child;}function replayFunctionComponent(current,workInProgress,nextProps,Component,secondArg,renderLanes){prepareToReadContext(workInProgress);workInProgress.updateQueue=null;nextProps=renderWithHooksAgain(workInProgress,Component,nextProps,secondArg);finishRenderingHooks(current);Component=checkDidRenderIdHook();if(null!==current&&!didReceiveUpdate)return bailoutHooks(current,workInProgress,renderLanes),bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);isHydrating&&Component&&pushMaterializedTreeId(workInProgress);workInProgress.flags|=1;reconcileChildren(current,workInProgress,nextProps,renderLanes);return workInProgress.child;}function updateClassComponent(current,workInProgress,Component,nextProps,renderLanes){prepareToReadContext(workInProgress);if(null===workInProgress.stateNode){var context=emptyContextObject,contextType=Component.contextType;"object"===typeof contextType&&null!==contextType&&(context=readContext(contextType));context=new Component(nextProps,context);workInProgress.memoizedState=null!==context.state&&void 0!==context.state?context.state:null;context.updater=classComponentUpdater;workInProgress.stateNode=context;context._reactInternals=workInProgress;context=workInProgress.stateNode;context.props=nextProps;context.state=workInProgress.memoizedState;context.refs={};initializeUpdateQueue(workInProgress);contextType=Component.contextType;context.context="object"===typeof contextType&&null!==contextType?readContext(contextType):emptyContextObject;context.state=workInProgress.memoizedState;contextType=Component.getDerivedStateFromProps;"function"===typeof contextType&&(applyDerivedStateFromProps(workInProgress,Component,contextType,nextProps),context.state=workInProgress.memoizedState);"function"===typeof Component.getDerivedStateFromProps||"function"===typeof context.getSnapshotBeforeUpdate||"function"!==typeof context.UNSAFE_componentWillMount&&"function"!==typeof context.componentWillMount||(contextType=context.state,"function"===typeof context.componentWillMount&&context.componentWillMount(),"function"===typeof context.UNSAFE_componentWillMount&&context.UNSAFE_componentWillMount(),contextType!==context.state&&classComponentUpdater.enqueueReplaceState(context,context.state,null),processUpdateQueue(workInProgress,nextProps,context,renderLanes),suspendIfUpdateReadFromEntangledAsyncAction(),context.state=workInProgress.memoizedState);"function"===typeof context.componentDidMount&&(workInProgress.flags|=4194308);nextProps=!0;}else if(null===current){context=workInProgress.stateNode;var unresolvedOldProps=workInProgress.memoizedProps,oldProps=resolveClassComponentProps(Component,unresolvedOldProps);context.props=oldProps;var oldContext=context.context,contextType$jscomp$0=Component.contextType;contextType=emptyContextObject;"object"===typeof contextType$jscomp$0&&null!==contextType$jscomp$0&&(contextType=readContext(contextType$jscomp$0));var getDerivedStateFromProps=Component.getDerivedStateFromProps;contextType$jscomp$0="function"===typeof getDerivedStateFromProps||"function"===typeof context.getSnapshotBeforeUpdate;unresolvedOldProps=workInProgress.pendingProps!==unresolvedOldProps;contextType$jscomp$0||"function"!==typeof context.UNSAFE_componentWillReceiveProps&&"function"!==typeof context.componentWillReceiveProps||(unresolvedOldProps||oldContext!==contextType)&&callComponentWillReceiveProps(workInProgress,context,nextProps,contextType);hasForceUpdate=!1;var oldState=workInProgress.memoizedState;context.state=oldState;processUpdateQueue(workInProgress,nextProps,context,renderLanes);suspendIfUpdateReadFromEntangledAsyncAction();oldContext=workInProgress.memoizedState;unresolvedOldProps||oldState!==oldContext||hasForceUpdate?("function"===typeof getDerivedStateFromProps&&(applyDerivedStateFromProps(workInProgress,Component,getDerivedStateFromProps,nextProps),oldContext=workInProgress.memoizedState),(oldProps=hasForceUpdate||checkShouldComponentUpdate(workInProgress,Component,oldProps,nextProps,oldState,oldContext,contextType))?(contextType$jscomp$0||"function"!==typeof context.UNSAFE_componentWillMount&&"function"!==typeof context.componentWillMount||("function"===typeof context.componentWillMount&&context.componentWillMount(),"function"===typeof context.UNSAFE_componentWillMount&&context.UNSAFE_componentWillMount()),"function"===typeof context.componentDidMount&&(workInProgress.flags|=4194308)):("function"===typeof context.componentDidMount&&(workInProgress.flags|=4194308),workInProgress.memoizedProps=nextProps,workInProgress.memoizedState=oldContext),context.props=nextProps,context.state=oldContext,context.context=contextType,nextProps=oldProps):("function"===typeof context.componentDidMount&&(workInProgress.flags|=4194308),nextProps=!1);}else{context=workInProgress.stateNode;cloneUpdateQueue(current,workInProgress);contextType=workInProgress.memoizedProps;contextType$jscomp$0=resolveClassComponentProps(Component,contextType);context.props=contextType$jscomp$0;getDerivedStateFromProps=workInProgress.pendingProps;oldState=context.context;oldContext=Component.contextType;oldProps=emptyContextObject;"object"===typeof oldContext&&null!==oldContext&&(oldProps=readContext(oldContext));unresolvedOldProps=Component.getDerivedStateFromProps;(oldContext="function"===typeof unresolvedOldProps||"function"===typeof context.getSnapshotBeforeUpdate)||"function"!==typeof context.UNSAFE_componentWillReceiveProps&&"function"!==typeof context.componentWillReceiveProps||(contextType!==getDerivedStateFromProps||oldState!==oldProps)&&callComponentWillReceiveProps(workInProgress,context,nextProps,oldProps);hasForceUpdate=!1;oldState=workInProgress.memoizedState;context.state=oldState;processUpdateQueue(workInProgress,nextProps,context,renderLanes);suspendIfUpdateReadFromEntangledAsyncAction();var newState=workInProgress.memoizedState;contextType!==getDerivedStateFromProps||oldState!==newState||hasForceUpdate||null!==current&&null!==current.dependencies&&checkIfContextChanged(current.dependencies)?("function"===typeof unresolvedOldProps&&(applyDerivedStateFromProps(workInProgress,Component,unresolvedOldProps,nextProps),newState=workInProgress.memoizedState),(contextType$jscomp$0=hasForceUpdate||checkShouldComponentUpdate(workInProgress,Component,contextType$jscomp$0,nextProps,oldState,newState,oldProps)||null!==current&&null!==current.dependencies&&checkIfContextChanged(current.dependencies))?(oldContext||"function"!==typeof context.UNSAFE_componentWillUpdate&&"function"!==typeof context.componentWillUpdate||("function"===typeof context.componentWillUpdate&&context.componentWillUpdate(nextProps,newState,oldProps),"function"===typeof context.UNSAFE_componentWillUpdate&&context.UNSAFE_componentWillUpdate(nextProps,newState,oldProps)),"function"===typeof context.componentDidUpdate&&(workInProgress.flags|=4),"function"===typeof context.getSnapshotBeforeUpdate&&(workInProgress.flags|=1024)):("function"!==typeof context.componentDidUpdate||contextType===current.memoizedProps&&oldState===current.memoizedState||(workInProgress.flags|=4),"function"!==typeof context.getSnapshotBeforeUpdate||contextType===current.memoizedProps&&oldState===current.memoizedState||(workInProgress.flags|=1024),workInProgress.memoizedProps=nextProps,workInProgress.memoizedState=newState),context.props=nextProps,context.state=newState,context.context=oldProps,nextProps=contextType$jscomp$0):("function"!==typeof context.componentDidUpdate||contextType===current.memoizedProps&&oldState===current.memoizedState||(workInProgress.flags|=4),"function"!==typeof context.getSnapshotBeforeUpdate||contextType===current.memoizedProps&&oldState===current.memoizedState||(workInProgress.flags|=1024),nextProps=!1);}context=nextProps;markRef(current,workInProgress);nextProps=0!==(workInProgress.flags&128);context||nextProps?(context=workInProgress.stateNode,Component=nextProps&&"function"!==typeof Component.getDerivedStateFromError?null:context.render(),workInProgress.flags|=1,null!==current&&nextProps?(workInProgress.child=reconcileChildFibers(workInProgress,current.child,null,renderLanes),workInProgress.child=reconcileChildFibers(workInProgress,null,Component,renderLanes)):reconcileChildren(current,workInProgress,Component,renderLanes),workInProgress.memoizedState=context.state,current=workInProgress.child):current=bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);return current;}function mountHostRootWithoutHydrating(current,workInProgress,nextChildren,renderLanes){resetHydrationState();workInProgress.flags|=256;reconcileChildren(current,workInProgress,nextChildren,renderLanes);return workInProgress.child;}function mountSuspenseOffscreenState(renderLanes){return{baseLanes:renderLanes,cachePool:getSuspendedCache()};}function getRemainingWorkInPrimaryTree(current,primaryTreeDidDefer,renderLanes){current=null!==current?current.childLanes&~renderLanes:0;primaryTreeDidDefer&&(current|=workInProgressDeferredLane);return current;}function updateSuspenseComponent(current,workInProgress,renderLanes){var nextProps=workInProgress.pendingProps,showFallback=!1,didSuspend=0!==(workInProgress.flags&128),JSCompiler_temp;(JSCompiler_temp=didSuspend)||(JSCompiler_temp=null!==current&&null===current.memoizedState?!1:0!==(suspenseStackCursor.current&2));JSCompiler_temp&&(showFallback=!0,workInProgress.flags&=-129);JSCompiler_temp=0!==(workInProgress.flags&32);workInProgress.flags&=-33;if(null===current){if(isHydrating){showFallback?pushPrimaryTreeSuspenseHandler(workInProgress):reuseSuspenseHandlerOnStack(workInProgress);(current=nextHydratableInstance)?(current=canHydrateSuspenseInstance(current,rootOrSingletonContext),null!==current&&(workInProgress.memoizedState={dehydrated:current,treeContext:null!==treeContextProvider?{id:treeContextId,overflow:treeContextOverflow}:null,retryLane:536870912,hydrationErrors:null},renderLanes=createFiberFromDehydratedFragment(current),renderLanes.return=workInProgress,workInProgress.child=renderLanes,hydrationParentFiber=workInProgress,nextHydratableInstance=null)):current=null;if(null===current)throw throwOnHydrationMismatch(workInProgress);isSuspenseInstanceFallback(current)?workInProgress.lanes=32:workInProgress.lanes=536870912;return null;}var nextPrimaryChildren=nextProps.children;nextProps=nextProps.fallback;if(showFallback)return reuseSuspenseHandlerOnStack(workInProgress),showFallback=workInProgress.mode,nextPrimaryChildren=mountWorkInProgressOffscreenFiber({mode:"hidden",children:nextPrimaryChildren},showFallback),nextProps=createFiberFromFragment(nextProps,showFallback,renderLanes,null),nextPrimaryChildren.return=workInProgress,nextProps.return=workInProgress,nextPrimaryChildren.sibling=nextProps,workInProgress.child=nextPrimaryChildren,nextProps=workInProgress.child,nextProps.memoizedState=mountSuspenseOffscreenState(renderLanes),nextProps.childLanes=getRemainingWorkInPrimaryTree(current,JSCompiler_temp,renderLanes),workInProgress.memoizedState=SUSPENDED_MARKER,bailoutOffscreenComponent(null,nextProps);pushPrimaryTreeSuspenseHandler(workInProgress);return mountSuspensePrimaryChildren(workInProgress,nextPrimaryChildren);}var prevState=current.memoizedState;if(null!==prevState&&(nextPrimaryChildren=prevState.dehydrated,null!==nextPrimaryChildren)){if(didSuspend)workInProgress.flags&256?(pushPrimaryTreeSuspenseHandler(workInProgress),workInProgress.flags&=-257,workInProgress=retrySuspenseComponentWithoutHydrating(current,workInProgress,renderLanes)):null!==workInProgress.memoizedState?(reuseSuspenseHandlerOnStack(workInProgress),workInProgress.child=current.child,workInProgress.flags|=128,workInProgress=null):(reuseSuspenseHandlerOnStack(workInProgress),nextPrimaryChildren=nextProps.fallback,showFallback=workInProgress.mode,nextProps=mountWorkInProgressOffscreenFiber({mode:"visible",children:nextProps.children},showFallback),nextPrimaryChildren=createFiberFromFragment(nextPrimaryChildren,showFallback,renderLanes,null),nextPrimaryChildren.flags|=2,nextProps.return=workInProgress,nextPrimaryChildren.return=workInProgress,nextProps.sibling=nextPrimaryChildren,workInProgress.child=nextProps,reconcileChildFibers(workInProgress,current.child,null,renderLanes),nextProps=workInProgress.child,nextProps.memoizedState=mountSuspenseOffscreenState(renderLanes),nextProps.childLanes=getRemainingWorkInPrimaryTree(current,JSCompiler_temp,renderLanes),workInProgress.memoizedState=SUSPENDED_MARKER,workInProgress=bailoutOffscreenComponent(null,nextProps));else if(pushPrimaryTreeSuspenseHandler(workInProgress),isSuspenseInstanceFallback(nextPrimaryChildren))JSCompiler_temp=getSuspenseInstanceFallbackErrorDetails(nextPrimaryChildren).digest,nextProps=Error(formatProdErrorMessage(419)),nextProps.stack="",nextProps.digest=JSCompiler_temp,queueHydrationError({value:nextProps,source:null,stack:null}),workInProgress=retrySuspenseComponentWithoutHydrating(current,workInProgress,renderLanes);else if(didReceiveUpdate||propagateParentContextChanges(current,workInProgress,renderLanes,!1),JSCompiler_temp=0!==(renderLanes¤t.childLanes),didReceiveUpdate||JSCompiler_temp){JSCompiler_temp=workInProgressRoot;if(null!==JSCompiler_temp&&(nextProps=getBumpedLaneForHydration(JSCompiler_temp,renderLanes),0!==nextProps&&nextProps!==prevState.retryLane))throw prevState.retryLane=nextProps,enqueueConcurrentRenderForLane(current,nextProps),scheduleUpdateOnFiber(JSCompiler_temp,current,nextProps),SelectiveHydrationException;isSuspenseInstancePending(nextPrimaryChildren)||renderDidSuspendDelayIfPossible();workInProgress=retrySuspenseComponentWithoutHydrating(current,workInProgress,renderLanes);}else isSuspenseInstancePending(nextPrimaryChildren)?(workInProgress.flags|=192,workInProgress.child=current.child,workInProgress=null):(current=prevState.treeContext,supportsHydration&&(nextHydratableInstance=getFirstHydratableChildWithinSuspenseInstance(nextPrimaryChildren),hydrationParentFiber=workInProgress,isHydrating=!0,hydrationErrors=null,rootOrSingletonContext=!1,null!==current&&restoreSuspendedTreeContext(workInProgress,current)),workInProgress=mountSuspensePrimaryChildren(workInProgress,nextProps.children),workInProgress.flags|=4096);return workInProgress;}if(showFallback)return reuseSuspenseHandlerOnStack(workInProgress),nextPrimaryChildren=nextProps.fallback,showFallback=workInProgress.mode,prevState=current.child,didSuspend=prevState.sibling,nextProps=createWorkInProgress(prevState,{mode:"hidden",children:nextProps.children}),nextProps.subtreeFlags=prevState.subtreeFlags&65011712,null!==didSuspend?nextPrimaryChildren=createWorkInProgress(didSuspend,nextPrimaryChildren):(nextPrimaryChildren=createFiberFromFragment(nextPrimaryChildren,showFallback,renderLanes,null),nextPrimaryChildren.flags|=2),nextPrimaryChildren.return=workInProgress,nextProps.return=workInProgress,nextProps.sibling=nextPrimaryChildren,workInProgress.child=nextProps,bailoutOffscreenComponent(null,nextProps),nextProps=workInProgress.child,nextPrimaryChildren=current.child.memoizedState,null===nextPrimaryChildren?nextPrimaryChildren=mountSuspenseOffscreenState(renderLanes):(showFallback=nextPrimaryChildren.cachePool,null!==showFallback?(prevState=isPrimaryRenderer?CacheContext._currentValue:CacheContext._currentValue2,showFallback=showFallback.parent!==prevState?{parent:prevState,pool:prevState}:showFallback):showFallback=getSuspendedCache(),nextPrimaryChildren={baseLanes:nextPrimaryChildren.baseLanes|renderLanes,cachePool:showFallback}),nextProps.memoizedState=nextPrimaryChildren,nextProps.childLanes=getRemainingWorkInPrimaryTree(current,JSCompiler_temp,renderLanes),workInProgress.memoizedState=SUSPENDED_MARKER,bailoutOffscreenComponent(current.child,nextProps);pushPrimaryTreeSuspenseHandler(workInProgress);renderLanes=current.child;current=renderLanes.sibling;renderLanes=createWorkInProgress(renderLanes,{mode:"visible",children:nextProps.children});renderLanes.return=workInProgress;renderLanes.sibling=null;null!==current&&(JSCompiler_temp=workInProgress.deletions,null===JSCompiler_temp?(workInProgress.deletions=[current],workInProgress.flags|=16):JSCompiler_temp.push(current));workInProgress.child=renderLanes;workInProgress.memoizedState=null;return renderLanes;}function mountSuspensePrimaryChildren(workInProgress,primaryChildren){primaryChildren=mountWorkInProgressOffscreenFiber({mode:"visible",children:primaryChildren},workInProgress.mode);primaryChildren.return=workInProgress;return workInProgress.child=primaryChildren;}function mountWorkInProgressOffscreenFiber(offscreenProps,mode){offscreenProps=createFiber(22,offscreenProps,null,mode);offscreenProps.lanes=0;return offscreenProps;}function retrySuspenseComponentWithoutHydrating(current,workInProgress,renderLanes){reconcileChildFibers(workInProgress,current.child,null,renderLanes);current=mountSuspensePrimaryChildren(workInProgress,workInProgress.pendingProps.children);current.flags|=2;workInProgress.memoizedState=null;return current;}function scheduleSuspenseWorkOnFiber(fiber,renderLanes,propagationRoot){fiber.lanes|=renderLanes;var alternate=fiber.alternate;null!==alternate&&(alternate.lanes|=renderLanes);scheduleContextWorkOnParentPath(fiber.return,renderLanes,propagationRoot);}function initSuspenseListRenderState(workInProgress,isBackwards,tail,lastContentRow,tailMode,treeForkCount){var renderState=workInProgress.memoizedState;null===renderState?workInProgress.memoizedState={isBackwards:isBackwards,rendering:null,renderingStartTime:0,last:lastContentRow,tail:tail,tailMode:tailMode,treeForkCount:treeForkCount}:(renderState.isBackwards=isBackwards,renderState.rendering=null,renderState.renderingStartTime=0,renderState.last=lastContentRow,renderState.tail=tail,renderState.tailMode=tailMode,renderState.treeForkCount=treeForkCount);}function updateSuspenseListComponent(current,workInProgress,renderLanes){var nextProps=workInProgress.pendingProps,revealOrder=nextProps.revealOrder,tailMode=nextProps.tail;nextProps=nextProps.children;var suspenseContext=suspenseStackCursor.current,shouldForceFallback=0!==(suspenseContext&2);shouldForceFallback?(suspenseContext=suspenseContext&1|2,workInProgress.flags|=128):suspenseContext&=1;push(suspenseStackCursor,suspenseContext);reconcileChildren(current,workInProgress,nextProps,renderLanes);nextProps=isHydrating?treeForkCount:0;if(!shouldForceFallback&&null!==current&&0!==(current.flags&128))a:for(current=workInProgress.child;null!==current;){if(13===current.tag)null!==current.memoizedState&&scheduleSuspenseWorkOnFiber(current,renderLanes,workInProgress);else if(19===current.tag)scheduleSuspenseWorkOnFiber(current,renderLanes,workInProgress);else if(null!==current.child){current.child.return=current;current=current.child;continue;}if(current===workInProgress)break a;for(;null===current.sibling;){if(null===current.return||current.return===workInProgress)break a;current=current.return;}current.sibling.return=current.return;current=current.sibling;}switch(revealOrder){case"forwards":renderLanes=workInProgress.child;for(revealOrder=null;null!==renderLanes;)current=renderLanes.alternate,null!==current&&null===findFirstSuspended(current)&&(revealOrder=renderLanes),renderLanes=renderLanes.sibling;renderLanes=revealOrder;null===renderLanes?(revealOrder=workInProgress.child,workInProgress.child=null):(revealOrder=renderLanes.sibling,renderLanes.sibling=null);initSuspenseListRenderState(workInProgress,!1,revealOrder,renderLanes,tailMode,nextProps);break;case"backwards":case"unstable_legacy-backwards":renderLanes=null;revealOrder=workInProgress.child;for(workInProgress.child=null;null!==revealOrder;){current=revealOrder.alternate;if(null!==current&&null===findFirstSuspended(current)){workInProgress.child=revealOrder;break;}current=revealOrder.sibling;revealOrder.sibling=renderLanes;renderLanes=revealOrder;revealOrder=current;}initSuspenseListRenderState(workInProgress,!0,renderLanes,null,tailMode,nextProps);break;case"together":initSuspenseListRenderState(workInProgress,!1,null,null,void 0,nextProps);break;default:workInProgress.memoizedState=null;}return workInProgress.child;}function bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes){null!==current&&(workInProgress.dependencies=current.dependencies);workInProgressRootSkippedLanes|=workInProgress.lanes;if(0===(renderLanes&workInProgress.childLanes))if(null!==current){if(propagateParentContextChanges(current,workInProgress,renderLanes,!1),0===(renderLanes&workInProgress.childLanes))return null;}else return null;if(null!==current&&workInProgress.child!==current.child)throw Error(formatProdErrorMessage(153));if(null!==workInProgress.child){current=workInProgress.child;renderLanes=createWorkInProgress(current,current.pendingProps);workInProgress.child=renderLanes;for(renderLanes.return=workInProgress;null!==current.sibling;)current=current.sibling,renderLanes=renderLanes.sibling=createWorkInProgress(current,current.pendingProps),renderLanes.return=workInProgress;renderLanes.sibling=null;}return workInProgress.child;}function checkScheduledUpdateOrContext(current,renderLanes){if(0!==(current.lanes&renderLanes))return!0;current=current.dependencies;return null!==current&&checkIfContextChanged(current)?!0:!1;}function attemptEarlyBailoutIfNoScheduledUpdate(current,workInProgress,renderLanes){switch(workInProgress.tag){case 3:pushHostContainer(workInProgress,workInProgress.stateNode.containerInfo);pushProvider(workInProgress,CacheContext,current.memoizedState.cache);resetHydrationState();break;case 27:case 5:pushHostContext(workInProgress);break;case 4:pushHostContainer(workInProgress,workInProgress.stateNode.containerInfo);break;case 10:pushProvider(workInProgress,workInProgress.type,workInProgress.memoizedProps.value);break;case 31:if(null!==workInProgress.memoizedState)return workInProgress.flags|=128,pushDehydratedActivitySuspenseHandler(workInProgress),null;break;case 13:var state$82=workInProgress.memoizedState;if(null!==state$82){if(null!==state$82.dehydrated)return pushPrimaryTreeSuspenseHandler(workInProgress),workInProgress.flags|=128,null;if(0!==(renderLanes&workInProgress.child.childLanes))return updateSuspenseComponent(current,workInProgress,renderLanes);pushPrimaryTreeSuspenseHandler(workInProgress);current=bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);return null!==current?current.sibling:null;}pushPrimaryTreeSuspenseHandler(workInProgress);break;case 19:var didSuspendBefore=0!==(current.flags&128);state$82=0!==(renderLanes&workInProgress.childLanes);state$82||(propagateParentContextChanges(current,workInProgress,renderLanes,!1),state$82=0!==(renderLanes&workInProgress.childLanes));if(didSuspendBefore){if(state$82)return updateSuspenseListComponent(current,workInProgress,renderLanes);workInProgress.flags|=128;}didSuspendBefore=workInProgress.memoizedState;null!==didSuspendBefore&&(didSuspendBefore.rendering=null,didSuspendBefore.tail=null,didSuspendBefore.lastEffect=null);push(suspenseStackCursor,suspenseStackCursor.current);if(state$82)break;else return null;case 22:return workInProgress.lanes=0,updateOffscreenComponent(current,workInProgress,renderLanes,workInProgress.pendingProps);case 24:pushProvider(workInProgress,CacheContext,current.memoizedState.cache);}return bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);}function beginWork(current,workInProgress,renderLanes){if(null!==current){if(current.memoizedProps!==workInProgress.pendingProps)didReceiveUpdate=!0;else{if(!checkScheduledUpdateOrContext(current,renderLanes)&&0===(workInProgress.flags&128))return didReceiveUpdate=!1,attemptEarlyBailoutIfNoScheduledUpdate(current,workInProgress,renderLanes);didReceiveUpdate=0!==(current.flags&131072)?!0:!1;}}else didReceiveUpdate=!1,isHydrating&&0!==(workInProgress.flags&1048576)&&pushTreeId(workInProgress,treeForkCount,workInProgress.index);workInProgress.lanes=0;switch(workInProgress.tag){case 16:a:{var props=workInProgress.pendingProps;current=resolveLazy(workInProgress.elementType);workInProgress.type=current;if("function"===typeof current)shouldConstruct(current)?(props=resolveClassComponentProps(current,props),workInProgress.tag=1,workInProgress=updateClassComponent(null,workInProgress,current,props,renderLanes)):(workInProgress.tag=0,workInProgress=updateFunctionComponent(null,workInProgress,current,props,renderLanes));else{if(void 0!==current&&null!==current){var $$typeof=current.$$typeof;if($$typeof===REACT_FORWARD_REF_TYPE){workInProgress.tag=11;workInProgress=updateForwardRef(null,workInProgress,current,props,renderLanes);break a;}else if($$typeof===REACT_MEMO_TYPE){workInProgress.tag=14;workInProgress=updateMemoComponent(null,workInProgress,current,props,renderLanes);break a;}}workInProgress=getComponentNameFromType(current)||current;throw Error(formatProdErrorMessage(306,workInProgress,""));}}return workInProgress;case 0:return updateFunctionComponent(current,workInProgress,workInProgress.type,workInProgress.pendingProps,renderLanes);case 1:return props=workInProgress.type,$$typeof=resolveClassComponentProps(props,workInProgress.pendingProps),updateClassComponent(current,workInProgress,props,$$typeof,renderLanes);case 3:a:{pushHostContainer(workInProgress,workInProgress.stateNode.containerInfo);if(null===current)throw Error(formatProdErrorMessage(387));var nextProps=workInProgress.pendingProps;$$typeof=workInProgress.memoizedState;props=$$typeof.element;cloneUpdateQueue(current,workInProgress);processUpdateQueue(workInProgress,nextProps,null,renderLanes);var nextState=workInProgress.memoizedState;nextProps=nextState.cache;pushProvider(workInProgress,CacheContext,nextProps);nextProps!==$$typeof.cache&&propagateContextChanges(workInProgress,[CacheContext],renderLanes,!0);suspendIfUpdateReadFromEntangledAsyncAction();nextProps=nextState.element;if(supportsHydration&&$$typeof.isDehydrated){if($$typeof={element:nextProps,isDehydrated:!1,cache:nextState.cache},workInProgress.updateQueue.baseState=$$typeof,workInProgress.memoizedState=$$typeof,workInProgress.flags&256){workInProgress=mountHostRootWithoutHydrating(current,workInProgress,nextProps,renderLanes);break a;}else if(nextProps!==props){props=createCapturedValueAtFiber(Error(formatProdErrorMessage(424)),workInProgress);queueHydrationError(props);workInProgress=mountHostRootWithoutHydrating(current,workInProgress,nextProps,renderLanes);break a;}else for(supportsHydration&&(nextHydratableInstance=getFirstHydratableChildWithinContainer(workInProgress.stateNode.containerInfo),hydrationParentFiber=workInProgress,isHydrating=!0,hydrationErrors=null,rootOrSingletonContext=!0),renderLanes=mountChildFibers(workInProgress,null,nextProps,renderLanes),workInProgress.child=renderLanes;renderLanes;)renderLanes.flags=renderLanes.flags&-3|4096,renderLanes=renderLanes.sibling;}else{resetHydrationState();if(nextProps===props){workInProgress=bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);break a;}reconcileChildren(current,workInProgress,nextProps,renderLanes);}workInProgress=workInProgress.child;}return workInProgress;case 26:if(supportsResources)return markRef(current,workInProgress),null===current?(renderLanes=getResource(workInProgress.type,null,workInProgress.pendingProps,null))?workInProgress.memoizedState=renderLanes:isHydrating||(workInProgress.stateNode=createHoistableInstance(workInProgress.type,workInProgress.pendingProps,rootInstanceStackCursor.current,workInProgress)):workInProgress.memoizedState=getResource(workInProgress.type,current.memoizedProps,workInProgress.pendingProps,current.memoizedState),null;case 27:if(supportsSingletons)return pushHostContext(workInProgress),null===current&&supportsSingletons&&isHydrating&&(props=workInProgress.stateNode=resolveSingletonInstance(workInProgress.type,workInProgress.pendingProps,rootInstanceStackCursor.current,contextStackCursor.current,!1),hydrationParentFiber=workInProgress,rootOrSingletonContext=!0,nextHydratableInstance=getFirstHydratableChildWithinSingleton(workInProgress.type,props,nextHydratableInstance)),reconcileChildren(current,workInProgress,workInProgress.pendingProps.children,renderLanes),markRef(current,workInProgress),null===current&&(workInProgress.flags|=4194304),workInProgress.child;case 5:if(null===current&&isHydrating){validateHydratableInstance(workInProgress.type,workInProgress.pendingProps,contextStackCursor.current);if($$typeof=props=nextHydratableInstance)props=canHydrateInstance(props,workInProgress.type,workInProgress.pendingProps,rootOrSingletonContext),null!==props?(workInProgress.stateNode=props,hydrationParentFiber=workInProgress,nextHydratableInstance=getFirstHydratableChild(props),rootOrSingletonContext=!1,$$typeof=!0):$$typeof=!1;$$typeof||throwOnHydrationMismatch(workInProgress);}pushHostContext(workInProgress);$$typeof=workInProgress.type;nextProps=workInProgress.pendingProps;nextState=null!==current?current.memoizedProps:null;props=nextProps.children;shouldSetTextContent($$typeof,nextProps)?props=null:null!==nextState&&shouldSetTextContent($$typeof,nextState)&&(workInProgress.flags|=32);null!==workInProgress.memoizedState&&($$typeof=renderWithHooks(current,workInProgress,TransitionAwareHostComponent,null,null,renderLanes),isPrimaryRenderer?HostTransitionContext._currentValue=$$typeof:HostTransitionContext._currentValue2=$$typeof);markRef(current,workInProgress);reconcileChildren(current,workInProgress,props,renderLanes);return workInProgress.child;case 6:if(null===current&&isHydrating){validateHydratableTextInstance(workInProgress.pendingProps,contextStackCursor.current);if(current=renderLanes=nextHydratableInstance)renderLanes=canHydrateTextInstance(renderLanes,workInProgress.pendingProps,rootOrSingletonContext),null!==renderLanes?(workInProgress.stateNode=renderLanes,hydrationParentFiber=workInProgress,nextHydratableInstance=null,current=!0):current=!1;current||throwOnHydrationMismatch(workInProgress);}return null;case 13:return updateSuspenseComponent(current,workInProgress,renderLanes);case 4:return pushHostContainer(workInProgress,workInProgress.stateNode.containerInfo),props=workInProgress.pendingProps,null===current?workInProgress.child=reconcileChildFibers(workInProgress,null,props,renderLanes):reconcileChildren(current,workInProgress,props,renderLanes),workInProgress.child;case 11:return updateForwardRef(current,workInProgress,workInProgress.type,workInProgress.pendingProps,renderLanes);case 7:return reconcileChildren(current,workInProgress,workInProgress.pendingProps,renderLanes),workInProgress.child;case 8:return reconcileChildren(current,workInProgress,workInProgress.pendingProps.children,renderLanes),workInProgress.child;case 12:return reconcileChildren(current,workInProgress,workInProgress.pendingProps.children,renderLanes),workInProgress.child;case 10:return props=workInProgress.pendingProps,pushProvider(workInProgress,workInProgress.type,props.value),reconcileChildren(current,workInProgress,props.children,renderLanes),workInProgress.child;case 9:return $$typeof=workInProgress.type._context,props=workInProgress.pendingProps.children,prepareToReadContext(workInProgress),$$typeof=readContext($$typeof),props=props($$typeof),workInProgress.flags|=1,reconcileChildren(current,workInProgress,props,renderLanes),workInProgress.child;case 14:return updateMemoComponent(current,workInProgress,workInProgress.type,workInProgress.pendingProps,renderLanes);case 15:return updateSimpleMemoComponent(current,workInProgress,workInProgress.type,workInProgress.pendingProps,renderLanes);case 19:return updateSuspenseListComponent(current,workInProgress,renderLanes);case 31:return updateActivityComponent(current,workInProgress,renderLanes);case 22:return updateOffscreenComponent(current,workInProgress,renderLanes,workInProgress.pendingProps);case 24:return prepareToReadContext(workInProgress),props=readContext(CacheContext),null===current?($$typeof=peekCacheFromPool(),null===$$typeof&&($$typeof=workInProgressRoot,nextProps=createCache(),$$typeof.pooledCache=nextProps,nextProps.refCount++,null!==nextProps&&($$typeof.pooledCacheLanes|=renderLanes),$$typeof=nextProps),workInProgress.memoizedState={parent:props,cache:$$typeof},initializeUpdateQueue(workInProgress),pushProvider(workInProgress,CacheContext,$$typeof)):(0!==(current.lanes&renderLanes)&&(cloneUpdateQueue(current,workInProgress),processUpdateQueue(workInProgress,null,null,renderLanes),suspendIfUpdateReadFromEntangledAsyncAction()),$$typeof=current.memoizedState,nextProps=workInProgress.memoizedState,$$typeof.parent!==props?($$typeof={parent:props,cache:props},workInProgress.memoizedState=$$typeof,0===workInProgress.lanes&&(workInProgress.memoizedState=workInProgress.updateQueue.baseState=$$typeof),pushProvider(workInProgress,CacheContext,props)):(props=nextProps.cache,pushProvider(workInProgress,CacheContext,props),props!==$$typeof.cache&&propagateContextChanges(workInProgress,[CacheContext],renderLanes,!0))),reconcileChildren(current,workInProgress,workInProgress.pendingProps.children,renderLanes),workInProgress.child;case 29:throw workInProgress.pendingProps;}throw Error(formatProdErrorMessage(156,workInProgress.tag));}function markUpdate(workInProgress){workInProgress.flags|=4;}function markCloned(workInProgress){supportsPersistence&&(workInProgress.flags|=8);}function doesRequireClone(current,completedWork){if(null!==current&¤t.child===completedWork.child)return!1;if(0!==(completedWork.flags&16))return!0;for(current=completedWork.child;null!==current;){if(0!==(current.flags&8218)||0!==(current.subtreeFlags&8218))return!0;current=current.sibling;}return!1;}function appendAllChildren(parent,workInProgress,needsVisibilityToggle,isHidden){if(supportsMutation)for(needsVisibilityToggle=workInProgress.child;null!==needsVisibilityToggle;){if(5===needsVisibilityToggle.tag||6===needsVisibilityToggle.tag)appendInitialChild(parent,needsVisibilityToggle.stateNode);else if(!(4===needsVisibilityToggle.tag||supportsSingletons&&27===needsVisibilityToggle.tag)&&null!==needsVisibilityToggle.child){needsVisibilityToggle.child.return=needsVisibilityToggle;needsVisibilityToggle=needsVisibilityToggle.child;continue;}if(needsVisibilityToggle===workInProgress)break;for(;null===needsVisibilityToggle.sibling;){if(null===needsVisibilityToggle.return||needsVisibilityToggle.return===workInProgress)return;needsVisibilityToggle=needsVisibilityToggle.return;}needsVisibilityToggle.sibling.return=needsVisibilityToggle.return;needsVisibilityToggle=needsVisibilityToggle.sibling;}else if(supportsPersistence)for(var node$85=workInProgress.child;null!==node$85;){if(5===node$85.tag){var instance=node$85.stateNode;needsVisibilityToggle&&isHidden&&(instance=cloneHiddenInstance(instance,node$85.type,node$85.memoizedProps));appendInitialChild(parent,instance);}else if(6===node$85.tag)instance=node$85.stateNode,needsVisibilityToggle&&isHidden&&(instance=cloneHiddenTextInstance(instance,node$85.memoizedProps)),appendInitialChild(parent,instance);else if(4!==node$85.tag)if(22===node$85.tag&&null!==node$85.memoizedState)instance=node$85.child,null!==instance&&(instance.return=node$85),appendAllChildren(parent,node$85,!0,!0);else if(null!==node$85.child){node$85.child.return=node$85;node$85=node$85.child;continue;}if(node$85===workInProgress)break;for(;null===node$85.sibling;){if(null===node$85.return||node$85.return===workInProgress)return;node$85=node$85.return;}node$85.sibling.return=node$85.return;node$85=node$85.sibling;}}function appendAllChildrenToContainer(containerChildSet,workInProgress,needsVisibilityToggle,isHidden){var hasOffscreenComponentChild=!1;if(supportsPersistence)for(var node=workInProgress.child;null!==node;){if(5===node.tag){var instance=node.stateNode;needsVisibilityToggle&&isHidden&&(instance=cloneHiddenInstance(instance,node.type,node.memoizedProps));appendChildToContainerChildSet(containerChildSet,instance);}else if(6===node.tag)instance=node.stateNode,needsVisibilityToggle&&isHidden&&(instance=cloneHiddenTextInstance(instance,node.memoizedProps)),appendChildToContainerChildSet(containerChildSet,instance);else if(4!==node.tag)if(22===node.tag&&null!==node.memoizedState)hasOffscreenComponentChild=node.child,null!==hasOffscreenComponentChild&&(hasOffscreenComponentChild.return=node),appendAllChildrenToContainer(containerChildSet,node,!0,!0),hasOffscreenComponentChild=!0;else if(null!==node.child){node.child.return=node;node=node.child;continue;}if(node===workInProgress)break;for(;null===node.sibling;){if(null===node.return||node.return===workInProgress)return hasOffscreenComponentChild;node=node.return;}node.sibling.return=node.return;node=node.sibling;}return hasOffscreenComponentChild;}function updateHostContainer(current,workInProgress){if(supportsPersistence&&doesRequireClone(current,workInProgress)){current=workInProgress.stateNode;var container=current.containerInfo,newChildSet=createContainerChildSet();appendAllChildrenToContainer(newChildSet,workInProgress,!1,!1);current.pendingChildren=newChildSet;markUpdate(workInProgress);finalizeContainerChildren(container,newChildSet);}}function updateHostComponent(current,workInProgress,type,newProps){if(supportsMutation)current.memoizedProps!==newProps&&markUpdate(workInProgress);else if(supportsPersistence){var currentInstance=current.stateNode,oldProps$88=current.memoizedProps;if((current=doesRequireClone(current,workInProgress))||oldProps$88!==newProps){var currentHostContext=contextStackCursor.current;oldProps$88=cloneInstance(currentInstance,type,oldProps$88,newProps,!current,null);oldProps$88===currentInstance?workInProgress.stateNode=currentInstance:(markCloned(workInProgress),finalizeInitialChildren(oldProps$88,type,newProps,currentHostContext)&&markUpdate(workInProgress),workInProgress.stateNode=oldProps$88,current&&appendAllChildren(oldProps$88,workInProgress,!1,!1));}else workInProgress.stateNode=currentInstance;}}function preloadInstanceAndSuspendIfNeeded(workInProgress,type,oldProps,newProps,renderLanes){if(0!==(workInProgress.mode&32)&&(null===oldProps?maySuspendCommit(type,newProps):maySuspendCommitOnUpdate(type,oldProps,newProps))){if(workInProgress.flags|=16777216,(renderLanes&335544128)===renderLanes||maySuspendCommitInSyncRender(type,newProps))if(preloadInstance(workInProgress.stateNode,type,newProps))workInProgress.flags|=8192;else if(shouldRemainOnPreviousScreen())workInProgress.flags|=8192;else throw suspendedThenable=noopSuspenseyCommitThenable,SuspenseyCommitException;}else workInProgress.flags&=-16777217;}function preloadResourceAndSuspendIfNeeded(workInProgress,resource){if(mayResourceSuspendCommit(resource)){if(workInProgress.flags|=16777216,!preloadResource(resource))if(shouldRemainOnPreviousScreen())workInProgress.flags|=8192;else throw suspendedThenable=noopSuspenseyCommitThenable,SuspenseyCommitException;}else workInProgress.flags&=-16777217;}function scheduleRetryEffect(workInProgress,retryQueue){null!==retryQueue&&(workInProgress.flags|=4);workInProgress.flags&16384&&(retryQueue=22!==workInProgress.tag?claimNextRetryLane():536870912,workInProgress.lanes|=retryQueue,workInProgressSuspendedRetryLanes|=retryQueue);}function cutOffTailIfNeeded(renderState,hasRenderedATailFallback){if(!isHydrating)switch(renderState.tailMode){case"hidden":hasRenderedATailFallback=renderState.tail;for(var lastTailNode=null;null!==hasRenderedATailFallback;)null!==hasRenderedATailFallback.alternate&&(lastTailNode=hasRenderedATailFallback),hasRenderedATailFallback=hasRenderedATailFallback.sibling;null===lastTailNode?renderState.tail=null:lastTailNode.sibling=null;break;case"collapsed":lastTailNode=renderState.tail;for(var lastTailNode$90=null;null!==lastTailNode;)null!==lastTailNode.alternate&&(lastTailNode$90=lastTailNode),lastTailNode=lastTailNode.sibling;null===lastTailNode$90?hasRenderedATailFallback||null===renderState.tail?renderState.tail=null:renderState.tail.sibling=null:lastTailNode$90.sibling=null;}}function bubbleProperties(completedWork){var didBailout=null!==completedWork.alternate&&completedWork.alternate.child===completedWork.child,newChildLanes=0,subtreeFlags=0;if(didBailout)for(var child$91=completedWork.child;null!==child$91;)newChildLanes|=child$91.lanes|child$91.childLanes,subtreeFlags|=child$91.subtreeFlags&65011712,subtreeFlags|=child$91.flags&65011712,child$91.return=completedWork,child$91=child$91.sibling;else for(child$91=completedWork.child;null!==child$91;)newChildLanes|=child$91.lanes|child$91.childLanes,subtreeFlags|=child$91.subtreeFlags,subtreeFlags|=child$91.flags,child$91.return=completedWork,child$91=child$91.sibling;completedWork.subtreeFlags|=subtreeFlags;completedWork.childLanes=newChildLanes;return didBailout;}function completeWork(current,workInProgress,renderLanes){var newProps=workInProgress.pendingProps;popTreeContext(workInProgress);switch(workInProgress.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bubbleProperties(workInProgress),null;case 1:return bubbleProperties(workInProgress),null;case 3:renderLanes=workInProgress.stateNode;newProps=null;null!==current&&(newProps=current.memoizedState.cache);workInProgress.memoizedState.cache!==newProps&&(workInProgress.flags|=2048);popProvider(CacheContext);popHostContainer();renderLanes.pendingContext&&(renderLanes.context=renderLanes.pendingContext,renderLanes.pendingContext=null);if(null===current||null===current.child)popHydrationState(workInProgress)?markUpdate(workInProgress):null===current||current.memoizedState.isDehydrated&&0===(workInProgress.flags&256)||(workInProgress.flags|=1024,upgradeHydrationErrorsToRecoverable());updateHostContainer(current,workInProgress);bubbleProperties(workInProgress);return null;case 26:if(supportsResources){var type=workInProgress.type,nextResource=workInProgress.memoizedState;null===current?(markUpdate(workInProgress),null!==nextResource?(bubbleProperties(workInProgress),preloadResourceAndSuspendIfNeeded(workInProgress,nextResource)):(bubbleProperties(workInProgress),preloadInstanceAndSuspendIfNeeded(workInProgress,type,null,newProps,renderLanes))):nextResource?nextResource!==current.memoizedState?(markUpdate(workInProgress),bubbleProperties(workInProgress),preloadResourceAndSuspendIfNeeded(workInProgress,nextResource)):(bubbleProperties(workInProgress),workInProgress.flags&=-16777217):(nextResource=current.memoizedProps,supportsMutation?nextResource!==newProps&&markUpdate(workInProgress):updateHostComponent(current,workInProgress,type,newProps),bubbleProperties(workInProgress),preloadInstanceAndSuspendIfNeeded(workInProgress,type,nextResource,newProps,renderLanes));return null;}case 27:if(supportsSingletons){popHostContext(workInProgress);renderLanes=rootInstanceStackCursor.current;type=workInProgress.type;if(null!==current&&null!=workInProgress.stateNode)supportsMutation?current.memoizedProps!==newProps&&markUpdate(workInProgress):updateHostComponent(current,workInProgress,type,newProps);else{if(!newProps){if(null===workInProgress.stateNode)throw Error(formatProdErrorMessage(166));bubbleProperties(workInProgress);return null;}current=contextStackCursor.current;popHydrationState(workInProgress)?prepareToHydrateHostInstance(workInProgress,current):(current=resolveSingletonInstance(type,newProps,renderLanes,current,!0),workInProgress.stateNode=current,markUpdate(workInProgress));}bubbleProperties(workInProgress);return null;}case 5:popHostContext(workInProgress);type=workInProgress.type;if(null!==current&&null!=workInProgress.stateNode)updateHostComponent(current,workInProgress,type,newProps);else{if(!newProps){if(null===workInProgress.stateNode)throw Error(formatProdErrorMessage(166));bubbleProperties(workInProgress);return null;}nextResource=contextStackCursor.current;if(popHydrationState(workInProgress))prepareToHydrateHostInstance(workInProgress,nextResource),finalizeHydratedChildren(workInProgress.stateNode,type,newProps,nextResource)&&(workInProgress.flags|=64);else{var instance$101=createInstance(type,newProps,rootInstanceStackCursor.current,nextResource,workInProgress);markCloned(workInProgress);appendAllChildren(instance$101,workInProgress,!1,!1);workInProgress.stateNode=instance$101;finalizeInitialChildren(instance$101,type,newProps,nextResource)&&markUpdate(workInProgress);}}bubbleProperties(workInProgress);preloadInstanceAndSuspendIfNeeded(workInProgress,workInProgress.type,null===current?null:current.memoizedProps,workInProgress.pendingProps,renderLanes);return null;case 6:if(current&&null!=workInProgress.stateNode)renderLanes=current.memoizedProps,supportsMutation?renderLanes!==newProps&&markUpdate(workInProgress):supportsPersistence&&(renderLanes!==newProps?(current=rootInstanceStackCursor.current,renderLanes=contextStackCursor.current,markCloned(workInProgress),workInProgress.stateNode=createTextInstance(newProps,current,renderLanes,workInProgress)):workInProgress.stateNode=current.stateNode);else{if("string"!==typeof newProps&&null===workInProgress.stateNode)throw Error(formatProdErrorMessage(166));current=rootInstanceStackCursor.current;renderLanes=contextStackCursor.current;if(popHydrationState(workInProgress)){if(!supportsHydration)throw Error(formatProdErrorMessage(176));current=workInProgress.stateNode;renderLanes=workInProgress.memoizedProps;newProps=null;type=hydrationParentFiber;if(null!==type)switch(type.tag){case 27:case 5:newProps=type.memoizedProps;}hydrateTextInstance(current,renderLanes,workInProgress,newProps)||throwOnHydrationMismatch(workInProgress,!0);}else markCloned(workInProgress),workInProgress.stateNode=createTextInstance(newProps,current,renderLanes,workInProgress);}bubbleProperties(workInProgress);return null;case 31:renderLanes=workInProgress.memoizedState;if(null===current||null!==current.memoizedState){newProps=popHydrationState(workInProgress);if(null!==renderLanes){if(null===current){if(!newProps)throw Error(formatProdErrorMessage(318));if(!supportsHydration)throw Error(formatProdErrorMessage(556));current=workInProgress.memoizedState;current=null!==current?current.dehydrated:null;if(!current)throw Error(formatProdErrorMessage(557));hydrateActivityInstance(current,workInProgress);}else resetHydrationState(),0===(workInProgress.flags&128)&&(workInProgress.memoizedState=null),workInProgress.flags|=4;bubbleProperties(workInProgress);current=!1;}else renderLanes=upgradeHydrationErrorsToRecoverable(),null!==current&&null!==current.memoizedState&&(current.memoizedState.hydrationErrors=renderLanes),current=!0;if(!current){if(workInProgress.flags&256)return popSuspenseHandler(workInProgress),workInProgress;popSuspenseHandler(workInProgress);return null;}if(0!==(workInProgress.flags&128))throw Error(formatProdErrorMessage(558));}bubbleProperties(workInProgress);return null;case 13:newProps=workInProgress.memoizedState;if(null===current||null!==current.memoizedState&&null!==current.memoizedState.dehydrated){type=popHydrationState(workInProgress);if(null!==newProps&&null!==newProps.dehydrated){if(null===current){if(!type)throw Error(formatProdErrorMessage(318));if(!supportsHydration)throw Error(formatProdErrorMessage(344));type=workInProgress.memoizedState;type=null!==type?type.dehydrated:null;if(!type)throw Error(formatProdErrorMessage(317));hydrateSuspenseInstance(type,workInProgress);}else resetHydrationState(),0===(workInProgress.flags&128)&&(workInProgress.memoizedState=null),workInProgress.flags|=4;bubbleProperties(workInProgress);type=!1;}else type=upgradeHydrationErrorsToRecoverable(),null!==current&&null!==current.memoizedState&&(current.memoizedState.hydrationErrors=type),type=!0;if(!type){if(workInProgress.flags&256)return popSuspenseHandler(workInProgress),workInProgress;popSuspenseHandler(workInProgress);return null;}}popSuspenseHandler(workInProgress);if(0!==(workInProgress.flags&128))return workInProgress.lanes=renderLanes,workInProgress;renderLanes=null!==newProps;current=null!==current&&null!==current.memoizedState;renderLanes&&(newProps=workInProgress.child,type=null,null!==newProps.alternate&&null!==newProps.alternate.memoizedState&&null!==newProps.alternate.memoizedState.cachePool&&(type=newProps.alternate.memoizedState.cachePool.pool),nextResource=null,null!==newProps.memoizedState&&null!==newProps.memoizedState.cachePool&&(nextResource=newProps.memoizedState.cachePool.pool),nextResource!==type&&(newProps.flags|=2048));renderLanes!==current&&renderLanes&&(workInProgress.child.flags|=8192);scheduleRetryEffect(workInProgress,workInProgress.updateQueue);bubbleProperties(workInProgress);return null;case 4:return popHostContainer(),updateHostContainer(current,workInProgress),null===current&&preparePortalMount(workInProgress.stateNode.containerInfo),bubbleProperties(workInProgress),null;case 10:return popProvider(workInProgress.type),bubbleProperties(workInProgress),null;case 19:pop(suspenseStackCursor);newProps=workInProgress.memoizedState;if(null===newProps)return bubbleProperties(workInProgress),null;type=0!==(workInProgress.flags&128);nextResource=newProps.rendering;if(null===nextResource){if(type)cutOffTailIfNeeded(newProps,!1);else{if(0!==workInProgressRootExitStatus||null!==current&&0!==(current.flags&128))for(current=workInProgress.child;null!==current;){nextResource=findFirstSuspended(current);if(null!==nextResource){workInProgress.flags|=128;cutOffTailIfNeeded(newProps,!1);current=nextResource.updateQueue;workInProgress.updateQueue=current;scheduleRetryEffect(workInProgress,current);workInProgress.subtreeFlags=0;current=renderLanes;for(renderLanes=workInProgress.child;null!==renderLanes;)resetWorkInProgress(renderLanes,current),renderLanes=renderLanes.sibling;push(suspenseStackCursor,suspenseStackCursor.current&1|2);isHydrating&&pushTreeFork(workInProgress,newProps.treeForkCount);return workInProgress.child;}current=current.sibling;}null!==newProps.tail&&now()>workInProgressRootRenderTargetTime&&(workInProgress.flags|=128,type=!0,cutOffTailIfNeeded(newProps,!1),workInProgress.lanes=4194304);}}else{if(!type)if(current=findFirstSuspended(nextResource),null!==current){if(workInProgress.flags|=128,type=!0,current=current.updateQueue,workInProgress.updateQueue=current,scheduleRetryEffect(workInProgress,current),cutOffTailIfNeeded(newProps,!0),null===newProps.tail&&"hidden"===newProps.tailMode&&!nextResource.alternate&&!isHydrating)return bubbleProperties(workInProgress),null;}else 2*now()-newProps.renderingStartTime>workInProgressRootRenderTargetTime&&536870912!==renderLanes&&(workInProgress.flags|=128,type=!0,cutOffTailIfNeeded(newProps,!1),workInProgress.lanes=4194304);newProps.isBackwards?(nextResource.sibling=workInProgress.child,workInProgress.child=nextResource):(current=newProps.last,null!==current?current.sibling=nextResource:workInProgress.child=nextResource,newProps.last=nextResource);}if(null!==newProps.tail)return current=newProps.tail,newProps.rendering=current,newProps.tail=current.sibling,newProps.renderingStartTime=now(),current.sibling=null,renderLanes=suspenseStackCursor.current,push(suspenseStackCursor,type?renderLanes&1|2:renderLanes&1),isHydrating&&pushTreeFork(workInProgress,newProps.treeForkCount),current;bubbleProperties(workInProgress);return null;case 22:case 23:return popSuspenseHandler(workInProgress),popHiddenContext(),newProps=null!==workInProgress.memoizedState,null!==current?null!==current.memoizedState!==newProps&&(workInProgress.flags|=8192):newProps&&(workInProgress.flags|=8192),newProps?0!==(renderLanes&536870912)&&0===(workInProgress.flags&128)&&(bubbleProperties(workInProgress),workInProgress.subtreeFlags&6&&(workInProgress.flags|=8192)):bubbleProperties(workInProgress),renderLanes=workInProgress.updateQueue,null!==renderLanes&&scheduleRetryEffect(workInProgress,renderLanes.retryQueue),renderLanes=null,null!==current&&null!==current.memoizedState&&null!==current.memoizedState.cachePool&&(renderLanes=current.memoizedState.cachePool.pool),newProps=null,null!==workInProgress.memoizedState&&null!==workInProgress.memoizedState.cachePool&&(newProps=workInProgress.memoizedState.cachePool.pool),newProps!==renderLanes&&(workInProgress.flags|=2048),null!==current&&pop(resumedCache),null;case 24:return renderLanes=null,null!==current&&(renderLanes=current.memoizedState.cache),workInProgress.memoizedState.cache!==renderLanes&&(workInProgress.flags|=2048),popProvider(CacheContext),bubbleProperties(workInProgress),null;case 25:return null;case 30:return null;}throw Error(formatProdErrorMessage(156,workInProgress.tag));}function unwindWork(current,workInProgress){popTreeContext(workInProgress);switch(workInProgress.tag){case 1:return current=workInProgress.flags,current&65536?(workInProgress.flags=current&-65537|128,workInProgress):null;case 3:return popProvider(CacheContext),popHostContainer(),current=workInProgress.flags,0!==(current&65536)&&0===(current&128)?(workInProgress.flags=current&-65537|128,workInProgress):null;case 26:case 27:case 5:return popHostContext(workInProgress),null;case 31:if(null!==workInProgress.memoizedState){popSuspenseHandler(workInProgress);if(null===workInProgress.alternate)throw Error(formatProdErrorMessage(340));resetHydrationState();}current=workInProgress.flags;return current&65536?(workInProgress.flags=current&-65537|128,workInProgress):null;case 13:popSuspenseHandler(workInProgress);current=workInProgress.memoizedState;if(null!==current&&null!==current.dehydrated){if(null===workInProgress.alternate)throw Error(formatProdErrorMessage(340));resetHydrationState();}current=workInProgress.flags;return current&65536?(workInProgress.flags=current&-65537|128,workInProgress):null;case 19:return pop(suspenseStackCursor),null;case 4:return popHostContainer(),null;case 10:return popProvider(workInProgress.type),null;case 22:case 23:return popSuspenseHandler(workInProgress),popHiddenContext(),null!==current&&pop(resumedCache),current=workInProgress.flags,current&65536?(workInProgress.flags=current&-65537|128,workInProgress):null;case 24:return popProvider(CacheContext),null;case 25:return null;default:return null;}}function unwindInterruptedWork(current,interruptedWork){popTreeContext(interruptedWork);switch(interruptedWork.tag){case 3:popProvider(CacheContext);popHostContainer();break;case 26:case 27:case 5:popHostContext(interruptedWork);break;case 4:popHostContainer();break;case 31:null!==interruptedWork.memoizedState&&popSuspenseHandler(interruptedWork);break;case 13:popSuspenseHandler(interruptedWork);break;case 19:pop(suspenseStackCursor);break;case 10:popProvider(interruptedWork.type);break;case 22:case 23:popSuspenseHandler(interruptedWork);popHiddenContext();null!==current&&pop(resumedCache);break;case 24:popProvider(CacheContext);}}function commitHookEffectListMount(flags,finishedWork){try{var updateQueue=finishedWork.updateQueue,lastEffect=null!==updateQueue?updateQueue.lastEffect:null;if(null!==lastEffect){var firstEffect=lastEffect.next;updateQueue=firstEffect;do{if((updateQueue.tag&flags)===flags){lastEffect=void 0;var create=updateQueue.create,inst=updateQueue.inst;lastEffect=create();inst.destroy=lastEffect;}updateQueue=updateQueue.next;}while(updateQueue!==firstEffect);}}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}function commitHookEffectListUnmount(flags,finishedWork,nearestMountedAncestor$jscomp$0){try{var updateQueue=finishedWork.updateQueue,lastEffect=null!==updateQueue?updateQueue.lastEffect:null;if(null!==lastEffect){var firstEffect=lastEffect.next;updateQueue=firstEffect;do{if((updateQueue.tag&flags)===flags){var inst=updateQueue.inst,destroy=inst.destroy;if(void 0!==destroy){inst.destroy=void 0;lastEffect=finishedWork;var nearestMountedAncestor=nearestMountedAncestor$jscomp$0,destroy_=destroy;try{destroy_();}catch(error){captureCommitPhaseError(lastEffect,nearestMountedAncestor,error);}}}updateQueue=updateQueue.next;}while(updateQueue!==firstEffect);}}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}function commitClassCallbacks(finishedWork){var updateQueue=finishedWork.updateQueue;if(null!==updateQueue){var instance=finishedWork.stateNode;try{commitCallbacks(updateQueue,instance);}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}}function safelyCallComponentWillUnmount(current,nearestMountedAncestor,instance){instance.props=resolveClassComponentProps(current.type,current.memoizedProps);instance.state=current.memoizedState;try{instance.componentWillUnmount();}catch(error){captureCommitPhaseError(current,nearestMountedAncestor,error);}}function safelyAttachRef(current,nearestMountedAncestor){try{var ref=current.ref;if(null!==ref){switch(current.tag){case 26:case 27:case 5:var instanceToUse=getPublicInstance(current.stateNode);break;case 30:instanceToUse=current.stateNode;break;default:instanceToUse=current.stateNode;}"function"===typeof ref?current.refCleanup=ref(instanceToUse):ref.current=instanceToUse;}}catch(error){captureCommitPhaseError(current,nearestMountedAncestor,error);}}function safelyDetachRef(current,nearestMountedAncestor){var ref=current.ref,refCleanup=current.refCleanup;if(null!==ref)if("function"===typeof refCleanup)try{refCleanup();}catch(error){captureCommitPhaseError(current,nearestMountedAncestor,error);}finally{current.refCleanup=null,current=current.alternate,null!=current&&(current.refCleanup=null);}else if("function"===typeof ref)try{ref(null);}catch(error$124){captureCommitPhaseError(current,nearestMountedAncestor,error$124);}else ref.current=null;}function commitHostMount(finishedWork){var type=finishedWork.type,props=finishedWork.memoizedProps,instance=finishedWork.stateNode;try{commitMount(instance,type,props,finishedWork);}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}function commitHostUpdate(finishedWork,newProps,oldProps){try{commitUpdate(finishedWork.stateNode,finishedWork.type,oldProps,newProps,finishedWork);}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}function isHostParent(fiber){return 5===fiber.tag||3===fiber.tag||(supportsResources?26===fiber.tag:!1)||(supportsSingletons?27===fiber.tag&&isSingletonScope(fiber.type):!1)||4===fiber.tag;}function getHostSibling(fiber){a:for(;;){for(;null===fiber.sibling;){if(null===fiber.return||isHostParent(fiber.return))return null;fiber=fiber.return;}fiber.sibling.return=fiber.return;for(fiber=fiber.sibling;5!==fiber.tag&&6!==fiber.tag&&18!==fiber.tag;){if(supportsSingletons&&27===fiber.tag&&isSingletonScope(fiber.type))continue a;if(fiber.flags&2)continue a;if(null===fiber.child||4===fiber.tag)continue a;else fiber.child.return=fiber,fiber=fiber.child;}if(!(fiber.flags&2))return fiber.stateNode;}}function insertOrAppendPlacementNodeIntoContainer(node,before,parent){var tag=node.tag;if(5===tag||6===tag)node=node.stateNode,before?insertInContainerBefore(parent,node,before):appendChildToContainer(parent,node);else if(4!==tag&&(supportsSingletons&&27===tag&&isSingletonScope(node.type)&&(parent=node.stateNode,before=null),node=node.child,null!==node))for(insertOrAppendPlacementNodeIntoContainer(node,before,parent),node=node.sibling;null!==node;)insertOrAppendPlacementNodeIntoContainer(node,before,parent),node=node.sibling;}function insertOrAppendPlacementNode(node,before,parent){var tag=node.tag;if(5===tag||6===tag)node=node.stateNode,before?insertBefore(parent,node,before):appendChild(parent,node);else if(4!==tag&&(supportsSingletons&&27===tag&&isSingletonScope(node.type)&&(parent=node.stateNode),node=node.child,null!==node))for(insertOrAppendPlacementNode(node,before,parent),node=node.sibling;null!==node;)insertOrAppendPlacementNode(node,before,parent),node=node.sibling;}function commitHostPortalContainerChildren(portal,finishedWork,pendingChildren){portal=portal.containerInfo;try{replaceContainerChildren(portal,pendingChildren);}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}function commitHostSingletonAcquisition(finishedWork){var singleton=finishedWork.stateNode,props=finishedWork.memoizedProps;try{acquireSingletonInstance(finishedWork.type,props,singleton,finishedWork);}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}function commitBeforeMutationEffects(root,firstChild){prepareForCommit(root.containerInfo);for(nextEffect=firstChild;null!==nextEffect;)if(root=nextEffect,firstChild=root.child,0!==(root.subtreeFlags&1028)&&null!==firstChild)firstChild.return=root,nextEffect=firstChild;else for(;null!==nextEffect;){root=nextEffect;var current=root.alternate;firstChild=root.flags;switch(root.tag){case 0:if(0!==(firstChild&4)&&(firstChild=root.updateQueue,firstChild=null!==firstChild?firstChild.events:null,null!==firstChild))for(var ii=0;ii";case HAS_PSEUDO_CLASS_TYPE:return":has("+(selectorToString(selector)||"")+")";case ROLE_TYPE:return'[role="'+selector.value+'"]';case TEXT_TYPE:return'"'+selector.value+'"';case TEST_NAME_TYPE:return'[data-testname="'+selector.value+'"]';default:throw Error(formatProdErrorMessage(365));}}function findPaths(root,selectors){var matchingFibers=[];root=[root,0];for(var index=0;indexrenderPriority?32:renderPriority;renderPriority=ReactSharedInternals.T;var previousPriority=getCurrentUpdatePriority();try{setCurrentUpdatePriority(priority);ReactSharedInternals.T=null;priority=pendingPassiveTransitions;pendingPassiveTransitions=null;var root$jscomp$0=pendingEffectsRoot,lanes=pendingEffectsLanes;pendingEffectsStatus=0;pendingFinishedWork=pendingEffectsRoot=null;pendingEffectsLanes=0;if(0!==(executionContext&6))throw Error(formatProdErrorMessage(331));var prevExecutionContext=executionContext;executionContext|=4;commitPassiveUnmountOnFiber(root$jscomp$0.current);commitPassiveMountOnFiber(root$jscomp$0,root$jscomp$0.current,lanes,priority);executionContext=prevExecutionContext;flushSyncWorkAcrossRoots_impl(0,!1);if(injectedHook&&"function"===typeof injectedHook.onPostCommitFiberRoot)try{injectedHook.onPostCommitFiberRoot(rendererID,root$jscomp$0);}catch(err){}return!0;}finally{setCurrentUpdatePriority(previousPriority),ReactSharedInternals.T=renderPriority,releaseRootPooledCache(root,remainingLanes);}}function captureCommitPhaseErrorOnRoot(rootFiber,sourceFiber,error){sourceFiber=createCapturedValueAtFiber(error,sourceFiber);sourceFiber=createRootErrorUpdate(rootFiber.stateNode,sourceFiber,2);rootFiber=enqueueUpdate(rootFiber,sourceFiber,2);null!==rootFiber&&(markRootUpdated$1(rootFiber,2),ensureRootIsScheduled(rootFiber));}function captureCommitPhaseError(sourceFiber,nearestMountedAncestor,error){if(3===sourceFiber.tag)captureCommitPhaseErrorOnRoot(sourceFiber,sourceFiber,error);else for(;null!==nearestMountedAncestor;){if(3===nearestMountedAncestor.tag){captureCommitPhaseErrorOnRoot(nearestMountedAncestor,sourceFiber,error);break;}else if(1===nearestMountedAncestor.tag){var instance=nearestMountedAncestor.stateNode;if("function"===typeof nearestMountedAncestor.type.getDerivedStateFromError||"function"===typeof instance.componentDidCatch&&(null===legacyErrorBoundariesThatAlreadyFailed||!legacyErrorBoundariesThatAlreadyFailed.has(instance))){sourceFiber=createCapturedValueAtFiber(error,sourceFiber);error=createClassErrorUpdate(2);instance=enqueueUpdate(nearestMountedAncestor,error,2);null!==instance&&(initializeClassErrorUpdate(error,instance,nearestMountedAncestor,sourceFiber),markRootUpdated$1(instance,2),ensureRootIsScheduled(instance));break;}}nearestMountedAncestor=nearestMountedAncestor.return;}}function attachPingListener(root,wakeable,lanes){var pingCache=root.pingCache;if(null===pingCache){pingCache=root.pingCache=new PossiblyWeakMap();var threadIDs=new Set();pingCache.set(wakeable,threadIDs);}else threadIDs=pingCache.get(wakeable),void 0===threadIDs&&(threadIDs=new Set(),pingCache.set(wakeable,threadIDs));threadIDs.has(lanes)||(workInProgressRootDidAttachPingListener=!0,threadIDs.add(lanes),root=pingSuspendedRoot.bind(null,root,wakeable,lanes),wakeable.then(root,root));}function pingSuspendedRoot(root,wakeable,pingedLanes){var pingCache=root.pingCache;null!==pingCache&&pingCache.delete(wakeable);root.pingedLanes|=root.suspendedLanes&pingedLanes;root.warmLanes&=~pingedLanes;workInProgressRoot===root&&(workInProgressRootRenderLanes&pingedLanes)===pingedLanes&&(4===workInProgressRootExitStatus||3===workInProgressRootExitStatus&&(workInProgressRootRenderLanes&62914560)===workInProgressRootRenderLanes&&300>now()-globalMostRecentFallbackTime?0===(executionContext&2)&&prepareFreshStack(root,0):workInProgressRootPingedLanes|=pingedLanes,workInProgressSuspendedRetryLanes===workInProgressRootRenderLanes&&(workInProgressSuspendedRetryLanes=0));ensureRootIsScheduled(root);}function retryTimedOutBoundary(boundaryFiber,retryLane){0===retryLane&&(retryLane=claimNextRetryLane());boundaryFiber=enqueueConcurrentRenderForLane(boundaryFiber,retryLane);null!==boundaryFiber&&(markRootUpdated$1(boundaryFiber,retryLane),ensureRootIsScheduled(boundaryFiber));}function retryDehydratedSuspenseBoundary(boundaryFiber){var suspenseState=boundaryFiber.memoizedState,retryLane=0;null!==suspenseState&&(retryLane=suspenseState.retryLane);retryTimedOutBoundary(boundaryFiber,retryLane);}function resolveRetryWakeable(boundaryFiber,wakeable){var retryLane=0;switch(boundaryFiber.tag){case 31:case 13:var retryCache=boundaryFiber.stateNode;var suspenseState=boundaryFiber.memoizedState;null!==suspenseState&&(retryLane=suspenseState.retryLane);break;case 19:retryCache=boundaryFiber.stateNode;break;case 22:retryCache=boundaryFiber.stateNode._retryCache;break;default:throw Error(formatProdErrorMessage(314));}null!==retryCache&&retryCache.delete(wakeable);retryTimedOutBoundary(boundaryFiber,retryLane);}function scheduleCallback(priorityLevel,callback){return scheduleCallback$3(priorityLevel,callback);}function FiberNode(tag,pendingProps,key,mode){this.tag=tag;this.key=key;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.refCleanup=this.ref=null;this.pendingProps=pendingProps;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=mode;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null;}function shouldConstruct(Component){Component=Component.prototype;return!(!Component||!Component.isReactComponent);}function createWorkInProgress(current,pendingProps){var workInProgress=current.alternate;null===workInProgress?(workInProgress=createFiber(current.tag,pendingProps,current.key,current.mode),workInProgress.elementType=current.elementType,workInProgress.type=current.type,workInProgress.stateNode=current.stateNode,workInProgress.alternate=current,current.alternate=workInProgress):(workInProgress.pendingProps=pendingProps,workInProgress.type=current.type,workInProgress.flags=0,workInProgress.subtreeFlags=0,workInProgress.deletions=null);workInProgress.flags=current.flags&65011712;workInProgress.childLanes=current.childLanes;workInProgress.lanes=current.lanes;workInProgress.child=current.child;workInProgress.memoizedProps=current.memoizedProps;workInProgress.memoizedState=current.memoizedState;workInProgress.updateQueue=current.updateQueue;pendingProps=current.dependencies;workInProgress.dependencies=null===pendingProps?null:{lanes:pendingProps.lanes,firstContext:pendingProps.firstContext};workInProgress.sibling=current.sibling;workInProgress.index=current.index;workInProgress.ref=current.ref;workInProgress.refCleanup=current.refCleanup;return workInProgress;}function resetWorkInProgress(workInProgress,renderLanes){workInProgress.flags&=65011714;var current=workInProgress.alternate;null===current?(workInProgress.childLanes=0,workInProgress.lanes=renderLanes,workInProgress.child=null,workInProgress.subtreeFlags=0,workInProgress.memoizedProps=null,workInProgress.memoizedState=null,workInProgress.updateQueue=null,workInProgress.dependencies=null,workInProgress.stateNode=null):(workInProgress.childLanes=current.childLanes,workInProgress.lanes=current.lanes,workInProgress.child=current.child,workInProgress.subtreeFlags=0,workInProgress.deletions=null,workInProgress.memoizedProps=current.memoizedProps,workInProgress.memoizedState=current.memoizedState,workInProgress.updateQueue=current.updateQueue,workInProgress.type=current.type,renderLanes=current.dependencies,workInProgress.dependencies=null===renderLanes?null:{lanes:renderLanes.lanes,firstContext:renderLanes.firstContext});return workInProgress;}function createFiberFromTypeAndProps(type,key,pendingProps,owner,mode,lanes){var fiberTag=0;owner=type;if("function"===typeof type)shouldConstruct(type)&&(fiberTag=1);else if("string"===typeof type)fiberTag=supportsResources&&supportsSingletons?isHostHoistableType(type,pendingProps,contextStackCursor.current)?26:isHostSingletonType(type)?27:5:supportsResources?isHostHoistableType(type,pendingProps,contextStackCursor.current)?26:5:supportsSingletons?isHostSingletonType(type)?27:5:5;else a:switch(type){case REACT_ACTIVITY_TYPE:return type=createFiber(31,pendingProps,key,mode),type.elementType=REACT_ACTIVITY_TYPE,type.lanes=lanes,type;case REACT_FRAGMENT_TYPE:return createFiberFromFragment(pendingProps.children,mode,lanes,key);case REACT_STRICT_MODE_TYPE:fiberTag=8;mode|=24;break;case REACT_PROFILER_TYPE:return type=createFiber(12,pendingProps,key,mode|2),type.elementType=REACT_PROFILER_TYPE,type.lanes=lanes,type;case REACT_SUSPENSE_TYPE:return type=createFiber(13,pendingProps,key,mode),type.elementType=REACT_SUSPENSE_TYPE,type.lanes=lanes,type;case REACT_SUSPENSE_LIST_TYPE:return type=createFiber(19,pendingProps,key,mode),type.elementType=REACT_SUSPENSE_LIST_TYPE,type.lanes=lanes,type;default:if("object"===typeof type&&null!==type)switch(type.$$typeof){case REACT_CONTEXT_TYPE:fiberTag=10;break a;case REACT_CONSUMER_TYPE:fiberTag=9;break a;case REACT_FORWARD_REF_TYPE:fiberTag=11;break a;case REACT_MEMO_TYPE:fiberTag=14;break a;case REACT_LAZY_TYPE:fiberTag=16;owner=null;break a;}fiberTag=29;pendingProps=Error(formatProdErrorMessage(130,null===type?"null":typeof type,""));owner=null;}key=createFiber(fiberTag,pendingProps,key,mode);key.elementType=type;key.type=owner;key.lanes=lanes;return key;}function createFiberFromFragment(elements,mode,lanes,key){elements=createFiber(7,elements,key,mode);elements.lanes=lanes;return elements;}function createFiberFromText(content,mode,lanes){content=createFiber(6,content,null,mode);content.lanes=lanes;return content;}function createFiberFromDehydratedFragment(dehydratedNode){var fiber=createFiber(18,null,null,0);fiber.stateNode=dehydratedNode;return fiber;}function createFiberFromPortal(portal,mode,lanes){mode=createFiber(4,null!==portal.children?portal.children:[],portal.key,mode);mode.lanes=lanes;mode.stateNode={containerInfo:portal.containerInfo,pendingChildren:null,implementation:portal.implementation};return mode;}function FiberRootNode(containerInfo,tag,hydrate,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,onDefaultTransitionIndicator,formState){this.tag=1;this.containerInfo=containerInfo;this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=noTimeout;this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null;this.callbackPriority=0;this.expirationTimes=createLaneMap(-1);this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=createLaneMap(0);this.hiddenUpdates=createLaneMap(null);this.identifierPrefix=identifierPrefix;this.onUncaughtError=onUncaughtError;this.onCaughtError=onCaughtError;this.onRecoverableError=onRecoverableError;this.pooledCache=null;this.pooledCacheLanes=0;this.formState=formState;this.incompleteTransitions=new Map();}function createFiberRoot(containerInfo,tag,hydrate,initialChildren,hydrationCallbacks,isStrictMode,identifierPrefix,formState,onUncaughtError,onCaughtError,onRecoverableError,onDefaultTransitionIndicator){containerInfo=new FiberRootNode(containerInfo,tag,hydrate,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,onDefaultTransitionIndicator,formState);tag=1;!0===isStrictMode&&(tag|=24);isStrictMode=createFiber(3,null,null,tag);containerInfo.current=isStrictMode;isStrictMode.stateNode=containerInfo;tag=createCache();tag.refCount++;containerInfo.pooledCache=tag;tag.refCount++;isStrictMode.memoizedState={element:initialChildren,isDehydrated:hydrate,cache:tag};initializeUpdateQueue(isStrictMode);return containerInfo;}function getContextForSubtree(parentComponent){if(!parentComponent)return emptyContextObject;parentComponent=emptyContextObject;return parentComponent;}function findHostInstance(component){var fiber=component._reactInternals;if(void 0===fiber){if("function"===typeof component.render)throw Error(formatProdErrorMessage(188));component=Object.keys(component).join(",");throw Error(formatProdErrorMessage(268,component));}component=findCurrentFiberUsingSlowPath(fiber);component=null!==component?findCurrentHostFiberImpl(component):null;return null===component?null:getPublicInstance(component.stateNode);}function updateContainerImpl(rootFiber,lane,element,container,parentComponent,callback){parentComponent=getContextForSubtree(parentComponent);null===container.context?container.context=parentComponent:container.pendingContext=parentComponent;container=createUpdate(lane);container.payload={element:element};callback=void 0===callback?null:callback;null!==callback&&(container.callback=callback);element=enqueueUpdate(rootFiber,container,lane);null!==element&&(scheduleUpdateOnFiber(element,rootFiber,lane),entangleTransitions(element,rootFiber,lane));}function markRetryLaneImpl(fiber,retryLane){fiber=fiber.memoizedState;if(null!==fiber&&null!==fiber.dehydrated){var a=fiber.retryLane;fiber.retryLane=0!==a&&a=otherLeft&&targetTop>=otherTop&&targetRight<=otherRight&&targetBottom<=otherBottom){hostRoot.splice(selectors,1);break;}else if(!(targetLeft!==otherLeft||i.width!==otherRect.width||otherBottomtargetBottom)){otherTop>targetTop&&(otherRect.height+=otherTop-targetTop,otherRect.y=targetTop);otherBottomtargetRight)){otherLeft>targetLeft&&(otherRect.width+=otherLeft-targetLeft,otherRect.x=targetLeft);otherRightmaxSelectorIndex&&(maxSelectorIndex=selectorIndex)),selectorIndex ")+"\n\nNo matching component was found for:\n ")+hostRoot.join(" > ");}return null;};exports.getPublicRootInstance=function(container){container=container.current;if(!container.child)return null;switch(container.child.tag){case 27:case 5:return getPublicInstance(container.child.stateNode);default:return container.child.stateNode;}};exports.injectIntoDevTools=function(){var internals={bundleType:0,version:rendererVersion,rendererPackageName:rendererPackageName,currentDispatcherRef:ReactSharedInternals,reconcilerVersion:"19.2.0"};null!==extraDevToolsConfig&&(internals.rendererConfig=extraDevToolsConfig);if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)internals=!1;else{var hook=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(hook.isDisabled||!hook.supportsFiber)internals=!0;else{try{rendererID=hook.inject(internals),injectedHook=hook;}catch(err){}internals=hook.checkDCE?!0:!1;}}return internals;};exports.isAlreadyRendering=function(){return 0!==(executionContext&6);};exports.observeVisibleRects=function(hostRoot,selectors,callback,options){if(!supportsTestSelectors)throw Error(formatProdErrorMessage(363));hostRoot=findAllNodes(hostRoot,selectors);var disconnect=setupIntersectionObserver(hostRoot,callback,options).disconnect;return{disconnect:function(){disconnect();}};};exports.shouldError=function(){return null;};exports.shouldSuspend=function(){return!1;};exports.startHostTransition=function(formFiber,pendingState,action,formData){if(5!==formFiber.tag)throw Error(formatProdErrorMessage(476));var queue=ensureFormComponentIsStateful(formFiber).queue;startTransition(formFiber,queue,pendingState,NotPendingTransition,null===action?noop:function(){var stateHook=ensureFormComponentIsStateful(formFiber);null===stateHook.next&&(stateHook=formFiber.alternate.memoizedState);dispatchSetStateInternal(formFiber,stateHook.next.queue,{},requestUpdateLane());return action(formData);});};exports.updateContainer=function(element,container,parentComponent,callback){var current=container.current,lane=requestUpdateLane();updateContainerImpl(current,lane,element,container,parentComponent,callback);return lane;};exports.updateContainerSync=function(element,container,parentComponent,callback){updateContainerImpl(container.current,2,element,container,parentComponent,callback);return 2;};return exports;};module.exports["default"]=module.exports;Object.defineProperty(module.exports, "__esModule", ({value:!0})); +if(true){module.exports = __webpack_require__("./node_modules/scheduler/cjs/scheduler.production.js");}else// removed by dead control flow +{} /***/ }, -/***/ "./node_modules/react-reconciler/constants.js" -(module, __unused_webpack_exports, __webpack_require__) { +/***/ "./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[6].use[1]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[0].oneOf[6].use[2]!./node_modules/sass-loader/dist/cjs/index.js??ruleSet[1].rules[0].oneOf[6].use[3]!./src/index.scss" +(module, __webpack_exports__, __webpack_require__) { -if(true){module.exports = __webpack_require__("./node_modules/react-reconciler/cjs/react-reconciler-constants.production.js");}else// removed by dead control flow -{} +/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/css-loader/dist/runtime/api.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); +// Imports -/***/ }, -/***/ "./node_modules/react-reconciler/index.js" -(module, __unused_webpack_exports, __webpack_require__) { +var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); +// Module +___CSS_LOADER_EXPORT___.push([module.id, `scroll{flex-direction:column;align-items:flex-start;flex-wrap:wrap;padding:40px}`, ""]); +// Exports +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); -if(true){module.exports = __webpack_require__("./node_modules/react-reconciler/cjs/react-reconciler.production.js");}else// removed by dead control flow -{} +/* harmony export */ __webpack_require__.d(__webpack_exports__, [ +/* harmony export */ "A", 0, /* export default binding */ __WEBPACK_DEFAULT_EXPORT__ +/* harmony export */ ]); -/***/ }, -/***/ "./node_modules/react/cjs/react-jsx-runtime.production.js" -(__unused_webpack_module, exports) { +/***/ } +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ const __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ const cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ const module = __webpack_module_cache__[moduleId] = { +/******/ id: moduleId, +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/compat get default export */ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ const getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ +/******/ /* webpack/runtime/concatenation wrap */ +/******/ // wrap a concatenated module body as a lazy, memoized accessor; mod is +/******/ // set before the body runs so re-entrant calls (require cycles) observe +/******/ // the partial exports like Node.js +/******/ __webpack_require__.cw = (body) => { +/******/ var mod; +/******/ return () => { +/******/ if (body) { +/******/ var fn = body; +/******/ body = 0; +/******/ mod = { exports: {} }; +/******/ fn.call(mod.exports, mod, mod.exports); +/******/ } +/******/ return mod.exports; +/******/ }; +/******/ }; +/******/ +/******/ /* webpack/runtime/create fake namespace object */ +/******/ (() => { +/******/ const getProto = Object.getPrototypeOf; +/******/ let leafPrototypes; +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 16: return value when it's Promise-like +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = this(value); +/******/ if(mode & 8) return value; +/******/ if(typeof value === 'object' && value) { +/******/ if((mode & 4) && value.__esModule) return value; +/******/ if((mode & 16) && typeof value.then === 'function') return value; +/******/ } +/******/ const ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ const def = {}; +/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)]; +/******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) { +/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key]))); +/******/ } +/******/ def['default'] = () => (value); +/******/ __webpack_require__.d(ns, def); +/******/ return ns; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ // define getter/value functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ if(Array.isArray(definition)) { +/******/ var i = 0; +/******/ while(i < definition.length) { +/******/ var key = definition[i++]; +/******/ var binding = definition[i++]; +/******/ var descriptor = binding === 0 ? { enumerable: true, value: definition[i++] } : { enumerable: true, get: binding }; +/******/ if(!__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, descriptor); +/******/ } +/******/ } else { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ } +/******/ }; +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ /* webpack/runtime/nonce */ +/******/ __webpack_require__.nc = undefined; +/******/ +/************************************************************************/ +let __webpack_exports__ = {}; + +// MODULE: ./node_modules/react-reconciler/cjs/react-reconciler-constants.production.js +var react_reconciler_constants_production_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { +var __webpack_unused_export__; /** * @license React - * react-jsx-runtime.production.js + * react-reconciler-constants.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment");function jsxProd(type,config,maybeKey){var key=null;void 0!==maybeKey&&(key=""+maybeKey);void 0!==config.key&&(key=""+config.key);if("key"in config){maybeKey={};for(var propName in config)"key"!==propName&&(maybeKey[propName]=config[propName]);}else maybeKey=config;config=maybeKey.ref;return{$$typeof:REACT_ELEMENT_TYPE,type:type,key:key,ref:void 0!==config?config:null,props:maybeKey};}exports.Fragment=REACT_FRAGMENT_TYPE;exports.jsx=jsxProd;exports.jsxs=jsxProd; - -/***/ }, - -/***/ "./node_modules/react/cjs/react.production.js" -(__unused_webpack_module, exports) { + */exports.ConcurrentRoot=1;exports.ContinuousEventPriority=8;exports.DefaultEventPriority=32;exports.DiscreteEventPriority=2;exports.IdleEventPriority=268435456;exports.LegacyRoot=0;__webpack_unused_export__=0; +}); +// MODULE: ./node_modules/react-reconciler/cjs/react-reconciler.production.js +var react_reconciler_production_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { /** * @license React - * react.production.js + * react-reconciler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_CONSUMER_TYPE=Symbol.for("react.consumer"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_ACTIVITY_TYPE=Symbol.for("react.activity"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator;function getIteratorFn(maybeIterable){if(null===maybeIterable||"object"!==typeof maybeIterable)return null;maybeIterable=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable["@@iterator"];return"function"===typeof maybeIterable?maybeIterable:null;}var ReactNoopUpdateQueue={isMounted:function(){return!1;},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},assign=Object.assign,emptyObject={};function Component(props,context,updater){this.props=props;this.context=context;this.refs=emptyObject;this.updater=updater||ReactNoopUpdateQueue;}Component.prototype.isReactComponent={};Component.prototype.setState=function(partialState,callback){if("object"!==typeof partialState&&"function"!==typeof partialState&&null!=partialState)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,partialState,callback,"setState");};Component.prototype.forceUpdate=function(callback){this.updater.enqueueForceUpdate(this,callback,"forceUpdate");};function ComponentDummy(){}ComponentDummy.prototype=Component.prototype;function PureComponent(props,context,updater){this.props=props;this.context=context;this.refs=emptyObject;this.updater=updater||ReactNoopUpdateQueue;}var pureComponentPrototype=PureComponent.prototype=new ComponentDummy();pureComponentPrototype.constructor=PureComponent;assign(pureComponentPrototype,Component.prototype);pureComponentPrototype.isPureReactComponent=!0;var isArrayImpl=Array.isArray;function noop(){}var ReactSharedInternals={H:null,A:null,T:null,S:null},hasOwnProperty=Object.prototype.hasOwnProperty;function ReactElement(type,key,props){var refProp=props.ref;return{$$typeof:REACT_ELEMENT_TYPE,type:type,key:key,ref:void 0!==refProp?refProp:null,props:props};}function cloneAndReplaceKey(oldElement,newKey){return ReactElement(oldElement.type,newKey,oldElement.props);}function isValidElement(object){return"object"===typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE;}function escape(key){var escaperLookup={"=":"=0",":":"=2"};return"$"+key.replace(/[=:]/g,function(match){return escaperLookup[match];});}var userProvidedKeyEscapeRegex=/\/+/g;function getElementKey(element,index){return"object"===typeof element&&null!==element&&null!=element.key?escape(""+element.key):index.toString(36);}function resolveThenable(thenable){switch(thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenable.reason;default:switch("string"===typeof thenable.status?thenable.then(noop,noop):(thenable.status="pending",thenable.then(function(fulfilledValue){"pending"===thenable.status&&(thenable.status="fulfilled",thenable.value=fulfilledValue);},function(error){"pending"===thenable.status&&(thenable.status="rejected",thenable.reason=error);})),thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenable.reason;}}throw thenable;}function mapIntoArray(children,array,escapedPrefix,nameSoFar,callback){var type=typeof children;if("undefined"===type||"boolean"===type)children=null;var invokeCallback=!1;if(null===children)invokeCallback=!0;else switch(type){case"bigint":case"string":case"number":invokeCallback=!0;break;case"object":switch(children.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:invokeCallback=!0;break;case REACT_LAZY_TYPE:return invokeCallback=children._init,mapIntoArray(invokeCallback(children._payload),array,escapedPrefix,nameSoFar,callback);}}if(invokeCallback)return callback=callback(children),invokeCallback=""===nameSoFar?"."+getElementKey(children,0):nameSoFar,isArrayImpl(callback)?(escapedPrefix="",null!=invokeCallback&&(escapedPrefix=invokeCallback.replace(userProvidedKeyEscapeRegex,"$&/")+"/"),mapIntoArray(callback,array,escapedPrefix,"",function(c){return c;})):null!=callback&&(isValidElement(callback)&&(callback=cloneAndReplaceKey(callback,escapedPrefix+(null==callback.key||children&&children.key===callback.key?"":(""+callback.key).replace(userProvidedKeyEscapeRegex,"$&/")+"/")+invokeCallback)),array.push(callback)),1;invokeCallback=0;var nextNamePrefix=""===nameSoFar?".":nameSoFar+":";if(isArrayImpl(children))for(var i=0;iindex$jscomp$0||(cursor.current=valueStack[index$jscomp$0],valueStack[index$jscomp$0]=null,index$jscomp$0--);}function push(cursor,value){index$jscomp$0++;valueStack[index$jscomp$0]=cursor.current;cursor.current=value;}function clz32Fallback(x){x>>>=0;return 0===x?32:31-(log$1(x)/LN2|0)|0;}function getHighestPriorityLanes(lanes){var pendingSyncLanes=lanes&42;if(0!==pendingSyncLanes)return pendingSyncLanes;switch(lanes&-lanes){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return lanes&261888;case 262144:case 524288:case 1048576:case 2097152:return lanes&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return lanes&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return lanes;}}function getNextLanes(root,wipLanes,rootHasPendingCommit){var pendingLanes=root.pendingLanes;if(0===pendingLanes)return 0;var nextLanes=0,suspendedLanes=root.suspendedLanes,pingedLanes=root.pingedLanes;root=root.warmLanes;var nonIdlePendingLanes=pendingLanes&134217727;0!==nonIdlePendingLanes?(pendingLanes=nonIdlePendingLanes&~suspendedLanes,0!==pendingLanes?nextLanes=getHighestPriorityLanes(pendingLanes):(pingedLanes&=nonIdlePendingLanes,0!==pingedLanes?nextLanes=getHighestPriorityLanes(pingedLanes):rootHasPendingCommit||(rootHasPendingCommit=nonIdlePendingLanes&~root,0!==rootHasPendingCommit&&(nextLanes=getHighestPriorityLanes(rootHasPendingCommit))))):(nonIdlePendingLanes=pendingLanes&~suspendedLanes,0!==nonIdlePendingLanes?nextLanes=getHighestPriorityLanes(nonIdlePendingLanes):0!==pingedLanes?nextLanes=getHighestPriorityLanes(pingedLanes):rootHasPendingCommit||(rootHasPendingCommit=pendingLanes&~root,0!==rootHasPendingCommit&&(nextLanes=getHighestPriorityLanes(rootHasPendingCommit))));return 0===nextLanes?0:0!==wipLanes&&wipLanes!==nextLanes&&0===(wipLanes&suspendedLanes)&&(suspendedLanes=nextLanes&-nextLanes,rootHasPendingCommit=wipLanes&-wipLanes,suspendedLanes>=rootHasPendingCommit||32===suspendedLanes&&0!==(rootHasPendingCommit&4194048))?wipLanes:nextLanes;}function checkIfRootIsPrerendering(root,renderLanes){return 0===(root.pendingLanes&~(root.suspendedLanes&~root.pingedLanes)&renderLanes);}function computeExpirationTime(lane,currentTime){switch(lane){case 1:case 2:case 4:case 8:case 64:return currentTime+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return currentTime+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1;}}function claimNextRetryLane(){var lane=nextRetryLane;nextRetryLane<<=1;0===(nextRetryLane&62914560)&&(nextRetryLane=4194304);return lane;}function createLaneMap(initial){for(var laneMap=[],i=0;31>i;i++)laneMap.push(initial);return laneMap;}function markRootUpdated$1(root,updateLane){root.pendingLanes|=updateLane;268435456!==updateLane&&(root.suspendedLanes=0,root.pingedLanes=0,root.warmLanes=0);}function markRootFinished(root,finishedLanes,remainingLanes,spawnedLane,updatedLanes,suspendedRetryLanes){var previouslyPendingLanes=root.pendingLanes;root.pendingLanes=remainingLanes;root.suspendedLanes=0;root.pingedLanes=0;root.warmLanes=0;root.expiredLanes&=remainingLanes;root.entangledLanes&=remainingLanes;root.errorRecoveryDisabledLanes&=remainingLanes;root.shellSuspendCounter=0;var entanglements=root.entanglements,expirationTimes=root.expirationTimes,hiddenUpdates=root.hiddenUpdates;for(remainingLanes=previouslyPendingLanes&~remainingLanes;0)":-1namePropDescriptor||sampleLines[RunInRootFrame]!==controlLines[namePropDescriptor]){var frame="\n"+sampleLines[RunInRootFrame].replace(" at new "," at ");fn.displayName&&frame.includes("")&&(frame=frame.replace("",fn.displayName));return frame;}while(1<=RunInRootFrame&&0<=namePropDescriptor);}break;}}}finally{reentry=!1,Error.prepareStackTrace=previousPrepareStackTrace;}return(previousPrepareStackTrace=fn?fn.displayName||fn.name:"")?describeBuiltInComponentFrame(previousPrepareStackTrace):"";}function describeFiber(fiber,childFiber){switch(fiber.tag){case 26:case 27:case 5:return describeBuiltInComponentFrame(fiber.type);case 16:return describeBuiltInComponentFrame("Lazy");case 13:return fiber.child!==childFiber&&null!==childFiber?describeBuiltInComponentFrame("Suspense Fallback"):describeBuiltInComponentFrame("Suspense");case 19:return describeBuiltInComponentFrame("SuspenseList");case 0:case 15:return describeNativeComponentFrame(fiber.type,!1);case 11:return describeNativeComponentFrame(fiber.type.render,!1);case 1:return describeNativeComponentFrame(fiber.type,!0);case 31:return describeBuiltInComponentFrame("Activity");default:return"";}}function getStackByFiberInDevAndProd(workInProgress){try{var info="",previous=null;do info+=describeFiber(workInProgress,previous),previous=workInProgress,workInProgress=workInProgress.return;while(workInProgress);return info;}catch(x){return"\nError generating stack: "+x.message+"\n"+x.stack;}}function createCapturedValueAtFiber(value,source){if("object"===typeof value&&null!==value){var existing=CapturedStacks.get(value);if(void 0!==existing)return existing;source={value:value,source:source,stack:getStackByFiberInDevAndProd(source)};CapturedStacks.set(value,source);return source;}return{value:value,source:source,stack:getStackByFiberInDevAndProd(source)};}function pushTreeFork(workInProgress,totalChildren){forkStack[forkStackIndex++]=treeForkCount;forkStack[forkStackIndex++]=treeForkProvider;treeForkProvider=workInProgress;treeForkCount=totalChildren;}function pushTreeId(workInProgress,totalChildren,index){idStack[idStackIndex++]=treeContextId;idStack[idStackIndex++]=treeContextOverflow;idStack[idStackIndex++]=treeContextProvider;treeContextProvider=workInProgress;var baseIdWithLeadingBit=treeContextId;workInProgress=treeContextOverflow;var baseLength=32-clz32(baseIdWithLeadingBit)-1;baseIdWithLeadingBit&=~(1<>=numberOfOverflowBits;baseLength-=numberOfOverflowBits;treeContextId=1<<32-clz32(totalChildren)+baseLength|index<newIdx?(nextOldFiber=oldFiber,oldFiber=null):nextOldFiber=oldFiber.sibling;var newFiber=updateSlot(returnFiber,oldFiber,newChildren[newIdx],lanes);if(null===newFiber){null===oldFiber&&(oldFiber=nextOldFiber);break;}shouldTrackSideEffects&&oldFiber&&null===newFiber.alternate&&deleteChild(returnFiber,oldFiber);currentFirstChild=placeChild(newFiber,currentFirstChild,newIdx);null===previousNewFiber?resultingFirstChild=newFiber:previousNewFiber.sibling=newFiber;previousNewFiber=newFiber;oldFiber=nextOldFiber;}if(newIdx===newChildren.length)return deleteRemainingChildren(returnFiber,oldFiber),isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild;if(null===oldFiber){for(;newIdxnewIdx?(nextOldFiber=oldFiber,oldFiber=null):nextOldFiber=oldFiber.sibling;var newFiber=updateSlot(returnFiber,oldFiber,step.value,lanes);if(null===newFiber){null===oldFiber&&(oldFiber=nextOldFiber);break;}shouldTrackSideEffects&&oldFiber&&null===newFiber.alternate&&deleteChild(returnFiber,oldFiber);currentFirstChild=placeChild(newFiber,currentFirstChild,newIdx);null===previousNewFiber?resultingFirstChild=newFiber:previousNewFiber.sibling=newFiber;previousNewFiber=newFiber;oldFiber=nextOldFiber;}if(step.done)return deleteRemainingChildren(returnFiber,oldFiber),isHydrating&&pushTreeFork(returnFiber,newIdx),resultingFirstChild;if(null===oldFiber){for(;!step.done;newIdx++,step=newChildren.next())step=createChild(returnFiber,step.value,lanes),null!==step&&(currentFirstChild=placeChild(step,currentFirstChild,newIdx),null===previousNewFiber?resultingFirstChild=step:previousNewFiber.sibling=step,previousNewFiber=step);isHydrating&&pushTreeFork(returnFiber,newIdx);return resultingFirstChild;}for(oldFiber=mapRemainingChildren(oldFiber);!step.done;newIdx++,step=newChildren.next())step=updateFromMap(oldFiber,returnFiber,newIdx,step.value,lanes),null!==step&&(shouldTrackSideEffects&&null!==step.alternate&&oldFiber.delete(null===step.key?newIdx:step.key),currentFirstChild=placeChild(step,currentFirstChild,newIdx),null===previousNewFiber?resultingFirstChild=step:previousNewFiber.sibling=step,previousNewFiber=step);shouldTrackSideEffects&&oldFiber.forEach(function(child){return deleteChild(returnFiber,child);});isHydrating&&pushTreeFork(returnFiber,newIdx);return resultingFirstChild;}function reconcileChildFibersImpl(returnFiber,currentFirstChild,newChild,lanes){"object"===typeof newChild&&null!==newChild&&newChild.type===REACT_FRAGMENT_TYPE&&null===newChild.key&&(newChild=newChild.props.children);if("object"===typeof newChild&&null!==newChild){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:a:{for(var key=newChild.key;null!==currentFirstChild;){if(currentFirstChild.key===key){key=newChild.type;if(key===REACT_FRAGMENT_TYPE){if(7===currentFirstChild.tag){deleteRemainingChildren(returnFiber,currentFirstChild.sibling);lanes=useFiber(currentFirstChild,newChild.props.children);lanes.return=returnFiber;returnFiber=lanes;break a;}}else if(currentFirstChild.elementType===key||"object"===typeof key&&null!==key&&key.$$typeof===REACT_LAZY_TYPE&&resolveLazy(key)===currentFirstChild.type){deleteRemainingChildren(returnFiber,currentFirstChild.sibling);lanes=useFiber(currentFirstChild,newChild.props);coerceRef(lanes,newChild);lanes.return=returnFiber;returnFiber=lanes;break a;}deleteRemainingChildren(returnFiber,currentFirstChild);break;}else deleteChild(returnFiber,currentFirstChild);currentFirstChild=currentFirstChild.sibling;}newChild.type===REACT_FRAGMENT_TYPE?(lanes=createFiberFromFragment(newChild.props.children,returnFiber.mode,lanes,newChild.key),lanes.return=returnFiber,returnFiber=lanes):(lanes=createFiberFromTypeAndProps(newChild.type,newChild.key,newChild.props,null,returnFiber.mode,lanes),coerceRef(lanes,newChild),lanes.return=returnFiber,returnFiber=lanes);}return placeSingleChild(returnFiber);case REACT_PORTAL_TYPE:a:{for(key=newChild.key;null!==currentFirstChild;){if(currentFirstChild.key===key){if(4===currentFirstChild.tag&¤tFirstChild.stateNode.containerInfo===newChild.containerInfo&¤tFirstChild.stateNode.implementation===newChild.implementation){deleteRemainingChildren(returnFiber,currentFirstChild.sibling);lanes=useFiber(currentFirstChild,newChild.children||[]);lanes.return=returnFiber;returnFiber=lanes;break a;}else{deleteRemainingChildren(returnFiber,currentFirstChild);break;}}else deleteChild(returnFiber,currentFirstChild);currentFirstChild=currentFirstChild.sibling;}lanes=createFiberFromPortal(newChild,returnFiber.mode,lanes);lanes.return=returnFiber;returnFiber=lanes;}return placeSingleChild(returnFiber);case REACT_LAZY_TYPE:return newChild=resolveLazy(newChild),reconcileChildFibersImpl(returnFiber,currentFirstChild,newChild,lanes);}if(isArrayImpl(newChild))return reconcileChildrenArray(returnFiber,currentFirstChild,newChild,lanes);if(getIteratorFn(newChild)){key=getIteratorFn(newChild);if("function"!==typeof key)throw Error(formatProdErrorMessage(150));newChild=key.call(newChild);return reconcileChildrenIterator(returnFiber,currentFirstChild,newChild,lanes);}if("function"===typeof newChild.then)return reconcileChildFibersImpl(returnFiber,currentFirstChild,unwrapThenable(newChild),lanes);if(newChild.$$typeof===REACT_CONTEXT_TYPE)return reconcileChildFibersImpl(returnFiber,currentFirstChild,readContextDuringReconciliation(returnFiber,newChild),lanes);throwOnInvalidObjectTypeImpl(returnFiber,newChild);}return"string"===typeof newChild&&""!==newChild||"number"===typeof newChild||"bigint"===typeof newChild?(newChild=""+newChild,null!==currentFirstChild&&6===currentFirstChild.tag?(deleteRemainingChildren(returnFiber,currentFirstChild.sibling),lanes=useFiber(currentFirstChild,newChild),lanes.return=returnFiber,returnFiber=lanes):(deleteRemainingChildren(returnFiber,currentFirstChild),lanes=createFiberFromText(newChild,returnFiber.mode,lanes),lanes.return=returnFiber,returnFiber=lanes),placeSingleChild(returnFiber)):deleteRemainingChildren(returnFiber,currentFirstChild);}return function(returnFiber,currentFirstChild,newChild,lanes){try{thenableIndexCounter$1=0;var firstChildFiber=reconcileChildFibersImpl(returnFiber,currentFirstChild,newChild,lanes);thenableState$1=null;return firstChildFiber;}catch(x){if(x===SuspenseException||x===SuspenseActionException)throw x;var fiber=createFiber(29,x,null,returnFiber.mode);fiber.lanes=lanes;fiber.return=returnFiber;return fiber;}finally{}};}function finishQueueingConcurrentUpdates(){for(var endIndex=concurrentQueuesIndex,i=concurrentlyUpdatedLanes=concurrentQueuesIndex=0;ipreviousPriority?previousPriority:8);var prevTransition=ReactSharedInternals.T,currentTransition={};ReactSharedInternals.T=currentTransition;dispatchOptimisticSetState(fiber,!1,queue,pendingState);try{var returnValue=callback(),onStartTransitionFinish=ReactSharedInternals.S;null!==onStartTransitionFinish&&onStartTransitionFinish(currentTransition,returnValue);if(null!==returnValue&&"object"===typeof returnValue&&"function"===typeof returnValue.then){var thenableForFinishedState=chainThenableValue(returnValue,finishedState);dispatchSetStateInternal(fiber,queue,thenableForFinishedState,requestUpdateLane(fiber));}else dispatchSetStateInternal(fiber,queue,finishedState,requestUpdateLane(fiber));}catch(error){dispatchSetStateInternal(fiber,queue,{then:function(){},status:"rejected",reason:error},requestUpdateLane());}finally{setCurrentUpdatePriority(previousPriority),null!==prevTransition&&null!==currentTransition.types&&(prevTransition.types=currentTransition.types),ReactSharedInternals.T=prevTransition;}}function ensureFormComponentIsStateful(formFiber){var existingStateHook=formFiber.memoizedState;if(null!==existingStateHook)return existingStateHook;existingStateHook={memoizedState:NotPendingTransition,baseState:NotPendingTransition,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:NotPendingTransition},next:null};var initialResetState={};existingStateHook.next={memoizedState:initialResetState,baseState:initialResetState,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:initialResetState},next:null};formFiber.memoizedState=existingStateHook;formFiber=formFiber.alternate;null!==formFiber&&(formFiber.memoizedState=existingStateHook);return existingStateHook;}function useHostTransitionStatus(){return readContext(HostTransitionContext);}function updateId(){return updateWorkInProgressHook().memoizedState;}function updateRefresh(){return updateWorkInProgressHook().memoizedState;}function refreshCache(fiber){for(var provider=fiber.return;null!==provider;){switch(provider.tag){case 24:case 3:var lane=requestUpdateLane();fiber=createUpdate(lane);var root=enqueueUpdate(provider,fiber,lane);null!==root&&(scheduleUpdateOnFiber(root,provider,lane),entangleTransitions(root,provider,lane));provider={cache:createCache()};fiber.payload=provider;return;}provider=provider.return;}}function dispatchReducerAction(fiber,queue,action){var lane=requestUpdateLane();action={lane:lane,revertLane:0,gesture:null,action:action,hasEagerState:!1,eagerState:null,next:null};isRenderPhaseUpdate(fiber)?enqueueRenderPhaseUpdate(queue,action):(action=enqueueConcurrentHookUpdate(fiber,queue,action,lane),null!==action&&(scheduleUpdateOnFiber(action,fiber,lane),entangleTransitionUpdate(action,queue,lane)));}function dispatchSetState(fiber,queue,action){var lane=requestUpdateLane();dispatchSetStateInternal(fiber,queue,action,lane);}function dispatchSetStateInternal(fiber,queue,action,lane){var update={lane:lane,revertLane:0,gesture:null,action:action,hasEagerState:!1,eagerState:null,next:null};if(isRenderPhaseUpdate(fiber))enqueueRenderPhaseUpdate(queue,update);else{var alternate=fiber.alternate;if(0===fiber.lanes&&(null===alternate||0===alternate.lanes)&&(alternate=queue.lastRenderedReducer,null!==alternate))try{var currentState=queue.lastRenderedState,eagerState=alternate(currentState,action);update.hasEagerState=!0;update.eagerState=eagerState;if(objectIs(eagerState,currentState))return enqueueUpdate$1(fiber,queue,update,0),null===workInProgressRoot&&finishQueueingConcurrentUpdates(),!1;}catch(error){}finally{}action=enqueueConcurrentHookUpdate(fiber,queue,update,lane);if(null!==action)return scheduleUpdateOnFiber(action,fiber,lane),entangleTransitionUpdate(action,queue,lane),!0;}return!1;}function dispatchOptimisticSetState(fiber,throwIfDuringRender,queue,action){action={lane:2,revertLane:requestTransitionLane(),gesture:null,action:action,hasEagerState:!1,eagerState:null,next:null};if(isRenderPhaseUpdate(fiber)){if(throwIfDuringRender)throw Error(formatProdErrorMessage(479));}else throwIfDuringRender=enqueueConcurrentHookUpdate(fiber,queue,action,2),null!==throwIfDuringRender&&scheduleUpdateOnFiber(throwIfDuringRender,fiber,2);}function isRenderPhaseUpdate(fiber){var alternate=fiber.alternate;return fiber===currentlyRenderingFiber||null!==alternate&&alternate===currentlyRenderingFiber;}function enqueueRenderPhaseUpdate(queue,update){didScheduleRenderPhaseUpdateDuringThisPass=didScheduleRenderPhaseUpdate=!0;var pending=queue.pending;null===pending?update.next=update:(update.next=pending.next,pending.next=update);queue.pending=update;}function entangleTransitionUpdate(root,queue,lane){if(0!==(lane&4194048)){var queueLanes=queue.lanes;queueLanes&=root.pendingLanes;lane|=queueLanes;queue.lanes=lane;markRootEntangled(root,lane);}}function applyDerivedStateFromProps(workInProgress,ctor,getDerivedStateFromProps,nextProps){ctor=workInProgress.memoizedState;getDerivedStateFromProps=getDerivedStateFromProps(nextProps,ctor);getDerivedStateFromProps=null===getDerivedStateFromProps||void 0===getDerivedStateFromProps?ctor:assign({},ctor,getDerivedStateFromProps);workInProgress.memoizedState=getDerivedStateFromProps;0===workInProgress.lanes&&(workInProgress.updateQueue.baseState=getDerivedStateFromProps);}function checkShouldComponentUpdate(workInProgress,ctor,oldProps,newProps,oldState,newState,nextContext){workInProgress=workInProgress.stateNode;return"function"===typeof workInProgress.shouldComponentUpdate?workInProgress.shouldComponentUpdate(newProps,newState,nextContext):ctor.prototype&&ctor.prototype.isPureReactComponent?!shallowEqual(oldProps,newProps)||!shallowEqual(oldState,newState):!0;}function callComponentWillReceiveProps(workInProgress,instance,newProps,nextContext){workInProgress=instance.state;"function"===typeof instance.componentWillReceiveProps&&instance.componentWillReceiveProps(newProps,nextContext);"function"===typeof instance.UNSAFE_componentWillReceiveProps&&instance.UNSAFE_componentWillReceiveProps(newProps,nextContext);instance.state!==workInProgress&&classComponentUpdater.enqueueReplaceState(instance,instance.state,null);}function resolveClassComponentProps(Component,baseProps){var newProps=baseProps;if("ref"in baseProps){newProps={};for(var propName in baseProps)"ref"!==propName&&(newProps[propName]=baseProps[propName]);}if(Component=Component.defaultProps){newProps===baseProps&&(newProps=assign({},newProps));for(var propName$57 in Component)void 0===newProps[propName$57]&&(newProps[propName$57]=Component[propName$57]);}return newProps;}function logUncaughtError(root,errorInfo){try{var onUncaughtError=root.onUncaughtError;onUncaughtError(errorInfo.value,{componentStack:errorInfo.stack});}catch(e){setTimeout(function(){throw e;});}}function logCaughtError(root,boundary,errorInfo){try{var onCaughtError=root.onCaughtError;onCaughtError(errorInfo.value,{componentStack:errorInfo.stack,errorBoundary:1===boundary.tag?boundary.stateNode:null});}catch(e){setTimeout(function(){throw e;});}}function createRootErrorUpdate(root,errorInfo,lane){lane=createUpdate(lane);lane.tag=3;lane.payload={element:null};lane.callback=function(){logUncaughtError(root,errorInfo);};return lane;}function createClassErrorUpdate(lane){lane=createUpdate(lane);lane.tag=3;return lane;}function initializeClassErrorUpdate(update,root,fiber,errorInfo){var getDerivedStateFromError=fiber.type.getDerivedStateFromError;if("function"===typeof getDerivedStateFromError){var error=errorInfo.value;update.payload=function(){return getDerivedStateFromError(error);};update.callback=function(){logCaughtError(root,fiber,errorInfo);};}var inst=fiber.stateNode;null!==inst&&"function"===typeof inst.componentDidCatch&&(update.callback=function(){logCaughtError(root,fiber,errorInfo);"function"!==typeof getDerivedStateFromError&&(null===legacyErrorBoundariesThatAlreadyFailed?legacyErrorBoundariesThatAlreadyFailed=new Set([this]):legacyErrorBoundariesThatAlreadyFailed.add(this));var stack=errorInfo.stack;this.componentDidCatch(errorInfo.value,{componentStack:null!==stack?stack:""});});}function throwException(root,returnFiber,sourceFiber,value,rootRenderLanes){sourceFiber.flags|=32768;if(null!==value&&"object"===typeof value&&"function"===typeof value.then){returnFiber=sourceFiber.alternate;null!==returnFiber&&propagateParentContextChanges(returnFiber,sourceFiber,rootRenderLanes,!0);sourceFiber=suspenseHandlerStackCursor.current;if(null!==sourceFiber){switch(sourceFiber.tag){case 31:case 13:return null===shellBoundary?renderDidSuspendDelayIfPossible():null===sourceFiber.alternate&&0===workInProgressRootExitStatus&&(workInProgressRootExitStatus=3),sourceFiber.flags&=-257,sourceFiber.flags|=65536,sourceFiber.lanes=rootRenderLanes,value===noopSuspenseyCommitThenable?sourceFiber.flags|=16384:(returnFiber=sourceFiber.updateQueue,null===returnFiber?sourceFiber.updateQueue=new Set([value]):returnFiber.add(value),attachPingListener(root,value,rootRenderLanes)),!1;case 22:return sourceFiber.flags|=65536,value===noopSuspenseyCommitThenable?sourceFiber.flags|=16384:(returnFiber=sourceFiber.updateQueue,null===returnFiber?(returnFiber={transitions:null,markerInstances:null,retryQueue:new Set([value])},sourceFiber.updateQueue=returnFiber):(sourceFiber=returnFiber.retryQueue,null===sourceFiber?returnFiber.retryQueue=new Set([value]):sourceFiber.add(value)),attachPingListener(root,value,rootRenderLanes)),!1;}throw Error(formatProdErrorMessage(435,sourceFiber.tag));}attachPingListener(root,value,rootRenderLanes);renderDidSuspendDelayIfPossible();return!1;}if(isHydrating)return returnFiber=suspenseHandlerStackCursor.current,null!==returnFiber?(0===(returnFiber.flags&65536)&&(returnFiber.flags|=256),returnFiber.flags|=65536,returnFiber.lanes=rootRenderLanes,value!==HydrationMismatchException&&(root=Error(formatProdErrorMessage(422),{cause:value}),queueHydrationError(createCapturedValueAtFiber(root,sourceFiber)))):(value!==HydrationMismatchException&&(returnFiber=Error(formatProdErrorMessage(423),{cause:value}),queueHydrationError(createCapturedValueAtFiber(returnFiber,sourceFiber))),root=root.current.alternate,root.flags|=65536,rootRenderLanes&=-rootRenderLanes,root.lanes|=rootRenderLanes,value=createCapturedValueAtFiber(value,sourceFiber),rootRenderLanes=createRootErrorUpdate(root.stateNode,value,rootRenderLanes),enqueueCapturedUpdate(root,rootRenderLanes),4!==workInProgressRootExitStatus&&(workInProgressRootExitStatus=2)),!1;var wrapperError=Error(formatProdErrorMessage(520),{cause:value});wrapperError=createCapturedValueAtFiber(wrapperError,sourceFiber);null===workInProgressRootConcurrentErrors?workInProgressRootConcurrentErrors=[wrapperError]:workInProgressRootConcurrentErrors.push(wrapperError);4!==workInProgressRootExitStatus&&(workInProgressRootExitStatus=2);if(null===returnFiber)return!0;value=createCapturedValueAtFiber(value,sourceFiber);sourceFiber=returnFiber;do{switch(sourceFiber.tag){case 3:return sourceFiber.flags|=65536,root=rootRenderLanes&-rootRenderLanes,sourceFiber.lanes|=root,root=createRootErrorUpdate(sourceFiber.stateNode,value,root),enqueueCapturedUpdate(sourceFiber,root),!1;case 1:if(returnFiber=sourceFiber.type,wrapperError=sourceFiber.stateNode,0===(sourceFiber.flags&128)&&("function"===typeof returnFiber.getDerivedStateFromError||null!==wrapperError&&"function"===typeof wrapperError.componentDidCatch&&(null===legacyErrorBoundariesThatAlreadyFailed||!legacyErrorBoundariesThatAlreadyFailed.has(wrapperError))))return sourceFiber.flags|=65536,rootRenderLanes&=-rootRenderLanes,sourceFiber.lanes|=rootRenderLanes,rootRenderLanes=createClassErrorUpdate(rootRenderLanes),initializeClassErrorUpdate(rootRenderLanes,root,sourceFiber,value),enqueueCapturedUpdate(sourceFiber,rootRenderLanes),!1;}sourceFiber=sourceFiber.return;}while(null!==sourceFiber);return!1;}function reconcileChildren(current,workInProgress,nextChildren,renderLanes){workInProgress.child=null===current?mountChildFibers(workInProgress,null,nextChildren,renderLanes):reconcileChildFibers(workInProgress,current.child,nextChildren,renderLanes);}function updateForwardRef(current,workInProgress,Component,nextProps,renderLanes){Component=Component.render;var ref=workInProgress.ref;if("ref"in nextProps){var propsWithoutRef={};for(var key in nextProps)"ref"!==key&&(propsWithoutRef[key]=nextProps[key]);}else propsWithoutRef=nextProps;prepareToReadContext(workInProgress);nextProps=renderWithHooks(current,workInProgress,Component,propsWithoutRef,ref,renderLanes);key=checkDidRenderIdHook();if(null!==current&&!didReceiveUpdate)return bailoutHooks(current,workInProgress,renderLanes),bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);isHydrating&&key&&pushMaterializedTreeId(workInProgress);workInProgress.flags|=1;reconcileChildren(current,workInProgress,nextProps,renderLanes);return workInProgress.child;}function updateMemoComponent(current,workInProgress,Component,nextProps,renderLanes){if(null===current){var type=Component.type;if("function"===typeof type&&!shouldConstruct(type)&&void 0===type.defaultProps&&null===Component.compare)return workInProgress.tag=15,workInProgress.type=type,updateSimpleMemoComponent(current,workInProgress,type,nextProps,renderLanes);current=createFiberFromTypeAndProps(Component.type,null,nextProps,workInProgress,workInProgress.mode,renderLanes);current.ref=workInProgress.ref;current.return=workInProgress;return workInProgress.child=current;}type=current.child;if(!checkScheduledUpdateOrContext(current,renderLanes)){var prevProps=type.memoizedProps;Component=Component.compare;Component=null!==Component?Component:shallowEqual;if(Component(prevProps,nextProps)&¤t.ref===workInProgress.ref)return bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);}workInProgress.flags|=1;current=createWorkInProgress(type,nextProps);current.ref=workInProgress.ref;current.return=workInProgress;return workInProgress.child=current;}function updateSimpleMemoComponent(current,workInProgress,Component,nextProps,renderLanes){if(null!==current){var prevProps=current.memoizedProps;if(shallowEqual(prevProps,nextProps)&¤t.ref===workInProgress.ref)if(didReceiveUpdate=!1,workInProgress.pendingProps=nextProps=prevProps,checkScheduledUpdateOrContext(current,renderLanes))0!==(current.flags&131072)&&(didReceiveUpdate=!0);else return workInProgress.lanes=current.lanes,bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);}return updateFunctionComponent(current,workInProgress,Component,nextProps,renderLanes);}function updateOffscreenComponent(current,workInProgress,renderLanes,nextProps){var nextChildren=nextProps.children,prevState=null!==current?current.memoizedState:null;null===current&&null===workInProgress.stateNode&&(workInProgress.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null});if("hidden"===nextProps.mode){if(0!==(workInProgress.flags&128)){prevState=null!==prevState?prevState.baseLanes|renderLanes:renderLanes;if(null!==current){nextProps=workInProgress.child=current.child;for(nextChildren=0;null!==nextProps;)nextChildren=nextChildren|nextProps.lanes|nextProps.childLanes,nextProps=nextProps.sibling;nextProps=nextChildren&~prevState;}else nextProps=0,workInProgress.child=null;return deferHiddenOffscreenComponent(current,workInProgress,prevState,renderLanes,nextProps);}if(0!==(renderLanes&536870912))workInProgress.memoizedState={baseLanes:0,cachePool:null},null!==current&&pushTransition(workInProgress,null!==prevState?prevState.cachePool:null),null!==prevState?pushHiddenContext(workInProgress,prevState):reuseHiddenContextOnStack(),pushOffscreenSuspenseHandler(workInProgress);else return nextProps=workInProgress.lanes=536870912,deferHiddenOffscreenComponent(current,workInProgress,null!==prevState?prevState.baseLanes|renderLanes:renderLanes,renderLanes,nextProps);}else null!==prevState?(pushTransition(workInProgress,prevState.cachePool),pushHiddenContext(workInProgress,prevState),reuseSuspenseHandlerOnStack(workInProgress),workInProgress.memoizedState=null):(null!==current&&pushTransition(workInProgress,null),reuseHiddenContextOnStack(),reuseSuspenseHandlerOnStack(workInProgress));reconcileChildren(current,workInProgress,nextChildren,renderLanes);return workInProgress.child;}function bailoutOffscreenComponent(current,workInProgress){null!==current&&22===current.tag||null!==workInProgress.stateNode||(workInProgress.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null});return workInProgress.sibling;}function deferHiddenOffscreenComponent(current,workInProgress,nextBaseLanes,renderLanes,remainingChildLanes){var JSCompiler_inline_result=peekCacheFromPool();JSCompiler_inline_result=null===JSCompiler_inline_result?null:{parent:isPrimaryRenderer?CacheContext._currentValue:CacheContext._currentValue2,pool:JSCompiler_inline_result};workInProgress.memoizedState={baseLanes:nextBaseLanes,cachePool:JSCompiler_inline_result};null!==current&&pushTransition(workInProgress,null);reuseHiddenContextOnStack();pushOffscreenSuspenseHandler(workInProgress);null!==current&&propagateParentContextChanges(current,workInProgress,renderLanes,!0);workInProgress.childLanes=remainingChildLanes;return null;}function mountActivityChildren(workInProgress,nextProps){nextProps=mountWorkInProgressOffscreenFiber({mode:nextProps.mode,children:nextProps.children},workInProgress.mode);nextProps.ref=workInProgress.ref;workInProgress.child=nextProps;nextProps.return=workInProgress;return nextProps;}function retryActivityComponentWithoutHydrating(current,workInProgress,renderLanes){reconcileChildFibers(workInProgress,current.child,null,renderLanes);current=mountActivityChildren(workInProgress,workInProgress.pendingProps);current.flags|=2;popSuspenseHandler(workInProgress);workInProgress.memoizedState=null;return current;}function updateActivityComponent(current,workInProgress,renderLanes){var nextProps=workInProgress.pendingProps,didSuspend=0!==(workInProgress.flags&128);workInProgress.flags&=-129;if(null===current){if(isHydrating){if("hidden"===nextProps.mode)return current=mountActivityChildren(workInProgress,nextProps),workInProgress.lanes=536870912,bailoutOffscreenComponent(null,current);pushDehydratedActivitySuspenseHandler(workInProgress);(current=nextHydratableInstance)?(current=canHydrateActivityInstance(current,rootOrSingletonContext),null!==current&&(workInProgress.memoizedState={dehydrated:current,treeContext:null!==treeContextProvider?{id:treeContextId,overflow:treeContextOverflow}:null,retryLane:536870912,hydrationErrors:null},renderLanes=createFiberFromDehydratedFragment(current),renderLanes.return=workInProgress,workInProgress.child=renderLanes,hydrationParentFiber=workInProgress,nextHydratableInstance=null)):current=null;if(null===current)throw throwOnHydrationMismatch(workInProgress);workInProgress.lanes=536870912;return null;}return mountActivityChildren(workInProgress,nextProps);}var prevState=current.memoizedState;if(null!==prevState){var dehydrated=prevState.dehydrated;pushDehydratedActivitySuspenseHandler(workInProgress);if(didSuspend){if(workInProgress.flags&256)workInProgress.flags&=-257,workInProgress=retryActivityComponentWithoutHydrating(current,workInProgress,renderLanes);else if(null!==workInProgress.memoizedState)workInProgress.child=current.child,workInProgress.flags|=128,workInProgress=null;else throw Error(formatProdErrorMessage(558));}else if(didReceiveUpdate||propagateParentContextChanges(current,workInProgress,renderLanes,!1),didSuspend=0!==(renderLanes¤t.childLanes),didReceiveUpdate||didSuspend){nextProps=workInProgressRoot;if(null!==nextProps&&(dehydrated=getBumpedLaneForHydration(nextProps,renderLanes),0!==dehydrated&&dehydrated!==prevState.retryLane))throw prevState.retryLane=dehydrated,enqueueConcurrentRenderForLane(current,dehydrated),scheduleUpdateOnFiber(nextProps,current,dehydrated),SelectiveHydrationException;renderDidSuspendDelayIfPossible();workInProgress=retryActivityComponentWithoutHydrating(current,workInProgress,renderLanes);}else current=prevState.treeContext,supportsHydration&&(nextHydratableInstance=getFirstHydratableChildWithinActivityInstance(dehydrated),hydrationParentFiber=workInProgress,isHydrating=!0,hydrationErrors=null,rootOrSingletonContext=!1,null!==current&&restoreSuspendedTreeContext(workInProgress,current)),workInProgress=mountActivityChildren(workInProgress,nextProps),workInProgress.flags|=4096;return workInProgress;}current=createWorkInProgress(current.child,{mode:nextProps.mode,children:nextProps.children});current.ref=workInProgress.ref;workInProgress.child=current;current.return=workInProgress;return current;}function markRef(current,workInProgress){var ref=workInProgress.ref;if(null===ref)null!==current&&null!==current.ref&&(workInProgress.flags|=4194816);else{if("function"!==typeof ref&&"object"!==typeof ref)throw Error(formatProdErrorMessage(284));if(null===current||current.ref!==ref)workInProgress.flags|=4194816;}}function updateFunctionComponent(current,workInProgress,Component,nextProps,renderLanes){prepareToReadContext(workInProgress);Component=renderWithHooks(current,workInProgress,Component,nextProps,void 0,renderLanes);nextProps=checkDidRenderIdHook();if(null!==current&&!didReceiveUpdate)return bailoutHooks(current,workInProgress,renderLanes),bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);isHydrating&&nextProps&&pushMaterializedTreeId(workInProgress);workInProgress.flags|=1;reconcileChildren(current,workInProgress,Component,renderLanes);return workInProgress.child;}function replayFunctionComponent(current,workInProgress,nextProps,Component,secondArg,renderLanes){prepareToReadContext(workInProgress);workInProgress.updateQueue=null;nextProps=renderWithHooksAgain(workInProgress,Component,nextProps,secondArg);finishRenderingHooks(current);Component=checkDidRenderIdHook();if(null!==current&&!didReceiveUpdate)return bailoutHooks(current,workInProgress,renderLanes),bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);isHydrating&&Component&&pushMaterializedTreeId(workInProgress);workInProgress.flags|=1;reconcileChildren(current,workInProgress,nextProps,renderLanes);return workInProgress.child;}function updateClassComponent(current,workInProgress,Component,nextProps,renderLanes){prepareToReadContext(workInProgress);if(null===workInProgress.stateNode){var context=emptyContextObject,contextType=Component.contextType;"object"===typeof contextType&&null!==contextType&&(context=readContext(contextType));context=new Component(nextProps,context);workInProgress.memoizedState=null!==context.state&&void 0!==context.state?context.state:null;context.updater=classComponentUpdater;workInProgress.stateNode=context;context._reactInternals=workInProgress;context=workInProgress.stateNode;context.props=nextProps;context.state=workInProgress.memoizedState;context.refs={};initializeUpdateQueue(workInProgress);contextType=Component.contextType;context.context="object"===typeof contextType&&null!==contextType?readContext(contextType):emptyContextObject;context.state=workInProgress.memoizedState;contextType=Component.getDerivedStateFromProps;"function"===typeof contextType&&(applyDerivedStateFromProps(workInProgress,Component,contextType,nextProps),context.state=workInProgress.memoizedState);"function"===typeof Component.getDerivedStateFromProps||"function"===typeof context.getSnapshotBeforeUpdate||"function"!==typeof context.UNSAFE_componentWillMount&&"function"!==typeof context.componentWillMount||(contextType=context.state,"function"===typeof context.componentWillMount&&context.componentWillMount(),"function"===typeof context.UNSAFE_componentWillMount&&context.UNSAFE_componentWillMount(),contextType!==context.state&&classComponentUpdater.enqueueReplaceState(context,context.state,null),processUpdateQueue(workInProgress,nextProps,context,renderLanes),suspendIfUpdateReadFromEntangledAsyncAction(),context.state=workInProgress.memoizedState);"function"===typeof context.componentDidMount&&(workInProgress.flags|=4194308);nextProps=!0;}else if(null===current){context=workInProgress.stateNode;var unresolvedOldProps=workInProgress.memoizedProps,oldProps=resolveClassComponentProps(Component,unresolvedOldProps);context.props=oldProps;var oldContext=context.context,contextType$jscomp$0=Component.contextType;contextType=emptyContextObject;"object"===typeof contextType$jscomp$0&&null!==contextType$jscomp$0&&(contextType=readContext(contextType$jscomp$0));var getDerivedStateFromProps=Component.getDerivedStateFromProps;contextType$jscomp$0="function"===typeof getDerivedStateFromProps||"function"===typeof context.getSnapshotBeforeUpdate;unresolvedOldProps=workInProgress.pendingProps!==unresolvedOldProps;contextType$jscomp$0||"function"!==typeof context.UNSAFE_componentWillReceiveProps&&"function"!==typeof context.componentWillReceiveProps||(unresolvedOldProps||oldContext!==contextType)&&callComponentWillReceiveProps(workInProgress,context,nextProps,contextType);hasForceUpdate=!1;var oldState=workInProgress.memoizedState;context.state=oldState;processUpdateQueue(workInProgress,nextProps,context,renderLanes);suspendIfUpdateReadFromEntangledAsyncAction();oldContext=workInProgress.memoizedState;unresolvedOldProps||oldState!==oldContext||hasForceUpdate?("function"===typeof getDerivedStateFromProps&&(applyDerivedStateFromProps(workInProgress,Component,getDerivedStateFromProps,nextProps),oldContext=workInProgress.memoizedState),(oldProps=hasForceUpdate||checkShouldComponentUpdate(workInProgress,Component,oldProps,nextProps,oldState,oldContext,contextType))?(contextType$jscomp$0||"function"!==typeof context.UNSAFE_componentWillMount&&"function"!==typeof context.componentWillMount||("function"===typeof context.componentWillMount&&context.componentWillMount(),"function"===typeof context.UNSAFE_componentWillMount&&context.UNSAFE_componentWillMount()),"function"===typeof context.componentDidMount&&(workInProgress.flags|=4194308)):("function"===typeof context.componentDidMount&&(workInProgress.flags|=4194308),workInProgress.memoizedProps=nextProps,workInProgress.memoizedState=oldContext),context.props=nextProps,context.state=oldContext,context.context=contextType,nextProps=oldProps):("function"===typeof context.componentDidMount&&(workInProgress.flags|=4194308),nextProps=!1);}else{context=workInProgress.stateNode;cloneUpdateQueue(current,workInProgress);contextType=workInProgress.memoizedProps;contextType$jscomp$0=resolveClassComponentProps(Component,contextType);context.props=contextType$jscomp$0;getDerivedStateFromProps=workInProgress.pendingProps;oldState=context.context;oldContext=Component.contextType;oldProps=emptyContextObject;"object"===typeof oldContext&&null!==oldContext&&(oldProps=readContext(oldContext));unresolvedOldProps=Component.getDerivedStateFromProps;(oldContext="function"===typeof unresolvedOldProps||"function"===typeof context.getSnapshotBeforeUpdate)||"function"!==typeof context.UNSAFE_componentWillReceiveProps&&"function"!==typeof context.componentWillReceiveProps||(contextType!==getDerivedStateFromProps||oldState!==oldProps)&&callComponentWillReceiveProps(workInProgress,context,nextProps,oldProps);hasForceUpdate=!1;oldState=workInProgress.memoizedState;context.state=oldState;processUpdateQueue(workInProgress,nextProps,context,renderLanes);suspendIfUpdateReadFromEntangledAsyncAction();var newState=workInProgress.memoizedState;contextType!==getDerivedStateFromProps||oldState!==newState||hasForceUpdate||null!==current&&null!==current.dependencies&&checkIfContextChanged(current.dependencies)?("function"===typeof unresolvedOldProps&&(applyDerivedStateFromProps(workInProgress,Component,unresolvedOldProps,nextProps),newState=workInProgress.memoizedState),(contextType$jscomp$0=hasForceUpdate||checkShouldComponentUpdate(workInProgress,Component,contextType$jscomp$0,nextProps,oldState,newState,oldProps)||null!==current&&null!==current.dependencies&&checkIfContextChanged(current.dependencies))?(oldContext||"function"!==typeof context.UNSAFE_componentWillUpdate&&"function"!==typeof context.componentWillUpdate||("function"===typeof context.componentWillUpdate&&context.componentWillUpdate(nextProps,newState,oldProps),"function"===typeof context.UNSAFE_componentWillUpdate&&context.UNSAFE_componentWillUpdate(nextProps,newState,oldProps)),"function"===typeof context.componentDidUpdate&&(workInProgress.flags|=4),"function"===typeof context.getSnapshotBeforeUpdate&&(workInProgress.flags|=1024)):("function"!==typeof context.componentDidUpdate||contextType===current.memoizedProps&&oldState===current.memoizedState||(workInProgress.flags|=4),"function"!==typeof context.getSnapshotBeforeUpdate||contextType===current.memoizedProps&&oldState===current.memoizedState||(workInProgress.flags|=1024),workInProgress.memoizedProps=nextProps,workInProgress.memoizedState=newState),context.props=nextProps,context.state=newState,context.context=oldProps,nextProps=contextType$jscomp$0):("function"!==typeof context.componentDidUpdate||contextType===current.memoizedProps&&oldState===current.memoizedState||(workInProgress.flags|=4),"function"!==typeof context.getSnapshotBeforeUpdate||contextType===current.memoizedProps&&oldState===current.memoizedState||(workInProgress.flags|=1024),nextProps=!1);}context=nextProps;markRef(current,workInProgress);nextProps=0!==(workInProgress.flags&128);context||nextProps?(context=workInProgress.stateNode,Component=nextProps&&"function"!==typeof Component.getDerivedStateFromError?null:context.render(),workInProgress.flags|=1,null!==current&&nextProps?(workInProgress.child=reconcileChildFibers(workInProgress,current.child,null,renderLanes),workInProgress.child=reconcileChildFibers(workInProgress,null,Component,renderLanes)):reconcileChildren(current,workInProgress,Component,renderLanes),workInProgress.memoizedState=context.state,current=workInProgress.child):current=bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);return current;}function mountHostRootWithoutHydrating(current,workInProgress,nextChildren,renderLanes){resetHydrationState();workInProgress.flags|=256;reconcileChildren(current,workInProgress,nextChildren,renderLanes);return workInProgress.child;}function mountSuspenseOffscreenState(renderLanes){return{baseLanes:renderLanes,cachePool:getSuspendedCache()};}function getRemainingWorkInPrimaryTree(current,primaryTreeDidDefer,renderLanes){current=null!==current?current.childLanes&~renderLanes:0;primaryTreeDidDefer&&(current|=workInProgressDeferredLane);return current;}function updateSuspenseComponent(current,workInProgress,renderLanes){var nextProps=workInProgress.pendingProps,showFallback=!1,didSuspend=0!==(workInProgress.flags&128),JSCompiler_temp;(JSCompiler_temp=didSuspend)||(JSCompiler_temp=null!==current&&null===current.memoizedState?!1:0!==(suspenseStackCursor.current&2));JSCompiler_temp&&(showFallback=!0,workInProgress.flags&=-129);JSCompiler_temp=0!==(workInProgress.flags&32);workInProgress.flags&=-33;if(null===current){if(isHydrating){showFallback?pushPrimaryTreeSuspenseHandler(workInProgress):reuseSuspenseHandlerOnStack(workInProgress);(current=nextHydratableInstance)?(current=canHydrateSuspenseInstance(current,rootOrSingletonContext),null!==current&&(workInProgress.memoizedState={dehydrated:current,treeContext:null!==treeContextProvider?{id:treeContextId,overflow:treeContextOverflow}:null,retryLane:536870912,hydrationErrors:null},renderLanes=createFiberFromDehydratedFragment(current),renderLanes.return=workInProgress,workInProgress.child=renderLanes,hydrationParentFiber=workInProgress,nextHydratableInstance=null)):current=null;if(null===current)throw throwOnHydrationMismatch(workInProgress);isSuspenseInstanceFallback(current)?workInProgress.lanes=32:workInProgress.lanes=536870912;return null;}var nextPrimaryChildren=nextProps.children;nextProps=nextProps.fallback;if(showFallback)return reuseSuspenseHandlerOnStack(workInProgress),showFallback=workInProgress.mode,nextPrimaryChildren=mountWorkInProgressOffscreenFiber({mode:"hidden",children:nextPrimaryChildren},showFallback),nextProps=createFiberFromFragment(nextProps,showFallback,renderLanes,null),nextPrimaryChildren.return=workInProgress,nextProps.return=workInProgress,nextPrimaryChildren.sibling=nextProps,workInProgress.child=nextPrimaryChildren,nextProps=workInProgress.child,nextProps.memoizedState=mountSuspenseOffscreenState(renderLanes),nextProps.childLanes=getRemainingWorkInPrimaryTree(current,JSCompiler_temp,renderLanes),workInProgress.memoizedState=SUSPENDED_MARKER,bailoutOffscreenComponent(null,nextProps);pushPrimaryTreeSuspenseHandler(workInProgress);return mountSuspensePrimaryChildren(workInProgress,nextPrimaryChildren);}var prevState=current.memoizedState;if(null!==prevState&&(nextPrimaryChildren=prevState.dehydrated,null!==nextPrimaryChildren)){if(didSuspend)workInProgress.flags&256?(pushPrimaryTreeSuspenseHandler(workInProgress),workInProgress.flags&=-257,workInProgress=retrySuspenseComponentWithoutHydrating(current,workInProgress,renderLanes)):null!==workInProgress.memoizedState?(reuseSuspenseHandlerOnStack(workInProgress),workInProgress.child=current.child,workInProgress.flags|=128,workInProgress=null):(reuseSuspenseHandlerOnStack(workInProgress),nextPrimaryChildren=nextProps.fallback,showFallback=workInProgress.mode,nextProps=mountWorkInProgressOffscreenFiber({mode:"visible",children:nextProps.children},showFallback),nextPrimaryChildren=createFiberFromFragment(nextPrimaryChildren,showFallback,renderLanes,null),nextPrimaryChildren.flags|=2,nextProps.return=workInProgress,nextPrimaryChildren.return=workInProgress,nextProps.sibling=nextPrimaryChildren,workInProgress.child=nextProps,reconcileChildFibers(workInProgress,current.child,null,renderLanes),nextProps=workInProgress.child,nextProps.memoizedState=mountSuspenseOffscreenState(renderLanes),nextProps.childLanes=getRemainingWorkInPrimaryTree(current,JSCompiler_temp,renderLanes),workInProgress.memoizedState=SUSPENDED_MARKER,workInProgress=bailoutOffscreenComponent(null,nextProps));else if(pushPrimaryTreeSuspenseHandler(workInProgress),isSuspenseInstanceFallback(nextPrimaryChildren))JSCompiler_temp=getSuspenseInstanceFallbackErrorDetails(nextPrimaryChildren).digest,nextProps=Error(formatProdErrorMessage(419)),nextProps.stack="",nextProps.digest=JSCompiler_temp,queueHydrationError({value:nextProps,source:null,stack:null}),workInProgress=retrySuspenseComponentWithoutHydrating(current,workInProgress,renderLanes);else if(didReceiveUpdate||propagateParentContextChanges(current,workInProgress,renderLanes,!1),JSCompiler_temp=0!==(renderLanes¤t.childLanes),didReceiveUpdate||JSCompiler_temp){JSCompiler_temp=workInProgressRoot;if(null!==JSCompiler_temp&&(nextProps=getBumpedLaneForHydration(JSCompiler_temp,renderLanes),0!==nextProps&&nextProps!==prevState.retryLane))throw prevState.retryLane=nextProps,enqueueConcurrentRenderForLane(current,nextProps),scheduleUpdateOnFiber(JSCompiler_temp,current,nextProps),SelectiveHydrationException;isSuspenseInstancePending(nextPrimaryChildren)||renderDidSuspendDelayIfPossible();workInProgress=retrySuspenseComponentWithoutHydrating(current,workInProgress,renderLanes);}else isSuspenseInstancePending(nextPrimaryChildren)?(workInProgress.flags|=192,workInProgress.child=current.child,workInProgress=null):(current=prevState.treeContext,supportsHydration&&(nextHydratableInstance=getFirstHydratableChildWithinSuspenseInstance(nextPrimaryChildren),hydrationParentFiber=workInProgress,isHydrating=!0,hydrationErrors=null,rootOrSingletonContext=!1,null!==current&&restoreSuspendedTreeContext(workInProgress,current)),workInProgress=mountSuspensePrimaryChildren(workInProgress,nextProps.children),workInProgress.flags|=4096);return workInProgress;}if(showFallback)return reuseSuspenseHandlerOnStack(workInProgress),nextPrimaryChildren=nextProps.fallback,showFallback=workInProgress.mode,prevState=current.child,didSuspend=prevState.sibling,nextProps=createWorkInProgress(prevState,{mode:"hidden",children:nextProps.children}),nextProps.subtreeFlags=prevState.subtreeFlags&65011712,null!==didSuspend?nextPrimaryChildren=createWorkInProgress(didSuspend,nextPrimaryChildren):(nextPrimaryChildren=createFiberFromFragment(nextPrimaryChildren,showFallback,renderLanes,null),nextPrimaryChildren.flags|=2),nextPrimaryChildren.return=workInProgress,nextProps.return=workInProgress,nextProps.sibling=nextPrimaryChildren,workInProgress.child=nextProps,bailoutOffscreenComponent(null,nextProps),nextProps=workInProgress.child,nextPrimaryChildren=current.child.memoizedState,null===nextPrimaryChildren?nextPrimaryChildren=mountSuspenseOffscreenState(renderLanes):(showFallback=nextPrimaryChildren.cachePool,null!==showFallback?(prevState=isPrimaryRenderer?CacheContext._currentValue:CacheContext._currentValue2,showFallback=showFallback.parent!==prevState?{parent:prevState,pool:prevState}:showFallback):showFallback=getSuspendedCache(),nextPrimaryChildren={baseLanes:nextPrimaryChildren.baseLanes|renderLanes,cachePool:showFallback}),nextProps.memoizedState=nextPrimaryChildren,nextProps.childLanes=getRemainingWorkInPrimaryTree(current,JSCompiler_temp,renderLanes),workInProgress.memoizedState=SUSPENDED_MARKER,bailoutOffscreenComponent(current.child,nextProps);pushPrimaryTreeSuspenseHandler(workInProgress);renderLanes=current.child;current=renderLanes.sibling;renderLanes=createWorkInProgress(renderLanes,{mode:"visible",children:nextProps.children});renderLanes.return=workInProgress;renderLanes.sibling=null;null!==current&&(JSCompiler_temp=workInProgress.deletions,null===JSCompiler_temp?(workInProgress.deletions=[current],workInProgress.flags|=16):JSCompiler_temp.push(current));workInProgress.child=renderLanes;workInProgress.memoizedState=null;return renderLanes;}function mountSuspensePrimaryChildren(workInProgress,primaryChildren){primaryChildren=mountWorkInProgressOffscreenFiber({mode:"visible",children:primaryChildren},workInProgress.mode);primaryChildren.return=workInProgress;return workInProgress.child=primaryChildren;}function mountWorkInProgressOffscreenFiber(offscreenProps,mode){offscreenProps=createFiber(22,offscreenProps,null,mode);offscreenProps.lanes=0;return offscreenProps;}function retrySuspenseComponentWithoutHydrating(current,workInProgress,renderLanes){reconcileChildFibers(workInProgress,current.child,null,renderLanes);current=mountSuspensePrimaryChildren(workInProgress,workInProgress.pendingProps.children);current.flags|=2;workInProgress.memoizedState=null;return current;}function scheduleSuspenseWorkOnFiber(fiber,renderLanes,propagationRoot){fiber.lanes|=renderLanes;var alternate=fiber.alternate;null!==alternate&&(alternate.lanes|=renderLanes);scheduleContextWorkOnParentPath(fiber.return,renderLanes,propagationRoot);}function initSuspenseListRenderState(workInProgress,isBackwards,tail,lastContentRow,tailMode,treeForkCount){var renderState=workInProgress.memoizedState;null===renderState?workInProgress.memoizedState={isBackwards:isBackwards,rendering:null,renderingStartTime:0,last:lastContentRow,tail:tail,tailMode:tailMode,treeForkCount:treeForkCount}:(renderState.isBackwards=isBackwards,renderState.rendering=null,renderState.renderingStartTime=0,renderState.last=lastContentRow,renderState.tail=tail,renderState.tailMode=tailMode,renderState.treeForkCount=treeForkCount);}function updateSuspenseListComponent(current,workInProgress,renderLanes){var nextProps=workInProgress.pendingProps,revealOrder=nextProps.revealOrder,tailMode=nextProps.tail;nextProps=nextProps.children;var suspenseContext=suspenseStackCursor.current,shouldForceFallback=0!==(suspenseContext&2);shouldForceFallback?(suspenseContext=suspenseContext&1|2,workInProgress.flags|=128):suspenseContext&=1;push(suspenseStackCursor,suspenseContext);reconcileChildren(current,workInProgress,nextProps,renderLanes);nextProps=isHydrating?treeForkCount:0;if(!shouldForceFallback&&null!==current&&0!==(current.flags&128))a:for(current=workInProgress.child;null!==current;){if(13===current.tag)null!==current.memoizedState&&scheduleSuspenseWorkOnFiber(current,renderLanes,workInProgress);else if(19===current.tag)scheduleSuspenseWorkOnFiber(current,renderLanes,workInProgress);else if(null!==current.child){current.child.return=current;current=current.child;continue;}if(current===workInProgress)break a;for(;null===current.sibling;){if(null===current.return||current.return===workInProgress)break a;current=current.return;}current.sibling.return=current.return;current=current.sibling;}switch(revealOrder){case"forwards":renderLanes=workInProgress.child;for(revealOrder=null;null!==renderLanes;)current=renderLanes.alternate,null!==current&&null===findFirstSuspended(current)&&(revealOrder=renderLanes),renderLanes=renderLanes.sibling;renderLanes=revealOrder;null===renderLanes?(revealOrder=workInProgress.child,workInProgress.child=null):(revealOrder=renderLanes.sibling,renderLanes.sibling=null);initSuspenseListRenderState(workInProgress,!1,revealOrder,renderLanes,tailMode,nextProps);break;case"backwards":case"unstable_legacy-backwards":renderLanes=null;revealOrder=workInProgress.child;for(workInProgress.child=null;null!==revealOrder;){current=revealOrder.alternate;if(null!==current&&null===findFirstSuspended(current)){workInProgress.child=revealOrder;break;}current=revealOrder.sibling;revealOrder.sibling=renderLanes;renderLanes=revealOrder;revealOrder=current;}initSuspenseListRenderState(workInProgress,!0,renderLanes,null,tailMode,nextProps);break;case"together":initSuspenseListRenderState(workInProgress,!1,null,null,void 0,nextProps);break;default:workInProgress.memoizedState=null;}return workInProgress.child;}function bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes){null!==current&&(workInProgress.dependencies=current.dependencies);workInProgressRootSkippedLanes|=workInProgress.lanes;if(0===(renderLanes&workInProgress.childLanes))if(null!==current){if(propagateParentContextChanges(current,workInProgress,renderLanes,!1),0===(renderLanes&workInProgress.childLanes))return null;}else return null;if(null!==current&&workInProgress.child!==current.child)throw Error(formatProdErrorMessage(153));if(null!==workInProgress.child){current=workInProgress.child;renderLanes=createWorkInProgress(current,current.pendingProps);workInProgress.child=renderLanes;for(renderLanes.return=workInProgress;null!==current.sibling;)current=current.sibling,renderLanes=renderLanes.sibling=createWorkInProgress(current,current.pendingProps),renderLanes.return=workInProgress;renderLanes.sibling=null;}return workInProgress.child;}function checkScheduledUpdateOrContext(current,renderLanes){if(0!==(current.lanes&renderLanes))return!0;current=current.dependencies;return null!==current&&checkIfContextChanged(current)?!0:!1;}function attemptEarlyBailoutIfNoScheduledUpdate(current,workInProgress,renderLanes){switch(workInProgress.tag){case 3:pushHostContainer(workInProgress,workInProgress.stateNode.containerInfo);pushProvider(workInProgress,CacheContext,current.memoizedState.cache);resetHydrationState();break;case 27:case 5:pushHostContext(workInProgress);break;case 4:pushHostContainer(workInProgress,workInProgress.stateNode.containerInfo);break;case 10:pushProvider(workInProgress,workInProgress.type,workInProgress.memoizedProps.value);break;case 31:if(null!==workInProgress.memoizedState)return workInProgress.flags|=128,pushDehydratedActivitySuspenseHandler(workInProgress),null;break;case 13:var state$82=workInProgress.memoizedState;if(null!==state$82){if(null!==state$82.dehydrated)return pushPrimaryTreeSuspenseHandler(workInProgress),workInProgress.flags|=128,null;if(0!==(renderLanes&workInProgress.child.childLanes))return updateSuspenseComponent(current,workInProgress,renderLanes);pushPrimaryTreeSuspenseHandler(workInProgress);current=bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);return null!==current?current.sibling:null;}pushPrimaryTreeSuspenseHandler(workInProgress);break;case 19:var didSuspendBefore=0!==(current.flags&128);state$82=0!==(renderLanes&workInProgress.childLanes);state$82||(propagateParentContextChanges(current,workInProgress,renderLanes,!1),state$82=0!==(renderLanes&workInProgress.childLanes));if(didSuspendBefore){if(state$82)return updateSuspenseListComponent(current,workInProgress,renderLanes);workInProgress.flags|=128;}didSuspendBefore=workInProgress.memoizedState;null!==didSuspendBefore&&(didSuspendBefore.rendering=null,didSuspendBefore.tail=null,didSuspendBefore.lastEffect=null);push(suspenseStackCursor,suspenseStackCursor.current);if(state$82)break;else return null;case 22:return workInProgress.lanes=0,updateOffscreenComponent(current,workInProgress,renderLanes,workInProgress.pendingProps);case 24:pushProvider(workInProgress,CacheContext,current.memoizedState.cache);}return bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);}function beginWork(current,workInProgress,renderLanes){if(null!==current){if(current.memoizedProps!==workInProgress.pendingProps)didReceiveUpdate=!0;else{if(!checkScheduledUpdateOrContext(current,renderLanes)&&0===(workInProgress.flags&128))return didReceiveUpdate=!1,attemptEarlyBailoutIfNoScheduledUpdate(current,workInProgress,renderLanes);didReceiveUpdate=0!==(current.flags&131072)?!0:!1;}}else didReceiveUpdate=!1,isHydrating&&0!==(workInProgress.flags&1048576)&&pushTreeId(workInProgress,treeForkCount,workInProgress.index);workInProgress.lanes=0;switch(workInProgress.tag){case 16:a:{var props=workInProgress.pendingProps;current=resolveLazy(workInProgress.elementType);workInProgress.type=current;if("function"===typeof current)shouldConstruct(current)?(props=resolveClassComponentProps(current,props),workInProgress.tag=1,workInProgress=updateClassComponent(null,workInProgress,current,props,renderLanes)):(workInProgress.tag=0,workInProgress=updateFunctionComponent(null,workInProgress,current,props,renderLanes));else{if(void 0!==current&&null!==current){var $$typeof=current.$$typeof;if($$typeof===REACT_FORWARD_REF_TYPE){workInProgress.tag=11;workInProgress=updateForwardRef(null,workInProgress,current,props,renderLanes);break a;}else if($$typeof===REACT_MEMO_TYPE){workInProgress.tag=14;workInProgress=updateMemoComponent(null,workInProgress,current,props,renderLanes);break a;}}workInProgress=getComponentNameFromType(current)||current;throw Error(formatProdErrorMessage(306,workInProgress,""));}}return workInProgress;case 0:return updateFunctionComponent(current,workInProgress,workInProgress.type,workInProgress.pendingProps,renderLanes);case 1:return props=workInProgress.type,$$typeof=resolveClassComponentProps(props,workInProgress.pendingProps),updateClassComponent(current,workInProgress,props,$$typeof,renderLanes);case 3:a:{pushHostContainer(workInProgress,workInProgress.stateNode.containerInfo);if(null===current)throw Error(formatProdErrorMessage(387));var nextProps=workInProgress.pendingProps;$$typeof=workInProgress.memoizedState;props=$$typeof.element;cloneUpdateQueue(current,workInProgress);processUpdateQueue(workInProgress,nextProps,null,renderLanes);var nextState=workInProgress.memoizedState;nextProps=nextState.cache;pushProvider(workInProgress,CacheContext,nextProps);nextProps!==$$typeof.cache&&propagateContextChanges(workInProgress,[CacheContext],renderLanes,!0);suspendIfUpdateReadFromEntangledAsyncAction();nextProps=nextState.element;if(supportsHydration&&$$typeof.isDehydrated){if($$typeof={element:nextProps,isDehydrated:!1,cache:nextState.cache},workInProgress.updateQueue.baseState=$$typeof,workInProgress.memoizedState=$$typeof,workInProgress.flags&256){workInProgress=mountHostRootWithoutHydrating(current,workInProgress,nextProps,renderLanes);break a;}else if(nextProps!==props){props=createCapturedValueAtFiber(Error(formatProdErrorMessage(424)),workInProgress);queueHydrationError(props);workInProgress=mountHostRootWithoutHydrating(current,workInProgress,nextProps,renderLanes);break a;}else for(supportsHydration&&(nextHydratableInstance=getFirstHydratableChildWithinContainer(workInProgress.stateNode.containerInfo),hydrationParentFiber=workInProgress,isHydrating=!0,hydrationErrors=null,rootOrSingletonContext=!0),renderLanes=mountChildFibers(workInProgress,null,nextProps,renderLanes),workInProgress.child=renderLanes;renderLanes;)renderLanes.flags=renderLanes.flags&-3|4096,renderLanes=renderLanes.sibling;}else{resetHydrationState();if(nextProps===props){workInProgress=bailoutOnAlreadyFinishedWork(current,workInProgress,renderLanes);break a;}reconcileChildren(current,workInProgress,nextProps,renderLanes);}workInProgress=workInProgress.child;}return workInProgress;case 26:if(supportsResources)return markRef(current,workInProgress),null===current?(renderLanes=getResource(workInProgress.type,null,workInProgress.pendingProps,null))?workInProgress.memoizedState=renderLanes:isHydrating||(workInProgress.stateNode=createHoistableInstance(workInProgress.type,workInProgress.pendingProps,rootInstanceStackCursor.current,workInProgress)):workInProgress.memoizedState=getResource(workInProgress.type,current.memoizedProps,workInProgress.pendingProps,current.memoizedState),null;case 27:if(supportsSingletons)return pushHostContext(workInProgress),null===current&&supportsSingletons&&isHydrating&&(props=workInProgress.stateNode=resolveSingletonInstance(workInProgress.type,workInProgress.pendingProps,rootInstanceStackCursor.current,contextStackCursor.current,!1),hydrationParentFiber=workInProgress,rootOrSingletonContext=!0,nextHydratableInstance=getFirstHydratableChildWithinSingleton(workInProgress.type,props,nextHydratableInstance)),reconcileChildren(current,workInProgress,workInProgress.pendingProps.children,renderLanes),markRef(current,workInProgress),null===current&&(workInProgress.flags|=4194304),workInProgress.child;case 5:if(null===current&&isHydrating){validateHydratableInstance(workInProgress.type,workInProgress.pendingProps,contextStackCursor.current);if($$typeof=props=nextHydratableInstance)props=canHydrateInstance(props,workInProgress.type,workInProgress.pendingProps,rootOrSingletonContext),null!==props?(workInProgress.stateNode=props,hydrationParentFiber=workInProgress,nextHydratableInstance=getFirstHydratableChild(props),rootOrSingletonContext=!1,$$typeof=!0):$$typeof=!1;$$typeof||throwOnHydrationMismatch(workInProgress);}pushHostContext(workInProgress);$$typeof=workInProgress.type;nextProps=workInProgress.pendingProps;nextState=null!==current?current.memoizedProps:null;props=nextProps.children;shouldSetTextContent($$typeof,nextProps)?props=null:null!==nextState&&shouldSetTextContent($$typeof,nextState)&&(workInProgress.flags|=32);null!==workInProgress.memoizedState&&($$typeof=renderWithHooks(current,workInProgress,TransitionAwareHostComponent,null,null,renderLanes),isPrimaryRenderer?HostTransitionContext._currentValue=$$typeof:HostTransitionContext._currentValue2=$$typeof);markRef(current,workInProgress);reconcileChildren(current,workInProgress,props,renderLanes);return workInProgress.child;case 6:if(null===current&&isHydrating){validateHydratableTextInstance(workInProgress.pendingProps,contextStackCursor.current);if(current=renderLanes=nextHydratableInstance)renderLanes=canHydrateTextInstance(renderLanes,workInProgress.pendingProps,rootOrSingletonContext),null!==renderLanes?(workInProgress.stateNode=renderLanes,hydrationParentFiber=workInProgress,nextHydratableInstance=null,current=!0):current=!1;current||throwOnHydrationMismatch(workInProgress);}return null;case 13:return updateSuspenseComponent(current,workInProgress,renderLanes);case 4:return pushHostContainer(workInProgress,workInProgress.stateNode.containerInfo),props=workInProgress.pendingProps,null===current?workInProgress.child=reconcileChildFibers(workInProgress,null,props,renderLanes):reconcileChildren(current,workInProgress,props,renderLanes),workInProgress.child;case 11:return updateForwardRef(current,workInProgress,workInProgress.type,workInProgress.pendingProps,renderLanes);case 7:return reconcileChildren(current,workInProgress,workInProgress.pendingProps,renderLanes),workInProgress.child;case 8:return reconcileChildren(current,workInProgress,workInProgress.pendingProps.children,renderLanes),workInProgress.child;case 12:return reconcileChildren(current,workInProgress,workInProgress.pendingProps.children,renderLanes),workInProgress.child;case 10:return props=workInProgress.pendingProps,pushProvider(workInProgress,workInProgress.type,props.value),reconcileChildren(current,workInProgress,props.children,renderLanes),workInProgress.child;case 9:return $$typeof=workInProgress.type._context,props=workInProgress.pendingProps.children,prepareToReadContext(workInProgress),$$typeof=readContext($$typeof),props=props($$typeof),workInProgress.flags|=1,reconcileChildren(current,workInProgress,props,renderLanes),workInProgress.child;case 14:return updateMemoComponent(current,workInProgress,workInProgress.type,workInProgress.pendingProps,renderLanes);case 15:return updateSimpleMemoComponent(current,workInProgress,workInProgress.type,workInProgress.pendingProps,renderLanes);case 19:return updateSuspenseListComponent(current,workInProgress,renderLanes);case 31:return updateActivityComponent(current,workInProgress,renderLanes);case 22:return updateOffscreenComponent(current,workInProgress,renderLanes,workInProgress.pendingProps);case 24:return prepareToReadContext(workInProgress),props=readContext(CacheContext),null===current?($$typeof=peekCacheFromPool(),null===$$typeof&&($$typeof=workInProgressRoot,nextProps=createCache(),$$typeof.pooledCache=nextProps,nextProps.refCount++,null!==nextProps&&($$typeof.pooledCacheLanes|=renderLanes),$$typeof=nextProps),workInProgress.memoizedState={parent:props,cache:$$typeof},initializeUpdateQueue(workInProgress),pushProvider(workInProgress,CacheContext,$$typeof)):(0!==(current.lanes&renderLanes)&&(cloneUpdateQueue(current,workInProgress),processUpdateQueue(workInProgress,null,null,renderLanes),suspendIfUpdateReadFromEntangledAsyncAction()),$$typeof=current.memoizedState,nextProps=workInProgress.memoizedState,$$typeof.parent!==props?($$typeof={parent:props,cache:props},workInProgress.memoizedState=$$typeof,0===workInProgress.lanes&&(workInProgress.memoizedState=workInProgress.updateQueue.baseState=$$typeof),pushProvider(workInProgress,CacheContext,props)):(props=nextProps.cache,pushProvider(workInProgress,CacheContext,props),props!==$$typeof.cache&&propagateContextChanges(workInProgress,[CacheContext],renderLanes,!0))),reconcileChildren(current,workInProgress,workInProgress.pendingProps.children,renderLanes),workInProgress.child;case 29:throw workInProgress.pendingProps;}throw Error(formatProdErrorMessage(156,workInProgress.tag));}function markUpdate(workInProgress){workInProgress.flags|=4;}function markCloned(workInProgress){supportsPersistence&&(workInProgress.flags|=8);}function doesRequireClone(current,completedWork){if(null!==current&¤t.child===completedWork.child)return!1;if(0!==(completedWork.flags&16))return!0;for(current=completedWork.child;null!==current;){if(0!==(current.flags&8218)||0!==(current.subtreeFlags&8218))return!0;current=current.sibling;}return!1;}function appendAllChildren(parent,workInProgress,needsVisibilityToggle,isHidden){if(supportsMutation)for(needsVisibilityToggle=workInProgress.child;null!==needsVisibilityToggle;){if(5===needsVisibilityToggle.tag||6===needsVisibilityToggle.tag)appendInitialChild(parent,needsVisibilityToggle.stateNode);else if(!(4===needsVisibilityToggle.tag||supportsSingletons&&27===needsVisibilityToggle.tag)&&null!==needsVisibilityToggle.child){needsVisibilityToggle.child.return=needsVisibilityToggle;needsVisibilityToggle=needsVisibilityToggle.child;continue;}if(needsVisibilityToggle===workInProgress)break;for(;null===needsVisibilityToggle.sibling;){if(null===needsVisibilityToggle.return||needsVisibilityToggle.return===workInProgress)return;needsVisibilityToggle=needsVisibilityToggle.return;}needsVisibilityToggle.sibling.return=needsVisibilityToggle.return;needsVisibilityToggle=needsVisibilityToggle.sibling;}else if(supportsPersistence)for(var node$85=workInProgress.child;null!==node$85;){if(5===node$85.tag){var instance=node$85.stateNode;needsVisibilityToggle&&isHidden&&(instance=cloneHiddenInstance(instance,node$85.type,node$85.memoizedProps));appendInitialChild(parent,instance);}else if(6===node$85.tag)instance=node$85.stateNode,needsVisibilityToggle&&isHidden&&(instance=cloneHiddenTextInstance(instance,node$85.memoizedProps)),appendInitialChild(parent,instance);else if(4!==node$85.tag)if(22===node$85.tag&&null!==node$85.memoizedState)instance=node$85.child,null!==instance&&(instance.return=node$85),appendAllChildren(parent,node$85,!0,!0);else if(null!==node$85.child){node$85.child.return=node$85;node$85=node$85.child;continue;}if(node$85===workInProgress)break;for(;null===node$85.sibling;){if(null===node$85.return||node$85.return===workInProgress)return;node$85=node$85.return;}node$85.sibling.return=node$85.return;node$85=node$85.sibling;}}function appendAllChildrenToContainer(containerChildSet,workInProgress,needsVisibilityToggle,isHidden){var hasOffscreenComponentChild=!1;if(supportsPersistence)for(var node=workInProgress.child;null!==node;){if(5===node.tag){var instance=node.stateNode;needsVisibilityToggle&&isHidden&&(instance=cloneHiddenInstance(instance,node.type,node.memoizedProps));appendChildToContainerChildSet(containerChildSet,instance);}else if(6===node.tag)instance=node.stateNode,needsVisibilityToggle&&isHidden&&(instance=cloneHiddenTextInstance(instance,node.memoizedProps)),appendChildToContainerChildSet(containerChildSet,instance);else if(4!==node.tag)if(22===node.tag&&null!==node.memoizedState)hasOffscreenComponentChild=node.child,null!==hasOffscreenComponentChild&&(hasOffscreenComponentChild.return=node),appendAllChildrenToContainer(containerChildSet,node,!0,!0),hasOffscreenComponentChild=!0;else if(null!==node.child){node.child.return=node;node=node.child;continue;}if(node===workInProgress)break;for(;null===node.sibling;){if(null===node.return||node.return===workInProgress)return hasOffscreenComponentChild;node=node.return;}node.sibling.return=node.return;node=node.sibling;}return hasOffscreenComponentChild;}function updateHostContainer(current,workInProgress){if(supportsPersistence&&doesRequireClone(current,workInProgress)){current=workInProgress.stateNode;var container=current.containerInfo,newChildSet=createContainerChildSet();appendAllChildrenToContainer(newChildSet,workInProgress,!1,!1);current.pendingChildren=newChildSet;markUpdate(workInProgress);finalizeContainerChildren(container,newChildSet);}}function updateHostComponent(current,workInProgress,type,newProps){if(supportsMutation)current.memoizedProps!==newProps&&markUpdate(workInProgress);else if(supportsPersistence){var currentInstance=current.stateNode,oldProps$88=current.memoizedProps;if((current=doesRequireClone(current,workInProgress))||oldProps$88!==newProps){var currentHostContext=contextStackCursor.current;oldProps$88=cloneInstance(currentInstance,type,oldProps$88,newProps,!current,null);oldProps$88===currentInstance?workInProgress.stateNode=currentInstance:(markCloned(workInProgress),finalizeInitialChildren(oldProps$88,type,newProps,currentHostContext)&&markUpdate(workInProgress),workInProgress.stateNode=oldProps$88,current&&appendAllChildren(oldProps$88,workInProgress,!1,!1));}else workInProgress.stateNode=currentInstance;}}function preloadInstanceAndSuspendIfNeeded(workInProgress,type,oldProps,newProps,renderLanes){if(0!==(workInProgress.mode&32)&&(null===oldProps?maySuspendCommit(type,newProps):maySuspendCommitOnUpdate(type,oldProps,newProps))){if(workInProgress.flags|=16777216,(renderLanes&335544128)===renderLanes||maySuspendCommitInSyncRender(type,newProps))if(preloadInstance(workInProgress.stateNode,type,newProps))workInProgress.flags|=8192;else if(shouldRemainOnPreviousScreen())workInProgress.flags|=8192;else throw suspendedThenable=noopSuspenseyCommitThenable,SuspenseyCommitException;}else workInProgress.flags&=-16777217;}function preloadResourceAndSuspendIfNeeded(workInProgress,resource){if(mayResourceSuspendCommit(resource)){if(workInProgress.flags|=16777216,!preloadResource(resource))if(shouldRemainOnPreviousScreen())workInProgress.flags|=8192;else throw suspendedThenable=noopSuspenseyCommitThenable,SuspenseyCommitException;}else workInProgress.flags&=-16777217;}function scheduleRetryEffect(workInProgress,retryQueue){null!==retryQueue&&(workInProgress.flags|=4);workInProgress.flags&16384&&(retryQueue=22!==workInProgress.tag?claimNextRetryLane():536870912,workInProgress.lanes|=retryQueue,workInProgressSuspendedRetryLanes|=retryQueue);}function cutOffTailIfNeeded(renderState,hasRenderedATailFallback){if(!isHydrating)switch(renderState.tailMode){case"hidden":hasRenderedATailFallback=renderState.tail;for(var lastTailNode=null;null!==hasRenderedATailFallback;)null!==hasRenderedATailFallback.alternate&&(lastTailNode=hasRenderedATailFallback),hasRenderedATailFallback=hasRenderedATailFallback.sibling;null===lastTailNode?renderState.tail=null:lastTailNode.sibling=null;break;case"collapsed":lastTailNode=renderState.tail;for(var lastTailNode$90=null;null!==lastTailNode;)null!==lastTailNode.alternate&&(lastTailNode$90=lastTailNode),lastTailNode=lastTailNode.sibling;null===lastTailNode$90?hasRenderedATailFallback||null===renderState.tail?renderState.tail=null:renderState.tail.sibling=null:lastTailNode$90.sibling=null;}}function bubbleProperties(completedWork){var didBailout=null!==completedWork.alternate&&completedWork.alternate.child===completedWork.child,newChildLanes=0,subtreeFlags=0;if(didBailout)for(var child$91=completedWork.child;null!==child$91;)newChildLanes|=child$91.lanes|child$91.childLanes,subtreeFlags|=child$91.subtreeFlags&65011712,subtreeFlags|=child$91.flags&65011712,child$91.return=completedWork,child$91=child$91.sibling;else for(child$91=completedWork.child;null!==child$91;)newChildLanes|=child$91.lanes|child$91.childLanes,subtreeFlags|=child$91.subtreeFlags,subtreeFlags|=child$91.flags,child$91.return=completedWork,child$91=child$91.sibling;completedWork.subtreeFlags|=subtreeFlags;completedWork.childLanes=newChildLanes;return didBailout;}function completeWork(current,workInProgress,renderLanes){var newProps=workInProgress.pendingProps;popTreeContext(workInProgress);switch(workInProgress.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bubbleProperties(workInProgress),null;case 1:return bubbleProperties(workInProgress),null;case 3:renderLanes=workInProgress.stateNode;newProps=null;null!==current&&(newProps=current.memoizedState.cache);workInProgress.memoizedState.cache!==newProps&&(workInProgress.flags|=2048);popProvider(CacheContext);popHostContainer();renderLanes.pendingContext&&(renderLanes.context=renderLanes.pendingContext,renderLanes.pendingContext=null);if(null===current||null===current.child)popHydrationState(workInProgress)?markUpdate(workInProgress):null===current||current.memoizedState.isDehydrated&&0===(workInProgress.flags&256)||(workInProgress.flags|=1024,upgradeHydrationErrorsToRecoverable());updateHostContainer(current,workInProgress);bubbleProperties(workInProgress);return null;case 26:if(supportsResources){var type=workInProgress.type,nextResource=workInProgress.memoizedState;null===current?(markUpdate(workInProgress),null!==nextResource?(bubbleProperties(workInProgress),preloadResourceAndSuspendIfNeeded(workInProgress,nextResource)):(bubbleProperties(workInProgress),preloadInstanceAndSuspendIfNeeded(workInProgress,type,null,newProps,renderLanes))):nextResource?nextResource!==current.memoizedState?(markUpdate(workInProgress),bubbleProperties(workInProgress),preloadResourceAndSuspendIfNeeded(workInProgress,nextResource)):(bubbleProperties(workInProgress),workInProgress.flags&=-16777217):(nextResource=current.memoizedProps,supportsMutation?nextResource!==newProps&&markUpdate(workInProgress):updateHostComponent(current,workInProgress,type,newProps),bubbleProperties(workInProgress),preloadInstanceAndSuspendIfNeeded(workInProgress,type,nextResource,newProps,renderLanes));return null;}case 27:if(supportsSingletons){popHostContext(workInProgress);renderLanes=rootInstanceStackCursor.current;type=workInProgress.type;if(null!==current&&null!=workInProgress.stateNode)supportsMutation?current.memoizedProps!==newProps&&markUpdate(workInProgress):updateHostComponent(current,workInProgress,type,newProps);else{if(!newProps){if(null===workInProgress.stateNode)throw Error(formatProdErrorMessage(166));bubbleProperties(workInProgress);return null;}current=contextStackCursor.current;popHydrationState(workInProgress)?prepareToHydrateHostInstance(workInProgress,current):(current=resolveSingletonInstance(type,newProps,renderLanes,current,!0),workInProgress.stateNode=current,markUpdate(workInProgress));}bubbleProperties(workInProgress);return null;}case 5:popHostContext(workInProgress);type=workInProgress.type;if(null!==current&&null!=workInProgress.stateNode)updateHostComponent(current,workInProgress,type,newProps);else{if(!newProps){if(null===workInProgress.stateNode)throw Error(formatProdErrorMessage(166));bubbleProperties(workInProgress);return null;}nextResource=contextStackCursor.current;if(popHydrationState(workInProgress))prepareToHydrateHostInstance(workInProgress,nextResource),finalizeHydratedChildren(workInProgress.stateNode,type,newProps,nextResource)&&(workInProgress.flags|=64);else{var instance$101=createInstance(type,newProps,rootInstanceStackCursor.current,nextResource,workInProgress);markCloned(workInProgress);appendAllChildren(instance$101,workInProgress,!1,!1);workInProgress.stateNode=instance$101;finalizeInitialChildren(instance$101,type,newProps,nextResource)&&markUpdate(workInProgress);}}bubbleProperties(workInProgress);preloadInstanceAndSuspendIfNeeded(workInProgress,workInProgress.type,null===current?null:current.memoizedProps,workInProgress.pendingProps,renderLanes);return null;case 6:if(current&&null!=workInProgress.stateNode)renderLanes=current.memoizedProps,supportsMutation?renderLanes!==newProps&&markUpdate(workInProgress):supportsPersistence&&(renderLanes!==newProps?(current=rootInstanceStackCursor.current,renderLanes=contextStackCursor.current,markCloned(workInProgress),workInProgress.stateNode=createTextInstance(newProps,current,renderLanes,workInProgress)):workInProgress.stateNode=current.stateNode);else{if("string"!==typeof newProps&&null===workInProgress.stateNode)throw Error(formatProdErrorMessage(166));current=rootInstanceStackCursor.current;renderLanes=contextStackCursor.current;if(popHydrationState(workInProgress)){if(!supportsHydration)throw Error(formatProdErrorMessage(176));current=workInProgress.stateNode;renderLanes=workInProgress.memoizedProps;newProps=null;type=hydrationParentFiber;if(null!==type)switch(type.tag){case 27:case 5:newProps=type.memoizedProps;}hydrateTextInstance(current,renderLanes,workInProgress,newProps)||throwOnHydrationMismatch(workInProgress,!0);}else markCloned(workInProgress),workInProgress.stateNode=createTextInstance(newProps,current,renderLanes,workInProgress);}bubbleProperties(workInProgress);return null;case 31:renderLanes=workInProgress.memoizedState;if(null===current||null!==current.memoizedState){newProps=popHydrationState(workInProgress);if(null!==renderLanes){if(null===current){if(!newProps)throw Error(formatProdErrorMessage(318));if(!supportsHydration)throw Error(formatProdErrorMessage(556));current=workInProgress.memoizedState;current=null!==current?current.dehydrated:null;if(!current)throw Error(formatProdErrorMessage(557));hydrateActivityInstance(current,workInProgress);}else resetHydrationState(),0===(workInProgress.flags&128)&&(workInProgress.memoizedState=null),workInProgress.flags|=4;bubbleProperties(workInProgress);current=!1;}else renderLanes=upgradeHydrationErrorsToRecoverable(),null!==current&&null!==current.memoizedState&&(current.memoizedState.hydrationErrors=renderLanes),current=!0;if(!current){if(workInProgress.flags&256)return popSuspenseHandler(workInProgress),workInProgress;popSuspenseHandler(workInProgress);return null;}if(0!==(workInProgress.flags&128))throw Error(formatProdErrorMessage(558));}bubbleProperties(workInProgress);return null;case 13:newProps=workInProgress.memoizedState;if(null===current||null!==current.memoizedState&&null!==current.memoizedState.dehydrated){type=popHydrationState(workInProgress);if(null!==newProps&&null!==newProps.dehydrated){if(null===current){if(!type)throw Error(formatProdErrorMessage(318));if(!supportsHydration)throw Error(formatProdErrorMessage(344));type=workInProgress.memoizedState;type=null!==type?type.dehydrated:null;if(!type)throw Error(formatProdErrorMessage(317));hydrateSuspenseInstance(type,workInProgress);}else resetHydrationState(),0===(workInProgress.flags&128)&&(workInProgress.memoizedState=null),workInProgress.flags|=4;bubbleProperties(workInProgress);type=!1;}else type=upgradeHydrationErrorsToRecoverable(),null!==current&&null!==current.memoizedState&&(current.memoizedState.hydrationErrors=type),type=!0;if(!type){if(workInProgress.flags&256)return popSuspenseHandler(workInProgress),workInProgress;popSuspenseHandler(workInProgress);return null;}}popSuspenseHandler(workInProgress);if(0!==(workInProgress.flags&128))return workInProgress.lanes=renderLanes,workInProgress;renderLanes=null!==newProps;current=null!==current&&null!==current.memoizedState;renderLanes&&(newProps=workInProgress.child,type=null,null!==newProps.alternate&&null!==newProps.alternate.memoizedState&&null!==newProps.alternate.memoizedState.cachePool&&(type=newProps.alternate.memoizedState.cachePool.pool),nextResource=null,null!==newProps.memoizedState&&null!==newProps.memoizedState.cachePool&&(nextResource=newProps.memoizedState.cachePool.pool),nextResource!==type&&(newProps.flags|=2048));renderLanes!==current&&renderLanes&&(workInProgress.child.flags|=8192);scheduleRetryEffect(workInProgress,workInProgress.updateQueue);bubbleProperties(workInProgress);return null;case 4:return popHostContainer(),updateHostContainer(current,workInProgress),null===current&&preparePortalMount(workInProgress.stateNode.containerInfo),bubbleProperties(workInProgress),null;case 10:return popProvider(workInProgress.type),bubbleProperties(workInProgress),null;case 19:pop(suspenseStackCursor);newProps=workInProgress.memoizedState;if(null===newProps)return bubbleProperties(workInProgress),null;type=0!==(workInProgress.flags&128);nextResource=newProps.rendering;if(null===nextResource){if(type)cutOffTailIfNeeded(newProps,!1);else{if(0!==workInProgressRootExitStatus||null!==current&&0!==(current.flags&128))for(current=workInProgress.child;null!==current;){nextResource=findFirstSuspended(current);if(null!==nextResource){workInProgress.flags|=128;cutOffTailIfNeeded(newProps,!1);current=nextResource.updateQueue;workInProgress.updateQueue=current;scheduleRetryEffect(workInProgress,current);workInProgress.subtreeFlags=0;current=renderLanes;for(renderLanes=workInProgress.child;null!==renderLanes;)resetWorkInProgress(renderLanes,current),renderLanes=renderLanes.sibling;push(suspenseStackCursor,suspenseStackCursor.current&1|2);isHydrating&&pushTreeFork(workInProgress,newProps.treeForkCount);return workInProgress.child;}current=current.sibling;}null!==newProps.tail&&now()>workInProgressRootRenderTargetTime&&(workInProgress.flags|=128,type=!0,cutOffTailIfNeeded(newProps,!1),workInProgress.lanes=4194304);}}else{if(!type)if(current=findFirstSuspended(nextResource),null!==current){if(workInProgress.flags|=128,type=!0,current=current.updateQueue,workInProgress.updateQueue=current,scheduleRetryEffect(workInProgress,current),cutOffTailIfNeeded(newProps,!0),null===newProps.tail&&"hidden"===newProps.tailMode&&!nextResource.alternate&&!isHydrating)return bubbleProperties(workInProgress),null;}else 2*now()-newProps.renderingStartTime>workInProgressRootRenderTargetTime&&536870912!==renderLanes&&(workInProgress.flags|=128,type=!0,cutOffTailIfNeeded(newProps,!1),workInProgress.lanes=4194304);newProps.isBackwards?(nextResource.sibling=workInProgress.child,workInProgress.child=nextResource):(current=newProps.last,null!==current?current.sibling=nextResource:workInProgress.child=nextResource,newProps.last=nextResource);}if(null!==newProps.tail)return current=newProps.tail,newProps.rendering=current,newProps.tail=current.sibling,newProps.renderingStartTime=now(),current.sibling=null,renderLanes=suspenseStackCursor.current,push(suspenseStackCursor,type?renderLanes&1|2:renderLanes&1),isHydrating&&pushTreeFork(workInProgress,newProps.treeForkCount),current;bubbleProperties(workInProgress);return null;case 22:case 23:return popSuspenseHandler(workInProgress),popHiddenContext(),newProps=null!==workInProgress.memoizedState,null!==current?null!==current.memoizedState!==newProps&&(workInProgress.flags|=8192):newProps&&(workInProgress.flags|=8192),newProps?0!==(renderLanes&536870912)&&0===(workInProgress.flags&128)&&(bubbleProperties(workInProgress),workInProgress.subtreeFlags&6&&(workInProgress.flags|=8192)):bubbleProperties(workInProgress),renderLanes=workInProgress.updateQueue,null!==renderLanes&&scheduleRetryEffect(workInProgress,renderLanes.retryQueue),renderLanes=null,null!==current&&null!==current.memoizedState&&null!==current.memoizedState.cachePool&&(renderLanes=current.memoizedState.cachePool.pool),newProps=null,null!==workInProgress.memoizedState&&null!==workInProgress.memoizedState.cachePool&&(newProps=workInProgress.memoizedState.cachePool.pool),newProps!==renderLanes&&(workInProgress.flags|=2048),null!==current&&pop(resumedCache),null;case 24:return renderLanes=null,null!==current&&(renderLanes=current.memoizedState.cache),workInProgress.memoizedState.cache!==renderLanes&&(workInProgress.flags|=2048),popProvider(CacheContext),bubbleProperties(workInProgress),null;case 25:return null;case 30:return null;}throw Error(formatProdErrorMessage(156,workInProgress.tag));}function unwindWork(current,workInProgress){popTreeContext(workInProgress);switch(workInProgress.tag){case 1:return current=workInProgress.flags,current&65536?(workInProgress.flags=current&-65537|128,workInProgress):null;case 3:return popProvider(CacheContext),popHostContainer(),current=workInProgress.flags,0!==(current&65536)&&0===(current&128)?(workInProgress.flags=current&-65537|128,workInProgress):null;case 26:case 27:case 5:return popHostContext(workInProgress),null;case 31:if(null!==workInProgress.memoizedState){popSuspenseHandler(workInProgress);if(null===workInProgress.alternate)throw Error(formatProdErrorMessage(340));resetHydrationState();}current=workInProgress.flags;return current&65536?(workInProgress.flags=current&-65537|128,workInProgress):null;case 13:popSuspenseHandler(workInProgress);current=workInProgress.memoizedState;if(null!==current&&null!==current.dehydrated){if(null===workInProgress.alternate)throw Error(formatProdErrorMessage(340));resetHydrationState();}current=workInProgress.flags;return current&65536?(workInProgress.flags=current&-65537|128,workInProgress):null;case 19:return pop(suspenseStackCursor),null;case 4:return popHostContainer(),null;case 10:return popProvider(workInProgress.type),null;case 22:case 23:return popSuspenseHandler(workInProgress),popHiddenContext(),null!==current&&pop(resumedCache),current=workInProgress.flags,current&65536?(workInProgress.flags=current&-65537|128,workInProgress):null;case 24:return popProvider(CacheContext),null;case 25:return null;default:return null;}}function unwindInterruptedWork(current,interruptedWork){popTreeContext(interruptedWork);switch(interruptedWork.tag){case 3:popProvider(CacheContext);popHostContainer();break;case 26:case 27:case 5:popHostContext(interruptedWork);break;case 4:popHostContainer();break;case 31:null!==interruptedWork.memoizedState&&popSuspenseHandler(interruptedWork);break;case 13:popSuspenseHandler(interruptedWork);break;case 19:pop(suspenseStackCursor);break;case 10:popProvider(interruptedWork.type);break;case 22:case 23:popSuspenseHandler(interruptedWork);popHiddenContext();null!==current&&pop(resumedCache);break;case 24:popProvider(CacheContext);}}function commitHookEffectListMount(flags,finishedWork){try{var updateQueue=finishedWork.updateQueue,lastEffect=null!==updateQueue?updateQueue.lastEffect:null;if(null!==lastEffect){var firstEffect=lastEffect.next;updateQueue=firstEffect;do{if((updateQueue.tag&flags)===flags){lastEffect=void 0;var create=updateQueue.create,inst=updateQueue.inst;lastEffect=create();inst.destroy=lastEffect;}updateQueue=updateQueue.next;}while(updateQueue!==firstEffect);}}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}function commitHookEffectListUnmount(flags,finishedWork,nearestMountedAncestor$jscomp$0){try{var updateQueue=finishedWork.updateQueue,lastEffect=null!==updateQueue?updateQueue.lastEffect:null;if(null!==lastEffect){var firstEffect=lastEffect.next;updateQueue=firstEffect;do{if((updateQueue.tag&flags)===flags){var inst=updateQueue.inst,destroy=inst.destroy;if(void 0!==destroy){inst.destroy=void 0;lastEffect=finishedWork;var nearestMountedAncestor=nearestMountedAncestor$jscomp$0,destroy_=destroy;try{destroy_();}catch(error){captureCommitPhaseError(lastEffect,nearestMountedAncestor,error);}}}updateQueue=updateQueue.next;}while(updateQueue!==firstEffect);}}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}function commitClassCallbacks(finishedWork){var updateQueue=finishedWork.updateQueue;if(null!==updateQueue){var instance=finishedWork.stateNode;try{commitCallbacks(updateQueue,instance);}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}}function safelyCallComponentWillUnmount(current,nearestMountedAncestor,instance){instance.props=resolveClassComponentProps(current.type,current.memoizedProps);instance.state=current.memoizedState;try{instance.componentWillUnmount();}catch(error){captureCommitPhaseError(current,nearestMountedAncestor,error);}}function safelyAttachRef(current,nearestMountedAncestor){try{var ref=current.ref;if(null!==ref){switch(current.tag){case 26:case 27:case 5:var instanceToUse=getPublicInstance(current.stateNode);break;case 30:instanceToUse=current.stateNode;break;default:instanceToUse=current.stateNode;}"function"===typeof ref?current.refCleanup=ref(instanceToUse):ref.current=instanceToUse;}}catch(error){captureCommitPhaseError(current,nearestMountedAncestor,error);}}function safelyDetachRef(current,nearestMountedAncestor){var ref=current.ref,refCleanup=current.refCleanup;if(null!==ref)if("function"===typeof refCleanup)try{refCleanup();}catch(error){captureCommitPhaseError(current,nearestMountedAncestor,error);}finally{current.refCleanup=null,current=current.alternate,null!=current&&(current.refCleanup=null);}else if("function"===typeof ref)try{ref(null);}catch(error$124){captureCommitPhaseError(current,nearestMountedAncestor,error$124);}else ref.current=null;}function commitHostMount(finishedWork){var type=finishedWork.type,props=finishedWork.memoizedProps,instance=finishedWork.stateNode;try{commitMount(instance,type,props,finishedWork);}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}function commitHostUpdate(finishedWork,newProps,oldProps){try{commitUpdate(finishedWork.stateNode,finishedWork.type,oldProps,newProps,finishedWork);}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}function isHostParent(fiber){return 5===fiber.tag||3===fiber.tag||(supportsResources?26===fiber.tag:!1)||(supportsSingletons?27===fiber.tag&&isSingletonScope(fiber.type):!1)||4===fiber.tag;}function getHostSibling(fiber){a:for(;;){for(;null===fiber.sibling;){if(null===fiber.return||isHostParent(fiber.return))return null;fiber=fiber.return;}fiber.sibling.return=fiber.return;for(fiber=fiber.sibling;5!==fiber.tag&&6!==fiber.tag&&18!==fiber.tag;){if(supportsSingletons&&27===fiber.tag&&isSingletonScope(fiber.type))continue a;if(fiber.flags&2)continue a;if(null===fiber.child||4===fiber.tag)continue a;else fiber.child.return=fiber,fiber=fiber.child;}if(!(fiber.flags&2))return fiber.stateNode;}}function insertOrAppendPlacementNodeIntoContainer(node,before,parent){var tag=node.tag;if(5===tag||6===tag)node=node.stateNode,before?insertInContainerBefore(parent,node,before):appendChildToContainer(parent,node);else if(4!==tag&&(supportsSingletons&&27===tag&&isSingletonScope(node.type)&&(parent=node.stateNode,before=null),node=node.child,null!==node))for(insertOrAppendPlacementNodeIntoContainer(node,before,parent),node=node.sibling;null!==node;)insertOrAppendPlacementNodeIntoContainer(node,before,parent),node=node.sibling;}function insertOrAppendPlacementNode(node,before,parent){var tag=node.tag;if(5===tag||6===tag)node=node.stateNode,before?insertBefore(parent,node,before):appendChild(parent,node);else if(4!==tag&&(supportsSingletons&&27===tag&&isSingletonScope(node.type)&&(parent=node.stateNode),node=node.child,null!==node))for(insertOrAppendPlacementNode(node,before,parent),node=node.sibling;null!==node;)insertOrAppendPlacementNode(node,before,parent),node=node.sibling;}function commitHostPortalContainerChildren(portal,finishedWork,pendingChildren){portal=portal.containerInfo;try{replaceContainerChildren(portal,pendingChildren);}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}function commitHostSingletonAcquisition(finishedWork){var singleton=finishedWork.stateNode,props=finishedWork.memoizedProps;try{acquireSingletonInstance(finishedWork.type,props,singleton,finishedWork);}catch(error){captureCommitPhaseError(finishedWork,finishedWork.return,error);}}function commitBeforeMutationEffects(root,firstChild){prepareForCommit(root.containerInfo);for(nextEffect=firstChild;null!==nextEffect;)if(root=nextEffect,firstChild=root.child,0!==(root.subtreeFlags&1028)&&null!==firstChild)firstChild.return=root,nextEffect=firstChild;else for(;null!==nextEffect;){root=nextEffect;var current=root.alternate;firstChild=root.flags;switch(root.tag){case 0:if(0!==(firstChild&4)&&(firstChild=root.updateQueue,firstChild=null!==firstChild?firstChild.events:null,null!==firstChild))for(var ii=0;ii";case HAS_PSEUDO_CLASS_TYPE:return":has("+(selectorToString(selector)||"")+")";case ROLE_TYPE:return'[role="'+selector.value+'"]';case TEXT_TYPE:return'"'+selector.value+'"';case TEST_NAME_TYPE:return'[data-testname="'+selector.value+'"]';default:throw Error(formatProdErrorMessage(365));}}function findPaths(root,selectors){var matchingFibers=[];root=[root,0];for(var index=0;indexrenderPriority?32:renderPriority;renderPriority=ReactSharedInternals.T;var previousPriority=getCurrentUpdatePriority();try{setCurrentUpdatePriority(priority);ReactSharedInternals.T=null;priority=pendingPassiveTransitions;pendingPassiveTransitions=null;var root$jscomp$0=pendingEffectsRoot,lanes=pendingEffectsLanes;pendingEffectsStatus=0;pendingFinishedWork=pendingEffectsRoot=null;pendingEffectsLanes=0;if(0!==(executionContext&6))throw Error(formatProdErrorMessage(331));var prevExecutionContext=executionContext;executionContext|=4;commitPassiveUnmountOnFiber(root$jscomp$0.current);commitPassiveMountOnFiber(root$jscomp$0,root$jscomp$0.current,lanes,priority);executionContext=prevExecutionContext;flushSyncWorkAcrossRoots_impl(0,!1);if(injectedHook&&"function"===typeof injectedHook.onPostCommitFiberRoot)try{injectedHook.onPostCommitFiberRoot(rendererID,root$jscomp$0);}catch(err){}return!0;}finally{setCurrentUpdatePriority(previousPriority),ReactSharedInternals.T=renderPriority,releaseRootPooledCache(root,remainingLanes);}}function captureCommitPhaseErrorOnRoot(rootFiber,sourceFiber,error){sourceFiber=createCapturedValueAtFiber(error,sourceFiber);sourceFiber=createRootErrorUpdate(rootFiber.stateNode,sourceFiber,2);rootFiber=enqueueUpdate(rootFiber,sourceFiber,2);null!==rootFiber&&(markRootUpdated$1(rootFiber,2),ensureRootIsScheduled(rootFiber));}function captureCommitPhaseError(sourceFiber,nearestMountedAncestor,error){if(3===sourceFiber.tag)captureCommitPhaseErrorOnRoot(sourceFiber,sourceFiber,error);else for(;null!==nearestMountedAncestor;){if(3===nearestMountedAncestor.tag){captureCommitPhaseErrorOnRoot(nearestMountedAncestor,sourceFiber,error);break;}else if(1===nearestMountedAncestor.tag){var instance=nearestMountedAncestor.stateNode;if("function"===typeof nearestMountedAncestor.type.getDerivedStateFromError||"function"===typeof instance.componentDidCatch&&(null===legacyErrorBoundariesThatAlreadyFailed||!legacyErrorBoundariesThatAlreadyFailed.has(instance))){sourceFiber=createCapturedValueAtFiber(error,sourceFiber);error=createClassErrorUpdate(2);instance=enqueueUpdate(nearestMountedAncestor,error,2);null!==instance&&(initializeClassErrorUpdate(error,instance,nearestMountedAncestor,sourceFiber),markRootUpdated$1(instance,2),ensureRootIsScheduled(instance));break;}}nearestMountedAncestor=nearestMountedAncestor.return;}}function attachPingListener(root,wakeable,lanes){var pingCache=root.pingCache;if(null===pingCache){pingCache=root.pingCache=new PossiblyWeakMap();var threadIDs=new Set();pingCache.set(wakeable,threadIDs);}else threadIDs=pingCache.get(wakeable),void 0===threadIDs&&(threadIDs=new Set(),pingCache.set(wakeable,threadIDs));threadIDs.has(lanes)||(workInProgressRootDidAttachPingListener=!0,threadIDs.add(lanes),root=pingSuspendedRoot.bind(null,root,wakeable,lanes),wakeable.then(root,root));}function pingSuspendedRoot(root,wakeable,pingedLanes){var pingCache=root.pingCache;null!==pingCache&&pingCache.delete(wakeable);root.pingedLanes|=root.suspendedLanes&pingedLanes;root.warmLanes&=~pingedLanes;workInProgressRoot===root&&(workInProgressRootRenderLanes&pingedLanes)===pingedLanes&&(4===workInProgressRootExitStatus||3===workInProgressRootExitStatus&&(workInProgressRootRenderLanes&62914560)===workInProgressRootRenderLanes&&300>now()-globalMostRecentFallbackTime?0===(executionContext&2)&&prepareFreshStack(root,0):workInProgressRootPingedLanes|=pingedLanes,workInProgressSuspendedRetryLanes===workInProgressRootRenderLanes&&(workInProgressSuspendedRetryLanes=0));ensureRootIsScheduled(root);}function retryTimedOutBoundary(boundaryFiber,retryLane){0===retryLane&&(retryLane=claimNextRetryLane());boundaryFiber=enqueueConcurrentRenderForLane(boundaryFiber,retryLane);null!==boundaryFiber&&(markRootUpdated$1(boundaryFiber,retryLane),ensureRootIsScheduled(boundaryFiber));}function retryDehydratedSuspenseBoundary(boundaryFiber){var suspenseState=boundaryFiber.memoizedState,retryLane=0;null!==suspenseState&&(retryLane=suspenseState.retryLane);retryTimedOutBoundary(boundaryFiber,retryLane);}function resolveRetryWakeable(boundaryFiber,wakeable){var retryLane=0;switch(boundaryFiber.tag){case 31:case 13:var retryCache=boundaryFiber.stateNode;var suspenseState=boundaryFiber.memoizedState;null!==suspenseState&&(retryLane=suspenseState.retryLane);break;case 19:retryCache=boundaryFiber.stateNode;break;case 22:retryCache=boundaryFiber.stateNode._retryCache;break;default:throw Error(formatProdErrorMessage(314));}null!==retryCache&&retryCache.delete(wakeable);retryTimedOutBoundary(boundaryFiber,retryLane);}function scheduleCallback(priorityLevel,callback){return scheduleCallback$3(priorityLevel,callback);}function FiberNode(tag,pendingProps,key,mode){this.tag=tag;this.key=key;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.refCleanup=this.ref=null;this.pendingProps=pendingProps;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=mode;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null;}function shouldConstruct(Component){Component=Component.prototype;return!(!Component||!Component.isReactComponent);}function createWorkInProgress(current,pendingProps){var workInProgress=current.alternate;null===workInProgress?(workInProgress=createFiber(current.tag,pendingProps,current.key,current.mode),workInProgress.elementType=current.elementType,workInProgress.type=current.type,workInProgress.stateNode=current.stateNode,workInProgress.alternate=current,current.alternate=workInProgress):(workInProgress.pendingProps=pendingProps,workInProgress.type=current.type,workInProgress.flags=0,workInProgress.subtreeFlags=0,workInProgress.deletions=null);workInProgress.flags=current.flags&65011712;workInProgress.childLanes=current.childLanes;workInProgress.lanes=current.lanes;workInProgress.child=current.child;workInProgress.memoizedProps=current.memoizedProps;workInProgress.memoizedState=current.memoizedState;workInProgress.updateQueue=current.updateQueue;pendingProps=current.dependencies;workInProgress.dependencies=null===pendingProps?null:{lanes:pendingProps.lanes,firstContext:pendingProps.firstContext};workInProgress.sibling=current.sibling;workInProgress.index=current.index;workInProgress.ref=current.ref;workInProgress.refCleanup=current.refCleanup;return workInProgress;}function resetWorkInProgress(workInProgress,renderLanes){workInProgress.flags&=65011714;var current=workInProgress.alternate;null===current?(workInProgress.childLanes=0,workInProgress.lanes=renderLanes,workInProgress.child=null,workInProgress.subtreeFlags=0,workInProgress.memoizedProps=null,workInProgress.memoizedState=null,workInProgress.updateQueue=null,workInProgress.dependencies=null,workInProgress.stateNode=null):(workInProgress.childLanes=current.childLanes,workInProgress.lanes=current.lanes,workInProgress.child=current.child,workInProgress.subtreeFlags=0,workInProgress.deletions=null,workInProgress.memoizedProps=current.memoizedProps,workInProgress.memoizedState=current.memoizedState,workInProgress.updateQueue=current.updateQueue,workInProgress.type=current.type,renderLanes=current.dependencies,workInProgress.dependencies=null===renderLanes?null:{lanes:renderLanes.lanes,firstContext:renderLanes.firstContext});return workInProgress;}function createFiberFromTypeAndProps(type,key,pendingProps,owner,mode,lanes){var fiberTag=0;owner=type;if("function"===typeof type)shouldConstruct(type)&&(fiberTag=1);else if("string"===typeof type)fiberTag=supportsResources&&supportsSingletons?isHostHoistableType(type,pendingProps,contextStackCursor.current)?26:isHostSingletonType(type)?27:5:supportsResources?isHostHoistableType(type,pendingProps,contextStackCursor.current)?26:5:supportsSingletons?isHostSingletonType(type)?27:5:5;else a:switch(type){case REACT_ACTIVITY_TYPE:return type=createFiber(31,pendingProps,key,mode),type.elementType=REACT_ACTIVITY_TYPE,type.lanes=lanes,type;case REACT_FRAGMENT_TYPE:return createFiberFromFragment(pendingProps.children,mode,lanes,key);case REACT_STRICT_MODE_TYPE:fiberTag=8;mode|=24;break;case REACT_PROFILER_TYPE:return type=createFiber(12,pendingProps,key,mode|2),type.elementType=REACT_PROFILER_TYPE,type.lanes=lanes,type;case REACT_SUSPENSE_TYPE:return type=createFiber(13,pendingProps,key,mode),type.elementType=REACT_SUSPENSE_TYPE,type.lanes=lanes,type;case REACT_SUSPENSE_LIST_TYPE:return type=createFiber(19,pendingProps,key,mode),type.elementType=REACT_SUSPENSE_LIST_TYPE,type.lanes=lanes,type;default:if("object"===typeof type&&null!==type)switch(type.$$typeof){case REACT_CONTEXT_TYPE:fiberTag=10;break a;case REACT_CONSUMER_TYPE:fiberTag=9;break a;case REACT_FORWARD_REF_TYPE:fiberTag=11;break a;case REACT_MEMO_TYPE:fiberTag=14;break a;case REACT_LAZY_TYPE:fiberTag=16;owner=null;break a;}fiberTag=29;pendingProps=Error(formatProdErrorMessage(130,null===type?"null":typeof type,""));owner=null;}key=createFiber(fiberTag,pendingProps,key,mode);key.elementType=type;key.type=owner;key.lanes=lanes;return key;}function createFiberFromFragment(elements,mode,lanes,key){elements=createFiber(7,elements,key,mode);elements.lanes=lanes;return elements;}function createFiberFromText(content,mode,lanes){content=createFiber(6,content,null,mode);content.lanes=lanes;return content;}function createFiberFromDehydratedFragment(dehydratedNode){var fiber=createFiber(18,null,null,0);fiber.stateNode=dehydratedNode;return fiber;}function createFiberFromPortal(portal,mode,lanes){mode=createFiber(4,null!==portal.children?portal.children:[],portal.key,mode);mode.lanes=lanes;mode.stateNode={containerInfo:portal.containerInfo,pendingChildren:null,implementation:portal.implementation};return mode;}function FiberRootNode(containerInfo,tag,hydrate,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,onDefaultTransitionIndicator,formState){this.tag=1;this.containerInfo=containerInfo;this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=noTimeout;this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null;this.callbackPriority=0;this.expirationTimes=createLaneMap(-1);this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=createLaneMap(0);this.hiddenUpdates=createLaneMap(null);this.identifierPrefix=identifierPrefix;this.onUncaughtError=onUncaughtError;this.onCaughtError=onCaughtError;this.onRecoverableError=onRecoverableError;this.pooledCache=null;this.pooledCacheLanes=0;this.formState=formState;this.incompleteTransitions=new Map();}function createFiberRoot(containerInfo,tag,hydrate,initialChildren,hydrationCallbacks,isStrictMode,identifierPrefix,formState,onUncaughtError,onCaughtError,onRecoverableError,onDefaultTransitionIndicator){containerInfo=new FiberRootNode(containerInfo,tag,hydrate,identifierPrefix,onUncaughtError,onCaughtError,onRecoverableError,onDefaultTransitionIndicator,formState);tag=1;!0===isStrictMode&&(tag|=24);isStrictMode=createFiber(3,null,null,tag);containerInfo.current=isStrictMode;isStrictMode.stateNode=containerInfo;tag=createCache();tag.refCount++;containerInfo.pooledCache=tag;tag.refCount++;isStrictMode.memoizedState={element:initialChildren,isDehydrated:hydrate,cache:tag};initializeUpdateQueue(isStrictMode);return containerInfo;}function getContextForSubtree(parentComponent){if(!parentComponent)return emptyContextObject;parentComponent=emptyContextObject;return parentComponent;}function findHostInstance(component){var fiber=component._reactInternals;if(void 0===fiber){if("function"===typeof component.render)throw Error(formatProdErrorMessage(188));component=Object.keys(component).join(",");throw Error(formatProdErrorMessage(268,component));}component=findCurrentFiberUsingSlowPath(fiber);component=null!==component?findCurrentHostFiberImpl(component):null;return null===component?null:getPublicInstance(component.stateNode);}function updateContainerImpl(rootFiber,lane,element,container,parentComponent,callback){parentComponent=getContextForSubtree(parentComponent);null===container.context?container.context=parentComponent:container.pendingContext=parentComponent;container=createUpdate(lane);container.payload={element:element};callback=void 0===callback?null:callback;null!==callback&&(container.callback=callback);element=enqueueUpdate(rootFiber,container,lane);null!==element&&(scheduleUpdateOnFiber(element,rootFiber,lane),entangleTransitions(element,rootFiber,lane));}function markRetryLaneImpl(fiber,retryLane){fiber=fiber.memoizedState;if(null!==fiber&&null!==fiber.dehydrated){var a=fiber.retryLane;fiber.retryLane=0!==a&&a=otherLeft&&targetTop>=otherTop&&targetRight<=otherRight&&targetBottom<=otherBottom){hostRoot.splice(selectors,1);break;}else if(!(targetLeft!==otherLeft||i.width!==otherRect.width||otherBottomtargetBottom)){otherTop>targetTop&&(otherRect.height+=otherTop-targetTop,otherRect.y=targetTop);otherBottomtargetRight)){otherLeft>targetLeft&&(otherRect.width+=otherLeft-targetLeft,otherRect.x=targetLeft);otherRightmaxSelectorIndex&&(maxSelectorIndex=selectorIndex)),selectorIndex ")+"\n\nNo matching component was found for:\n ")+hostRoot.join(" > ");}return null;};exports.getPublicRootInstance=function(container){container=container.current;if(!container.child)return null;switch(container.child.tag){case 27:case 5:return getPublicInstance(container.child.stateNode);default:return container.child.stateNode;}};exports.injectIntoDevTools=function(){var internals={bundleType:0,version:rendererVersion,rendererPackageName:rendererPackageName,currentDispatcherRef:ReactSharedInternals,reconcilerVersion:"19.2.0"};null!==extraDevToolsConfig&&(internals.rendererConfig=extraDevToolsConfig);if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)internals=!1;else{var hook=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(hook.isDisabled||!hook.supportsFiber)internals=!0;else{try{rendererID=hook.inject(internals),injectedHook=hook;}catch(err){}internals=hook.checkDCE?!0:!1;}}return internals;};exports.isAlreadyRendering=function(){return 0!==(executionContext&6);};exports.observeVisibleRects=function(hostRoot,selectors,callback,options){if(!supportsTestSelectors)throw Error(formatProdErrorMessage(363));hostRoot=findAllNodes(hostRoot,selectors);var disconnect=setupIntersectionObserver(hostRoot,callback,options).disconnect;return{disconnect:function(){disconnect();}};};exports.shouldError=function(){return null;};exports.shouldSuspend=function(){return!1;};exports.startHostTransition=function(formFiber,pendingState,action,formData){if(5!==formFiber.tag)throw Error(formatProdErrorMessage(476));var queue=ensureFormComponentIsStateful(formFiber).queue;startTransition(formFiber,queue,pendingState,NotPendingTransition,null===action?noop:function(){var stateHook=ensureFormComponentIsStateful(formFiber);null===stateHook.next&&(stateHook=formFiber.alternate.memoizedState);dispatchSetStateInternal(formFiber,stateHook.next.queue,{},requestUpdateLane());return action(formData);});};exports.updateContainer=function(element,container,parentComponent,callback){var current=container.current,lane=requestUpdateLane();updateContainerImpl(current,lane,element,container,parentComponent,callback);return lane;};exports.updateContainerSync=function(element,container,parentComponent,callback){updateContainerImpl(container.current,2,element,container,parentComponent,callback);return 2;};return exports;};module.exports["default"]=module.exports;Object.defineProperty(module.exports, "__esModule", ({value:!0})); +}); -if(true){module.exports = __webpack_require__("./node_modules/react/cjs/react.production.js");}else// removed by dead control flow +// MODULE: ./node_modules/react-reconciler/constants.js +var constants_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { +if(true){module.exports = react_reconciler_constants_production_namespaceFn();}else// removed by dead control flow {} +}); -/***/ }, - -/***/ "./node_modules/react/jsx-runtime.js" -(module, __unused_webpack_exports, __webpack_require__) { - -if(true){module.exports = __webpack_require__("./node_modules/react/cjs/react-jsx-runtime.production.js");}else// removed by dead control flow +// MODULE: ./node_modules/react-reconciler/index.js +var react_reconciler_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { +if(true){module.exports = react_reconciler_production_namespaceFn();}else// removed by dead control flow {} +}); -/***/ }, - -/***/ "./node_modules/scheduler/cjs/scheduler.production.js" -(__unused_webpack_module, exports) { - +// MODULE: ./node_modules/react/cjs/react-jsx-runtime.production.js +var react_jsx_runtime_production_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { /** * @license React - * scheduler.production.js + * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function push(heap,node){var index=heap.length;heap.push(node);a:for(;0>>1,parent=heap[parentIndex];if(0>>1;indexcompare(left,last))rightIndexcompare(right,left)?(heap[index]=right,heap[rightIndex]=last,index=rightIndex):(heap[index]=left,heap[leftIndex]=last,index=leftIndex);else if(rightIndexcompare(right,last))heap[index]=right,heap[rightIndex]=last,index=rightIndex;else break a;}}return first;}function compare(a,b){var diff=a.sortIndex-b.sortIndex;return 0!==diff?diff:a.id-b.id;}exports.unstable_now=void 0;if("object"===typeof performance&&"function"===typeof performance.now){var localPerformance=performance;exports.unstable_now=function(){return localPerformance.now();};}else{var localDate=Date,initialTime=localDate.now();exports.unstable_now=function(){return localDate.now()-initialTime;};}var taskQueue=[],timerQueue=[],taskIdCounter=1,currentTask=null,currentPriorityLevel=3,isPerformingWork=!1,isHostCallbackScheduled=!1,isHostTimeoutScheduled=!1,needsPaint=!1,localSetTimeout="function"===typeof setTimeout?setTimeout:null,localClearTimeout="function"===typeof clearTimeout?clearTimeout:null,localSetImmediate="undefined"!==typeof setImmediate?setImmediate:null;function advanceTimers(currentTime){for(var timer=peek(timerQueue);null!==timer;){if(null===timer.callback)pop(timerQueue);else if(timer.startTime<=currentTime)pop(timerQueue),timer.sortIndex=timer.expirationTime,push(taskQueue,timer);else break;timer=peek(timerQueue);}}function handleTimeout(currentTime){isHostTimeoutScheduled=!1;advanceTimers(currentTime);if(!isHostCallbackScheduled)if(null!==peek(taskQueue))isHostCallbackScheduled=!0,isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline());else{var firstTimer=peek(timerQueue);null!==firstTimer&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime);}}var isMessageLoopRunning=!1,taskTimeoutID=-1,frameInterval=5,startTime=-1;function shouldYieldToHost(){return needsPaint?!0:exports.unstable_now()-startTimecurrentTime&&shouldYieldToHost());){var callback=currentTask.callback;if("function"===typeof callback){currentTask.callback=null;currentPriorityLevel=currentTask.priorityLevel;var continuationCallback=callback(currentTask.expirationTime<=currentTime);currentTime=exports.unstable_now();if("function"===typeof continuationCallback){currentTask.callback=continuationCallback;advanceTimers(currentTime);hasMoreWork=!0;break b;}currentTask===peek(taskQueue)&&pop(taskQueue);advanceTimers(currentTime);}else pop(taskQueue);currentTask=peek(taskQueue);}if(null!==currentTask)hasMoreWork=!0;else{var firstTimer=peek(timerQueue);null!==firstTimer&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime);hasMoreWork=!1;}}break a;}finally{currentTask=null,currentPriorityLevel=previousPriorityLevel,isPerformingWork=!1;}hasMoreWork=void 0;}}finally{hasMoreWork?schedulePerformWorkUntilDeadline():isMessageLoopRunning=!1;}}}var schedulePerformWorkUntilDeadline;if("function"===typeof localSetImmediate)schedulePerformWorkUntilDeadline=function(){localSetImmediate(performWorkUntilDeadline);};else if("undefined"!==typeof MessageChannel){var channel=new MessageChannel(),port=channel.port2;channel.port1.onmessage=performWorkUntilDeadline;schedulePerformWorkUntilDeadline=function(){port.postMessage(null);};}else schedulePerformWorkUntilDeadline=function(){localSetTimeout(performWorkUntilDeadline,0);};function requestHostTimeout(callback,ms){taskTimeoutID=localSetTimeout(function(){callback(exports.unstable_now());},ms);}exports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(task){task.callback=null;};exports.unstable_forceFrameRate=function(fps){0>fps||125currentTime?(priorityLevel.sortIndex=options,push(timerQueue,priorityLevel),null===peek(taskQueue)&&priorityLevel===peek(timerQueue)&&(isHostTimeoutScheduled?(localClearTimeout(taskTimeoutID),taskTimeoutID=-1):isHostTimeoutScheduled=!0,requestHostTimeout(handleTimeout,options-currentTime))):(priorityLevel.sortIndex=timeout,push(taskQueue,priorityLevel),isHostCallbackScheduled||isPerformingWork||(isHostCallbackScheduled=!0,isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline())));return priorityLevel;};exports.unstable_shouldYield=shouldYieldToHost;exports.unstable_wrapCallback=function(callback){var parentPriorityLevel=currentPriorityLevel;return function(){var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=parentPriorityLevel;try{return callback.apply(this,arguments);}finally{currentPriorityLevel=previousPriorityLevel;}};}; - -/***/ }, + */var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment");function jsxProd(type,config,maybeKey){var key=null;void 0!==maybeKey&&(key=""+maybeKey);void 0!==config.key&&(key=""+config.key);if("key"in config){maybeKey={};for(var propName in config)"key"!==propName&&(maybeKey[propName]=config[propName]);}else maybeKey=config;config=maybeKey.ref;return{$$typeof:REACT_ELEMENT_TYPE,type:type,key:key,ref:void 0!==config?config:null,props:maybeKey};}exports.Fragment=REACT_FRAGMENT_TYPE;exports.jsx=jsxProd;exports.jsxs=jsxProd; +}); -/***/ "./node_modules/scheduler/index.js" -(module, __unused_webpack_exports, __webpack_require__) { +// MODULE: ./node_modules/react/cjs/react.production.js +var react_production_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { +/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_CONSUMER_TYPE=Symbol.for("react.consumer"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_ACTIVITY_TYPE=Symbol.for("react.activity"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator;function getIteratorFn(maybeIterable){if(null===maybeIterable||"object"!==typeof maybeIterable)return null;maybeIterable=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable["@@iterator"];return"function"===typeof maybeIterable?maybeIterable:null;}var ReactNoopUpdateQueue={isMounted:function(){return!1;},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},assign=Object.assign,emptyObject={};function Component(props,context,updater){this.props=props;this.context=context;this.refs=emptyObject;this.updater=updater||ReactNoopUpdateQueue;}Component.prototype.isReactComponent={};Component.prototype.setState=function(partialState,callback){if("object"!==typeof partialState&&"function"!==typeof partialState&&null!=partialState)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,partialState,callback,"setState");};Component.prototype.forceUpdate=function(callback){this.updater.enqueueForceUpdate(this,callback,"forceUpdate");};function ComponentDummy(){}ComponentDummy.prototype=Component.prototype;function PureComponent(props,context,updater){this.props=props;this.context=context;this.refs=emptyObject;this.updater=updater||ReactNoopUpdateQueue;}var pureComponentPrototype=PureComponent.prototype=new ComponentDummy();pureComponentPrototype.constructor=PureComponent;assign(pureComponentPrototype,Component.prototype);pureComponentPrototype.isPureReactComponent=!0;var isArrayImpl=Array.isArray;function noop(){}var ReactSharedInternals={H:null,A:null,T:null,S:null},hasOwnProperty=Object.prototype.hasOwnProperty;function ReactElement(type,key,props){var refProp=props.ref;return{$$typeof:REACT_ELEMENT_TYPE,type:type,key:key,ref:void 0!==refProp?refProp:null,props:props};}function cloneAndReplaceKey(oldElement,newKey){return ReactElement(oldElement.type,newKey,oldElement.props);}function isValidElement(object){return"object"===typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE;}function escape(key){var escaperLookup={"=":"=0",":":"=2"};return"$"+key.replace(/[=:]/g,function(match){return escaperLookup[match];});}var userProvidedKeyEscapeRegex=/\/+/g;function getElementKey(element,index){return"object"===typeof element&&null!==element&&null!=element.key?escape(""+element.key):index.toString(36);}function resolveThenable(thenable){switch(thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenable.reason;default:switch("string"===typeof thenable.status?thenable.then(noop,noop):(thenable.status="pending",thenable.then(function(fulfilledValue){"pending"===thenable.status&&(thenable.status="fulfilled",thenable.value=fulfilledValue);},function(error){"pending"===thenable.status&&(thenable.status="rejected",thenable.reason=error);})),thenable.status){case"fulfilled":return thenable.value;case"rejected":throw thenable.reason;}}throw thenable;}function mapIntoArray(children,array,escapedPrefix,nameSoFar,callback){var type=typeof children;if("undefined"===type||"boolean"===type)children=null;var invokeCallback=!1;if(null===children)invokeCallback=!0;else switch(type){case"bigint":case"string":case"number":invokeCallback=!0;break;case"object":switch(children.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:invokeCallback=!0;break;case REACT_LAZY_TYPE:return invokeCallback=children._init,mapIntoArray(invokeCallback(children._payload),array,escapedPrefix,nameSoFar,callback);}}if(invokeCallback)return callback=callback(children),invokeCallback=""===nameSoFar?"."+getElementKey(children,0):nameSoFar,isArrayImpl(callback)?(escapedPrefix="",null!=invokeCallback&&(escapedPrefix=invokeCallback.replace(userProvidedKeyEscapeRegex,"$&/")+"/"),mapIntoArray(callback,array,escapedPrefix,"",function(c){return c;})):null!=callback&&(isValidElement(callback)&&(callback=cloneAndReplaceKey(callback,escapedPrefix+(null==callback.key||children&&children.key===callback.key?"":(""+callback.key).replace(userProvidedKeyEscapeRegex,"$&/")+"/")+invokeCallback)),array.push(callback)),1;invokeCallback=0;var nextNamePrefix=""===nameSoFar?".":nameSoFar+":";if(isArrayImpl(children))for(var i=0;i { + return __webpack_require__("./node_modules/scheduler/index.js"); +}; +// MODULE: ./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +var use_sync_external_store_shim_production_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { /** * @license React * use-sync-external-store-shim.production.js @@ -148,13 +279,11 @@ if(true){module.exports = __webpack_require__("./node_modules/scheduler/cjs/sche * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var React=__webpack_require__("./node_modules/react/index.js");function is(x,y){return x===y&&(0!==x||1/x===1/y)||x!==x&&y!==y;}var objectIs="function"===typeof Object.is?Object.is:is,useState=React.useState,useEffect=React.useEffect,useLayoutEffect=React.useLayoutEffect,useDebugValue=React.useDebugValue;function useSyncExternalStore$2(subscribe,getSnapshot){var value=getSnapshot(),_useState=useState({inst:{value:value,getSnapshot:getSnapshot}}),inst=_useState[0].inst,forceUpdate=_useState[1];useLayoutEffect(function(){inst.value=value;inst.getSnapshot=getSnapshot;checkIfSnapshotChanged(inst)&&forceUpdate({inst:inst});},[subscribe,value,getSnapshot]);useEffect(function(){checkIfSnapshotChanged(inst)&&forceUpdate({inst:inst});return subscribe(function(){checkIfSnapshotChanged(inst)&&forceUpdate({inst:inst});});},[subscribe]);useDebugValue(value);return value;}function checkIfSnapshotChanged(inst){var latestGetSnapshot=inst.getSnapshot;inst=inst.value;try{var nextValue=latestGetSnapshot();return!objectIs(inst,nextValue);}catch(error){return!0;}}function useSyncExternalStore$1(subscribe,getSnapshot){return getSnapshot();}var shim="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?useSyncExternalStore$1:useSyncExternalStore$2;exports.useSyncExternalStore=void 0!==React.useSyncExternalStore?React.useSyncExternalStore:shim; - -/***/ }, - -/***/ "./node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js" -(__unused_webpack_module, exports, __webpack_require__) { + */var React=react_namespaceFn();function is(x,y){return x===y&&(0!==x||1/x===1/y)||x!==x&&y!==y;}var objectIs="function"===typeof Object.is?Object.is:is,useState=React.useState,useEffect=React.useEffect,useLayoutEffect=React.useLayoutEffect,useDebugValue=React.useDebugValue;function useSyncExternalStore$2(subscribe,getSnapshot){var value=getSnapshot(),_useState=useState({inst:{value:value,getSnapshot:getSnapshot}}),inst=_useState[0].inst,forceUpdate=_useState[1];useLayoutEffect(function(){inst.value=value;inst.getSnapshot=getSnapshot;checkIfSnapshotChanged(inst)&&forceUpdate({inst:inst});},[subscribe,value,getSnapshot]);useEffect(function(){checkIfSnapshotChanged(inst)&&forceUpdate({inst:inst});return subscribe(function(){checkIfSnapshotChanged(inst)&&forceUpdate({inst:inst});});},[subscribe]);useDebugValue(value);return value;}function checkIfSnapshotChanged(inst){var latestGetSnapshot=inst.getSnapshot;inst=inst.value;try{var nextValue=latestGetSnapshot();return!objectIs(inst,nextValue);}catch(error){return!0;}}function useSyncExternalStore$1(subscribe,getSnapshot){return getSnapshot();}var shim="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?useSyncExternalStore$1:useSyncExternalStore$2;exports.useSyncExternalStore=void 0!==React.useSyncExternalStore?React.useSyncExternalStore:shim; +}); +// MODULE: ./node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +var use_sync_external_store_with_selector_production_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { /** * @license React * use-sync-external-store-with-selector.production.js @@ -163,110 +292,23 @@ if(true){module.exports = __webpack_require__("./node_modules/scheduler/cjs/sche * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var React=__webpack_require__("./node_modules/react/index.js");function is(x,y){return x===y&&(0!==x||1/x===1/y)||x!==x&&y!==y;}var objectIs="function"===typeof Object.is?Object.is:is,useSyncExternalStore=React.useSyncExternalStore,useRef=React.useRef,useEffect=React.useEffect,useMemo=React.useMemo,useDebugValue=React.useDebugValue;exports.useSyncExternalStoreWithSelector=function(subscribe,getSnapshot,getServerSnapshot,selector,isEqual){var instRef=useRef(null);if(null===instRef.current){var inst={hasValue:!1,value:null};instRef.current=inst;}else inst=instRef.current;instRef=useMemo(function(){function memoizedSelector(nextSnapshot){if(!hasMemo){hasMemo=!0;memoizedSnapshot=nextSnapshot;nextSnapshot=selector(nextSnapshot);if(void 0!==isEqual&&inst.hasValue){var currentSelection=inst.value;if(isEqual(currentSelection,nextSnapshot))return memoizedSelection=currentSelection;}return memoizedSelection=nextSnapshot;}currentSelection=memoizedSelection;if(objectIs(memoizedSnapshot,nextSnapshot))return currentSelection;var nextSelection=selector(nextSnapshot);if(void 0!==isEqual&&isEqual(currentSelection,nextSelection))return memoizedSnapshot=nextSnapshot,currentSelection;memoizedSnapshot=nextSnapshot;return memoizedSelection=nextSelection;}var hasMemo=!1,memoizedSnapshot,memoizedSelection,maybeGetServerSnapshot=void 0===getServerSnapshot?null:getServerSnapshot;return[function(){return memoizedSelector(getSnapshot());},null===maybeGetServerSnapshot?void 0:function(){return memoizedSelector(maybeGetServerSnapshot());}];},[getSnapshot,getServerSnapshot,selector,isEqual]);var value=useSyncExternalStore(subscribe,instRef[0],instRef[1]);useEffect(function(){inst.hasValue=!0;inst.value=value;},[value]);useDebugValue(value);return value;}; - -/***/ }, - -/***/ "./node_modules/use-sync-external-store/shim/index.js" -(module, __unused_webpack_exports, __webpack_require__) { + */var React=react_namespaceFn();function is(x,y){return x===y&&(0!==x||1/x===1/y)||x!==x&&y!==y;}var objectIs="function"===typeof Object.is?Object.is:is,useSyncExternalStore=React.useSyncExternalStore,useRef=React.useRef,useEffect=React.useEffect,useMemo=React.useMemo,useDebugValue=React.useDebugValue;exports.useSyncExternalStoreWithSelector=function(subscribe,getSnapshot,getServerSnapshot,selector,isEqual){var instRef=useRef(null);if(null===instRef.current){var inst={hasValue:!1,value:null};instRef.current=inst;}else inst=instRef.current;instRef=useMemo(function(){function memoizedSelector(nextSnapshot){if(!hasMemo){hasMemo=!0;memoizedSnapshot=nextSnapshot;nextSnapshot=selector(nextSnapshot);if(void 0!==isEqual&&inst.hasValue){var currentSelection=inst.value;if(isEqual(currentSelection,nextSnapshot))return memoizedSelection=currentSelection;}return memoizedSelection=nextSnapshot;}currentSelection=memoizedSelection;if(objectIs(memoizedSnapshot,nextSnapshot))return currentSelection;var nextSelection=selector(nextSnapshot);if(void 0!==isEqual&&isEqual(currentSelection,nextSelection))return memoizedSnapshot=nextSnapshot,currentSelection;memoizedSnapshot=nextSnapshot;return memoizedSelection=nextSelection;}var hasMemo=!1,memoizedSnapshot,memoizedSelection,maybeGetServerSnapshot=void 0===getServerSnapshot?null:getServerSnapshot;return[function(){return memoizedSelector(getSnapshot());},null===maybeGetServerSnapshot?void 0:function(){return memoizedSelector(maybeGetServerSnapshot());}];},[getSnapshot,getServerSnapshot,selector,isEqual]);var value=useSyncExternalStore(subscribe,instRef[0],instRef[1]);useEffect(function(){inst.hasValue=!0;inst.value=value;},[value]);useDebugValue(value);return value;}; +}); -if(true){module.exports = __webpack_require__("./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js");}else// removed by dead control flow +// MODULE: ./node_modules/use-sync-external-store/shim/index.js +var shim_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { +if(true){module.exports = use_sync_external_store_shim_production_namespaceFn();}else// removed by dead control flow {} +}); -/***/ }, - -/***/ "./node_modules/use-sync-external-store/with-selector.js" -(module, __unused_webpack_exports, __webpack_require__) { - -if(true){module.exports = __webpack_require__("./node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js");}else// removed by dead control flow +// MODULE: ./node_modules/use-sync-external-store/with-selector.js +var with_selector_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { +if(true){module.exports = use_sync_external_store_with_selector_production_namespaceFn();}else// removed by dead control flow {} +}); -/***/ }, - -/***/ "./src/index.tsx" -(module, __unused_webpack___webpack_exports__, __webpack_require__) { - - -;// ./node_modules/@reactunity/renderer/dist/objectSpread2-CDDvZyE7.js -//#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js -function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}//#endregion -//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPrimitive.js -function toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}//#endregion -//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPropertyKey.js -function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}//#endregion -//#region \0@oxc-project+runtime@0.140.0/helpers/esm/defineProperty.js -function _defineProperty(e,r,t){return(r=toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}//#endregion -//#region \0@oxc-project+runtime@0.140.0/helpers/esm/objectSpread2.js -function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2(e){for(var r=1;r{let snapshot=_objectSpread2({},dictionary);return{subscribe:onStoreChange=>{snapshot=_objectSpread2({},dictionary);const remove=dictionary===null||dictionary===void 0?void 0:dictionary.AddListener(()=>{const prev=snapshot;snapshot=_objectSpread2({},dictionary);if(!fields)onStoreChange();else{const it=fields.values();for(let field=it.next().value;field;field=it.next().value)if(isEqual?!isEqual(prev[field],snapshot[field]):prev[field]!==snapshot[field]){onStoreChange();break;}}});if(!remove)if(displayName)console.warn(`${displayName} dictionary does not provide a change listener`);else console.warn("The dictionary does not provide a change listener");return()=>remove===null||remove===void 0?void 0:remove();},getSnapshot:()=>snapshot};};const defaultSubscriber=createSubscriber();const Provider=function GlobalsProvider({children}){const value=(0,shim.useSyncExternalStore)(defaultSubscriber.subscribe,defaultSubscriber.getSnapshot,defaultSubscriber.getSnapshot);return/*#__PURE__*/(0,react.createElement)(ctx.Provider,{value},children);};function useDictionaryContext(){const context=(0,react.useContext)(ctx);if(context===void 0){if(displayName)throw new Error(`${displayName}.useContext must be used within a ${displayName}.Provider`);throw new Error("useContext must be used within a provider");}return context;}function useValue(subscribeToAllFields=false,fieldEqual){const fields=(0,react.useMemo)(()=>/* @__PURE__ */new Set(),[]);const fieldsRef=(0,react.useRef)(fields);const[allFieldsSubscribed,setAllFieldsSubscribed]=(0,react.useState)(false);subscribeToAllFields||(subscribeToAllFields=allFieldsSubscribed);const subscriber=(0,react.useMemo)(()=>subscribeToAllFields?defaultSubscriber:createSubscriber(fieldsRef.current,fieldEqual),[subscribeToAllFields,fieldEqual]);const value=(0,shim.useSyncExternalStore)(subscriber.subscribe,subscriber.getSnapshot,subscriber.getSnapshot);return new Proxy(value,{get(target,p,receiver){fields.add(p);return value[p];},ownKeys(target){if(!allFieldsSubscribed)setAllFieldsSubscribed(true);return Reflect.ownKeys(target);},getOwnPropertyDescriptor(target,p){fields.add(p);return _objectSpread2(_objectSpread2({},Reflect.getOwnPropertyDescriptor(target,p)),{},{value:value[p]});}});}function useSelector(selector,isEqual){return (0,with_selector.useSyncExternalStoreWithSelector)(defaultSubscriber.subscribe,defaultSubscriber.getSnapshot,defaultSubscriber.getSnapshot,selector,isEqual);}return{context:ctx,Provider,useValue,useContext:useDictionaryContext,useSelector};}//#endregion -//#region src/helpers/hooks/use-globals.ts -const globalsWatcher=createDictionaryWatcher(Globals,"globalsContext");const useGlobals=globalsWatcher.useValue;const useGlobalsContext=globalsWatcher.useContext;const useGlobalsSelector=globalsWatcher.useSelector;const GlobalsProvider=globalsWatcher.Provider;//#endregion -//#region src/helpers/hooks/use-reactive-value.ts -function createSubscriber(obj,isEqual){const isReactive=obj&&typeof obj==="object"&&"Value"in obj;let snapshot=isReactive?obj.Value:void 0;return{subscribe:onStoreChange=>{snapshot=isReactive?obj.Value:void 0;const remove=isReactive&&typeof obj.AddListener==="function"&&(obj===null||obj===void 0?void 0:obj.AddListener(()=>{const prev=snapshot;snapshot=isReactive?obj.Value:void 0;if(typeof isEqual!=="function"||!isEqual(prev,snapshot))onStoreChange();}));if(isReactive&&typeof remove!=="function")console.warn("The reactive value does not provide a change listener");return()=>remove===null||remove===void 0?void 0:remove();},getSnapshot:()=>snapshot};}function useReactiveValue(obj,isEqual){const sb=useMemo(()=>createSubscriber(obj,isEqual),[obj,isEqual]);return useSyncExternalStore(sb.subscribe,sb.getSnapshot,sb.getSnapshot);}//#endregion -//#region src/helpers/icons.ts -const componentCache={};const icon=new Proxy({},{get:(target,key)=>{if(typeof key==="symbol")return target[key];const icon=key.replace(/^_/,"");let cmp=componentCache[icon];if(cmp)return cmp;cmp=function NamedIcon(props,ref){return/*#__PURE__*/react.createElement("icon",_objectSpread2(_objectSpread2({name:``},props),{},{ref}),icon);};cmp=/*#__PURE__*/react.forwardRef(cmp);componentCache[icon]=cmp;return cmp;}});//#endregion -//#region src/version.ts -const version="0.21.0";//#endregion -//#region src/views/error-boundary.tsx -var ErrorBoundary=class extends react.Component{constructor(props){super(props);this.state={hasError:false,error:null};}static getDerivedStateFromError(error){return{hasError:true,error};}componentDidCatch(error,errorInfo){}render(){if(this.state.hasError){var _this$state$error,_this$state$error2;return/* @__PURE__ */(0,jsx_runtime.jsxs)("view",{id:"__react-unity-error-boundary",style:{color:"crimson",padding:20,fontSize:16},children:[/* @__PURE__ */(0,jsx_runtime.jsx)("view",{style:{marginBottom:"12px"},children:((_this$state$error=this.state.error)===null||_this$state$error===void 0?void 0:_this$state$error.message)||""}),/* @__PURE__ */(0,jsx_runtime.jsx)("view",{children:((_this$state$error2=this.state.error)===null||_this$state$error2===void 0?void 0:_this$state$error2.stack)||""})]});}return this.props.children;}};//#endregion -//#region src/views/default-view.tsx -function DefaultView({children,withHelpers,renderCount}){return/* @__PURE__ */(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:!withHelpers?children:/* @__PURE__ */(0,jsx_runtime.jsx)(ErrorBoundary,{children},renderCount)});}//#endregion -//#region src/renderer/async/objects.ts -var ObjectsRepo=class{constructor(){_defineProperty(this,"indices",[{}]);_defineProperty(this,"objects",/* @__PURE__ */new WeakMap());_defineProperty(this,"setObject",(index,item)=>{let it=this.indices[index];if(!it)it=this.indices[index]={};this.objects.set(it,item);});_defineProperty(this,"addObject",item=>{if(!item)return-1;const it={};const ind=this.indices.length;this.indices.push(it);this.objects.set(it,item);return ind;});_defineProperty(this,"getObject",index=>{if(index<0)return void 0;const it=this.indices[index];return this.objects.get(it);});}};//#endregion -//#region src/renderer/diffing.ts -const styleStringSymbol="__style_as_string__";const propDepths={style:1,data:1,custom:1};function diffProperties(lastProps,nextProps,deepDiffing=0){if(lastProps===nextProps)return null;let updatePayload=null;let propKey;for(propKey in lastProps){if(Object.hasOwn(nextProps,propKey)||!Object.hasOwn(lastProps,propKey)||lastProps[propKey]==null)continue;let prop=null;if(propKey==="style"&&typeof lastProps.style==="string")(updatePayload=updatePayload||{})[styleStringSymbol]=null;else{const depth=deepDiffing>0?deepDiffing:propDepths[propKey]||0;if(depth>0){prop=diffProperties(lastProps[propKey],{},depth-1);if(!prop)continue;}(updatePayload=updatePayload||{})[propKey]=prop;}}for(propKey in nextProps){const nextProp=nextProps[propKey];const lastProp=lastProps!=null?lastProps[propKey]:void 0;if(!Object.hasOwn(nextProps,propKey)||nextProp===lastProp||nextProp==null&&lastProp==null)continue;let prop=nextProp;if(propKey==="style"){const prevWasString=typeof lastProp==="string";const curIsString=typeof prop==="string";if(prevWasString!==curIsString){(updatePayload=updatePayload||{})[styleStringSymbol]=typeof prop==="string"?prop:null;if(curIsString){prop=diffProperties(lastProp,{},0);if(!prop)continue;}}else{if(curIsString)continue;prop=diffProperties(lastProp,nextProp,0);if(!prop)continue;}}else{const depth=deepDiffing>0?deepDiffing:propDepths[propKey]||0;if(depth>0){prop=diffProperties(lastProp,nextProp,depth-1);if(!prop)continue;}}(updatePayload=updatePayload||{})[propKey]=prop;}return updatePayload;}//#endregion -//#region \0@oxc-project+runtime@0.140.0/helpers/esm/objectWithoutPropertiesLoose.js -function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n];}return t;}//#endregion -//#region \0@oxc-project+runtime@0.140.0/helpers/esm/objectWithoutProperties.js -function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;rsetTimeout(callback,delay),scheduleMicrotask:typeof queueMicrotask==="function"?queueMicrotask:callback=>Promise.resolve(null).then(callback).catch(error=>setTimeout(()=>{throw error;},0)),cancelTimeout:handle=>clearTimeout(handle),beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},prepareScopeUpdate:()=>{},getInstanceFromScope:()=>void 0,getInstanceFromNode:()=>void 0,setCurrentUpdatePriority:newPriority=>currentUpdatePriority=newPriority,getCurrentUpdatePriority:()=>currentUpdatePriority,resolveUpdatePriority:()=>currentUpdatePriority||UnityBridge.CurrentEventPriority||eventPriorities.default,maySuspendCommit:()=>false,requestPostPaintCallback:()=>{},preloadInstance:()=>true,resetFormInstance:()=>{},resolveEventTimeStamp:()=>-1.1,resolveEventType:()=>null,shouldAttemptEagerTransition:()=>false,startSuspendingCommit:()=>{},suspendInstance:()=>{},trackSchedulerEvent:()=>{},waitForCommitToBeReady:()=>null,NotPendingTransition:null,HostTransitionContext},{now:typeof performance!=="undefined"&&typeof performance.now==="function"?()=>performance.now():typeof Date!=="undefined"&&typeof Date.now==="function"?()=>Date.now():()=>0,getCurrentEventPriority:()=>UnityBridge.CurrentEventPriority||eventPriorities.default});const isDevelopment=(/* unused pure expression or super */ null && ("production"==="development"));//#endregion -//#region src/renderer/subcontexts/richtext.ts -function parametrizeValue(value){if(typeof value==="number")return String(value);value=String(value);if(value.includes(" ")||value.includes("-"))return`"${value}"`;return value;}function stringifyRichText(node){var _node$children;if(node.hidden)return"";if("text"in node)return node.text;const acc=[];const tag=node.tag;if(tag){var _node$attributes;acc.push("<");acc.push(tag);if(((_node$attributes=node.attributes)===null||_node$attributes===void 0?void 0:_node$attributes.value)!=null){var _node$attributes2;const value=(_node$attributes2=node.attributes)===null||_node$attributes2===void 0?void 0:_node$attributes2.value;acc.push("=");acc.push(parametrizeValue(value));}for(const key in node.attributes){if(key==="value")continue;if(Object.hasOwn(node.attributes,key)){const value=node.attributes[key];if(value!=null){acc.push(" ");acc.push(key);acc.push("=");acc.push(parametrizeValue(value));}}}acc.push(">");}if(((_node$children=node.children)===null||_node$children===void 0?void 0:_node$children.length)>0){for(const child of node.children)acc.push(stringifyRichText(child));if(tag){acc.push("");}}return acc.join("");}//#endregion -//#region src/renderer/subcontexts/svg.ts -function kebabize(str){return str.split("").map((letter,idx)=>{return letter.toUpperCase()===letter?`${idx!==0?"-":""}${letter.toLowerCase()}`:letter;}).join("");}function stringifyStyle(style){if(typeof style==="string")return style;const acc=[];for(const key in style)if(Object.hasOwn(style,key)){const element=style[key];if(element!=null){acc.push(kebabize(key));acc.push(":");acc.push(element);acc.push(";");}}return acc.join("");}function stringifySVG(node){var _node$children;if(node.hidden)return"";if("text"in node)return node.text;const acc=[];const tag=node.tag;if(tag){acc.push("<");acc.push(tag);for(const key in node.attributes)if(Object.hasOwn(node.attributes,key)){let element=node.attributes[key];if(key==="style")element=stringifyStyle(element);if(element!=null){acc.push(" ");acc.push(kebabize(key));acc.push("=\"");acc.push(element);acc.push("\"");}}}if(((_node$children=node.children)===null||_node$children===void 0?void 0:_node$children.length)>0){if(tag)acc.push(">");for(const child of node.children)acc.push(stringifySVG(child));if(tag){acc.push("");}}else if(tag)acc.push(" />");return acc.join("");}//#endregion -//#region src/renderer/subcontexts/index.ts -const subContextRenderers={richtext:stringifyRichText,svg:stringifySVG};//#endregion -//#region src/renderer/async/callbacks.ts -var CallbacksRepo=class extends ObjectsRepo{constructor(..._args){super(..._args);_defineProperty(this,"call",(ind,args)=>{const cb=this.getObject(ind);const argsAsList=args;const argsAsArray=args;if(typeof argsAsArray.Length==="number"){args=[];const length=argsAsArray.Length;for(let index=0;index{const rend=subContextRenderers[instance.type];let root=instance===null||instance===void 0?void 0:instance.root;let cur=instance;while(cur&&!root){root=cur.root;cur=cur.parent;}if(!root)return;const content=rend(root.subContext.node);if(instance.type==="richtext")instance.hostContext.commands.push([6,root.refId,content]);else if(instance.type==="svg")instance.hostContext.commands.push([5,root.refId,"svg",convertPropsToSerializable({innerContent:content})]);};const hostConfig$1=_objectSpread2(_objectSpread2({},commonReconciler),{},{getRootHostContext:rootContainer=>{const context=rootContainer.context;if(rootContainer.refId<0){refId++;rootContainer.context.SetRef(refId,rootContainer.component);rootContainer.refId=refId;}const existing=ctxMap.get(context);if(existing)return existing;const commands=rootContainer.commands;const flushCommands=()=>{const serialized=JSON.stringify(commands);commands.length=0;return serialized;};const fireEventByRef=(ind,args)=>{return callbacksRepo.call(ind,args);};const getObjectRef=ind=>{return objectsRepo.getObject(ind);};const getEventAsObjectRef=ind=>{return callbacksRepo.getObject(ind);};context.BindCommands(flushCommands,fireEventByRef,getObjectRef,getEventAsObjectRef);const ctx={context,commands,refId:rootContainer.refId,type:"native"};ctxMap.set(context,ctx);return ctx;},getChildHostContext:(parentCtx,type)=>{if(type==="richtext"&&parentCtx.type==="native")return{type:"richtext",hostContext:parentCtx,node:null,parent:null,root:null};if(type==="svg"&&parentCtx.type==="native")return{type:"svg",hostContext:parentCtx,node:null,parent:null,root:null};return parentCtx;},getPublicInstance:instance=>{if(instance.type==="native")return instance.context.GetRef(instance.refId,instance.commands.length>0);return null;},supportsMutation:true,supportsHydration:false,supportsPersistence:false,supportsMicrotasks:true,isPrimaryRenderer:true,warnsIfNotActing:true,prepareForCommit:()=>null,resetAfterCommit:()=>{},clearContainer(container){UnityBridge.clearContainer(container);},createInstance(type,props,rootContainer,ctx,internalHandle){const aProps=getAllowedProps(props,type);if(ctx.type==="native"){refId++;ctx.commands.push([0,refId,type,convertPropsToSerializable(aProps),stringizePoolKey(props.pool)]);if(rootContainer.fiberCache)rootContainer.fiberCache.setObject(refId,internalHandle);const res=_objectSpread2(_objectSpread2({},ctx),{},{refId});if(type==="richtext")res.subContext={type:"richtext",node:{tag:"",children:[],attributes:aProps},root:res,hostContext:res,parent:null};if(type==="svg")res.subContext={type:"svg",node:{tag:"",children:[],attributes:aProps},root:res,hostContext:res,parent:null};return res;}if(ctx.type==="richtext"||ctx.type==="svg")return _objectSpread2(_objectSpread2({},ctx),{},{node:{tag:type,children:[],attributes:aProps}});},createTextInstance(text,rootContainer,ctx,internalHandle){if(ctx.type==="native"){refId++;ctx.commands.push([1,refId,text]);if(rootContainer.fiberCache)rootContainer.fiberCache.setObject(refId,internalHandle);return _objectSpread2(_objectSpread2({},ctx),{},{refId});}if(ctx.type==="richtext"||ctx.type==="svg")return _objectSpread2(_objectSpread2({},ctx),{},{node:{text}});},appendInitialChild(parent,child){if(!child)return;if(parent.type==="native"&&parent.subContext)parent=parent.subContext;if(parent.type==="native"&&child.type==="native")parent.commands.push([2,parent.refId,child.refId]);else if(parent.type==="richtext"&&child.type==="richtext"||parent.type==="svg"&&child.type==="svg"){if("children"in parent.node)parent.node.children.push(child.node);child.root=parent.root;child.parent=parent;updateSubContext(child);}},finalizeInitialChildren:()=>false,commitMount:instance=>{},shouldSetTextContent(type){return textTypes[type];},commitUpdate(instance,type,prevProps,nextProps){let updatePayload=null;if(typeof prevProps==="string"){updatePayload=type;type=prevProps;}else{updatePayload=diffProperties(prevProps,nextProps);if(!updatePayload)return;}const props=getAllowedProps(updatePayload,type);if(instance.type==="native")instance.commands.push([5,instance.refId,type,convertPropsToSerializable(props)]);else if(instance.type==="richtext"||instance.type==="svg"){if("attributes"in instance.node)instance.node.attributes=_objectSpread2(_objectSpread2({},instance.node.attributes),props);updateSubContext(instance);}},commitTextUpdate(instance,oldText,newText){if(instance.type==="native")instance.commands.push([6,instance.refId,newText]);else if(instance.type==="richtext"||instance.type==="svg"){instance.node.text=newText;updateSubContext(instance);}},appendChild(parent,child){if(!child)return;if(parent.type==="native"&&parent.subContext)parent=parent.subContext;if(parent.type==="native"&&child.type==="native")child.commands.push([2,parent.refId,child.refId]);else if(parent.type==="richtext"&&child.type==="richtext"||parent.type==="svg"&&child.type==="svg"){if("children"in parent.node)parent.node.children.push(child.node);child.root=parent.root;child.parent=parent;updateSubContext(child);}},appendChildToContainer(parent,child){if(child.type==="native")child.commands.push([2,parent.refId,child.refId]);},insertBefore(parent,child,beforeChild){if(!child)return;if(parent.type==="native"&&parent.subContext)parent=parent.subContext;if(parent.type==="native"&&child.type==="native"&&beforeChild.type==="native")child.commands.push([4,parent.refId,child.refId,beforeChild.refId]);else if(parent.type==="richtext"&&child.type==="richtext"&&beforeChild.type==="richtext"||parent.type==="svg"&&child.type==="svg"&&beforeChild.type==="svg"){if("children"in parent.node){const index=parent.node.children.indexOf(beforeChild.node);if(index>=0)parent.node.children.splice(index,0,child.node);else parent.node.children.push(child.node);}child.root=parent.root;child.parent=parent;updateSubContext(child);}},insertInContainerBefore(parent,child,beforeChild){if(child.type==="native"&&beforeChild.type==="native")child.commands.push([4,parent.refId,child.refId,beforeChild.refId]);},removeChild(parent,child){if(!child)return;if(parent.type==="native"&&parent.subContext)parent=parent.subContext;if(parent.type==="native"&&child.type==="native")child.commands.push([3,parent.refId,child.refId]);else if(parent.type==="richtext"&&child.type==="richtext"||parent.type==="svg"&&child.type==="svg"){if("children"in parent.node){const index=parent.node.children.indexOf(child.node);if(index>=0)parent.node.children.splice(index,1);}updateSubContext(parent);}},removeChildFromContainer(parent,child){if(child.type==="native")child.commands.push([3,parent.refId,child.refId]);},resetTextContent:()=>{},preparePortalMount:()=>{},detachDeletedInstance:()=>{},hideInstance:instance=>{if(instance.type==="native")instance.commands.push([7,instance.refId,true]);else if(instance.type==="richtext"||instance.type==="svg"){instance.node.hidden=true;updateSubContext(instance);}},hideTextInstance:instance=>{if(instance.type==="native")instance.commands.push([7,instance.refId,true]);else if(instance.type==="richtext"||instance.type==="svg"){instance.node.hidden=true;updateSubContext(instance);}},unhideInstance:instance=>{if(instance.type==="native")instance.commands.push([7,instance.refId,false]);else if(instance.type==="richtext"||instance.type==="svg"){instance.node.hidden=false;updateSubContext(instance);}},unhideTextInstance:instance=>{if(instance.type==="native")instance.commands.push([7,instance.refId,false]);else if(instance.type==="richtext"||instance.type==="svg"){instance.node.hidden=false;updateSubContext(instance);}}},{supportsTestSelectors:false,shouldDeprioritizeSubtree:()=>false,prepareUpdate(instance,type,oldProps,newProps){return diffProperties(oldProps,newProps);}});let asyncReconciler=null;const getAsyncReconciler=()=>{var _asyncReconciler;return(_asyncReconciler=asyncReconciler)!==null&&_asyncReconciler!==void 0?_asyncReconciler:asyncReconciler=react_reconciler_default()(hostConfig$1);};//#endregion -//#region src/renderer/sync/reconciler.ts -const hostContext={};const childContext={};const hostConfig=_objectSpread2(_objectSpread2({},commonReconciler),{},{getRootHostContext:()=>hostContext,getChildHostContext:()=>childContext,getPublicInstance:instance=>instance,supportsMutation:true,supportsHydration:false,supportsPersistence:false,supportsMicrotasks:true,isPrimaryRenderer:true,warnsIfNotActing:true,prepareForCommit:()=>null,resetAfterCommit:()=>{},clearContainer:container=>UnityBridge.clearContainer(container),createInstance(type,props,rootContainerInstance){const aProps=getAllowedProps(props,type);const children=aProps.children||null;delete aProps.children;return UnityBridge.createElement(props.tag||type,children,rootContainerInstance,aProps,stringizePoolKey(props.pool));},createTextInstance(text,rootContainerInstance){return UnityBridge.createText(text,rootContainerInstance);},appendInitialChild(parent,child){UnityBridge.appendChild(parent,child);},finalizeInitialChildren:()=>false,commitMount:()=>{},shouldSetTextContent(type){return textTypes[type];},commitUpdate(instance,type,prevProps,nextProps){let updatePayload=null;if(typeof prevProps==="string"){updatePayload=type;type=prevProps;}else{updatePayload=diffProperties(prevProps,nextProps);if(!updatePayload)return;}UnityBridge.applyUpdate(instance,getAllowedProps(updatePayload,type),type);},commitTextUpdate(textInstance,oldText,newText){UnityBridge.setText(textInstance,newText);},appendChild(parent,child){return UnityBridge.appendChild(parent,child);},appendChildToContainer(parent,child){return UnityBridge.appendChildToContainer(parent,child);},insertBefore(parent,child,beforeChild){return UnityBridge.insertBefore(parent,child,beforeChild);},insertInContainerBefore(parent,child,beforeChild){return UnityBridge.insertBefore(parent,child,beforeChild);},removeChild(parent,child){return UnityBridge.removeChild(parent,child);},removeChildFromContainer(parent,child){return UnityBridge.removeChild(parent,child);},resetTextContent:()=>{},preparePortalMount:()=>{},detachDeletedInstance:()=>{},hideInstance:instance=>{instance.ClassList.Add(hideClass);},hideTextInstance:instance=>{instance.ClassList.Add(hideClass);},unhideInstance:instance=>{instance.ClassList.Remove(hideClass);},unhideTextInstance:instance=>{instance.ClassList.Remove(hideClass);}},{supportsTestSelectors:false,shouldDeprioritizeSubtree:()=>false,prepareUpdate(instance,type,oldProps,newProps){return diffProperties(oldProps,newProps);}});let syncReconciler=null;const getSyncReconciler=()=>{var _syncReconciler;return(_syncReconciler=syncReconciler)!==null&&_syncReconciler!==void 0?_syncReconciler:syncReconciler=react_reconciler_default()(hostConfig);};//#endregion -//#region src/renderer/renderer.ts -const containerMap=/* @__PURE__ */new Map();let renderCount=0;function render(element,options={}){renderCount++;const hostContainer=(options===null||options===void 0?void 0:options.hostContainer)||HostContainer;const cacheKey=hostContainer.InstanceId>=0?hostContainer.InstanceId:hostContainer;const isAsync=!(options===null||options===void 0?void 0:options.disableBatchRendering);let{hostRoot,asyncJobCallback}=containerMap.get(cacheKey)||{};let findFiberByHostInstance=()=>null;if(!hostRoot){const mode=(options===null||options===void 0?void 0:options.mode)==="legacy"?constants.LegacyRoot:constants.ConcurrentRoot;if(isAsync){const asyncReconciler=getAsyncReconciler();const fiberCache= false?0:null;if(false)// removed by dead control flow -{}let scheduled=false;const commands=[];commands.push=(...args)=>{if(!scheduled){scheduled=true;Promise.resolve().then(()=>{asyncJobCallback();scheduled=false;});}return Array.prototype.push.apply(commands,args);};const hostContainerInstance={type:"native",commands,component:hostContainer,context:hostContainer.Context,refId:hostContainer.RefId,fiberCache};asyncJobCallback=()=>{if(!commands.length)return;const serialized=JSON.stringify(commands);commands.length=0;hostContainerInstance.context.FlushCommands(serialized);};hostRoot=asyncReconciler.createContainer(hostContainerInstance,mode,null,false,void 0,"",error=>console.error(error),()=>{},()=>{},()=>{});}else hostRoot=getSyncReconciler().createContainer(hostContainer,mode,null,false,void 0,"",error=>console.error(error),()=>{},()=>{},()=>{});containerMap.set(cacheKey,{hostRoot,asyncJobCallback});}if(!(options===null||options===void 0?void 0:options.disableHelpers))element=/*#__PURE__*/(0,react.createElement)(DefaultView,{withHelpers:!(options===null||options===void 0?void 0:options.disableHelpers),renderCount},element);const rc=isAsync?getAsyncReconciler():getSyncReconciler();if(!injectedReconcilers.has(rc)){injectedReconcilers.add(rc);rc.injectIntoDevTools({bundleType: false?0:0,version,rendererPackageName:"@reactunity/renderer",rendererConfig:{isAsync},findFiberByHostInstance});}if("updateContainerSync"in rc&&typeof rc.updateContainerSync==="function"&&"flushSyncWork"in rc&&typeof rc.flushSyncWork==="function"){rc.updateContainerSync(element,hostRoot,null,()=>{});rc.flushSyncWork();}else rc.updateContainer(element,hostRoot,null,()=>{});return rc;}const injectedReconcilers=/* @__PURE__ */new WeakSet();/** -* @deprecated Instead, import `render` directly from `@reactunity/renderer` -*/const Renderer=(/* unused pure expression or super */ null && ({render(element,options={}){return render(element,options);}}));const batchedUpdates=(...args)=>getAsyncReconciler().batchedUpdates(...args);const flushSync=(...args)=>getAsyncReconciler().flushSync(...args);//#endregion -//#region index.ts -const ReactUnityRenderer=(/* unused pure expression or super */ null && ({batchedUpdates,flushSync,render,unstable_batchedUpdates:batchedUpdates}));//#endregion -//# sourceMappingURL=index.js.map -;// ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js -var injectStylesIntoStyleTag_namespaceObject = /*#__PURE__*/__webpack_require__.cjs(function(module, exports) { +// MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js +var injectStylesIntoStyleTag_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { var stylesInDOM = []; @@ -353,9 +395,74 @@ module.exports = function (list, options) { }; }); -var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag_namespaceObject); -;// ./node_modules/style-loader/dist/runtime/styleDomAPI.js -var styleDomAPI_namespaceObject = /*#__PURE__*/__webpack_require__.cjs(function(module, exports) { +// MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js +var insertBySelector_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { + + +var memo = {}; + +/* istanbul ignore next */ +function getTarget(target) { + if (typeof memo[target] === "undefined") { + var styleTarget = document.querySelector(target); + + // Special case to return head of iframe instead of iframe itself + if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { + try { + // This will throw an exception if access to iframe is blocked + // due to cross-origin restrictions + styleTarget = styleTarget.contentDocument.head; + } catch (e) { + // istanbul ignore next + styleTarget = null; + } + } + memo[target] = styleTarget; + } + return memo[target]; +} + +/* istanbul ignore next */ +function insertBySelector(insert, style) { + var target = getTarget(insert); + if (!target) { + throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); + } + target.appendChild(style); +} +module.exports = insertBySelector; +}); + +// MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js +var insertStyleElement_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { + + +/* istanbul ignore next */ +function insertStyleElement(options) { + var element = document.createElement("style"); + options.setAttributes(element, options.attributes); + options.insert(element, options.options); + return element; +} +module.exports = insertStyleElement; +}); + +// MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js +var setAttributesWithoutAttributes_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { + + +/* istanbul ignore next */ +function setAttributesWithoutAttributes(styleElement) { + var nonce = true ? __webpack_require__.nc : 0; + if (nonce) { + styleElement.setAttribute("nonce", nonce); + } +} +module.exports = setAttributesWithoutAttributes; +}); + +// MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js +var styleDomAPI_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { /* istanbul ignore next */ @@ -419,95 +526,133 @@ function domAPI(options) { module.exports = domAPI; }); -var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI_namespaceObject); -;// ./node_modules/style-loader/dist/runtime/insertBySelector.js -var insertBySelector_namespaceObject = /*#__PURE__*/__webpack_require__.cjs(function(module, exports) { - +// MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js +var styleTagTransform_namespaceFn = /*#__PURE__*/__webpack_require__.cw(function(module, exports) { -var memo = {}; /* istanbul ignore next */ -function getTarget(target) { - if (typeof memo[target] === "undefined") { - var styleTarget = document.querySelector(target); - - // Special case to return head of iframe instead of iframe itself - if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { - try { - // This will throw an exception if access to iframe is blocked - // due to cross-origin restrictions - styleTarget = styleTarget.contentDocument.head; - } catch (e) { - // istanbul ignore next - styleTarget = null; - } +function styleTagTransform(css, styleElement) { + if (styleElement.styleSheet) { + styleElement.styleSheet.cssText = css; + } else { + while (styleElement.firstChild) { + styleElement.removeChild(styleElement.firstChild); } - memo[target] = styleTarget; - } - return memo[target]; -} - -/* istanbul ignore next */ -function insertBySelector(insert, style) { - var target = getTarget(insert); - if (!target) { - throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); + styleElement.appendChild(document.createTextNode(css)); } - target.appendChild(style); } -module.exports = insertBySelector; +module.exports = styleTagTransform; }); -var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector_namespaceObject); -;// ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js -var setAttributesWithoutAttributes_namespaceObject = /*#__PURE__*/__webpack_require__.cjs(function(module, exports) { +;// ./node_modules/@reactunity/renderer/dist/objectSpread2-CDDvZyE7.js +//#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js +function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}//#endregion +//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPrimitive.js +function toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}//#endregion +//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPropertyKey.js +function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}//#endregion +//#region \0@oxc-project+runtime@0.140.0/helpers/esm/defineProperty.js +function _defineProperty(e,r,t){return(r=toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}//#endregion +//#region \0@oxc-project+runtime@0.140.0/helpers/esm/objectSpread2.js +function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2(e){for(var r=1;r{let snapshot=_objectSpread2({},dictionary);return{subscribe:onStoreChange=>{snapshot=_objectSpread2({},dictionary);const remove=dictionary===null||dictionary===void 0?void 0:dictionary.AddListener(()=>{const prev=snapshot;snapshot=_objectSpread2({},dictionary);if(!fields)onStoreChange();else{const it=fields.values();for(let field=it.next().value;field;field=it.next().value)if(isEqual?!isEqual(prev[field],snapshot[field]):prev[field]!==snapshot[field]){onStoreChange();break;}}});if(!remove)if(displayName)console.warn(`${displayName} dictionary does not provide a change listener`);else console.warn("The dictionary does not provide a change listener");return()=>remove===null||remove===void 0?void 0:remove();},getSnapshot:()=>snapshot};};const defaultSubscriber=createSubscriber();const Provider=function GlobalsProvider({children}){const value=(0,use_sync_external_store_shim_production_namespaceFn().useSyncExternalStore)(defaultSubscriber.subscribe,defaultSubscriber.getSnapshot,defaultSubscriber.getSnapshot);return/*#__PURE__*/(0,react_production_namespaceFn().createElement)(ctx.Provider,{value},children);};function useDictionaryContext(){const context=(0,react_production_namespaceFn().useContext)(ctx);if(context===void 0){if(displayName)throw new Error(`${displayName}.useContext must be used within a ${displayName}.Provider`);throw new Error("useContext must be used within a provider");}return context;}function useValue(subscribeToAllFields=false,fieldEqual){const fields=(0,react_production_namespaceFn().useMemo)(()=>/* @__PURE__ */new Set(),[]);const fieldsRef=(0,react_production_namespaceFn().useRef)(fields);const[allFieldsSubscribed,setAllFieldsSubscribed]=(0,react_production_namespaceFn().useState)(false);subscribeToAllFields||(subscribeToAllFields=allFieldsSubscribed);const subscriber=(0,react_production_namespaceFn().useMemo)(()=>subscribeToAllFields?defaultSubscriber:createSubscriber(fieldsRef.current,fieldEqual),[subscribeToAllFields,fieldEqual]);const value=(0,use_sync_external_store_shim_production_namespaceFn().useSyncExternalStore)(subscriber.subscribe,subscriber.getSnapshot,subscriber.getSnapshot);return new Proxy(value,{get(target,p,receiver){fields.add(p);return value[p];},ownKeys(target){if(!allFieldsSubscribed)setAllFieldsSubscribed(true);return Reflect.ownKeys(target);},getOwnPropertyDescriptor(target,p){fields.add(p);return _objectSpread2(_objectSpread2({},Reflect.getOwnPropertyDescriptor(target,p)),{},{value:value[p]});}});}function useSelector(selector,isEqual){return (0,use_sync_external_store_with_selector_production_namespaceFn().useSyncExternalStoreWithSelector)(defaultSubscriber.subscribe,defaultSubscriber.getSnapshot,defaultSubscriber.getSnapshot,selector,isEqual);}return{context:ctx,Provider,useValue,useContext:useDictionaryContext,useSelector};}//#endregion +//#region src/helpers/hooks/use-globals.ts +const globalsWatcher=createDictionaryWatcher(Globals,"globalsContext");const useGlobals=globalsWatcher.useValue;const useGlobalsContext=globalsWatcher.useContext;const useGlobalsSelector=globalsWatcher.useSelector;const GlobalsProvider=globalsWatcher.Provider;//#endregion +//#region src/helpers/hooks/use-reactive-value.ts +function createSubscriber(obj,isEqual){const isReactive=obj&&typeof obj==="object"&&"Value"in obj;let snapshot=isReactive?obj.Value:void 0;return{subscribe:onStoreChange=>{snapshot=isReactive?obj.Value:void 0;const remove=isReactive&&typeof obj.AddListener==="function"&&(obj===null||obj===void 0?void 0:obj.AddListener(()=>{const prev=snapshot;snapshot=isReactive?obj.Value:void 0;if(typeof isEqual!=="function"||!isEqual(prev,snapshot))onStoreChange();}));if(isReactive&&typeof remove!=="function")console.warn("The reactive value does not provide a change listener");return()=>remove===null||remove===void 0?void 0:remove();},getSnapshot:()=>snapshot};}function useReactiveValue(obj,isEqual){const sb=dist_useMemo(()=>createSubscriber(obj,isEqual),[obj,isEqual]);return dist_useSyncExternalStore(sb.subscribe,sb.getSnapshot,sb.getSnapshot);}//#endregion +//#region src/helpers/icons.ts +const componentCache={};const icon=new Proxy({},{get:(target,key)=>{if(typeof key==="symbol")return target[key];const icon=key.replace(/^_/,"");let cmp=componentCache[icon];if(cmp)return cmp;cmp=function NamedIcon(props,ref){return/*#__PURE__*/(react_production_namespaceFn().createElement)("icon",_objectSpread2(_objectSpread2({name:``},props),{},{ref}),icon);};cmp=/*#__PURE__*/(react_production_namespaceFn().forwardRef)(cmp);componentCache[icon]=cmp;return cmp;}});//#endregion +//#region src/version.ts +const dist_version="0.21.0";//#endregion +//#region src/views/error-boundary.tsx +var ErrorBoundary=class extends (react_production_namespaceFn().Component){constructor(props){super(props);this.state={hasError:false,error:null};}static getDerivedStateFromError(error){return{hasError:true,error};}componentDidCatch(error,errorInfo){}render(){if(this.state.hasError){var _this$state$error,_this$state$error2;return/* @__PURE__ */(0,react_jsx_runtime_production_namespaceFn().jsxs)("view",{id:"__react-unity-error-boundary",style:{color:"crimson",padding:20,fontSize:16},children:[/* @__PURE__ */(0,react_jsx_runtime_production_namespaceFn().jsx)("view",{style:{marginBottom:"12px"},children:((_this$state$error=this.state.error)===null||_this$state$error===void 0?void 0:_this$state$error.message)||""}),/* @__PURE__ */(0,react_jsx_runtime_production_namespaceFn().jsx)("view",{children:((_this$state$error2=this.state.error)===null||_this$state$error2===void 0?void 0:_this$state$error2.stack)||""})]});}return this.props.children;}};//#endregion +//#region src/views/default-view.tsx +function DefaultView({children,withHelpers,renderCount}){return/* @__PURE__ */(0,react_jsx_runtime_production_namespaceFn().jsx)((react_jsx_runtime_production_namespaceFn().Fragment),{children:!withHelpers?children:/* @__PURE__ */(0,react_jsx_runtime_production_namespaceFn().jsx)(ErrorBoundary,{children},renderCount)});}//#endregion +//#region src/renderer/async/objects.ts +var ObjectsRepo=class{constructor(){_defineProperty(this,"indices",[{}]);_defineProperty(this,"objects",/* @__PURE__ */new WeakMap());_defineProperty(this,"setObject",(index,item)=>{let it=this.indices[index];if(!it)it=this.indices[index]={};this.objects.set(it,item);});_defineProperty(this,"addObject",item=>{if(!item)return-1;const it={};const ind=this.indices.length;this.indices.push(it);this.objects.set(it,item);return ind;});_defineProperty(this,"getObject",index=>{if(index<0)return void 0;const it=this.indices[index];return this.objects.get(it);});}};//#endregion +//#region src/renderer/diffing.ts +const styleStringSymbol="__style_as_string__";const propDepths={style:1,data:1,custom:1};function diffProperties(lastProps,nextProps,deepDiffing=0){if(lastProps===nextProps)return null;let updatePayload=null;let propKey;for(propKey in lastProps){if(Object.hasOwn(nextProps,propKey)||!Object.hasOwn(lastProps,propKey)||lastProps[propKey]==null)continue;let prop=null;if(propKey==="style"&&typeof lastProps.style==="string")(updatePayload=updatePayload||{})[styleStringSymbol]=null;else{const depth=deepDiffing>0?deepDiffing:propDepths[propKey]||0;if(depth>0){prop=diffProperties(lastProps[propKey],{},depth-1);if(!prop)continue;}(updatePayload=updatePayload||{})[propKey]=prop;}}for(propKey in nextProps){const nextProp=nextProps[propKey];const lastProp=lastProps!=null?lastProps[propKey]:void 0;if(!Object.hasOwn(nextProps,propKey)||nextProp===lastProp||nextProp==null&&lastProp==null)continue;let prop=nextProp;if(propKey==="style"){const prevWasString=typeof lastProp==="string";const curIsString=typeof prop==="string";if(prevWasString!==curIsString){(updatePayload=updatePayload||{})[styleStringSymbol]=typeof prop==="string"?prop:null;if(curIsString){prop=diffProperties(lastProp,{},0);if(!prop)continue;}}else{if(curIsString)continue;prop=diffProperties(lastProp,nextProp,0);if(!prop)continue;}}else{const depth=deepDiffing>0?deepDiffing:propDepths[propKey]||0;if(depth>0){prop=diffProperties(lastProp,nextProp,depth-1);if(!prop)continue;}}(updatePayload=updatePayload||{})[propKey]=prop;}return updatePayload;}//#endregion +//#region \0@oxc-project+runtime@0.140.0/helpers/esm/objectWithoutPropertiesLoose.js +function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n];}return t;}//#endregion +//#region \0@oxc-project+runtime@0.140.0/helpers/esm/objectWithoutProperties.js +function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;rsetTimeout(callback,delay),scheduleMicrotask:typeof queueMicrotask==="function"?queueMicrotask:callback=>Promise.resolve(null).then(callback).catch(error=>setTimeout(()=>{throw error;},0)),cancelTimeout:handle=>clearTimeout(handle),beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},prepareScopeUpdate:()=>{},getInstanceFromScope:()=>void 0,getInstanceFromNode:()=>void 0,setCurrentUpdatePriority:newPriority=>currentUpdatePriority=newPriority,getCurrentUpdatePriority:()=>currentUpdatePriority,resolveUpdatePriority:()=>currentUpdatePriority||UnityBridge.CurrentEventPriority||eventPriorities.default,maySuspendCommit:()=>false,requestPostPaintCallback:()=>{},preloadInstance:()=>true,resetFormInstance:()=>{},resolveEventTimeStamp:()=>-1.1,resolveEventType:()=>null,shouldAttemptEagerTransition:()=>false,startSuspendingCommit:()=>{},suspendInstance:()=>{},trackSchedulerEvent:()=>{},waitForCommitToBeReady:()=>null,NotPendingTransition:null,HostTransitionContext: dist_HostTransitionContext},{now:typeof performance!=="undefined"&&typeof performance.now==="function"?()=>performance.now():typeof Date!=="undefined"&&typeof Date.now==="function"?()=>Date.now():()=>0,getCurrentEventPriority:()=>UnityBridge.CurrentEventPriority||eventPriorities.default});const isDevelopment=(/* unused pure expression or super */ null && ("production"==="development"));//#endregion +//#region src/renderer/subcontexts/richtext.ts +function parametrizeValue(value){if(typeof value==="number")return String(value);value=String(value);if(value.includes(" ")||value.includes("-"))return`"${value}"`;return value;}function stringifyRichText(node){var _node$children;if(node.hidden)return"";if("text"in node)return node.text;const acc=[];const tag=node.tag;if(tag){var _node$attributes;acc.push("<");acc.push(tag);if(((_node$attributes=node.attributes)===null||_node$attributes===void 0?void 0:_node$attributes.value)!=null){var _node$attributes2;const value=(_node$attributes2=node.attributes)===null||_node$attributes2===void 0?void 0:_node$attributes2.value;acc.push("=");acc.push(parametrizeValue(value));}for(const key in node.attributes){if(key==="value")continue;if(Object.hasOwn(node.attributes,key)){const value=node.attributes[key];if(value!=null){acc.push(" ");acc.push(key);acc.push("=");acc.push(parametrizeValue(value));}}}acc.push(">");}if(((_node$children=node.children)===null||_node$children===void 0?void 0:_node$children.length)>0){for(const child of node.children)acc.push(stringifyRichText(child));if(tag){acc.push("");}}return acc.join("");}//#endregion +//#region src/renderer/subcontexts/svg.ts +function kebabize(str){return str.split("").map((letter,idx)=>{return letter.toUpperCase()===letter?`${idx!==0?"-":""}${letter.toLowerCase()}`:letter;}).join("");}function stringifyStyle(style){if(typeof style==="string")return style;const acc=[];for(const key in style)if(Object.hasOwn(style,key)){const element=style[key];if(element!=null){acc.push(kebabize(key));acc.push(":");acc.push(element);acc.push(";");}}return acc.join("");}function stringifySVG(node){var _node$children;if(node.hidden)return"";if("text"in node)return node.text;const acc=[];const tag=node.tag;if(tag){acc.push("<");acc.push(tag);for(const key in node.attributes)if(Object.hasOwn(node.attributes,key)){let element=node.attributes[key];if(key==="style")element=stringifyStyle(element);if(element!=null){acc.push(" ");acc.push(kebabize(key));acc.push("=\"");acc.push(element);acc.push("\"");}}}if(((_node$children=node.children)===null||_node$children===void 0?void 0:_node$children.length)>0){if(tag)acc.push(">");for(const child of node.children)acc.push(stringifySVG(child));if(tag){acc.push("");}}else if(tag)acc.push(" />");return acc.join("");}//#endregion +//#region src/renderer/subcontexts/index.ts +const subContextRenderers={richtext:stringifyRichText,svg:stringifySVG};//#endregion +//#region src/renderer/async/callbacks.ts +var CallbacksRepo=class extends ObjectsRepo{constructor(..._args){super(..._args);_defineProperty(this,"call",(ind,args)=>{const cb=this.getObject(ind);const argsAsList=args;const argsAsArray=args;if(typeof argsAsArray.Length==="number"){args=[];const length=argsAsArray.Length;for(let index=0;index{const rend=subContextRenderers[instance.type];let root=instance===null||instance===void 0?void 0:instance.root;let cur=instance;while(cur&&!root){root=cur.root;cur=cur.parent;}if(!root)return;const content=rend(root.subContext.node);if(instance.type==="richtext")instance.hostContext.commands.push([6,root.refId,content]);else if(instance.type==="svg")instance.hostContext.commands.push([5,root.refId,"svg",convertPropsToSerializable({innerContent:content})]);};const hostConfig$1=_objectSpread2(_objectSpread2({},commonReconciler),{},{getRootHostContext:rootContainer=>{const context=rootContainer.context;if(rootContainer.refId<0){refId++;rootContainer.context.SetRef(refId,rootContainer.component);rootContainer.refId=refId;}const existing=ctxMap.get(context);if(existing)return existing;const commands=rootContainer.commands;const flushCommands=()=>{const serialized=JSON.stringify(commands);commands.length=0;return serialized;};const fireEventByRef=(ind,args)=>{return callbacksRepo.call(ind,args);};const getObjectRef=ind=>{return objectsRepo.getObject(ind);};const getEventAsObjectRef=ind=>{return callbacksRepo.getObject(ind);};context.BindCommands(flushCommands,fireEventByRef,getObjectRef,getEventAsObjectRef);const ctx={context,commands,refId:rootContainer.refId,type:"native"};ctxMap.set(context,ctx);return ctx;},getChildHostContext:(parentCtx,type)=>{if(type==="richtext"&&parentCtx.type==="native")return{type:"richtext",hostContext:parentCtx,node:null,parent:null,root:null};if(type==="svg"&&parentCtx.type==="native")return{type:"svg",hostContext:parentCtx,node:null,parent:null,root:null};return parentCtx;},getPublicInstance:instance=>{if(instance.type==="native")return instance.context.GetRef(instance.refId,instance.commands.length>0);return null;},supportsMutation:true,supportsHydration:false,supportsPersistence:false,supportsMicrotasks:true,isPrimaryRenderer:true,warnsIfNotActing:true,prepareForCommit:()=>null,resetAfterCommit:()=>{},clearContainer(container){UnityBridge.clearContainer(container);},createInstance(type,props,rootContainer,ctx,internalHandle){const aProps=getAllowedProps(props,type);if(ctx.type==="native"){refId++;ctx.commands.push([0,refId,type,convertPropsToSerializable(aProps),stringizePoolKey(props.pool)]);if(rootContainer.fiberCache)rootContainer.fiberCache.setObject(refId,internalHandle);const res=_objectSpread2(_objectSpread2({},ctx),{},{refId});if(type==="richtext")res.subContext={type:"richtext",node:{tag:"",children:[],attributes:aProps},root:res,hostContext:res,parent:null};if(type==="svg")res.subContext={type:"svg",node:{tag:"",children:[],attributes:aProps},root:res,hostContext:res,parent:null};return res;}if(ctx.type==="richtext"||ctx.type==="svg")return _objectSpread2(_objectSpread2({},ctx),{},{node:{tag:type,children:[],attributes:aProps}});},createTextInstance(text,rootContainer,ctx,internalHandle){if(ctx.type==="native"){refId++;ctx.commands.push([1,refId,text]);if(rootContainer.fiberCache)rootContainer.fiberCache.setObject(refId,internalHandle);return _objectSpread2(_objectSpread2({},ctx),{},{refId});}if(ctx.type==="richtext"||ctx.type==="svg")return _objectSpread2(_objectSpread2({},ctx),{},{node:{text}});},appendInitialChild(parent,child){if(!child)return;if(parent.type==="native"&&parent.subContext)parent=parent.subContext;if(parent.type==="native"&&child.type==="native")parent.commands.push([2,parent.refId,child.refId]);else if(parent.type==="richtext"&&child.type==="richtext"||parent.type==="svg"&&child.type==="svg"){if("children"in parent.node)parent.node.children.push(child.node);child.root=parent.root;child.parent=parent;updateSubContext(child);}},finalizeInitialChildren:()=>false,commitMount:instance=>{},shouldSetTextContent(type){return textTypes[type];},commitUpdate(instance,type,prevProps,nextProps){let updatePayload=null;if(typeof prevProps==="string"){updatePayload=type;type=prevProps;}else{updatePayload=diffProperties(prevProps,nextProps);if(!updatePayload)return;}const props=getAllowedProps(updatePayload,type);if(instance.type==="native")instance.commands.push([5,instance.refId,type,convertPropsToSerializable(props)]);else if(instance.type==="richtext"||instance.type==="svg"){if("attributes"in instance.node)instance.node.attributes=_objectSpread2(_objectSpread2({},instance.node.attributes),props);updateSubContext(instance);}},commitTextUpdate(instance,oldText,newText){if(instance.type==="native")instance.commands.push([6,instance.refId,newText]);else if(instance.type==="richtext"||instance.type==="svg"){instance.node.text=newText;updateSubContext(instance);}},appendChild(parent,child){if(!child)return;if(parent.type==="native"&&parent.subContext)parent=parent.subContext;if(parent.type==="native"&&child.type==="native")child.commands.push([2,parent.refId,child.refId]);else if(parent.type==="richtext"&&child.type==="richtext"||parent.type==="svg"&&child.type==="svg"){if("children"in parent.node)parent.node.children.push(child.node);child.root=parent.root;child.parent=parent;updateSubContext(child);}},appendChildToContainer(parent,child){if(child.type==="native")child.commands.push([2,parent.refId,child.refId]);},insertBefore(parent,child,beforeChild){if(!child)return;if(parent.type==="native"&&parent.subContext)parent=parent.subContext;if(parent.type==="native"&&child.type==="native"&&beforeChild.type==="native")child.commands.push([4,parent.refId,child.refId,beforeChild.refId]);else if(parent.type==="richtext"&&child.type==="richtext"&&beforeChild.type==="richtext"||parent.type==="svg"&&child.type==="svg"&&beforeChild.type==="svg"){if("children"in parent.node){const index=parent.node.children.indexOf(beforeChild.node);if(index>=0)parent.node.children.splice(index,0,child.node);else parent.node.children.push(child.node);}child.root=parent.root;child.parent=parent;updateSubContext(child);}},insertInContainerBefore(parent,child,beforeChild){if(child.type==="native"&&beforeChild.type==="native")child.commands.push([4,parent.refId,child.refId,beforeChild.refId]);},removeChild(parent,child){if(!child)return;if(parent.type==="native"&&parent.subContext)parent=parent.subContext;if(parent.type==="native"&&child.type==="native")child.commands.push([3,parent.refId,child.refId]);else if(parent.type==="richtext"&&child.type==="richtext"||parent.type==="svg"&&child.type==="svg"){if("children"in parent.node){const index=parent.node.children.indexOf(child.node);if(index>=0)parent.node.children.splice(index,1);}updateSubContext(parent);}},removeChildFromContainer(parent,child){if(child.type==="native")child.commands.push([3,parent.refId,child.refId]);},resetTextContent:()=>{},preparePortalMount:()=>{},detachDeletedInstance:()=>{},hideInstance:instance=>{if(instance.type==="native")instance.commands.push([7,instance.refId,true]);else if(instance.type==="richtext"||instance.type==="svg"){instance.node.hidden=true;updateSubContext(instance);}},hideTextInstance:instance=>{if(instance.type==="native")instance.commands.push([7,instance.refId,true]);else if(instance.type==="richtext"||instance.type==="svg"){instance.node.hidden=true;updateSubContext(instance);}},unhideInstance:instance=>{if(instance.type==="native")instance.commands.push([7,instance.refId,false]);else if(instance.type==="richtext"||instance.type==="svg"){instance.node.hidden=false;updateSubContext(instance);}},unhideTextInstance:instance=>{if(instance.type==="native")instance.commands.push([7,instance.refId,false]);else if(instance.type==="richtext"||instance.type==="svg"){instance.node.hidden=false;updateSubContext(instance);}}},{supportsTestSelectors:false,shouldDeprioritizeSubtree:()=>false,prepareUpdate(instance,type,oldProps,newProps){return diffProperties(oldProps,newProps);}});let asyncReconciler=null;const getAsyncReconciler=()=>{var _asyncReconciler;return(_asyncReconciler=asyncReconciler)!==null&&_asyncReconciler!==void 0?_asyncReconciler:asyncReconciler=react_reconciler_default()()(hostConfig$1);};//#endregion +//#region src/renderer/sync/reconciler.ts +const dist_hostContext={};const childContext={};const hostConfig=_objectSpread2(_objectSpread2({},commonReconciler),{},{getRootHostContext:()=>dist_hostContext,getChildHostContext:()=>childContext,getPublicInstance:instance=>instance,supportsMutation:true,supportsHydration:false,supportsPersistence:false,supportsMicrotasks:true,isPrimaryRenderer:true,warnsIfNotActing:true,prepareForCommit:()=>null,resetAfterCommit:()=>{},clearContainer:container=>UnityBridge.clearContainer(container),createInstance(type,props,rootContainerInstance){const aProps=getAllowedProps(props,type);const children=aProps.children||null;delete aProps.children;return UnityBridge.createElement(props.tag||type,children,rootContainerInstance,aProps,stringizePoolKey(props.pool));},createTextInstance(text,rootContainerInstance){return UnityBridge.createText(text,rootContainerInstance);},appendInitialChild(parent,child){UnityBridge.appendChild(parent,child);},finalizeInitialChildren:()=>false,commitMount:()=>{},shouldSetTextContent(type){return textTypes[type];},commitUpdate(instance,type,prevProps,nextProps){let updatePayload=null;if(typeof prevProps==="string"){updatePayload=type;type=prevProps;}else{updatePayload=diffProperties(prevProps,nextProps);if(!updatePayload)return;}UnityBridge.applyUpdate(instance,getAllowedProps(updatePayload,type),type);},commitTextUpdate(textInstance,oldText,newText){UnityBridge.setText(textInstance,newText);},appendChild(parent,child){return UnityBridge.appendChild(parent,child);},appendChildToContainer(parent,child){return UnityBridge.appendChildToContainer(parent,child);},insertBefore(parent,child,beforeChild){return UnityBridge.insertBefore(parent,child,beforeChild);},insertInContainerBefore(parent,child,beforeChild){return UnityBridge.insertBefore(parent,child,beforeChild);},removeChild(parent,child){return UnityBridge.removeChild(parent,child);},removeChildFromContainer(parent,child){return UnityBridge.removeChild(parent,child);},resetTextContent:()=>{},preparePortalMount:()=>{},detachDeletedInstance:()=>{},hideInstance:instance=>{instance.ClassList.Add(hideClass);},hideTextInstance:instance=>{instance.ClassList.Add(hideClass);},unhideInstance:instance=>{instance.ClassList.Remove(hideClass);},unhideTextInstance:instance=>{instance.ClassList.Remove(hideClass);}},{supportsTestSelectors:false,shouldDeprioritizeSubtree:()=>false,prepareUpdate(instance,type,oldProps,newProps){return diffProperties(oldProps,newProps);}});let syncReconciler=null;const getSyncReconciler=()=>{var _syncReconciler;return(_syncReconciler=syncReconciler)!==null&&_syncReconciler!==void 0?_syncReconciler:syncReconciler=react_reconciler_default()()(hostConfig);};//#endregion +//#region src/renderer/renderer.ts +const containerMap=/* @__PURE__ */new Map();let renderCount=0;function dist_render(element,options={}){renderCount++;const hostContainer=(options===null||options===void 0?void 0:options.hostContainer)||HostContainer;const cacheKey=hostContainer.InstanceId>=0?hostContainer.InstanceId:hostContainer;const isAsync=!(options===null||options===void 0?void 0:options.disableBatchRendering);let{hostRoot,asyncJobCallback}=containerMap.get(cacheKey)||{};let findFiberByHostInstance=()=>null;if(!hostRoot){const mode=(options===null||options===void 0?void 0:options.mode)==="legacy"?(react_reconciler_constants_production_namespaceFn().LegacyRoot):(react_reconciler_constants_production_namespaceFn().ConcurrentRoot);if(isAsync){const asyncReconciler=getAsyncReconciler();const fiberCache= false?0:null;if(false)// removed by dead control flow +{}let scheduled=false;const commands=[];commands.push=(...args)=>{if(!scheduled){scheduled=true;Promise.resolve().then(()=>{asyncJobCallback();scheduled=false;});}return Array.prototype.push.apply(commands,args);};const hostContainerInstance={type:"native",commands,component:hostContainer,context:hostContainer.Context,refId:hostContainer.RefId,fiberCache};asyncJobCallback=()=>{if(!commands.length)return;const serialized=JSON.stringify(commands);commands.length=0;hostContainerInstance.context.FlushCommands(serialized);};hostRoot=asyncReconciler.createContainer(hostContainerInstance,mode,null,false,void 0,"",error=>console.error(error),()=>{},()=>{},()=>{});}else hostRoot=getSyncReconciler().createContainer(hostContainer,mode,null,false,void 0,"",error=>console.error(error),()=>{},()=>{},()=>{});containerMap.set(cacheKey,{hostRoot,asyncJobCallback});}if(!(options===null||options===void 0?void 0:options.disableHelpers))element=/*#__PURE__*/(0,react_production_namespaceFn().createElement)(DefaultView,{withHelpers:!(options===null||options===void 0?void 0:options.disableHelpers),renderCount},element);const rc=isAsync?getAsyncReconciler():getSyncReconciler();if(!injectedReconcilers.has(rc)){injectedReconcilers.add(rc);rc.injectIntoDevTools({bundleType: false?0:0,version: dist_version,rendererPackageName:"@reactunity/renderer",rendererConfig:{isAsync},findFiberByHostInstance});}if("updateContainerSync"in rc&&typeof rc.updateContainerSync==="function"&&"flushSyncWork"in rc&&typeof rc.flushSyncWork==="function"){rc.updateContainerSync(element,hostRoot,null,()=>{});rc.flushSyncWork();}else rc.updateContainer(element,hostRoot,null,()=>{});return rc;}const injectedReconcilers=/* @__PURE__ */new WeakSet();/** +* @deprecated Instead, import `render` directly from `@reactunity/renderer` +*/const Renderer=(/* unused pure expression or super */ null && ({render(element,options={}){return dist_render(element,options);}}));const batchedUpdates=(...args)=>getAsyncReconciler().batchedUpdates(...args);const flushSync=(...args)=>getAsyncReconciler().flushSync(...args);//#endregion +//#region index.ts +const ReactUnityRenderer=(/* unused pure expression or super */ null && ({batchedUpdates,flushSync,render: dist_render,unstable_batchedUpdates:batchedUpdates}));//#endregion +//# sourceMappingURL=index.js.map +;// ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js +injectStylesIntoStyleTag_namespaceFn(); +function injectStylesIntoStyleTag_default() { return injectStylesIntoStyleTag_default.c || (injectStylesIntoStyleTag_default.c = __webpack_require__.n(injectStylesIntoStyleTag_namespaceFn())); } +;// ./node_modules/style-loader/dist/runtime/styleDomAPI.js +styleDomAPI_namespaceFn(); -/* istanbul ignore next */ -function styleTagTransform(css, styleElement) { - if (styleElement.styleSheet) { - styleElement.styleSheet.cssText = css; - } else { - while (styleElement.firstChild) { - styleElement.removeChild(styleElement.firstChild); - } - styleElement.appendChild(document.createTextNode(css)); - } -} -module.exports = styleTagTransform; -}); +function styleDomAPI_default() { return styleDomAPI_default.c || (styleDomAPI_default.c = __webpack_require__.n(styleDomAPI_namespaceFn())); } +;// ./node_modules/style-loader/dist/runtime/insertBySelector.js +insertBySelector_namespaceFn(); + +function insertBySelector_default() { return insertBySelector_default.c || (insertBySelector_default.c = __webpack_require__.n(insertBySelector_namespaceFn())); } +;// ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js +setAttributesWithoutAttributes_namespaceFn(); + +function setAttributesWithoutAttributes_default() { return setAttributesWithoutAttributes_default.c || (setAttributesWithoutAttributes_default.c = __webpack_require__.n(setAttributesWithoutAttributes_namespaceFn())); } +;// ./node_modules/style-loader/dist/runtime/insertStyleElement.js +insertStyleElement_namespaceFn(); -var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform_namespaceObject); +function insertStyleElement_default() { return insertStyleElement_default.c || (insertStyleElement_default.c = __webpack_require__.n(insertStyleElement_namespaceFn())); } +;// ./node_modules/style-loader/dist/runtime/styleTagTransform.js +styleTagTransform_namespaceFn(); + +function styleTagTransform_default() { return styleTagTransform_default.c || (styleTagTransform_default.c = __webpack_require__.n(styleTagTransform_namespaceFn())); } // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[6].use[1]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[0].oneOf[6].use[2]!./node_modules/sass-loader/dist/cjs/index.js??ruleSet[1].rules[0].oneOf[6].use[3]!./src/index.scss var cjs_ruleSet_1_rules_0_oneOf_6_use_3_src = __webpack_require__("./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[6].use[1]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[0].oneOf[6].use[2]!./node_modules/sass-loader/dist/cjs/index.js??ruleSet[1].rules[0].oneOf[6].use[3]!./src/index.scss"); ;// ./src/index.scss @@ -522,15 +667,15 @@ var cjs_ruleSet_1_rules_0_oneOf_6_use_3_src = __webpack_require__("./node_module -var options = {}; +var src_options = {}; -options.styleTagTransform = (styleTagTransform_default()); -options.setAttributes = (setAttributesWithoutAttributes_default()); -options.insert = insertBySelector_default().bind(null, "head"); -options.domAPI = (styleDomAPI_default()); -options.insertStyleElement = (insertStyleElement_default()); +src_options.styleTagTransform = (styleTagTransform_default()()); +src_options.setAttributes = (setAttributesWithoutAttributes_default()()); +src_options.insert = (insertBySelector_default()().bind)(null, "head"); +src_options.domAPI = (styleDomAPI_default()()); +src_options.insertStyleElement = (insertStyleElement_default()()); -var update = injectStylesIntoStyleTag_default()(cjs_ruleSet_1_rules_0_oneOf_6_use_3_src/* default */.A, options); +var src_update = injectStylesIntoStyleTag_default()()(cjs_ruleSet_1_rules_0_oneOf_6_use_3_src/* default */.A, src_options); @@ -538,125 +683,6 @@ var update = injectStylesIntoStyleTag_default()(cjs_ruleSet_1_rules_0_oneOf_6_us /* harmony default export */ const src = (cjs_ruleSet_1_rules_0_oneOf_6_use_3_src/* default */.A && cjs_ruleSet_1_rules_0_oneOf_6_use_3_src/* default */.A.locals ? cjs_ruleSet_1_rules_0_oneOf_6_use_3_src/* default */.A.locals : undefined); ;// ./src/index.tsx -function App(){return/*#__PURE__*/(0,jsx_runtime.jsx)("scroll",{children:/*#__PURE__*/(0,jsx_runtime.jsx)("text",{children:'Go to src/index.tsx to edit this file'})});}render(/*#__PURE__*/(0,jsx_runtime.jsx)(App,{})); - -/***/ }, - -/***/ "./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[6].use[1]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[0].oneOf[6].use[2]!./node_modules/sass-loader/dist/cjs/index.js??ruleSet[1].rules[0].oneOf[6].use[3]!./src/index.scss" -(module, __webpack_exports__, __webpack_require__) { - -/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"); -/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/css-loader/dist/runtime/api.js"); -/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); -// Imports - - -var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); -// Module -___CSS_LOADER_EXPORT___.push([module.id, `scroll{flex-direction:column;align-items:flex-start;flex-wrap:wrap;padding:40px}`, ""]); -// Exports -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); - -/* harmony export */ __webpack_require__.d(__webpack_exports__, [ -/* harmony export */ "A", 0, /* export default binding */ __WEBPACK_DEFAULT_EXPORT__ -/* harmony export */ ]); - - -/***/ } - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ const __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ const cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ const module = __webpack_module_cache__[moduleId] = { -/******/ id: moduleId, -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = (module) => { -/******/ const getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter/value functions for harmony exports -/******/ __webpack_require__.d = (exports, definition) => { -/******/ if(Array.isArray(definition)) { -/******/ var i = 0; -/******/ while(i < definition.length) { -/******/ var key = definition[i++]; -/******/ var binding = definition[i++]; -/******/ if(!__webpack_require__.o(exports, key)) { -/******/ if(binding === 0) { -/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] }); -/******/ } else { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding }); -/******/ } -/******/ } else if(binding === 0) { i++; } -/******/ } -/******/ } else { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/wrap commonjs module */ -/******/ (() => { -/******/ // execute a CommonJS module body with real module/exports objects, returning the final exports -/******/ __webpack_require__.cjs = (body) => { -/******/ const mod = { exports: {} }; -/******/ body.call(mod.exports, mod, mod.exports); -/******/ return mod.exports; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/nonce */ -/******/ (() => { -/******/ __webpack_require__.nc = undefined; -/******/ })(); -/******/ -/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module used 'module' so it can't be inlined -/******/ let __webpack_exports__ = __webpack_require__("./src/index.tsx"); -/******/ +function App(){return/*#__PURE__*/(0,react_jsx_runtime_production_namespaceFn().jsx)("scroll",{children:/*#__PURE__*/(0,react_jsx_runtime_production_namespaceFn().jsx)("text",{children:'Go to src/index.tsx to edit this file'})});}dist_render(/*#__PURE__*/(0,react_jsx_runtime_production_namespaceFn().jsx)(App,{})); /******/ })() ; \ No newline at end of file