* feat(react): first-class React introspection, Web Vitals, and nextjs skill
Add React-general and web-universal features as first-class agent-browser verbs
(react tree/inspect/renders/suspense, vitals, pushstate). Genuinely Next.js-specific
workflows (PPR cookie protocol, /_next/mcp bridge, dev-server endpoints) ship as
a new `nextjs` skill that composes the primitives. No new runtime dependencies -
the React DevTools installHook.js is vendored (MIT) and include_str!'d into the
binary.
New commands:
react tree Full React component tree (depth id parent name)
react inspect <fiberId> Props, hooks, state, source for one fiber
react renders start|stop Fiber profiler with Insts/Mounts/Re-renders/Self/DOM
+ prev->next change details
react suspense Suspense boundaries + classifier (client-hook,
request-api, server-fetch, cache, stream, framework)
+ root-cause grouping + recommendations
vitals [url] LCP/CLS/TTFB/FCP/INP + React hydration phases
pushstate <url> Generic SPA client-side navigation
removeinitscript <id> Remove a script registered via addinitscript
New launch flags:
--init-script <path> Register init scripts before first navigation
(repeatable; env AGENT_BROWSER_INIT_SCRIPTS)
--enable <feature> Built-in init scripts; currently react-devtools
(repeatable; env AGENT_BROWSER_ENABLE)
Other primitives:
network route ... --resource-type <csv> Filter by CDP resource type
cookies set --curl <file> Auto-detects JSON/cURL/Cookie-header
* fixes
* fixes
* fixes
28 lines
179 KiB
JavaScript
28 lines
179 KiB
JavaScript
/*!
|
|
* React DevTools `installHook.js` (vendored from facebook/react).
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license:
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
* a copy of this software and associated documentation files (the
|
|
* "Software"), to deal in the Software without restriction, including
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
* the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be
|
|
* included in all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
(()=>{var e={4659:(e,t,n)=>{"use strict";var r=n(8715),o=n(1147),s=Object.assign,i=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,a=Symbol.for("react.context"),l=Symbol.for("react.memo_cache_sentinel"),u=Object.prototype.hasOwnProperty,c=[],d=null;function getPrimitiveStackCache(){if(null===d){var e=new Map;try{if(v.useContext({_currentValue:null}),v.useState(null),v.useReducer((function(e){return e}),null),v.useRef(null),"function"==typeof v.useCacheRefresh&&v.useCacheRefresh(),v.useLayoutEffect((function(){})),v.useInsertionEffect((function(){})),v.useEffect((function(){})),v.useImperativeHandle(void 0,(function(){return null})),v.useDebugValue(null),v.useCallback((function(){})),v.useTransition(),v.useSyncExternalStore((function(){return function(){}}),(function(){return null}),(function(){return null})),v.useDeferredValue(null),v.useMemo((function(){return null})),v.useOptimistic(null,(function(e){return e})),v.useFormState((function(e){return e}),null),v.useActionState((function(e){return e}),null),v.useHostTransitionStatus(),"function"==typeof v.useMemoCache&&v.useMemoCache(0),"function"==typeof v.use){v.use({$$typeof:a,_currentValue:null}),v.use({then:function(){},status:"fulfilled",value:null});try{v.use({then:function(){}})}catch(e){}}v.useId(),"function"==typeof v.useEffectEvent&&v.useEffectEvent((function(){}))}finally{var t=c;c=[]}for(var n=0;n<t.length;n++){var o=t[n];e.set(o.primitive,r.parse(o.stackError))}d=e}return d}var f=null,p=null,m=null,h=0,g=null;function nextHook(){var e=p;return null!==e&&(p=e.next),e}function readContext(e){if(null===f)return e._currentValue;if(null===m)throw Error("Context reads do not line up with context dependencies. This is a bug in React Debug Tools.");return u.call(m,"memoizedValue")?(e=m.memoizedValue,m=m.next):e=e._currentValue,e}var y=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),v={readContext,use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then){switch((e=null!==g&&h<g.length?g[h++]:e).status){case"fulfilled":var t=e.value;return c.push({displayName:null,primitive:"Promise",stackError:Error(),value:t,debugInfo:void 0===e._debugInfo?null:e._debugInfo,dispatcherHookName:"Use"}),t;case"rejected":throw e.reason}throw c.push({displayName:null,primitive:"Unresolved",stackError:Error(),value:e,debugInfo:void 0===e._debugInfo?null:e._debugInfo,dispatcherHookName:"Use"}),y}if(e.$$typeof===a)return t=readContext(e),c.push({displayName:e.displayName||"Context",primitive:"Context (use)",stackError:Error(),value:t,debugInfo:null,dispatcherHookName:"Use"}),t}throw Error("An unsupported type was passed to use(): "+String(e))},useCallback:function(e){var t=nextHook();return c.push({displayName:null,primitive:"Callback",stackError:Error(),value:null!==t?t.memoizedState[0]:e,debugInfo:null,dispatcherHookName:"Callback"}),e},useContext:function(e){var t=readContext(e);return c.push({displayName:e.displayName||null,primitive:"Context",stackError:Error(),value:t,debugInfo:null,dispatcherHookName:"Context"}),t},useEffect:function(e){nextHook(),c.push({displayName:null,primitive:"Effect",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"Effect"})},useImperativeHandle:function(e){nextHook();var t=void 0;null!==e&&"object"==typeof e&&(t=e.current),c.push({displayName:null,primitive:"ImperativeHandle",stackError:Error(),value:t,debugInfo:null,dispatcherHookName:"ImperativeHandle"})},useLayoutEffect:function(e){nextHook(),c.push({displayName:null,primitive:"LayoutEffect",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"LayoutEffect"})},useInsertionEffect:function(e){nextHook(),c.push({displayName:null,primitive:"InsertionEffect",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"InsertionEffect"})},useMemo:function(e){var t=nextHook();return e=null!==t?t.memoizedState[0]:e(),c.push({displayName:null,primitive:"Memo",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"Memo"}),e},useReducer:function(e,t,n){return t=null!==(e=nextHook())?e.memoizedState:void 0!==n?n(t):t,c.push({displayName:null,primitive:"Reducer",stackError:Error(),value:t,debugInfo:null,dispatcherHookName:"Reducer"}),[t,function(){}]},useRef:function(e){var t=nextHook();return e=null!==t?t.memoizedState:{current:e},c.push({displayName:null,primitive:"Ref",stackError:Error(),value:e.current,debugInfo:null,dispatcherHookName:"Ref"}),e},useState:function(e){var t=nextHook();return e=null!==t?t.memoizedState:"function"==typeof e?e():e,c.push({displayName:null,primitive:"State",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"State"}),[e,function(){}]},useDebugValue:function(e,t){c.push({displayName:null,primitive:"DebugValue",stackError:Error(),value:"function"==typeof t?t(e):e,debugInfo:null,dispatcherHookName:"DebugValue"})},useDeferredValue:function(e){var t=nextHook();return e=null!==t?t.memoizedState:e,c.push({displayName:null,primitive:"DeferredValue",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"DeferredValue"}),e},useTransition:function(){var e=nextHook();return nextHook(),e=null!==e&&e.memoizedState,c.push({displayName:null,primitive:"Transition",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"Transition"}),[e,function(){}]},useSyncExternalStore:function(e,t){return e=nextHook(),nextHook(),t=null!==e?e.memoizedState:t(),c.push({displayName:null,primitive:"SyncExternalStore",stackError:Error(),value:t,debugInfo:null,dispatcherHookName:"SyncExternalStore"}),t},useId:function(){var e=nextHook();return e=null!==e?e.memoizedState:"",c.push({displayName:null,primitive:"Id",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"Id"}),e},useHostTransitionStatus:function(){var e=readContext({_currentValue:null});return c.push({displayName:null,primitive:"HostTransitionStatus",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"HostTransitionStatus"}),e},useFormState:function(e,t){var n=nextHook();nextHook(),nextHook(),e=Error();var r=null,o=null;if(null!==n)if("object"==typeof(t=n.memoizedState)&&null!==t&&"function"==typeof t.then)switch(t.status){case"fulfilled":var s=t.value;r=void 0===t._debugInfo?null:t._debugInfo;break;case"rejected":o=t.reason;break;default:o=y,r=void 0===t._debugInfo?null:t._debugInfo,s=t}else s=t;else s=t;if(c.push({displayName:null,primitive:"FormState",stackError:e,value:s,debugInfo:r,dispatcherHookName:"FormState"}),null!==o)throw o;return[s,function(){},!1]},useActionState:function(e,t){var n=nextHook();nextHook(),nextHook(),e=Error();var r=null,o=null;if(null!==n)if("object"==typeof(t=n.memoizedState)&&null!==t&&"function"==typeof t.then)switch(t.status){case"fulfilled":var s=t.value;r=void 0===t._debugInfo?null:t._debugInfo;break;case"rejected":o=t.reason;break;default:o=y,r=void 0===t._debugInfo?null:t._debugInfo,s=t}else s=t;else s=t;if(c.push({displayName:null,primitive:"ActionState",stackError:e,value:s,debugInfo:r,dispatcherHookName:"ActionState"}),null!==o)throw o;return[s,function(){},!1]},useOptimistic:function(e){var t=nextHook();return e=null!==t?t.memoizedState:e,c.push({displayName:null,primitive:"Optimistic",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"Optimistic"}),[e,function(){}]},useMemoCache:function(e){var t=f;if(null==t)return[];if(null==(t=null!=t.updateQueue?t.updateQueue.memoCache:null))return[];var n=t.data[t.index];if(void 0===n){n=t.data[t.index]=Array(e);for(var r=0;r<e;r++)n[r]=l}return t.index++,n},useCacheRefresh:function(){var e=nextHook();return c.push({displayName:null,primitive:"CacheRefresh",stackError:Error(),value:null!==e?e.memoizedState:function(){},debugInfo:null,dispatcherHookName:"CacheRefresh"}),function(){}},useEffectEvent:function(e){return nextHook(),c.push({displayName:null,primitive:"EffectEvent",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"EffectEvent"}),e}},b="undefined"==typeof Proxy?v:new Proxy(v,{get:function(e,t){if(e.hasOwnProperty(t))return e[t];throw(e=Error("Missing method in Dispatcher: "+t)).name="ReactDebugToolsUnsupportedHookError",e}}),w=0;function findSharedIndex(e,t,n){var r=t[n].source,o=0;e:for(;o<e.length;o++)if(e[o].source===r){for(var s=n+1,i=o+1;s<t.length&&i<e.length;s++,i++)if(e[i].source!==t[s].source)continue e;return o}return-1}function isReactWrapper(e,t){return e=parseHookName(e),"HostTransitionStatus"===t?e===t||"FormStatus"===e:e===t}function parseHookName(e){if(!e)return"";var t=e.lastIndexOf("[as ");if(-1!==t)return parseHookName(e.slice(t+4,-1));if(t=-1===(t=e.lastIndexOf("."))?0:t+1,e.slice(t).startsWith("unstable_")&&(t+=9),e.slice(t).startsWith("experimental_")&&(t+=13),"use"===e.slice(t,t+3)){if(3==e.length-t)return"Use";t+=3}return e.slice(t)}function buildTree(e,t){for(var n=[],o=null,s=n,i=0,a=[],l=0;l<t.length;l++){var u=t[l],c=e,d=r.parse(u.stackError);e:{var f=d,p=findSharedIndex(f,c,w);if(-1!==p)c=p;else{for(var m=0;m<c.length&&5>m;m++)if(-1!==(p=findSharedIndex(f,c,m))){w=m,c=p;break e}c=-1}}e:{if(f=d,void 0!==(p=getPrimitiveStackCache().get(u.primitive)))for(m=0;m<p.length&&m<f.length;m++)if(p[m].source!==f[m].source){m<f.length-1&&isReactWrapper(f[m].functionName,u.dispatcherHookName)&&m++,m<f.length-1&&isReactWrapper(f[m].functionName,u.dispatcherHookName)&&m++,f=m;break e}f=-1}if(f=(d=-1===c||-1===f||2>c-f?-1===f?[null,null]:[d[f-1],null]:[d[f-1],d.slice(f,c-1)])[0],d=d[1],null===(c=u.displayName)&&null!==f&&(c=parseHookName(f.functionName)||parseHookName(u.dispatcherHookName)),null!==d){if(f=0,null!==o){for(;f<d.length&&f<o.length&&d[d.length-f-1].source===o[o.length-f-1].source;)f++;for(o=o.length-1;o>f;o--)s=a.pop()}for(o=d.length-f-1;1<=o;o--)f=[],p=d[o],p={id:null,isStateEditable:!1,name:parseHookName(d[o-1].functionName),value:void 0,subHooks:f,debugInfo:null,hookSource:{lineNumber:void 0===p.lineNumber?null:p.lineNumber,columnNumber:void 0===p.columnNumber?null:p.columnNumber,functionName:void 0===p.functionName?null:p.functionName,fileName:void 0===p.fileName?null:p.fileName}},s.push(p),a.push(s),s=f;o=d}f=u.primitive,p=u.debugInfo,u={id:"Context"===f||"Context (use)"===f||"DebugValue"===f||"Promise"===f||"Unresolved"===f||"HostTransitionStatus"===f?null:i++,isStateEditable:"Reducer"===f||"State"===f,name:c||f,value:u.value,subHooks:[],debugInfo:p,hookSource:null},c={lineNumber:null,functionName:null,fileName:null,columnNumber:null},d&&1<=d.length&&(d=d[0],c.lineNumber=void 0===d.lineNumber?null:d.lineNumber,c.functionName=void 0===d.functionName?null:d.functionName,c.fileName=void 0===d.fileName?null:d.fileName,c.columnNumber=void 0===d.columnNumber?null:d.columnNumber),u.hookSource=c,s.push(u)}return processDebugValues(n,null),n}function processDebugValues(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];"DebugValue"===o.name&&0===o.subHooks.length?(e.splice(r,1),r--,n.push(o)):processDebugValues(o.subHooks,o)}null!==t&&(1===n.length?t.value=n[0].value:1<n.length&&(t.value=n.map((function(e){return e.value}))))}function handleRenderFunctionError(e){if(e!==y){if(e instanceof Error&&"ReactDebugToolsUnsupportedHookError"===e.name)throw e;var t=Error("Error rendering inspected component",{cause:e});throw t.name="ReactDebugToolsRenderError",t.cause=e,t}}function inspectHooks(e,t,n){null==n&&(n=i);var o=n.H;n.H=b;try{var s=Error();e(t)}catch(e){handleRenderFunctionError(e)}finally{e=c,c=[],n.H=o}return buildTree(n=void 0===s?[]:r.parse(s),e)}t.inspectHooksOfFiber=function(e,t){if(null==t&&(t=i),0!==e.tag&&15!==e.tag&&11!==e.tag)throw Error("Unknown Fiber. Needs to be a function component to inspect hooks.");getPrimitiveStackCache(),p=e.memoizedState,f=e;var n=e.dependencies&&e.dependencies._debugThenableState;if(n=n?n.thenables||n:null,g=Array.isArray(n)?n:null,h=0,u.call(f,"dependencies"))n=f.dependencies,m=null!==n?n.firstContext:null;else if(u.call(f,"dependencies_old"))n=f.dependencies_old,m=null!==n?n.firstContext:null;else if(u.call(f,"dependencies_new"))n=f.dependencies_new,m=null!==n?n.firstContext:null;else{if(!u.call(f,"contextDependencies"))throw Error("Unsupported React version. This is a bug in React Debug Tools.");n=f.contextDependencies,m=null!==n?n.first:null}n=e.type;var o=e.memoizedProps;if(n!==e.elementType&&n&&n.defaultProps){o=s({},o);var a=n.defaultProps;for(l in a)void 0===o[l]&&(o[l]=a[l])}var l=new Map;try{if(null!==m&&!u.call(m,"memoizedValue"))for(a=e;a;){if(10===a.tag){var d=a.type;void 0!==d._context&&(d=d._context),l.has(d)||(l.set(d,d._currentValue),d._currentValue=a.memoizedProps.value)}a=a.return}if(11===e.tag){var y=n.render;d=o;var v=e.ref,w=(e=t).H;e.H=b;try{var S=Error();y(d,v)}catch(e){handleRenderFunctionError(e)}finally{var k=c;c=[],e.H=w}return buildTree(void 0===S?[]:r.parse(S),k)}return inspectHooks(n,o,t)}finally{g=m=p=f=null,h=0,l.forEach((function(e,t){return t._currentValue=e}))}}},8830:(e,t,n)=>{"use strict";e.exports=n(4659)},5945:(e,t,n)=>{"use strict";var r=n(397),o=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.for("react.view_transition"),v=Symbol.iterator;var b=Symbol.for("react.optimistic_key"),w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,k={};function Component(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||w}function ComponentDummy(){}function PureComponent(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||w}Component.prototype.isReactComponent={},Component.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Component.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},ComponentDummy.prototype=Component.prototype;var C=PureComponent.prototype=new ComponentDummy;C.constructor=PureComponent,S(C,Component.prototype),C.isPureReactComponent=!0;var E=Array.isArray;function noop(){}var I={H:null,A:null,T:null,S:null,G:null},_=Object.prototype.hasOwnProperty;function ReactElement(e,t,n){var r=n.ref;return{$$typeof:o,type:e,key:t,ref:void 0!==r?r:null,props:n}}function isValidElement(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var T=/\/+/g;function getElementKey(e,t){return"object"==typeof e&&null!==e&&null!=e.key?e.key===b?t.toString(36):(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function mapIntoArray(e,t,n,r,i){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(a){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case o:case s:c=!0;break;case h:return mapIntoArray((c=e._init)(e._payload),t,n,r,i)}}if(c)return i=i(e),c=""===r?"."+getElementKey(e,0):r,E(i)?(n="",null!=c&&(n=c.replace(T,"$&/")+"/"),mapIntoArray(i,t,n,"",(function(e){return e}))):null!=i&&(isValidElement(i)&&(l=i,u=n+(null==i.key||e&&e.key===i.key?"":(""+i.key).replace(T,"$&/")+"/")+c,i=ReactElement(l.type,u,l.props)),t.push(i)),1;c=0;var d,f=""===r?".":r+":";if(E(e))for(var p=0;p<e.length;p++)c+=mapIntoArray(r=e[p],t,n,a=f+getElementKey(r,p),i);else if("function"==typeof(p=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=v&&d[v]||d["@@iterator"])?d:null))for(e=p.call(e),p=0;!(r=e.next()).done;)c+=mapIntoArray(r=r.value,t,n,a=f+getElementKey(r,p++),i);else if("object"===a){if("function"==typeof e.then)return mapIntoArray(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(noop,noop):(e.status="pending",e.then((function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)}),(function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)}))),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function mapChildren(e,t,n){if(null==e)return e;var r=[],o=0;return mapIntoArray(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function lazyInitializer(e){if(-1===e._status){var t=(0,e._result)();t.then((function(n){0!==e._status&&-1!==e._status||(e._status=1,e._result=n,void 0===t.status&&(t.status="fulfilled",t.value=n))}),(function(n){0!==e._status&&-1!==e._status||(e._status=2,e._result=n,void 0===t.status&&(t.status="rejected",t.reason=n))})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}function useOptimistic(e,t){return I.H.useOptimistic(e,t)}var F="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof r&&"function"==typeof r.emit)return void r.emit("uncaughtException",e);console.error(e)};function startTransition(e){var t=I.T,n={};n.types=null!==t?t.types:null,n.gesture=null,I.T=n;try{var r=e(),o=I.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(noop,F)}catch(e){F(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),I.T=t}}var R={map:mapChildren,forEach:function(e,t,n){mapChildren(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return mapChildren(e,(function(){t++})),t},toArray:function(e){return mapChildren(e,(function(e){return e}))||[]},only:function(e){if(!isValidElement(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=g,t.Children=R,t.Component=Component,t.Fragment=i,t.Profiler=l,t.PureComponent=PureComponent,t.StrictMode=a,t.Suspense=f,t.ViewTransition=y,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return I.H.useMemoCache(e)}},t.addTransitionType=function addTransitionType(e){var t=I.T;if(null!==t){var n=t.types;null===n?t.types=[e]:-1===n.indexOf(e)&&n.push(e)}else startTransition(addTransitionType.bind(null,e))},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=S({},e.props),o=e.key;if(null!=t)for(s in void 0!==t.key&&(o=t.key===b?b:""+t.key),t)!_.call(t,s)||"key"===s||"__self"===s||"__source"===s||"ref"===s&&void 0===t.ref||(r[s]=t[s]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var i=Array(s),a=0;a<s;a++)i[a]=arguments[a+2];r.children=i}return ReactElement(e.type,o,r)},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:u,_context:e},e},t.createElement=function(e,t,n){var r,o={},s=null;if(null!=t)for(r in void 0!==t.key&&(s=t.key===b?b:""+t.key),t)_.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var i=arguments.length-2;if(1===i)o.children=n;else if(1<i){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+2];o.children=a}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===o[r]&&(o[r]=i[r]);return ReactElement(e,s,o)},t.createRef=function(){return{current:null}},t.experimental_useOptimistic=function(e,t){return useOptimistic(e,t)},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=isValidElement,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:lazyInitializer}},t.memo=function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},t.optimisticKey=b,t.startTransition=startTransition,t.unstable_Activity=g,t.unstable_SuspenseList=p,t.unstable_getCacheForType=function(e){var t=I.A;return t?t.getCacheForType(e):e()},t.unstable_startGestureTransition=function(e,t,n){if(null==e)throw Error("A Timeline is required as the first argument to startGestureTransition.");var r=I.T,o={types:null};o.gesture=e,I.T=o;try{t();var s=I.G;if(null!==s)return s(o,e,n)}catch(e){F(e)}finally{I.T=r}return noop},t.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},t.use=function(e){return I.H.use(e)},t.useActionState=function(e,t,n){return I.H.useActionState(e,t,n)},t.useCallback=function(e,t){return I.H.useCallback(e,t)},t.useContext=function(e){return I.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return I.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return I.H.useEffect(e,t)},t.useEffectEvent=function(e){return I.H.useEffectEvent(e)},t.useId=function(){return I.H.useId()},t.useImperativeHandle=function(e,t,n){return I.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.H.useMemo(e,t)},t.useOptimistic=useOptimistic,t.useReducer=function(e,t,n){return I.H.useReducer(e,t,n)},t.useRef=function(e){return I.H.useRef(e)},t.useState=function(e){return I.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.H.useTransition()},t.version="19.3.0-experimental-2ba30655-20260219"},1147:(e,t,n)=>{"use strict";e.exports=n(5945)},8715:function(e,t,n){var r,o,s;!function(i,a){"use strict";o=[n(7356)],void 0===(s="function"==typeof(r=function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter((function(e){return!!e.match(n)}),this).map((function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/),o=(n=r?n.replace(r[0],""):n).split(/\s+/).slice(1),s=this.extractLocation(r?r[1]:o.pop()),i=o.join(" ")||void 0,a=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new e({functionName:i,fileName:a,lineNumber:s[1],columnNumber:s[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter((function(e){return!e.match(r)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,s=this.extractLocation(t.replace(n,""));return new e({functionName:o,fileName:s[0],lineNumber:s[1],columnNumber:s[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),o=[],s=2,i=r.length;s<i;s+=2){var a=n.exec(r[s]);a&&o.push(new e({fileName:a[2],lineNumber:a[1],source:r[s]}))}return o},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),o=[],s=0,i=r.length;s<i;s+=2){var a=n.exec(r[s]);a&&o.push(new e({functionName:a[3]||void 0,fileName:a[2],lineNumber:a[1],source:r[s]}))}return o},parseOpera11:function(n){return n.stack.split("\n").filter((function(e){return!!e.match(t)&&!e.match(/^Error created at/)}),this).map((function(t){var n,r=t.split("@"),o=this.extractLocation(r.pop()),s=r.shift()||"",i=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;s.match(/\(([^)]*)\)/)&&(n=s.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var a=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:i,args:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})}),this)}}})?r.apply(t,o):r)||(e.exports=s)}()},3018:(e,t,n)=>{"use strict";const r=n(5986),o=Symbol("max"),s=Symbol("length"),i=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),d=Symbol("lruList"),f=Symbol("cache"),p=Symbol("updateAgeOnGet"),naiveLength=()=>1;const get=(e,t,n)=>{const r=e[f].get(t);if(r){const t=r.value;if(isStale(e,t)){if(del(e,r),!e[a])return}else n&&(e[p]&&(r.value.now=Date.now()),e[d].unshiftNode(r));return t.value}},isStale=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},trim=e=>{if(e[s]>e[o])for(let t=e[d].tail;e[s]>e[o]&&null!==t;){const n=t.prev;del(e,t),t=n}},del=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[s]-=n.length,e[f].delete(n.key),e[d].removeNode(t)}};class m{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const forEachStep=(e,t,n,r)=>{let o=n.value;isStale(e,o)&&(del(e,n),e[a]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[o]=e.max||1/0;const t=e.length||naiveLength;if(this[i]="function"!=typeof t?naiveLength:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[u]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[o]=e||1/0,trim(this)}get max(){return this[o]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,trim(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=naiveLength),e!==this[i]&&(this[i]=e,this[s]=0,this[d].forEach((e=>{e.length=this[i](e.value,e.key),this[s]+=e.length}))),trim(this)}get lengthCalculator(){return this[i]}get length(){return this[s]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let n=this[d].tail;null!==n;){const r=n.prev;forEachStep(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[d].head;null!==n;){const r=n.next;forEachStep(this,e,n,t),n=r}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach((e=>this[u](e.key,e.value))),this[f]=new Map,this[d]=new r,this[s]=0}dump(){return this[d].map((e=>!isStale(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,n){if((n=n||this[l])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,a=this[i](t,e);if(this[f].has(e)){if(a>this[o])return del(this,this[f].get(e)),!1;const i=this[f].get(e).value;return this[u]&&(this[c]||this[u](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[s]+=a-i.length,i.length=a,this.get(e),trim(this),!0}const p=new m(e,t,a,r,n);return p.length>this[o]?(this[u]&&this[u](e,t),!1):(this[s]+=p.length,this[d].unshift(p),this[f].set(e,this[d].head),trim(this),!0)}has(e){if(!this[f].has(e))return!1;const t=this[f].get(e).value;return!isStale(this,t)}get(e){return get(this,e,!0)}peek(e){return get(this,e,!1)}pop(){const e=this[d].tail;return e?(del(this,e),e.value):null}del(e){del(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{const e=o-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[f].forEach(((e,t)=>get(this,t,!1)))}}},397:e=>{var t,n,r=e.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{n="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){n=defaultClearTimeout}}();var o,s=[],i=!1,a=-1;function cleanUpNextTick(){i&&o&&(i=!1,o.length?s=o.concat(s):a=-1,s.length&&drainQueue())}function drainQueue(){if(!i){var e=runTimeout(cleanUpNextTick);i=!0;for(var t=s.length;t;){for(o=s,s=[];++a<t;)o&&o[a].run();a=-1,t=s.length}o=null,i=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===defaultClearTimeout||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new Item(e,t)),1!==s.length||i||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=noop,r.addListener=noop,r.once=noop,r.off=noop,r.removeListener=noop,r.removeAllListeners=noop,r.emit=noop,r.prependListener=noop,r.prependOnceListener=noop,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},7356:function(e,t){var n,r,o;!function(s,i){"use strict";r=[],void 0===(o="function"==typeof(n=function(){function _isNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}function _capitalize(e){return e.charAt(0).toUpperCase()+e.substring(1)}function _getter(e){return function(){return this[e]}}var e=["isConstructor","isEval","isNative","isToplevel"],t=["columnNumber","lineNumber"],n=["fileName","functionName","source"],r=["args"],o=e.concat(t,n,r);function StackFrame(e){if(e)for(var t=0;t<o.length;t++)void 0!==e[o[t]]&&this["set"+_capitalize(o[t])](e[o[t]])}StackFrame.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof StackFrame)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new StackFrame(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",n=this.getColumnNumber()||"",r=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+n+")":"[eval]:"+t+":"+n:r?r+" ("+e+":"+t+":"+n+")":e+":"+t+":"+n}},StackFrame.fromString=function(e){var t=e.indexOf("("),n=e.lastIndexOf(")"),r=e.substring(0,t),o=e.substring(t+1,n).split(","),s=e.substring(n+1);if(0===s.indexOf("@"))var i=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(s,""),a=i[1],l=i[2],u=i[3];return new StackFrame({functionName:r,args:o||void 0,fileName:a,lineNumber:l||void 0,columnNumber:u||void 0})};for(var s=0;s<e.length;s++)StackFrame.prototype["get"+_capitalize(e[s])]=_getter(e[s]),StackFrame.prototype["set"+_capitalize(e[s])]=function(e){return function(t){this[e]=Boolean(t)}}(e[s]);for(var i=0;i<t.length;i++)StackFrame.prototype["get"+_capitalize(t[i])]=_getter(t[i]),StackFrame.prototype["set"+_capitalize(t[i])]=function(e){return function(t){if(!_isNumber(t))throw new TypeError(e+" must be a Number");this[e]=Number(t)}}(t[i]);for(var a=0;a<n.length;a++)StackFrame.prototype["get"+_capitalize(n[a])]=_getter(n[a]),StackFrame.prototype["set"+_capitalize(n[a])]=function(e){return function(t){this[e]=String(t)}}(n[a]);return StackFrame})?n.apply(t,r):n)||(e.exports=o)}()},7533:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},5986:(e,t,n)=>{"use strict";function Yallist(e){var t=this;if(t instanceof Yallist||(t=new Yallist),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function insert(e,t,n){var r=t===e.head?new Node(n,null,t,e):new Node(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function push(e,t){e.tail=new Node(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Node(e,t,n,r){if(!(this instanceof Node))return new Node(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=Yallist,Yallist.Node=Node,Yallist.create=Yallist,Yallist.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},Yallist.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},Yallist.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)push(this,arguments[e]);return this.length},Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)unshift(this,arguments[e]);return this.length},Yallist.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},Yallist.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},Yallist.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},Yallist.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},Yallist.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},Yallist.prototype.map=function(e,t){t=t||this;for(var n=new Yallist,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},Yallist.prototype.mapReverse=function(e,t){t=t||this;for(var n=new Yallist,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},Yallist.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},Yallist.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},Yallist.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},Yallist.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},Yallist.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new Yallist;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;for(;null!==o&&r<t;r++,o=o.next)n.push(o.value);return n},Yallist.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new Yallist;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},Yallist.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;null!==r&&n<e;n++)r=r.next;var o=[];for(n=0;r&&n<t;n++)o.push(r.value),r=this.removeNode(r);null===r&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev);for(n=2;n<arguments.length;n++)r=insert(this,r,arguments[n]);return o},Yallist.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(7533)(Yallist)}catch(e){}}},t={};function __webpack_require__(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=!1,t=1,n=2,r=3,o=4,s=5,i=7,a=8,l=9,u=10,c=11,d=12,f=13,p=1,m=2,h=4,g=0,y=1,v=2,b=3,w="[2;38;2;124;124;124m%s[0m";let S,k,C,E,I,_,T,F,R=0;function disabledLog(){}function describeBuiltInComponentFrame(e){if(void 0===F)try{throw Error()}catch(e){const t=e.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}let t="";return t=" (<anonymous>)","\n"+F+e+t}disabledLog.__reactDisabledLog=!0;let D=!1;function describeNativeComponentFrame(e,t,n){if(!e||D)return"";const r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,D=!0;const o=n.H;n.H=null,function(){if(0===R){S=console.log,k=console.info,C=console.warn,E=console.error,I=console.group,_=console.groupCollapsed,T=console.groupEnd;const e={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}R++}();try{const n={DetermineComponentFrameRoot(){let n;try{if(t){const Fake=function(){throw Error()};if(Object.defineProperty(Fake.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(Fake,[])}catch(e){n=e}Reflect.construct(e,[],Fake)}else{try{Fake.call()}catch(e){n=e}e.call(Fake.prototype)}}else{try{throw Error()}catch(e){n=e}const t=e();t&&"function"==typeof t.catch&&t.catch((()=>{}))}}catch(e){if(e&&n&&"string"==typeof e.stack)return[e.stack,n.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";const r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});const[o,s]=n.DetermineComponentFrameRoot();if(o&&s){const t=o.split("\n"),n=s.split("\n");let r=0,i=0;for(;r<t.length&&!t[r].includes("DetermineComponentFrameRoot");)r++;for(;i<n.length&&!n[i].includes("DetermineComponentFrameRoot");)i++;if(r===t.length||i===n.length)for(r=t.length-1,i=n.length-1;r>=1&&i>=0&&t[r]!==n[i];)i--;for(;r>=1&&i>=0;r--,i--)if(t[r]!==n[i]){if(1!==r||1!==i)do{if(r--,i--,i<0||t[r]!==n[i]){let n="\n"+t[r].replace(" at new "," at ");return e.displayName&&n.includes("<anonymous>")&&(n=n.replace("<anonymous>",e.displayName)),n}}while(r>=1&&i>=0);break}}}finally{D=!1,Error.prepareStackTrace=r,n.H=o,function(){if(R--,0===R){const e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:{...e,value:S},info:{...e,value:k},warn:{...e,value:C},error:{...e,value:E},group:{...e,value:I},groupCollapsed:{...e,value:_},groupEnd:{...e,value:T}})}R<0&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}()}const s=e?e.displayName||e.name:"";return s?describeBuiltInComponentFrame(s):""}function describeFunctionComponentFrame(e,t){return describeNativeComponentFrame(e,!1,t)}function formatOwnerStack(e){const t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e.stack;Error.prepareStackTrace=t,n.startsWith("Error: react-stack-top-frame\n")&&(n=n.slice(29));let r=n.indexOf("\n");return-1!==r&&(n=n.slice(r+1)),r=n.indexOf("react_stack_bottom_frame"),-1===r&&(r=n.indexOf("react-stack-bottom-frame")),-1!==r&&(r=n.lastIndexOf("\n",r)),-1===r?"":(n=n.slice(0,r),n)}const x=new WeakMap,compareVersions=(e,t)=>{const n=validateAndParse(e),r=validateAndParse(t),o=n.pop(),s=r.pop(),i=compareSegments(n,r);return 0!==i?i:o&&s?compareSegments(o.split("."),s.split(".")):o||s?o?-1:1:0},N=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,validateAndParse=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(N);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},isWildcard=e=>"*"===e||"x"===e||"X"===e,tryParse=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},compareStrings=(e,t)=>{if(isWildcard(e)||isWildcard(t))return 0;const[n,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(tryParse(e),tryParse(t));return n>r?1:n<r?-1:0},compareSegments=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=compareStrings(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},O={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};Object.keys(O);var P=__webpack_require__(3018),H=__webpack_require__.n(P);const A=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),U=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),G=(Symbol.for("react.scope"),Symbol.for("react.activity"),Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker")),Q=(Symbol.for("react.memo_cache_sentinel"),Symbol.for("react.view_transition"));Symbol.iterator;Symbol.asyncIterator,Symbol.for("react.optimistic_key");const X=1,Z=2,J=5,ee=6,te=7,ne=8,re=9,oe=10,se=11,ie=12,ae=13,le=14,ue=15,ce=16,de=17,fe=1,pe=2,me=3,he=4,ge=5,ye=6,ve=1;function sessionStorageGetItem(e){try{return sessionStorage.getItem(e)}catch(e){return null}}const be=Array.isArray,we=Object.prototype.hasOwnProperty,Se=new WeakMap,ke=new(H())({max:1e3}),Ce=Symbol.for("react.provider");function alphaSortKeys(e,t){return e.toString()>t.toString()?1:t.toString()>e.toString()?-1:0}function getAllEnumerableKeys(e){const t=new Set;let n=e;for(;null!=n;){const e=[...Object.keys(n),...Object.getOwnPropertySymbols(n)],r=Object.getOwnPropertyDescriptors(n);e.forEach((e=>{r[e].enumerable&&t.add(e)})),n=Object.getPrototypeOf(n)}return t}function getWrappedDisplayName(e,t,n,r){const o=e?.displayName;return o||`${n}(${getDisplayName(t,r)})`}function getDisplayName(e,t="Anonymous"){const n=Se.get(e);if(null!=n)return n;let r=t;return"string"==typeof e.displayName?r=e.displayName:"string"==typeof e.name&&""!==e.name&&(r=e.name),Se.set(e,r),r}let Ee=0;function getUID(){return++Ee}function utfDecodeStringWithRanges(e,t,n){let r="";for(let o=t;o<=n;o++)r+=String.fromCodePoint(e[o]);return r}function utfEncodeString(e){const t=ke.get(e);if(void 0!==t)return t;const n=[];let r,o=0;for(;o<e.length;)r=e.charCodeAt(o),55296==(63488&r)?n.push((s=r,i=e.charCodeAt(++o),((1023&s)<<10)+(1023&i)+65536)):n.push(r),++o;var s,i;return ke.set(e,n),n}function utils_getInObject(e,t){return t.reduce(((e,t)=>{if(e){if(we.call(e,t))return e[t];if("function"==typeof e[Symbol.iterator])return Array.from(e)[t]}return null}),e)}function deletePathInObject(e,t){const n=t.length,r=t[n-1];if(null!=e){const o=utils_getInObject(e,t.slice(0,n-1));o&&(be(o)?o.splice(r,1):delete o[r])}}function renamePathInObject(e,t,n){const r=t.length;if(null!=e){const o=utils_getInObject(e,t.slice(0,r-1));if(o){const e=t[r-1];o[n[r-1]]=o[e],be(o)?o.splice(e,1):delete o[e]}}}function utils_setInObject(e,t,n){const r=t.length,o=t[r-1];if(null!=e){const s=utils_getInObject(e,t.slice(0,r-1));s&&(s[o]=n)}}function getDataType(e){if(null===e)return"null";if(void 0===e)return"undefined";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return"html_element";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"function":return"function";case"number":return Number.isNaN(e)?"nan":Number.isFinite(e)?"number":"infinity";case"object":switch(e.$$typeof){case M:case A:return"react_element";case K:return"react_lazy"}if(be(e))return"array";if(ArrayBuffer.isView(e))return we.call(e.constructor,"BYTES_PER_ELEMENT")?"typed_array":"data_view";if(e.constructor&&"ArrayBuffer"===e.constructor.name)return"array_buffer";if("function"==typeof e[Symbol.iterator]){const t=e[Symbol.iterator]();if(t)return t===e?"opaque_iterator":"iterator"}else{if(e.constructor&&"RegExp"===e.constructor.name)return"regexp";if("function"==typeof e.then)return"thenable";if(function(e){if("name"in e&&"message"in e)for(;e;){if("[object Error]"===Object.prototype.toString.call(e))return!0;e=Object.getPrototypeOf(e)}return!1}(e))return"error";{const t=Object.prototype.toString.call(e);if("[object Date]"===t)return"date";if("[object HTMLAllCollection]"===t)return"html_all_collection"}}return isPlainObject(e)?"object":"class_instance";case"string":return"string";case"symbol":return"symbol";case"undefined":return"[object HTMLAllCollection]"===Object.prototype.toString.call(e)?"html_all_collection":"undefined";default:return"unknown"}}function getDisplayNameForReactElement(e){const t=function(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case M:case A:const n=e.type;switch(n){case $:case L:case B:case W:case q:case Q:return n;default:const e=n&&n.$$typeof;switch(e){case U:case V:case K:case Y:case j:return e;default:return t}}case z:return t}}}(e);switch(t){case j:return"ContextConsumer";case Ce:return"ContextProvider";case U:return"Context";case V:return"ForwardRef";case $:return"Fragment";case K:return"Lazy";case Y:return"Memo";case z:return"Portal";case L:return"Profiler";case B:return"StrictMode";case W:return"Suspense";case q:return"SuspenseList";case Q:return"ViewTransition";case G:return"TracingMarker";default:const{type:t}=e;return"string"==typeof t?t:"function"==typeof t?getDisplayName(t,"Anonymous"):null!=t?"NotImplementedInDevtools":"Element"}}const Ie=50;function truncateForDisplay(e,t=Ie){return e.length>t?e.slice(0,t)+"…":e}function formatDataForPreview(e,t){if(null!=e&&we.call(e,_e.type))return t?e[_e.preview_long]:e[_e.preview_short];switch(getDataType(e)){case"html_element":return`<${truncateForDisplay(e.tagName.toLowerCase())} />`;case"function":return"function"==typeof e.name||""===e.name?"() => {}":`${truncateForDisplay(e.name)}() {}`;case"string":return`"${e}"`;case"bigint":return truncateForDisplay(e.toString()+"n");case"regexp":case"symbol":return truncateForDisplay(e.toString());case"react_element":return`<${truncateForDisplay(getDisplayNameForReactElement(e)||"Unknown")} />`;case"react_lazy":const n=e._payload;if(null!==n&&"object"==typeof n){if(0===n._status)return"pending lazy()";if(1===n._status&&null!=n._result){if(t){return`fulfilled lazy() {${truncateForDisplay(formatDataForPreview(n._result.default,!1))}}`}return"fulfilled lazy() {…}"}if(2===n._status){if(t){return`rejected lazy() {${truncateForDisplay(formatDataForPreview(n._result,!1))}}`}return"rejected lazy() {…}"}if("pending"===n.status||"blocked"===n.status)return"pending lazy()";if("fulfilled"===n.status){if(t){return`fulfilled lazy() {${truncateForDisplay(formatDataForPreview(n.value,!1))}}`}return"fulfilled lazy() {…}"}if("rejected"===n.status){if(t){return`rejected lazy() {${truncateForDisplay(formatDataForPreview(n.reason,!1))}}`}return"rejected lazy() {…}"}}return"lazy()";case"array_buffer":return`ArrayBuffer(${e.byteLength})`;case"data_view":return`DataView(${e.buffer.byteLength})`;case"array":if(t){let t="";for(let n=0;n<e.length&&(n>0&&(t+=", "),t+=formatDataForPreview(e[n],!1),!(t.length>Ie));n++);return`[${truncateForDisplay(t)}]`}return`Array(${we.call(e,_e.size)?e[_e.size]:e.length})`;case"typed_array":const r=`${e.constructor.name}(${e.length})`;if(t){let t="";for(let n=0;n<e.length&&(n>0&&(t+=", "),t+=e[n],!(t.length>Ie));n++);return`${r} [${truncateForDisplay(t)}]`}return r;case"iterator":const o=e.constructor.name;if(t){const t=Array.from(e);let n="";for(let e=0;e<t.length;e++){const r=t[e];if(e>0&&(n+=", "),be(r)){n+=`${formatDataForPreview(r[0],!0)} => ${formatDataForPreview(r[1],!1)}`}else n+=formatDataForPreview(r,!1);if(n.length>Ie)break}return`${o}(${e.size}) {${truncateForDisplay(n)}}`}return`${o}(${e.size})`;case"opaque_iterator":return e[Symbol.toStringTag];case"date":return e.toString();case"class_instance":try{let t=e.constructor.name;if("string"==typeof t)return t;if(t=Object.getPrototypeOf(e).constructor.name,"string"==typeof t)return t;try{return truncateForDisplay(String(e))}catch(e){return"unserializable"}}catch(e){return"unserializable"}case"thenable":let s;if(isPlainObject(e))s="Thenable";else{let t=e.constructor.name;"string"!=typeof t&&(t=Object.getPrototypeOf(e).constructor.name),s="string"==typeof t?t:"Thenable"}switch(e.status){case"pending":return`pending ${s}`;case"fulfilled":if(t){return`fulfilled ${s} {${truncateForDisplay(formatDataForPreview(e.value,!1))}}`}return`fulfilled ${s} {…}`;case"rejected":if(t){return`rejected ${s} {${truncateForDisplay(formatDataForPreview(e.reason,!1))}}`}return`rejected ${s} {…}`;default:return s}case"object":if(t){const t=Array.from(getAllEnumerableKeys(e)).sort(alphaSortKeys);let n="";for(let r=0;r<t.length;r++){const o=t[r];if(r>0&&(n+=", "),n+=`${o.toString()}: ${formatDataForPreview(e[o],!1)}`,n.length>Ie)break}return`{${truncateForDisplay(n)}}`}return"{…}";case"error":return truncateForDisplay(String(e));case"boolean":case"number":case"infinity":case"nan":case"null":case"undefined":return String(e);default:try{return truncateForDisplay(String(e))}catch(e){return"unserializable"}}}const isPlainObject=e=>{const t=Object.getPrototypeOf(e);if(!t)return!0;return!Object.getPrototypeOf(t)};function noop(){}const _e={inspectable:Symbol("inspectable"),inspected:Symbol("inspected"),name:Symbol("name"),preview_long:Symbol("preview_long"),preview_short:Symbol("preview_short"),readonly:Symbol("readonly"),size:Symbol("size"),type:Symbol("type"),unserializable:Symbol("unserializable")},Te=2;function createDehydrated(e,t,n,r,o){r.push(o);const s={inspectable:t,type:e,preview_long:formatDataForPreview(n,!0),preview_short:formatDataForPreview(n,!1),name:"function"!=typeof n.constructor||"string"!=typeof n.constructor.name||"Object"===n.constructor.name?"":n.constructor.name};return"array"===e||"typed_array"===e?s.size=n.length:"object"===e&&(s.size=Object.keys(n).length),"iterator"!==e&&"typed_array"!==e||(s.readonly=!0),s}function dehydrate(e,t,n,r,o,s=0){const i=getDataType(e);let a;switch(i){case"html_element":return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e.tagName,type:i};case"function":return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"function"!=typeof e.name&&e.name?e.name:"function",type:i};case"string":return a=o(r),a||e.length<=500?e:e.slice(0,500)+"...";case"bigint":case"symbol":return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e.toString(),type:i};case"react_element":{if(a=o(r),s>=Te&&!a)return t.push(r),{inspectable:!0,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:getDisplayNameForReactElement(e)||"Unknown",type:i};const l={unserializable:!0,type:i,readonly:!0,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:getDisplayNameForReactElement(e)||"Unknown"};return l.key=dehydrate(e.key,t,n,r.concat(["key"]),o,a?1:s+1),e.$$typeof===A&&(l.ref=dehydrate(e.ref,t,n,r.concat(["ref"]),o,a?1:s+1)),l.props=dehydrate(e.props,t,n,r.concat(["props"]),o,a?1:s+1),n.push(r),l}case"react_lazy":{a=o(r);const l=e._payload;if(s>=Te&&!a){t.push(r);return{inspectable:null!==l&&"object"==typeof l&&(1===l._status||2===l._status||"fulfilled"===l.status||"rejected"===l.status),preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"lazy()",type:i}}const u={unserializable:!0,type:i,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"lazy()"};return u._payload=dehydrate(l,t,n,r.concat(["_payload"]),o,a?1:s+1),n.push(r),u}case"array_buffer":case"data_view":return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"data_view"===i?"DataView":"ArrayBuffer",size:e.byteLength,type:i};case"array":if(a=o(r),s>=Te&&!a)return createDehydrated(i,!0,e,t,r);const l=[];for(let i=0;i<e.length;i++)l[i]=dehydrateKey(e,i,t,n,r.concat([i]),o,a?1:s+1);return l;case"html_all_collection":case"typed_array":case"iterator":if(a=o(r),s>=Te&&!a)return createDehydrated(i,!0,e,t,r);{const l={unserializable:!0,type:i,readonly:!0,size:"typed_array"===i?e.length:void 0,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"function"!=typeof e.constructor||"string"!=typeof e.constructor.name||"Object"===e.constructor.name?"":e.constructor.name};return Array.from(e).forEach(((e,i)=>l[i]=dehydrate(e,t,n,r.concat([i]),o,a?1:s+1))),n.push(r),l}case"opaque_iterator":return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e[Symbol.toStringTag],type:i};case"date":case"regexp":return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e.toString(),type:i};case"thenable":if(a=o(r),s>=Te&&!a)return t.push(r),{inspectable:"fulfilled"===e.status||"rejected"===e.status,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e.toString(),type:i};switch("resolved_model"!==e.status&&"resolve_module"!==e.status||e.then(noop),e.status){case"fulfilled":{const l={unserializable:!0,type:i,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"fulfilled Thenable"};return l.value=dehydrate(e.value,t,n,r.concat(["value"]),o,a?1:s+1),n.push(r),l}case"rejected":{const l={unserializable:!0,type:i,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"rejected Thenable"};return l.reason=dehydrate(e.reason,t,n,r.concat(["reason"]),o,a?1:s+1),n.push(r),l}default:return t.push(r),{inspectable:!1,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e.toString(),type:i}}case"object":if(a=o(r),s>=Te&&!a)return createDehydrated(i,!0,e,t,r);{const i={};return getAllEnumerableKeys(e).forEach((l=>{const u=l.toString();i[u]=dehydrateKey(e,l,t,n,r.concat([u]),o,a?1:s+1)})),i}case"class_instance":{if(a=o(r),s>=Te&&!a)return createDehydrated(i,!0,e,t,r);const l={unserializable:!0,type:i,readonly:!0,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:"function"!=typeof e.constructor||"string"!=typeof e.constructor.name?"":e.constructor.name};return getAllEnumerableKeys(e).forEach((i=>{const u=i.toString();l[u]=dehydrate(e[i],t,n,r.concat([u]),o,a?1:s+1)})),n.push(r),l}case"error":{if(a=o(r),s>=Te&&!a)return createDehydrated(i,!0,e,t,r);const l={unserializable:!0,type:i,readonly:!0,preview_short:formatDataForPreview(e,!1),preview_long:formatDataForPreview(e,!0),name:e.name};return l.message=dehydrate(e.message,t,n,r.concat(["message"]),o,a?1:s+1),l.stack=dehydrate(e.stack,t,n,r.concat(["stack"]),o,a?1:s+1),"cause"in e&&(l.cause=dehydrate(e.cause,t,n,r.concat(["cause"]),o,a?1:s+1)),getAllEnumerableKeys(e).forEach((i=>{const u=i.toString();l[u]=dehydrate(e[i],t,n,r.concat([u]),o,a?1:s+1)})),n.push(r),l}case"infinity":case"nan":case"undefined":return t.push(r),{type:i};default:return e}}function dehydrateKey(e,t,n,r,o,s,i=0){try{return dehydrate(e[t],n,r,o,s,i)}catch(e){let t="";return"object"==typeof e&&null!==e&&"string"==typeof e.stack?t=e.stack:"string"==typeof e&&(t=e),n.push(o),{inspectable:!1,preview_short:"[Exception]",preview_long:t?"[Exception: "+t+"]":"[Exception]",name:t,type:"unknown"}}}const Fe=Array.isArray;const shared_isArray=function(e){return Fe(e)},Re="999.9.9";function cleanForBridge(e,t,n=[]){if(null!==e){const r=[],o=[];return{data:dehydrate(e,r,o,n,t),cleaned:r,unserializable:o}}return null}function copyWithDelete(e,t,n=0){const r=t[n],o=shared_isArray(e)?e.slice():{...e};return n+1===t.length?shared_isArray(o)?o.splice(r,1):delete o[r]:o[r]=copyWithDelete(e[r],t,n+1),o}function copyWithRename(e,t,n,r=0){const o=t[r],s=shared_isArray(e)?e.slice():{...e};if(r+1===t.length){s[n[r]]=s[o],shared_isArray(s)?s.splice(o,1):delete s[o]}else s[o]=copyWithRename(e[o],t,n,r+1);return s}function copyWithSet(e,t,n,r=0){if(r>=t.length)return n;const o=t[r],s=shared_isArray(e)?e.slice():{...e};return s[o]=copyWithSet(e[o],t,n,r+1),s}function serializeToString(e){if(void 0===e)return"undefined";if("function"==typeof e)return e.toString();const t=new Set;return JSON.stringify(e,((e,n)=>{if("object"==typeof n&&null!==n){if(t.has(n))return;t.add(n)}return"bigint"==typeof n?n.toString()+"n":n}),2)}function safeToString(e){try{return String(e)}catch(t){if("object"==typeof e)return"[object Object]";throw t}}function formatConsoleArgumentsToSingleString(e,...t){const n=t.slice();let r=safeToString(e);if("string"==typeof e&&n.length){const e=/(%?)(%([jds]))/g;r=r.replace(e,((e,t,r,o)=>{let s=n.shift();switch(o){case"s":s+="";break;case"d":case"i":s=parseInt(s,10).toString();break;case"f":s=parseFloat(s).toString()}return t?(n.unshift(s),e):s}))}if(n.length)for(let e=0;e<n.length;e++)r+=" "+safeToString(n[e]);return r=r.replace(/%{2,2}/g,"%"),String(r)}function gt(e="",t=""){return 1===compareVersions(e,t)}function gte(e="",t=""){return compareVersions(e,t)>-1}function formatDurationToMicrosecondsGranularity(e){return Math.round(1e3*e)/1e3}function attach(e,t,n,r){const{getCurrentComponentInfo:o}=n;return{cleanup(){},clearErrorsAndWarnings(){},clearErrorsForElementID(){},clearWarningsForElementID(){},getSerializedElementValueByPath(){},deletePath(){},findHostInstancesForElementID:()=>null,findLastKnownRectsForID:()=>null,flushInitialOperations(){},getBestMatchForTrackedPath:()=>null,getComponentStack:function(e){if(void 0===o)return null;const t=o();if(null===t)return null;if(t.debugTask)return null;const n=null!=t.debugStack;let r="";if(n){const n=formatOwnerStack(e);n&&(r+="\n"+n),r+=function(e){try{let t="";if(!e.owner&&"string"==typeof e.name)return describeBuiltInComponentFrame(e.name);let n=e;for(;n;){const e=n.debugStack;if(null==e)break;n=n.owner,n&&(t+="\n"+formatOwnerStack(e))}return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}(t)}return{enableOwnerStacks:n,componentStack:r}},getDisplayNameForElementID:()=>null,getNearestMountedDOMNode:()=>null,getElementIDForHostInstance:()=>null,getSuspenseNodeIDForHostInstance:()=>null,getInstanceAndStyle:()=>({instance:null,style:null}),getOwnersList:()=>null,getPathForElement:()=>null,getProfilingData(){throw new Error("getProfilingData not supported by this renderer")},handleCommitFiberRoot(){},handleCommitFiberUnmount(){},handlePostCommitFiberRoot(){},hasElementWithId:()=>!1,inspectElement:(e,t,n)=>({id:t,responseID:e,type:"not-found"}),logElementToConsole(){},getElementAttributeByPath(){},getElementSourceFunctionById(){},onErrorOrWarning:function(e,t){if(void 0===o)return;const n=o();if(null===n)return;if(t.length>3&&"string"==typeof t[0]&&t[0].startsWith("%c%s%c ")&&"string"==typeof t[1]&&"string"==typeof t[2]&&"string"==typeof t[3]){const e=t[0].slice(7),r=t[2].trim();t=t.slice(4),r!==n.env?t.unshift("["+r+"] "+e):t.unshift(e)}const r=formatConsoleArgumentsToSingleString(...t);let s=x.get(n);void 0===s&&(s={errors:new Map,errorsCount:0,warnings:new Map,warningsCount:0},x.set(n,s));const i="error"===e?s.errors:s.warnings,a=i.get(r)||0;i.set(r,a+1),"error"===e?s.errorsCount++:s.warningsCount++},overrideError(){},overrideSuspense(){},overrideSuspenseMilestone(){},overrideValueAtPath(){},renamePath(){},renderer:n,setTraceUpdatesEnabled(){},setTrackedPath(){},startProfiling(){},stopProfiling(){},storeAsGlobal(){},supportsTogglingSuspense:!1,updateComponentFilters(){},getEnvironmentNames:()=>[]}}const De=/^((?:.*".+")?[^@]*)@(.+):(\d+):(\d+)$/;const xe=/^\s*at .*(\S+:\d+|\(native\))/m;function parseStackTraceFromString(e,t){return e.match(xe)?function(e,t){e.startsWith("Error: react-stack-top-frame\n")&&(e=e.slice(29));let n=e.indexOf("react_stack_bottom_frame");-1===n&&(n=e.indexOf("react-stack-bottom-frame")),-1!==n&&(n=e.lastIndexOf("\n",n)),-1!==n&&(e=e.slice(0,n));const r=e.split("\n"),o=[];for(let e=t;e<r.length;e++){const t=He.exec(r[e]);if(!t)continue;let n=t[1]||"",s="async "===t[8];"<anonymous>"===n?n="":n.startsWith("async ")&&(n=n.slice(5),s=!0);let i=t[2]||t[5]||"";"<anonymous>"===i&&(i="");const a=+(t[3]||t[6]||0),l=+(t[4]||t[7]||0);o.push([n,i,a,l,0,0,s])}return o}(e,t):function(e,t){let n=e.indexOf("react_stack_bottom_frame");-1===n&&(n=e.indexOf("react-stack-bottom-frame")),-1!==n&&(n=e.lastIndexOf("\n",n)),-1!==n&&(e=e.slice(0,n));const r=e.split("\n"),o=[];for(let e=t;e<r.length;e++){const t=De.exec(r[e]);if(!t)continue;const n=t[1]||"",s=t[2]||"",i=+t[3],a=+t[4];o.push([n,s,i,a,0,0,!1])}return o}(e,t)}let Ne=0,Oe=null;const Pe=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;function getMethodCallName(e){const t=e.getTypeName(),n=e.getMethodName(),r=e.getFunctionName();let o="";return r?(t&&Pe.test(r)&&r!==t&&(o+=t+"."),o+=r,!n||r===n||r.endsWith("."+n)||r.endsWith(" "+n)||(o+=" [as "+n+"]")):(t&&(o+=t+"."),o+=n||"<anonymous>"),o}function collectStackTrace(e,t){const n=[];for(let e=Ne;e<t.length;e++){const r=t[e];let o="function"==typeof r.getFunctionName?r.getFunctionName()||"<anonymous>":"";if(o.includes("react_stack_bottom_frame")||o.includes("react-stack-bottom-frame"))break;if("function"==typeof r.isNative&&r.isNative()){const e="function"==typeof r.isAsync&&r.isAsync();n.push([o,"",0,0,0,0,e])}else{"function"==typeof r.isConstructor&&r.isConstructor()?o="new "+o:"function"!=typeof r.isToplevel||r.isToplevel()||(o=getMethodCallName(r)),"<anonymous>"===o&&(o="");let e="function"==typeof r.getScriptNameOrSourceURL?r.getScriptNameOrSourceURL()||"<anonymous>":"";if("<anonymous>"===e&&(e="","function"==typeof r.isEval&&r.isEval())){const t="function"==typeof r.getEvalOrigin?r.getEvalOrigin():null;t&&(e=t.toString()+", <anonymous>")}const t="function"==typeof r.getLineNumber&&r.getLineNumber()||0,s="function"==typeof r.getColumnNumber&&r.getColumnNumber()||0,i="function"==typeof r.getEnclosingLineNumber&&r.getEnclosingLineNumber()||0,a="function"==typeof r.getEnclosingColumnNumber&&r.getEnclosingColumnNumber()||0,l="function"==typeof r.isAsync&&r.isAsync();n.push([o,e,t,s,i,a,l])}}Oe=n;let r=(e.name||"Error")+": "+(e.message||"");for(let e=0;e<t.length;e++)r+="\n at "+t[e].toString();return r}const He=/^ *at (?:(.+) \((?:(.+):(\d+):(\d+)|\<anonymous\>)\)|(?:async )?(.+):(\d+):(\d+)|\<anonymous\>)$/,Ae=new WeakMap;function parseStackTrace(e,t){const n=Ae.get(e);if(void 0!==n)return n;Oe=null,Ne=t;const r=Error.prepareStackTrace;let o;Error.prepareStackTrace=collectStackTrace;try{o=String(e.stack)}finally{Error.prepareStackTrace=r}if(null!==Oe){const t=Oe;return Oe=null,Ae.set(e,t),t}const s=parseStackTraceFromString(o,t);return Ae.set(e,s),s}function extractLocationFromComponentStack(e){const t=parseStackTraceFromString(e,0);for(let e=0;e<t.length;e++){const[n,r,o,s,i,a]=t[e];if(-1!==r.indexOf(":"))return[n,r,i||o,a||s]}return null}var Me=__webpack_require__(8830);const ze=60111,$e="Symbol(react.concurrent_mode)",Be=60110,Le="Symbol(react.context)",je="Symbol(react.server_context)",Ue="Symbol(react.async_mode)",Ve=60112,We="Symbol(react.forward_ref)",qe="Symbol(react.lazy)",Ye=60115,Ke="Symbol(react.memo)",Ge=60114,Qe="Symbol(react.profiler)",Xe=60109,Ze="Symbol(react.provider)",Je="Symbol(react.consumer)",et=60119,tt="Symbol(react.scope)",nt=60108,rt="Symbol(react.strict_mode)",ot=Symbol.for("react.memo_cache_sentinel"),st=Symbol.for("react.optimistic_key"),it=!1;const at="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function describeFiber(e,t,n){const{HostHoistable:r,HostSingleton:o,HostComponent:s,LazyComponent:i,SuspenseComponent:a,SuspenseListComponent:l,FunctionComponent:u,IndeterminateComponent:c,SimpleMemoComponent:d,ForwardRef:f,ClassComponent:p,ViewTransitionComponent:m,ActivityComponent:h}=e;switch(t.tag){case r:case o:case s:return describeBuiltInComponentFrame(t.type);case i:return describeBuiltInComponentFrame("Lazy");case a:return describeBuiltInComponentFrame("Suspense");case l:return describeBuiltInComponentFrame("SuspenseList");case m:return describeBuiltInComponentFrame("ViewTransition");case h:return describeBuiltInComponentFrame("Activity");case u:case c:case d:return describeFunctionComponentFrame(t.type,n);case f:return describeFunctionComponentFrame(t.type.render,n);case p:return function(e,t){return describeNativeComponentFrame(e,!0,t)}(t.type,n);default:return""}}const lt=new Map;function crawlData(e,t,n){null!=e&&(be(e)?e.forEach((e=>{null!=e&&(be(e)?crawlData(e,t,n):crawlObjectProperties(e,t,n))})):crawlObjectProperties(e,t,n),n=Object.fromEntries(Object.entries(n).sort()))}function crawlObjectProperties(e,t,n){Object.keys(e).forEach((r=>{const o=e[r];if("string"==typeof o)if(r===o)t.add(r);else{const e=function(e){if(lt.has(e))return lt.get(e);for(let t=0;t<document.styleSheets.length;t++){const n=document.styleSheets[t];let r=null;try{r=n.cssRules}catch(e){continue}for(let t=0;t<r.length;t++){if(!(r[t]instanceof CSSStyleRule))continue;const n=r[t],{cssText:o,selectorText:s,style:i}=n;if(null!=s&&s.startsWith(`.${e}`)){const t=o.match(/{ *([a-z\-]+):/);if(null!==t){const n=t[1],r=i.getPropertyValue(n);return lt.set(e,r),r}return null}}}return null}(o);null!=e&&(n[r]=e)}else{const e={};n[r]=e,crawlData([o],t,e)}}))}const ut={"--font-size-monospace-small":"9px","--font-size-monospace-normal":"11px","--font-size-monospace-large":"15px","--font-size-sans-small":"10px","--font-size-sans-normal":"12px","--font-size-sans-large":"14px","--line-height-data":"18px"},ct=(parseInt({"--font-size-monospace-small":"10px","--font-size-monospace-normal":"13px","--font-size-monospace-large":"17px","--font-size-sans-small":"12px","--font-size-sans-normal":"14px","--font-size-sans-large":"16px","--line-height-data":"22px"}["--line-height-data"],10),parseInt(ut["--line-height-data"],10),31),dt=1,ft=10;let pt=null,mt="undefined"!=typeof performance&&"function"==typeof performance.mark&&"function"==typeof performance.clearMarks,ht=!1;if(mt){const e="__v3",t={};Object.defineProperty(t,"startTime",{get:function(){return ht=!0,0},set:function(){}});try{performance.mark(e,t)}catch(e){}finally{performance.clearMarks(e)}}ht&&(pt=performance);const yt="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now();function createProfilingHooks({getDisplayNameForFiber:e,getIsProfiling:t,getLaneLabelMap:n,workTagMap:r,currentDispatcherRef:o,reactVersion:s}){let i=0,a=null,l=[],u=null,c=new Map,d=!1,f=!1;function getRelativeTime(){const e=yt();return u?(0===u.startTime&&(u.startTime=e-ft),e-u.startTime):0}function getInternalModuleRanges(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges){const e=__REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges();if(shared_isArray(e))return e}return null}function laneToLanesArray(e){const t=[];let n=1;for(let r=0;r<ct;r++)n&e&&t.push(n),n*=2;return t}const p="function"==typeof n?n():null;function markAndClear(e){pt.mark(e),pt.clearMarks(e)}function recordReactMeasureStarted(e,t){let n=0;if(l.length>0){const e=l[l.length-1];n="render-idle"===e.type?e.depth:e.depth+1}const r=laneToLanesArray(t),o={type:e,batchUID:i,depth:n,lanes:r,timestamp:getRelativeTime(),duration:0};if(l.push(o),u){const{batchUIDToMeasuresMap:e,laneToReactMeasureMap:t}=u;let n=e.get(i);null!=n?n.push(o):e.set(i,[o]),r.forEach((e=>{n=t.get(e),n&&n.push(o)}))}}function recordReactMeasureCompleted(e){const t=getRelativeTime();if(0===l.length)return void console.error('Unexpected type "%s" completed at %sms while currentReactMeasuresStack is empty.',e,t);const n=l.pop();n.type!==e&&console.error('Unexpected type "%s" completed at %sms before "%s" completed.',e,t,n.type),n.duration=t-n.timestamp,u&&(u.duration=getRelativeTime()+ft)}const m=new("function"==typeof WeakMap?WeakMap:Map);let h=0;return{getTimelineData:function(){return u},profilingHooks:{markCommitStarted:function(e){d&&(recordReactMeasureStarted("commit",e),f=!0,ht&&(markAndClear(`--commit-start-${e}`),function(){markAndClear(`--react-version-${s}`),markAndClear(`--profiler-version-${dt}`);const e=getInternalModuleRanges();if(e)for(let t=0;t<e.length;t++){const n=e[t];if(shared_isArray(n)&&2===n.length){const[n,r]=e[t];markAndClear(`--react-internal-module-start-${n}`),markAndClear(`--react-internal-module-stop-${r}`)}}null!=p&&markAndClear(`--react-lane-labels-${Array.from(p.values()).join(",")}`)}()))},markCommitStopped:function(){d&&(recordReactMeasureCompleted("commit"),recordReactMeasureCompleted("render-idle"),ht&&markAndClear("--commit-stop"))},markComponentRenderStarted:function(t){if(!d)return;const n=e(t)||"Unknown";a={componentName:n,duration:0,timestamp:getRelativeTime(),type:"render",warning:null},ht&&markAndClear(`--component-render-start-${n}`)},markComponentRenderStopped:function(){d&&(a&&(u&&u.componentMeasures.push(a),a.duration=getRelativeTime()-a.timestamp,a=null),ht&&markAndClear("--component-render-stop"))},markComponentPassiveEffectMountStarted:function(t){if(!d)return;const n=e(t)||"Unknown";a={componentName:n,duration:0,timestamp:getRelativeTime(),type:"passive-effect-mount",warning:null},ht&&markAndClear(`--component-passive-effect-mount-start-${n}`)},markComponentPassiveEffectMountStopped:function(){d&&(a&&(u&&u.componentMeasures.push(a),a.duration=getRelativeTime()-a.timestamp,a=null),ht&&markAndClear("--component-passive-effect-mount-stop"))},markComponentPassiveEffectUnmountStarted:function(t){if(!d)return;const n=e(t)||"Unknown";a={componentName:n,duration:0,timestamp:getRelativeTime(),type:"passive-effect-unmount",warning:null},ht&&markAndClear(`--component-passive-effect-unmount-start-${n}`)},markComponentPassiveEffectUnmountStopped:function(){d&&(a&&(u&&u.componentMeasures.push(a),a.duration=getRelativeTime()-a.timestamp,a=null),ht&&markAndClear("--component-passive-effect-unmount-stop"))},markComponentLayoutEffectMountStarted:function(t){if(!d)return;const n=e(t)||"Unknown";a={componentName:n,duration:0,timestamp:getRelativeTime(),type:"layout-effect-mount",warning:null},ht&&markAndClear(`--component-layout-effect-mount-start-${n}`)},markComponentLayoutEffectMountStopped:function(){d&&(a&&(u&&u.componentMeasures.push(a),a.duration=getRelativeTime()-a.timestamp,a=null),ht&&markAndClear("--component-layout-effect-mount-stop"))},markComponentLayoutEffectUnmountStarted:function(t){if(!d)return;const n=e(t)||"Unknown";a={componentName:n,duration:0,timestamp:getRelativeTime(),type:"layout-effect-unmount",warning:null},ht&&markAndClear(`--component-layout-effect-unmount-start-${n}`)},markComponentLayoutEffectUnmountStopped:function(){d&&(a&&(u&&u.componentMeasures.push(a),a.duration=getRelativeTime()-a.timestamp,a=null),ht&&markAndClear("--component-layout-effect-unmount-stop"))},markComponentErrored:function(t,n,r){if(!d)return;const o=e(t)||"Unknown",s=null===t.alternate?"mount":"update";let i="";null!==n&&"object"==typeof n&&"string"==typeof n.message?i=n.message:"string"==typeof n&&(i=n),u&&u.thrownErrors.push({componentName:o,message:i,phase:s,timestamp:getRelativeTime(),type:"thrown-error"}),ht&&markAndClear(`--error-${o}-${s}-${i}`)},markComponentSuspended:function(t,n,r){if(!d)return;const o=m.has(n)?"resuspend":"suspend",s=function(e){return m.has(e)||m.set(e,h++),m.get(e)}(n),i=e(t)||"Unknown",a=null===t.alternate?"mount":"update",l=n.displayName||"";let c=null;c={componentName:i,depth:0,duration:0,id:`${s}`,phase:a,promiseName:l,resolution:"unresolved",timestamp:getRelativeTime(),type:"suspense",warning:null},u&&u.suspenseEvents.push(c),ht&&(markAndClear(`--suspense-${o}-${s}-${i}-${a}-${r}-${l}`),n.then((()=>{c&&(c.duration=getRelativeTime()-c.timestamp,c.resolution="resolved"),ht&&markAndClear(`--suspense-resolved-${s}-${i}`)}),(()=>{c&&(c.duration=getRelativeTime()-c.timestamp,c.resolution="rejected"),ht&&markAndClear(`--suspense-rejected-${s}-${i}`)})))},markLayoutEffectsStarted:function(e){d&&(recordReactMeasureStarted("layout-effects",e),ht&&markAndClear(`--layout-effects-start-${e}`))},markLayoutEffectsStopped:function(){d&&(recordReactMeasureCompleted("layout-effects"),ht&&markAndClear("--layout-effects-stop"))},markPassiveEffectsStarted:function(e){d&&(recordReactMeasureStarted("passive-effects",e),ht&&markAndClear(`--passive-effects-start-${e}`))},markPassiveEffectsStopped:function(){d&&(recordReactMeasureCompleted("passive-effects"),ht&&markAndClear("--passive-effects-stop"))},markRenderStarted:function(e){d&&(f&&(f=!1,i++),0!==l.length&&"render-idle"===l[l.length-1].type||recordReactMeasureStarted("render-idle",e),recordReactMeasureStarted("render",e),ht&&markAndClear(`--render-start-${e}`))},markRenderYielded:function(){d&&(recordReactMeasureCompleted("render"),ht&&markAndClear("--render-yield"))},markRenderStopped:function(){d&&(recordReactMeasureCompleted("render"),ht&&markAndClear("--render-stop"))},markRenderScheduled:function(e){d&&(u&&u.schedulingEvents.push({lanes:laneToLanesArray(e),timestamp:getRelativeTime(),type:"schedule-render",warning:null}),ht&&markAndClear(`--schedule-render-${e}`))},markForceUpdateScheduled:function(t,n){if(!d)return;const r=e(t)||"Unknown";u&&u.schedulingEvents.push({componentName:r,lanes:laneToLanesArray(n),timestamp:getRelativeTime(),type:"schedule-force-update",warning:null}),ht&&markAndClear(`--schedule-forced-update-${n}-${r}`)},markStateUpdateScheduled:function(t,n){if(!d)return;const r=e(t)||"Unknown";if(u){const e={componentName:r,lanes:laneToLanesArray(n),timestamp:getRelativeTime(),type:"schedule-state-update",warning:null};c.set(e,function(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n.return;return t}(t)),u.schedulingEvents.push(e)}ht&&markAndClear(`--schedule-state-update-${n}-${r}`)}},toggleProfilingStatus:function(e,t=!1){if(d!==e)if(d=e,d){const e=new Map;if(ht){const e=getInternalModuleRanges();if(e)for(let t=0;t<e.length;t++){const n=e[t];if(shared_isArray(n)&&2===n.length){const[n,r]=e[t];markAndClear(`--react-internal-module-start-${n}`),markAndClear(`--react-internal-module-stop-${r}`)}}}const n=new Map;let r=1;for(let e=0;e<ct;e++)n.set(r,[]),r*=2;i=0,a=null,l=[],c=new Map,t&&(u={internalModuleSourceToRanges:e,laneToLabelMap:p||new Map,reactVersion:s,componentMeasures:[],schedulingEvents:[],suspenseEvents:[],thrownErrors:[],batchUIDToMeasuresMap:new Map,duration:0,laneToReactMeasureMap:n,startTime:0,flamechart:[],nativeEvents:[],networkMeasures:[],otherUserTimingMarks:[],snapshots:[],snapshotHeight:0}),f=!0}else null!==u&&u.schedulingEvents.forEach((e=>{if("schedule-state-update"===e.type){const t=c.get(e);t&&null!=o&&(e.componentStack=t.reduce(((e,t)=>e+describeFiber(r,t,o)),""))}})),c.clear()}}}const vt=Object.prototype.toString;const bt=0,wt=1,St=2;function createFiberInstance(e){return{kind:bt,id:getUID(),parent:null,firstChild:null,nextSibling:null,source:null,logCount:0,treeBaseDuration:0,suspendedBy:null,suspenseNode:null,data:e}}function createVirtualInstance(e){return{kind:wt,id:getUID(),parent:null,firstChild:null,nextSibling:null,source:null,logCount:0,treeBaseDuration:0,suspendedBy:null,suspenseNode:null,data:e}}const kt=0,Ct=1,Et=2,It=4;function createSuspenseNode(e){return e.suspenseNode={instance:e,parent:null,firstChild:null,nextSibling:null,rects:null,suspendedBy:new Map,environments:new Map,endTime:0,hasUniqueSuspenders:!1,hasUnknownSuspenders:!1}}function getDispatcherRef(e){if(void 0===e.currentDispatcherRef)return;const t=e.currentDispatcherRef;return void 0===t.H&&void 0!==t.current?{get H(){return t.current},set H(e){t.current=e}}:t}const _t="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now();function getInternalReactConstants(e){let t={ImmediatePriority:99,UserBlockingPriority:98,NormalPriority:97,LowPriority:96,IdlePriority:95,NoPriority:90};gt(e,"17.0.2")&&(t={ImmediatePriority:1,UserBlockingPriority:2,NormalPriority:3,LowPriority:4,IdlePriority:5,NoPriority:0});let n=0;gte(e,"18.0.0-alpha")?n=24:gte(e,"16.9.0")?n=1:gte(e,"16.3.0")&&(n=2);let r=null;function getTypeSymbol(e){const t="object"==typeof e&&null!==e?e.$$typeof:e;return"symbol"==typeof t?t.toString():t}r=gt(e,"17.0.1")?{CacheComponent:24,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:26,HostSingleton:27,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:28,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:23,MemoComponent:14,Mode:8,OffscreenComponent:22,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:25,YieldComponent:-1,Throw:29,ViewTransitionComponent:30,ActivityComponent:31}:gte(e,"17.0.0-alpha")?{CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:24,MemoComponent:14,Mode:8,OffscreenComponent:23,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:-1,YieldComponent:-1,Throw:-1,ViewTransitionComponent:-1,ActivityComponent:-1}:gte(e,"16.6.0-beta.0")?{CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:-1,MemoComponent:14,Mode:8,OffscreenComponent:-1,Profiler:12,ScopeComponent:-1,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:-1,YieldComponent:-1,Throw:-1,ViewTransitionComponent:-1,ActivityComponent:-1}:gte(e,"16.4.3-alpha")?{CacheComponent:-1,ClassComponent:2,ContextConsumer:11,ContextProvider:12,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:-1,ForwardRef:13,Fragment:9,FunctionComponent:0,HostComponent:7,HostPortal:6,HostRoot:5,HostHoistable:-1,HostSingleton:-1,HostText:8,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:4,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:10,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,TracingMarkerComponent:-1,YieldComponent:-1,Throw:-1,ViewTransitionComponent:-1,ActivityComponent:-1}:{CacheComponent:-1,ClassComponent:2,ContextConsumer:12,ContextProvider:13,CoroutineComponent:7,CoroutineHandlerPhase:8,DehydratedSuspenseComponent:-1,ForwardRef:14,Fragment:10,FunctionComponent:1,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:0,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:11,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,TracingMarkerComponent:-1,YieldComponent:9,Throw:-1,ViewTransitionComponent:-1,ActivityComponent:-1};const{CacheComponent:o,ClassComponent:s,IncompleteClassComponent:i,IncompleteFunctionComponent:a,FunctionComponent:l,IndeterminateComponent:u,ForwardRef:c,HostRoot:d,HostHoistable:f,HostSingleton:p,HostComponent:m,HostPortal:h,HostText:g,Fragment:y,LazyComponent:v,LegacyHiddenComponent:b,MemoComponent:w,OffscreenComponent:S,Profiler:k,ScopeComponent:C,SimpleMemoComponent:E,SuspenseComponent:I,SuspenseListComponent:_,TracingMarkerComponent:T,Throw:F,ViewTransitionComponent:R,ActivityComponent:D}=r;function resolveFiberType(e){switch(getTypeSymbol(e)){case Ye:case Ke:return resolveFiberType(e.type);case Ve:case We:return e.render;default:return e}}return{getDisplayNameForFiber:function getDisplayNameForFiber(e,t=!1){const{elementType:n,type:r,tag:x}=e;let N=r;"object"==typeof r&&null!==r&&(N=resolveFiberType(r));let O=null;if(!t&&(null!=e.updateQueue?.memoCache||Array.isArray(e.memoizedState?.memoizedState)&&e.memoizedState.memoizedState[0]?.[ot]||e.memoizedState?.memoizedState?.[ot])){const t=getDisplayNameForFiber(e,!0);return null==t?null:`Forget(${t})`}switch(x){case D:return"Activity";case o:return"Cache";case s:case i:case a:case l:case u:return getDisplayName(N);case c:return getWrappedDisplayName(n,N,"ForwardRef","Anonymous");case d:const t=e.stateNode;return null!=t&&null!==t._debugRootType?t._debugRootType:null;case m:case p:case f:return r;case h:case g:return null;case y:return"Fragment";case v:return"Lazy";case w:case E:return getWrappedDisplayName(n,N,"Memo","Anonymous");case I:return"Suspense";case b:return"LegacyHidden";case S:return"Offscreen";case C:return"Scope";case _:return"SuspenseList";case k:return"Profiler";case T:return"TracingMarker";case R:return"ViewTransition";case F:return"Error";default:switch(getTypeSymbol(r)){case ze:case $e:case Ue:return null;case Xe:case Ze:return O=e.type._context||e.type.context,`${O.displayName||"Context"}.Provider`;case Be:case Le:case je:return void 0===e.type._context&&e.type.Provider===e.type?(O=e.type,`${O.displayName||"Context"}.Provider`):(O=e.type._context||e.type,`${O.displayName||"Context"}.Consumer`);case Je:return O=e.type._context,`${O.displayName||"Context"}.Consumer`;case nt:case rt:return null;case Ge:case Qe:return`Profiler(${e.memoizedProps.id})`;case et:case tt:return"Scope";default:return null}}},getTypeSymbol,ReactPriorityLevels:t,ReactTypeOfWork:r,StrictModeBits:n,SuspenseyImagesMode:32}}const Tt=new Set,Ft=new Map,Rt=new Map;let Dt=null,xt=null;const Nt=new Map,Ot=new Map,Pt=new Map;function getPublicInstance(e){if("object"==typeof e&&null!==e){if("object"==typeof e.canonical&&null!==e.canonical&&"object"==typeof e.canonical.publicInstance&&null!==e.canonical.publicInstance)return e.canonical.publicInstance;if("number"==typeof e._nativeTag)return e._nativeTag}return e}function aquireHostInstance(e,t){const n=getPublicInstance(t);Ot.set(n,e)}function releaseHostInstance(e,t){const n=getPublicInstance(t);Ot.get(n)===e&&Ot.delete(n)}function aquireHostResource(e,t){const n=t&&t.instance;if(n){const t=getPublicInstance(n);let r=Pt.get(t);void 0===r&&(r=new Set,Pt.set(t,r),Ot.set(t,e)),r.add(e)}}function releaseHostResource(e,t){const n=t&&t.instance;if(n){const t=getPublicInstance(n),r=Pt.get(t);if(void 0!==r)if(r.delete(e),0===r.size)Pt.delete(t),Ot.delete(t);else if(Ot.get(t)===e)for(const e of r){Ot.set(t,e);break}}}function renderer_attach(w,S,k,C,E,I,_){const T=k.reconcilerVersion||k.version,{getDisplayNameForFiber:F,getTypeSymbol:R,ReactPriorityLevels:D,ReactTypeOfWork:N,StrictModeBits:O,SuspenseyImagesMode:P}=getInternalReactConstants(T),{ActivityComponent:H,ClassComponent:A,ContextConsumer:M,DehydratedSuspenseComponent:z,ForwardRef:$,Fragment:B,FunctionComponent:L,HostRoot:j,HostHoistable:U,HostSingleton:V,HostPortal:W,HostComponent:q,HostText:Y,IncompleteClassComponent:K,IncompleteFunctionComponent:G,IndeterminateComponent:Q,LegacyHiddenComponent:be,MemoComponent:we,OffscreenComponent:Se,SimpleMemoComponent:ke,SuspenseComponent:Ce,SuspenseListComponent:Ee,TracingMarkerComponent:Ie,Throw:_e,ViewTransitionComponent:Te}=N,{ImmediatePriority:Fe,UserBlockingPriority:Re,NormalPriority:De,LowPriority:xe,IdlePriority:Ne,NoPriority:Oe}=D,{getLaneLabelMap:Pe,injectProfilingHooks:He,overrideHookState:Ae,overrideHookStateDeletePath:je,overrideHookStateRenamePath:Ve,overrideProps:We,overridePropsDeletePath:Ye,overridePropsRenamePath:Ke,scheduleRefresh:et,setErrorHandler:tt,setSuspenseHandler:ot,scheduleUpdate:lt,scheduleRetry:ut,getCurrentFiber:ct}=k,dt="function"==typeof tt&&"function"==typeof lt,ft="function"==typeof ot&&"function"==typeof lt,pt=gte(T,"19.2.0");"function"==typeof et&&(k.scheduleRefresh=(...e)=>{try{w.emit("fastRefreshScheduled")}finally{return et(...e)}});let mt=null,ht=null;if("function"==typeof He){const e=createProfilingHooks({getDisplayNameForFiber:F,getIsProfiling:()=>fn,getLaneLabelMap:Pe,currentDispatcherRef:getDispatcherRef(k),workTagMap:N,reactVersion:T});He(e.profilingHooks),mt=e.getTimelineData,ht=e.toggleProfilingStatus}const yt=new WeakMap;let Pt=!1;function clearConsoleLogsHelper(e,t){const n=Rt.get(e);if(void 0!==n){let e;if(n.kind===bt){const t=n.data;e=yt.get(t),void 0===e&&null!==t.alternate&&(e=yt.get(t.alternate))}else{const t=n.data;e=x.get(t)}if(void 0!==e){"error"===t?(e.errors.clear(),e.errorsCount=0):(e.warnings.clear(),e.warningsCount=0);recordConsoleLogs(n,e)&&(flushPendingEvents(null),updateMostRecentlyInspectedElementIfNecessary(n.id))}}}function updateMostRecentlyInspectedElementIfNecessary(e){null!==sn&&sn.id===e&&(an=!0)}function debug(t,n,r,o=""){if(e){const e=n.kind===wt?n.data.name||"null":n.data.tag+":"+(F(n.data)||"null"),s=n.kind===St?"<no id>":n.id,i=null===r?"":r.kind===wt?r.data.name||"null":r.data.tag+":"+(F(r.data)||"null"),a=null===r||r.kind===St?"<no id>":r.id;console.groupCollapsed(`[renderer] %c${t} %c${e} (${s}) %c${r?`${i} (${a})`:""} %c${o}`,"color: red; font-weight: bold;","color: blue;","color: purple;","color: black;"),console.log((new Error).stack.split("\n").slice(1).join("\n")),console.groupEnd()}}const Ht=new Set,At=new Set,Mt=new Set,zt=new Set;let $t=!0,Bt=!1;const Lt=new Set;function applyComponentFilters(e,t){Mt.clear(),Ht.clear(),At.clear(),zt.clear();const n=Dt;Dt=null,xt=null,$t=!0,e.forEach((e=>{if(e.isEnabled)switch(e.type){case pe:e.isValid&&""!==e.value&&Ht.add(new RegExp(e.value,"i"));break;case fe:Mt.add(e.value);break;case me:e.isValid&&""!==e.value&&At.add(new RegExp(e.value,"i"));break;case he:Ht.add(new RegExp("\\("));break;case ge:zt.add(e.value);break;case ye:null!==t&&t.tag===H&&(xt=t,$t=!1,e.rendererID!==S&&(Dt=n));break;default:console.warn(`Invalid component filter type "${e.type}"`)}}))}function isFiberHydrated(e){if(-1===Se)throw new Error("not implemented for legacy suspense");switch(e.tag){case j:return!e.memoizedState.isDehydrated;case Ce:const t=e.memoizedState;return null===t||null===t.dehydrated;default:throw new Error("not implemented for work tag "+e.tag)}}function shouldFilterVirtual(e,t){if(!$t)return!0;if(Mt.has(J))return!0;if(Ht.size>0){const t=e.name;if(null!=t)for(const e of Ht)if(e.test(t))return!0}return!(null!=e.env&&!zt.has(e.env)||null!==t&&!zt.has(t))}function shouldFilterFiber(e){const{tag:t,type:n,key:r}=e;if(t!==j&&!$t)return!0;switch(t){case z:case W:case Y:case be:case Se:case _e:return!0;case j:return!1;case B:return null===r;default:switch(R(n)){case ze:case $e:case Ue:case nt:case rt:return!0}}const o=getElementTypeForFiber(e);if(Mt.has(o))return!0;if(Ht.size>0){const t=F(e);if(null!=t)for(const e of Ht)if(e.test(t))return!0}if(zt.has("Client"))switch(t){case A:case K:case G:case L:case Q:case $:case we:case ke:return!0}return!1}function getElementTypeForFiber(e){const{type:t,tag:n}=e;switch(n){case H:return de;case A:case K:return X;case G:case L:case Q:return J;case $:return ee;case j:return se;case q:case U:case V:return te;case W:case Y:case B:return re;case we:case ke:return ne;case Ce:return ie;case Ee:return ae;case Ie:return le;case Te:return ce;default:switch(R(t)){case ze:case $e:case Ue:return re;case Xe:case Ze:case Be:case Le:return Z;case nt:case rt:return re;case Ge:case Qe:return oe;default:return re}}}Array.isArray(_)?applyComponentFilters(_,null):_.then((e=>{applyComponentFilters(e,null)}));let jt=null;function untrackFiber(e,t){yn.size>0&&(yn.delete(t),t.alternate&&yn.delete(t.alternate),0===yn.size&&null!=tt&&tt(shouldErrorFiberAlwaysNull)),vn.size>0&&(vn.delete(t),t.alternate&&vn.delete(t.alternate),0===vn.size&&null!=ot&&ot(shouldSuspendFiberAlwaysFalse)),t.tag===U?releaseHostResource(e,t.memoizedState):t.tag!==q&&t.tag!==Y&&t.tag!==V||releaseHostInstance(e,t.stateNode);for(let n=t.child;null!==n;n=n.sibling)shouldFilterFiber(n)&&untrackFiber(e,n)}function getChangeDescription(e,t){switch(t.tag){case A:if(null===e)return{context:null,didHooksChange:!1,isFirstMount:!0,props:null,state:null};return{context:getContextChanged(e,t),didHooksChange:!1,isFirstMount:!1,props:getChangedKeys(e.memoizedProps,t.memoizedProps),state:getChangedKeys(e.memoizedState,t.memoizedState)};case G:case L:case Q:case $:case we:case ke:if(null===e)return{context:null,didHooksChange:!1,isFirstMount:!0,props:null,state:null};{const n=function(e,t){if(null==e||null==t)return null;const n=[];let r=0;function traverse(e,t){for(let o=0;o<e.length;o++){const s=e[o],i=t[o];s.subHooks.length>0&&i.subHooks.length>0?traverse(s.subHooks,i.subHooks):(didStatefulHookChange(s,i)&&n.push(r),r++)}}return traverse(e,t),n}(inspectHooks(e),inspectHooks(t));return{context:getContextChanged(e,t),didHooksChange:null!==n&&n.length>0,isFirstMount:!1,props:getChangedKeys(e.memoizedProps,t.memoizedProps),state:null,hooks:n}}default:return null}}function getContextChanged(e,t){let n=e.dependencies&&e.dependencies.firstContext,r=t.dependencies&&t.dependencies.firstContext;for(;n&&r;){if(n.context!==r.context)return!1;if(!at(n.memoizedValue,r.memoizedValue))return!0;n=n.next,r=r.next}return!1}function didStatefulHookChange(e,t){return!(!0!==e.isStateEditable&&"SyncExternalStore"!==e.name&&"Transition"!==e.name&&"ActionState"!==e.name&&"FormState"!==e.name)&&e.value!==t.value}function getChangedKeys(e,t){if(null==e||null==t)return null;const n=new Set([...Object.keys(e),...Object.keys(t)]),r=[];for(const o of n)e[o]!==t[o]&&r.push(o);return r}function didFiberRender(e,t){switch(t.tag){case A:case L:case M:case we:case ke:case $:const r=1;return((void 0!==(n=t).flags?n.flags:n.effectTag)&r)===r;default:return e.memoizedProps!==t.memoizedProps||e.memoizedState!==t.memoizedState||e.ref!==t.ref}var n}const Ut=[],Vt=[],Wt=[],qt=new Set;let Yt=[];const Kt=new Map;let Gt=0;function pushOperation(e){Ut.push(e)}function shouldBailoutWithPendingOperations(){return!(fn&&null!=un&&un.durations.length>0)&&(0===Ut.length&&0===Vt.length&&0===Wt.length&&0===qt.size)}function recordConsoleLogs(e,t){if(void 0===t)return 0!==e.logCount&&(e.logCount=0,pushOperation(s),pushOperation(e.id),pushOperation(0),pushOperation(0),!0);{const n=t.errorsCount+t.warningsCount;return e.logCount!==n&&(e.logCount=n,pushOperation(s),pushOperation(e.id),pushOperation(t.errorsCount),pushOperation(t.warningsCount),!0)}}function flushPendingEvents(e){if(shouldBailoutWithPendingOperations())return;const t=Vt.length,r=Wt.length,o=qt.size,s=new Array(3+Gt+(r>0?2+r:0)+(t>0?2+t:0)+Ut.length+(o>0?2+4*o:0));let i=0;if(s[i++]=S,s[i++]=null===e?-1:e.id,s[i++]=Gt,Kt.forEach(((e,t)=>{const n=e.encodedString,r=n.length;s[i++]=r;for(let e=0;e<r;e++)s[i+e]=n[e];i+=r})),r>0){s[i++]=l,s[i++]=r;for(let e=0;e<Wt.length;e++)s[i++]=Wt[e]}if(t>0){s[i++]=n,s[i++]=t;for(let e=0;e<Vt.length;e++)s[i++]=Vt[e]}for(let e=0;e<Ut.length;e++)s[i+e]=Ut[e];i+=Ut.length,o>0&&(s[i++]=d,s[i++]=o,qt.forEach((e=>{const t=Nt.get(e);if(void 0===t)throw new Error(`Could not send suspender changes for "${e}" since the Fiber no longer exists.`);s[i++]=e,s[i++]=t.hasUniqueSuspenders?1:0,s[i++]=Math.round(1e3*t.endTime);const n=t.instance,r=(n.kind===bt||n.kind===St)&&n.data.tag===Ce&&null!==n.data.memoizedState;s[i++]=r?1:0,s[i++]=t.environments.size,t.environments.forEach(((e,t)=>{s[i++]=getStringID(t)}))}))),function(e){shouldBailoutWithPendingOperations()||(null!==Yt?Yt.push(e):w.emit("operations",e))}(s),Ut.length=0,Vt.length=0,Wt.length=0,qt.clear(),Kt.clear(),Gt=0}function measureHostInstance(e){if("object"!=typeof e||null===e)return null;if("function"==typeof e.getClientRects||3===e.nodeType){const t=e.ownerDocument;if(e===t.documentElement)return[{x:0,y:0,width:e.scrollWidth,height:e.scrollHeight}];const n=[],r=t&&t.defaultView,o=r?r.scrollX:0,s=r?r.scrollY:0;let i;if(3===e.nodeType){if("function"!=typeof t.createRange)return null;const n=t.createRange();if("function"!=typeof n.getClientRects)return null;n.selectNodeContents(e),i=n.getClientRects()}else i=e.getClientRects();for(let e=0;e<i.length;e++){const t=i[e];n.push({x:t.x+o,y:t.y+s,width:t.width,height:t.height})}return n}if(e.canonical){const t=e.canonical.publicInstance;if(!t)return null;if("function"==typeof t.getBoundingClientRect)return[t.getBoundingClientRect()];if("function"==typeof t.unstable_getBoundingClientRect)return[t.unstable_getBoundingClientRect()]}return null}function measureInstance(e){const t=findAllCurrentHostInstances(e);let n=null;for(let e=0;e<t.length;e++){const r=measureHostInstance(t[e]);null!==r&&(n=null===n?r:n.concat(r))}return n}function getStringID(e){if(null===e)return 0;const t=Kt.get(e);if(void 0!==t)return t.id;const n=Kt.size+1,r=utfEncodeString(e);return Kt.set(e,{encodedString:r,id:n}),Gt+=r.length+1,n}let Qt=!1;function recordReconnect(e,n){if(Qt)return;const r=e.id,o=e.data,s=o.hasOwnProperty("treeBaseDuration");if(o.tag===j){const e=o.hasOwnProperty("_debugOwner");let n=0;s&&(n=p,"function"==typeof He&&(n|=m),pt&&(n|=h));const i=0===k.bundleType;pushOperation(t),pushOperation(r),pushOperation(se),pushOperation(0!=(o.mode&O)?1:0),pushOperation(n),pushOperation(i||0===O?0:1),pushOperation(e?1:0),fn&&null!==cn&&cn.set(r,getDisplayNameForRoot(o))}else{const s=e.suspenseNode;if(null!==s&&null===o.memoizedState){const t=s.rects,n=measureInstance(e);areEqualRects(t,n)||(s.rects=n,recordSuspenseResize(s))}const{key:a}=o,l=F(o),u=getElementTypeForFiber(o),c=getUnfilteredOwner(o),d=findNearestOwnerInstance(n,c);null!==d&&c===o._debugOwner&&null!=o._debugStack&&null===d.source&&(d.source=o._debugStack);let f=n;for(;null!==f&&f.kind===St;)f=f.parent;const p=null===d?0:d.id,m=null===f?0:f.id,h=getStringID(l),g=getStringID(null===a?null:a===st?"React.optimisticKey":String(a)),y=o.tag===Ce||o.tag===H?o.memoizedProps.name:null,v=getStringID(null==y?null:String(y));if(pushOperation(t),pushOperation(r),pushOperation(u),pushOperation(m),pushOperation(p),pushOperation(h),pushOperation(g),pushOperation(v),0!=(o.mode&O)){let e=null,t=n;for(;null!==t;){if(t.kind===bt){e=t.data;break}t=t.parent}null!==e&&0!=(e.mode&O)||(pushOperation(i),pushOperation(r),pushOperation(ve))}}let a=yt.get(o);void 0===a&&null!==o.alternate&&(a=yt.get(o.alternate)),recordConsoleLogs(e,a),s&&recordProfilingDurations(e,null)}function recordVirtualMount(e,t,n){const r=e.id;Rt.set(r,e),recordVirtualReconnect(e,t,n)}function recordVirtualReconnect(e,n,r){if(Qt)return;const o=e.data,s="string"==typeof o.key?o.key:null,i=o.env;let a=o.name||"";"string"==typeof i&&(null!==r&&(a=r+"("+a+")"),a=i+"("+a+")");const l=ue,u=getUnfilteredOwner(o),c=findNearestOwnerInstance(n,u);null!==c&&u===o.owner&&null!=o.debugStack&&null===c.source&&(c.source=o.debugStack);let d=n;for(;null!==d&&d.kind===St;)d=d.parent;const f=null===c?0:c.id,p=null===d?0:d.id,m=getStringID(a),h=getStringID(null===s?null:String(s)),g=getStringID(null),y=e.id;pushOperation(t),pushOperation(y),pushOperation(l),pushOperation(p),pushOperation(f),pushOperation(m),pushOperation(h),pushOperation(g);recordConsoleLogs(e,x.get(o))}function recordUnmount(t){e&&debug("recordUnmount()",t,Jt),recordDisconnect(t);const n=t.suspenseNode;null!==n&&function(t){e&&console.log("recordSuspenseUnmount()",t,nn);const n=t.instance;if(n.kind!==bt)throw new Error("Can't unmount a filtered SuspenseNode. This is a bug.");const r=n,o=r.id;Wt.push(o),qt.delete(o),Nt.delete(o)}(n),Rt.delete(t.id),untrackFiber(t,t.data)}function recordDisconnect(e){if(Qt)return;Sn===e&&setTrackedPath(null);const t=e.id;Vt.push(t)}function recordSuspenseResize(t){e&&console.log("recordSuspenseResize()",t);const n=t.instance;if(n.kind!==bt)return;pushOperation(c),pushOperation(n.id);const r=t.rects;if(null===r)pushOperation(-1);else{pushOperation(r.length);for(let e=0;e<r.length;++e){const t=r[e];pushOperation(Math.round(1e3*t.x)),pushOperation(Math.round(1e3*t.y)),pushOperation(Math.round(1e3*t.width)),pushOperation(Math.round(1e3*t.height))}}}function recordSuspenseSuspenders(t){e&&console.log("recordSuspenseSuspenders()",t);const n=t.instance;n.kind===bt&&(t.environments.forEach(((e,t)=>{getStringID(t)})),qt.add(n.id))}let Xt=null,Zt=null,Jt=null,en=null,tn=null,nn=null;function ioExistsInSuspenseAncestor(e,t){let n=e.parent;for(;null!==n;){if(n.suspendedBy.has(t))return!0;n=n.parent}return!1}function insertSuspendedBy(e){if(null===Jt||null===nn)throw new Error("It should not be possible to have suspended data outside the root. Even suspending at the first position is still a child of the root.");const t=nn;let n=Jt;for(;n.kind===St&&null!==n.parent&&n!==t.instance;)n=n.parent;if(n.kind===bt){if(n.data.tag===Ce&&n!==t.instance){const e=n.parent;if(null===e)throw new Error("Did not find a suitable instance for this async info. This is a bug in React.");n=e}}const r=t.suspendedBy,o=e.awaited;let s=r.get(o);if(void 0===s){s=new Set,r.set(o,s);const e=o.env;if(null!=e){const n=t.environments,r=n.get(e);void 0===r||0===r?(n.set(e,1),recordSuspenseSuspenders(t)):n.set(e,r+1)}}if(!s.has(n)){s.add(n);const e=getVirtualEndTime(o);t.hasUniqueSuspenders||ioExistsInSuspenseAncestor(t,o)?t.endTime<e&&(t.endTime=e,recordSuspenseSuspenders(t)):(t.hasUniqueSuspenders=!0,t.endTime<e&&(t.endTime=e),recordSuspenseSuspenders(t))}t.hasUnknownSuspenders=!1;const i=n.suspendedBy;null===i?n.suspendedBy=[e]:-1===i.indexOf(e)&&i.push(e)}function getAwaitInSuspendedByFromIO(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.awaited===t)return r}return null}function unblockSuspendedBy(e,t){const n=e.firstChild;if(null===n)return;let r=n;for(;null!==r;){if(r.suspendedBy.has(t))r.hasUniqueSuspenders||recordSuspenseSuspenders(r),r.hasUniqueSuspenders=!0,r.hasUnknownSuspenders=!1;else if(null!==r.firstChild){r=r.firstChild;continue}for(;null===r.nextSibling;){if(null===r.parent||r.parent===e)return;r=r.parent}r=r.nextSibling}}function getVirtualEndTime(e){return null!=e.env?e.end+1e6:e.end}function removePreviousSuspendedBy(e,t,n){const r=null===e.suspenseNode?n:e.suspenseNode;if(null!==t&&null!==r){const n=e.suspendedBy;let o=!1,s=!1;for(let i=0;i<t.length;i++){const a=t[i];if(null===n||-1===n.indexOf(a)&&null===getAwaitInSuspendedByFromIO(n,a.awaited)){const n=a.awaited,l=r.suspendedBy.get(n);if(r.endTime===getVirtualEndTime(n)&&(s=!0),void 0===l||!l.delete(e)){let e=!1;for(let r=0;r<i;r++){if(t[r].awaited===n){e=!0;break}}if(!e)throw new Error("We are cleaning up async info that was not on the parent Suspense boundary. This is a bug in React.")}if(void 0!==l&&0===l.size){r.suspendedBy.delete(n);const e=n.env;if(null!=e){const t=r.environments,n=t.get(e);if(void 0===n||0===n)throw new Error("We are removing an environment but it was not in the set. This is a bug in React.");1===n?(t.delete(e),o=!0):t.set(e,n-1)}r.hasUniqueSuspenders&&!ioExistsInSuspenseAncestor(r,n)&&unblockSuspendedBy(r,n)}}}const i=s?function(e){let t=0;return e.suspendedBy.forEach(((e,n)=>{const r=getVirtualEndTime(n);r>t&&(t=r)})),t}(r):r.endTime;(o||i!==r.endTime)&&(r.endTime=i,recordSuspenseSuspenders(r))}}function insertChild(e){const t=Jt;if(null===t)return;e.parent=t,null===Zt?(Zt=e,t.firstChild=e):(Zt.nextSibling=e,Zt=e),e.nextSibling=null;const n=e.suspenseNode;if(null!==n){const e=nn;null!==e&&(n.parent=e,null===tn?(tn=n,e.firstChild=n):(tn.nextSibling=n,tn=n),n.nextSibling=null)}}function moveChild(e,t){removeChild(e,t),insertChild(e)}function removeChild(e,t){if(null===e.parent){if(Xt===e)throw new Error("Remaining children should not have items with no parent");if(null!==e.nextSibling)throw new Error("A deleted instance should not have next siblings");return}const n=Jt;if(null===n)throw new Error("Should not have a parent if we are at the root");if(e.parent!==n)throw new Error("Cannot remove a node from a different parent than is being reconciled.");if(null===t){if(Xt!==e)throw new Error("Expected a placed child to be moved from the remaining set.");Xt=e.nextSibling}else t.nextSibling=e.nextSibling;e.nextSibling=null,e.parent=null;const r=e.suspenseNode;if(null!==r&&null!==r.parent){const e=nn;if(null===e)throw new Error("Should not have a parent if we are at the root");if(r.parent!==e)throw new Error("Cannot remove a Suspense node from a different parent than is being reconciled.");let t=en;if(t===r)en=r.nextSibling;else for(;null!==t;){if(t.nextSibling===r){t.nextSibling=r.nextSibling;break}t=t.nextSibling}r.nextSibling=null,r.parent=null}}function isHiddenOffscreen(e){switch(e.tag){case be:case Se:return null!==e.memoizedState;default:return!1}}function isSuspendedOffscreen(e){switch(e.tag){case be:case Se:return null!==e.memoizedState&&null!==e.return&&e.return.tag===Ce;default:return!1}}function unmountRemainingChildren(){if(null===Jt||Jt.kind!==bt&&Jt.kind!==St||!isSuspendedOffscreen(Jt.data)||Qt){let e=Xt;for(;null!==e;)unmountInstanceRecursively(e),e=Xt}else{Qt=!0;try{let e=Xt;for(;null!==e;)unmountInstanceRecursively(e),e=Xt}finally{Qt=!1}}}function isChildOf(e,t,n){let r=t.parent;for(;null!==r;){if(e===r)return!0;if(r===e.parent||r===n)break;r=r.parent}return!1}function areEqualRects(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=e[n],o=t[n];if(r.x!==o.x||r.y!==o.y||r.width!==o.width||r.height!==o.height)return!1}return!0}function measureUnchangedSuspenseNodesRecursively(e){if(Qt)return;const t=e.instance;if((t.kind===bt||t.kind===St)&&t.data.tag===Ce&&null!==t.data.memoizedState)return;let n=t.parent;for(;null!==n;){if((n.kind===bt||n.kind===St)&&isHiddenOffscreen(n.data))return;if(null!==n.suspenseNode)break;n=n.parent}const r=measureInstance(e.instance);if(!areEqualRects(e.rects,r)){for(let t=e.firstChild;null!==t;t=t.nextSibling)measureUnchangedSuspenseNodesRecursively(t);e.rects=r,recordSuspenseResize(e)}}function mountVirtualInstanceRecursively(e,t,n,r,o){const s=function(e,t){if(null===bn||!Cn)return!1;if(Sn===t){const t=getVirtualPathFrame(e),n=bn[kn+1];if(void 0===n)throw new Error("Expected to see a frame at the next depth.");if(t.index===n.index&&t.key===n.key&&t.displayName===n.displayName)return wn=null,Sn=e,kn++,Cn=kn!==bn.length-1,!1}if(null!==wn)return!0;return Cn=!1,!0}(e,Jt),i=Jt,a=Zt,l=Xt;Jt=e,Zt=null,Xt=null;try{mountVirtualChildrenRecursively(t,n,r,o+1),recordVirtualProfilingDurations(e)}finally{Jt=i,Zt=a,Xt=l,updateTrackedPathStateAfterMount(s)}}function recordVirtualDisconnect(e){if(Qt)return;Sn===e&&setTrackedPath(null);const t=e.id;Vt.push(t)}function getSecondaryEnvironmentName(e,t){if(null!=e){const n=e[t];for(let r=t+1;r<e.length;r++){const t=e[r];if("string"==typeof t.env)return n.env!==t.env?t.env:null}}return null}function trackDebugInfoFromLazyType(e){const t=e.elementType;if(R(t)===qe){const e=t._debugInfo;if(e)for(let t=0;t<e.length;t++){const n=e[t];if(n.awaited){insertSuspendedBy(n)}}}}function trackDebugInfoFromUsedThenables(e){const t=e.dependencies;if(null==t)return;const n=t._debugThenableState;if(null==n)return;const r=n.thenables||n;if(Array.isArray(r))for(let e=0;e<r.length;e++){const t=r[e]._debugInfo;if(t)for(let e=0;e<t.length;e++){const n=t[e];if(n.awaited){insertSuspendedBy(n)}}}}const rn=new WeakMap;function trackDebugInfoFromHostResource(e,t){const n=t.memoizedState;if(null==n)return;const r=rn.get(n);if(void 0!==r)return void insertSuspendedBy(r);const o=t.memoizedProps;if(!("stylesheet"===n.type&&("string"!=typeof o.media||"function"!=typeof matchMedia||matchMedia(o.media))))return;const s=n.instance;if(null==s)return;const i=s.href;if("string"!=typeof i)return;let a=-1,l=-1,u=0;if("function"==typeof performance.getEntriesByType){const e=performance.getEntriesByType("resource");for(let t=0;t<e.length;t++){const n=e[t];n.name===i&&(a=n.startTime,l=a+n.duration,u=n.transferSize||0)}}const c=s.sheet,d=Promise.resolve(c);d.status="fulfilled",d.value=c;const f={name:"stylesheet",start:a,end:l,value:d,owner:t};u>0&&(f.byteSize=u);const p={awaited:f,owner:null==t._debugOwner?null:t._debugOwner,debugStack:null==t._debugStack?null:t._debugStack,debugTask:null==t._debugTask?null:t._debugTask};rn.set(n,p),insertSuspendedBy(p)}function trackDebugInfoFromHostComponent(e,t){if(t.tag!==q)return;if(0==(t.mode&P))return;const n=t.type,r=t.memoizedProps;if(!("img"===n&&null!=r.src&&""!==r.src&&null==r.onLoad&&"lazy"!==r.loading))return;const o=t.stateNode;if(null==o)return;const s=o.currentSrc;if("string"!=typeof s||""===s)return;let i=-1,a=-1,l=0,u=0;if("function"==typeof performance.getEntriesByType){const e=performance.getEntriesByType("resource");for(let t=0;t<e.length;t++){const n=e[t];n.name===s&&(i=n.startTime,a=i+n.duration,u=n.decodedBodySize||0,l=n.transferSize||0)}}const c={currentSrc:s};o.naturalWidth>0&&o.naturalHeight>0&&(c.naturalWidth=o.naturalWidth,c.naturalHeight=o.naturalHeight),u>0&&(c.fileSize=u);const d=Promise.resolve(c);d.status="fulfilled",d.value=c;const f={name:"img",start:i,end:a,value:d,owner:t};l>0&&(f.byteSize=l);insertSuspendedBy({awaited:f,owner:null==t._debugOwner?null:t._debugOwner,debugStack:null==t._debugStack?null:t._debugStack,debugTask:null==t._debugTask?null:t._debugTask})}function trackThrownPromisesFromRetryCache(e,t){null!=t&&(e.hasUniqueSuspenders||recordSuspenseSuspenders(e),e.hasUniqueSuspenders=!0,e.hasUnknownSuspenders=!0)}function mountVirtualChildrenRecursively(e,t,n,r){let o=e,s=null,i=e;for(;null!==o&&o!==t;){let e=0;if(o._debugInfo)for(let t=0;t<o._debugInfo.length;t++){const a=o._debugInfo[t];if(a.awaited){e===r&&insertSuspendedBy(a);continue}if("string"!=typeof a.name)continue;const l=a,u=getSecondaryEnvironmentName(o._debugInfo,t);if(null!=l.env&&Tt.add(l.env),null!==u&&Tt.add(u),!shouldFilterVirtual(l,u)){if(e===r){null!==s&&s.data===a||(null!==s&&mountVirtualInstanceRecursively(s,i,o,n,r),s=createVirtualInstance(l),recordVirtualMount(s,Jt,u),insertChild(s),i=o),e++;break}e++}}e===r&&(null!==s&&(mountVirtualInstanceRecursively(s,i,o,n,r),s=null),mountFiberRecursively(o,n)),o=o.sibling}null!==s&&mountVirtualInstanceRecursively(s,i,null,n,r)}function mountChildrenRecursively(e,t){mountVirtualChildrenRecursively(e,null,t,0)}function mountSuspenseChildrenRecursively(e,t,n,r,o){const s=e.sibling;mountVirtualChildrenRecursively(e,s,t,0),nn=n,tn=r,en=o,null!==s&&mountVirtualChildrenRecursively(s,null,t,0)}function mountFiberRecursively(t,n){const r=null!==xt&&(t===xt||t.alternate===xt);r&&($t=!0);let o=null,s=null;if(!shouldFilterFiber(t)){if(o=function(t,n){let r;if(t.tag===j){const e=Ft.get(t.stateNode);if(void 0===e)throw new Error("The root should have been registered at this point");r=e}else r=createFiberInstance(t);return Rt.set(r.id,r),e&&debug("recordMount()",r,n),recordReconnect(r,n),r}(t,Jt),r&&(Dt=o.id,pushOperation(f),pushOperation(o.id)),t.tag===Ce||t.tag===j){if(s=createSuspenseNode(o),t.tag===Ce)if(-1===Se){null!==t.memoizedState||(s.rects=measureInstance(o))}else{if(isFiberHydrated(t)){if(null===t.child)throw new Error("There should always be an Offscreen Fiber child in a hydrated Suspense boundary.")}null!==t.memoizedState||(s.rects=measureInstance(o))}else s.rects=measureInstance(o);!function(t,n){const r=t.instance;if(r.kind===St)throw new Error("Cannot record a mount for a filtered Fiber instance.");const o=r.id;let s=n;for(;null!==s&&s.instance.kind===St;)s=s.parent;const i=null!==s?s.instance:null;if(null!==i&&i.kind===St)throw new Error("Should not have a filtered instance at this point. This is a bug.");const l=null===i?0:i.id,u=r.data,c=u.memoizedProps,d=getStringID(u.tag!==Ce||null===c?null:c.name||null),f=u.tag===Ce&&null!==u.memoizedState;e&&console.log("recordSuspenseMount()",t),Nt.set(o,t),pushOperation(a),pushOperation(o),pushOperation(l),pushOperation(d),pushOperation(f?1:0);const p=t.rects;if(null===p)pushOperation(-1);else{pushOperation(p.length);for(let e=0;e<p.length;++e){const t=p[e];pushOperation(Math.round(1e3*t.x)),pushOperation(Math.round(1e3*t.y)),pushOperation(Math.round(1e3*t.width)),pushOperation(Math.round(1e3*t.height))}}}(s,nn)}insertChild(o),e&&debug("mountFiberRecursively()",o,Jt)}else if(null!==Jt&&Jt.kind===wt||t.tag===Ce||t.tag===Se||t.tag===be){if(null!==Jt&&Jt.kind===wt&&Jt.data===t._debugOwner&&null!=t._debugStack&&null===Jt.source&&(Jt.source=t._debugStack),o=function(e){return{kind:St,id:0,parent:null,firstChild:null,nextSibling:null,source:null,logCount:0,treeBaseDuration:0,suspendedBy:null,suspenseNode:null,data:e}}(t),t.tag===Ce)if(s=createSuspenseNode(o),-1===Se){null!==t.memoizedState||(s.rects=measureInstance(o))}else{if(isFiberHydrated(t)){if(null===t.child)throw new Error("There should always be an Offscreen Fiber child in a hydrated Suspense boundary.")}null!==t.memoizedState||(s.rects=measureInstance(o))}insertChild(o),e&&debug("mountFiberRecursively()",o,Jt)}const i=updateTrackedPathStateBeforeMount(t,o),l=Jt,u=Zt,c=Xt,d=nn,p=tn,m=en,h=$t;null!==o&&(Jt=o,Zt=null,Xt=null);let g=!1;null!==s&&(nn=s,tn=null,en=null,g=!0),!r&&null!==xt&&t.tag;try{if(Bt&&n){getElementTypeForFiber(t)===te&&(Lt.add(t.stateNode),n=!1)}if(trackDebugInfoFromLazyType(t),trackDebugInfoFromUsedThenables(t),t.tag===U){const e=Jt;if(null===e)throw new Error("Did not expect a host hoistable to be the root");aquireHostResource(e,t.memoizedState),trackDebugInfoFromHostResource(0,t)}else if(t.tag===q||t.tag===Y||t.tag===V){const e=Jt;if(null===e)throw new Error("Did not expect a host hoistable to be the root");aquireHostInstance(e,t.stateNode),trackDebugInfoFromHostComponent(0,t)}if(isSuspendedOffscreen(t)){const e=Qt;Qt=!0;try{null!==t.child&&mountChildrenRecursively(t.child,!1)}finally{Qt=e}}else if(isHiddenOffscreen(t));else if(t.tag===Ce&&-1===Se){null!==s&&trackThrownPromisesFromRetryCache(s,t.stateNode);if(null!==t.memoizedState){const e=t.child,r=e?e.sibling:null;if(r){const e=r.child;null!==e&&(updateTrackedPathStateBeforeMount(r,null),mountChildrenRecursively(e,n))}}else{const e=t.child;null!==e&&mountChildrenRecursively(e,n)}}else if(t.tag===Ce&&-1!==Se&&null!==o&&null!==s){const e=t.child;if(isFiberHydrated(t)){if(null===e)throw new Error("There should always be an Offscreen Fiber child in a hydrated Suspense boundary.");trackThrownPromisesFromRetryCache(s,t.stateNode),mountSuspenseChildrenRecursively(e,n,d,p,m),g=!1}}else null!==t.child&&mountChildrenRecursively(t.child,n)}finally{$t=h,null!==o&&(Jt=l,Zt=u,Xt=c),g&&(nn=d,tn=p,en=m)}updateTrackedPathStateAfterMount(i)}function unmountInstanceRecursively(t){e&&debug("unmountInstanceRecursively()",t,Jt);let n=!1;const r=Jt,o=Zt,s=Xt,i=nn,a=tn,l=en,u=$t,c=t.suspendedBy;Jt=t,Zt=null,Xt=t.firstChild,t.firstChild=null,t.suspendedBy=null,null!==t.suspenseNode&&(nn=t.suspenseNode,tn=null,en=t.suspenseNode.firstChild,n=!0),null!==xt&&(t.id===Dt?$t=!0:t.kind===bt&&null!==t.data&&t.data.tag);try{if(t.kind!==bt&&t.kind!==St||t.data.tag!==Ce||-1===Se)unmountRemainingChildren();else{const e=t.data,r=Xt;if(isFiberHydrated(e)){if(null===r)throw new Error("There should always be an Offscreen Fiber child in a hydrated Suspense boundary.");!function(e,t,n,r){unmountInstanceRecursively(e),nn=t,tn=n,en=r,unmountRemainingChildren()}(r,i,a,l),n=!1}else if(null!==r)throw new Error("A dehydrated Suspense node should not have a content Fiber.")}removePreviousSuspendedBy(t,c,nn)}finally{Jt=r,Zt=o,Xt=s,n&&(nn=i,tn=a,en=l),$t=u}t.kind===bt?recordUnmount(t):t.kind===wt?function(e){recordVirtualDisconnect(e),Rt.delete(e.id)}(t):untrackFiber(t,t.data),removeChild(t,null)}function recordProfilingDurations(e,t){const n=e.id,r=e.data,{actualDuration:s,treeBaseDuration:i}=r;if(e.treeBaseDuration=i||0,fn){if(null==t||i!==t.treeBaseDuration){const e=Math.floor(1e3*(i||0));pushOperation(o),pushOperation(n),pushOperation(e)}if((null==t||t!==r&&didFiberRender(t,r))&&null!=s){let e=s,o=r.child;for(;null!==o;)e-=o.actualDuration||0,o=o.sibling;const i=un;if(i.durations.push(n,s,e),i.maxActualDuration=Math.max(i.maxActualDuration,s),mn){const e=getChangeDescription(t,r);null!==e&&null!==i.changeDescriptions&&i.changeDescriptions.set(n,e)}}const a=jt.data.stateNode.memoizedUpdaters;if(null!=a&&(a.has(r)||null!==r.alternate&&a.has(r.alternate))){const t=un;null===t.updaters&&(t.updaters=[]),t.updaters.push(instanceToSerializedElement(e))}}}function recordVirtualProfilingDurations(e){const t=e.id;let n=0;for(let t=e.firstChild;null!==t;t=t.nextSibling)n+=t.treeBaseDuration;if(fn){if(n!==e.treeBaseDuration){const e=Math.floor(1e3*(n||0));pushOperation(o),pushOperation(t),pushOperation(e)}}e.treeBaseDuration=n}function addUnfilteredChildrenIDs(e,t){let n=e.firstChild;for(;null!==n;){if(n.kind===St){isHiddenOffscreen(n.data)||addUnfilteredChildrenIDs(n,t)}else t.push(n.id);n=n.nextSibling}}function recordResetChildren(t){e&&null!==t.firstChild&&debug("recordResetChildren()",t.firstChild,t);const n=[];addUnfilteredChildrenIDs(t,n);const o=n.length;if(!(o<2)){pushOperation(r),pushOperation(t.id),pushOperation(o);for(let e=0;e<n.length;e++)pushOperation(n[e])}}function addUnfilteredSuspenseChildrenIDs(e,t){let n=e.firstChild;for(;null!==n;)n.instance.kind===St?addUnfilteredSuspenseChildrenIDs(n,t):t.push(n.instance.id),n=n.nextSibling}function recordResetSuspenseChildren(t){e&&null!==t.firstChild&&console.log("recordResetSuspenseChildren()",t.firstChild,t);const n=[];addUnfilteredSuspenseChildrenIDs(t,n);const r=n.length;if(!(r<2)){pushOperation(u),pushOperation(t.instance.id),pushOperation(r);for(let e=0;e<n.length;e++)pushOperation(n[e])}}function updateVirtualInstanceRecursively(e,t,n,r,o,s){const i=Jt,a=Zt,l=Xt,u=e.suspendedBy;Jt=e,Zt=null,Xt=e.firstChild,e.firstChild=null,e.suspendedBy=null;try{let i=updateVirtualChildrenRecursively(t,n,r,o,s+1);(i&Ct)!==kt&&(Qt||recordResetChildren(e),i&=~Ct),removePreviousSuspendedBy(e,u,nn);return recordConsoleLogs(e,x.get(e.data)),recordVirtualProfilingDurations(e),i}finally{unmountRemainingChildren(),Jt=i,Zt=a,Xt=l}}function updateVirtualChildrenRecursively(e,t,n,r,o){let s=kt,i=e,a=n,l=null,u=!1,c=e,d=n;for(;null!==i&&i!==t;){let e=0;if(i._debugInfo)for(let t=0;t<i._debugInfo.length;t++){const n=i._debugInfo[t];if(n.awaited){e===o&&insertSuspendedBy(n);continue}if("string"!=typeof n.name)continue;const f=n,p=getSecondaryEnvironmentName(i._debugInfo,t);if(null!=f.env&&Tt.add(f.env),null!==p&&Tt.add(p),!shouldFilterVirtual(f,p)){if(e===o){if(null===l||l.data!==f){null!==l&&(u?(mountVirtualInstanceRecursively(l,c,i,r,o),s|=Ct|Et):s|=updateVirtualInstanceRecursively(l,c,i,d,r,o));let e=null,t=Xt;if(null!=f.key&&f.key!==st)for(t=Xt;null!==t&&(t.kind!==wt||t.data.key!==f.key);)e=t,t=t.nextSibling;if(null!==t&&t.kind===wt&&t.data.name===f.name&&t.data.env===f.env&&t.data.key===f.key)t.data=f,moveChild(t,e),l=t,u=!1;else{const e=createVirtualInstance(f);recordVirtualMount(e,Jt,p),insertChild(e),l=e,u=!0,s|=Ct}c=i,d=a}e++;break}e++}}if(e===o){let e;null!==l&&(u?(mountVirtualInstanceRecursively(l,c,i,r,o),s|=Ct|Et):s|=updateVirtualInstanceRecursively(l,c,i,d,r,o),l=null),e=a===i?i:i.alternate;let t=null,n=null;if(null!==e)for(n=Xt;null!==n&&n.data!==e;)t=n,n=n.nextSibling;if(null!==n){const o=n;e!==a&&(s|=Ct|Et),moveChild(o,t),s|=updateFiberRecursively(o,i,e,r)}else null!==e&&shouldFilterFiber(i)?(e!==a&&(s|=Ct|Et),s|=updateFiberRecursively(null,i,e,r)):(mountFiberRecursively(i,r),s|=Ct|Et)}i=i.sibling,(s&Ct)===kt&&null!==a&&(a=a.sibling)}return null!==l&&(u?(mountVirtualInstanceRecursively(l,c,null,r,o),s|=Ct|Et):s|=updateVirtualInstanceRecursively(l,c,null,d,r,o)),null!==a&&(s|=Ct|Et),s}function updateChildrenRecursively(e,t,n){return null===e?null!==t?Ct:kt:updateVirtualChildrenRecursively(e,null,t,n,0)}function updateFiberRecursively(t,n,r,o){if(e&&null!==t&&debug("updateFiberRecursively()",t,Jt),Bt){const e=getElementTypeForFiber(n);o?e===te&&(Lt.add(n.stateNode),o=!1):e!==J&&e!==X&&e!==Z&&e!==ne&&e!==ee||r!==n&&(o=didFiberRender(r,n))}const s=Jt,i=Zt,a=Xt,l=nn,u=tn,c=en,d=$t;let f=kt,p=!1,m=!1,h=null;if(null!==t){h=t.suspendedBy,t.data=n,r!==n&&null!==sn&&(sn.id===t.id||sn.type===se&&n.tag===j)&&didFiberRender(r,n)&&(an=!0),Jt=t,Zt=null,Xt=t.firstChild,t.firstChild=null,t.suspendedBy=null;const e=t.suspenseNode;null!==e&&(nn=e,tn=null,en=e.firstChild,e.firstChild=null,p=!0,m=!0),null!==xt&&(t.id===Dt?$t=!0:n.tag)}try{if(trackDebugInfoFromLazyType(n),trackDebugInfoFromUsedThenables(n),n.tag===U){const e=Jt;if(null===e)throw new Error("Did not expect a host hoistable to be the root");r.memoizedState!==n.memoizedState&&(releaseHostResource(e,r.memoizedState),aquireHostResource(e,n.memoizedState)),trackDebugInfoFromHostResource(0,n)}else if(n.tag===q||n.tag===Y||n.tag===V){const e=Jt;if(null===e)throw new Error("Did not expect a host hoistable to be the root");r.stateNode!==n.stateNode&&(releaseHostInstance(e,r.stateNode),aquireHostInstance(e,n.stateNode)),trackDebugInfoFromHostComponent(0,n)}const e=n.tag===Ce&&-1===Se,s=e&&null!==r.memoizedState,i=e&&null!==n.memoizedState,a=isHiddenOffscreen(r),d=isHiddenOffscreen(n),g=isSuspendedOffscreen(r),y=isSuspendedOffscreen(n);if(e&&null!==t&&null!==t.suspenseNode){const e=t.suspenseNode;null===r.stateNode!=(null===n.stateNode)&&trackThrownPromisesFromRetryCache(e,n.stateNode),null===r.memoizedState!=(null===n.memoizedState)&&recordSuspenseSuspenders(e)}if(s&&i){const e=n.child,t=e?e.sibling:null,s=r.child,i=s?s.sibling:null;null==i&&null!=t&&(mountChildrenRecursively(t,o),f|=Ct|Et);f|=null!=t&&null!=i?updateChildrenRecursively(t,i,o):kt}else if(s&&!i){const e=n.child;null!==e&&(mountChildrenRecursively(e,o),f|=Ct|Et)}else if(!s&&i){const e=n.child,t=e?e.sibling:null;null!=t&&(mountChildrenRecursively(t,o),f|=Ct|Et)}else if(y){g||null===t||Qt||disconnectChildrenRecursively(Xt);const e=Qt;Qt=!0;try{f|=updateChildrenRecursively(n.child,r.child,!1)}finally{Qt=e}}else if(g&&!y){const e=Qt;Qt=!0;try{null!==n.child&&(f|=updateChildrenRecursively(n.child,r.child,!1)),unmountRemainingChildren(),Xt=null}finally{Qt=e}null===t||Qt||(reconnectChildrenRecursively(t),f|=Ct|Et)}else if(d)a||unmountRemainingChildren();else if(a&&!d){const e=n.child;null!==e&&(mountChildrenRecursively(e,o),f|=Ct|Et)}else if(n.tag===Ce&&-1!==Se&&null!==t&&null!==t.suspenseNode){const e=t.suspenseNode,s=r.child,i=n.child,a=isFiberHydrated(r),d=isFiberHydrated(n);if(a&&d){if(null===i||null===s)throw new Error("There should always be an Offscreen Fiber child in a hydrated Suspense boundary.");null===r.stateNode!=(null===n.stateNode)&&trackThrownPromisesFromRetryCache(e,n.stateNode),null===r.memoizedState!=(null===n.memoizedState)&&recordSuspenseSuspenders(e),p=!1,f|=function(e,t,n,r,o,s){let i=kt;const a=t.sibling,l=e.sibling;return i|=updateVirtualChildrenRecursively(e,l,t,n,0),nn=r,tn=o,en=s,null===a&&null===l||(null===l?unmountRemainingChildren():(i|=updateVirtualChildrenRecursively(l,null,a,n,0),(i&Et)!==kt&&(i|=It,i&=~Et))),i}(i,s,o,l,u,c),m=!1,null===n.memoizedState&&(p=!Qt)}else if(!a&&d){if(null===i)throw new Error("There should always be an Offscreen Fiber child in a hydrated Suspense boundary.");trackThrownPromisesFromRetryCache(e,n.stateNode),recordSuspenseSuspenders(e),mountSuspenseChildrenRecursively(i,o,l,u,c),m=!1}else if(a&&!d)throw new Error("Encountered a dehydrated Suspense boundary that was previously hydrated.")}else if(n.child!==r.child)f|=updateChildrenRecursively(n.child,r.child,o);else if(null!==t){if(t.firstChild=Xt,Xt=null,function(e){let t=en;if(null===t)return;const n=nn;if(null===n)throw new Error("The should not be any remaining suspense node children if there is no parent.");let r=!1,o=null;for(;null!==t;)if(isChildOf(e,t.instance,n.instance)){r=!0;const e=t.nextSibling;null===o?en=e:o.nextSibling=e,t.nextSibling=null,null===tn?n.firstChild=t:tn.nextSibling=t,tn=t,measureUnchangedSuspenseNodesRecursively(t),t=e}else{if(r)break;o=t,t=t.nextSibling}}(t),Bt&&o){findAllCurrentHostInstances(t).forEach((e=>{Lt.add(e)}))}}else{const e=updateChildrenRecursively(n.child,r.child,!1);if((e&Ct)!==kt)throw new Error("The children should not have changed if we pass in the same set.");f|=e}if(null!==t&&(removePreviousSuspendedBy(t,h,m?nn:l),t.kind===bt)){let e=yt.get(t.data);if(void 0===e&&t.data.alternate&&(e=yt.get(t.data.alternate)),recordConsoleLogs(t,e),!Qt){n.hasOwnProperty("treeBaseDuration")&&recordProfilingDurations(t,r)}}if((f&Ct)!==kt&&null!==t&&t.kind===bt&&(y||Qt||recordResetChildren(t),f&=~Ct),(f&Et)!==kt&&null!==t&&t.kind===bt){const e=t.suspenseNode;null!==e&&(recordResetSuspenseChildren(e),f&=~Et)}if((f&It)!==kt&&null!==t&&t.kind===bt){null!==t.suspenseNode&&(f&=~It,f|=Et)}return f}finally{if(null!==t){if(unmountRemainingChildren(),Jt=s,Zt=i,Xt=a,p&&!Qt){const e=t.suspenseNode;if(null===e)throw new Error("Attempted to measure a Suspense node that does not exist.");const n=e.rects,r=measureInstance(t);areEqualRects(n,r)||(e.rects=r,recordSuspenseResize(e))}m&&(nn=l,tn=u,en=c),$t=d}}}function disconnectChildrenRecursively(e){for(let t=e;null!==t;t=t.nextSibling)(t.kind!==bt&&t.kind!==St||!isSuspendedOffscreen(t.data))&&disconnectChildrenRecursively(t.firstChild),t.kind===bt?recordDisconnect(t):t.kind===wt&&recordVirtualDisconnect(t)}function reconnectChildrenRecursively(e){for(let t=e.firstChild;null!==t;t=t.nextSibling){if(t.kind===bt)recordReconnect(t,e);else if(t.kind===wt){recordVirtualReconnect(t,e,null)}(t.kind!==bt&&t.kind!==St||!isHiddenOffscreen(t.data))&&reconnectChildrenRecursively(t)}}function rootSupportsProfiling(e){return null!=e.memoizedInteractions||!(null==e.current||!e.current.hasOwnProperty("treeBaseDuration"))}function getResourceInstance(e){if(e.tag===U){const t=e.memoizedState;if("object"==typeof t&&null!==t&&null!=t.instance)return t.instance}return null}function appendHostInstancesByDevToolsInstance(e,t){if(e.kind===wt)for(let n=e.firstChild;null!==n;n=n.nextSibling)appendHostInstancesByDevToolsInstance(n,t);else{!function(e,t){let n=e;for(;;){if(n.tag===q||n.tag===Y||n.tag===V||n.tag===U){const e=n.stateNode||getResourceInstance(n);e&&t.push(e)}else if(n.child){n.child.return=n,n=n.child;continue}if(n===e)return;for(;!n.sibling;){if(!n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e.data,t)}}function findAllCurrentHostInstances(e){const t=[];return appendHostInstancesByDevToolsInstance(e,t),t}function findHostInstancesForElementID(e){try{const t=Rt.get(e);return void 0===t?(console.warn(`Could not find DevToolsInstance with id "${e}"`),null):findAllCurrentHostInstances(t)}catch(e){return null}}function getDisplayNameForElementID(e){const t=Rt.get(e);if(void 0===t)return null;if(t.kind===bt){const e=t.data;if(e.tag===j)return"Initial Paint";if(e.tag===Ce||e.tag===H){const t=e.memoizedProps;if(null!=t.name)return t.name;const n=getUnfilteredOwner(e);if(null!=n)return"number"==typeof n.tag?F(n):n.name||""}return F(e)}return t.data.name||""}function getNearestSuspenseNode(e){for(;null===e.suspenseNode;){if(null===e.parent)throw new Error("There should always be a SuspenseNode parent on a mounted instance.");e=e.parent}return e.suspenseNode}function instanceToSerializedElement(e){if(e.kind===bt){const t=e.data;return{displayName:F(t)||"Anonymous",id:e.id,key:t.key===st?"React.optimisticKey":t.key,env:null,stack:null==t._debugOwner||null==t._debugStack?null:parseStackTrace(t._debugStack,1),type:getElementTypeForFiber(t)}}{const t=e.data;return{displayName:t.name||"Anonymous",id:e.id,key:null==t.key||t.key===st?"React.optimisticKey":t.key,env:null==t.env?null:t.env,stack:null==t.owner||null==t.debugStack?null:parseStackTrace(t.debugStack,1),type:ue}}}function getOwnersListFromInstance(e){let t=getUnfilteredOwner(e.data);if(null===t)return null;const n=[];let r=e.parent;for(;null!==r&&null!==t;){const e=findNearestOwnerInstance(r,t);if(null===e)break;n.push(instanceToSerializedElement(e)),t=getUnfilteredOwner(t),r=e.parent}return n}function getUnfilteredOwner(e){if(null==e)return null;if("number"==typeof e.tag){e=e._debugOwner}else{e=e.owner}for(;e;)if("number"==typeof e.tag){const t=e;if(!shouldFilterFiber(t))return t;e=t._debugOwner}else{const t=e;if(!shouldFilterVirtual(t,null))return t;e=t.owner}return null}function findNearestOwnerInstance(e,t){if(null==t)return null;for(;null!==e;){if(e.data===t||e.data===t.alternate)return e.kind===St?null:e;e=e.parent}return null}function inspectHooks(e){const t={};for(const e in console)try{t[e]=console[e],console[e]=()=>{}}catch(e){}try{return(0,Me.inspectHooksOfFiber)(e,getDispatcherRef(k))}finally{for(const e in t)try{console[e]=t[e]}catch(e){}}}function getSuspendedByOfSuspenseNode(e,t){const n=[];if(!e.hasUniqueSuspenders)return n;let r=null,o=null;const s=new Map;return e.suspendedBy.forEach(((i,a)=>{let l=e.parent;for(;null!==l;){if(l.suspendedBy.has(a))return;l=l.parent}if(0===i.size)return;let u=null;if(null===t)u=i.values().next().value;else for(const n of i.values())if(null===u&&(u=n),n!==t&&!isChildOf(t,n,e.instance))return;if(null!==u&&null!==u.suspendedBy){const e=getAwaitInSuspendedByFromIO(u.suspendedBy,a);if(null!==e){let t=null;if(null==e.stack&&null==e.owner)if(r===u)t=o;else if(u.kind!==wt){const e=u.data;e.dependencies&&e.dependencies._debugThenableState&&(r=u,o=t=inspectHooks(e))}const i=e.awaited;if("RSC stream"!==i.name&&"rsc stream"!==i.name||null==i.value)n.push(serializeAsyncInfo(e,u,t));else{const n=i.value,r=s.get(n);if(void 0===r)s.set(n,{asyncInfo:e,instance:u,hooks:t});else{const n=r.asyncInfo.awaited;i!==n&&(void 0!==i.byteSize&&void 0!==n.byteSize&&i.byteSize>n.byteSize||i.end>n.end)&&(r.asyncInfo=e,r.instance=u,r.hooks=t)}}}}})),s.forEach((({asyncInfo:e,instance:t,hooks:r})=>{n.push(serializeAsyncInfo(e,t,r))})),n}function getSuspendedByOfInstance(e,t){const n=e.suspendedBy;if(null===n)return[];const r=new Set,o=new Map,s=[];for(let i=0;i<n.length;i++){const a=n[i],l=a.awaited;if(!r.has(l))if(r.add(l),"RSC stream"!==l.name&&"rsc stream"!==l.name||null==l.value)s.push(serializeAsyncInfo(a,e,t));else{const e=l.value,t=o.get(e);if(void 0===t)o.set(e,a);else{const n=t.awaited;l!==n&&(void 0!==l.byteSize&&void 0!==n.byteSize&&l.byteSize>n.byteSize||l.end>n.end)&&o.set(e,a)}}}return o.forEach((n=>{s.push(serializeAsyncInfo(n,e,t))})),s}const on=300;function getSuspendedByRange(e){let t=1/0,n=-1/0;e.suspendedBy.forEach(((e,r)=>{r.end>n&&(n=r.end),r.start<t&&(t=r.start)}));const r=e.parent;if(null!==r){let e=-1/0;r.suspendedBy.forEach(((t,n)=>{n.end>e&&(e=n.end)}));const o=e+on;o>n&&(n=o);let s=n-on;e>s&&(s=e),s<t&&(t=s)}return t<1/0&&n>-1/0?[t,n]:null}function getAwaitStackFromHooks(e,t){for(let n=0;n<e.length;n++){const r=e[n],o=r.debugInfo;if(null!=o&&-1!==o.indexOf(t)){const e=r.hookSource;if(null!=e&&null!==e.functionName&&null!==e.fileName&&null!==e.lineNumber&&null!==e.columnNumber){return[[e.functionName,e.fileName,e.lineNumber,e.columnNumber,0,0,!1]]}return[]}const s=getAwaitStackFromHooks(r.subHooks,t);if(null!==s){const e=r.hookSource;if(null!=e&&null!==e.functionName&&null!==e.fileName&&null!==e.lineNumber&&null!==e.columnNumber){const t=[e.functionName,e.fileName,e.lineNumber,e.columnNumber,0,0,!1];s.push(t)}return s}}return null}function serializeAsyncInfo(e,t,n){const r=e.awaited,o=findNearestOwnerInstance(t,r.owner);let s,i=null==e.debugStack?null:parseStackTrace(e.debugStack,1);if(null!=e.owner||null!==i&&0!==i.length)s=findNearestOwnerInstance(t,e.owner);else if(i=null,s=t.kind===St?null:t,t.kind===bt||t.kind===St){const r=t.data;switch(r.tag){case A:case L:case K:case G:case Q:case we:case ke:null!==n&&(i=getAwaitStackFromHooks(n,e));break;default:null!=r._debugOwner&&null!=r._debugStack&&"string"!=typeof r._debugStack&&(i=parseStackTrace(r._debugStack,1),s=findNearestOwnerInstance(t,r._debugOwner))}}const a=r.value;let l;if("object"==typeof a&&null!==a&&"function"==typeof a.then)switch(a.status){case"fulfilled":l=a.value;break;case"rejected":l=a.reason}return{awaited:{name:r.name,description:"",start:r.start,end:r.end,byteSize:null==r.byteSize?null:r.byteSize,value:null==r.value?null:r.value,env:null==r.env?null:r.env,owner:null===o?null:instanceToSerializedElement(o),stack:null==r.debugStack?null:parseStackTrace(r.debugStack,1)},env:null==e.env?null:e.env,owner:null===s?null:instanceToSerializedElement(s),stack:i}}function isErrorBoundary(e){const{tag:t,type:n}=e;switch(t){case A:case K:const t=e.stateNode;return"function"==typeof n.getDerivedStateFromError||null!==t&&"function"==typeof t.componentDidCatch;default:return!1}}function inspectElementRaw(e){const t=Rt.get(e);if(void 0===t)return console.warn(`Could not find DevToolsInstance with id "${e}"`),null;if(t.kind===wt)return function(e){const t=getSourceForInstance(e),n=e.data,r="string"==typeof n.key?n.key:null,o=null==n.props?null:n.props,s=getOwnersListFromInstance(e);let i=null,a=!1,l=!1;const u=getNearestFiber(e);if(null!==u){let e=u;for(;null!==e.return;){const t=e;e=e.return,t.tag===Ce?l=!0:isErrorBoundary(t)&&(a=!0)}const t=e.stateNode;null!=t&&null!==t._debugRootType&&(i=t._debugRootType)}const c={stylex:null},d=x.get(n),f=null,p=getSuspendedByOfInstance(e,null),m=getSuspendedByRange(getNearestSuspenseNode(e));return{id:e.id,canEditHooks:!1,canEditFunctionProps:!1,canEditHooksAndDeletePaths:!1,canEditHooksAndRenamePaths:!1,canEditFunctionPropsDeletePaths:!1,canEditFunctionPropsRenamePaths:!1,canToggleError:dt&&a,isErrored:!1,canToggleSuspense:ft&&l,isSuspended:f,source:t,stack:null==n.owner||null==n.debugStack?null:parseStackTrace(n.debugStack,1),hasLegacyContext:!1,key:r,type:ue,context:null,hooks:null,props:o,state:null,errors:void 0===d?[]:Array.from(d.errors.entries()),warnings:void 0===d?[]:Array.from(d.warnings.entries()),suspendedBy:p,suspendedByRange:m,unknownSuspenders:g,owners:s,env:null==n.env?null:n.env,rootType:i,rendererPackageName:k.rendererPackageName,rendererVersion:k.version,plugins:c,nativeTag:null}}(t);if(t.kind===bt){return null===t.parent?function(e){const t=w.getFiberRoots(S);if(0===t.size)return null;const n={id:e,type:se,isErrored:!1,errors:[],warnings:[],suspendedBy:[],suspendedByRange:null,unknownSuspenders:g,rootType:null,plugins:{stylex:null},nativeTag:null,env:null,source:null,stack:null,rendererPackageName:null,rendererVersion:null,key:null,canEditFunctionProps:!1,canEditHooks:!1,canEditFunctionPropsDeletePaths:!1,canEditFunctionPropsRenamePaths:!1,canEditHooksAndDeletePaths:!1,canEditHooksAndRenamePaths:!1,canToggleError:!1,canToggleSuspense:!1,isSuspended:!1,hasLegacyContext:!1,context:null,hooks:null,props:null,state:null,owners:null};let r=1/0,o=-1/0;t.forEach((e=>{const t=Ft.get(e);if(void 0===t)throw new Error("Expected a root instance to exist for this Fiber root");const s=inspectFiberInstanceRaw(t);if(null===s)return;s.isErrored&&(n.isErrored=!0);for(let e=0;e<s.errors.length;e++)n.errors.push(s.errors[e]);for(let e=0;e<s.warnings.length;e++)n.warnings.push(s.warnings[e]);for(let e=0;e<s.suspendedBy.length;e++)n.suspendedBy.push(s.suspendedBy[e]);const i=s.suspendedByRange;null!==i&&(i[0]<r&&(r=i[0]),i[1]>o&&(o=i[1]))})),(r!==1/0||o!==-1/0)&&(n.suspendedByRange=[r,o]);return n}(t.id):inspectFiberInstanceRaw(t)}throw new Error("Unsupported instance kind")}function inspectFiberInstanceRaw(e){const t=e.data;if(null==t)return null;const{stateNode:n,key:r,memoizedProps:o,memoizedState:s,dependencies:i,tag:a,type:l}=t,u=getElementTypeForFiber(t),c=!(a!==L&&a!==ke&&a!==$||!s&&!i),d=a===A||a===K,f=R(l);let p=!1,m=null;if(a===A||a===L||a===K||a===G||a===Q||a===we||a===$||a===ke){if(p=!0,n&&null!=n.context){u===X&&!(l.contextTypes||l.contextType)||(m=n.context)}}else if(f!==Be&&f!==Le||void 0===l._context&&l.Provider===l){if(f===Je){const e=l._context;m=e._currentValue||null;let n=t.return;for(;null!==n;){const t=n.type;if(R(t)===Le){if(t===e){m=n.memoizedProps.value;break}}n=n.return}}}else{const e=l._context||l;m=e._currentValue||null;let n=t.return;for(;null!==n;){const t=n.type,r=R(t);if(r===Xe||r===Ze){if((t._context||t.context)===e){m=n.memoizedProps.value;break}}n=n.return}}let h=!1;null!==m&&(h=!!l.contextTypes,m={value:m});const w=getOwnersListFromInstance(e);let S=null;c&&(S=inspectHooks(t));let C=null,E=t,I=!1,_=!1;for(;null!==E.return;){const e=E;E=E.return,e.tag===Ce?_=!0:isErrorBoundary(e)&&(I=!0)}const T=E.stateNode;null!=T&&null!==T._debugRootType&&(C=T._debugRootType);let F=!1;if(isErrorBoundary(t)){const e=128;F=0!=(t.flags&e)||!0===yn.get(t)||null!==t.alternate&&!0===yn.get(t.alternate)}const D={stylex:null};it&&null!=o&&o.hasOwnProperty("xstyle")&&(D.stylex=function(e){const t=new Set,n={};return crawlData(e,t,n),{sources:Array.from(t).sort(),resolvedStyles:n}}(o.xstyle));let x=null;p&&(x=function(e){const t=getSourceForInstance(e);if(null!==t)return t;const n=getDispatcherRef(k),r=null==n?null:function(e,t,n){try{const r=describeFiber(e,t,n);if(""!==r)return r.slice(1)}catch(e){console.error(e)}return null}(N,e.data,n);if(null===r)return null;const o=extractLocationFromComponentStack(r);return e.source=o,o}(e));let O=yt.get(t);void 0===O&&null!==t.alternate&&(O=yt.get(t.alternate));let P=null;var M;u===te&&(P="object"!=typeof(M=t.stateNode)||null===M?null:null!=M.canonical&&"number"==typeof M.canonical.nativeTag?M.canonical.nativeTag:"number"==typeof M._nativeTag?M._nativeTag:null);let z=null;a===Ce&&(z=null!==s);const B=null!==e.suspenseNode?getSuspendedByOfSuspenseNode(e.suspenseNode,null):a===H?function(e){let t=e;for(;null===t.suspenseNode;){if(null===t.parent)return[];t=t.parent}return getSuspendedByOfSuspenseNode(t.suspenseNode,e)}(e):getSuspendedByOfInstance(e,S),j=getSuspendedByRange(getNearestSuspenseNode(e));let U=g;return null!==e.suspenseNode&&e.suspenseNode.hasUnknownSuspenders&&!z&&(U=0===k.bundleType?y:"_debugInfo"in t?b:v),{id:e.id,canEditHooks:"function"==typeof Ae,canEditFunctionProps:"function"==typeof We,canEditHooksAndDeletePaths:"function"==typeof je,canEditHooksAndRenamePaths:"function"==typeof Ve,canEditFunctionPropsDeletePaths:"function"==typeof Ye,canEditFunctionPropsRenamePaths:"function"==typeof Ke,canToggleError:dt&&I,isErrored:F,canToggleSuspense:ft&&_&&(!z||vn.has(t)||null!==t.alternate&&vn.has(t.alternate)),isSuspended:z,source:x,stack:null==t._debugOwner||null==t._debugStack?null:parseStackTrace(t._debugStack,1),hasLegacyContext:h,key:null!=r?r===st?"React.optimisticKey":r:null,type:u,context:m,hooks:S,props:o,state:d?s:null,errors:void 0===O?[]:Array.from(O.errors.entries()),warnings:void 0===O?[]:Array.from(O.warnings.entries()),suspendedBy:B,suspendedByRange:j,unknownSuspenders:U,owners:w,env:null,rootType:C,rendererPackageName:k.rendererPackageName,rendererVersion:k.version,plugins:D,nativeTag:P}}let sn=null,an=!1,ln={};function isMostRecentlyInspectedElement(e){if(null===sn)return!1;if(sn.id===e)return!0;if(sn.type===se){const t=Rt.get(e);return void 0!==t&&t.kind===bt&&null===t.parent}return!1}function createIsPathAllowed(e,t){return function(n){switch(t){case"hooks":if(1===n.length)return!0;if("hookSource"===n[n.length-2]&&"fileName"===n[n.length-1])return!0;if("subHooks"===n[n.length-1]||"subHooks"===n[n.length-2])return!0;break;case"suspendedBy":if(n.length<5)return!0}let r=null===e?ln:ln[e];if(!r)return!1;for(let e=0;e<n.length;e++)if(r=r[n[e]],!r)return!1;return!0}}let un=null,cn=null,dn=null,fn=!1,pn=0,mn=!1,hn=!1,gn=null;function snapshotTreeBaseDurations(e,t){e.kind!==St&&t.push([e.id,e.treeBaseDuration]);for(let n=e.firstChild;null!==n;n=n.nextSibling)snapshotTreeBaseDurations(n,t)}function startProfiling(e,t){fn||(mn=e,hn=t,cn=new Map,dn=new Map,w.getFiberRoots(S).forEach((e=>{const t=Ft.get(e);if(void 0===t)throw new Error("Expected the root instance to already exist when starting profiling");const n=t.id;cn.set(n,getDisplayNameForRoot(e.current));const r=[];snapshotTreeBaseDurations(t,r),dn.set(n,r)})),fn=!0,pn=_t(),gn=new Map,null!==ht&&ht(!0,hn))}function getNearestFiber(e){if(e.kind===wt){let t=e;for(;t.kind===wt;){if(null===t.firstChild)return null;t=t.firstChild}return t.data.return}return e.data}function shouldErrorFiberAlwaysNull(){return null}E&&startProfiling(I.recordChangeDescriptions,I.recordTimeline);const yn=new Map;function shouldErrorFiberAccordingToMap(e){if("function"!=typeof tt)throw new Error("Expected overrideError() to not get called for earlier React versions.");let t=yn.get(e);return!1===t?(yn.delete(e),0===yn.size&&tt(shouldErrorFiberAlwaysNull),!1):(void 0===t&&null!==e.alternate&&(t=yn.get(e.alternate),!1===t&&(yn.delete(e.alternate),0===yn.size&&tt(shouldErrorFiberAlwaysNull))),void 0!==t&&t)}function shouldSuspendFiberAlwaysFalse(){return!1}const vn=new Set;function shouldSuspendFiberAccordingToSet(e){return vn.has(e)||null!==e.alternate&&vn.has(e.alternate)}let bn=null,wn=null,Sn=null,kn=-1,Cn=!1;function setTrackedPath(e){null===e&&(wn=null,Sn=null,kn=-1,Cn=!1),bn=e}function updateTrackedPathStateBeforeMount(e,t){if(null===bn||!Cn)return!1;const n=e.return,r=null!==n?n.alternate:null;if(wn===n||wn===r&&null!==r){const n=getPathFrame(e),r=bn[kn+1];if(void 0===r)throw new Error("Expected to see a frame at the next depth.");if(n.index===r.index&&n.key===r.key&&n.displayName===r.displayName)return wn=e,null!==t&&t.kind===bt&&(Sn=t),kn++,Cn=kn!==bn.length-1,!1}return null===wn&&null===t||(Cn=!1),!0}function updateTrackedPathStateAfterMount(e){Cn=e}const En=new Map,In=new Map;function setRootPseudoKey(e,t){const n=getDisplayNameForRoot(t),r=In.get(n)||0;In.set(n,r+1);const o=`${n}:${r}`;En.set(e,o)}function getDisplayNameForRoot(e){let t=null,n=null,r=e.child;for(let e=0;e<3&&null!==r;e++){const e=F(r);if(null!==e&&("function"==typeof r.type?t=e:null===n&&(n=e)),null!==t)break;r=r.child}return t||n||"Anonymous"}function getPathFrame(e){const{key:t}=e;let n=F(e);const r=e.index;switch(e.tag){case j:const t=Ft.get(e.stateNode);if(void 0===t)throw new Error("Expected the root instance to exist when computing a path");const r=En.get(t.id);if(void 0===r)throw new Error("Expected mounted root to have known pseudo key.");n=r;break;case q:n=e.type}return{displayName:n,key:t===st?null:t,index:r}}function getVirtualPathFrame(e){return{displayName:e.data.name||"",key:null==e.data.key||e.data.key===st?null:e.data.key,index:-1}}const formatPriorityLevel=e=>{if(null==e)return"Unknown";switch(e){case Fe:return"Immediate";case Re:return"User-Blocking";case De:return"Normal";case xe:return"Low";case Ne:return"Idle";default:return"Unknown"}};function getSourceForInstance(e){let t=e.source;if(null===t)return null;if(e.kind===wt){const n=e.data.debugLocation;null!=n&&(t=n)}if(n=t,"[object Error]"===vt.call(n))return e.source=function(e){const t=parseStackTrace(e,1),n=e.stack;if(!n.includes("react_stack_bottom_frame")&&!n.includes("react-stack-bottom-frame"))return null;for(let e=t.length-1;e>=0;e--){const[n,r,o,s,i,a]=t[e];if(-1!==r.indexOf(":"))return[n,r,i||o,a||s]}return null}(t);var n;if("string"==typeof t){const n=t.lastIndexOf("\n"),r=-1===n?t:t.slice(n+1);return e.source=extractLocationFromComponentStack(r)}return t}return{cleanup:function(){fn=!1},clearErrorsAndWarnings:function(){for(const e of Rt.values()){if(e.kind===bt){const t=e.data;yt.delete(t),t.alternate&&yt.delete(t.alternate)}else x.delete(e.data);recordConsoleLogs(e,void 0)&&updateMostRecentlyInspectedElementIfNecessary(e.id)}flushPendingEvents(null)},clearErrorsForElementID:function(e){clearConsoleLogsHelper(e,"error")},clearWarningsForElementID:function(e){clearConsoleLogsHelper(e,"warn")},getSerializedElementValueByPath:function(e,t){if(isMostRecentlyInspectedElement(e)){return serializeToString(utils_getInObject(sn,t))}},deletePath:function(e,t,n,r){const o=Rt.get(t);if(void 0===o)return void console.warn(`Could not find DevToolsInstance with id "${t}"`);if(o.kind!==bt)return;const s=o.data;if(null!==s){const t=s.stateNode;switch(e){case"context":if(r=r.slice(1),s.tag===A)0===r.length||deletePathInObject(t.context,r),t.forceUpdate();break;case"hooks":"function"==typeof je&&je(s,n,r);break;case"props":null===t?"function"==typeof Ye&&Ye(s,r):(s.pendingProps=copyWithDelete(t.props,r),t.forceUpdate());break;case"state":switch(s.tag){case A:case K:deletePathInObject(t.state,r),t.forceUpdate()}}}},findHostInstancesForElementID,findLastKnownRectsForID:function(e){try{const t=Rt.get(e);return void 0===t?(console.warn(`Could not find DevToolsInstance with id "${e}"`),null):null===t.suspenseNode?null:t.suspenseNode.rects}catch(e){return null}},flushInitialOperations:function(){const e=Yt;Yt=null,null!==e&&e.length>0?e.forEach((e=>{w.emit("operations",e)})):(null!==bn&&(Cn=!0),w.getFiberRoots(S).forEach((e=>{const t=createFiberInstance(e.current);Ft.set(e,t),Rt.set(t.id,t),jt=t,setRootPseudoKey(jt.id,e.current),fn&&rootSupportsProfiling(e)&&(un={changeDescriptions:mn?new Map:null,durations:[],commitTime:_t()-pn,maxActualDuration:0,priorityLevel:null,updaters:null,effectDuration:null,passiveEffectDuration:null}),mountFiberRecursively(e.current,!1),flushPendingEvents(jt),jt=null})),Pt=!1)},getBestMatchForTrackedPath:function(){return null===bn||null===Sn?null:{id:Sn.id,isFullMatch:kn===bn.length-1}},getDisplayNameForElementID,getNearestMountedDOMNode:function(e){let t=e;for(;t&&!Ot.has(t);)t=t.parentNode;return t},getElementIDForHostInstance:function(e){const t=Ot.get(e);return void 0!==t?t.kind===St?t.parent.id:t.id:null},getSuspenseNodeIDForHostInstance:function(e){const t=Ot.get(e);if(void 0!==t){let e=t;for(;null===e.suspenseNode||e.kind===St;){if(null===e.parent)return null;e=e.parent}return e.id}return null},getInstanceAndStyle:function(e){let t=null,n=null;const r=Rt.get(e);if(void 0===r)return console.warn(`Could not find DevToolsInstance with id "${e}"`),{instance:t,style:n};if(r.kind!==bt)return{instance:t,style:n};const o=r.data;return null!==o&&(t=o.stateNode,null!==o.memoizedProps&&(n=o.memoizedProps.style)),{instance:t,style:n}},getOwnersList:function(e){const t=Rt.get(e);if(void 0===t)return console.warn(`Could not find DevToolsInstance with id "${e}"`),null;const n=instanceToSerializedElement(t),r=getOwnersListFromInstance(t);return null===r?[n]:(r.unshift(n),r.reverse(),r)},getPathForElement:function(e){const t=Rt.get(e);if(void 0===t)return null;const n=[];let r=t;for(;r.kind===wt;){if(n.push(getVirtualPathFrame(r)),null===r.parent)return null;r=r.parent}let o=r.data;for(;null!==o;)n.push(getPathFrame(o)),o=o.return;return n.reverse(),n},getProfilingData:function(){const e=[];if(null===gn)throw Error("getProfilingData() called before any profiling data was recorded");gn.forEach(((t,n)=>{const r=[],o=null!==cn&&cn.get(n)||"Unknown",s=null!==dn&&dn.get(n)||[];t.forEach(((e,t)=>{const{changeDescriptions:n,durations:o,effectDuration:s,maxActualDuration:i,passiveEffectDuration:a,priorityLevel:l,commitTime:u,updaters:c}=e,d=[],f=[];for(let e=0;e<o.length;e+=3){const t=o[e];d.push([t,formatDurationToMicrosecondsGranularity(o[e+1])]),f.push([t,formatDurationToMicrosecondsGranularity(o[e+2])])}r.push({changeDescriptions:null!==n?Array.from(n.entries()):null,duration:formatDurationToMicrosecondsGranularity(i),effectDuration:null!==s?formatDurationToMicrosecondsGranularity(s):null,fiberActualDurations:d,fiberSelfDurations:f,passiveEffectDuration:null!==a?formatDurationToMicrosecondsGranularity(a):null,priorityLevel:l,timestamp:u,updaters:c})})),e.push({commitData:r,displayName:o,initialTreeBaseDurations:s,rootID:n})}));let t=null;if("function"==typeof mt){const e=mt();if(e){const{batchUIDToMeasuresMap:n,internalModuleSourceToRanges:r,laneToLabelMap:o,laneToReactMeasureMap:s,...i}=e;t={...i,batchUIDToMeasuresKeyValueArray:Array.from(n.entries()),internalModuleSourceToRanges:Array.from(r.entries()),laneToLabelKeyValueArray:Array.from(o.entries()),laneToReactMeasureKeyValueArray:Array.from(s.entries())}}}return{dataForRoots:e,rendererID:S,timelineData:t}},handleCommitFiberRoot:function(e,t){const n=e.current;let r=null,o=Ft.get(e);o?r=o.data:(o=createFiberInstance(n),Ft.set(e,o),Rt.set(o.id,o)),jt=o,null!==bn&&(Cn=!0),Bt&&Lt.clear();const s=rootSupportsProfiling(e);fn&&s&&(un={changeDescriptions:mn?new Map:null,durations:[],commitTime:_t()-pn,maxActualDuration:0,priorityLevel:null==t?null:formatPriorityLevel(t),updaters:null,effectDuration:null,passiveEffectDuration:null});const i=null!==n.child,a=null!==r&&null!==r.child;if(!a&&i)setRootPseudoKey(jt.id,n),mountFiberRecursively(n,!1);else if(a&&i){if(null===r)throw new Error("Expected a previous Fiber when updating an existing root.");updateFiberRecursively(o,n,r,!1)}else a&&!i?(unmountInstanceRecursively(o),function(e){const t=En.get(e);if(void 0===t)throw new Error("Expected root pseudo key to be known.");const n=t.slice(0,t.lastIndexOf(":")),r=In.get(n);if(void 0===r)throw new Error("Expected counter to be known.");r>1?In.set(n,r-1):In.delete(n);En.delete(e)}(jt.id),Ft.delete(e)):a||i||Ft.delete(e);if(fn&&s&&!shouldBailoutWithPendingOperations()){const e=gn.get(jt.id);null!=e?e.push(un):gn.set(jt.id,[un])}flushPendingEvents(jt),Pt=!1,Bt&&w.emit("traceUpdates",Lt),jt=null},handleCommitFiberUnmount:function(e){},handlePostCommitFiberRoot:function(e){if(fn&&rootSupportsProfiling(e)&&null!==un){const{effectDuration:t,passiveEffectDuration:n}=function(e){let t=null,n=null;const r=e.current;if(null!=r){const e=r.stateNode;null!=e&&(t=null!=e.effectDuration?e.effectDuration:null,n=null!=e.passiveEffectDuration?e.passiveEffectDuration:null)}return{effectDuration:t,passiveEffectDuration:n}}(e);un.effectDuration=t,un.passiveEffectDuration=n}if(Pt){const t=Ft.get(e);if(void 0===t)throw new Error("Should have a root instance for a committed root. This is a bug in React DevTools.");!function(e){let t=!1;for(const e of Rt.values())if(e.kind===bt){const n=e.data;recordConsoleLogs(e,yt.get(n))&&(t=!0,updateMostRecentlyInspectedElementIfNecessary(e.id))}t&&flushPendingEvents(e)}(t)}},hasElementWithId:function(e){return Rt.has(e)},inspectElement:function(e,t,n,r){if(null!==n&&function(e){let t=ln;e.forEach((e=>{t[e]||(t[e]={}),t=t[e]}))}(n),isMostRecentlyInspectedElement(t)&&!r){if(!an){if(null!==n){let r=null;return"hooks"!==n[0]&&"suspendedBy"!==n[0]||(r=n[0]),{id:t,responseID:e,type:"hydrated-path",path:n,value:cleanForBridge(utils_getInObject(sn,n),createIsPathAllowed(null,r),n)}}return{id:t,responseID:e,type:"no-change"}}}else ln={};an=!1;try{sn=inspectElementRaw(t)}catch(n){if("ReactDebugToolsRenderError"===n.name){let r,o="Error rendering inspected element.";if(console.error(o+"\n\n",n),null!=n.cause){const e=getDisplayNameForElementID(t);console.error("React DevTools encountered an error while trying to inspect hooks. This is most likely caused by an error in current inspected component"+(null!=e?`: "${e}".`:".")+"\nThe error thrown in the component is: \n\n",n.cause),n.cause instanceof Error&&(o=n.cause.message||o,r=n.cause.stack)}return{type:"error",errorType:"user",id:t,responseID:e,message:o,stack:r}}return"ReactDebugToolsUnsupportedHookError"===n.name?{type:"error",errorType:"unknown-hook",id:t,responseID:e,message:"Unsupported hook in the react-debug-tools package: "+n.message}:(console.error("Error inspecting element.\n\n",n),{type:"error",errorType:"uncaught",id:t,responseID:e,message:n.message,stack:n.stack})}if(null===sn)return{id:t,responseID:e,type:"not-found"};const o=sn;!function(e){const{hooks:t,id:n,props:r}=e,o=Rt.get(n);if(void 0===o)return void console.warn(`Could not find DevToolsInstance with id "${n}"`);if(o.kind!==bt)return;const s=o.data,{elementType:i,stateNode:a,tag:l,type:u}=s;switch(l){case A:case K:case Q:C.$r=a;break;case G:case L:C.$r={hooks:t,props:r,type:u};break;case $:C.$r={hooks:t,props:r,type:u.render};break;case we:case ke:C.$r={hooks:t,props:r,type:null!=i&&null!=i.type?i.type:u};break;default:C.$r=null}}(o);const s={...o};return s.context=cleanForBridge(o.context,createIsPathAllowed("context",null)),s.hooks=cleanForBridge(o.hooks,createIsPathAllowed("hooks","hooks")),s.props=cleanForBridge(o.props,createIsPathAllowed("props",null)),s.state=cleanForBridge(o.state,createIsPathAllowed("state",null)),s.suspendedBy=cleanForBridge(o.suspendedBy,createIsPathAllowed("suspendedBy","suspendedBy")),{id:t,responseID:e,type:"full-data",value:s}},logElementToConsole:function(e){const t=function(e){return isMostRecentlyInspectedElement(e)&&!an}(e)?sn:inspectElementRaw(e);if(null===t)return void console.warn(`Could not find DevToolsInstance with id "${e}"`);const n=getDisplayNameForElementID(e),r="function"==typeof console.groupCollapsed;r&&console.groupCollapsed(`[Click to expand] %c<${n||"Component"} />`,"color: var(--dom-tag-name-color); font-weight: normal;"),null!==t.props&&console.log("Props:",t.props),null!==t.state&&console.log("State:",t.state),null!==t.hooks&&console.log("Hooks:",t.hooks);const o=findHostInstancesForElementID(e);null!==o&&console.log("Nodes:",o),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log("Right-click any value to save it as a global variable for further inspection."),r&&console.groupEnd()},getComponentStack:function(e){if(null==ct)return null;const t=ct();if(null===t)return null;if(t._debugTask)return null;const n=getDispatcherRef(k);if(void 0===n)return null;const r=function(e){return void 0!==e._debugStack}(t);let o="";if(r){const n=formatOwnerStack(e);n&&(o+="\n"+n),o+=function(e,t,n){const{HostHoistable:r,HostSingleton:o,HostText:s,HostComponent:i,SuspenseComponent:a,SuspenseListComponent:l,ViewTransitionComponent:u,ActivityComponent:c}=e;try{let e="";switch(t.tag===s&&(t=t.return),t.tag){case r:case o:case i:e+=describeBuiltInComponentFrame(t.type);break;case a:e+=describeBuiltInComponentFrame("Suspense");break;case l:e+=describeBuiltInComponentFrame("SuspenseList");break;case u:e+=describeBuiltInComponentFrame("ViewTransition");break;case c:e+=describeBuiltInComponentFrame("Activity")}let n=t;for(;n;)if("number"==typeof n.tag){const t=n;n=t._debugOwner;let r=t._debugStack;n&&r&&("string"!=typeof r&&(r=formatOwnerStack(r)),""!==r&&(e+="\n"+r))}else{if(null==n.debugStack)break;{const t=n.debugStack;n=n.owner,n&&t&&(e+="\n"+formatOwnerStack(t))}}return e}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}(N,t)}else o=function(e,t,n){try{let o="",s=t;do{o+=describeFiber(e,s,n);const t=s._debugInfo;if(t)for(let e=t.length-1;e>=0;e--){const n=t[e];"string"==typeof n.name&&(o+=describeBuiltInComponentFrame(n.name+((r=n.env)?" ["+r+"]":"")))}s=s.return}while(s);return o}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}var r}(N,t,n);return{enableOwnerStacks:r,componentStack:o}},getElementAttributeByPath:function(e,t){if(isMostRecentlyInspectedElement(e))return utils_getInObject(sn,t)},getElementSourceFunctionById:function(e){const t=Rt.get(e);if(void 0===t)return console.warn(`Could not find DevToolsInstance with id "${e}"`),null;if(t.kind!==bt)return null;const n=t.data,{elementType:r,tag:o,type:s}=n;switch(o){case A:case K:case G:case Q:case L:return s;case $:return s.render;case we:case ke:return null!=r&&null!=r.type?r.type:s;default:return null}},onErrorOrWarning:function(e,t){if(null==ct)return;const n=ct();if(null===n)return;if("error"===e&&(!0===yn.get(n)||null!==n.alternate&&!0===yn.get(n.alternate)))return;const r=formatConsoleArgumentsToSingleString(...t);let o=yt.get(n);void 0===o&&null!==n.alternate&&(o=yt.get(n.alternate),void 0!==o&&yt.set(n,o)),void 0===o&&(o={errors:new Map,errorsCount:0,warnings:new Map,warningsCount:0},yt.set(n,o));const s="error"===e?o.errors:o.warnings,i=s.get(r)||0;s.set(r,i+1),"error"===e?o.errorsCount++:o.warningsCount++,Pt=!0},overrideError:function(e,t){if("function"!=typeof tt||"function"!=typeof lt)throw new Error("Expected overrideError() to not get called for earlier React versions.");const n=Rt.get(e);if(void 0===n)return;const r=getNearestFiber(n);if(null===r)return;let o=r;for(;!isErrorBoundary(o);){if(null===o.return)return;o=o.return}yn.set(o,t),null!==o.alternate&&yn.delete(o.alternate),1===yn.size&&tt(shouldErrorFiberAccordingToMap),t||"function"!=typeof ut?lt(o):ut(o)},overrideSuspense:function(e,t){if("function"!=typeof ot||"function"!=typeof lt)throw new Error("Expected overrideSuspense() to not get called for earlier React versions.");const n=Rt.get(e);if(void 0===n)return;const r=getNearestFiber(n);if(null===r)return;let o=r;for(;o.tag!==Ce;){if(null===o.return)return;o=o.return}null!==o.alternate&&vn.delete(o.alternate),t?(vn.add(o),1===vn.size&&ot(shouldSuspendFiberAccordingToSet)):(vn.delete(o),0===vn.size&&ot(shouldSuspendFiberAlwaysFalse)),t||"function"!=typeof ut?lt(o):ut(o)},overrideSuspenseMilestone:function(e){if("function"!=typeof ot||"function"!=typeof lt)throw new Error("Expected overrideSuspenseMilestone() to not get called for earlier React versions.");const t=new Set(vn);let n=!1;for(let r=0;r<e.length;++r){const o=Rt.get(e[r]);if(void 0!==o)if(o.kind===bt){const e=o.data;vn.has(e)||null!==e.alternate&&vn.has(e.alternate)?(t.delete(e),null!==e.alternate&&t.delete(e.alternate)):(vn.add(e),lt(e),n=!0)}else console.warn(`Cannot not suspend ID '${e[r]}'.`);else console.warn(`Could not suspend ID '${e[r]}' since the instance can't be found.`)}t.forEach((e=>{vn.delete(e),n||"function"!=typeof ut?lt(e):ut(e)})),vn.size>0?ot(shouldSuspendFiberAccordingToSet):ot(shouldSuspendFiberAlwaysFalse)},overrideValueAtPath:function(e,t,n,r,o){const s=Rt.get(t);if(void 0===s)return void console.warn(`Could not find DevToolsInstance with id "${t}"`);if(s.kind!==bt)return;const i=s.data;if(null!==i){const t=i.stateNode;switch(e){case"context":if(r=r.slice(1),i.tag===A)0===r.length?t.context=o:utils_setInObject(t.context,r,o),t.forceUpdate();break;case"hooks":"function"==typeof Ae&&Ae(i,n,r,o);break;case"props":if(i.tag===A)i.pendingProps=copyWithSet(t.props,r,o),t.forceUpdate();else"function"==typeof We&&We(i,r,o);break;case"state":switch(i.tag){case A:case K:utils_setInObject(t.state,r,o),t.forceUpdate()}}}},renamePath:function(e,t,n,r,o){const s=Rt.get(t);if(void 0===s)return void console.warn(`Could not find DevToolsInstance with id "${t}"`);if(s.kind!==bt)return;const i=s.data;if(null!==i){const t=i.stateNode;switch(e){case"context":if(r=r.slice(1),o=o.slice(1),i.tag===A)0===r.length||renamePathInObject(t.context,r,o),t.forceUpdate();break;case"hooks":"function"==typeof Ve&&Ve(i,n,r,o);break;case"props":if(i.tag===A)i.pendingProps=copyWithRename(t.props,r,o),t.forceUpdate();else"function"==typeof Ke&&Ke(i,r,o);break;case"state":switch(i.tag){case A:case K:renamePathInObject(t.state,r,o),t.forceUpdate()}}}},renderer:k,setTraceUpdatesEnabled:function(e){Bt=e},setTrackedPath,startProfiling,stopProfiling:function(){fn=!1,mn=!1,null!==ht&&ht(!1,hn),hn=!1},storeAsGlobal:function(e,t,n){if(isMostRecentlyInspectedElement(e)){const e=utils_getInObject(sn,t),r=`$reactTemp${n}`;window[r]=e,console.log(r),console.log(e)}},supportsTogglingSuspense:ft,updateComponentFilters:function(e){if(fn)throw Error("Cannot modify filter preferences while profiling");const t=vn.size>0?new Set(vn):null,n=yn.size>0?new Map(yn):null;let r=null,o=null;for(let t=0;t<e.length;t++){const n=e[t];if(n.type===ye&&n.isEnabled){o=n;const e=Rt.get(n.activityID);void 0!==e&&e.kind===bt&&(r=e.data)}}if(w.getFiberRoots(S).forEach((e=>{const t=Ft.get(e);if(void 0===t)throw new Error("Expected the root instance to already exist when applying filters");jt=t,unmountInstanceRecursively(t),Ft.delete(e),jt=null})),r===xt||null!==o&&o.rendererID!==S||(pushOperation(f),pushOperation(0)),applyComponentFilters(e,r),In.clear(),"function"==typeof lt){if(null!==t)for(const e of t)"function"==typeof ut?ut(e):lt(e);if(null!==n&&"function"==typeof tt){tt(shouldErrorFiberAccordingToMap);for(const[e,t]of n)yn.set(e,!1),t&&("function"==typeof ut?ut(e):lt(e))}}w.getFiberRoots(S).forEach((e=>{const t=createFiberInstance(e.current);Ft.set(e,t),Rt.set(t.id,t),null!==bn&&(Cn=!0),jt=t,setRootPseudoKey(jt.id,e.current),mountFiberRecursively(e.current,!1),jt=null})),null!==o&&null!==Dt&&(o.activityID=Dt),flushPendingEvents(null),Pt=!1},getEnvironmentNames:function(){return Array.from(Tt)}}}function decorate(e,t,n){const r=e[t];return e[t]=function(e){return n.call(this,r,arguments)},r}function restoreMany(e,t){for(const n in t)e[n]=t[n]}function forceUpdate(e){"function"==typeof e.forceUpdate?e.forceUpdate():null!=e.updater&&"function"==typeof e.updater.enqueueForceUpdate&&e.updater.enqueueForceUpdate(this,(()=>{}),"forceUpdate")}function getData(e){let t=null,n=null;if(null!=e._currentElement){e._currentElement.key&&(n=String(e._currentElement.key));const r=e._currentElement.type;"string"==typeof r?t=r:"function"==typeof r&&(t=getDisplayName(r))}return{displayName:t,key:n}}function getElementType(e){if(null!=e._currentElement){const t=e._currentElement.type;if("function"==typeof t){return null!==e.getPublicInstance()?X:J}if("string"==typeof t)return te}return re}function getChildren(e){const t=[];if("object"!=typeof e);else if(null===e._currentElement||!1===e._currentElement);else if(e._renderedComponent){const n=e._renderedComponent;getElementType(n)!==re&&t.push(n)}else if(e._renderedChildren){const n=e._renderedChildren;for(const e in n){const r=n[e];getElementType(r)!==re&&t.push(r)}}return t}function legacy_renderer_attach(p,m,h,y){const v=new Map,b=new WeakMap,w=new WeakMap;let S,k=null,getNearestMountedDOMNode=e=>null;h.ComponentTree?(k=e=>{const t=h.ComponentTree.getClosestInstanceFromNode(e);return b.get(t)||null},S=e=>{const t=v.get(e);return h.ComponentTree.getNodeFromInstance(t)},getNearestMountedDOMNode=e=>{const t=h.ComponentTree.getClosestInstanceFromNode(e);return null!=t?h.ComponentTree.getNodeFromInstance(t):null}):h.Mount.getID&&h.Mount.getNode&&(k=e=>null,S=e=>null);function getDisplayNameForElementID(e){const t=v.get(e);return t?getData(t).displayName:null}function getID(e){if("object"!=typeof e||null===e)throw new Error("Invalid internal instance: "+e);if(!b.has(e)){const t=getUID();b.set(e,t),v.set(t,e)}return b.get(e)}function areEqualArrays(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}let C=[],E=null;function recordMount(n,r,o){const s=0===o;if(e&&console.log("%crecordMount()","color: green; font-weight: bold;",r,getData(n).displayName),s){const e=null!=n._currentElement&&null!=n._currentElement._owner;pushOperation(t),pushOperation(r),pushOperation(se),pushOperation(0),pushOperation(0),pushOperation(0),pushOperation(e?1:0),pushOperation(a),pushOperation(r),pushOperation(o),pushOperation(getStringID(null)),pushOperation(0),pushOperation(-1)}else{const e=getElementType(n),{displayName:s,key:i}=getData(n),a=null!=n._currentElement&&null!=n._currentElement._owner?getID(n._currentElement._owner):0,l=getStringID(s),u=getStringID(i);pushOperation(t),pushOperation(r),pushOperation(e),pushOperation(o),pushOperation(a),pushOperation(l),pushOperation(u),pushOperation(getStringID(null))}}function recordReorder(e,t,n){pushOperation(r),pushOperation(t);const o=n.map(getID);pushOperation(o.length);for(let e=0;e<o.length;e++)pushOperation(o[e])}function crawlAndRecordInitialMounts(t,n,r){e&&console.group("crawlAndRecordInitialMounts() id:",t);const o=v.get(t);null!=o&&(w.set(o,r),recordMount(o,t,n),getChildren(o).forEach((e=>crawlAndRecordInitialMounts(getID(e),t,r)))),e&&console.groupEnd()}h.Reconciler&&(E=function(e,t){const n={};for(const r in t)n[r]=decorate(e,r,t[r]);return n}(h.Reconciler,{mountComponent(e,t){const n=t[0],r=t[3];if(getElementType(n)===re)return e.apply(this,t);if(void 0===r._topLevelWrapper)return e.apply(this,t);const o=getID(n);recordMount(n,o,C.length>0?C[C.length-1]:0),C.push(o),w.set(n,getID(r._topLevelWrapper));try{const n=e.apply(this,t);return C.pop(),n}catch(e){throw C=[],e}finally{if(0===C.length){const e=w.get(n);if(void 0===e)throw new Error("Expected to find root ID.");flushPendingEvents(e)}}},performUpdateIfNecessary(e,t){const n=t[0];if(getElementType(n)===re)return e.apply(this,t);const r=getID(n);C.push(r);const o=getChildren(n);try{const s=e.apply(this,t),i=getChildren(n);return areEqualArrays(o,i)||recordReorder(n,r,i),C.pop(),s}catch(e){throw C=[],e}finally{if(0===C.length){const e=w.get(n);if(void 0===e)throw new Error("Expected to find root ID.");flushPendingEvents(e)}}},receiveComponent(e,t){const n=t[0];if(getElementType(n)===re)return e.apply(this,t);const r=getID(n);C.push(r);const o=getChildren(n);try{const s=e.apply(this,t),i=getChildren(n);return areEqualArrays(o,i)||recordReorder(n,r,i),C.pop(),s}catch(e){throw C=[],e}finally{if(0===C.length){const e=w.get(n);if(void 0===e)throw new Error("Expected to find root ID.");flushPendingEvents(e)}}},unmountComponent(e,t){const n=t[0];if(getElementType(n)===re)return e.apply(this,t);const r=getID(n);C.push(r);try{const n=e.apply(this,t);return C.pop(),function(e,t){0===C.length?R=t:T.push(t);v.delete(t)}(0,r),n}catch(e){throw C=[],e}finally{if(0===C.length){const e=w.get(n);if(void 0===e)throw new Error("Expected to find root ID.");flushPendingEvents(e)}}}}));const I=[],_=new Map;let T=[],F=0,R=null;function flushPendingEvents(h){if(0===I.length&&0===T.length&&null===R)return;const g=T.length+(null===R?0:1),y=new Array(3+F+(g>0?2+g:0)+(null===R?0:3)+I.length);let v=0;if(y[v++]=m,y[v++]=h,y[v++]=F,_.forEach(((e,t)=>{y[v++]=t.length;const n=utfEncodeString(t);for(let e=0;e<n.length;e++)y[v+e]=n[e];v+=t.length})),g>0){y[v++]=n,y[v++]=g;for(let e=0;e<T.length;e++)y[v++]=T[e];null!==R&&(y[v]=R,v++,y[v++]=l,y[v++]=1,y[v++]=R)}for(let e=0;e<I.length;e++)y[v+e]=I[e];v+=I.length,e&&function(e){const p=[`operations for renderer:${e[0]} and root:${e[1]}`];let m=2;const h=[null],g=e[m++],y=m+g;for(;m<y;){const t=e[m++],n=utfDecodeStringWithRanges(e,m,m+t-1);h.push(n),m+=t}for(;m<e.length;){const g=e[m];switch(g){case t:{const t=e[m+1],n=e[m+2];if(m+=3,n===se)p.push(`Add new root node ${t}`),m++,m++,m++,m++;else{const n=e[m];m++,m++;const r=h[e[m]];m++,m++,m++,p.push(`Add node ${t} (${r||"null"}) as child of ${n}`)}break}case n:{const t=e[m+1];m+=2;for(let n=0;n<t;n++){const t=e[m];m+=1,p.push(`Remove node ${t}`)}break}case i:{const t=e[m+1],n=e[m+2];m+=3,p.push(`Mode ${n} set for subtree with root ${t}`);break}case r:{const t=e[m+1],n=e[m+2];m+=3;const r=e.slice(m,m+n);m+=n,p.push(`Re-order node ${t} children ${r.join(",")}`);break}case o:m+=3;break;case s:{const t=e[m+1],n=e[m+2],r=e[m+3];m+=4,p.push(`Node ${t} has ${n} errors and ${r} warnings`);break}case a:{const t=e[m+1],n=e[m+2],r=e[m+3],o=e[m+4],s=e[m+5];m+=6;const i=h[r];let a;if(-1===s)a="null";else{a="[";for(let t=0;t<s;t++){const n=m+4*t;t>0&&(a+=", "),a+=`(${e[n+0]}, ${e[n+1]}, ${e[n+2]}, ${e[n+3]})`,m+=4}a+="]"}p.push(`Add suspense node ${t} (${String(i)},rects={${a}}) under ${n} suspended ${o}`);break}case l:{const t=e[m+1];m+=2;for(let n=0;n<t;n++){const t=e[m];m+=1,p.push(`Remove suspense node ${t}`)}break}case u:{const t=e[m+1],n=e[m+2];m+=3;const r=e.slice(m,m+n);m+=n,p.push(`Re-order suspense node ${t} children ${r.join(",")}`);break}case c:{const t=e[m+1],n=e[m+2];if(m+=3,-1===n)p.push(`Resize suspense node ${t} to null`);else{let r=`Resize suspense node ${t} to [`;for(let t=0;t<n;t++)t>0&&(r+=", "),r+=`(${e[m+0]}, ${e[m+1]}, ${e[m+2]}, ${e[m+3]})`,m+=4;p.push(r+"]")}break}case d:{m++;const t=e[m++];for(let n=0;n<t;n++){const t=e[m++],n=1===e[m++],r=e[m++]/1e3,o=1===e[m++],s=e[m++];m+=s,p.push(`Suspense node ${t} unique suspenders set to ${String(n)} ending at ${String(r)} is suspended set to ${String(o)} with ${String(s)} environments`)}break}case f:{m++;const t=e[m+1];p.push(0===t?"Reset applied activity slice":"Applied activity slice change to "+t);break}default:throw Error(`Unsupported Bridge operation "${g}"`)}}console.log(p.join("\n "))}(y),p.emit("operations",y),I.length=0,T=[],R=null,_.clear(),F=0}function pushOperation(e){I.push(e)}function getStringID(e){if(null===e)return 0;const t=_.get(e);if(void 0!==t)return t;const n=_.size+1;return _.set(e,n),F+=e.length+1,n}let D=null,x={};function createIsPathAllowed(e){return function(t){let n=x[e];if(!n)return!1;for(let e=0;e<t.length;e++)if(n=n[t[e]],!n)return!1;return!0}}function inspectElementRaw(e){const t=v.get(e);if(null==t)return null;const n=w.get(t);if(void 0===n)throw new Error("Expected to find root ID.");return n===e?function(e){const t=h.Mount._instancesByReactRootID||h.Mount._instancesByContainerID,n={id:e,type:se,isErrored:!1,errors:[],warnings:[],suspendedBy:[],suspendedByRange:null,unknownSuspenders:g,rootType:null,plugins:{stylex:null},nativeTag:null,env:null,source:null,stack:null,rendererPackageName:null,rendererVersion:null,key:null,canEditFunctionProps:!1,canEditHooks:!1,canEditFunctionPropsDeletePaths:!1,canEditFunctionPropsRenamePaths:!1,canEditHooksAndDeletePaths:!1,canEditHooksAndRenamePaths:!1,canToggleError:!1,canToggleSuspense:!1,isSuspended:!1,hasLegacyContext:!1,context:null,hooks:null,props:null,state:null,owners:null};let r=1/0,o=-1/0;for(const e in t){const s=t[e],i=inspectInternalInstanceRaw(getID(s),s);if(null===i)return null;i.isErrored&&(n.isErrored=!0);for(let e=0;e<i.errors.length;e++)n.errors.push(i.errors[e]);for(let e=0;e<i.warnings.length;e++)n.warnings.push(i.warnings[e]);for(let e=0;e<i.suspendedBy.length;e++)n.suspendedBy.push(i.suspendedBy[e]);const a=i.suspendedByRange;null!==a&&(a[0]<r&&(r=a[0]),a[1]>o&&(o=a[1]))}r===1/0&&o===-1/0||(n.suspendedByRange=[r,o]);return n}(n):inspectInternalInstanceRaw(e,t)}function inspectInternalInstanceRaw(e,t){const{key:n}=getData(t),r=getElementType(t);let o=null,s=null,i=null,a=null;const l=t._currentElement;if(null!==l){i=l.props;let e=l._owner;if(e)for(s=[];null!=e;)s.push({displayName:getData(e).displayName||"Unknown",id:getID(e),key:l.key,env:null,stack:null,type:getElementType(e)}),e._currentElement&&(e=e._currentElement._owner)}const u=t._instance;null!=u&&(o=u.context||null,a=u.state||null);return{id:e,canEditHooks:!1,canEditFunctionProps:!1,canEditHooksAndDeletePaths:!1,canEditHooksAndRenamePaths:!1,canEditFunctionPropsDeletePaths:!1,canEditFunctionPropsRenamePaths:!1,canToggleError:!1,isErrored:!1,canToggleSuspense:!1,isSuspended:null,source:null,stack:null,hasLegacyContext:!0,type:r,key:null!=n?n:null,context:o,hooks:null,props:i,state:a,errors:[],warnings:[],suspendedBy:[],suspendedByRange:null,unknownSuspenders:g,owners:s,env:null,rootType:null,rendererPackageName:null,rendererVersion:null,plugins:{stylex:null},nativeTag:null}}return{clearErrorsAndWarnings:function(){},clearErrorsForElementID:function(e){},clearWarningsForElementID:function(e){},cleanup:function(){null!==E&&(h.Component?restoreMany(h.Component.Mixin,E):restoreMany(h.Reconciler,E)),E=null},getSerializedElementValueByPath:function(e,t){const n=inspectElementRaw(e);if(null!==n){return serializeToString(utils_getInObject(n,t))}},deletePath:function(e,t,n,r){const o=v.get(t);if(null!=o){const t=o._instance;if(null!=t)switch(e){case"context":deletePathInObject(t.context,r),forceUpdate(t);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":const e=o._currentElement;o._currentElement={...e,props:copyWithDelete(e.props,r)},forceUpdate(t);break;case"state":deletePathInObject(t.state,r),forceUpdate(t)}}},flushInitialOperations:function(){const e=h.Mount._instancesByReactRootID||h.Mount._instancesByContainerID;for(const t in e){const n=getID(e[t]);crawlAndRecordInitialMounts(n,0,n),flushPendingEvents(n)}},getBestMatchForTrackedPath:function(){return null},getDisplayNameForElementID,getNearestMountedDOMNode,getElementIDForHostInstance:k,getSuspenseNodeIDForHostInstance:e=>null,getInstanceAndStyle:function(e){let t=null,n=null;const r=v.get(e);if(null!=r){t=r._instance||null;const e=r._currentElement;null!=e&&null!=e.props&&(n=e.props.style||null)}return{instance:t,style:n}},findHostInstancesForElementID:e=>{const t=S(e);return null==t?null:[t]},findLastKnownRectsForID:()=>null,getOwnersList:function(e){return null},getPathForElement:function(e){return null},getProfilingData:()=>{throw new Error("getProfilingData not supported by this renderer")},handleCommitFiberRoot:()=>{throw new Error("handleCommitFiberRoot not supported by this renderer")},handleCommitFiberUnmount:()=>{throw new Error("handleCommitFiberUnmount not supported by this renderer")},handlePostCommitFiberRoot:()=>{throw new Error("handlePostCommitFiberRoot not supported by this renderer")},hasElementWithId:function(e){return v.has(e)},inspectElement:function(e,t,n,r){(r||D!==t)&&(D=t,x={});const o=inspectElementRaw(t);return null===o?{id:t,responseID:e,type:"not-found"}:(null!==n&&function(e){let t=x;e.forEach((e=>{t[e]||(t[e]={}),t=t[e]}))}(n),function(e){const t=v.get(e);if(null!=t)switch(getElementType(t)){case X:y.$r=t._instance;break;case J:const n=t._currentElement;if(null==n)return void console.warn(`Could not find element with id "${e}"`);y.$r={props:n.props,type:n.type};break;default:y.$r=null}else console.warn(`Could not find instance with id "${e}"`)}(t),o.context=cleanForBridge(o.context,createIsPathAllowed("context")),o.props=cleanForBridge(o.props,createIsPathAllowed("props")),o.state=cleanForBridge(o.state,createIsPathAllowed("state")),o.suspendedBy=cleanForBridge(o.suspendedBy,createIsPathAllowed("suspendedBy")),{id:t,responseID:e,type:"full-data",value:o})},logElementToConsole:function(e){const t=inspectElementRaw(e);if(null===t)return void console.warn(`Could not find element with id "${e}"`);const n=getDisplayNameForElementID(e),r="function"==typeof console.groupCollapsed;r&&console.groupCollapsed(`[Click to expand] %c<${n||"Component"} />`,"color: var(--dom-tag-name-color); font-weight: normal;"),null!==t.props&&console.log("Props:",t.props),null!==t.state&&console.log("State:",t.state),null!==t.context&&console.log("Context:",t.context);const o=S(e);null!==o&&console.log("Node:",o),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log("Right-click any value to save it as a global variable for further inspection."),r&&console.groupEnd()},overrideError:()=>{throw new Error("overrideError not supported by this renderer")},overrideSuspense:()=>{throw new Error("overrideSuspense not supported by this renderer")},overrideSuspenseMilestone:()=>{throw new Error("overrideSuspenseMilestone not supported by this renderer")},overrideValueAtPath:function(e,t,n,r,o){const s=v.get(t);if(null!=s){const t=s._instance;if(null!=t)switch(e){case"context":utils_setInObject(t.context,r,o),forceUpdate(t);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":const e=s._currentElement;s._currentElement={...e,props:copyWithSet(e.props,r,o)},forceUpdate(t);break;case"state":utils_setInObject(t.state,r,o),forceUpdate(t)}}},renamePath:function(e,t,n,r,o){const s=v.get(t);if(null!=s){const t=s._instance;if(null!=t)switch(e){case"context":renamePathInObject(t.context,r,o),forceUpdate(t);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":const e=s._currentElement;s._currentElement={...e,props:copyWithRename(e.props,r,o)},forceUpdate(t);break;case"state":renamePathInObject(t.state,r,o),forceUpdate(t)}}},getElementAttributeByPath:function(e,t){const n=inspectElementRaw(e);if(null!==n)return utils_getInObject(n,t)},getElementSourceFunctionById:function(e){const t=v.get(e);if(null==t)return console.warn(`Could not find instance with id "${e}"`),null;const n=t._currentElement;return null==n?(console.warn(`Could not find element with id "${e}"`),null):n.type},renderer:h,setTraceUpdatesEnabled:function(e){},setTrackedPath:function(e){},startProfiling:()=>{},stopProfiling:()=>{},storeAsGlobal:function(e,t,n){const r=inspectElementRaw(e);if(null!==r){const e=utils_getInObject(r,t),o=`$reactTemp${n}`;window[o]=e,console.log(o),console.log(e)}},supportsTogglingSuspense:!1,updateComponentFilters:function(e){},getEnvironmentNames:function(){return[]}}}function isMatchingRender(e){return!function(e){return null!=e&&""!==e&>e(e,Re)}(e)}function formatConsoleArguments(e,...t){if(0===t.length||"string"!=typeof e)return[e,...t];const n=t.slice();let r="",o=0;for(let t=0;t<e.length;++t){const s=e[t];if("%"!==s){r+=s;continue}const i=e[t+1];switch(++t,i){case"c":case"O":case"o":++o,r+=`%${i}`;break;case"d":case"i":{const[e]=n.splice(o,1);r+=parseInt(e,10).toString();break}case"f":{const[e]=n.splice(o,1);r+=parseFloat(e).toString();break}case"s":{const[e]=n.splice(o,1);r+=String(e);break}default:r+=`%${i}`}}return[r,...n]}const Ht=/\s{4}(in|at)\s{1}/,At=/:\d+:\d+(\n|$)/;const Mt=/ \(\<anonymous\>\)$|\@unknown\:0\:0$|\(|\)|\[|\]/gm;const zt=console,$t={recordChangeDescriptions:!1,recordTimeline:!1};function postMessage(e){window.postMessage(e)}let Bt,Lt;if(!window.hasOwnProperty("__REACT_DEVTOOLS_GLOBAL_HOOK__")){const e=new Promise((e=>{Bt=e})),t=new Promise((e=>{Lt=e}));window.addEventListener("message",(function messageListener(e){if(e.source===window&&"react-devtools-settings-injector"===e.data.source){const t=e.data.payload;t.handshake?postMessage({source:"react-devtools-hook-installer",payload:{handshake:!0}}):t.hookSettings&&(window.removeEventListener("message",messageListener),Bt(t.hookSettings),Lt(t.componentFilters))}})),postMessage({source:"react-devtools-hook-installer",payload:{handshake:!0}});const n="true"===sessionStorageGetItem("React::DevTools::reloadAndProfile"),r={recordChangeDescriptions:"true"===sessionStorageGetItem("React::DevTools::recordChangeDescriptions"),recordTimeline:"true"===sessionStorageGetItem("React::DevTools::recordTimeline")};!function(e,t,n,r=!1,o=$t){if(e.hasOwnProperty("__REACT_DEVTOOLS_GLOBAL_HOOK__"))return null;const s=r;let i=0,a=!1,l=!1;const u=[],c=[],d=[];function getTopStackFrameString(e){const t=e.stack.split("\n");return t.length>1?t[1]:null}function patchConsoleForErrorsAndWarnings(){if(!y.settings)return;const e=["error","trace","warn"];for(const t of e){const e=zt[t],overrideMethod=(...n)=>{const r=y.settings;if(null==r)return void e(...n);if(l&&r.hideConsoleLogsInStrictMode)return;let o=!1,s=!1;if(r.appendComponentStack){const e=n.length>0?n[n.length-1]:null;s="string"==typeof e&&(i=e,Ht.test(i)||At.test(i))}var i;const a=r.showInlineWarningsAndErrors&&("error"===t||"warn"===t);for(const e of y.rendererInterfaces.values()){const{onErrorOrWarning:i,getComponentStack:l}=e;try{a&&null!=i&&i(t,n.slice())}catch(e){setTimeout((()=>{throw e}),0)}try{if(r.appendComponentStack&&null!=l){const e=l(Error("react-stack-top-frame"));if(null!==e){const{enableOwnerStacks:t,componentStack:r}=e;if(""!==r){const e=new Error("");if(e.name=t?"Error Stack":"Error Component Stack",e.stack=(t?"Error Stack:":"Error Component Stack:")+r,s){if(u=n[n.length-1],c=r,u.replace(Mt,"")===c.replace(Mt,"")){const t=n[0];n.length>1&&"string"==typeof t&&t.endsWith("%s")&&(n[0]=t.slice(0,t.length-2)),n[n.length-1]=e,o=!0}}else n.push(e),o=!0}break}}}catch(e){setTimeout((()=>{throw e}),0)}}var u,c;r.breakOnConsoleErrors,l&&!r.disableSecondConsoleLogDimmingInStrictMode?e(o?"[2;38;2;124;124;124m%s %o[0m":w,...formatConsoleArguments(...n)):e(...n)};zt[t]=overrideMethod}}const f={},p=new Map,m={},h=new Map,g=new Map,y={rendererInterfaces:p,listeners:m,backends:g,renderers:h,hasUnsupportedRendererAttached:!1,emit:function(e,t){m[e]&&m[e].map((e=>e(t)))},getFiberRoots:function(e){const t=f;return t[e]||(t[e]=new Set),t[e]},inject:function(n){const r=++i;h.set(r,n);const l=a?"deadcode":function(e){try{if("string"==typeof e.version)return e.bundleType>0?"development":"production";const t=Function.prototype.toString;if(e.Mount&&e.Mount._renderNewRootComponent){const n=t.call(e.Mount._renderNewRootComponent);return 0!==n.indexOf("function")?"production":-1!==n.indexOf("storedMeasure")?"development":-1!==n.indexOf("should be a pure function")?-1!==n.indexOf("NODE_ENV")||-1!==n.indexOf("development")||-1!==n.indexOf("true")?"development":-1!==n.indexOf("nextElement")||-1!==n.indexOf("nextComponent")?"unminified":"development":-1!==n.indexOf("nextElement")||-1!==n.indexOf("nextComponent")?"unminified":"outdated"}}catch(e){}return"production"}(n);y.emit("renderer",{id:r,renderer:n,reactBuildType:l});const u=function(e,t,n,r,o,s,i){if(!isMatchingRender(n.reconcilerVersion||n.version))return;let a=e.rendererInterfaces.get(t);return null==a&&("function"==typeof n.getCurrentComponentInfo?a=attach(0,0,n):"function"==typeof n.findFiberByHostInstance||null!=n.currentDispatcherRef?a=renderer_attach(e,t,n,r,o,s,i):n.ComponentTree&&(a=legacy_renderer_attach(e,t,n,r))),a}(y,r,n,e,s,o,t);return null!=u?(y.rendererInterfaces.set(r,u),y.emit("renderer-attached",{id:r,rendererInterface:u})):(y.hasUnsupportedRendererAttached=!0,y.emit("unsupported-renderer-version")),r},on:function(e,t){m[e]||(m[e]=[]),m[e].push(t)},off:function(e,t){if(!m[e])return;const n=m[e].indexOf(t);-1!==n&&m[e].splice(n,1),m[e].length||delete m[e]},sub:function(e,t){return y.on(e,t),()=>y.off(e,t)},supportsFiber:!0,supportsFlight:!0,checkDCE:function(e){try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&(a=!0,setTimeout((function(){throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://react.dev/link/perf-use-production-build")})))}catch(e){}},onCommitFiberUnmount:function(e,t){const n=p.get(e);null!=n&&n.handleCommitFiberUnmount(t)},onCommitFiberRoot:function(e,t,n){const r=y.getFiberRoots(e),o=t.current,s=r.has(t),i=null==o.memoizedState||null==o.memoizedState.element;s||i?s&&i&&r.delete(t):r.add(t);const a=p.get(e);null!=a&&a.handleCommitFiberRoot(t,n)},onPostCommitFiberRoot:function(e,t){const n=p.get(e);null!=n&&n.handlePostCommitFiberRoot(t)},setStrictMode:function(e,t){l=t,t?function(){if(!y.settings)return;if(u.length>0)return;const e=["group","groupCollapsed","info","log"];for(const t of e){const e=zt[t],overrideMethod=(...t)=>{const n=y.settings;null!=n?n.hideConsoleLogsInStrictMode||(n.disableSecondConsoleLogDimmingInStrictMode?e(...t):e(w,...formatConsoleArguments(...t))):e(...t)};zt[t]=overrideMethod,u.push((()=>{zt[t]=e}))}}():(u.forEach((e=>e())),u.length=0)},getInternalModuleRanges:function(){return d},registerInternalModuleStart:function(e){const t=getTopStackFrameString(e);null!==t&&c.push(t)},registerInternalModuleStop:function(e){if(c.length>0){const t=c.pop(),n=getTopStackFrameString(e);null!==n&&d.push([t,n])}}};null==n?(y.settings={appendComponentStack:!0,breakOnConsoleErrors:!1,showInlineWarningsAndErrors:!0,hideConsoleLogsInStrictMode:!1,disableSecondConsoleLogDimmingInStrictMode:!1},patchConsoleForErrorsAndWarnings()):Promise.resolve(n).then((e=>{y.settings=e,y.emit("settingsInitialized",e),patchConsoleForErrorsAndWarnings()})).catch((()=>{zt.error("React DevTools failed to get Console Patching settings. Console won't be patched and some console features will not work.")})),Object.defineProperty(e,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!1,enumerable:!1,get:()=>y})}(window,t,e,n,r),window.__REACT_DEVTOOLS_GLOBAL_HOOK__.on("renderer",(function({reactBuildType:e}){window.postMessage({source:"react-devtools-hook",payload:{type:"react-renderer-attached",reactBuildType:e}},"*")}))}})()})();
|
|
//# sourceMappingURL=installHook.js.map
|