harness-async 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +152 -0
  3. package/dist/dashboard/assets/index-TGNGdtwt.js +246 -0
  4. package/dist/dashboard/assets/index-f4TpA4iP.css +1 -0
  5. package/dist/dashboard/index.html +13 -0
  6. package/dist/src/adapters/claude-adapter.js +52 -0
  7. package/dist/src/adapters/codex-adapter.js +55 -0
  8. package/dist/src/adapters/index.js +14 -0
  9. package/dist/src/adapters/shared.js +74 -0
  10. package/dist/src/cli/commands/daemon.js +116 -0
  11. package/dist/src/cli/commands/doctor.js +50 -0
  12. package/dist/src/cli/commands/hook.js +188 -0
  13. package/dist/src/cli/commands/init.js +22 -0
  14. package/dist/src/cli/commands/run.js +129 -0
  15. package/dist/src/cli/commands/schedule.js +105 -0
  16. package/dist/src/cli/commands/task.js +188 -0
  17. package/dist/src/cli/index.js +23 -0
  18. package/dist/src/cli/utils/notify.js +32 -0
  19. package/dist/src/cli/utils/output.js +94 -0
  20. package/dist/src/core/daemon.js +375 -0
  21. package/dist/src/core/dag.js +80 -0
  22. package/dist/src/core/event-log.js +34 -0
  23. package/dist/src/core/lock.js +25 -0
  24. package/dist/src/core/run-manager.js +265 -0
  25. package/dist/src/core/run-orchestrator.js +193 -0
  26. package/dist/src/core/scheduler.js +106 -0
  27. package/dist/src/core/sessions.js +48 -0
  28. package/dist/src/core/store.js +225 -0
  29. package/dist/src/core/task-manager.js +375 -0
  30. package/dist/src/core/tmux.js +51 -0
  31. package/dist/src/daemon.js +35 -0
  32. package/dist/src/dashboard/routes.js +107 -0
  33. package/dist/src/dashboard/server.js +142 -0
  34. package/dist/src/dashboard/ws.js +75 -0
  35. package/dist/src/types/adapter.js +30 -0
  36. package/dist/src/types/index.js +87 -0
  37. package/package.json +65 -0
@@ -0,0 +1,246 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const f of l)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(l){const f={};return l.integrity&&(f.integrity=l.integrity),l.referrerPolicy&&(f.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?f.credentials="include":l.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(l){if(l.ep)return;l.ep=!0;const f=i(l);fetch(l.href,f)}})();var eh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Hy={exports:{}},th={},ky={exports:{}},nc={exports:{}};nc.exports;var BN;function $6(){return BN||(BN=1,(function(n,a){(function(){function i(O,te){Object.defineProperty(f.prototype,O,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",te[0],te[1])}})}function s(O){return O===null||typeof O!="object"?null:(O=qe&&O[qe]||O["@@iterator"],typeof O=="function"?O:null)}function l(O,te){O=(O=O.constructor)&&(O.displayName||O.name)||"ReactClass";var ye=O+"."+te;Re[ye]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",te,O),Re[ye]=!0)}function f(O,te,ye){this.props=O,this.context=te,this.refs=De,this.updater=ye||Le}function d(){}function h(O,te,ye){this.props=O,this.context=te,this.refs=De,this.updater=ye||Le}function p(){}function m(O){return""+O}function y(O){try{m(O);var te=!1}catch{te=!0}if(te){te=console;var ye=te.error,_e=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return ye.call(te,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_e),m(O)}}function v(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===qt?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case z:return"Fragment";case ge:return"Profiler";case W:return"StrictMode";case oe:return"Suspense";case he:return"SuspenseList";case me:return"Activity"}if(typeof O=="object")switch(typeof O.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case de:return"Portal";case re:return O.displayName||"Context";case B:return(O._context.displayName||"Context")+".Consumer";case ue:var te=O.render;return O=O.displayName,O||(O=te.displayName||te.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case be:return te=O.displayName||null,te!==null?te:v(O.type)||"Memo";case Te:te=O._payload,O=O._init;try{return v(O(te))}catch{}}return null}function b(O){if(O===z)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===Te)return"<...>";try{var te=v(O);return te?"<"+te+">":"<...>"}catch{return"<...>"}}function S(){var O=we.A;return O===null?null:O.getOwner()}function x(){return Error("react-stack-top-frame")}function A(O){if(en.call(O,"key")){var te=Object.getOwnPropertyDescriptor(O,"key").get;if(te&&te.isReactWarning)return!1}return O.key!==void 0}function w(O,te){function ye(){ut||(ut=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",te))}ye.isReactWarning=!0,Object.defineProperty(O,"key",{get:ye,configurable:!0})}function T(){var O=v(this.type);return wn[O]||(wn[O]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),O=this.props.ref,O!==void 0?O:null}function C(O,te,ye,_e,Ce,Ie){var Me=ye.ref;return O={$$typeof:ne,type:O,key:te,props:ye,_owner:_e},(Me!==void 0?Me:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:T}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ce}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ie}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function E(O,te){return te=C(O.type,te,O.props,O._owner,O._debugStack,O._debugTask),O._store&&(te._store.validated=O._store.validated),te}function N(O){M(O)?O._store&&(O._store.validated=1):typeof O=="object"&&O!==null&&O.$$typeof===Te&&(O._payload.status==="fulfilled"?M(O._payload.value)&&O._payload.value._store&&(O._payload.value._store.validated=1):O._store&&(O._store.validated=1))}function M(O){return typeof O=="object"&&O!==null&&O.$$typeof===ne}function q(O){var te={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(ye){return te[ye]})}function U(O,te){return typeof O=="object"&&O!==null&&O.key!=null?(y(O.key),q(""+O.key)):te.toString(36)}function H(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(p,p):(O.status="pending",O.then(function(te){O.status==="pending"&&(O.status="fulfilled",O.value=te)},function(te){O.status==="pending"&&(O.status="rejected",O.reason=te)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function k(O,te,ye,_e,Ce){var Ie=typeof O;(Ie==="undefined"||Ie==="boolean")&&(O=null);var Me=!1;if(O===null)Me=!0;else switch(Ie){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(O.$$typeof){case ne:case de:Me=!0;break;case Te:return Me=O._init,k(Me(O._payload),te,ye,_e,Ce)}}if(Me){Me=O,Ce=Ce(Me);var Ke=_e===""?"."+U(Me,0):_e;return Nt(Ce)?(ye="",Ke!=null&&(ye=Ke.replace(ga,"$&/")+"/"),k(Ce,te,ye,"",function(rn){return rn})):Ce!=null&&(M(Ce)&&(Ce.key!=null&&(Me&&Me.key===Ce.key||y(Ce.key)),ye=E(Ce,ye+(Ce.key==null||Me&&Me.key===Ce.key?"":(""+Ce.key).replace(ga,"$&/")+"/")+Ke),_e!==""&&Me!=null&&M(Me)&&Me.key==null&&Me._store&&!Me._store.validated&&(ye._store.validated=2),Ce=ye),te.push(Ce)),1}if(Me=0,Ke=_e===""?".":_e+":",Nt(O))for(var Ge=0;Ge<O.length;Ge++)_e=O[Ge],Ie=Ke+U(_e,Ge),Me+=k(_e,te,ye,Ie,Ce);else if(Ge=s(O),typeof Ge=="function")for(Ge===O.entries&&(Zt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Zt=!0),O=Ge.call(O),Ge=0;!(_e=O.next()).done;)_e=_e.value,Ie=Ke+U(_e,Ge++),Me+=k(_e,te,ye,Ie,Ce);else if(Ie==="object"){if(typeof O.then=="function")return k(H(O),te,ye,_e,Ce);throw te=String(O),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return Me}function G(O,te,ye){if(O==null)return O;var _e=[],Ce=0;return k(O,_e,"","",function(Ie){return te.call(ye,Ie,Ce++)}),_e}function V(O){if(O._status===-1){var te=O._ioInfo;te!=null&&(te.start=te.end=performance.now()),te=O._result;var ye=te();if(ye.then(function(Ce){if(O._status===0||O._status===-1){O._status=1,O._result=Ce;var Ie=O._ioInfo;Ie!=null&&(Ie.end=performance.now()),ye.status===void 0&&(ye.status="fulfilled",ye.value=Ce)}},function(Ce){if(O._status===0||O._status===-1){O._status=2,O._result=Ce;var Ie=O._ioInfo;Ie!=null&&(Ie.end=performance.now()),ye.status===void 0&&(ye.status="rejected",ye.reason=Ce)}}),te=O._ioInfo,te!=null){te.value=ye;var _e=ye.displayName;typeof _e=="string"&&(te.name=_e)}O._status===-1&&(O._status=0,O._result=ye)}if(O._status===1)return te=O._result,te===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,te),"default"in te||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,te),te.default;throw O._result}function X(){var O=we.H;return O===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),O}function ee(){we.asyncTransitions--}function j(O){if(er===null)try{var te=("require"+Math.random()).slice(0,7);er=(n&&n[te]).call(n,"timers").setImmediate}catch{er=function(_e){ya===!1&&(ya=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ce=new MessageChannel;Ce.port1.onmessage=_e,Ce.port2.postMessage(void 0)}}return er(O)}function Q(O){return 1<O.length&&typeof AggregateError=="function"?new AggregateError(O):O[0]}function L(O,te){te!==Yt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Yt=te}function F(O,te,ye){var _e=we.actQueue;if(_e!==null)if(_e.length!==0)try{Z(_e),j(function(){return F(O,te,ye)});return}catch(Ce){we.thrownErrors.push(Ce)}else we.actQueue=null;0<we.thrownErrors.length?(_e=Q(we.thrownErrors),we.thrownErrors.length=0,ye(_e)):te(O)}function Z(O){if(!Ja){Ja=!0;var te=0;try{for(;te<O.length;te++){var ye=O[te];do{we.didUsePromise=!1;var _e=ye(!1);if(_e!==null){if(we.didUsePromise){O[te]=ye,O.splice(0,te);return}ye=_e}else break}while(!0)}O.length=0}catch(Ce){O.splice(0,te+1),we.thrownErrors.push(Ce)}finally{Ja=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ne=Symbol.for("react.transitional.element"),de=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),re=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),qe=Symbol.iterator,Re={},Le={isMounted:function(){return!1},enqueueForceUpdate:function(O){l(O,"forceUpdate")},enqueueReplaceState:function(O){l(O,"replaceState")},enqueueSetState:function(O){l(O,"setState")}},Ae=Object.assign,De={};Object.freeze(De),f.prototype.isReactComponent={},f.prototype.setState=function(O,te){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,te,"setState")},f.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};var Ne={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Lr in Ne)Ne.hasOwnProperty(Lr)&&i(Lr,Ne[Lr]);d.prototype=f.prototype,Ne=h.prototype=new d,Ne.constructor=h,Ae(Ne,f.prototype),Ne.isPureReactComponent=!0;var Nt=Array.isArray,qt=Symbol.for("react.client.reference"),we={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},en=Object.prototype.hasOwnProperty,vt=console.createTask?console.createTask:function(){return null};Ne={react_stack_bottom_frame:function(O){return O()}};var ut,tn,wn={},Tn=Ne.react_stack_bottom_frame.bind(Ne,x)(),Rn=vt(b(x)),Zt=!1,ga=/\/+/g,Wn=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},ya=!1,er=null,Yt=0,nn=!1,Ja=!1,Ka=typeof queueMicrotask=="function"?function(O){queueMicrotask(function(){return queueMicrotask(O)})}:j;Ne=Object.freeze({__proto__:null,c:function(O){return X().useMemoCache(O)}});var Lr={map:G,forEach:function(O,te,ye){G(O,function(){te.apply(this,arguments)},ye)},count:function(O){var te=0;return G(O,function(){te++}),te},toArray:function(O){return G(O,function(te){return te})||[]},only:function(O){if(!M(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};a.Activity=me,a.Children=Lr,a.Component=f,a.Fragment=z,a.Profiler=ge,a.PureComponent=h,a.StrictMode=W,a.Suspense=oe,a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=we,a.__COMPILER_RUNTIME=Ne,a.act=function(O){var te=we.actQueue,ye=Yt;Yt++;var _e=we.actQueue=te!==null?te:[],Ce=!1;try{var Ie=O()}catch(Ge){we.thrownErrors.push(Ge)}if(0<we.thrownErrors.length)throw L(te,ye),O=Q(we.thrownErrors),we.thrownErrors.length=0,O;if(Ie!==null&&typeof Ie=="object"&&typeof Ie.then=="function"){var Me=Ie;return Ka(function(){Ce||nn||(nn=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Ge,rn){Ce=!0,Me.then(function(tr){if(L(te,ye),ye===0){try{Z(_e),j(function(){return F(tr,Ge,rn)})}catch(Wa){we.thrownErrors.push(Wa)}if(0<we.thrownErrors.length){var Qi=Q(we.thrownErrors);we.thrownErrors.length=0,rn(Qi)}}else Ge(tr)},function(tr){L(te,ye),0<we.thrownErrors.length&&(tr=Q(we.thrownErrors),we.thrownErrors.length=0),rn(tr)})}}}var Ke=Ie;if(L(te,ye),ye===0&&(Z(_e),_e.length!==0&&Ka(function(){Ce||nn||(nn=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),we.actQueue=null),0<we.thrownErrors.length)throw O=Q(we.thrownErrors),we.thrownErrors.length=0,O;return{then:function(Ge,rn){Ce=!0,ye===0?(we.actQueue=_e,j(function(){return F(Ke,Ge,rn)})):Ge(Ke)}}},a.cache=function(O){return function(){return O.apply(null,arguments)}},a.cacheSignal=function(){return null},a.captureOwnerStack=function(){var O=we.getCurrentStack;return O===null?null:O()},a.cloneElement=function(O,te,ye){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var _e=Ae({},O.props),Ce=O.key,Ie=O._owner;if(te!=null){var Me;e:{if(en.call(te,"ref")&&(Me=Object.getOwnPropertyDescriptor(te,"ref").get)&&Me.isReactWarning){Me=!1;break e}Me=te.ref!==void 0}Me&&(Ie=S()),A(te)&&(y(te.key),Ce=""+te.key);for(Ke in te)!en.call(te,Ke)||Ke==="key"||Ke==="__self"||Ke==="__source"||Ke==="ref"&&te.ref===void 0||(_e[Ke]=te[Ke])}var Ke=arguments.length-2;if(Ke===1)_e.children=ye;else if(1<Ke){Me=Array(Ke);for(var Ge=0;Ge<Ke;Ge++)Me[Ge]=arguments[Ge+2];_e.children=Me}for(_e=C(O.type,Ce,_e,Ie,O._debugStack,O._debugTask),Ce=2;Ce<arguments.length;Ce++)N(arguments[Ce]);return _e},a.createContext=function(O){return O={$$typeof:re,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:B,_context:O},O._currentRenderer=null,O._currentRenderer2=null,O},a.createElement=function(O,te,ye){for(var _e=2;_e<arguments.length;_e++)N(arguments[_e]);_e={};var Ce=null;if(te!=null)for(Ge in tn||!("__self"in te)||"key"in te||(tn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),A(te)&&(y(te.key),Ce=""+te.key),te)en.call(te,Ge)&&Ge!=="key"&&Ge!=="__self"&&Ge!=="__source"&&(_e[Ge]=te[Ge]);var Ie=arguments.length-2;if(Ie===1)_e.children=ye;else if(1<Ie){for(var Me=Array(Ie),Ke=0;Ke<Ie;Ke++)Me[Ke]=arguments[Ke+2];Object.freeze&&Object.freeze(Me),_e.children=Me}if(O&&O.defaultProps)for(Ge in Ie=O.defaultProps,Ie)_e[Ge]===void 0&&(_e[Ge]=Ie[Ge]);Ce&&w(_e,typeof O=="function"?O.displayName||O.name||"Unknown":O);var Ge=1e4>we.recentlyCreatedOwnerStacks++;return C(O,Ce,_e,S(),Ge?Error("react-stack-top-frame"):Tn,Ge?vt(b(O)):Rn)},a.createRef=function(){var O={current:null};return Object.seal(O),O},a.forwardRef=function(O){O!=null&&O.$$typeof===be?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof O!="function"?console.error("forwardRef requires a render function but was given %s.",O===null?"null":typeof O):O.length!==0&&O.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",O.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),O!=null&&O.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var te={$$typeof:ue,render:O},ye;return Object.defineProperty(te,"displayName",{enumerable:!1,configurable:!0,get:function(){return ye},set:function(_e){ye=_e,O.name||O.displayName||(Object.defineProperty(O,"name",{value:_e}),O.displayName=_e)}}),te},a.isValidElement=M,a.lazy=function(O){O={_status:-1,_result:O};var te={$$typeof:Te,_payload:O,_init:V},ye={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return O._ioInfo=ye,te._debugInfo=[{awaited:ye}],te},a.memo=function(O,te){O==null&&console.error("memo: The first argument must be a component. Instead received: %s",O===null?"null":typeof O),te={$$typeof:be,type:O,compare:te===void 0?null:te};var ye;return Object.defineProperty(te,"displayName",{enumerable:!1,configurable:!0,get:function(){return ye},set:function(_e){ye=_e,O.name||O.displayName||(Object.defineProperty(O,"name",{value:_e}),O.displayName=_e)}}),te},a.startTransition=function(O){var te=we.T,ye={};ye._updatedFibers=new Set,we.T=ye;try{var _e=O(),Ce=we.S;Ce!==null&&Ce(ye,_e),typeof _e=="object"&&_e!==null&&typeof _e.then=="function"&&(we.asyncTransitions++,_e.then(ee,ee),_e.then(p,Wn))}catch(Ie){Wn(Ie)}finally{te===null&&ye._updatedFibers&&(O=ye._updatedFibers.size,ye._updatedFibers.clear(),10<O&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),te!==null&&ye.types!==null&&(te.types!==null&&te.types!==ye.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),te.types=ye.types),we.T=te}},a.unstable_useCacheRefresh=function(){return X().useCacheRefresh()},a.use=function(O){return X().use(O)},a.useActionState=function(O,te,ye){return X().useActionState(O,te,ye)},a.useCallback=function(O,te){return X().useCallback(O,te)},a.useContext=function(O){var te=X();return O.$$typeof===B&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),te.useContext(O)},a.useDebugValue=function(O,te){return X().useDebugValue(O,te)},a.useDeferredValue=function(O,te){return X().useDeferredValue(O,te)},a.useEffect=function(O,te){return O==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useEffect(O,te)},a.useEffectEvent=function(O){return X().useEffectEvent(O)},a.useId=function(){return X().useId()},a.useImperativeHandle=function(O,te,ye){return X().useImperativeHandle(O,te,ye)},a.useInsertionEffect=function(O,te){return O==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useInsertionEffect(O,te)},a.useLayoutEffect=function(O,te){return O==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useLayoutEffect(O,te)},a.useMemo=function(O,te){return X().useMemo(O,te)},a.useOptimistic=function(O,te){return X().useOptimistic(O,te)},a.useReducer=function(O,te,ye){return X().useReducer(O,te,ye)},a.useRef=function(O){return X().useRef(O)},a.useState=function(O){return X().useState(O)},a.useSyncExternalStore=function(O,te,ye){return X().useSyncExternalStore(O,te,ye)},a.useTransition=function(){return X().useTransition()},a.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(nc,nc.exports)),nc.exports}var IN;function Yi(){return IN||(IN=1,ky.exports=$6()),ky.exports}var GN;function X6(){if(GN)return th;GN=1;return(function(){function n(z){if(z==null)return null;if(typeof z=="function")return z.$$typeof===V?null:z.displayName||z.name||null;if(typeof z=="string")return z;switch(z){case w:return"Fragment";case C:return"Profiler";case T:return"StrictMode";case q:return"Suspense";case U:return"SuspenseList";case G:return"Activity"}if(typeof z=="object")switch(typeof z.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),z.$$typeof){case A:return"Portal";case N:return z.displayName||"Context";case E:return(z._context.displayName||"Context")+".Consumer";case M:var W=z.render;return z=z.displayName,z||(z=W.displayName||W.name||"",z=z!==""?"ForwardRef("+z+")":"ForwardRef"),z;case H:return W=z.displayName||null,W!==null?W:n(z.type)||"Memo";case k:W=z._payload,z=z._init;try{return n(z(W))}catch{}}return null}function a(z){return""+z}function i(z){try{a(z);var W=!1}catch{W=!0}if(W){W=console;var ge=W.error,B=typeof Symbol=="function"&&Symbol.toStringTag&&z[Symbol.toStringTag]||z.constructor.name||"Object";return ge.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),a(z)}}function s(z){if(z===w)return"<>";if(typeof z=="object"&&z!==null&&z.$$typeof===k)return"<...>";try{var W=n(z);return W?"<"+W+">":"<...>"}catch{return"<...>"}}function l(){var z=X.A;return z===null?null:z.getOwner()}function f(){return Error("react-stack-top-frame")}function d(z){if(ee.call(z,"key")){var W=Object.getOwnPropertyDescriptor(z,"key").get;if(W&&W.isReactWarning)return!1}return z.key!==void 0}function h(z,W){function ge(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",W))}ge.isReactWarning=!0,Object.defineProperty(z,"key",{get:ge,configurable:!0})}function p(){var z=n(this.type);return F[z]||(F[z]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),z=this.props.ref,z!==void 0?z:null}function m(z,W,ge,B,re,ue){var oe=ge.ref;return z={$$typeof:x,type:z,key:W,props:ge,_owner:B},(oe!==void 0?oe:null)!==null?Object.defineProperty(z,"ref",{enumerable:!1,get:p}):Object.defineProperty(z,"ref",{enumerable:!1,value:null}),z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(z,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(z,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.defineProperty(z,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z}function y(z,W,ge,B,re,ue){var oe=W.children;if(oe!==void 0)if(B)if(j(oe)){for(B=0;B<oe.length;B++)v(oe[B]);Object.freeze&&Object.freeze(oe)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else v(oe);if(ee.call(W,"key")){oe=n(z);var he=Object.keys(W).filter(function(Te){return Te!=="key"});B=0<he.length?"{key: someKey, "+he.join(": ..., ")+": ...}":"{key: someKey}",de[oe+B]||(he=0<he.length?"{"+he.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
14
+ let props = %s;
15
+ <%s {...props} />
16
+ React keys must be passed directly to JSX without using spread:
17
+ let props = %s;
18
+ <%s key={someKey} {...props} />`,B,oe,he,oe),de[oe+B]=!0)}if(oe=null,ge!==void 0&&(i(ge),oe=""+ge),d(W)&&(i(W.key),oe=""+W.key),"key"in W){ge={};for(var be in W)be!=="key"&&(ge[be]=W[be])}else ge=W;return oe&&h(ge,typeof z=="function"?z.displayName||z.name||"Unknown":z),m(z,oe,ge,l(),re,ue)}function v(z){b(z)?z._store&&(z._store.validated=1):typeof z=="object"&&z!==null&&z.$$typeof===k&&(z._payload.status==="fulfilled"?b(z._payload.value)&&z._payload.value._store&&(z._payload.value._store.validated=1):z._store&&(z._store.validated=1))}function b(z){return typeof z=="object"&&z!==null&&z.$$typeof===x}var S=Yi(),x=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),N=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),X=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=Object.prototype.hasOwnProperty,j=Array.isArray,Q=console.createTask?console.createTask:function(){return null};S={react_stack_bottom_frame:function(z){return z()}};var L,F={},Z=S.react_stack_bottom_frame.bind(S,f)(),ne=Q(s(f)),de={};th.Fragment=w,th.jsxDEV=function(z,W,ge,B){var re=1e4>X.recentlyCreatedOwnerStacks++;return y(z,W,ge,B,re?Error("react-stack-top-frame"):Z,re?Q(s(z)):ne)}})(),th}var YN;function P6(){return YN||(YN=1,Hy.exports=X6()),Hy.exports}var ae=P6(),ce=Yi();const Dz=Oh(ce);var Vy={exports:{}},Ku={},By={exports:{}},Iy={},$N;function Z6(){return $N||($N=1,(function(n){(function(){function a(){if(M=!1,k){var L=n.unstable_now();X=L;var F=!0;try{e:{E=!1,N&&(N=!1,U(G),G=-1),C=!0;var Z=T;try{t:{for(d(L),w=s(S);w!==null&&!(w.expirationTime>L&&p());){var ne=w.callback;if(typeof ne=="function"){w.callback=null,T=w.priorityLevel;var de=ne(w.expirationTime<=L);if(L=n.unstable_now(),typeof de=="function"){w.callback=de,d(L),F=!0;break t}w===s(S)&&l(S),d(L)}else l(S);w=s(S)}if(w!==null)F=!0;else{var z=s(x);z!==null&&m(h,z.startTime-L),F=!1}}break e}finally{w=null,T=Z,C=!1}F=void 0}}finally{F?ee():k=!1}}}function i(L,F){var Z=L.length;L.push(F);e:for(;0<Z;){var ne=Z-1>>>1,de=L[ne];if(0<f(de,F))L[ne]=F,L[Z]=de,Z=ne;else break e}}function s(L){return L.length===0?null:L[0]}function l(L){if(L.length===0)return null;var F=L[0],Z=L.pop();if(Z!==F){L[0]=Z;e:for(var ne=0,de=L.length,z=de>>>1;ne<z;){var W=2*(ne+1)-1,ge=L[W],B=W+1,re=L[B];if(0>f(ge,Z))B<de&&0>f(re,ge)?(L[ne]=re,L[B]=Z,ne=B):(L[ne]=ge,L[W]=Z,ne=W);else if(B<de&&0>f(re,Z))L[ne]=re,L[B]=Z,ne=B;else break e}}return F}function f(L,F){var Z=L.sortIndex-F.sortIndex;return Z!==0?Z:L.id-F.id}function d(L){for(var F=s(x);F!==null;){if(F.callback===null)l(x);else if(F.startTime<=L)l(x),F.sortIndex=F.expirationTime,i(S,F);else break;F=s(x)}}function h(L){if(N=!1,d(L),!E)if(s(S)!==null)E=!0,k||(k=!0,ee());else{var F=s(x);F!==null&&m(h,F.startTime-L)}}function p(){return M?!0:!(n.unstable_now()-X<V)}function m(L,F){G=q(function(){L(n.unstable_now())},F)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;n.unstable_now=function(){return y.now()}}else{var v=Date,b=v.now();n.unstable_now=function(){return v.now()-b}}var S=[],x=[],A=1,w=null,T=3,C=!1,E=!1,N=!1,M=!1,q=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null,k=!1,G=-1,V=5,X=-1;if(typeof H=="function")var ee=function(){H(a)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,Q=j.port2;j.port1.onmessage=a,ee=function(){Q.postMessage(null)}}else ee=function(){q(a,0)};n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(L){L.callback=null},n.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_next=function(L){switch(T){case 1:case 2:case 3:var F=3;break;default:F=T}var Z=T;T=F;try{return L()}finally{T=Z}},n.unstable_requestPaint=function(){M=!0},n.unstable_runWithPriority=function(L,F){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var Z=T;T=L;try{return F()}finally{T=Z}},n.unstable_scheduleCallback=function(L,F,Z){var ne=n.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ne+Z:ne):Z=ne,L){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=Z+de,L={id:A++,callback:F,priorityLevel:L,startTime:Z,expirationTime:de,sortIndex:-1},Z>ne?(L.sortIndex=Z,i(x,L),s(S)===null&&L===s(x)&&(N?(U(G),G=-1):N=!0,m(h,Z-ne))):(L.sortIndex=de,i(S,L),E||C||(E=!0,k||(k=!0,ee()))),L},n.unstable_shouldYield=p,n.unstable_wrapCallback=function(L){var F=T;return function(){var Z=T;T=F;try{return L.apply(this,arguments)}finally{T=Z}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Iy)),Iy}var XN;function Q6(){return XN||(XN=1,By.exports=Z6()),By.exports}var Gy={exports:{}},hn={},PN;function F6(){if(PN)return hn;PN=1;return(function(){function n(){}function a(v){return""+v}function i(v,b,S){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{a(x);var A=!1}catch{A=!0}return A&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object"),a(x)),{$$typeof:m,key:x==null?null:""+x,children:v,containerInfo:b,implementation:S}}function s(v,b){if(v==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}function l(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":'something with type "'+typeof v+'"'}function f(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":typeof v=="string"?JSON.stringify(v):typeof v=="number"?"`"+v+"`":'something with type "'+typeof v+'"'}function d(){var v=y.H;return v===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
19
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
20
+ 2. You might be breaking the Rules of Hooks
21
+ 3. You might have more than one copy of React in the same app
22
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),v}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var h=Yi(),p={d:{f:n,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},m=Symbol.for("react.portal"),y=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),hn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,hn.createPortal=function(v,b){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error("Target container is not a DOM element.");return i(v,b,null,S)},hn.flushSync=function(v){var b=y.T,S=p.p;try{if(y.T=null,p.p=2,v)return v()}finally{y.T=b,p.p=S,p.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},hn.preconnect=function(v,b){typeof v=="string"&&v?b!=null&&typeof b!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",f(b)):b!=null&&typeof b.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",l(b.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(v)),typeof v=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,p.d.C(v,b))},hn.prefetchDNS=function(v){if(typeof v!="string"||!v)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(v));else if(1<arguments.length){var b=arguments[1];typeof b=="object"&&b.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",f(b)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",f(b))}typeof v=="string"&&p.d.D(v)},hn.preinit=function(v,b){if(typeof v=="string"&&v?b==null||typeof b!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",f(b)):b.as!=="style"&&b.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',f(b.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(v)),typeof v=="string"&&b&&typeof b.as=="string"){var S=b.as,x=s(S,b.crossOrigin),A=typeof b.integrity=="string"?b.integrity:void 0,w=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;S==="style"?p.d.S(v,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:x,integrity:A,fetchPriority:w}):S==="script"&&p.d.X(v,{crossOrigin:x,integrity:A,fetchPriority:w,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},hn.preinitModule=function(v,b){var S="";typeof v=="string"&&v||(S+=" The `href` argument encountered was "+l(v)+"."),b!==void 0&&typeof b!="object"?S+=" The `options` argument encountered was "+l(b)+".":b&&"as"in b&&b.as!=="script"&&(S+=" The `as` option encountered was "+f(b.as)+"."),S?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",S):(S=b&&typeof b.as=="string"?b.as:"script",S)==="script"||(S=f(S),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',S,v)),typeof v=="string"&&(typeof b=="object"&&b!==null?(b.as==null||b.as==="script")&&(S=s(b.as,b.crossOrigin),p.d.M(v,{crossOrigin:S,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})):b==null&&p.d.M(v))},hn.preload=function(v,b){var S="";if(typeof v=="string"&&v||(S+=" The `href` argument encountered was "+l(v)+"."),b==null||typeof b!="object"?S+=" The `options` argument encountered was "+l(b)+".":typeof b.as=="string"&&b.as||(S+=" The `as` option encountered was "+l(b.as)+"."),S&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',S),typeof v=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){S=b.as;var x=s(S,b.crossOrigin);p.d.L(v,S,{crossOrigin:x,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},hn.preloadModule=function(v,b){var S="";typeof v=="string"&&v||(S+=" The `href` argument encountered was "+l(v)+"."),b!==void 0&&typeof b!="object"?S+=" The `options` argument encountered was "+l(b)+".":b&&"as"in b&&typeof b.as!="string"&&(S+=" The `as` option encountered was "+l(b.as)+"."),S&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',S),typeof v=="string"&&(b?(S=s(b.as,b.crossOrigin),p.d.m(v,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:S,integrity:typeof b.integrity=="string"?b.integrity:void 0})):p.d.m(v))},hn.requestFormReset=function(v){p.d.r(v)},hn.unstable_batchedUpdates=function(v,b){return v(b)},hn.useFormState=function(v,b,S){return d().useFormState(v,b,S)},hn.useFormStatus=function(){return d().useHostTransitionStatus()},hn.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),hn}var ZN;function Cz(){return ZN||(ZN=1,Gy.exports=F6()),Gy.exports}var QN;function J6(){if(QN)return Ku;QN=1;return(function(){function n(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function a(e,t,r,o){if(r>=t.length)return o;var u=t[r],c=$t(e)?e.slice():Fe({},e);return c[u]=a(e[u],t,r+1,o),c}function i(e,t,r){if(t.length!==r.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<r.length-1;o++)if(t[o]!==r[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return s(e,t,r,0)}}function s(e,t,r,o){var u=t[o],c=$t(e)?e.slice():Fe({},e);return o+1===t.length?(c[r[o]]=c[u],$t(c)?c.splice(u,1):delete c[u]):c[u]=s(e[u],t,r,o+1),c}function l(e,t,r){var o=t[r],u=$t(e)?e.slice():Fe({},e);return r+1===t.length?($t(u)?u.splice(o,1):delete u[o],u):(u[o]=l(e[o],t,r+1),u)}function f(){return!1}function d(){return null}function h(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function p(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function m(){}function y(){}function v(e){var t=[];return e.forEach(function(r){t.push(r)}),t.sort().join(", ")}function b(e,t,r,o){return new M5(e,t,r,o)}function S(e,t){e.context===Eo&&(rg(e.current,2,t,e,null,null),ds())}function x(e,t){if(ir!==null){var r=t.staleFamilies;t=t.updatedFamilies,Pl(),Px(e.current,t,r),ds()}}function A(e){ir=e}function w(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function T(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function C(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function E(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function N(e){if(T(e)!==e)throw Error("Unable to find node on an unmounted component.")}function M(e){var t=e.alternate;if(!t){if(t=T(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var r=e,o=t;;){var u=r.return;if(u===null)break;var c=u.alternate;if(c===null){if(o=u.return,o!==null){r=o;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===r)return N(u),e;if(c===o)return N(u),t;c=c.sibling}throw Error("Unable to find node on an unmounted component.")}if(r.return!==o.return)r=u,o=c;else{for(var g=!1,_=u.child;_;){if(_===r){g=!0,r=u,o=c;break}if(_===o){g=!0,o=u,r=c;break}_=_.sibling}if(!g){for(_=c.child;_;){if(_===r){g=!0,r=c,o=u;break}if(_===o){g=!0,o=c,r=u;break}_=_.sibling}if(!g)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(r.tag!==3)throw Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function q(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=q(e),t!==null)return t;e=e.sibling}return null}function U(e){return e===null||typeof e!="object"?null:(e=eR&&e[eR]||e["@@iterator"],typeof e=="function"?e:null)}function H(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===eL?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bs:return"Fragment";case cg:return"Profiler";case Zf:return"StrictMode";case dg:return"Suspense";case hg:return"SuspenseList";case pg:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case vs:return"Portal";case ta:return e.displayName||"Context";case fg:return(e._context.displayName||"Context")+".Consumer";case ru:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qf:return t=e.displayName||null,t!==null?t:H(e.type)||"Memo";case Yn:t=e._payload,e=e._init;try{return H(e(t))}catch{}}return null}function k(e){return typeof e.tag=="number"?G(e):typeof e.name=="string"?e.name:null}function G(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===Zf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var r=t.length-1;0<=r;r--)if(typeof t[r].name=="string")return t[r].name}if(e.return!==null)return G(e.return)}return null}function V(e){return{current:e}}function X(e,t){0>Aa?console.error("Unexpected pop."):(t!==gg[Aa]&&console.error("Unexpected Fiber popped."),e.current=mg[Aa],mg[Aa]=null,gg[Aa]=null,Aa--)}function ee(e,t,r){Aa++,mg[Aa]=e.current,gg[Aa]=r,e.current=t}function j(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Q(e,t){ee(yo,t,e),ee(au,e,e),ee(go,null,e);var r=t.nodeType;switch(r){case 9:case 11:r=r===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?wT(t):Ia;break;default:if(r=t.tagName,t=t.namespaceURI)t=wT(t),t=TT(t,r);else switch(r){case"svg":t=Ws;break;case"math":t=Pd;break;default:t=Ia}}r=r.toLowerCase(),r=Bc(null,r),r={context:t,ancestorInfo:r},X(go,e),ee(go,r,e)}function L(e){X(go,e),X(au,e),X(yo,e)}function F(){return j(go.current)}function Z(e){e.memoizedState!==null&&ee(Ff,e,e);var t=j(go.current),r=e.type,o=TT(t.context,r);r=Bc(t.ancestorInfo,r),o={context:o,ancestorInfo:r},t!==o&&(ee(au,e,e),ee(go,o,e))}function ne(e){au.current===e&&(X(go,e),X(au,e)),Ff.current===e&&(X(Ff,e),Qu._currentValue=Ui)}function de(){}function z(){if(ou===0){tR=console.log,nR=console.info,rR=console.warn,aR=console.error,oR=console.group,iR=console.groupCollapsed,sR=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ou++}function W(){if(ou--,ou===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Fe({},e,{value:tR}),info:Fe({},e,{value:nR}),warn:Fe({},e,{value:rR}),error:Fe({},e,{value:aR}),group:Fe({},e,{value:oR}),groupCollapsed:Fe({},e,{value:iR}),groupEnd:Fe({},e,{value:sR})})}0>ou&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ge(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
23
+ `)&&(e=e.slice(29)),t=e.indexOf(`
24
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
25
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function B(e){if(yg===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);yg=t&&t[1]||"",lR=-1<r.stack.indexOf(`
26
+ at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
27
+ `+yg+e+lR}function re(e,t){if(!e||vg)return"";var r=bg.get(e);if(r!==void 0)return r;vg=!0,r=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=le.H,le.H=null,z();try{var u={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(Se){var ie=Se}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(Se){ie=Se}e.call(Y.prototype)}}else{try{throw Error()}catch(Se){ie=Se}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(Se){if(Se&&ie&&typeof Se.stack=="string")return[Se.stack,ie.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=u.DetermineComponentFrameRoot(),_=g[0],R=g[1];if(_&&R){var D=_.split(`
28
+ `),J=R.split(`
29
+ `);for(g=c=0;c<D.length&&!D[c].includes("DetermineComponentFrameRoot");)c++;for(;g<J.length&&!J[g].includes("DetermineComponentFrameRoot");)g++;if(c===D.length||g===J.length)for(c=D.length-1,g=J.length-1;1<=c&&0<=g&&D[c]!==J[g];)g--;for(;1<=c&&0<=g;c--,g--)if(D[c]!==J[g]){if(c!==1||g!==1)do if(c--,g--,0>g||D[c]!==J[g]){var K=`
30
+ `+D[c].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),typeof e=="function"&&bg.set(e,K),K}while(1<=c&&0<=g);break}}}finally{vg=!1,le.H=o,W(),Error.prepareStackTrace=r}return D=(D=e?e.displayName||e.name:"")?B(D):"",typeof e=="function"&&bg.set(e,D),D}function ue(e,t){switch(e.tag){case 26:case 27:case 5:return B(e.type);case 16:return B("Lazy");case 13:return e.child!==t&&t!==null?B("Suspense Fallback"):B("Suspense");case 19:return B("SuspenseList");case 0:case 15:return re(e.type,!1);case 11:return re(e.type.render,!1);case 1:return re(e.type,!0);case 31:return B("Activity");default:return""}}function oe(e){try{var t="",r=null;do{t+=ue(e,r);var o=e._debugInfo;if(o)for(var u=o.length-1;0<=u;u--){var c=o[u];if(typeof c.name=="string"){var g=t;e:{var _=c.name,R=c.env,D=c.debugLocation;if(D!=null){var J=ge(D),K=J.lastIndexOf(`
31
+ `),Y=K===-1?J:J.slice(K+1);if(Y.indexOf(_)!==-1){var ie=`
32
+ `+Y;break e}}ie=B(_+(R?" ["+R+"]":""))}t=g+ie}}r=e,e=e.return}while(e);return t}catch(Se){return`
33
+ Error generating stack: `+Se.message+`
34
+ `+Se.stack}}function he(e){return(e=e?e.displayName||e.name:"")?B(e):""}function be(){if($n===null)return null;var e=$n._debugOwner;return e!=null?k(e):null}function Te(){if($n===null)return"";var e=$n;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=B(e.type);break;case 13:t+=B("Suspense");break;case 19:t+=B("SuspenseList");break;case 31:t+=B("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=he(e.type));break;case 11:e._debugOwner||t!==""||(t+=he(e.type.render))}for(;e;)if(typeof e.tag=="number"){var r=e;e=r._debugOwner;var o=r._debugStack;if(e&&o){var u=ge(o);u!==""&&(t+=`
35
+ `+u)}}else if(e.debugStack!=null){var c=e.debugStack;(e=e.owner)&&c&&(t+=`
36
+ `+ge(c))}else break;var g=t}catch(_){g=`
37
+ Error generating stack: `+_.message+`
38
+ `+_.stack}return g}function me(e,t,r,o,u,c,g){var _=$n;qe(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,r,o,u,c,g)):t(r,o,u,c,g)}finally{qe(_)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function qe(e){le.getCurrentStack=e===null?null:Te,na=!1,$n=e}function Re(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Le(e){try{return Ae(e),!1}catch{return!0}}function Ae(e){return""+e}function De(e,t){if(Le(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Re(e)),Ae(e)}function Ne(e,t){if(Le(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Re(e)),Ae(e)}function Nt(e){if(Le(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Re(e)),Ae(e)}function qt(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Ss=t.inject(e),fn=t}catch(r){console.error("React instrumentation encountered an error: %o.",r)}return!!t.checkDCE}function we(e){if(typeof sL=="function"&&lL(e),fn&&typeof fn.setStrictMode=="function")try{fn.setStrictMode(Ss,e)}catch(t){ra||(ra=!0,console.error("React instrumentation encountered an error: %o",t))}}function en(e){return e>>>=0,e===0?32:31-(uL(e)/cL|0)|0}function vt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function ut(e,t,r){var o=e.pendingLanes;if(o===0)return 0;var u=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var _=o&134217727;return _!==0?(o=_&~c,o!==0?u=vt(o):(g&=_,g!==0?u=vt(g):r||(r=_&~e,r!==0&&(u=vt(r))))):(_=o&~c,_!==0?u=vt(_):g!==0?u=vt(g):r||(r=o&~e,r!==0&&(u=vt(r)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,r=t&-t,c>=r||c===32&&(r&4194048)!==0)?t:u}function tn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wn(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Tn(){var e=Wf;return Wf<<=1,(Wf&62914560)===0&&(Wf=4194304),e}function Rn(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Zt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ga(e,t,r,o,u,c){var g=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var _=e.entanglements,R=e.expirationTimes,D=e.hiddenUpdates;for(r=g&~r;0<r;){var J=31-gn(r),K=1<<J;_[J]=0,R[J]=-1;var Y=D[J];if(Y!==null)for(D[J]=null,J=0;J<Y.length;J++){var ie=Y[J];ie!==null&&(ie.lane&=-536870913)}r&=~K}o!==0&&Wn(e,o,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function Wn(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-gn(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|r&261930}function ya(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-gn(r),u=1<<o;u&t|e[o]&t&&(e[o]|=t),r&=~u}}function er(e,t){var r=t&-t;return r=(r&42)!==0?1:Yt(r),(r&(e.suspendedLanes|t))!==0?0:r}function Yt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function nn(e,t,r){if(aa)for(e=e.pendingUpdatersLaneMap;0<r;){var o=31-gn(r),u=1<<o;e[o].add(t),r&=~u}}function Ja(e,t){if(aa)for(var r=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var u=31-gn(t);e=1<<u,u=r[u],0<u.size&&(u.forEach(function(c){var g=c.alternate;g!==null&&o.has(g)||o.add(c)}),u.clear()),t&=~e}}function Ka(e){return e&=-e,rr<e?oa<e?(e&134217727)!==0?Na:ed:oa:rr}function Lr(){var e=it.p;return e!==0?e:(e=window.event,e===void 0?Na:PT(e.type))}function O(e,t){var r=it.p;try{return it.p=e,t()}finally{it.p=r}}function te(e){delete e[ln],delete e[yn],delete e[wg],delete e[fL],delete e[dL]}function ye(e){var t=e[ln];if(t)return t;for(var r=e.parentNode;r;){if(t=r[bo]||r[ln]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=qT(e);e!==null;){if(r=e[ln])return r;e=qT(e)}return t}e=r,r=e.parentNode}return null}function _e(e){if(e=e[ln]||e[bo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ce(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Ie(e){var t=e[uR];return t||(t=e[uR]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Me(e){e[iu]=!0}function Ke(e,t){Ge(e,t),Ge(e+"Capture",t)}function Ge(e,t){di[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),di[e]=t;var r=e.toLowerCase();for(Tg[r]=e,e==="onDoubleClick"&&(Tg.ondblclick=e),e=0;e<t.length;e++)cR.add(t[e])}function rn(e,t){hL[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function tr(e){return Er.call(dR,e)?!0:Er.call(fR,e)?!1:pL.test(e)?dR[e]=!0:(fR[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Qi(e,t,r){if(tr(t)){if(!e.hasAttribute(t)){switch(typeof r){case"symbol":case"object":return r;case"function":return r;case"boolean":if(r===!1)return r}return r===void 0?void 0:null}return e=e.getAttribute(t),e===""&&r===!0?!0:(De(r,t),e===""+r?r:e)}}function Wa(e,t,r){if(tr(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}De(r,t),e.setAttribute(t,""+r)}}function Fi(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}De(r,t),e.setAttribute(t,""+r)}}function vr(e,t,r,o){if(o===null)e.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}De(o,r),e.setAttributeNS(t,r,""+o)}}function An(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Nt(e),e;default:return""}}function Cc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sp(e,t,r){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,c=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){Nt(g),r=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return r},setValue:function(g){Nt(g),r=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vl(e){if(!e._valueTracker){var t=Cc(e)?"checked":"value";e._valueTracker=sp(e,t,""+e[t])}}function Oc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=Cc(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Ji(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Nn(e){return e.replace(mL,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mc(e,t){t.checked===void 0||t.defaultChecked===void 0||pR||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",be()||"A component",t.type),pR=!0),t.value===void 0||t.defaultValue===void 0||hR||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",be()||"A component",t.type),hR=!0)}function Ki(e,t,r,o,u,c,g,_){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?(De(g,"type"),e.type=g):e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+An(t)):e.value!==""+An(t)&&(e.value=""+An(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Wi(e,g,An(t)):r!=null?Wi(e,g,An(r)):o!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?(De(_,"name"),e.name=""+An(_)):e.removeAttribute("name")}function bl(e,t,r,o,u,c,g,_){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(De(c,"type"),e.type=c),t!=null||r!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){vl(e);return}r=r!=null?""+An(r):"",t=t!=null?""+An(t):r,_||t===e.value||(e.value=t),e.defaultValue=t}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=_?e.checked:!!o,e.defaultChecked=!!o,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(De(g,"name"),e.name=g),vl(e)}function Wi(e,t,r){t==="number"&&Ji(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function qc(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?ug.Children.forEach(t.children,function(r){r==null||typeof r=="string"||typeof r=="number"||typeof r=="bigint"||gR||(gR=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||yR||(yR=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||mR||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),mR=!0)}function zc(){var e=be();return e?`
39
+
40
+ Check the render method of \``+e+"`.":""}function eo(e,t,r,o){if(e=e.options,t){t={};for(var u=0;u<r.length;u++)t["$"+r[u]]=!0;for(r=0;r<e.length;r++)u=t.hasOwnProperty("$"+e[r].value),e[r].selected!==u&&(e[r].selected=u),u&&o&&(e[r].defaultSelected=!0)}else{for(r=""+An(r),t=null,u=0;u<e.length;u++){if(e[u].value===r){e[u].selected=!0,o&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Uc(e,t){for(e=0;e<bR.length;e++){var r=bR[e];if(t[r]!=null){var o=$t(t[r]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",r,zc()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",r,zc())}}t.value===void 0||t.defaultValue===void 0||vR||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),vR=!0)}function jc(e,t){t.value===void 0||t.defaultValue===void 0||_R||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",be()||"A component"),_R=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Lc(e,t,r){if(t!=null&&(t=""+An(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+An(r):""}function _l(e,t,r,o){if(t==null){if(o!=null){if(r!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if($t(o)){if(1<o.length)throw Error("<textarea> can only have at most one child.");o=o[0]}r=o}r==null&&(r=""),t=r}r=An(t),e.defaultValue=r,o=e.textContent,o===r&&o!==""&&o!==null&&(e.value=o),vl(e)}function Hc(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Hc(e.children[0],t):e}function pn(e){return" "+" ".repeat(e)}function to(e){return"+ "+" ".repeat(e)}function va(e){return"- "+" ".repeat(e)}function kc(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Zo(e,t){return SR.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function es(e,t,r){var o=120-2*r;if(t===null)return to(r)+Zo(e,o)+`
41
+ `;if(typeof t=="string"){for(var u=0;u<t.length&&u<e.length&&t.charCodeAt(u)===e.charCodeAt(u);u++);return u>o-8&&10<u&&(e="..."+e.slice(u-8),t="..."+t.slice(u-8)),to(r)+Zo(e,o)+`
42
+ `+va(r)+Zo(t,o)+`
43
+ `}return pn(r)+Zo(e,o)+`
44
+ `}function ts(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,r){return r})}function Qo(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if($t(e))return"[...]";if(e.$$typeof===ea)return(t=H(e.type))?"<"+t+">":"<...>";var r=ts(e);if(r==="Object"){r="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var u=JSON.stringify(o);if(u!=='"'+o+'"'&&(o=u),t-=o.length-2,u=Qo(e[o],15>t?t:15),t-=u.length,0>t){r+=r===""?"...":", ...";break}r+=(r===""?"":",")+o+":"+u}return"{"+r+"}"}return r;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function no(e,t){return typeof e!="string"||SR.test(e)?"{"+Qo(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Sl(e,t,r){var o=120-r.length-e.length,u=[],c;for(c in t)if(t.hasOwnProperty(c)&&c!=="children"){var g=no(t[c],120-r.length-c.length-1);o-=c.length+g.length+2,u.push(c+"="+g)}return u.length===0?r+"<"+e+`>
45
+ `:0<o?r+"<"+e+" "+u.join(" ")+`>
46
+ `:r+"<"+e+`
47
+ `+r+" "+u.join(`
48
+ `+r+" ")+`
49
+ `+r+`>
50
+ `}function lp(e,t,r){var o="",u=Fe({},t),c;for(c in e)if(e.hasOwnProperty(c)){delete u[c];var g=120-2*r-c.length-2,_=Qo(e[c],g);t.hasOwnProperty(c)?(g=Qo(t[c],g),o+=to(r)+c+": "+_+`
51
+ `,o+=va(r)+c+": "+g+`
52
+ `):o+=to(r)+c+": "+_+`
53
+ `}for(var R in u)u.hasOwnProperty(R)&&(e=Qo(u[R],120-2*r-R.length-2),o+=va(r)+R+": "+e+`
54
+ `);return o}function up(e,t,r,o){var u="",c=new Map;for(D in r)r.hasOwnProperty(D)&&c.set(D.toLowerCase(),D);if(c.size===1&&c.has("children"))u+=Sl(e,t,pn(o));else{for(var g in t)if(t.hasOwnProperty(g)&&g!=="children"){var _=120-2*(o+1)-g.length-1,R=c.get(g.toLowerCase());if(R!==void 0){c.delete(g.toLowerCase());var D=t[g];R=r[R];var J=no(D,_);_=no(R,_),typeof D=="object"&&D!==null&&typeof R=="object"&&R!==null&&ts(D)==="Object"&&ts(R)==="Object"&&(2<Object.keys(D).length||2<Object.keys(R).length||-1<J.indexOf("...")||-1<_.indexOf("..."))?u+=pn(o+1)+g+`={{
55
+ `+lp(D,R,o+2)+pn(o+1)+`}}
56
+ `:(u+=to(o+1)+g+"="+J+`
57
+ `,u+=va(o+1)+g+"="+_+`
58
+ `)}else u+=pn(o+1)+g+"="+no(t[g],_)+`
59
+ `}c.forEach(function(K){if(K!=="children"){var Y=120-2*(o+1)-K.length-1;u+=va(o+1)+K+"="+no(r[K],Y)+`
60
+ `}}),u=u===""?pn(o)+"<"+e+`>
61
+ `:pn(o)+"<"+e+`
62
+ `+u+pn(o)+`>
63
+ `}return e=r.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(c="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(c=""+t),u+=es(c,""+e,o+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(u=e==null?u+es(""+t,null,o+1):u+es(""+t,void 0,o+1)),u}function Vc(e,t){var r=kc(e);if(r===null){for(r="",e=e.child;e;)r+=Vc(e,t),e=e.sibling;return r}return pn(t)+"<"+r+`>
64
+ `}function xl(e,t){var r=Hc(e,t);if(r!==e&&(e.children.length!==1||e.children[0]!==r))return pn(t)+`...
65
+ `+xl(r,t+1);r="";var o=e.fiber._debugInfo;if(o)for(var u=0;u<o.length;u++){var c=o[u].name;typeof c=="string"&&(r+=pn(t)+"<"+c+`>
66
+ `,t++)}if(o="",u=e.fiber.pendingProps,e.fiber.tag===6)o=es(u,e.serverProps,t),t++;else if(c=kc(e.fiber),c!==null)if(e.serverProps===void 0){o=t;var g=120-2*o-c.length-2,_="";for(D in u)if(u.hasOwnProperty(D)&&D!=="children"){var R=no(u[D],15);if(g-=D.length+R.length+2,0>g){_+=" ...";break}_+=" "+D+"="+R}o=pn(o)+"<"+c+_+`>
67
+ `,t++}else e.serverProps===null?(o=Sl(c,u,to(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(o=up(c,u,e.serverProps,t),t++);var D="";for(u=e.fiber.child,c=0;u&&c<e.children.length;)g=e.children[c],g.fiber===u?(D+=xl(g,t),c++):D+=Vc(u,t),u=u.sibling;for(u&&0<e.children.length&&(D+=pn(t)+`...
68
+ `),u=e.serverTail,e.serverProps===null&&t--,e=0;e<u.length;e++)c=u[e],D=typeof c=="string"?D+(va(t)+Zo(c,120-2*t)+`
69
+ `):D+Sl(c.type,c.props,va(t));return r+o+D}function El(e){try{return`
70
+
71
+ `+xl(e,0)}catch{return""}}function wl(e,t,r){for(var o=t,u=null,c=0;o;)o===e&&(c=0),u={fiber:o,children:u!==null?[u]:[],serverProps:o===t?r:o===e?null:void 0,serverTail:[],distanceFromLeaf:c},c++,o=o.return;return u!==null?El(u).replaceAll(/^[+-]/gm,">"):""}function Bc(e,t){var r=Fe({},e||ER),o={tag:t};return xR.indexOf(t)!==-1&&(r.aTagInScope=null,r.buttonTagInScope=null,r.nobrTagInScope=null),yL.indexOf(t)!==-1&&(r.pTagInButtonScope=null),gL.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(r.listItemTagAutoclosing=null,r.dlItemTagAutoclosing=null),r.current=o,t==="form"&&(r.formTag=o),t==="a"&&(r.aTagInScope=o),t==="button"&&(r.buttonTagInScope=o),t==="nobr"&&(r.nobrTagInScope=o),t==="p"&&(r.pTagInButtonScope=o),t==="li"&&(r.listItemTagAutoclosing=o),(t==="dd"||t==="dt")&&(r.dlItemTagAutoclosing=o),t==="#document"||t==="html"?r.containerTagInScope=null:r.containerTagInScope||(r.containerTagInScope=o),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?r.implicitRootScope===!0&&(r.implicitRootScope=!1):r.implicitRootScope=!0,r}function Tl(e,t,r){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(r)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!r)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return vL.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return r||t===null;case"html":return r&&t==="#document"||t===null;case"body":return r&&(t==="#document"||t==="html")||t===null}return!0}function cp(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Ic(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Fo(e,t){t=t||ER;var r=t.current;if(t=(r=Tl(e,r&&r.tag,t.implicitRootScope)?null:r)?null:cp(e,t),t=r||t,!t)return!0;var o=t.tag;if(t=String(!!r)+"|"+e+"|"+o,td[t])return!1;td[t]=!0;var u=(t=$n)?Ic(t.return,o):null,c=t!==null&&u!==null?wl(u,t,null):"",g="<"+e+">";return r?(r="",o==="table"&&e==="tr"&&(r+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
72
+ This will cause a hydration error.%s`,g,o,r,c)):console.error(`In HTML, %s cannot be a descendant of <%s>.
73
+ This will cause a hydration error.%s`,g,o,c),t&&(e=t.return,u===null||e===null||u===e&&e._debugOwner===t._debugOwner||me(u,function(){console.error(`<%s> cannot contain a nested %s.
74
+ See this log for the ancestor stack trace.`,o,g)})),!1}function ns(e,t,r){if(r||Tl("#text",t,!1))return!0;if(r="#text|"+t,td[r])return!1;td[r]=!0;var o=(r=$n)?Ic(r,t):null;return r=r!==null&&o!==null?wl(o,r,r.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
75
+ This will cause a hydration error.%s`,t,r):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
76
+ This will cause a hydration error.%s`,t,r),!1}function Jo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}function Gc(e){return e.replace(SL,function(t,r){return r.toUpperCase()})}function Sx(e,t,r){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?xs.hasOwnProperty(t)&&xs[t]||(xs[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,Gc(t.replace(_L,"ms-")))):bL.test(t)?xs.hasOwnProperty(t)&&xs[t]||(xs[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!RR.test(r)||Ag.hasOwnProperty(r)&&Ag[r]||(Ag[r]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,r.replace(RR,""))),typeof r=="number"&&(isNaN(r)?AR||(AR=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(r)||NR||(NR=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),r==null||typeof r=="boolean"||r===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,r):typeof r!="number"||r===0||DR.has(t)?t==="float"?e.cssFloat=r:(Ne(r,t),e[t]=(""+r).trim()):e[t]=r+"px"}function xx(e,t,r){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,r!=null){if(t){var o={};if(r){for(var u in r)if(r.hasOwnProperty(u)&&!t.hasOwnProperty(u))for(var c=Rg[u]||[u],g=0;g<c.length;g++)o[c[g]]=u}for(var _ in t)if(t.hasOwnProperty(_)&&(!r||r[_]!==t[_]))for(u=Rg[_]||[_],c=0;c<u.length;c++)o[u[c]]=_;_={};for(var R in t)for(u=Rg[R]||[R],c=0;c<u.length;c++)_[u[c]]=R;R={};for(var D in o)if(u=o[D],(c=_[D])&&u!==c&&(g=u+","+c,!R[g])){R[g]=!0,g=console;var J=t[u];g.error.call(g,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",J==null||typeof J=="boolean"||J===""?"Removing":"Updating",u,c)}}for(var K in r)!r.hasOwnProperty(K)||t!=null&&t.hasOwnProperty(K)||(K.indexOf("--")===0?e.setProperty(K,""):K==="float"?e.cssFloat="":e[K]="");for(var Y in t)D=t[Y],t.hasOwnProperty(Y)&&r[Y]!==D&&Sx(e,Y,D)}else for(o in t)t.hasOwnProperty(o)&&Sx(e,o,t[o])}function Rl(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ex(e){return xL.get(e)||e}function p5(e,t){if(Er.call(ws,t)&&ws[t])return!0;if(wL.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=CR.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),ws[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),ws[t]=!0}if(EL.test(t)){if(e=t.toLowerCase(),e=CR.hasOwnProperty(e)?e:null,e==null)return ws[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),ws[t]=!0)}return!0}function m5(e,t){var r=[],o;for(o in t)p5(e,o)||r.push(o);t=r.map(function(u){return"`"+u+"`"}).join(", "),r.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<r.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function g5(e,t,r,o){if(Er.call(vn,t)&&vn[t])return!0;var u=t.toLowerCase();if(u==="onfocusin"||u==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),vn[t]=!0;if(typeof r=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(u)?e[u]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),vn[t]=!0;if(MR.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),vn[t]=!0}else if(MR.test(t))return TL.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),vn[t]=!0;if(RL.test(t)||AL.test(t))return!0;if(u==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),vn[t]=!0;if(u==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),vn[t]=!0;if(u==="is"&&r!==null&&r!==void 0&&typeof r!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof r),vn[t]=!0;if(typeof r=="number"&&isNaN(r))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),vn[t]=!0;if(rd.hasOwnProperty(u)){if(u=rd[u],u!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,u),vn[t]=!0}else if(t!==u)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,u),vn[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof r){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return u=t.toLowerCase().slice(0,5),u==="data-"||u==="aria-"?!0:(r?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',r,t,t,r,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',r,t,t,r,t,t,t),vn[t]=!0)}case"function":case"symbol":return vn[t]=!0,!1;case"string":if(r==="false"||r==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",r,t,r==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,r),vn[t]=!0}}return!0}function y5(e,t,r){var o=[],u;for(u in t)g5(e,u,t[u],r)||o.push(u);t=o.map(function(c){return"`"+c+"`"}).join(", "),o.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function Al(e){return NL.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ba(){}function fp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function wx(e){var t=_e(e);if(t&&(e=t.stateNode)){var r=e[yn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ki(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(De(t,"name"),r=r.querySelectorAll('input[name="'+Nn(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var u=o[yn]||null;if(!u)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ki(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<r.length;t++)o=r[t],o.form===e.form&&Oc(o)}break e;case"textarea":Lc(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&eo(e,!!r.multiple,t,!1)}}}function Tx(e,t,r){if(Ng)return e(t,r);Ng=!0;try{var o=e(t);return o}finally{if(Ng=!1,(Ts!==null||Rs!==null)&&(ds(),Ts&&(t=Ts,e=Rs,Rs=Ts=null,wx(t),e)))for(t=0;t<e.length;t++)wx(e[t])}}function Nl(e,t){var r=e.stateNode;if(r===null)return null;var o=r[yn]||null;if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof r+"` type.");return r}function Rx(){if(ad)return ad;var e,t=Cg,r=t.length,o,u="value"in _o?_o.value:_o.textContent,c=u.length;for(e=0;e<r&&t[e]===u[e];e++);var g=r-e;for(o=1;o<=g&&t[r-o]===u[c-o];o++);return ad=u.slice(e,1<o?1-o:void 0)}function Yc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function $c(){return!0}function Ax(){return!1}function Dn(e){function t(r,o,u,c,g){this._reactName=r,this._targetInst=u,this.type=o,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(r=e[_],this[_]=r?r(c):c[_]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?$c:Ax,this.isPropagationStopped=Ax,this}return Fe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=$c)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=$c)},persist:function(){},isPersistent:$c}),t}function v5(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=BL[e])?!!t[e]:!1}function dp(){return v5}function Nx(e,t){switch(e){case"keyup":return WL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==jR;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function b5(e,t){switch(e){case"compositionend":return Dx(t);case"keypress":return t.which!==HR?null:(VR=!0,kR);case"textInput":return e=t.data,e===kR&&VR?null:e;default:return null}}function _5(e,t){if(As)return e==="compositionend"||!zg&&Nx(e,t)?(e=Rx(),ad=Cg=_o=null,As=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return LR&&t.locale!=="ko"?null:t.data;default:return null}}function Cx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!t6[e.type]:t==="textarea"}function S5(e){if(!ia)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Ox(e,t,r,o){Ts?Rs?Rs.push(o):Rs=[o]:Ts=o,t=Hf(t,"onChange"),0<t.length&&(r=new od("onChange","change",null,r,o),e.push({event:r,listeners:t}))}function x5(e){hT(e,0)}function Xc(e){var t=Ce(e);if(Oc(t))return e}function Mx(e,t){if(e==="change")return t}function qx(){du&&(du.detachEvent("onpropertychange",zx),hu=du=null)}function zx(e){if(e.propertyName==="value"&&Xc(hu)){var t=[];Ox(t,hu,e,fp(e)),Tx(x5,t)}}function E5(e,t,r){e==="focusin"?(qx(),du=t,hu=r,du.attachEvent("onpropertychange",zx)):e==="focusout"&&qx()}function w5(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xc(hu)}function T5(e,t){if(e==="click")return Xc(t)}function R5(e,t){if(e==="input"||e==="change")return Xc(t)}function A5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Dl(e,t){if(bn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var u=r[o];if(!Er.call(t,u)||!bn(e[u],t[u]))return!1}return!0}function Ux(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jx(e,t){var r=Ux(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ux(r)}}function Lx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hx(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ji(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ji(e.document)}return t}function hp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kx(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;jg||Ns==null||Ns!==Ji(o)||(o=Ns,"selectionStart"in o&&hp(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),pu&&Dl(pu,o)||(pu=o,o=Hf(Ug,"onSelect"),0<o.length&&(t=new od("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Ns)))}function Ko(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}function Wo(e){if(Lg[e])return Lg[e];if(!Ds[e])return e;var t=Ds[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in IR)return Lg[e]=t[r];return e}function br(e,t){PR.set(e,t),Ke(t,[e])}function N5(e){for(var t=sd,r=0;r<e.length;r++){var o=e[r];if(typeof o=="object"&&o!==null)if($t(o)&&o.length===2&&typeof o[0]=="string"){if(t!==sd&&t!==Ig)return Vg;t=Ig}else return Vg;else{if(typeof o=="function"||typeof o=="string"&&50<o.length||t!==sd&&t!==Bg)return Vg;t=Bg}}return t}function pp(e,t,r,o){for(var u in e)Er.call(e,u)&&u[0]!=="_"&&Hr(u,e[u],t,r,o)}function Hr(e,t,r,o,u){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===ea){var c=H(t.type)||"…",g=t.key;t=t.props;var _=Object.keys(t),R=_.length;if(g==null&&R===0){t="<"+c+" />";break}if(3>o||R===1&&_[0]==="children"&&g==null){t="<"+c+" … />";break}r.push([u+"  ".repeat(o)+e,"<"+c]),g!==null&&Hr("key",g,r,o+1,u),e=!1;for(var D in t)D==="children"?t.children!=null&&(!$t(t.children)||0<t.children.length)&&(e=!0):Er.call(t,D)&&D[0]!=="_"&&Hr(D,t[D],r,o+1,u);r.push(["",e?">…</"+c+">":"/>"]);return}if(c=Object.prototype.toString.call(t),c=c.slice(8,c.length-1),c==="Array"){if(D=N5(t),D===Bg||D===sd){t=JSON.stringify(t);break}else if(D===Ig){for(r.push([u+"  ".repeat(o)+e,""]),e=0;e<t.length;e++)c=t[e],Hr(c[0],c[1],r,o+1,u);return}}if(c==="Promise"){if(t.status==="fulfilled"){if(c=r.length,Hr(e,t.value,r,o,u),r.length>c){r=r[c],r[1]="Promise<"+(r[1]||"Object")+">";return}}else if(t.status==="rejected"&&(c=r.length,Hr(e,t.reason,r,o,u),r.length>c)){r=r[c],r[1]="Rejected Promise<"+r[1]+">";return}r.push(["  ".repeat(o)+e,"Promise"]);return}c==="Object"&&(D=Object.getPrototypeOf(t))&&typeof D.constructor=="function"&&(c=D.constructor.name),r.push([u+"  ".repeat(o)+e,c==="Object"?3>o?"":"…":c]),3>o&&pp(t,r,o+1,u);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===l6?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}r.push([u+"  ".repeat(o)+e,t])}function Vx(e,t,r,o){var u=!0;for(g in e)g in t||(r.push([ld+"  ".repeat(o)+g,"…"]),u=!1);for(var c in t)if(c in e){var g=e[c],_=t[c];if(g!==_){if(o===0&&c==="children")u="  ".repeat(o)+c,r.push([ld+u,"…"],[ud+u,"…"]);else{if(!(3<=o)){if(typeof g=="object"&&typeof _=="object"&&g!==null&&_!==null&&g.$$typeof===_.$$typeof)if(_.$$typeof===ea){if(g.type===_.type&&g.key===_.key){g=H(_.type)||"…",u="  ".repeat(o)+c,g="<"+g+" … />",r.push([ld+u,g],[ud+u,g]),u=!1;continue}}else{var R=Object.prototype.toString.call(g),D=Object.prototype.toString.call(_);if(R===D&&(D==="[object Object]"||D==="[object Array]")){R=[FR+"  ".repeat(o)+c,D==="[object Array]"?"Array":""],r.push(R),D=r.length,Vx(g,_,r,o+1)?D===r.length&&(R[1]="Referentially unequal but deeply equal objects. Consider memoization."):u=!1;continue}}else if(typeof g=="function"&&typeof _=="function"&&g.name===_.name&&g.length===_.length&&(R=Function.prototype.toString.call(g),D=Function.prototype.toString.call(_),R===D)){g=_.name===""?"() => {}":_.name+"() {}",r.push([FR+"  ".repeat(o)+c,g+" Referentially unequal function closure. Consider memoization."]);continue}}Hr(c,g,r,o,ld),Hr(c,_,r,o,ud)}u=!1}}else r.push([ud+"  ".repeat(o)+c,"…"]),u=!1;return u}function _r(e){nt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function kr(e,t,r,o){mt&&(xo.start=t,xo.end=r,Da.color="warning",Da.tooltipText=o,Da.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,xo)):performance.measure(o,xo))}function Pc(e,t,r){kr(e,t,r,"Reconnect")}function Zc(e,t,r,o,u){var c=G(e);if(c!==null&&mt){var g=e.alternate,_=e.actualDuration;if(g===null||g.child!==e.child)for(var R=e.child;R!==null;R=R.sibling)_-=R.actualDuration;o=.5>_?o?"tertiary-light":"primary-light":10>_?o?"tertiary":"primary":100>_?o?"tertiary-dark":"primary-dark":"error";var D=e.memoizedProps;_=e._debugTask,D!==null&&g!==null&&g.memoizedProps!==D?(R=[u6],D=Vx(g.memoizedProps,D,R,0),1<R.length&&(D&&!So&&(g.lanes&u)===0&&100<e.actualDuration?(So=!0,R[0]=c6,Da.color="warning",Da.tooltipText=JR):(Da.color=o,Da.tooltipText=c),Da.properties=R,xo.start=t,xo.end=r,_!=null?_.run(performance.measure.bind(performance,"​"+c,xo)):performance.measure("​"+c,xo))):_!=null?_.run(console.timeStamp.bind(console,c,t,r,ar,void 0,o)):console.timeStamp(c,t,r,ar,void 0,o)}}function mp(e,t,r,o){if(mt){var u=G(e);if(u!==null){for(var c=null,g=[],_=0;_<o.length;_++){var R=o[_];c==null&&R.source!==null&&(c=R.source._debugTask),R=R.value,g.push(["Error",typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R)])}e.key!==null&&Hr("key",e.key,g,0,""),e.memoizedProps!==null&&pp(e.memoizedProps,g,0,""),c==null&&(c=e._debugTask),e={start:t,end:r,detail:{devtools:{color:"error",track:ar,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:g}}},c?c.run(performance.measure.bind(performance,"​"+u,e)):performance.measure("​"+u,e)}}}function Vr(e,t,r,o,u){if(u!==null){if(mt){var c=G(e);if(c!==null){o=[];for(var g=0;g<u.length;g++){var _=u[g].value;o.push(["Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}e.key!==null&&Hr("key",e.key,o,0,""),e.memoizedProps!==null&&pp(e.memoizedProps,o,0,""),t={start:t,end:r,detail:{devtools:{color:"error",track:ar,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+c,t)):performance.measure("​"+c,t)}}}else c=G(e),c!==null&&mt&&(u=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,c,t,r,ar,void 0,u)):console.timeStamp(c,t,r,ar,void 0,u))}function D5(e,t,r,o){if(mt&&!(t<=e)){var u=(r&738197653)===r?"tertiary-dark":"primary-dark";r=(r&536870912)===r?"Prepared":(r&201326741)===r?"Hydrated":"Render",o?o.run(console.timeStamp.bind(console,r,e,t,nt,et,u)):console.timeStamp(r,e,t,nt,et,u)}}function Bx(e,t,r,o){!mt||t<=e||(r=(r&738197653)===r?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,nt,et,r)):console.timeStamp("Prewarm",e,t,nt,et,r))}function Ix(e,t,r,o){!mt||t<=e||(r=(r&738197653)===r?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,nt,et,r)):console.timeStamp("Suspended",e,t,nt,et,r))}function C5(e,t,r,o,u,c){if(mt&&!(t<=e)){r=[];for(var g=0;g<o.length;g++){var _=o[g].value;r.push(["Recoverable Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:nt,trackGroup:et,tooltipText:u?"Hydration Failed":"Recovered after Error",properties:r}}},c?c.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function gp(e,t,r,o){!mt||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,nt,et,"error")):console.timeStamp("Errored",e,t,nt,et,"error"))}function O5(e,t,r,o){!mt||t<=e||(o?o.run(console.timeStamp.bind(console,r,e,t,nt,et,"secondary-light")):console.timeStamp(r,e,t,nt,et,"secondary-light"))}function Gx(e,t,r,o,u){if(mt&&!(t<=e)){for(var c=[],g=0;g<r.length;g++){var _=r[g].value;c.push(["Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}e={start:e,end:t,detail:{devtools:{color:"error",track:nt,trackGroup:et,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:c}}},u?u.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function yp(e,t,r){!mt||t<=e||console.timeStamp("Animating",e,t,nt,et,"secondary-dark")}function Qc(){for(var e=Cs,t=Gg=Cs=0;t<e;){var r=or[t];or[t++]=null;var o=or[t];or[t++]=null;var u=or[t];or[t++]=null;var c=or[t];if(or[t++]=null,o!==null&&u!==null){var g=o.pending;g===null?u.next=u:(u.next=g.next,g.next=u),o.pending=u}c!==0&&Yx(r,u,c)}}function Fc(e,t,r,o){or[Cs++]=e,or[Cs++]=t,or[Cs++]=r,or[Cs++]=o,Gg|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function vp(e,t,r,o){return Fc(e,t,r,o),Jc(e)}function cn(e,t){return Fc(e,null,null,t),Jc(e)}function Yx(e,t,r){e.lanes|=r;var o=e.alternate;o!==null&&(o.lanes|=r);for(var u=!1,c=e.return;c!==null;)c.childLanes|=r,o=c.alternate,o!==null&&(o.childLanes|=r),c.tag===22&&(e=c.stateNode,e===null||e._visibility&mu||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-gn(r),e=c.hiddenUpdates,o=e[u],o===null?e[u]=[t]:o.push(t),t.lane=r|536870912),c):null}function Jc(e){if(Iu>R6)throw Di=Iu=0,Gu=xy=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Di>A6&&(Di=0,Gu=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&iT(e);for(var t=e,r=t.return;r!==null;)t.alternate===null&&(t.flags&4098)!==0&&iT(e),t=r,r=t.return;return t.tag===3?t.stateNode:null}function ei(e){if(ir===null)return e;var t=ir(e);return t===void 0?e:t.current}function bp(e){if(ir===null)return e;var t=ir(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=ei(e.render),e.render!==t)?(t={$$typeof:ru,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function $x(e,t){if(ir===null)return!1;var r=e.elementType;t=t.type;var o=!1,u=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(o=!0);break;case 0:(typeof t=="function"||u===Yn)&&(o=!0);break;case 11:(u===ru||u===Yn)&&(o=!0);break;case 14:case 15:(u===Qf||u===Yn)&&(o=!0);break;default:return!1}return!!(o&&(e=ir(r),e!==void 0&&e===ir(t)))}function Xx(e){ir!==null&&typeof WeakSet=="function"&&(Os===null&&(Os=new WeakSet),Os.add(e))}function Px(e,t,r){do{var o=e,u=o.alternate,c=o.child,g=o.sibling,_=o.tag;o=o.type;var R=null;switch(_){case 0:case 15:case 1:R=o;break;case 11:R=o.render}if(ir===null)throw Error("Expected resolveFamily to be set during hot reload.");var D=!1;if(o=!1,R!==null&&(R=ir(R),R!==void 0&&(r.has(R)?o=!0:t.has(R)&&(_===1?o=!0:D=!0))),Os!==null&&(Os.has(e)||u!==null&&Os.has(u))&&(o=!0),o&&(e._debugNeedsRemount=!0),(o||D)&&(u=cn(e,2),u!==null&&Rt(u,e,2)),c===null||o||Px(c,t,r),g===null)break;e=g}while(!0)}function M5(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,KR||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function _p(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _a(e,t){var r=e.alternate;switch(r===null?(r=b(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r._debugOwner=e._debugOwner,r._debugStack=e._debugStack,r._debugTask=e._debugTask,r._debugHookTypes=e._debugHookTypes,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null,r.actualDuration=-0,r.actualStartTime=-1.1),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r.selfBaseDuration=e.selfBaseDuration,r.treeBaseDuration=e.treeBaseDuration,r._debugInfo=e._debugInfo,r._debugNeedsRemount=e._debugNeedsRemount,r.tag){case 0:case 15:r.type=ei(e.type);break;case 1:r.type=ei(e.type);break;case 11:r.type=bp(e.type)}return r}function Zx(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=r.selfBaseDuration,e.treeBaseDuration=r.treeBaseDuration),e}function Sp(e,t,r,o,u,c){var g=0,_=e;if(typeof e=="function")_p(e)&&(g=1),_=ei(_);else if(typeof e=="string")g=F(),g=B4(e,r,g)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pg:return t=b(31,r,t,u),t.elementType=pg,t.lanes=c,t;case bs:return ti(r.children,u,c,t);case Zf:g=8,u|=dn,u|=wr;break;case cg:return e=r,o=u,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=b(12,e,t,o|$e),t.elementType=cg,t.lanes=c,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case dg:return t=b(13,r,t,u),t.elementType=dg,t.lanes=c,t;case hg:return t=b(19,r,t,u),t.elementType=hg,t.lanes=c,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ta:g=10;break e;case fg:g=9;break e;case ru:g=11,_=bp(_);break e;case Qf:g=14;break e;case Yn:g=16,_=null;break e}_="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?r="null":$t(e)?r="array":e!==void 0&&e.$$typeof===ea?(r="<"+(H(e.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):r=typeof e,(g=o?k(o):null)&&(_+=`
77
+
78
+ Check the render method of \``+g+"`."),g=29,r=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(r+"."+_)),_=null}return t=b(g,r,t,u),t.elementType=e,t.type=_,t.lanes=c,t._debugOwner=o,t}function Kc(e,t,r){return t=Sp(e.type,e.key,e.props,e._owner,t,r),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function ti(e,t,r,o){return e=b(7,e,o,t),e.lanes=r,e}function xp(e,t,r){return e=b(6,e,null,t),e.lanes=r,e}function Qx(e){var t=b(18,null,null,ke);return t.stateNode=e,t}function Ep(e,t,r){return t=b(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hn(e,t){if(typeof e=="object"&&e!==null){var r=Yg.get(e);return r!==void 0?r:(t={value:e,source:t,stack:oe(t)},Yg.set(e,t),t)}return{value:e,source:t,stack:oe(t)}}function Sa(e,t){ro(),Ms[qs++]=gu,Ms[qs++]=cd,cd=e,gu=t}function Fx(e,t,r){ro(),sr[lr++]=Oa,sr[lr++]=Ma,sr[lr++]=pi,pi=e;var o=Oa;e=Ma;var u=32-gn(o)-1;o&=~(1<<u),r+=1;var c=32-gn(t)+u;if(30<c){var g=u-u%5;c=(o&(1<<g)-1).toString(32),o>>=g,u-=g,Oa=1<<32-gn(t)+u|r<<u|o,Ma=c+e}else Oa=1<<c|r<<u|o,Ma=e}function wp(e){ro(),e.return!==null&&(Sa(e,1),Fx(e,1,0))}function Tp(e){for(;e===cd;)cd=Ms[--qs],Ms[qs]=null,gu=Ms[--qs],Ms[qs]=null;for(;e===pi;)pi=sr[--lr],sr[lr]=null,Ma=sr[--lr],sr[lr]=null,Oa=sr[--lr],sr[lr]=null}function Jx(){return ro(),pi!==null?{id:Oa,overflow:Ma}:null}function Kx(e,t){ro(),sr[lr++]=Oa,sr[lr++]=Ma,sr[lr++]=pi,Oa=t.id,Ma=t.overflow,pi=e}function ro(){Je||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function ni(e,t){if(e.return===null){if(Xn===null)Xn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Xn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Xn.distanceFromLeaf>t&&(Xn.distanceFromLeaf=t)}return Xn}var r=ni(e.return,t+1).children;return 0<r.length&&r[r.length-1].fiber===e?(r=r[r.length-1],r.distanceFromLeaf>t&&(r.distanceFromLeaf=t),r):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},r.push(t),t)}function Wx(){Je&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Wc(e,t){sa||(e=ni(e,0),e.serverProps=null,t!==null&&(t=OT(t),e.serverTail.push(t)))}function ao(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,r="",o=Xn;throw o!==null&&(Xn=null,r=El(o)),Cl(Hn(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
79
+
80
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
81
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
82
+ - Date formatting in a user's locale which doesn't match the server.
83
+ - External changing data without sending a snapshot of it along with the HTML.
84
+ - Invalid HTML tag nesting.
85
+
86
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
87
+
88
+ https://react.dev/link/hydration-mismatch`+r),e)),$g}function eE(e){var t=e.stateNode,r=e.type,o=e.memoizedProps;switch(t[ln]=e,t[yn]=o,$m(r,o),r){case"dialog":We("cancel",t),We("close",t);break;case"iframe":case"object":case"embed":We("load",t);break;case"video":case"audio":for(r=0;r<Yu.length;r++)We(Yu[r],t);break;case"source":We("error",t);break;case"img":case"image":case"link":We("error",t),We("load",t);break;case"details":We("toggle",t);break;case"input":rn("input",o),We("invalid",t),Mc(t,o),bl(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":qc(t,o);break;case"select":rn("select",o),We("invalid",t),Uc(t,o);break;case"textarea":rn("textarea",o),We("invalid",t),jc(t,o),_l(t,o.value,o.defaultValue,o.children)}r=o.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||o.suppressHydrationWarning===!0||yT(t.textContent,r)?(o.popover!=null&&(We("beforetoggle",t),We("toggle",t)),o.onScroll!=null&&We("scroll",t),o.onScrollEnd!=null&&We("scrollend",t),o.onClick!=null&&(t.onclick=ba),t=!0):t=!1,t||ao(e,!0)}function tE(e){for(un=e.return;un;)switch(un.tag){case 5:case 31:case 13:ur=!1;return;case 27:case 3:ur=!0;return;default:un=un.return}}function rs(e){if(e!==un)return!1;if(!Je)return tE(e),Je=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Fm(e.type,e.memoizedProps)),r=!r),r&&gt){for(r=gt;r;){var o=ni(e,0),u=OT(r);o.serverTail.push(u),r=u.type==="Suspense"?eg(r):Gn(r.nextSibling)}ao(e)}if(tE(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");gt=eg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");gt=eg(e)}else t===27?(t=gt,mo(e.type)?(e=zy,zy=null,gt=e):gt=t):gt=un?Gn(e.stateNode.nextSibling):null;return!0}function ri(){gt=un=null,sa=Je=!1}function Rp(){var e=wo;return e!==null&&(En===null?En=e:En.push.apply(En,e),wo=null),e}function Cl(e){wo===null?wo=[e]:wo.push(e)}function Ap(){var e=Xn;if(e!==null){Xn=null;for(var t=El(e);0<e.children.length;)e=e.children[0];me(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
89
+
90
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
91
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
92
+ - Date formatting in a user's locale which doesn't match the server.
93
+ - External changing data without sending a snapshot of it along with the HTML.
94
+ - Invalid HTML tag nesting.
95
+
96
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
97
+
98
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function ef(){zs=fd=null,Us=!1}function oo(e,t,r){ee(Xg,t._currentValue,e),t._currentValue=r,ee(Pg,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==eA&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=eA}function xa(e,t){e._currentValue=Xg.current;var r=Pg.current;X(Pg,t),e._currentRenderer=r,X(Xg,t)}function Np(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}e!==r&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Dp(e,t,r,o){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var g=u.child;c=c.firstContext;e:for(;c!==null;){var _=c;c=u;for(var R=0;R<t.length;R++)if(_.context===t[R]){c.lanes|=r,_=c.alternate,_!==null&&(_.lanes|=r),Np(c.return,r,e),o||(g=null);break e}c=_.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");g.lanes|=r,c=g.alternate,c!==null&&(c.lanes|=r),Np(g,r,e),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===e){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function as(e,t,r,o){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error("Should have a current fiber. This is a bug in React.");if(g=g.memoizedProps,g!==null){var _=u.type;bn(u.pendingProps.value,g.value)||(e!==null?e.push(_):e=[_])}}else if(u===Ff.current){if(g=u.alternate,g===null)throw Error("Should have a current fiber. This is a bug in React.");g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Qu):e=[Qu])}u=u.return}e!==null&&Dp(t,e,r,o),t.flags|=262144}function tf(e){for(e=e.firstContext;e!==null;){if(!bn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ai(e){fd=e,zs=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function bt(e){return Us&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),nE(fd,e)}function nf(e,t){return fd===null&&ai(e),nE(e,t)}function nE(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},zs===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");zs=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else zs=zs.next=t;return r}function Cp(){return{controller:new h6,data:new Map,refCount:0}}function oi(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function Ol(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&p6(m6,function(){e.controller.abort()})}function Br(e,t,r){(e&127)!==0?0>la&&(la=jt(),vu=dd(t),Zg=t,r!=null&&(Qg=G(r)),(rt&(Pt|Qn))!==Wt&&(At=!0,Ro=yu),e=Kl(),t=Jl(),e!==js||t!==bu?js=-1.1:t!==null&&(Ro=yu),yi=e,bu=t):(e&4194048)!==0&&0>cr&&(cr=jt(),_u=dd(t),tA=t,r!=null&&(nA=G(r)),0>ja)&&(e=Kl(),t=Jl(),(e!==No||t!==vi)&&(No=-1.1),Ao=e,vi=t)}function q5(e){if(0>la){la=jt(),vu=e._debugTask!=null?e._debugTask:null,(rt&(Pt|Qn))!==Wt&&(Ro=yu);var t=Kl(),r=Jl();t!==js||r!==bu?js=-1.1:r!==null&&(Ro=yu),yi=t,bu=r}0>cr&&(cr=jt(),_u=e._debugTask!=null?e._debugTask:null,0>ja)&&(e=Kl(),t=Jl(),(e!==No||t!==vi)&&(No=-1.1),Ao=e,vi=t)}function Ea(){var e=mi;return mi=0,e}function rf(e){var t=mi;return mi=e,t}function Ml(e){var t=mi;return mi+=e,t}function af(){He=Ue=-1.1}function kn(){var e=Ue;return Ue=-1.1,e}function Vn(e){0<=e&&(Ue=e)}function Ir(){var e=St;return St=-0,e}function Gr(e){0<=e&&(St=e)}function Yr(){var e=_t;return _t=null,e}function $r(){var e=At;return At=!1,e}function Op(e){_n=jt(),0>e.actualStartTime&&(e.actualStartTime=_n)}function Mp(e){if(0<=_n){var t=jt()-_n;e.actualDuration+=t,e.selfBaseDuration=t,_n=-1}}function rE(e){if(0<=_n){var t=jt()-_n;e.actualDuration+=t,_n=-1}}function Xr(){if(0<=_n){var e=jt(),t=e-_n;_n=-1,mi+=t,St+=t,He=e}}function aE(e){_t===null&&(_t=[]),_t.push(e),za===null&&(za=[]),za.push(e)}function Pr(){_n=jt(),0>Ue&&(Ue=_n)}function ql(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function z5(e,t){if(xu===null){var r=xu=[];Jg=0,bi=Bm(),Ls={status:"pending",value:void 0,then:function(o){r.push(o)}}}return Jg++,t.then(oE,oE),t}function oE(){if(--Jg===0&&(-1<cr||(ja=-1.1),xu!==null)){Ls!==null&&(Ls.status="fulfilled");var e=xu;xu=null,bi=0,Ls=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function U5(e,t){var r=[],o={status:"pending",value:null,reason:null,then:function(u){r.push(u)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var u=0;u<r.length;u++)(0,r[u])(t)},function(u){for(o.status="rejected",o.reason=u,u=0;u<r.length;u++)(0,r[u])(void 0)}),o}function qp(){var e=_i.current;return e!==null?e:dt.pooledCache}function of(e,t){t===null?ee(_i,_i.current,e):ee(_i,t.pool,e)}function iE(){var e=qp();return e===null?null:{parent:Ut._currentValue,pool:e}}function sE(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function lE(e){return e=e.status,e==="fulfilled"||e==="rejected"}function uE(e,t,r){le.actQueue!==null&&(le.didUsePromise=!0);var o=e.thenables;if(r=o[r],r===void 0?o.push(t):r!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(ba,ba),t=r),t._debugInfo===void 0){e=performance.now(),o=t.displayName;var u={name:typeof o=="string"?o:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:u}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){u.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fE(e),e;default:if(typeof t.status=="string")t.then(ba,ba);else{if(e=dt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(c){if(t.status==="pending"){var g=t;g.status="fulfilled",g.value=c}},function(c){if(t.status==="pending"){var g=t;g.status="rejected",g.reason=c}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fE(e),e}throw xi=t,Du=!0,Hs}}function io(e){try{return _6(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(xi=t,Du=!0,Hs):t}}function cE(){if(xi===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=xi;return xi=null,Du=!1,e}function fE(e){if(e===Hs||e===_d)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function an(e){var t=Xe;return e!=null&&(Xe=t===null?e:t.concat(e)),t}function zp(){var e=Xe;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var r=e[t].debugTask;if(r!=null)return r}}return null}function sf(e,t,r){for(var o=Object.keys(e.props),u=0;u<o.length;u++){var c=o[u];if(c!=="children"&&c!=="key"){t===null&&(t=Kc(e,r.mode,0),t._debugInfo=Xe,t.return=r),me(t,function(g){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",g)},c);break}}}function lf(e){var t=Cu;return Cu+=1,ks===null&&(ks=sE()),uE(ks,e,t)}function zl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function dE(e,t){throw t.$$typeof===K4?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
99
+ - Multiple copies of the "react" package is used.
100
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
101
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function uf(e,t){var r=zp();r!==null?r.run(dE.bind(null,e,t)):dE(e,t)}function hE(e,t){var r=G(e)||"Component";xA[r]||(xA[r]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
102
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
103
+ <%s>{%s}</%s>`,t,t,r,t,r))}function cf(e,t){var r=zp();r!==null?r.run(hE.bind(null,e,t)):hE(e,t)}function pE(e,t){var r=G(e)||"Component";EA[r]||(EA[r]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
104
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
105
+ <%s>%s</%s>`,r,t,r))}function ff(e,t){var r=zp();r!==null?r.run(pE.bind(null,e,t)):pE(e,t)}function mE(e){function t(I,$){if(e){var P=I.deletions;P===null?(I.deletions=[$],I.flags|=16):P.push($)}}function r(I,$){if(!e)return null;for(;$!==null;)t(I,$),$=$.sibling;return null}function o(I){for(var $=new Map;I!==null;)I.key!==null?$.set(I.key,I):$.set(I.index,I),I=I.sibling;return $}function u(I,$){return I=_a(I,$),I.index=0,I.sibling=null,I}function c(I,$,P){return I.index=P,e?(P=I.alternate,P!==null?(P=P.index,P<$?(I.flags|=67108866,$):P):(I.flags|=67108866,$)):(I.flags|=1048576,$)}function g(I){return e&&I.alternate===null&&(I.flags|=67108866),I}function _(I,$,P,pe){return $===null||$.tag!==6?($=xp(P,I.mode,pe),$.return=I,$._debugOwner=I,$._debugTask=I._debugTask,$._debugInfo=Xe,$):($=u($,P),$.return=I,$._debugInfo=Xe,$)}function R(I,$,P,pe){var xe=P.type;return xe===bs?($=J(I,$,P.props.children,pe,P.key),sf(P,$,I),$):$!==null&&($.elementType===xe||$x($,P)||typeof xe=="object"&&xe!==null&&xe.$$typeof===Yn&&io(xe)===$.type)?($=u($,P.props),zl($,P),$.return=I,$._debugOwner=P._owner,$._debugInfo=Xe,$):($=Kc(P,I.mode,pe),zl($,P),$.return=I,$._debugInfo=Xe,$)}function D(I,$,P,pe){return $===null||$.tag!==4||$.stateNode.containerInfo!==P.containerInfo||$.stateNode.implementation!==P.implementation?($=Ep(P,I.mode,pe),$.return=I,$._debugInfo=Xe,$):($=u($,P.children||[]),$.return=I,$._debugInfo=Xe,$)}function J(I,$,P,pe,xe){return $===null||$.tag!==7?($=ti(P,I.mode,pe,xe),$.return=I,$._debugOwner=I,$._debugTask=I._debugTask,$._debugInfo=Xe,$):($=u($,P),$.return=I,$._debugInfo=Xe,$)}function K(I,$,P){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=xp(""+$,I.mode,P),$.return=I,$._debugOwner=I,$._debugTask=I._debugTask,$._debugInfo=Xe,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case ea:return P=Kc($,I.mode,P),zl(P,$),P.return=I,I=an($._debugInfo),P._debugInfo=Xe,Xe=I,P;case vs:return $=Ep($,I.mode,P),$.return=I,$._debugInfo=Xe,$;case Yn:var pe=an($._debugInfo);return $=io($),I=K(I,$,P),Xe=pe,I}if($t($)||U($))return P=ti($,I.mode,P,null),P.return=I,P._debugOwner=I,P._debugTask=I._debugTask,I=an($._debugInfo),P._debugInfo=Xe,Xe=I,P;if(typeof $.then=="function")return pe=an($._debugInfo),I=K(I,lf($),P),Xe=pe,I;if($.$$typeof===ta)return K(I,nf(I,$),P);uf(I,$)}return typeof $=="function"&&cf(I,$),typeof $=="symbol"&&ff(I,$),null}function Y(I,$,P,pe){var xe=$!==null?$.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return xe!==null?null:_(I,$,""+P,pe);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case ea:return P.key===xe?(xe=an(P._debugInfo),I=R(I,$,P,pe),Xe=xe,I):null;case vs:return P.key===xe?D(I,$,P,pe):null;case Yn:return xe=an(P._debugInfo),P=io(P),I=Y(I,$,P,pe),Xe=xe,I}if($t(P)||U(P))return xe!==null?null:(xe=an(P._debugInfo),I=J(I,$,P,pe,null),Xe=xe,I);if(typeof P.then=="function")return xe=an(P._debugInfo),I=Y(I,$,lf(P),pe),Xe=xe,I;if(P.$$typeof===ta)return Y(I,$,nf(I,P),pe);uf(I,P)}return typeof P=="function"&&cf(I,P),typeof P=="symbol"&&ff(I,P),null}function ie(I,$,P,pe,xe){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return I=I.get(P)||null,_($,I,""+pe,xe);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case ea:return P=I.get(pe.key===null?P:pe.key)||null,I=an(pe._debugInfo),$=R($,P,pe,xe),Xe=I,$;case vs:return I=I.get(pe.key===null?P:pe.key)||null,D($,I,pe,xe);case Yn:var Be=an(pe._debugInfo);return pe=io(pe),$=ie(I,$,P,pe,xe),Xe=Be,$}if($t(pe)||U(pe))return P=I.get(P)||null,I=an(pe._debugInfo),$=J($,P,pe,xe,null),Xe=I,$;if(typeof pe.then=="function")return Be=an(pe._debugInfo),$=ie(I,$,P,lf(pe),xe),Xe=Be,$;if(pe.$$typeof===ta)return ie(I,$,P,nf($,pe),xe);uf($,pe)}return typeof pe=="function"&&cf($,pe),typeof pe=="symbol"&&ff($,pe),null}function Se(I,$,P,pe){if(typeof P!="object"||P===null)return pe;switch(P.$$typeof){case ea:case vs:y(I,$,P);var xe=P.key;if(typeof xe!="string")break;if(pe===null){pe=new Set,pe.add(xe);break}if(!pe.has(xe)){pe.add(xe);break}me($,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",xe)});break;case Yn:P=io(P),Se(I,$,P,pe)}return pe}function Ee(I,$,P,pe){for(var xe=null,Be=null,ze=null,Oe=$,Ye=$=0,yt=null;Oe!==null&&Ye<P.length;Ye++){Oe.index>Ye?(yt=Oe,Oe=null):yt=Oe.sibling;var Mt=Y(I,Oe,P[Ye],pe);if(Mt===null){Oe===null&&(Oe=yt);break}xe=Se(I,Mt,P[Ye],xe),e&&Oe&&Mt.alternate===null&&t(I,Oe),$=c(Mt,$,Ye),ze===null?Be=Mt:ze.sibling=Mt,ze=Mt,Oe=yt}if(Ye===P.length)return r(I,Oe),Je&&Sa(I,Ye),Be;if(Oe===null){for(;Ye<P.length;Ye++)Oe=K(I,P[Ye],pe),Oe!==null&&(xe=Se(I,Oe,P[Ye],xe),$=c(Oe,$,Ye),ze===null?Be=Oe:ze.sibling=Oe,ze=Oe);return Je&&Sa(I,Ye),Be}for(Oe=o(Oe);Ye<P.length;Ye++)yt=ie(Oe,I,Ye,P[Ye],pe),yt!==null&&(xe=Se(I,yt,P[Ye],xe),e&&yt.alternate!==null&&Oe.delete(yt.key===null?Ye:yt.key),$=c(yt,$,Ye),ze===null?Be=yt:ze.sibling=yt,ze=yt);return e&&Oe.forEach(function(Ya){return t(I,Ya)}),Je&&Sa(I,Ye),Be}function pt(I,$,P,pe){if(P==null)throw Error("An iterable object provided no iterator.");for(var xe=null,Be=null,ze=$,Oe=$=0,Ye=null,yt=null,Mt=P.next();ze!==null&&!Mt.done;Oe++,Mt=P.next()){ze.index>Oe?(Ye=ze,ze=null):Ye=ze.sibling;var Ya=Y(I,ze,Mt.value,pe);if(Ya===null){ze===null&&(ze=Ye);break}yt=Se(I,Ya,Mt.value,yt),e&&ze&&Ya.alternate===null&&t(I,ze),$=c(Ya,$,Oe),Be===null?xe=Ya:Be.sibling=Ya,Be=Ya,ze=Ye}if(Mt.done)return r(I,ze),Je&&Sa(I,Oe),xe;if(ze===null){for(;!Mt.done;Oe++,Mt=P.next())ze=K(I,Mt.value,pe),ze!==null&&(yt=Se(I,ze,Mt.value,yt),$=c(ze,$,Oe),Be===null?xe=ze:Be.sibling=ze,Be=ze);return Je&&Sa(I,Oe),xe}for(ze=o(ze);!Mt.done;Oe++,Mt=P.next())Ye=ie(ze,I,Oe,Mt.value,pe),Ye!==null&&(yt=Se(I,Ye,Mt.value,yt),e&&Ye.alternate!==null&&ze.delete(Ye.key===null?Oe:Ye.key),$=c(Ye,$,Oe),Be===null?xe=Ye:Be.sibling=Ye,Be=Ye);return e&&ze.forEach(function(Y6){return t(I,Y6)}),Je&&Sa(I,Oe),xe}function tt(I,$,P,pe){if(typeof P=="object"&&P!==null&&P.type===bs&&P.key===null&&(sf(P,null,I),P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case ea:var xe=an(P._debugInfo);e:{for(var Be=P.key;$!==null;){if($.key===Be){if(Be=P.type,Be===bs){if($.tag===7){r(I,$.sibling),pe=u($,P.props.children),pe.return=I,pe._debugOwner=P._owner,pe._debugInfo=Xe,sf(P,pe,I),I=pe;break e}}else if($.elementType===Be||$x($,P)||typeof Be=="object"&&Be!==null&&Be.$$typeof===Yn&&io(Be)===$.type){r(I,$.sibling),pe=u($,P.props),zl(pe,P),pe.return=I,pe._debugOwner=P._owner,pe._debugInfo=Xe,I=pe;break e}r(I,$);break}else t(I,$);$=$.sibling}P.type===bs?(pe=ti(P.props.children,I.mode,pe,P.key),pe.return=I,pe._debugOwner=I,pe._debugTask=I._debugTask,pe._debugInfo=Xe,sf(P,pe,I),I=pe):(pe=Kc(P,I.mode,pe),zl(pe,P),pe.return=I,pe._debugInfo=Xe,I=pe)}return I=g(I),Xe=xe,I;case vs:e:{for(xe=P,P=xe.key;$!==null;){if($.key===P)if($.tag===4&&$.stateNode.containerInfo===xe.containerInfo&&$.stateNode.implementation===xe.implementation){r(I,$.sibling),pe=u($,xe.children||[]),pe.return=I,I=pe;break e}else{r(I,$);break}else t(I,$);$=$.sibling}pe=Ep(xe,I.mode,pe),pe.return=I,I=pe}return g(I);case Yn:return xe=an(P._debugInfo),P=io(P),I=tt(I,$,P,pe),Xe=xe,I}if($t(P))return xe=an(P._debugInfo),I=Ee(I,$,P,pe),Xe=xe,I;if(U(P)){if(xe=an(P._debugInfo),Be=U(P),typeof Be!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var ze=Be.call(P);return ze===P?(I.tag!==0||Object.prototype.toString.call(I.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(ze)!=="[object Generator]")&&(_A||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),_A=!0):P.entries!==Be||ty||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ty=!0),I=pt(I,$,ze,pe),Xe=xe,I}if(typeof P.then=="function")return xe=an(P._debugInfo),I=tt(I,$,lf(P),pe),Xe=xe,I;if(P.$$typeof===ta)return tt(I,$,nf(I,P),pe);uf(I,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(xe=""+P,$!==null&&$.tag===6?(r(I,$.sibling),pe=u($,xe),pe.return=I,I=pe):(r(I,$),pe=xp(xe,I.mode,pe),pe.return=I,pe._debugOwner=I,pe._debugTask=I._debugTask,pe._debugInfo=Xe,I=pe),g(I)):(typeof P=="function"&&cf(I,P),typeof P=="symbol"&&ff(I,P),r(I,$))}return function(I,$,P,pe){var xe=Xe;Xe=null;try{Cu=0;var Be=tt(I,$,P,pe);return ks=null,Be}catch(yt){if(yt===Hs||yt===_d)throw yt;var ze=b(29,yt,null,I.mode);ze.lanes=pe,ze.return=I;var Oe=ze._debugInfo=Xe;if(ze._debugOwner=I._debugOwner,ze._debugTask=I._debugTask,Oe!=null){for(var Ye=Oe.length-1;0<=Ye;Ye--)if(typeof Oe[Ye].stack=="string"){ze._debugOwner=Oe[Ye],ze._debugTask=Oe[Ye].debugTask;break}}return ze}finally{Xe=xe}}}function gE(e,t){var r=$t(e);return e=!r&&typeof U(e)=="function",r||e?(r=r?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",r,t,r),!1):!0}function Up(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function so(e){return{lane:e,tag:TA,payload:null,callback:null,next:null}}function lo(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,ry===o&&!NA){var u=G(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
106
+
107
+ Please update the following component: %s`,u),NA=!0}return(rt&Pt)!==Wt?(u=o.pending,u===null?t.next=t:(t.next=u.next,u.next=t),o.pending=t,t=Jc(e),Yx(e,null,r),t):(Fc(e,o,t,r),Jc(e))}function Ul(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,ya(e,r)}}function df(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var u=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var g={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};c===null?u=c=g:c=c.next=g,r=r.next}while(r!==null);c===null?u=c=t:c=c.next=t}else u=c=t;r={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:o.shared,callbacks:o.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function jl(){if(ay){var e=Ls;if(e!==null)throw e}}function Ll(e,t,r,o){ay=!1;var u=e.updateQueue;Do=!1,ry=u.shared;var c=u.firstBaseUpdate,g=u.lastBaseUpdate,_=u.shared.pending;if(_!==null){u.shared.pending=null;var R=_,D=R.next;R.next=null,g===null?c=D:g.next=D,g=R;var J=e.alternate;J!==null&&(J=J.updateQueue,_=J.lastBaseUpdate,_!==g&&(_===null?J.firstBaseUpdate=D:_.next=D,J.lastBaseUpdate=R))}if(c!==null){var K=u.baseState;g=0,J=D=R=null,_=c;do{var Y=_.lane&-536870913,ie=Y!==_.lane;if(ie?(Pe&Y)===Y:(o&Y)===Y){Y!==0&&Y===bi&&(ay=!0),J!==null&&(J=J.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{Y=e;var Se=_,Ee=t,pt=r;switch(Se.tag){case RA:if(Se=Se.payload,typeof Se=="function"){Us=!0;var tt=Se.call(pt,K,Ee);if(Y.mode&dn){we(!0);try{Se.call(pt,K,Ee)}finally{we(!1)}}Us=!1,K=tt;break e}K=Se;break e;case ny:Y.flags=Y.flags&-65537|128;case TA:if(tt=Se.payload,typeof tt=="function"){if(Us=!0,Se=tt.call(pt,K,Ee),Y.mode&dn){we(!0);try{tt.call(pt,K,Ee)}finally{we(!1)}}Us=!1}else Se=tt;if(Se==null)break e;K=Fe({},K,Se);break e;case AA:Do=!0}}Y=_.callback,Y!==null&&(e.flags|=64,ie&&(e.flags|=8192),ie=u.callbacks,ie===null?u.callbacks=[Y]:ie.push(Y))}else ie={lane:Y,tag:_.tag,payload:_.payload,callback:_.callback,next:null},J===null?(D=J=ie,R=K):J=J.next=ie,g|=Y;if(_=_.next,_===null){if(_=u.shared.pending,_===null)break;ie=_,_=ie.next,ie.next=null,u.lastBaseUpdate=ie,u.shared.pending=null}}while(!0);J===null&&(R=K),u.baseState=R,u.firstBaseUpdate=D,u.lastBaseUpdate=J,c===null&&(u.shared.lanes=0),Mo|=g,e.lanes=g,e.memoizedState=K}ry=null}function yE(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function j5(e,t){var r=e.shared.hiddenCallbacks;if(r!==null)for(e.shared.hiddenCallbacks=null,e=0;e<r.length;e++)yE(r[e],t)}function vE(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)yE(r[e],t)}function bE(e,t){var r=ca;ee(xd,r,e),ee(Vs,t,e),ca=r|t.baseLanes}function Lp(e){ee(xd,ca,e),ee(Vs,Vs.current,e)}function Hp(e){ca=xd.current,X(Vs,e),X(xd,e)}function uo(e){var t=e.alternate;ee(Ot,Ot.current&Bs,e),ee(Pn,e,e),fr===null&&(t===null||Vs.current!==null||t.memoizedState!==null)&&(fr=e)}function kp(e){ee(Ot,Ot.current,e),ee(Pn,e,e),fr===null&&(fr=e)}function _E(e){e.tag===22?(ee(Ot,Ot.current,e),ee(Pn,e,e),fr===null&&(fr=e)):co(e)}function co(e){ee(Ot,Ot.current,e),ee(Pn,Pn.current,e)}function Bn(e){X(Pn,e),fr===e&&(fr=null),X(Ot,e)}function hf(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Km(r)||Wm(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Qe(){var e=se;hr===null?hr=[e]:hr.push(e)}function ve(){var e=se;if(hr!==null&&(ka++,hr[ka]!==e)){var t=G(Ve);if(!DA.has(t)&&(DA.add(t),hr!==null)){for(var r="",o=0;o<=ka;o++){var u=hr[o],c=o===ka?e:u;for(u=o+1+". "+u;30>u.length;)u+=" ";u+=c+`
108
+ `,r+=u}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
109
+
110
+ Previous render Next render
111
+ ------------------------------------------------------
112
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
+ `,t,r)}}}function os(e){e==null||$t(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",se,typeof e)}function pf(){var e=G(Ve);OA.has(e)||(OA.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Dt(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
114
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
115
+ 2. You might be breaking the Rules of Hooks
116
+ 3. You might have more than one copy of React in the same app
117
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Vp(e,t){if(qu)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",se),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
118
+
119
+ Previous: %s
120
+ Incoming: %s`,se,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var r=0;r<t.length&&r<e.length;r++)if(!bn(e[r],t[r]))return!1;return!0}function Bp(e,t,r,o,u,c){La=c,Ve=t,hr=e!==null?e._debugHookTypes:null,ka=-1,qu=e!==null&&e.type!==t.type,(Object.prototype.toString.call(r)==="[object AsyncFunction]"||Object.prototype.toString.call(r)==="[object AsyncGeneratorFunction]")&&(c=G(Ve),oy.has(c)||(oy.add(c),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",c===null?"An unknown Component":"<"+c+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,le.H=e!==null&&e.memoizedState!==null?sy:hr!==null?MA:iy,wi=c=(t.mode&dn)!==ke;var g=Kg(r,o,u);if(wi=!1,Gs&&(g=Ip(t,r,o,u)),c){we(!0);try{g=Ip(t,r,o,u)}finally{we(!1)}}return SE(e,t),g}function SE(e,t){t._debugHookTypes=hr,t.dependencies===null?Ha!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Ha}):t.dependencies._debugThenableState=Ha,le.H=zu;var r=ft!==null&&ft.next!==null;if(La=0,hr=se=Lt=ft=Ve=null,ka=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),wd=!1,Mu=0,Ha=null,r)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Ht||(e=e.dependencies,e!==null&&tf(e)&&(Ht=!0)),Du?(Du=!1,e=!0):e=!1,e&&(t=G(t)||"Unknown",CA.has(t)||oy.has(t)||(CA.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Ip(e,t,r,o){Ve=e;var u=0;do{if(Gs&&(Ha=null),Mu=0,Gs=!1,u>=x6)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(u+=1,qu=!1,Lt=ft=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}ka=-1,le.H=qA,c=Kg(t,r,o)}while(Gs);return c}function L5(){var e=le.H,t=e.useState()[0];return t=typeof t.then=="function"?Hl(t):t,e=e.useState()[0],(ft!==null?ft.memoizedState:null)!==e&&(Ve.flags|=1024),t}function Gp(){var e=Td!==0;return Td=0,e}function Yp(e,t,r){t.updateQueue=e.updateQueue,t.flags=(t.mode&wr)!==ke?t.flags&-402655237:t.flags&-2053,e.lanes&=~r}function $p(e){if(wd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wd=!1}La=0,hr=Lt=ft=Ve=null,ka=-1,se=null,Gs=!1,Mu=Td=0,Ha=null}function mn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lt===null?Ve.memoizedState=Lt=e:Lt=Lt.next=e,Lt}function st(){if(ft===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=ft.next;var t=Lt===null?Ve.memoizedState:Lt.next;if(t!==null)Lt=t,ft=e;else{if(e===null)throw Ve.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");ft=e,e={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},Lt===null?Ve.memoizedState=Lt=e:Lt=Lt.next=e}return Lt}function mf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hl(e){var t=Mu;return Mu+=1,Ha===null&&(Ha=sE()),e=uE(Ha,e,t),t=Ve,(Lt===null?t.memoizedState:Lt.next)===null&&(t=t.alternate,le.H=t!==null&&t.memoizedState!==null?sy:iy),e}function fo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hl(e);if(e.$$typeof===ta)return bt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function ii(e){var t=null,r=Ve.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var o=Ve.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=mf(),Ve.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0||qu)for(r=t.data[t.index]=Array(e),o=0;o<e;o++)r[o]=W4;else r.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",r.length,e);return t.index++,r}function Sr(e,t){return typeof t=="function"?t(e):t}function Xp(e,t,r){var o=mn();if(r!==void 0){var u=r(t);if(wi){we(!0);try{r(t)}finally{we(!1)}}}else u=t;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=I5.bind(null,Ve,e),[o.memoizedState,e]}function is(e){var t=st();return Pp(t,ft,e)}function Pp(e,t,r){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=r;var u=e.baseQueue,c=o.pending;if(c!==null){if(u!==null){var g=u.next;u.next=c.next,c.next=g}t.baseQueue!==u&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=u=c,o.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var _=g=null,R=null,D=t,J=!1;do{var K=D.lane&-536870913;if(K!==D.lane?(Pe&K)===K:(La&K)===K){var Y=D.revertLane;if(Y===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),K===bi&&(J=!0);else if((La&Y)===Y){D=D.next,Y===bi&&(J=!0);continue}else K={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},R===null?(_=R=K,g=c):R=R.next=K,Ve.lanes|=Y,Mo|=Y;K=D.action,wi&&r(c,K),c=D.hasEagerState?D.eagerState:r(c,K)}else Y={lane:K,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},R===null?(_=R=Y,g=c):R=R.next=Y,Ve.lanes|=K,Mo|=K;D=D.next}while(D!==null&&D!==t);if(R===null?g=c:R.next=_,!bn(c,e.memoizedState)&&(Ht=!0,J&&(r=Ls,r!==null)))throw r;e.memoizedState=c,e.baseState=g,e.baseQueue=R,o.lastRenderedState=c}return u===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function kl(e){var t=st(),r=t.queue;if(r===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");r.lastRenderedReducer=e;var o=r.dispatch,u=r.pending,c=t.memoizedState;if(u!==null){r.pending=null;var g=u=u.next;do c=e(c,g.action),g=g.next;while(g!==u);bn(c,t.memoizedState)||(Ht=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,o]}function Zp(e,t,r){var o=Ve,u=mn();if(Je){if(r===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var c=r();Is||c===r()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Is=!0)}else{if(c=t(),Is||(r=t(),bn(c,r)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Is=!0)),dt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Pe&127)!==0||xE(o,t,c)}return u.memoizedState=c,r={value:c,getSnapshot:t},u.queue=r,bf(wE.bind(null,o,r,e),[e]),o.flags|=2048,ls(dr|xn,{destroy:void 0},EE.bind(null,o,r,c,t),null),c}function gf(e,t,r){var o=Ve,u=st(),c=Je;if(c){if(r===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=r()}else if(r=t(),!Is){var g=t();bn(r,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Is=!0)}(g=!bn((ft||u).memoizedState,r))&&(u.memoizedState=r,Ht=!0),u=u.queue;var _=wE.bind(null,o,u,e);if(Cn(2048,xn,_,[e]),u.getSnapshot!==t||g||Lt!==null&&Lt.memoizedState.tag&dr){if(o.flags|=2048,ls(dr|xn,{destroy:void 0},EE.bind(null,o,u,r,t),null),dt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");c||(La&127)!==0||xE(o,t,r)}return r}function xE(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ve.updateQueue,t===null?(t=mf(),Ve.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function EE(e,t,r,o){t.value=r,t.getSnapshot=o,TE(t)&&RE(e)}function wE(e,t,r){return r(function(){TE(t)&&(Br(2,"updateSyncExternalStore()",e),RE(e))})}function TE(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!bn(e,r)}catch{return!0}}function RE(e){var t=cn(e,2);t!==null&&Rt(t,e,2)}function Qp(e){var t=mn();if(typeof e=="function"){var r=e;if(e=r(),wi){we(!0);try{r()}finally{we(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:e},t}function Fp(e){e=Qp(e);var t=e.queue,r=$E.bind(null,Ve,t);return t.dispatch=r,[e.memoizedState,r]}function Jp(e){var t=mn();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=fm.bind(null,Ve,!0,r),r.dispatch=t,[e,t]}function AE(e,t){var r=st();return NE(r,ft,e,t)}function NE(e,t,r,o){return e.baseState=r,Pp(e,ft,typeof o=="function"?o:Sr)}function DE(e,t){var r=st();return ft!==null?NE(r,ft,e,t):(r.baseState=e,[e,r.queue.dispatch])}function H5(e,t,r,o,u){if(Tf(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};le.T!==null?r(!0):c.isTransition=!1,o(c),r=t.pending,r===null?(c.next=t.pending=c,CE(t,c)):(c.next=r.next,t.pending=r.next=c)}}function CE(e,t){var r=t.action,o=t.payload,u=e.state;if(t.isTransition){var c=le.T,g={};g._updatedFibers=new Set,le.T=g;try{var _=r(u,o),R=le.S;R!==null&&R(g,_),OE(e,t,_)}catch(D){Kp(e,t,D)}finally{c!==null&&g.types!==null&&(c.types!==null&&c.types!==g.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),c.types=g.types),le.T=c,c===null&&g._updatedFibers&&(e=g._updatedFibers.size,g._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{g=r(u,o),OE(e,t,g)}catch(D){Kp(e,t,D)}}function OE(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?(le.asyncTransitions++,r.then(wf,wf),r.then(function(o){ME(e,t,o)},function(o){return Kp(e,t,o)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):ME(e,t,r)}function ME(e,t,r){t.status="fulfilled",t.value=r,qE(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,CE(e,r)))}function Kp(e,t,r){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=r,qE(t),t=t.next;while(t!==o)}e.action=null}function qE(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zE(e,t){return t}function ss(e,t){if(Je){var r=dt.formState;if(r!==null){e:{var o=Ve;if(Je){if(gt){t:{for(var u=gt,c=ur;u.nodeType!==8;){if(!c){u=null;break t}if(u=Gn(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c===Cy||c===vN?u:null}if(u){gt=Gn(u.nextSibling),o=u.data===Cy;break e}}ao(o)}o=!1}o&&(t=r[0])}}return r=mn(),r.memoizedState=r.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zE,lastRenderedState:t},r.queue=o,r=$E.bind(null,Ve,o),o.dispatch=r,o=Qp(!1),c=fm.bind(null,Ve,!1,o.queue),o=mn(),u={state:t,dispatch:null,action:e,pending:null},o.queue=u,r=H5.bind(null,Ve,u,c,r),u.dispatch=r,o.memoizedState=e,[t,r,!1]}function yf(e){var t=st();return UE(t,ft,e)}function UE(e,t,r){if(t=Pp(e,t,zE)[0],e=is(Sr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=Hl(t)}catch(g){throw g===Hs?_d:g}else o=t;t=st();var u=t.queue,c=u.dispatch;return r!==t.memoizedState&&(Ve.flags|=2048,ls(dr|xn,{destroy:void 0},k5.bind(null,u,r),null)),[o,c,e]}function k5(e,t){e.action=t}function vf(e){var t=st(),r=ft;if(r!==null)return UE(t,r,e);st(),t=t.memoizedState,r=st();var o=r.queue.dispatch;return r.memoizedState=e,[t,o,!1]}function ls(e,t,r,o){return e={tag:e,create:r,deps:o,inst:t,next:null},t=Ve.updateQueue,t===null&&(t=mf(),Ve.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e),e}function Wp(e){var t=mn();return e={current:e},t.memoizedState=e}function si(e,t,r,o){var u=mn();Ve.flags|=e,u.memoizedState=ls(dr|t,{destroy:void 0},r,o===void 0?null:o)}function Cn(e,t,r,o){var u=st();o=o===void 0?null:o;var c=u.memoizedState.inst;ft!==null&&o!==null&&Vp(o,ft.memoizedState.deps)?u.memoizedState=ls(t,c,r,o):(Ve.flags|=e,u.memoizedState=ls(dr|t,c,r,o))}function bf(e,t){(Ve.mode&wr)!==ke?si(276826112,xn,e,t):si(8390656,xn,e,t)}function V5(e){Ve.flags|=4;var t=Ve.updateQueue;if(t===null)t=mf(),Ve.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function em(e){var t=mn(),r={impl:e};return t.memoizedState=r,function(){if((rt&Pt)!==Wt)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return r.impl.apply(void 0,arguments)}}function _f(e){var t=st().memoizedState;return V5({ref:t,nextImpl:e}),function(){if((rt&Pt)!==Wt)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function tm(e,t){var r=4194308;return(Ve.mode&wr)!==ke&&(r|=134217728),si(r,Zn,e,t)}function jE(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function nm(e,t,r){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),r=r!=null?r.concat([e]):null;var o=4194308;(Ve.mode&wr)!==ke&&(o|=134217728),si(o,Zn,jE.bind(null,t,e),r)}function Sf(e,t,r){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),r=r!=null?r.concat([e]):null,Cn(4,Zn,jE.bind(null,t,e),r)}function rm(e,t){return mn().memoizedState=[e,t===void 0?null:t],e}function xf(e,t){var r=st();t=t===void 0?null:t;var o=r.memoizedState;return t!==null&&Vp(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function am(e,t){var r=mn();t=t===void 0?null:t;var o=e();if(wi){we(!0);try{e()}finally{we(!1)}}return r.memoizedState=[o,t],o}function Ef(e,t){var r=st();t=t===void 0?null:t;var o=r.memoizedState;if(t!==null&&Vp(t,o[1]))return o[0];if(o=e(),wi){we(!0);try{e()}finally{we(!1)}}return r.memoizedState=[o,t],o}function om(e,t){var r=mn();return im(r,e,t)}function LE(e,t){var r=st();return kE(r,ft.memoizedState,e,t)}function HE(e,t){var r=st();return ft===null?im(r,e,t):kE(r,ft.memoizedState,e,t)}function im(e,t,r){return r===void 0||(La&1073741824)!==0&&(Pe&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=Vw(),Ve.lanes|=e,Mo|=e,r)}function kE(e,t,r,o){return bn(r,t)?r:Vs.current!==null?(e=im(e,r,o),bn(e,t)||(Ht=!0),e):(La&42)===0||(La&1073741824)!==0&&(Pe&261930)===0?(Ht=!0,e.memoizedState=r):(e=Vw(),Ve.lanes|=e,Mo|=e,t)}function wf(){le.asyncTransitions--}function VE(e,t,r,o,u){var c=it.p;it.p=c!==0&&c<oa?c:oa;var g=le.T,_={};_._updatedFibers=new Set,le.T=_,fm(e,!1,t,r);try{var R=u(),D=le.S;if(D!==null&&D(_,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){le.asyncTransitions++,R.then(wf,wf);var J=U5(R,o);Vl(e,t,J,In(e))}else Vl(e,t,o,In(e))}catch(K){Vl(e,t,{then:function(){},status:"rejected",reason:K},In(e))}finally{it.p=c,g!==null&&_.types!==null&&(g.types!==null&&g.types!==_.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),g.types=_.types),le.T=g,g===null&&_._updatedFibers&&(e=_._updatedFibers.size,_._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function sm(e,t,r,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var u=BE(e).queue;q5(e),VE(e,u,t,Ui,r===null?m:function(){return IE(e),r(o)})}function BE(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ui,baseState:Ui,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:Ui},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function IE(e){le.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=BE(e);t.next===null&&(t=e.alternate.memoizedState),Vl(e,t.next.queue,{},In(e))}function lm(){var e=Qp(!1);return e=VE.bind(null,Ve,e.queue,!0,!1),mn().memoizedState=e,[!1,e]}function GE(){var e=is(Sr)[0],t=st().memoizedState;return[typeof e=="boolean"?e:Hl(e),t]}function YE(){var e=kl(Sr)[0],t=st().memoizedState;return[typeof e=="boolean"?e:Hl(e),t]}function li(){return bt(Qu)}function um(){var e=mn(),t=dt.identifierPrefix;if(Je){var r=Ma,o=Oa;r=(o&~(1<<32-gn(o)-1)).toString(32)+r,t="_"+t+"R_"+r,r=Td++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=S6++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t}function cm(){return mn().memoizedState=B5.bind(null,Ve)}function B5(e,t){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var o=In(r),u=so(o),c=lo(r,u,o);c!==null&&(Br(o,"refresh()",e),Rt(c,r,o),Ul(c,r,o)),e=Cp(),t!=null&&c!==null&&console.error("The seed argument is not enabled outside experimental channels."),u.payload={cache:e};return}r=r.return}}function I5(e,t,r){var o=arguments;typeof o[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=In(e);var u={lane:o,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};Tf(e)?XE(t,u):(u=vp(e,t,u,o),u!==null&&(Br(o,"dispatch()",e),Rt(u,e,o),PE(u,t,o)))}function $E(e,t,r){var o=arguments;typeof o[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=In(e),Vl(e,t,r,o)&&Br(o,"setState()",e)}function Vl(e,t,r,o){var u={lane:o,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Tf(e))XE(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null)){var g=le.H;le.H=Rr;try{var _=t.lastRenderedState,R=c(_,r);if(u.hasEagerState=!0,u.eagerState=R,bn(R,_))return Fc(e,t,u,0),dt===null&&Qc(),!1}catch{}finally{le.H=g}}if(r=vp(e,t,u,o),r!==null)return Rt(r,e,o),PE(r,t,o),!0}return!1}function fm(e,t,r,o){if(le.T===null&&bi===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),o={lane:2,revertLane:Bm(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Tf(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=vp(e,r,o,2),t!==null&&(Br(2,"setOptimistic()",e),Rt(t,e,2))}function Tf(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function XE(e,t){Gs=wd=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function PE(e,t,r){if((r&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,ya(e,r)}}function dm(e){if(e!==null&&typeof e!="function"){var t=String(e);YA.has(t)||(YA.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function hm(e,t,r,o){var u=e.memoizedState,c=r(o,u);if(e.mode&dn){we(!0);try{c=r(o,u)}finally{we(!1)}}c===void 0&&(t=H(t)||"Component",VA.has(t)||(VA.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),u=c==null?u:Fe({},u,c),e.memoizedState=u,e.lanes===0&&(e.updateQueue.baseState=u)}function ZE(e,t,r,o,u,c,g){var _=e.stateNode;if(typeof _.shouldComponentUpdate=="function"){if(r=_.shouldComponentUpdate(o,c,g),e.mode&dn){we(!0);try{r=_.shouldComponentUpdate(o,c,g)}finally{we(!1)}}return r===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",H(t)||"Component"),r}return t.prototype&&t.prototype.isPureReactComponent?!Dl(r,o)||!Dl(u,c):!0}function QE(e,t,r,o){var u=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==u&&(e=G(e)||"Component",UA.has(e)||(UA.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),ly.enqueueReplaceState(t,t.state,null))}function ui(e,t){var r=t;if("ref"in t){r={};for(var o in t)o!=="ref"&&(r[o]=t[o])}if(e=e.defaultProps){r===t&&(r=Fe({},r));for(var u in e)r[u]===void 0&&(r[u]=e[u])}return r}function FE(e){kg(e),console.warn(`%s
121
+
122
+ %s
123
+ `,Ys?"An error occurred in the <"+Ys+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
124
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function JE(e){var t=Ys?"The above error occurred in the <"+Ys+"> component.":"The above error occurred in one of your React components.",r="React will try to recreate this component tree from scratch using the error boundary you provided, "+((uy||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var o=e.environmentName;e=[`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,e,t,r].slice(0),typeof e[0]=="string"?e.splice(0,1,RN+" "+e[0],AN,Fd+o+Fd,NN):e.splice(0,0,RN,AN,Fd+o+Fd,NN),e.unshift(console),o=I6.apply(console.error,e),o()}else console.error(`%o
130
+
131
+ %s
132
+
133
+ %s
134
+ `,e,t,r)}function KE(e){kg(e)}function Rf(e,t){try{Ys=t.source?G(t.source):null,uy=null;var r=t.value;if(le.actQueue!==null)le.thrownErrors.push(r);else{var o=e.onUncaughtError;o(r,{componentStack:t.stack})}}catch(u){setTimeout(function(){throw u})}}function WE(e,t,r){try{Ys=r.source?G(r.source):null,uy=G(t);var o=e.onCaughtError;o(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function pm(e,t,r){return r=so(r),r.tag=ny,r.payload={element:null},r.callback=function(){me(t.source,Rf,e,t)},r}function mm(e){return e=so(e),e.tag=ny,e}function gm(e,t,r,o){var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var c=o.value;e.payload=function(){return u(c)},e.callback=function(){Xx(r),me(o.source,WE,t,r,o)}}var g=r.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Xx(r),me(o.source,WE,t,r,o),typeof u!="function"&&(zo===null?zo=new Set([this]):zo.add(this)),y6(this,o),typeof u=="function"||(r.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",G(r)||"Unknown")})}function G5(e,t,r,o,u){if(r.flags|=32768,aa&&Zl(e,u),o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=r.alternate,t!==null&&as(t,r,u,!0),Je&&(sa=!0),r=Pn.current,r!==null){switch(r.tag){case 31:case 13:return fr===null?Uf():r.alternate===null&&xt===Ba&&(xt=Nd),r.flags&=-257,r.flags|=65536,r.lanes=u,o===Sd?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([o]):t.add(o),Lm(e,o,u)),!1;case 22:return r.flags|=65536,o===Sd?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([o]):r.add(o)),Lm(e,o,u)),!1}throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}return Lm(e,o,u),Uf(),!1}if(Je)return sa=!0,t=Pn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,o!==$g&&Cl(Hn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:o}),r))):(o!==$g&&Cl(Hn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:o}),r)),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=Hn(o,r),u=pm(e.stateNode,o,u),df(e,u),xt!==Co&&(xt=Ti)),!1;var c=Hn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:o}),r);if(Vu===null?Vu=[c]:Vu.push(c),xt!==Co&&(xt=Ti),t===null)return!0;o=Hn(o,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=u&-u,r.lanes|=e,e=pm(r.stateNode,o,e),df(r,e),!1;case 1:if(t=r.type,c=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(zo===null||!zo.has(c))))return r.flags|=65536,u&=-u,r.lanes|=u,u=mm(u),gm(u,e,r,o),df(r,u),!1}r=r.return}while(r!==null);return!1}function on(e,t,r,o){t.child=e===null?wA(t,null,r,o):Ei(t,e.child,r,o)}function ew(e,t,r,o,u){r=r.render;var c=t.ref;if("ref"in o){var g={};for(var _ in o)_!=="ref"&&(g[_]=o[_])}else g=o;return ai(t),o=Bp(e,t,r,g,c,u),_=Gp(),e!==null&&!Ht?(Yp(e,t,u),wa(e,t,u)):(Je&&_&&wp(t),t.flags|=1,on(e,t,o,u),t.child)}function tw(e,t,r,o,u){if(e===null){var c=r.type;return typeof c=="function"&&!_p(c)&&c.defaultProps===void 0&&r.compare===null?(r=ei(c),t.tag=15,t.type=r,vm(t,c),nw(e,t,r,o,u)):(e=Sp(r.type,null,o,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!wm(e,u)){var g=c.memoizedProps;if(r=r.compare,r=r!==null?r:Dl,r(g,o)&&e.ref===t.ref)return wa(e,t,u)}return t.flags|=1,e=_a(c,o),e.ref=t.ref,e.return=t,t.child=e}function nw(e,t,r,o,u){if(e!==null){var c=e.memoizedProps;if(Dl(c,o)&&e.ref===t.ref&&t.type===e.type)if(Ht=!1,t.pendingProps=o=c,wm(e,u))(e.flags&131072)!==0&&(Ht=!0);else return t.lanes=e.lanes,wa(e,t,u)}return ym(e,t,r,o,u)}function rw(e,t,r,o){var u=o.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:mu,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|r:r,e!==null){for(o=t.child=e.child,u=0;o!==null;)u=u|o.lanes|o.childLanes,o=o.sibling;o=u&~c}else o=0,t.child=null;return aw(e,t,c,r,o)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&of(t,c!==null?c.cachePool:null),c!==null?bE(t,c):Lp(t),_E(t);else return o=t.lanes=536870912,aw(e,t,c!==null?c.baseLanes|r:r,r,o)}else c!==null?(of(t,c.cachePool),bE(t,c),co(t),t.memoizedState=null):(e!==null&&of(t,null),Lp(t),co(t));return on(e,t,u,r),t.child}function Bl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:mu,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function aw(e,t,r,o,u){var c=qp();return c=c===null?null:{parent:Ut._currentValue,pool:c},t.memoizedState={baseLanes:r,cachePool:c},e!==null&&of(t,null),Lp(t),_E(t),e!==null&&as(e,t,o,!0),t.childLanes=u,null}function Af(e,t){var r=t.hidden;return r!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
135
+ - <Activity %s>
136
+ + <Activity %s>`,r===!0?"hidden":r===!1?"hidden={false}":"hidden={...}",r?'mode="hidden"':'mode="visible"'),t=Df({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ow(e,t,r){return Ei(t,e.child,null,r),e=Af(t,t.pendingProps),e.flags|=2,Bn(t),t.memoizedState=null,e}function Y5(e,t,r){var o=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Je){if(o.mode==="hidden")return e=Af(t,o),t.lanes=536870912,Bl(null,e);if(kp(t),(e=gt)?(r=CT(e,ur),r=r!==null&&r.data===Oi?r:null,r!==null&&(o={dehydrated:r,treeContext:Jx(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=Qx(r),o.return=t,t.child=o,un=t,gt=null)):r=null,r===null)throw Wc(t,e),ao(t);return t.lanes=536870912,null}return Af(t,o)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(kp(t),u)if(t.flags&256)t.flags&=-257,t=ow(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Wx(),(r&536870912)!==0&&zf(t),Ht||as(e,t,r,!1),u=(r&e.childLanes)!==0,Ht||u){if(o=dt,o!==null&&(g=er(o,r),g!==0&&g!==c.retryLane))throw c.retryLane=g,cn(e,g),Rt(o,e,g),cy;Uf(),t=ow(e,t,r)}else e=c.treeContext,gt=Gn(g.nextSibling),un=t,Je=!0,wo=null,sa=!1,Xn=null,ur=!1,e!==null&&Kx(t,e),t=Af(t,o),t.flags|=4096;return t}return c=e.child,o={mode:o.mode,children:o.children},(r&536870912)!==0&&(r&e.lanes)!==0&&zf(t),e=_a(c,o),e.ref=t.ref,t.child=e,e.return=t,e}function Nf(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==r)&&(t.flags|=4194816)}}function ym(e,t,r,o,u){if(r.prototype&&typeof r.prototype.render=="function"){var c=H(r)||"Unknown";$A[c]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",c,c),$A[c]=!0)}return t.mode&dn&&Tr.recordLegacyContextWarning(t,null),e===null&&(vm(t,t.type),r.contextTypes&&(c=H(r)||"Unknown",PA[c]||(PA[c]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",c)))),ai(t),r=Bp(e,t,r,o,void 0,u),o=Gp(),e!==null&&!Ht?(Yp(e,t,u),wa(e,t,u)):(Je&&o&&wp(t),t.flags|=1,on(e,t,r,u),t.child)}function iw(e,t,r,o,u,c){return ai(t),ka=-1,qu=e!==null&&e.type!==t.type,t.updateQueue=null,r=Ip(t,o,r,u),SE(e,t),o=Gp(),e!==null&&!Ht?(Yp(e,t,c),wa(e,t,c)):(Je&&o&&wp(t),t.flags|=1,on(e,t,r,c),t.child)}function sw(e,t,r,o,u){switch(d(t)){case!1:var c=t.stateNode,g=new t.type(t.memoizedProps,c.context).state;c.updater.enqueueSetState(c,g,null);break;case!0:t.flags|=128,t.flags|=65536,c=Error("Simulated error coming from DevTools");var _=u&-u;if(t.lanes|=_,g=dt,g===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");_=mm(_),gm(_,g,t,Hn(c,t)),df(t,_)}if(ai(t),t.stateNode===null){if(g=Eo,c=r.contextType,"contextType"in r&&c!==null&&(c===void 0||c.$$typeof!==ta)&&!GA.has(r)&&(GA.add(r),_=c===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof c!="object"?" However, it is set to a "+typeof c+".":c.$$typeof===fg?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(c).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",H(r)||"Component",_)),typeof c=="object"&&c!==null&&(g=bt(c)),c=new r(o,g),t.mode&dn){we(!0);try{c=new r(o,g)}finally{we(!1)}}if(g=t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ly,t.stateNode=c,c._reactInternals=t,c._reactInternalInstance=zA,typeof r.getDerivedStateFromProps=="function"&&g===null&&(g=H(r)||"Component",jA.has(g)||(jA.add(g),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",g,c.state===null?"null":"undefined",g))),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"){var R=_=g=null;if(typeof c.componentWillMount=="function"&&c.componentWillMount.__suppressDeprecationWarning!==!0?g="componentWillMount":typeof c.UNSAFE_componentWillMount=="function"&&(g="UNSAFE_componentWillMount"),typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps.__suppressDeprecationWarning!==!0?_="componentWillReceiveProps":typeof c.UNSAFE_componentWillReceiveProps=="function"&&(_="UNSAFE_componentWillReceiveProps"),typeof c.componentWillUpdate=="function"&&c.componentWillUpdate.__suppressDeprecationWarning!==!0?R="componentWillUpdate":typeof c.UNSAFE_componentWillUpdate=="function"&&(R="UNSAFE_componentWillUpdate"),g!==null||_!==null||R!==null){c=H(r)||"Component";var D=typeof r.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";HA.has(c)||(HA.add(c),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
137
+
138
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
139
+
140
+ The above lifecycles should be removed. Learn more about this warning here:
141
+ https://react.dev/link/unsafe-component-lifecycles`,c,D,g!==null?`
142
+ `+g:"",_!==null?`
143
+ `+_:"",R!==null?`
144
+ `+R:""))}}c=t.stateNode,g=H(r)||"Component",c.render||(r.prototype&&typeof r.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",g):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",g)),!c.getInitialState||c.getInitialState.isReactClassApproved||c.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",g),c.getDefaultProps&&!c.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",g),c.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",g),r.childContextTypes&&!IA.has(r)&&(IA.add(r),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",g)),r.contextTypes&&!BA.has(r)&&(BA.add(r),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",g)),typeof c.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",g),r.prototype&&r.prototype.isPureReactComponent&&typeof c.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",H(r)||"A pure component"),typeof c.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",g),typeof c.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",g),typeof c.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",g),typeof c.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",g),_=c.props!==o,c.props!==void 0&&_&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",g),c.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",g,g),typeof c.getSnapshotBeforeUpdate!="function"||typeof c.componentDidUpdate=="function"||LA.has(r)||(LA.add(r),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",H(r))),typeof c.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof c.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof r.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",g),(_=c.state)&&(typeof _!="object"||$t(_))&&console.error("%s.state: must be set to an object or null",g),typeof c.getChildContext=="function"&&typeof r.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",g),c=t.stateNode,c.props=o,c.state=t.memoizedState,c.refs={},Up(t),g=r.contextType,c.context=typeof g=="object"&&g!==null?bt(g):Eo,c.state===o&&(g=H(r)||"Component",kA.has(g)||(kA.add(g),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",g))),t.mode&dn&&Tr.recordLegacyContextWarning(t,c),Tr.recordUnsafeLifecycleWarnings(t,c),c.state=t.memoizedState,g=r.getDerivedStateFromProps,typeof g=="function"&&(hm(t,r,g,o),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",G(t)||"Component"),ly.enqueueReplaceState(c,c.state,null)),Ll(t,o,c,u),jl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&wr)!==ke&&(t.flags|=134217728),c=!0}else if(e===null){c=t.stateNode;var J=t.memoizedProps;_=ui(r,J),c.props=_;var K=c.context;R=r.contextType,g=Eo,typeof R=="object"&&R!==null&&(g=bt(R)),D=r.getDerivedStateFromProps,R=typeof D=="function"||typeof c.getSnapshotBeforeUpdate=="function",J=t.pendingProps!==J,R||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(J||K!==g)&&QE(t,c,o,g),Do=!1;var Y=t.memoizedState;c.state=Y,Ll(t,o,c,u),jl(),K=t.memoizedState,J||Y!==K||Do?(typeof D=="function"&&(hm(t,r,D,o),K=t.memoizedState),(_=Do||ZE(t,r,_,o,Y,K,g))?(R||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&wr)!==ke&&(t.flags|=134217728)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&wr)!==ke&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=K),c.props=o,c.state=K,c.context=g,c=_):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&wr)!==ke&&(t.flags|=134217728),c=!1)}else{c=t.stateNode,jp(e,t),g=t.memoizedProps,R=ui(r,g),c.props=R,D=t.pendingProps,Y=c.context,K=r.contextType,_=Eo,typeof K=="object"&&K!==null&&(_=bt(K)),J=r.getDerivedStateFromProps,(K=typeof J=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==D||Y!==_)&&QE(t,c,o,_),Do=!1,Y=t.memoizedState,c.state=Y,Ll(t,o,c,u),jl();var ie=t.memoizedState;g!==D||Y!==ie||Do||e!==null&&e.dependencies!==null&&tf(e.dependencies)?(typeof J=="function"&&(hm(t,r,J,o),ie=t.memoizedState),(R=Do||ZE(t,r,R,o,Y,ie,_)||e!==null&&e.dependencies!==null&&tf(e.dependencies))?(K||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(o,ie,_),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(o,ie,_)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=ie),c.props=o,c.state=ie,c.context=_,c=R):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),c=!1)}if(_=c,Nf(e,t),g=(t.flags&128)!==0,_||g){if(_=t.stateNode,qe(t),g&&typeof r.getDerivedStateFromError!="function")r=null,_n=-1;else if(r=cA(_),t.mode&dn){we(!0);try{cA(_)}finally{we(!1)}}t.flags|=1,e!==null&&g?(t.child=Ei(t,e.child,null,u),t.child=Ei(t,null,r,u)):on(e,t,r,u),t.memoizedState=_.state,e=t.child}else e=wa(e,t,u);return u=t.stateNode,c&&u.props!==o&&($s||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",G(t)||"a component"),$s=!0),e}function lw(e,t,r,o){return ri(),t.flags|=256,on(e,t,r,o),t.child}function vm(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
145
+ %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=H(t)||"Unknown",ZA[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),ZA[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=H(t)||"Unknown",XA[t]||(console.error("%s: Function components do not support contextType.",t),XA[t]=!0))}function bm(e){return{baseLanes:e,cachePool:iE()}}function _m(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Un),e}function uw(e,t,r){var o,u=t.pendingProps;f(t)&&(t.flags|=128);var c=!1,g=(t.flags&128)!==0;if((o=g)||(o=e!==null&&e.memoizedState===null?!1:(Ot.current&Ou)!==0),o&&(c=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Je){if(c?uo(t):co(t),(e=gt)?(r=CT(e,ur),r=r!==null&&r.data!==Oi?r:null,r!==null&&(o={dehydrated:r,treeContext:Jx(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=Qx(r),o.return=t,t.child=o,un=t,gt=null)):r=null,r===null)throw Wc(t,e),ao(t);return Wm(r)?t.lanes=32:t.lanes=536870912,null}var _=u.children;if(u=u.fallback,c){co(t);var R=t.mode;return _=Df({mode:"hidden",children:_},R),u=ti(u,R,r,null),_.return=t,u.return=t,_.sibling=u,t.child=_,u=t.child,u.memoizedState=bm(r),u.childLanes=_m(e,o,r),t.memoizedState=fy,Bl(null,u)}return uo(t),Sm(t,_)}var D=e.memoizedState;if(D!==null){var J=D.dehydrated;if(J!==null){if(g)t.flags&256?(uo(t),t.flags&=-257,t=xm(e,t,r)):t.memoizedState!==null?(co(t),t.child=e.child,t.flags|=128,t=null):(co(t),_=u.fallback,R=t.mode,u=Df({mode:"visible",children:u.children},R),_=ti(_,R,r,null),_.flags|=2,u.return=t,_.return=t,u.sibling=_,t.child=u,Ei(t,e.child,null,r),u=t.child,u.memoizedState=bm(r),u.childLanes=_m(e,o,r),t.memoizedState=fy,t=Bl(null,u));else if(uo(t),Wx(),(r&536870912)!==0&&zf(t),Wm(J)){if(o=J.nextSibling&&J.nextSibling.dataset,o){_=o.dgst;var K=o.msg;R=o.stck;var Y=o.cstck}c=K,o=_,u=R,J=Y,_=c,R=J,_=Error(_||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),_.stack=u||"",_.digest=o,o=R===void 0?null:R,u={value:_,source:null,stack:o},typeof o=="string"&&Yg.set(_,u),Cl(u),t=xm(e,t,r)}else if(Ht||as(e,t,r,!1),o=(r&e.childLanes)!==0,Ht||o){if(o=dt,o!==null&&(u=er(o,r),u!==0&&u!==D.retryLane))throw D.retryLane=u,cn(e,u),Rt(o,e,u),cy;Km(J)||Uf(),t=xm(e,t,r)}else Km(J)?(t.flags|=192,t.child=e.child,t=null):(e=D.treeContext,gt=Gn(J.nextSibling),un=t,Je=!0,wo=null,sa=!1,Xn=null,ur=!1,e!==null&&Kx(t,e),t=Sm(t,u.children),t.flags|=4096);return t}}return c?(co(t),_=u.fallback,R=t.mode,Y=e.child,J=Y.sibling,u=_a(Y,{mode:"hidden",children:u.children}),u.subtreeFlags=Y.subtreeFlags&65011712,J!==null?_=_a(J,_):(_=ti(_,R,r,null),_.flags|=2),_.return=t,u.return=t,u.sibling=_,t.child=u,Bl(null,u),u=t.child,_=e.child.memoizedState,_===null?_=bm(r):(R=_.cachePool,R!==null?(Y=Ut._currentValue,R=R.parent!==Y?{parent:Y,pool:Y}:R):R=iE(),_={baseLanes:_.baseLanes|r,cachePool:R}),u.memoizedState=_,u.childLanes=_m(e,o,r),t.memoizedState=fy,Bl(e.child,u)):(D!==null&&(r&62914560)===r&&(r&e.lanes)!==0&&zf(t),uo(t),r=e.child,e=r.sibling,r=_a(r,{mode:"visible",children:u.children}),r.return=t,r.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=r,t.memoizedState=null,r)}function Sm(e,t){return t=Df({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Df(e,t){return e=b(22,e,null,t),e.lanes=0,e}function xm(e,t,r){return Ei(t,e.child,null,r),e=Sm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cw(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Np(e.return,t,r)}function Em(e,t,r,o,u,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:u,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=o,g.tail=r,g.tailMode=u,g.treeForkCount=c)}function fw(e,t,r){var o=t.pendingProps,u=o.revealOrder,c=o.tail,g=o.children,_=Ot.current;if((o=(_&Ou)!==0)?(_=_&Bs|Ou,t.flags|=128):_&=Bs,ee(Ot,_,t),_=u??"null",u!=="forwards"&&u!=="unstable_legacy-backwards"&&u!=="together"&&u!=="independent"&&!QA[_])if(QA[_]=!0,u==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(u==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof u=="string")switch(u.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',u,u.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',u,u.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',u)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',u);_=c??"null",Ad[_]||(c==null?(u==="forwards"||u==="backwards"||u==="unstable_legacy-backwards")&&(Ad[_]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):c!=="visible"&&c!=="collapsed"&&c!=="hidden"?(Ad[_]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',c)):u!=="forwards"&&u!=="backwards"&&u!=="unstable_legacy-backwards"&&(Ad[_]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',c)));e:if((u==="forwards"||u==="backwards"||u==="unstable_legacy-backwards")&&g!==void 0&&g!==null&&g!==!1)if($t(g)){for(_=0;_<g.length;_++)if(!gE(g[_],_))break e}else if(_=U(g),typeof _=="function"){if(_=_.call(g))for(var R=_.next(),D=0;!R.done;R=_.next()){if(!gE(R.value,D))break e;D++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',u);if(on(e,t,g,r),Je?(ro(),g=gu):g=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cw(e,r,t);else if(e.tag===19)cw(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(r=t.child,u=null;r!==null;)e=r.alternate,e!==null&&hf(e)===null&&(u=r),r=r.sibling;r=u,r===null?(u=t.child,t.child=null):(u=r.sibling,r.sibling=null),Em(t,!1,u,r,c,g);break;case"backwards":case"unstable_legacy-backwards":for(r=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&hf(e)===null){t.child=u;break}e=u.sibling,u.sibling=r,r=u,u=e}Em(t,!0,r,null,c,g);break;case"together":Em(t,!1,null,null,void 0,g);break;default:t.memoizedState=null}return t.child}function wa(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),_n=-1,Mo|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(as(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,r=_a(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=_a(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function wm(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&tf(e)))}function $5(e,t,r){switch(t.tag){case 3:Q(t,t.stateNode.containerInfo),oo(t,Ut,e.memoizedState.cache),ri();break;case 27:case 5:Z(t);break;case 4:Q(t,t.stateNode.containerInfo);break;case 10:oo(t,t.type,t.memoizedProps.value);break;case 12:(r&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,kp(t),null;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(uo(t),t.flags|=128,null):(r&t.child.childLanes)!==0?uw(e,t,r):(uo(t),e=wa(e,t,r),e!==null?e.sibling:null);uo(t);break;case 19:var u=(e.flags&128)!==0;if(o=(r&t.childLanes)!==0,o||(as(e,t,r,!1),o=(r&t.childLanes)!==0),u){if(o)return fw(e,t,r);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ee(Ot,Ot.current,t),o)break;return null;case 22:return t.lanes=0,rw(e,t,r,t.pendingProps);case 24:oo(t,Ut,e.memoizedState.cache)}return wa(e,t,r)}function Tm(e,t,r){if(t._debugNeedsRemount&&e!==null){r=Sp(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),r._debugStack=t._debugStack,r._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,r.index=t.index,r.sibling=t.sibling,r.return=t.return,r.ref=t.ref,r._debugInfo=t._debugInfo,t===o.child)o.child=r;else{var u=o.child;if(u===null)throw Error("Expected parent to have a child.");for(;u.sibling!==t;)if(u=u.sibling,u===null)throw Error("Expected to find the previous sibling.");u.sibling=r}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),r.flags|=2,r}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Ht=!0;else{if(!wm(e,r)&&(t.flags&128)===0)return Ht=!1,$5(e,t,r);Ht=(e.flags&131072)!==0}else Ht=!1,(o=Je)&&(ro(),o=(t.flags&1048576)!==0),o&&(o=t.index,ro(),Fx(t,gu,o));switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=io(t.elementType),t.type=e,typeof e=="function")_p(e)?(o=ui(e,o),t.tag=1,t.type=e=ei(e),t=sw(null,t,e,o,r)):(t.tag=0,vm(t,e),t.type=e=ei(e),t=ym(null,t,e,o,r));else{if(e!=null){if(u=e.$$typeof,u===ru){t.tag=11,t.type=e=bp(e),t=ew(null,t,e,o,r);break e}else if(u===Qf){t.tag=14,t=tw(null,t,e,o,r);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===Yn&&(t=" Did you wrap a component in React.lazy() more than once?"),r=H(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+r+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return ym(e,t,t.type,t.pendingProps,r);case 1:return o=t.type,u=ui(o,t.pendingProps),sw(e,t,o,u,r);case 3:e:{if(Q(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var c=t.memoizedState;u=c.element,jp(e,t),Ll(t,o,null,r);var g=t.memoizedState;if(o=g.cache,oo(t,Ut,o),o!==c.cache&&Dp(t,[Ut],r,!0),jl(),o=g.element,c.isDehydrated)if(c={element:o,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=lw(e,t,o,r);break e}else if(o!==u){u=Hn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Cl(u),t=lw(e,t,o,r);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,gt=Gn(e.firstChild),un=t,Je=!0,wo=null,sa=!1,Xn=null,ur=!0,r=wA(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ri(),o===u){t=wa(e,t,r);break e}on(e,t,o,r)}t=t.child}return t;case 26:return Nf(e,t),e===null?(r=jT(t.type,null,t.pendingProps,null))?t.memoizedState=r:Je||(r=t.type,e=t.pendingProps,o=j(yo.current),o=kf(o).createElement(r),o[ln]=t,o[yn]=e,sn(o,r,e),Me(o),t.stateNode=o):t.memoizedState=jT(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Z(t),e===null&&Je&&(o=j(yo.current),u=F(),o=t.stateNode=zT(t.type,t.pendingProps,o,u,!1),sa||(u=xT(o,t.type,t.pendingProps,u),u!==null&&(ni(t,0).serverProps=u)),un=t,ur=!0,u=gt,mo(t.type)?(zy=u,gt=Gn(o.firstChild)):gt=u),on(e,t,t.pendingProps.children,r),Nf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Je&&(c=F(),o=Fo(t.type,c.ancestorInfo),u=gt,(g=!u)||(g=q4(u,t.type,t.pendingProps,ur),g!==null?(t.stateNode=g,sa||(c=xT(g,t.type,t.pendingProps,c),c!==null&&(ni(t,0).serverProps=c)),un=t,gt=Gn(g.firstChild),ur=!1,c=!0):c=!1,g=!c),g&&(o&&Wc(t,u),ao(t))),Z(t),u=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,o=c.children,Fm(u,c)?o=null:g!==null&&Fm(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=Bp(e,t,L5,null,null,r),Qu._currentValue=u),Nf(e,t),on(e,t,o,r),t.child;case 6:return e===null&&Je&&(r=t.pendingProps,e=F(),o=e.ancestorInfo.current,r=o!=null?ns(r,o.tag,e.ancestorInfo.implicitRootScope):!0,e=gt,(o=!e)||(o=z4(e,t.pendingProps,ur),o!==null?(t.stateNode=o,un=t,gt=null,o=!0):o=!1,o=!o),o&&(r&&Wc(t,e),ao(t))),null;case 13:return uw(e,t,r);case 4:return Q(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ei(t,null,o,r):on(e,t,o,r),t.child;case 11:return ew(e,t,t.type,t.pendingProps,r);case 7:return on(e,t,t.pendingProps,r),t.child;case 8:return on(e,t,t.pendingProps.children,r),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,on(e,t,t.pendingProps.children,r),t.child;case 10:return o=t.type,u=t.pendingProps,c=u.value,"value"in u||FA||(FA=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),oo(t,o,c),on(e,t,u.children,r),t.child;case 9:return u=t.type._context,o=t.pendingProps.children,typeof o!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),ai(t),u=bt(u),o=Kg(o,u,void 0),t.flags|=1,on(e,t,o,r),t.child;case 14:return tw(e,t,t.type,t.pendingProps,r);case 15:return nw(e,t,t.type,t.pendingProps,r);case 19:return fw(e,t,r);case 31:return Y5(e,t,r);case 22:return rw(e,t,r,t.pendingProps);case 24:return ai(t),o=bt(Ut),e===null?(u=qp(),u===null&&(u=dt,c=Cp(),u.pooledCache=c,oi(c),c!==null&&(u.pooledCacheLanes|=r),u=c),t.memoizedState={parent:o,cache:u},Up(t),oo(t,Ut,u)):((e.lanes&r)!==0&&(jp(e,t),Ll(t,null,null,r),jl()),u=e.memoizedState,c=t.memoizedState,u.parent!==o?(u={parent:o,cache:o},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),oo(t,Ut,o)):(o=c.cache,oo(t,Ut,o),o!==u.cache&&Dp(t,[Ut],r,!0))),on(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ta(e){e.flags|=4}function Rm(e,t,r,o,u){if((t=(e.mode&d6)!==ke)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Yw())e.flags|=8192;else throw xi=Sd,ey}else e.flags&=-16777217}function dw(e,t){if(t.type!=="stylesheet"||(t.state.loading&pr)!==zi)e.flags&=-16777217;else if(e.flags|=16777216,!BT(t))if(Yw())e.flags|=8192;else throw xi=Sd,ey}function Cf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Tn():536870912,e.lanes|=t,Ni|=t)}function Il(e,t){if(!Je)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)if((e.mode&$e)!==ke){for(var u=e.selfBaseDuration,c=e.child;c!==null;)r|=c.lanes|c.childLanes,o|=c.subtreeFlags&65011712,o|=c.flags&65011712,u+=c.treeBaseDuration,c=c.sibling;e.treeBaseDuration=u}else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else if((e.mode&$e)!==ke){u=e.actualDuration,c=e.selfBaseDuration;for(var g=e.child;g!==null;)r|=g.lanes|g.childLanes,o|=g.subtreeFlags,o|=g.flags,u+=g.actualDuration,c+=g.treeBaseDuration,g=g.sibling;e.actualDuration=u,e.treeBaseDuration=c}else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function X5(e,t,r){var o=t.pendingProps;switch(Tp(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return ht(t),null;case 3:return r=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),xa(Ut,t),L(t),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(rs(t)?(Ap(),Ta(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rp())),ht(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(Ta(t),c!==null?(ht(t),dw(t,c)):(ht(t),Rm(t,u,null,o,r))):c?c!==e.memoizedState?(Ta(t),ht(t),dw(t,c)):(ht(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Ta(t),ht(t),Rm(t,u,e,o,r)),null;case 27:if(ne(t),r=j(yo.current),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Ta(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ht(t),null}e=F(),rs(t)?eE(t):(e=zT(u,o,r,e,!0),t.stateNode=e,Ta(t))}return ht(t),null;case 5:if(ne(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Ta(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ht(t),null}var g=F();if(rs(t))eE(t);else{switch(c=j(yo.current),Fo(u,g.ancestorInfo),g=g.context,c=kf(c),g){case Ws:c=c.createElementNS(Es,u);break;case Pd:c=c.createElementNS(nd,u);break;default:switch(u){case"svg":c=c.createElementNS(Es,u);break;case"math":c=c.createElementNS(nd,u);break;case"script":c=c.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof o.is=="string"?c.createElement("select",{is:o.is}):c.createElement("select"),o.multiple?c.multiple=!0:o.size&&(c.size=o.size);break;default:c=typeof o.is=="string"?c.createElement(u,{is:o.is}):c.createElement(u),u.indexOf("-")===-1&&(u!==u.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",u),Object.prototype.toString.call(c)!=="[object HTMLUnknownElement]"||Er.call(_N,u)||(_N[u]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",u)))}}c[ln]=t,c[yn]=o;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=c;e:switch(sn(c,u,o),u){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Ta(t)}}return ht(t),Rm(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Ta(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=j(yo.current),r=F(),rs(t)){if(e=t.stateNode,r=t.memoizedProps,u=!sa,o=null,c=un,c!==null)switch(c.tag){case 3:u&&(u=MT(e,r,o),u!==null&&(ni(t,0).serverProps=u));break;case 27:case 5:o=c.memoizedProps,u&&(u=MT(e,r,o),u!==null&&(ni(t,0).serverProps=u))}e[ln]=t,e=!!(e.nodeValue===r||o!==null&&o.suppressHydrationWarning===!0||yT(e.nodeValue,r)),e||ao(t,!0)}else u=r.ancestorInfo.current,u!=null&&ns(o,u.tag,r.ancestorInfo.implicitRootScope),e=kf(e).createTextNode(o),e[ln]=t,t.stateNode=e}return ht(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(o=rs(t),r!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[ln]=t,ht(t),(t.mode&$e)!==ke&&r!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Ap(),ri(),(t.flags&128)===0&&(r=t.memoizedState=null),t.flags|=4,ht(t),(t.mode&$e)!==ke&&r!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else r=Rp(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Bn(t),t):(Bn(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return ht(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=o,c=rs(t),u!==null&&u.dehydrated!==null){if(e===null){if(!c)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");c[ln]=t,ht(t),(t.mode&$e)!==ke&&u!==null&&(u=t.child,u!==null&&(t.treeBaseDuration-=u.treeBaseDuration))}else Ap(),ri(),(t.flags&128)===0&&(u=t.memoizedState=null),t.flags|=4,ht(t),(t.mode&$e)!==ke&&u!==null&&(u=t.child,u!==null&&(t.treeBaseDuration-=u.treeBaseDuration));u=!1}else u=Rp(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Bn(t),t):(Bn(t),null)}return Bn(t),(t.flags&128)!==0?(t.lanes=r,(t.mode&$e)!==ke&&ql(t),t):(r=o!==null,e=e!==null&&e.memoizedState!==null,r&&(o=t.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool),c=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),c!==u&&(o.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),Cf(t,t.updateQueue),ht(t),(t.mode&$e)!==ke&&r&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return L(t),e===null&&Gm(t.stateNode.containerInfo),ht(t),null;case 10:return xa(t.type,t),ht(t),null;case 19:if(X(Ot,t),o=t.memoizedState,o===null)return ht(t),null;if(u=(t.flags&128)!==0,c=o.rendering,c===null)if(u)Il(o,!1);else{if(xt!==Ba||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=hf(e),c!==null){for(t.flags|=128,Il(o,!1),e=c.updateQueue,t.updateQueue=e,Cf(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)Zx(r,e),r=r.sibling;return ee(Ot,Ot.current&Bs|Ou,t),Je&&Sa(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ft()>zd&&(t.flags|=128,u=!0,Il(o,!1),t.lanes=4194304)}else{if(!u)if(e=hf(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Cf(t,e),Il(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!Je)return ht(t),null}else 2*Ft()-o.renderingStartTime>zd&&r!==536870912&&(t.flags|=128,u=!0,Il(o,!1),t.lanes=4194304);o.isBackwards?(c.sibling=t.child,t.child=c):(e=o.last,e!==null?e.sibling=c:t.child=c,o.last=c)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ft(),e.sibling=null,r=Ot.current,r=u?r&Bs|Ou:r&Bs,ee(Ot,r,t),Je&&Sa(t,o.treeForkCount),e):(ht(t),null);case 22:case 23:return Bn(t),Hp(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(r&536870912)!==0&&(t.flags&128)===0&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),r=t.updateQueue,r!==null&&Cf(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==r&&(t.flags|=2048),e!==null&&X(_i,t),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),xa(Ut,t),ht(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function P5(e,t){switch(Tp(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&$e)!==ke&&ql(t),t):null;case 3:return xa(Ut,t),L(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ne(t),null;case 31:if(t.memoizedState!==null){if(Bn(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&$e)!==ke&&ql(t),t):null;case 13:if(Bn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&$e)!==ke&&ql(t),t):null;case 19:return X(Ot,t),null;case 4:return L(t),null;case 10:return xa(t.type,t),null;case 22:case 23:return Bn(t),Hp(t),e!==null&&X(_i,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&$e)!==ke&&ql(t),t):null;case 24:return xa(Ut,t),null;case 25:return null;default:return null}}function hw(e,t){switch(Tp(t),t.tag){case 3:xa(Ut,t),L(t);break;case 26:case 27:case 5:ne(t);break;case 4:L(t);break;case 31:t.memoizedState!==null&&Bn(t);break;case 13:Bn(t);break;case 19:X(Ot,t);break;case 10:xa(t.type,t);break;case 22:case 23:Bn(t),Hp(t),e!==null&&X(_i,t);break;case 24:xa(Ut,t)}}function Zr(e){return(e.mode&$e)!==ke}function pw(e,t){Zr(e)?(Pr(),Gl(t,e),Xr()):Gl(t,e)}function Am(e,t,r){Zr(e)?(Pr(),us(r,e,t),Xr()):us(r,e,t)}function Gl(e,t){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var u=o.next;r=u;do{if((r.tag&e)===e&&(o=void 0,(e&Sn)!==Ed&&(Fs=!0),o=me(t,v6,r),(e&Sn)!==Ed&&(Fs=!1),o!==void 0&&typeof o!="function")){var c=void 0;c=(r.tag&Zn)!==0?"useLayoutEffect":(r.tag&Sn)!==0?"useInsertionEffect":"useEffect";var g=void 0;g=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then=="function"?`
146
+
147
+ It looks like you wrote `+c+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
148
+
149
+ `+c+`(() => {
150
+ async function fetchData() {
151
+ // You can await here
152
+ const response = await MyAPI.getData(someId);
153
+ // ...
154
+ }
155
+ fetchData();
156
+ }, [someId]); // Or [] if effect doesn't need props or state
157
+
158
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,me(t,function(_,R){console.error("%s must not return anything besides a function, which is used for clean-up.%s",_,R)},c,g)}r=r.next}while(r!==u)}}catch(_){ot(t,t.return,_)}}function us(e,t,r){try{var o=t.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var c=u.next;o=c;do{if((o.tag&e)===e){var g=o.inst,_=g.destroy;_!==void 0&&(g.destroy=void 0,(e&Sn)!==Ed&&(Fs=!0),u=t,me(u,b6,u,r,_),(e&Sn)!==Ed&&(Fs=!1))}o=o.next}while(o!==c)}}catch(R){ot(t,t.return,R)}}function mw(e,t){Zr(e)?(Pr(),Gl(t,e),Xr()):Gl(t,e)}function Nm(e,t,r){Zr(e)?(Pr(),us(r,e,t),Xr()):us(r,e,t)}function gw(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||$s||(r.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(e)||"instance"),r.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(e)||"instance"));try{me(e,vE,t,r)}catch(o){ot(e,e.return,o)}}}function Z5(e,t,r){return e.getSnapshotBeforeUpdate(t,r)}function Q5(e,t){var r=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||$s||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(e)||"instance"));try{var u=ui(e.type,r),c=me(e,Z5,t,u,o);r=JA,c!==void 0||r.has(e.type)||(r.add(e.type),me(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",G(e))})),t.__reactInternalSnapshotBeforeUpdate=c}catch(g){ot(e,e.return,g)}}function yw(e,t,r){r.props=ui(e.type,e.memoizedProps),r.state=e.memoizedState,Zr(e)?(Pr(),me(e,gA,e,t,r),Xr()):me(e,gA,e,t,r)}function F5(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}if(typeof t=="function")if(Zr(e))try{Pr(),e.refCleanup=t(r)}finally{Xr()}else e.refCleanup=t(r);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",G(e)),t.current=r}}function Yl(e,t){try{me(e,F5,e)}catch(r){ot(e,t,r)}}function Qr(e,t){var r=e.ref,o=e.refCleanup;if(r!==null)if(typeof o=="function")try{if(Zr(e))try{Pr(),me(e,o)}finally{Xr(e)}else me(e,o)}catch(u){ot(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{if(Zr(e))try{Pr(),me(e,r,null)}finally{Xr(e)}else me(e,r,null)}catch(u){ot(e,t,u)}else r.current=null}function vw(e,t,r,o){var u=e.memoizedProps,c=u.id,g=u.onCommit;u=u.onRender,t=t===null?"mount":"update",yd&&(t="nested-update"),typeof u=="function"&&u(c,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,r),typeof g=="function"&&g(c,t,o,r)}function J5(e,t,r,o){var u=e.memoizedProps;e=u.id,u=u.onPostCommit,t=t===null?"mount":"update",yd&&(t="nested-update"),typeof u=="function"&&u(e,t,o,r)}function bw(e){var t=e.type,r=e.memoizedProps,o=e.stateNode;try{me(e,S4,o,t,r,e)}catch(u){ot(e,e.return,u)}}function Dm(e,t,r){try{me(e,E4,e.stateNode,e.type,r,t,e)}catch(o){ot(e,e.return,o)}}function _w(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&mo(e.type)||e.tag===4}function Cm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_w(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&mo(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Om(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(AT(r),(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t)):(AT(r),t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ba));else if(o!==4&&(o===27&&mo(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Om(e,t,r),e=e.sibling;e!==null;)Om(e,t,r),e=e.sibling}function Of(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(o===27&&mo(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Of(e,t,r),e=e.sibling;e!==null;)Of(e,t,r),e=e.sibling}function K5(e){for(var t,r=e.return;r!==null;){if(_w(r)){t=r;break}r=r.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,r=Cm(e),Of(e,r,t);break;case 5:r=t.stateNode,t.flags&32&&(RT(r),t.flags&=-33),t=Cm(e),Of(e,t,r);break;case 3:case 4:t=t.stateNode.containerInfo,r=Cm(e),Om(e,r,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Sw(e){var t=e.stateNode,r=e.memoizedProps;try{me(e,k4,e.type,r,t,e)}catch(o){ot(e,e.return,o)}}function xw(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function W5(e,t){if(e=e.containerInfo,Oy=Jd,e=Hx(e),hp(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var u=o.anchorOffset,c=o.focusNode;o=o.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var g=0,_=-1,R=-1,D=0,J=0,K=e,Y=null;t:for(;;){for(var ie;K!==r||u!==0&&K.nodeType!==3||(_=g+u),K!==c||o!==0&&K.nodeType!==3||(R=g+o),K.nodeType===3&&(g+=K.nodeValue.length),(ie=K.firstChild)!==null;)Y=K,K=ie;for(;;){if(K===e)break t;if(Y===r&&++D===u&&(_=g),Y===c&&++J===o&&(R=g),(ie=K.nextSibling)!==null)break;K=Y,Y=K.parentNode}K=ie}r=_===-1||R===-1?null:{start:_,end:R}}else r=null}r=r||{start:0,end:0}}else r=null;for(My={focusedElem:e,selectionRange:r},Jd=!1,Kt=t;Kt!==null;)if(t=Kt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Kt=e;else for(;Kt!==null;){switch(e=t=Kt,r=e.alternate,u=e.flags,e.tag){case 0:if((u&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)u=e[r],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:(u&1024)!==0&&r!==null&&Q5(e,r);break;case 3:if((u&1024)!==0){if(e=e.stateNode.containerInfo,r=e.nodeType,r===9)Jm(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Jm(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Kt=e;break}Kt=t.return}}function Ew(e,t,r){var o=kn(),u=Ir(),c=Yr(),g=$r(),_=r.flags;switch(r.tag){case 0:case 11:case 15:Fr(e,r),_&4&&pw(r,Zn|dr);break;case 1:if(Fr(e,r),_&4)if(e=r.stateNode,t===null)r.type.defaultProps||"ref"in r.memoizedProps||$s||(e.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(r)||"instance"),e.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(r)||"instance")),Zr(r)?(Pr(),me(r,Wg,r,e),Xr()):me(r,Wg,r,e);else{var R=ui(r.type,t.memoizedProps);t=t.memoizedState,r.type.defaultProps||"ref"in r.memoizedProps||$s||(e.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(r)||"instance"),e.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(r)||"instance")),Zr(r)?(Pr(),me(r,hA,r,e,R,t,e.__reactInternalSnapshotBeforeUpdate),Xr()):me(r,hA,r,e,R,t,e.__reactInternalSnapshotBeforeUpdate)}_&64&&gw(r),_&512&&Yl(r,r.return);break;case 3:if(t=Ea(),Fr(e,r),_&64&&(_=r.updateQueue,_!==null)){if(R=null,r.child!==null)switch(r.child.tag){case 27:case 5:R=r.child.stateNode;break;case 1:R=r.child.stateNode}try{me(r,vE,_,R)}catch(J){ot(r,r.return,J)}}e.effectDuration+=rf(t);break;case 27:t===null&&_&4&&Sw(r);case 26:case 5:if(Fr(e,r),t===null){if(_&4)bw(r);else if(_&64){e=r.type,t=r.memoizedProps,R=r.stateNode;try{me(r,x4,R,e,t,r)}catch(J){ot(r,r.return,J)}}}_&512&&Yl(r,r.return);break;case 12:if(_&4){_=Ea(),Fr(e,r),e=r.stateNode,e.effectDuration+=Ml(_);try{me(r,vw,r,t,To,e.effectDuration)}catch(J){ot(r,r.return,J)}}else Fr(e,r);break;case 31:Fr(e,r),_&4&&Rw(e,r);break;case 13:Fr(e,r),_&4&&Aw(e,r),_&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(_=l4.bind(null,r),U4(e,_))));break;case 22:if(_=r.memoizedState!==null||Va,!_){t=t!==null&&t.memoizedState!==null||kt,R=Va;var D=kt;Va=_,(kt=t)&&!D?(Jr(e,r,(r.subtreeFlags&8772)!==0),(r.mode&$e)!==ke&&0<=Ue&&0<=He&&.05<He-Ue&&Pc(r,Ue,He)):Fr(e,r),Va=R,kt=D}break;case 30:break;default:Fr(e,r)}(r.mode&$e)!==ke&&0<=Ue&&0<=He&&((At||.05<St)&&Vr(r,Ue,He,St,_t),r.alternate===null&&r.return!==null&&r.return.alternate!==null&&.05<He-Ue&&(xw(r.return.alternate,r.return)||kr(r,Ue,He,"Mount"))),Vn(o),Gr(u),_t=c,At=g}function ww(e){var t=e.alternate;t!==null&&(e.alternate=null,ww(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&te(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ra(e,t,r){for(r=r.child;r!==null;)Tw(e,t,r),r=r.sibling}function Tw(e,t,r){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(Ss,r)}catch(D){ra||(ra=!0,console.error("React instrumentation encountered an error: %o",D))}var o=kn(),u=Ir(),c=Yr(),g=$r();switch(r.tag){case 26:kt||Qr(r,t),Ra(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(e=r.stateNode,e.parentNode.removeChild(e));break;case 27:kt||Qr(r,t);var _=Vt,R=qn;mo(r.type)&&(Vt=r.stateNode,qn=!1),Ra(e,t,r),me(r,Wl,r.stateNode),Vt=_,qn=R;break;case 5:kt||Qr(r,t);case 6:if(_=Vt,R=qn,Vt=null,Ra(e,t,r),Vt=_,qn=R,Vt!==null)if(qn)try{me(r,R4,Vt,r.stateNode)}catch(D){ot(r,t,D)}else try{me(r,T4,Vt,r.stateNode)}catch(D){ot(r,t,D)}break;case 18:Vt!==null&&(qn?(e=Vt,NT(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),ys(e)):NT(Vt,r.stateNode));break;case 4:_=Vt,R=qn,Vt=r.stateNode.containerInfo,qn=!0,Ra(e,t,r),Vt=_,qn=R;break;case 0:case 11:case 14:case 15:us(Sn,r,t),kt||Am(r,t,Zn),Ra(e,t,r);break;case 1:kt||(Qr(r,t),_=r.stateNode,typeof _.componentWillUnmount=="function"&&yw(r,t,_)),Ra(e,t,r);break;case 21:Ra(e,t,r);break;case 22:kt=(_=kt)||r.memoizedState!==null,Ra(e,t,r),kt=_;break;default:Ra(e,t,r)}(r.mode&$e)!==ke&&0<=Ue&&0<=He&&(At||.05<St)&&Vr(r,Ue,He,St,_t),Vn(o),Gr(u),_t=c,At=g}function Rw(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{me(t,L4,e)}catch(r){ot(t,t.return,r)}}}function Aw(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{me(t,H4,e)}catch(r){ot(t,t.return,r)}}function e4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new KA),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new KA),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Mf(e,t){var r=e4(e);t.forEach(function(o){if(!r.has(o)){if(r.add(o),aa)if(Xs!==null&&Ps!==null)Zl(Ps,Xs);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var u=u4.bind(null,e,o);o.then(u,u)}})}function On(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var u=e,c=t,g=r[o],_=kn(),R=c;e:for(;R!==null;){switch(R.tag){case 27:if(mo(R.type)){Vt=R.stateNode,qn=!1;break e}break;case 5:Vt=R.stateNode,qn=!1;break e;case 3:case 4:Vt=R.stateNode.containerInfo,qn=!0;break e}R=R.return}if(Vt===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Tw(u,c,g),Vt=null,qn=!1,(g.mode&$e)!==ke&&0<=Ue&&0<=He&&.05<He-Ue&&kr(g,Ue,He,"Unmount"),Vn(_),u=g,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Nw(t,e),t=t.sibling}function Nw(e,t){var r=kn(),o=Ir(),u=Yr(),c=$r(),g=e.alternate,_=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:On(t,e),Mn(e),_&4&&(us(Sn|dr,e,e.return),Gl(Sn|dr,e),Am(e,e.return,Zn|dr));break;case 1:if(On(t,e),Mn(e),_&512&&(kt||g===null||Qr(g,g.return)),_&64&&Va&&(_=e.updateQueue,_!==null&&(g=_.callbacks,g!==null))){var R=_.shared.hiddenCallbacks;_.shared.hiddenCallbacks=R===null?g:R.concat(g)}break;case 26:if(R=Ar,On(t,e),Mn(e),_&512&&(kt||g===null||Qr(g,g.return)),_&4){var D=g!==null?g.memoizedState:null;if(_=e.memoizedState,g===null)if(_===null)if(e.stateNode===null){e:{_=e.type,g=e.memoizedProps,R=R.ownerDocument||R;t:switch(_){case"title":D=R.getElementsByTagName("title")[0],(!D||D[iu]||D[ln]||D.namespaceURI===Es||D.hasAttribute("itemprop"))&&(D=R.createElement(_),R.head.insertBefore(D,R.querySelector("head > title"))),sn(D,_,g),D[ln]=e,Me(D),_=D;break e;case"link":var J=kT("link","href",R).get(_+(g.href||""));if(J){for(var K=0;K<J.length;K++)if(D=J[K],D.getAttribute("href")===(g.href==null||g.href===""?null:g.href)&&D.getAttribute("rel")===(g.rel==null?null:g.rel)&&D.getAttribute("title")===(g.title==null?null:g.title)&&D.getAttribute("crossorigin")===(g.crossOrigin==null?null:g.crossOrigin)){J.splice(K,1);break t}}D=R.createElement(_),sn(D,_,g),R.head.appendChild(D);break;case"meta":if(J=kT("meta","content",R).get(_+(g.content||""))){for(K=0;K<J.length;K++)if(D=J[K],De(g.content,"content"),D.getAttribute("content")===(g.content==null?null:""+g.content)&&D.getAttribute("name")===(g.name==null?null:g.name)&&D.getAttribute("property")===(g.property==null?null:g.property)&&D.getAttribute("http-equiv")===(g.httpEquiv==null?null:g.httpEquiv)&&D.getAttribute("charset")===(g.charSet==null?null:g.charSet)){J.splice(K,1);break t}}D=R.createElement(_),sn(D,_,g),R.head.appendChild(D);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+_+'". This is a bug in React.')}D[ln]=e,Me(D),_=D}e.stateNode=_}else VT(R,e.type,e.stateNode);else e.stateNode=HT(R,_,e.memoizedProps);else D!==_?(D===null?g.stateNode!==null&&(g=g.stateNode,g.parentNode.removeChild(g)):D.count--,_===null?VT(R,e.type,e.stateNode):HT(R,_,e.memoizedProps)):_===null&&e.stateNode!==null&&Dm(e,e.memoizedProps,g.memoizedProps)}break;case 27:On(t,e),Mn(e),_&512&&(kt||g===null||Qr(g,g.return)),g!==null&&_&4&&Dm(e,e.memoizedProps,g.memoizedProps);break;case 5:if(On(t,e),Mn(e),_&512&&(kt||g===null||Qr(g,g.return)),e.flags&32){R=e.stateNode;try{me(e,RT,R)}catch(Ee){ot(e,e.return,Ee)}}_&4&&e.stateNode!=null&&(R=e.memoizedProps,Dm(e,R,g!==null?g.memoizedProps:R)),_&1024&&(dy=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(On(t,e),Mn(e),_&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");_=e.memoizedProps,g=g!==null?g.memoizedProps:_,R=e.stateNode;try{me(e,w4,R,g,_)}catch(Ee){ot(e,e.return,Ee)}}break;case 3:if(R=Ea(),Zd=null,D=Ar,Ar=Vf(t.containerInfo),On(t,e),Ar=D,Mn(e),_&4&&g!==null&&g.memoizedState.isDehydrated)try{me(e,j4,t.containerInfo)}catch(Ee){ot(e,e.return,Ee)}dy&&(dy=!1,Dw(e)),t.effectDuration+=rf(R);break;case 4:_=Ar,Ar=Vf(e.stateNode.containerInfo),On(t,e),Mn(e),Ar=_;break;case 12:_=Ea(),On(t,e),Mn(e),e.stateNode.effectDuration+=Ml(_);break;case 31:On(t,e),Mn(e),_&4&&(_=e.updateQueue,_!==null&&(e.updateQueue=null,Mf(e,_)));break;case 13:On(t,e),Mn(e),e.child.flags&8192&&e.memoizedState!==null!=(g!==null&&g.memoizedState!==null)&&(qd=Ft()),_&4&&(_=e.updateQueue,_!==null&&(e.updateQueue=null,Mf(e,_)));break;case 22:R=e.memoizedState!==null;var Y=g!==null&&g.memoizedState!==null,ie=Va,Se=kt;if(Va=ie||R,kt=Se||Y,On(t,e),kt=Se,Va=ie,Y&&!R&&!ie&&!Se&&(e.mode&$e)!==ke&&0<=Ue&&0<=He&&.05<He-Ue&&Pc(e,Ue,He),Mn(e),_&8192)e:for(t=e.stateNode,t._visibility=R?t._visibility&~mu:t._visibility|mu,!R||g===null||Y||Va||kt||(ci(e),(e.mode&$e)!==ke&&0<=Ue&&0<=He&&.05<He-Ue&&kr(e,Ue,He,"Disconnect")),g=null,t=e;;){if(t.tag===5||t.tag===26){if(g===null){Y=g=t;try{D=Y.stateNode,R?me(Y,N4,D):me(Y,O4,Y.stateNode,Y.memoizedProps)}catch(Ee){ot(Y,Y.return,Ee)}}}else if(t.tag===6){if(g===null){Y=t;try{J=Y.stateNode,R?me(Y,D4,J):me(Y,M4,J,Y.memoizedProps)}catch(Ee){ot(Y,Y.return,Ee)}}}else if(t.tag===18){if(g===null){Y=t;try{K=Y.stateNode,R?me(Y,A4,K):me(Y,C4,Y.stateNode)}catch(Ee){ot(Y,Y.return,Ee)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;g===t&&(g=null),t=t.return}g===t&&(g=null),t.sibling.return=t.return,t=t.sibling}_&4&&(_=e.updateQueue,_!==null&&(g=_.retryQueue,g!==null&&(_.retryQueue=null,Mf(e,g))));break;case 19:On(t,e),Mn(e),_&4&&(_=e.updateQueue,_!==null&&(e.updateQueue=null,Mf(e,_)));break;case 30:break;case 21:break;default:On(t,e),Mn(e)}(e.mode&$e)!==ke&&0<=Ue&&0<=He&&((At||.05<St)&&Vr(e,Ue,He,St,_t),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<He-Ue&&(xw(e.return.alternate,e.return)||kr(e,Ue,He,"Mount"))),Vn(r),Gr(o),_t=u,At=c}function Mn(e){var t=e.flags;if(t&2){try{me(e,K5,e)}catch(r){ot(e,e.return,r)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Dw(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Dw(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Fr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ew(e,t.alternate,t),t=t.sibling}function Cw(e){var t=kn(),r=Ir(),o=Yr(),u=$r();switch(e.tag){case 0:case 11:case 14:case 15:Am(e,e.return,Zn),ci(e);break;case 1:Qr(e,e.return);var c=e.stateNode;typeof c.componentWillUnmount=="function"&&yw(e,e.return,c),ci(e);break;case 27:me(e,Wl,e.stateNode);case 26:case 5:Qr(e,e.return),ci(e);break;case 22:e.memoizedState===null&&ci(e);break;case 30:ci(e);break;default:ci(e)}(e.mode&$e)!==ke&&0<=Ue&&0<=He&&(At||.05<St)&&Vr(e,Ue,He,St,_t),Vn(t),Gr(r),_t=o,At=u}function ci(e){for(e=e.child;e!==null;)Cw(e),e=e.sibling}function Ow(e,t,r,o){var u=kn(),c=Ir(),g=Yr(),_=$r(),R=r.flags;switch(r.tag){case 0:case 11:case 15:Jr(e,r,o),pw(r,Zn);break;case 1:if(Jr(e,r,o),t=r.stateNode,typeof t.componentDidMount=="function"&&me(r,Wg,r,t),t=r.updateQueue,t!==null){e=r.stateNode;try{me(r,j5,t,e)}catch(D){ot(r,r.return,D)}}o&&R&64&&gw(r),Yl(r,r.return);break;case 27:Sw(r);case 26:case 5:Jr(e,r,o),o&&t===null&&R&4&&bw(r),Yl(r,r.return);break;case 12:if(o&&R&4){R=Ea(),Jr(e,r,o),o=r.stateNode,o.effectDuration+=Ml(R);try{me(r,vw,r,t,To,o.effectDuration)}catch(D){ot(r,r.return,D)}}else Jr(e,r,o);break;case 31:Jr(e,r,o),o&&R&4&&Rw(e,r);break;case 13:Jr(e,r,o),o&&R&4&&Aw(e,r);break;case 22:r.memoizedState===null&&Jr(e,r,o),Yl(r,r.return);break;case 30:break;default:Jr(e,r,o)}(r.mode&$e)!==ke&&0<=Ue&&0<=He&&(At||.05<St)&&Vr(r,Ue,He,St,_t),Vn(u),Gr(c),_t=g,At=_}function Jr(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Ow(e,t.alternate,t,r),t=t.sibling}function Mm(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&oi(e),r!=null&&Ol(r))}function qm(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(oi(t),e!=null&&Ol(e))}function xr(e,t,r,o,u){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var c=t.sibling;Mw(e,t,r,o,c!==null?c.actualStartTime:u),t=c}}function Mw(e,t,r,o,u){var c=kn(),g=Ir(),_=Yr(),R=$r(),D=So,J=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&$e)!==ke&&0<t.actualStartTime&&(t.flags&1)!==0&&Zc(t,t.actualStartTime,u,Xt,r),xr(e,t,r,o,u),J&2048&&mw(t,xn|dr);break;case 1:(t.mode&$e)!==ke&&0<t.actualStartTime&&((t.flags&128)!==0?mp(t,t.actualStartTime,u,[]):(t.flags&1)!==0&&Zc(t,t.actualStartTime,u,Xt,r)),xr(e,t,r,o,u);break;case 3:var K=Ea(),Y=Xt;Xt=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,xr(e,t,r,o,u),Xt=Y,J&2048&&(r=null,t.alternate!==null&&(r=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==r&&(oi(o),r!=null&&Ol(r))),e.passiveEffectDuration+=rf(K);break;case 12:if(J&2048){J=Ea(),xr(e,t,r,o,u),e=t.stateNode,e.passiveEffectDuration+=Ml(J);try{me(t,J5,t,t.alternate,To,e.passiveEffectDuration)}catch(ie){ot(t,t.return,ie)}}else xr(e,t,r,o,u);break;case 31:J=Xt,K=t.alternate!==null?t.alternate.memoizedState:null,Y=t.memoizedState,K!==null&&Y===null?(Y=t.deletions,Y!==null&&0<Y.length&&Y[0].tag===18?(Xt=!1,K=K.hydrationErrors,K!==null&&mp(t,t.actualStartTime,u,K)):Xt=!0):Xt=!1,xr(e,t,r,o,u),Xt=J;break;case 13:J=Xt,K=t.alternate!==null?t.alternate.memoizedState:null,Y=t.memoizedState,K===null||K.dehydrated===null||Y!==null&&Y.dehydrated!==null?Xt=!1:(Y=t.deletions,Y!==null&&0<Y.length&&Y[0].tag===18?(Xt=!1,K=K.hydrationErrors,K!==null&&mp(t,t.actualStartTime,u,K)):Xt=!0),xr(e,t,r,o,u),Xt=J;break;case 23:break;case 22:Y=t.stateNode,K=t.alternate,t.memoizedState!==null?Y._visibility&Ca?xr(e,t,r,o,u):$l(e,t,r,o,u):Y._visibility&Ca?xr(e,t,r,o,u):(Y._visibility|=Ca,cs(e,t,r,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),u),(t.mode&$e)===ke||Xt||(e=t.actualStartTime,0<=e&&.05<u-e&&Pc(t,e,u),0<=Ue&&0<=He&&.05<He-Ue&&Pc(t,Ue,He))),J&2048&&Mm(K,t);break;case 24:xr(e,t,r,o,u),J&2048&&qm(t.alternate,t);break;default:xr(e,t,r,o,u)}(t.mode&$e)!==ke&&((e=!Xt&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(r=t.actualStartTime,0<=r&&.05<u-r&&kr(t,r,u,"Mount")),0<=Ue&&0<=He&&((At||.05<St)&&Vr(t,Ue,He,St,_t),e&&.05<He-Ue&&kr(t,Ue,He,"Mount"))),Vn(c),Gr(g),_t=_,At=R,So=D}function cs(e,t,r,o,u,c){for(u=u&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var g=t.sibling;qw(e,t,r,o,u,g!==null?g.actualStartTime:c),t=g}}function qw(e,t,r,o,u,c){var g=kn(),_=Ir(),R=Yr(),D=$r(),J=So;u&&(t.mode&$e)!==ke&&0<t.actualStartTime&&(t.flags&1)!==0&&Zc(t,t.actualStartTime,c,Xt,r);var K=t.flags;switch(t.tag){case 0:case 11:case 15:cs(e,t,r,o,u,c),mw(t,xn);break;case 23:break;case 22:var Y=t.stateNode;t.memoizedState!==null?Y._visibility&Ca?cs(e,t,r,o,u,c):$l(e,t,r,o,c):(Y._visibility|=Ca,cs(e,t,r,o,u,c)),u&&K&2048&&Mm(t.alternate,t);break;case 24:cs(e,t,r,o,u,c),u&&K&2048&&qm(t.alternate,t);break;default:cs(e,t,r,o,u,c)}(t.mode&$e)!==ke&&0<=Ue&&0<=He&&(At||.05<St)&&Vr(t,Ue,He,St,_t),Vn(g),Gr(_),_t=R,At=D,So=J}function $l(e,t,r,o,u){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var c=t.child;c!==null;){t=c.sibling;var g=e,_=r,R=o,D=t!==null?t.actualStartTime:u,J=So;(c.mode&$e)!==ke&&0<c.actualStartTime&&(c.flags&1)!==0&&Zc(c,c.actualStartTime,D,Xt,_);var K=c.flags;switch(c.tag){case 22:$l(g,c,_,R,D),K&2048&&Mm(c.alternate,c);break;case 24:$l(g,c,_,R,D),K&2048&&qm(c.alternate,c);break;default:$l(g,c,_,R,D)}So=J,c=t}}function fs(e,t,r){if(e.subtreeFlags&Uu)for(e=e.child;e!==null;)zw(e,t,r),e=e.sibling}function zw(e,t,r){switch(e.tag){case 26:fs(e,t,r),e.flags&Uu&&e.memoizedState!==null&&I4(r,Ar,e.memoizedState,e.memoizedProps);break;case 5:fs(e,t,r);break;case 3:case 4:var o=Ar;Ar=Vf(e.stateNode.containerInfo),fs(e,t,r),Ar=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Uu,Uu=16777216,fs(e,t,r),Uu=o):fs(e,t,r));break;default:fs(e,t,r)}}function Uw(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Xl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r],u=kn();Kt=o,Hw(o,e),(o.mode&$e)!==ke&&0<=Ue&&0<=He&&.05<He-Ue&&kr(o,Ue,He,"Unmount"),Vn(u)}Uw(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jw(e),e=e.sibling}function jw(e){var t=kn(),r=Ir(),o=Yr(),u=$r();switch(e.tag){case 0:case 11:case 15:Xl(e),e.flags&2048&&Nm(e,e.return,xn|dr);break;case 3:var c=Ea();Xl(e),e.stateNode.passiveEffectDuration+=rf(c);break;case 12:c=Ea(),Xl(e),e.stateNode.passiveEffectDuration+=Ml(c);break;case 22:c=e.stateNode,e.memoizedState!==null&&c._visibility&Ca&&(e.return===null||e.return.tag!==13)?(c._visibility&=~Ca,qf(e),(e.mode&$e)!==ke&&0<=Ue&&0<=He&&.05<He-Ue&&kr(e,Ue,He,"Disconnect")):Xl(e);break;default:Xl(e)}(e.mode&$e)!==ke&&0<=Ue&&0<=He&&(At||.05<St)&&Vr(e,Ue,He,St,_t),Vn(t),Gr(r),At=u,_t=o}function qf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r],u=kn();Kt=o,Hw(o,e),(o.mode&$e)!==ke&&0<=Ue&&0<=He&&.05<He-Ue&&kr(o,Ue,He,"Unmount"),Vn(u)}Uw(e)}for(e=e.child;e!==null;)Lw(e),e=e.sibling}function Lw(e){var t=kn(),r=Ir(),o=Yr(),u=$r();switch(e.tag){case 0:case 11:case 15:Nm(e,e.return,xn),qf(e);break;case 22:var c=e.stateNode;c._visibility&Ca&&(c._visibility&=~Ca,qf(e));break;default:qf(e)}(e.mode&$e)!==ke&&0<=Ue&&0<=He&&(At||.05<St)&&Vr(e,Ue,He,St,_t),Vn(t),Gr(r),At=u,_t=o}function Hw(e,t){for(;Kt!==null;){var r=Kt,o=r,u=t,c=kn(),g=Ir(),_=Yr(),R=$r();switch(o.tag){case 0:case 11:case 15:Nm(o,u,xn);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool,u!=null&&oi(u));break;case 24:Ol(o.memoizedState.cache)}if((o.mode&$e)!==ke&&0<=Ue&&0<=He&&(At||.05<St)&&Vr(o,Ue,He,St,_t),Vn(c),Gr(g),At=R,_t=_,o=r.child,o!==null)o.return=r,Kt=o;else e:for(r=e;Kt!==null;){if(o=Kt,c=o.sibling,g=o.return,ww(o),o===r){Kt=null;break e}if(c!==null){c.return=g,Kt=c;break e}Kt=g}}}function t4(){w6.forEach(function(e){return e()})}function kw(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||le.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function In(e){if((rt&Pt)!==Wt&&Pe!==0)return Pe&-Pe;var t=le.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Bm()):Lr()}function Vw(){if(Un===0)if((Pe&536870912)===0||Je){var e=Kf;Kf<<=1,(Kf&3932160)===0&&(Kf=262144),Un=e}else Un=536870912;return e=Pn.current,e!==null&&(e.flags|=32),Un}function Rt(e,t,r){if(Fs&&console.error("useInsertionEffect must not schedule updates."),Ey&&(Ld=!0),(e===dt&&(lt===Ri||lt===Ai)||e.cancelPendingCommit!==null)&&(hs(e,0),ho(e,Pe,Un,!1)),Zt(e,r),(rt&Pt)!==Wt&&e===dt){if(na)switch(t.tag){case 0:case 11:case 15:e=Ze&&G(Ze)||"Unknown",hN.has(e)||(hN.add(e),t=G(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:dN||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),dN=!0)}}else aa&&nn(e,t,r),f4(t),e===dt&&((rt&Pt)===Wt&&(qo|=r),xt===Co&&ho(e,Pe,Un,!1)),Kr(e)}function Bw(e,t,r){if((rt&(Pt|Qn))!==Wt)throw Error("Should not already be working.");if(Pe!==0&&Ze!==null){var o=Ze,u=Ft();switch(oA){case Hu:case Ri:var c=Su;mt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",c,u,ar,void 0,"primary-light")):console.timeStamp("Suspended",c,u,ar,void 0,"primary-light"));break;case Ai:c=Su,mt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",c,u,ar,void 0,"primary-light")):console.timeStamp("Action",c,u,ar,void 0,"primary-light"));break;default:mt&&(o=u-Su,3>o||console.timeStamp("Blocked",Su,u,ar,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}c=(r=!r&&(t&127)===0&&(t&e.expiredLanes)===0||tn(e,t))?r4(e,t):Um(e,t,!0);var g=r;do{if(c===Ba){Zs&&!r&&ho(e,t,0,!1),t=lt,Su=jt(),oA=t;break}else{if(o=Ft(),u=e.current.alternate,g&&!n4(u)){_r(t),u=Jt,c=o,!mt||c<=u||(Ct?Ct.run(console.timeStamp.bind(console,"Teared Render",u,c,nt,et,"error")):console.timeStamp("Teared Render",u,c,nt,et,"error")),fi(t,o),c=Um(e,t,!1),g=!1;continue}if(c===Ti){if(g=t,e.errorRecoveryDisabledLanes&g)var _=0;else _=e.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){_r(t),gp(Jt,o,t,Ct),fi(t,o),t=_;e:{o=e,c=g,g=Vu;var R=o.current.memoizedState.isDehydrated;if(R&&(hs(o,_).flags|=256),_=Um(o,_,!1),_!==Ti){if(my&&!R){o.errorRecoveryDisabledLanes|=c,qo|=c,c=Co;break e}o=En,En=g,o!==null&&(En===null?En=o:En.push.apply(En,o))}c=_}if(g=!1,c!==Ti)continue;o=Ft()}}if(c===Lu){_r(t),gp(Jt,o,t,Ct),fi(t,o),hs(e,0),ho(e,t,0,!0);break}e:{switch(r=e,c){case Ba:case Lu:throw Error("Root did not complete. This is a bug in React.");case Co:if((t&4194048)!==t)break;case Dd:_r(t),Bx(Jt,o,t,Ct),fi(t,o),u=t,(u&127)!==0?pd=o:(u&4194048)!==0&&(md=o),ho(r,t,Un,!Oo);break e;case Ti:En=null;break;case Nd:case WA:break;default:throw Error("Unknown root exit status.")}if(le.actQueue!==null)jm(r,u,t,En,Bu,Md,Un,qo,Ni,c,null,null,Jt,o);else{if((t&62914560)===t&&(g=qd+nN-Ft(),10<g)){if(ho(r,t,Un,!Oo),ut(r,0,!0)!==0)break e;Nr=t,r.timeoutHandle=SN(Iw.bind(null,r,u,En,Bu,Md,t,Un,qo,Ni,Oo,c,"Throttled",Jt,o),g);break e}Iw(r,u,En,Bu,Md,t,Un,qo,Ni,Oo,c,null,Jt,o)}}}break}while(!0);Kr(e)}function Iw(e,t,r,o,u,c,g,_,R,D,J,K,Y,ie){e.timeoutHandle=qi;var Se=t.subtreeFlags,Ee=null;if((Se&8192||(Se&16785408)===16785408)&&(Ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ba},zw(t,c,Ee),Se=(c&62914560)===c?qd-Ft():(c&4194048)===c?tN-Ft():0,Se=G4(Ee,Se),Se!==null)){Nr=c,e.cancelPendingCommit=Se(jm.bind(null,e,t,c,r,o,u,g,_,R,J,Ee,Ee.waitingForViewTransition?"Waiting for the previous Animation":0<Ee.count?0<Ee.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Ee.imgCount===1?"Suspended on an Image":0<Ee.imgCount?"Suspended on Images":null,Y,ie)),ho(e,c,g,!D);return}jm(e,t,c,r,o,u,g,_,R,J,Ee,K,Y,ie)}function n4(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var o=0;o<r.length;o++){var u=r[o],c=u.getSnapshot;u=u.value;try{if(!bn(c(),u))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ho(e,t,r,o){t&=~gy,t&=~qo,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var u=t;0<u;){var c=31-gn(u),g=1<<c;o[c]=-1,u&=~g}r!==0&&Wn(e,r,t)}function ds(){return(rt&(Pt|Qn))===Wt?(Ql(0),!1):!0}function zm(){if(Ze!==null){if(lt===zn)var e=Ze.return;else e=Ze,ef(),$p(e),ks=null,Cu=0,e=Ze;for(;e!==null;)hw(e.alternate,e),e=e.return;Ze=null}}function fi(e,t){(e&127)!==0&&(gi=t),(e&4194048)!==0&&(Ua=t),(e&62914560)!==0&&(rA=t),(e&2080374784)!==0&&(aA=t)}function hs(e,t){mt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",et,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",et,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",et,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",et,"primary-light"));var r=Jt;if(Jt=jt(),Pe!==0&&0<r){if(_r(Pe),xt===Nd||xt===Co)Bx(r,Jt,t,Ct);else{var o=Jt,u=Ct;if(mt&&!(o<=r)){var c=(t&738197653)===t?"tertiary-dark":"primary-dark",g=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";u?u.run(console.timeStamp.bind(console,g,r,o,nt,et,c)):console.timeStamp(g,r,o,nt,et,c)}}fi(Pe,Jt)}if(r=Ct,Ct=null,(t&127)!==0){Ct=vu,u=0<=la&&la<gi?gi:la,o=0<=yi&&yi<gi?gi:yi,c=0<=o?o:0<=u?u:Jt,0<=pd?(_r(2),Ix(pd,c,t,r)):gd&127,r=u;var _=o,R=bu,D=0<js,J=Ro===yu,K=Ro===hd;if(u=Jt,o=vu,c=Zg,g=Qg,mt){if(nt="Blocking",0<r?r>u&&(r=u):r=u,0<_?_>r&&(_=r):_=r,R!==null&&r>_){var Y=D?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,D?"Consecutive":"Event: "+R,_,r,nt,et,Y)):console.timeStamp(D?"Consecutive":"Event: "+R,_,r,nt,et,Y)}u>r&&(_=J?"error":(t&738197653)===t?"tertiary-light":"primary-light",J=K?"Promise Resolved":J?"Cascading Update":5<u-r?"Update Blocked":"Update",K=[],g!=null&&K.push(["Component name",g]),c!=null&&K.push(["Method name",c]),r={start:r,end:u,detail:{devtools:{properties:K,track:nt,trackGroup:et,color:_}}},o?o.run(performance.measure.bind(performance,J,r)):performance.measure(J,r))}la=-1.1,Ro=0,Qg=Zg=null,pd=-1.1,js=yi,yi=-1.1,gi=jt()}if((t&4194048)!==0&&(Ct=_u,u=0<=ja&&ja<Ua?Ua:ja,r=0<=cr&&cr<Ua?Ua:cr,o=0<=Ao&&Ao<Ua?Ua:Ao,c=0<=o?o:0<=r?r:Jt,0<=md?(_r(256),Ix(md,c,t,Ct)):gd&4194048,K=o,_=vi,R=0<No,D=Fg===hd,c=Jt,o=_u,g=tA,J=nA,mt&&(nt="Transition",0<r?r>c&&(r=c):r=c,0<u?u>r&&(u=r):u=r,0<K?K>u&&(K=u):K=u,u>K&&_!==null&&(Y=R?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,R?"Consecutive":"Event: "+_,K,u,nt,et,Y)):console.timeStamp(R?"Consecutive":"Event: "+_,K,u,nt,et,Y)),r>u&&(o?o.run(console.timeStamp.bind(console,"Action",u,r,nt,et,"primary-dark")):console.timeStamp("Action",u,r,nt,et,"primary-dark")),c>r&&(u=D?"Promise Resolved":5<c-r?"Update Blocked":"Update",K=[],J!=null&&K.push(["Component name",J]),g!=null&&K.push(["Method name",g]),r={start:r,end:c,detail:{devtools:{properties:K,track:nt,trackGroup:et,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,u,r)):performance.measure(u,r))),cr=ja=-1.1,Fg=0,md=-1.1,No=Ao,Ao=-1.1,Ua=jt()),(t&62914560)!==0&&(gd&62914560)!==0&&(_r(4194304),yp(rA,Jt)),(t&2080374784)!==0&&(gd&2080374784)!==0&&(_r(268435456),yp(aA,Jt)),r=e.timeoutHandle,r!==qi&&(e.timeoutHandle=qi,L6(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Nr=0,zm(),dt=e,Ze=r=_a(e.current,null),Pe=t,lt=zn,Fn=null,Oo=!1,Zs=tn(e,t),my=!1,xt=Ba,Ni=Un=gy=qo=Mo=0,En=Vu=null,Md=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)u=31-gn(o),c=1<<u,t|=e[u],o&=~c;return ca=t,Qc(),e=QR(),1e3<e-ZR&&(le.recentlyCreatedOwnerStacks=0,ZR=e),Tr.discardPendingWarnings(),r}function Gw(e,t){Ve=null,le.H=zu,le.getCurrentStack=null,na=!1,$n=null,t===Hs||t===_d?(t=cE(),lt=Hu):t===ey?(t=cE(),lt=eN):lt=t===cy?py:t!==null&&typeof t=="object"&&typeof t.then=="function"?ku:Cd,Fn=t;var r=Ze;r===null?(xt=Lu,Rf(e,Hn(t,e.current))):r.mode&$e&&Mp(r)}function Yw(){var e=Pn.current;return e===null?!0:(Pe&4194048)===Pe?fr===null:(Pe&62914560)===Pe||(Pe&536870912)!==0?e===fr:!1}function $w(){var e=le.H;return le.H=zu,e===null?zu:e}function Xw(){var e=le.A;return le.A=E6,e}function zf(e){Ct===null&&(Ct=e._debugTask==null?null:e._debugTask)}function Uf(){xt=Co,Oo||(Pe&4194048)!==Pe&&Pn.current!==null||(Zs=!0),(Mo&134217727)===0&&(qo&134217727)===0||dt===null||ho(dt,Pe,Un,!1)}function Um(e,t,r){var o=rt;rt|=Pt;var u=$w(),c=Xw();if(dt!==e||Pe!==t){if(aa){var g=e.memoizedUpdaters;0<g.size&&(Zl(e,Pe),g.clear()),Ja(e,t)}Bu=null,hs(e,t)}t=!1,g=xt;e:do try{if(lt!==zn&&Ze!==null){var _=Ze,R=Fn;switch(lt){case py:zm(),g=Dd;break e;case Hu:case Ri:case Ai:case ku:Pn.current===null&&(t=!0);var D=lt;if(lt=zn,Fn=null,ps(e,_,R,D),r&&Zs){g=Ba;break e}break;default:D=lt,lt=zn,Fn=null,ps(e,_,R,D)}}Pw(),g=xt;break}catch(J){Gw(e,J)}while(!0);return t&&e.shellSuspendCounter++,ef(),rt=o,le.H=u,le.A=c,Ze===null&&(dt=null,Pe=0,Qc()),g}function Pw(){for(;Ze!==null;)Zw(Ze)}function r4(e,t){var r=rt;rt|=Pt;var o=$w(),u=Xw();if(dt!==e||Pe!==t){if(aa){var c=e.memoizedUpdaters;0<c.size&&(Zl(e,Pe),c.clear()),Ja(e,t)}Bu=null,zd=Ft()+rN,hs(e,t)}else Zs=tn(e,t);e:do try{if(lt!==zn&&Ze!==null)t:switch(t=Ze,c=Fn,lt){case Cd:lt=zn,Fn=null,ps(e,t,c,Cd);break;case Ri:case Ai:if(lE(c)){lt=zn,Fn=null,Qw(t);break}t=function(){lt!==Ri&&lt!==Ai||dt!==e||(lt=Od),Kr(e)},c.then(t,t);break e;case Hu:lt=Od;break e;case eN:lt=hy;break e;case Od:lE(c)?(lt=zn,Fn=null,Qw(t)):(lt=zn,Fn=null,ps(e,t,c,Od));break;case hy:var g=null;switch(Ze.tag){case 26:g=Ze.memoizedState;case 5:case 27:var _=Ze;if(g?BT(g):_.stateNode.complete){lt=zn,Fn=null;var R=_.sibling;if(R!==null)Ze=R;else{var D=_.return;D!==null?(Ze=D,jf(D)):Ze=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}lt=zn,Fn=null,ps(e,t,c,hy);break;case ku:lt=zn,Fn=null,ps(e,t,c,ku);break;case py:zm(),xt=Dd;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}le.actQueue!==null?Pw():a4();break}catch(J){Gw(e,J)}while(!0);return ef(),le.H=o,le.A=u,rt=r,Ze!==null?Ba:(dt=null,Pe=0,Qc(),xt)}function a4(){for(;Ze!==null&&!rL();)Zw(Ze)}function Zw(e){var t=e.alternate;(e.mode&$e)!==ke?(Op(e),t=me(e,Tm,t,e,ca),Mp(e)):t=me(e,Tm,t,e,ca),e.memoizedProps=e.pendingProps,t===null?jf(e):Ze=t}function Qw(e){var t=me(e,o4,e);e.memoizedProps=e.pendingProps,t===null?jf(e):Ze=t}function o4(e){var t=e.alternate,r=(e.mode&$e)!==ke;switch(r&&Op(e),e.tag){case 15:case 0:t=iw(t,e,e.pendingProps,e.type,void 0,Pe);break;case 11:t=iw(t,e,e.pendingProps,e.type.render,e.ref,Pe);break;case 5:$p(e);default:hw(t,e),e=Ze=Zx(e,ca),t=Tm(t,e,ca)}return r&&Mp(e),t}function ps(e,t,r,o){ef(),$p(t),ks=null,Cu=0;var u=t.return;try{if(G5(e,u,t,r,Pe)){xt=Lu,Rf(e,Hn(r,e.current)),Ze=null;return}}catch(c){if(u!==null)throw Ze=u,c;xt=Lu,Rf(e,Hn(r,e.current)),Ze=null;return}t.flags&32768?(Je||o===Cd?e=!0:Zs||(Pe&536870912)!==0?e=!1:(Oo=e=!0,(o===Ri||o===Ai||o===Hu||o===ku)&&(o=Pn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Fw(t,e)):jf(t)}function jf(e){var t=e;do{if((t.flags&32768)!==0){Fw(t,Oo);return}var r=t.alternate;if(e=t.return,Op(t),r=me(t,X5,r,t,ca),(t.mode&$e)!==ke&&rE(t),r!==null){Ze=r;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);xt===Ba&&(xt=WA)}function Fw(e,t){do{var r=P5(e.alternate,e);if(r!==null){r.flags&=32767,Ze=r;return}if((e.mode&$e)!==ke){rE(e),r=e.actualDuration;for(var o=e.child;o!==null;)r+=o.actualDuration,o=o.sibling;e.actualDuration=r}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Ze=e;return}Ze=e=r}while(e!==null);xt=Dd,Ze=null}function jm(e,t,r,o,u,c,g,_,R,D,J,K,Y,ie){e.cancelPendingCommit=null;do Pl();while(Bt!==Uo);if(Tr.flushLegacyContextWarning(),Tr.flushPendingUnsafeLifecycleWarnings(),(rt&(Pt|Qn))!==Wt)throw Error("Should not already be working.");if(_r(r),D===Ti?gp(Y,ie,r,Ct):o!==null?C5(Y,ie,r,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Ct):D5(Y,ie,r,Ct),t!==null){if(r===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(c=t.lanes|t.childLanes,c|=Gg,ga(e,r,c,g,_,R),e===dt&&(Ze=dt=null,Pe=0),Qs=t,jo=e,Nr=r,by=c,Sy=u,uN=o,_y=ie,cN=K,Dr=Ud,fN=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,c4(_s,function(){return Pu=window.event,Dr===Ud&&(Dr=vy),tT(),null})):(e.callbackNode=null,e.callbackPriority=0),za=null,To=jt(),K!==null&&O5(ie,To,K,Ct),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=le.T,le.T=null,u=it.p,it.p=rr,g=rt,rt|=Qn;try{W5(e,t,r)}finally{rt=g,it.p=u,le.T=o}}Bt=oN,Jw(),Kw(),Ww()}}function Jw(){if(Bt===oN){Bt=Uo;var e=jo,t=Qs,r=Nr,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=le.T,le.T=null;var u=it.p;it.p=rr;var c=rt;rt|=Qn;try{Xs=r,Ps=e,af(),Nw(t,e),Ps=Xs=null,r=My;var g=Hx(e.containerInfo),_=r.focusedElem,R=r.selectionRange;if(g!==_&&_&&_.ownerDocument&&Lx(_.ownerDocument.documentElement,_)){if(R!==null&&hp(_)){var D=R.start,J=R.end;if(J===void 0&&(J=D),"selectionStart"in _)_.selectionStart=D,_.selectionEnd=Math.min(J,_.value.length);else{var K=_.ownerDocument||document,Y=K&&K.defaultView||window;if(Y.getSelection){var ie=Y.getSelection(),Se=_.textContent.length,Ee=Math.min(R.start,Se),pt=R.end===void 0?Ee:Math.min(R.end,Se);!ie.extend&&Ee>pt&&(g=pt,pt=Ee,Ee=g);var tt=jx(_,Ee),I=jx(_,pt);if(tt&&I&&(ie.rangeCount!==1||ie.anchorNode!==tt.node||ie.anchorOffset!==tt.offset||ie.focusNode!==I.node||ie.focusOffset!==I.offset)){var $=K.createRange();$.setStart(tt.node,tt.offset),ie.removeAllRanges(),Ee>pt?(ie.addRange($),ie.extend(I.node,I.offset)):($.setEnd(I.node,I.offset),ie.addRange($))}}}}for(K=[],ie=_;ie=ie.parentNode;)ie.nodeType===1&&K.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<K.length;_++){var P=K[_];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}Jd=!!Oy,My=Oy=null}finally{rt=c,it.p=u,le.T=o}}e.current=t,Bt=iN}}function Kw(){if(Bt===iN){Bt=Uo;var e=fN;if(e!==null){To=jt();var t=qa,r=To;!mt||r<=t||console.timeStamp(e,t,r,nt,et,"secondary-light")}e=jo,t=Qs,r=Nr;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=le.T,le.T=null;var u=it.p;it.p=rr;var c=rt;rt|=Qn;try{Xs=r,Ps=e,af(),Ew(e,t.alternate,t),Ps=Xs=null}finally{rt=c,it.p=u,le.T=o}}e=_y,t=cN,qa=jt(),e=t===null?e:To,t=qa,r=Dr===yy,o=Ct,za!==null?Gx(e,t,za,!1,o):!mt||t<=e||(o?o.run(console.timeStamp.bind(console,r?"Commit Interrupted View Transition":"Commit",e,t,nt,et,r?"error":"secondary-dark")):console.timeStamp(r?"Commit Interrupted View Transition":"Commit",e,t,nt,et,r?"error":"secondary-dark")),Bt=sN}}function Ww(){if(Bt===lN||Bt===sN){if(Bt===lN){var e=qa;qa=jt();var t=qa,r=Dr===yy;!mt||t<=e||console.timeStamp(r?"Interrupted View Transition":"Starting Animation",e,t,nt,et,r?" error":"secondary-light"),Dr!==yy&&(Dr=aN)}Bt=Uo,aL(),e=jo;var o=Qs;t=Nr,r=uN;var u=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;u?Bt=jd:(Bt=Uo,Qs=jo=null,eT(e,e.pendingLanes),Di=0,Gu=null);var c=e.pendingLanes;if(c===0&&(zo=null),u||oT(e),c=Ka(t),o=o.stateNode,fn&&typeof fn.onCommitFiberRoot=="function")try{var g=(o.current.flags&128)===128;switch(c){case rr:var _=Sg;break;case oa:_=xg;break;case Na:_=_s;break;case ed:_=Eg;break;default:_=_s}fn.onCommitFiberRoot(Ss,o,_,g)}catch(K){ra||(ra=!0,console.error("React instrumentation encountered an error: %o",K))}if(aa&&e.memoizedUpdaters.clear(),t4(),r!==null){g=le.T,_=it.p,it.p=rr,le.T=null;try{var R=e.onRecoverableError;for(o=0;o<r.length;o++){var D=r[o],J=i4(D.stack);me(D.source,R,D.value,J)}}finally{le.T=g,it.p=_}}(Nr&3)!==0&&Pl(),Kr(e),c=e.pendingLanes,(t&261930)!==0&&(c&42)!==0?(vd=!0,e===xy?Iu++:(Iu=0,xy=e)):Iu=0,u||fi(t,qa),Ql(0)}}function i4(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function eT(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ol(t)))}function Pl(){return Jw(),Kw(),Ww(),tT()}function tT(){if(Bt!==jd)return!1;var e=jo,t=by;by=0;var r=Ka(Nr),o=Na>r?Na:r;r=le.T;var u=it.p;try{it.p=o,le.T=null;var c=Sy;Sy=null,o=jo;var g=Nr;if(Bt=Uo,Qs=jo=null,Nr=0,(rt&(Pt|Qn))!==Wt)throw Error("Cannot flush passive effects while already rendering.");_r(g),Ey=!0,Ld=!1;var _=0;if(za=null,_=Ft(),Dr===aN)yp(qa,_,g6);else{var R=qa,D=_,J=Dr===vy;!mt||D<=R||(Ct?Ct.run(console.timeStamp.bind(console,J?"Waiting for Paint":"Waiting",R,D,nt,et,"secondary-light")):console.timeStamp(J?"Waiting for Paint":"Waiting",R,D,nt,et,"secondary-light"))}R=rt,rt|=Qn;var K=o.current;af(),jw(K);var Y=o.current;K=_y,af(),Mw(o,Y,g,c,K),oT(o),rt=R;var ie=Ft();if(Y=_,K=Ct,za!==null?Gx(Y,ie,za,!0,K):!mt||ie<=Y||(K?K.run(console.timeStamp.bind(console,"Remaining Effects",Y,ie,nt,et,"secondary-dark")):console.timeStamp("Remaining Effects",Y,ie,nt,et,"secondary-dark")),fi(g,ie),Ql(0,!1),Ld?o===Gu?Di++:(Di=0,Gu=o):Di=0,Ld=Ey=!1,fn&&typeof fn.onPostCommitFiberRoot=="function")try{fn.onPostCommitFiberRoot(Ss,o)}catch(Ee){ra||(ra=!0,console.error("React instrumentation encountered an error: %o",Ee))}var Se=o.current.stateNode;return Se.effectDuration=0,Se.passiveEffectDuration=0,!0}finally{it.p=u,le.T=r,eT(e,t)}}function nT(e,t,r){t=Hn(r,t),aE(t),t=pm(e.stateNode,t,2),e=lo(e,t,2),e!==null&&(Zt(e,2),Kr(e))}function ot(e,t,r){if(Fs=!1,e.tag===3)nT(e,e,r);else{for(;t!==null;){if(t.tag===3){nT(t,e,r);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(zo===null||!zo.has(o))){e=Hn(r,e),aE(e),r=mm(2),o=lo(t,r,2),o!==null&&(gm(r,o,t,e),Zt(o,2),Kr(o));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
159
+
160
+ Error message:
161
+
162
+ %s`,r)}}function Lm(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new T6;var u=new Set;o.set(t,u)}else u=o.get(t),u===void 0&&(u=new Set,o.set(t,u));u.has(r)||(my=!0,u.add(r),o=s4.bind(null,e,t,r),aa&&Zl(e,r),t.then(o,o))}function s4(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,(r&127)!==0?0>la&&(gi=la=jt(),vu=dd("Promise Resolved"),Ro=hd):(r&4194048)!==0&&0>cr&&(Ua=cr=jt(),_u=dd("Promise Resolved"),Fg=hd),kw()&&le.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
163
+
164
+ When testing, code that resolves suspended data should be wrapped into act(...):
165
+
166
+ act(() => {
167
+ /* finish loading suspended data */
168
+ });
169
+ /* assert on the output */
170
+
171
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),dt===e&&(Pe&r)===r&&(xt===Co||xt===Nd&&(Pe&62914560)===Pe&&Ft()-qd<nN?(rt&Pt)===Wt&&hs(e,0):gy|=r,Ni===Pe&&(Ni=0)),Kr(e)}function rT(e,t){t===0&&(t=Tn()),e=cn(e,t),e!==null&&(Zt(e,t),Kr(e))}function l4(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),rT(e,r)}function u4(e,t){var r=0;switch(e.tag){case 31:case 13:var o=e.stateNode,u=e.memoizedState;u!==null&&(r=u.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}o!==null&&o.delete(t),rT(e,r)}function Hm(e,t,r){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,u=t,c=u.type===Zf;c=r||c,u.tag!==22?u.flags&67108864?c&&me(u,aT,o,u):Hm(o,u,c):u.memoizedState===null&&(c&&u.flags&8192?me(u,aT,o,u):u.subtreeFlags&67108864&&me(u,Hm,o,u,c)),t=t.sibling}}function aT(e,t){we(!0);try{Cw(t),Lw(t),Ow(e,t.alternate,t,!1),qw(e,t,0,null,!1,0)}finally{we(!1)}}function oT(e){var t=!0;e.current.mode&(dn|wr)||(t=!1),Hm(e,e.current,t)}function iT(e){if((rt&Pt)===Wt){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=G(e)||"ReactComponent",Hd!==null){if(Hd.has(t))return;Hd.add(t)}else Hd=new Set([t]);me(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Zl(e,t){aa&&e.memoizedUpdaters.forEach(function(r){nn(e,r,t)})}function c4(e,t){var r=le.actQueue;return r!==null?(r.push(t),N6):_g(e,t)}function f4(e){kw()&&le.actQueue===null&&me(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
172
+
173
+ When testing, code that causes React state updates should be wrapped into act(...):
174
+
175
+ act(() => {
176
+ /* fire events that update state */
177
+ });
178
+ /* assert on the output */
179
+
180
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,G(e))})}function Kr(e){e!==Js&&e.next===null&&(Js===null?kd=Js=e:Js=Js.next=e),Vd=!0,le.actQueue!==null?Ty||(Ty=!0,cT()):wy||(wy=!0,cT())}function Ql(e,t){if(!Ry&&Vd){Ry=!0;do for(var r=!1,o=kd;o!==null;){if(e!==0){var u=o.pendingLanes;if(u===0)var c=0;else{var g=o.suspendedLanes,_=o.pingedLanes;c=(1<<31-gn(42|e)+1)-1,c&=u&~(g&~_),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(r=!0,uT(o,c))}else c=Pe,c=ut(o,o===dt?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==qi),(c&3)===0||tn(o,c)||(r=!0,uT(o,c));o=o.next}while(r);Ry=!1}}function d4(){Pu=window.event,km()}function km(){Vd=Ty=wy=!1;var e=0;Lo!==0&&b4()&&(e=Lo);for(var t=Ft(),r=null,o=kd;o!==null;){var u=o.next,c=sT(o,t);c===0?(o.next=null,r===null?kd=u:r.next=u,u===null&&(Js=r)):(r=o,(e!==0||(c&3)!==0)&&(Vd=!0)),o=u}Bt!==Uo&&Bt!==jd||Ql(e),Lo!==0&&(Lo=0)}function sT(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-gn(c),_=1<<g,R=u[g];R===-1?((_&r)===0||(_&o)!==0)&&(u[g]=wn(_,t)):R<=t&&(e.expiredLanes|=_),c&=~_}if(t=dt,r=Pe,r=ut(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==qi),o=e.callbackNode,r===0||e===t&&(lt===Ri||lt===Ai)||e.cancelPendingCommit!==null)return o!==null&&Vm(o),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||tn(e,r)){if(t=r&-r,t!==e.callbackPriority||le.actQueue!==null&&o!==Ay)Vm(o);else return t;switch(Ka(r)){case rr:case oa:r=xg;break;case Na:r=_s;break;case ed:r=Eg;break;default:r=_s}return o=lT.bind(null,e),le.actQueue!==null?(le.actQueue.push(o),r=Ay):r=_g(r,o),e.callbackPriority=t,e.callbackNode=r,t}return o!==null&&Vm(o),e.callbackPriority=2,e.callbackNode=null,2}function lT(e,t){if(vd=yd=!1,Pu=window.event,Bt!==Uo&&Bt!==jd)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Dr===Ud&&(Dr=vy),Pl()&&e.callbackNode!==r)return null;var o=Pe;return o=ut(e,e===dt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==qi),o===0?null:(Bw(e,o,t),sT(e,Ft()),e.callbackNode!=null&&e.callbackNode===r?lT.bind(null,e):null)}function uT(e,t){if(Pl())return null;yd=vd,vd=!1,Bw(e,t,!0)}function Vm(e){e!==Ay&&e!==null&&nL(e)}function cT(){le.actQueue!==null&&le.actQueue.push(function(){return km(),null}),H6(function(){(rt&(Pt|Qn))!==Wt?_g(Sg,d4):km()})}function Bm(){if(Lo===0){var e=bi;e===0&&(e=Jf,Jf<<=1,(Jf&261888)===0&&(Jf=256)),Lo=e}return Lo}function fT(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(De(e,"action"),Al(""+e))}function dT(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function h4(e,t,r,o,u){if(t==="submit"&&r&&r.stateNode===u){var c=fT((u[yn]||null).action),g=o.submitter;g&&(t=(t=g[yn]||null)?fT(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var _=new od("action","action",null,o,u);e.push({event:_,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Lo!==0){var R=g?dT(u,g):new FormData(u),D={pending:!0,data:R,method:u.method,action:c};Object.freeze(D),sm(r,D,null,R)}}else typeof c=="function"&&(_.preventDefault(),R=g?dT(u,g):new FormData(u),D={pending:!0,data:R,method:u.method,action:c},Object.freeze(D),sm(r,D,c,R))},currentTarget:u}]})}}function Lf(e,t,r){e.currentTarget=r;try{t(e)}catch(o){kg(o)}e.currentTarget=null}function hT(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r];e:{var u=void 0,c=o.event;if(o=o.listeners,t)for(var g=o.length-1;0<=g;g--){var _=o[g],R=_.instance,D=_.currentTarget;if(_=_.listener,R!==u&&c.isPropagationStopped())break e;R!==null?me(R,Lf,c,_,D):Lf(c,_,D),u=R}else for(g=0;g<o.length;g++){if(_=o[g],R=_.instance,D=_.currentTarget,_=_.listener,R!==u&&c.isPropagationStopped())break e;R!==null?me(R,Lf,c,_,D):Lf(c,_,D),u=R}}}}function We(e,t){Ny.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var r=t[wg];r===void 0&&(r=t[wg]=new Set);var o=e+"__bubble";r.has(o)||(pT(t,e,2,!1),r.add(o))}function Im(e,t,r){Ny.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),pT(r,e,o,t)}function Gm(e){if(!e[Bd]){e[Bd]=!0,cR.forEach(function(r){r!=="selectionchange"&&(Ny.has(r)||Im(r,!1,e),Im(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Bd]||(t[Bd]=!0,Im("selectionchange",!1,t))}}function pT(e,t,r,o){switch(PT(t)){case rr:var u=P4;break;case oa:u=Z4;break;default:u=og}r=u.bind(null,t,r,e),u=void 0,!Dg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),o?u!==void 0?e.addEventListener(t,r,{capture:!0,passive:u}):e.addEventListener(t,r,!0):u!==void 0?e.addEventListener(t,r,{passive:u}):e.addEventListener(t,r,!1)}function Ym(e,t,r,o,u){var c=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var g=o.tag;if(g===3||g===4){var _=o.stateNode.containerInfo;if(_===u)break;if(g===4)for(g=o.return;g!==null;){var R=g.tag;if((R===3||R===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;_!==null;){if(g=ye(_),g===null)return;if(R=g.tag,R===5||R===6||R===26||R===27){o=c=g;continue e}_=_.parentNode}}o=o.return}Tx(function(){var D=c,J=fp(r),K=[];e:{var Y=PR.get(e);if(Y!==void 0){var ie=od,Se=e;switch(e){case"keypress":if(Yc(r)===0)break e;case"keydown":case"keyup":ie=GL;break;case"focusin":Se="focus",ie=qg;break;case"focusout":Se="blur",ie=qg;break;case"beforeblur":case"afterblur":ie=qg;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=qR;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=OL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=XL;break;case GR:case YR:case $R:ie=zL;break;case XR:ie=ZL;break;case"scroll":case"scrollend":ie=DL;break;case"wheel":ie=FL;break;case"copy":case"cut":case"paste":ie=jL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=UR;break;case"toggle":case"beforetoggle":ie=KL}var Ee=(t&4)!==0,pt=!Ee&&(e==="scroll"||e==="scrollend"),tt=Ee?Y!==null?Y+"Capture":null:Y;Ee=[];for(var I=D,$;I!==null;){var P=I;if($=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||$===null||tt===null||(P=Nl(I,tt),P!=null&&Ee.push(Fl(I,P,$))),pt)break;I=I.return}0<Ee.length&&(Y=new ie(Y,Se,null,r,J),K.push({event:Y,listeners:Ee}))}}if((t&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",ie=e==="mouseout"||e==="pointerout",Y&&r!==su&&(Se=r.relatedTarget||r.fromElement)&&(ye(Se)||Se[bo]))break e;if((ie||Y)&&(Y=J.window===J?J:(Y=J.ownerDocument)?Y.defaultView||Y.parentWindow:window,ie?(Se=r.relatedTarget||r.toElement,ie=D,Se=Se?ye(Se):null,Se!==null&&(pt=T(Se),Ee=Se.tag,Se!==pt||Ee!==5&&Ee!==27&&Ee!==6)&&(Se=null)):(ie=null,Se=D),ie!==Se)){if(Ee=qR,P="onMouseLeave",tt="onMouseEnter",I="mouse",(e==="pointerout"||e==="pointerover")&&(Ee=UR,P="onPointerLeave",tt="onPointerEnter",I="pointer"),pt=ie==null?Y:Ce(ie),$=Se==null?Y:Ce(Se),Y=new Ee(P,I+"leave",ie,r,J),Y.target=pt,Y.relatedTarget=$,P=null,ye(J)===D&&(Ee=new Ee(tt,I+"enter",Se,r,J),Ee.target=$,Ee.relatedTarget=pt,P=Ee),pt=P,ie&&Se)t:{for(Ee=p4,tt=ie,I=Se,$=0,P=tt;P;P=Ee(P))$++;P=0;for(var pe=I;pe;pe=Ee(pe))P++;for(;0<$-P;)tt=Ee(tt),$--;for(;0<P-$;)I=Ee(I),P--;for(;$--;){if(tt===I||I!==null&&tt===I.alternate){Ee=tt;break t}tt=Ee(tt),I=Ee(I)}Ee=null}else Ee=null;ie!==null&&mT(K,Y,ie,Ee,!1),Se!==null&&pt!==null&&mT(K,pt,Se,Ee,!0)}}e:{if(Y=D?Ce(D):window,ie=Y.nodeName&&Y.nodeName.toLowerCase(),ie==="select"||ie==="input"&&Y.type==="file")var xe=Mx;else if(Cx(Y))if(BR)xe=R5;else{xe=w5;var Be=E5}else ie=Y.nodeName,!ie||ie.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?D&&Rl(D.elementType)&&(xe=Mx):xe=T5;if(xe&&(xe=xe(e,D))){Ox(K,xe,r,J);break e}Be&&Be(e,Y,D),e==="focusout"&&D&&Y.type==="number"&&D.memoizedProps.value!=null&&Wi(Y,"number",Y.value)}switch(Be=D?Ce(D):window,e){case"focusin":(Cx(Be)||Be.contentEditable==="true")&&(Ns=Be,Ug=D,pu=null);break;case"focusout":pu=Ug=Ns=null;break;case"mousedown":jg=!0;break;case"contextmenu":case"mouseup":case"dragend":jg=!1,kx(K,r,J);break;case"selectionchange":if(n6)break;case"keydown":case"keyup":kx(K,r,J)}var ze;if(zg)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else As?Nx(e,r)&&(Oe="onCompositionEnd"):e==="keydown"&&r.keyCode===jR&&(Oe="onCompositionStart");Oe&&(LR&&r.locale!=="ko"&&(As||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&As&&(ze=Rx()):(_o=J,Cg="value"in _o?_o.value:_o.textContent,As=!0)),Be=Hf(D,Oe),0<Be.length&&(Oe=new zR(Oe,e,null,r,J),K.push({event:Oe,listeners:Be}),ze?Oe.data=ze:(ze=Dx(r),ze!==null&&(Oe.data=ze)))),(ze=e6?b5(e,r):_5(e,r))&&(Oe=Hf(D,"onBeforeInput"),0<Oe.length&&(Be=new HL("onBeforeInput","beforeinput",null,r,J),K.push({event:Be,listeners:Oe}),Be.data=ze)),h4(K,e,D,r,J)}hT(K,t)})}function Fl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Hf(e,t){for(var r=t+"Capture",o=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=Nl(e,r),u!=null&&o.unshift(Fl(e,u,c)),u=Nl(e,t),u!=null&&o.push(Fl(e,u,c))),e.tag===3)return o;e=e.return}return[]}function p4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function mT(e,t,r,o,u){for(var c=t._reactName,g=[];r!==null&&r!==o;){var _=r,R=_.alternate,D=_.stateNode;if(_=_.tag,R!==null&&R===o)break;_!==5&&_!==26&&_!==27||D===null||(R=D,u?(D=Nl(r,c),D!=null&&g.unshift(Fl(r,D,R))):u||(D=Nl(r,c),D!=null&&g.push(Fl(r,D,R)))),r=r.return}g.length!==0&&e.push({event:t,listeners:g})}function $m(e,t){m5(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||OR||(OR=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var r={registrationNameDependencies:di,possibleRegistrationNames:Tg};Rl(e)||typeof t.is=="string"||y5(e,t,r),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Qt(e,t,r,o){t!==r&&(r=po(r),po(t)!==r&&(o[e]=t))}function m4(e,t,r){t.forEach(function(o){r[vT(o)]=o==="style"?Pm(e):e.getAttribute(o)})}function Wr(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function gT(e,t){return e=e.namespaceURI===nd||e.namespaceURI===Es?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function po(e){return Le(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Re(e)),Ae(e)),(typeof e=="string"?e:""+e).replace(D6,`
181
+ `).replace(C6,"")}function yT(e,t){return t=po(t),po(e)===t}function ct(e,t,r,o,u,c){switch(r){case"children":typeof o=="string"?(ns(o,t,!1),t==="body"||t==="textarea"&&o===""||Jo(e,o)):(typeof o=="number"||typeof o=="bigint")&&(ns(""+o,t,!1),t!=="body"&&Jo(e,""+o));break;case"className":Fi(e,"class",o);break;case"tabIndex":Fi(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Fi(e,r,o);break;case"style":xx(e,o,c);break;case"data":if(t!=="object"){Fi(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||r!=="href")){console.error(r==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',r,r),e.removeAttribute(r);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}De(o,r),o=Al(""+o),e.setAttribute(r,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?r==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o=="function"&&(u.encType==null&&u.method==null||Yd||(Yd=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),u.target==null||Gd||(Gd=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?r==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||u.type==="submit"||u.type==="image"||Id?t!=="button"||u.type==null||u.type==="submit"||Id?typeof o=="function"&&(u.name==null||gN||(gN=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),u.formEncType==null&&u.formMethod==null||Yd||(Yd=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),u.formTarget==null||Gd||(Gd=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Id=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Id=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(r==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof o=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(r==="formAction"?(t!=="input"&&ct(e,t,"name",u.name,u,null),ct(e,t,"formEncType",u.formEncType,u,null),ct(e,t,"formMethod",u.formMethod,u,null),ct(e,t,"formTarget",u.formTarget,u,null)):(ct(e,t,"encType",u.encType,u,null),ct(e,t,"method",u.method,u,null),ct(e,t,"target",u.target,u,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}De(o,r),o=Al(""+o),e.setAttribute(r,o);break;case"onClick":o!=null&&(typeof o!="function"&&Wr(r,o),e.onclick=ba);break;case"onScroll":o!=null&&(typeof o!="function"&&Wr(r,o),We("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!="function"&&Wr(r,o),We("scrollend",e));break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(r=o.__html,r!=null){if(u.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=r}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}De(o,r),r=Al(""+o),e.setAttributeNS(Ci,"xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?(De(o,r),e.setAttribute(r,""+o)):e.removeAttribute(r);break;case"inert":o!==""||$d[r]||($d[r]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",r));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":o===!0?e.setAttribute(r,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?(De(o,r),e.setAttribute(r,o)):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?(De(o,r),e.setAttribute(r,o)):e.removeAttribute(r);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(r):(De(o,r),e.setAttribute(r,o));break;case"popover":We("beforetoggle",e),We("toggle",e),Wa(e,"popover",o);break;case"xlinkActuate":vr(e,Ci,"xlink:actuate",o);break;case"xlinkArcrole":vr(e,Ci,"xlink:arcrole",o);break;case"xlinkRole":vr(e,Ci,"xlink:role",o);break;case"xlinkShow":vr(e,Ci,"xlink:show",o);break;case"xlinkTitle":vr(e,Ci,"xlink:title",o);break;case"xlinkType":vr(e,Ci,"xlink:type",o);break;case"xmlBase":vr(e,Dy,"xml:base",o);break;case"xmlLang":vr(e,Dy,"xml:lang",o);break;case"xmlSpace":vr(e,Dy,"xml:space",o);break;case"is":c!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Wa(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":yN||o==null||typeof o!="object"||(yN=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"?(r=Ex(r),Wa(e,r,o)):di.hasOwnProperty(r)&&o!=null&&typeof o!="function"&&Wr(r,o)}}function Xm(e,t,r,o,u,c){switch(r){case"style":xx(e,o,c);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(r=o.__html,r!=null){if(u.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=r}}break;case"children":typeof o=="string"?Jo(e,o):(typeof o=="number"||typeof o=="bigint")&&Jo(e,""+o);break;case"onScroll":o!=null&&(typeof o!="function"&&Wr(r,o),We("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!="function"&&Wr(r,o),We("scrollend",e));break;case"onClick":o!=null&&(typeof o!="function"&&Wr(r,o),e.onclick=ba);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(di.hasOwnProperty(r))o!=null&&typeof o!="function"&&Wr(r,o);else e:{if(r[0]==="o"&&r[1]==="n"&&(u=r.endsWith("Capture"),t=r.slice(2,u?r.length-7:void 0),c=e[yn]||null,c=c!=null?c[r]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof o=="function")){typeof c!="function"&&c!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,o,u);break e}r in e?e[r]=o:o===!0?e.setAttribute(r,""):Wa(e,r,o)}}}function sn(e,t,r){switch($m(t,r),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":We("error",e),We("load",e);var o=!1,u=!1,c;for(c in r)if(r.hasOwnProperty(c)){var g=r[c];if(g!=null)switch(c){case"src":o=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ct(e,t,c,g,r,null)}}u&&ct(e,t,"srcSet",r.srcSet,r,null),o&&ct(e,t,"src",r.src,r,null);return;case"input":rn("input",r),We("invalid",e);var _=c=g=u=null,R=null,D=null;for(o in r)if(r.hasOwnProperty(o)){var J=r[o];if(J!=null)switch(o){case"name":u=J;break;case"type":g=J;break;case"checked":R=J;break;case"defaultChecked":D=J;break;case"value":c=J;break;case"defaultValue":_=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ct(e,t,o,J,r,null)}}Mc(e,r),bl(e,c,_,R,D,g,u,!1);return;case"select":rn("select",r),We("invalid",e),o=g=c=null;for(u in r)if(r.hasOwnProperty(u)&&(_=r[u],_!=null))switch(u){case"value":c=_;break;case"defaultValue":g=_;break;case"multiple":o=_;default:ct(e,t,u,_,r,null)}Uc(e,r),t=c,r=g,e.multiple=!!o,t!=null?eo(e,!!o,t,!1):r!=null&&eo(e,!!o,r,!0);return;case"textarea":rn("textarea",r),We("invalid",e),c=u=o=null;for(g in r)if(r.hasOwnProperty(g)&&(_=r[g],_!=null))switch(g){case"value":o=_;break;case"defaultValue":u=_;break;case"children":c=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ct(e,t,g,_,r,null)}jc(e,r),_l(e,o,u,c);return;case"option":qc(e,r);for(R in r)r.hasOwnProperty(R)&&(o=r[R],o!=null)&&(R==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":ct(e,t,R,o,r,null));return;case"dialog":We("beforetoggle",e),We("toggle",e),We("cancel",e),We("close",e);break;case"iframe":case"object":We("load",e);break;case"video":case"audio":for(o=0;o<Yu.length;o++)We(Yu[o],e);break;case"image":We("error",e),We("load",e);break;case"details":We("toggle",e);break;case"embed":case"source":case"link":We("error",e),We("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in r)if(r.hasOwnProperty(D)&&(o=r[D],o!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ct(e,t,D,o,r,null)}return;default:if(Rl(t)){for(J in r)r.hasOwnProperty(J)&&(o=r[J],o!==void 0&&Xm(e,t,J,o,r,void 0));return}}for(_ in r)r.hasOwnProperty(_)&&(o=r[_],o!=null&&ct(e,t,_,o,r,null))}function g4(e,t,r,o){switch($m(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,g=null,_=null,R=null,D=null,J=null;for(ie in r){var K=r[ie];if(r.hasOwnProperty(ie)&&K!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":R=K;default:o.hasOwnProperty(ie)||ct(e,t,ie,null,o,K)}}for(var Y in o){var ie=o[Y];if(K=r[Y],o.hasOwnProperty(Y)&&(ie!=null||K!=null))switch(Y){case"type":c=ie;break;case"name":u=ie;break;case"checked":D=ie;break;case"defaultChecked":J=ie;break;case"value":g=ie;break;case"defaultValue":_=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ie!==K&&ct(e,t,Y,ie,o,K)}}t=r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||mN||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),mN=!0),!t||o||pN||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),pN=!0),Ki(e,g,_,R,D,J,c,u);return;case"select":ie=g=_=Y=null;for(c in r)if(R=r[c],r.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":ie=R;default:o.hasOwnProperty(c)||ct(e,t,c,null,o,R)}for(u in o)if(c=o[u],R=r[u],o.hasOwnProperty(u)&&(c!=null||R!=null))switch(u){case"value":Y=c;break;case"defaultValue":_=c;break;case"multiple":g=c;default:c!==R&&ct(e,t,u,c,o,R)}o=_,t=g,r=ie,Y!=null?eo(e,!!t,Y,!1):!!r!=!!t&&(o!=null?eo(e,!!t,o,!0):eo(e,!!t,t?[]:"",!1));return;case"textarea":ie=Y=null;for(_ in r)if(u=r[_],r.hasOwnProperty(_)&&u!=null&&!o.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:ct(e,t,_,null,o,u)}for(g in o)if(u=o[g],c=r[g],o.hasOwnProperty(g)&&(u!=null||c!=null))switch(g){case"value":Y=u;break;case"defaultValue":ie=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:u!==c&&ct(e,t,g,u,o,c)}Lc(e,Y,ie);return;case"option":for(var Se in r)Y=r[Se],r.hasOwnProperty(Se)&&Y!=null&&!o.hasOwnProperty(Se)&&(Se==="selected"?e.selected=!1:ct(e,t,Se,null,o,Y));for(R in o)Y=o[R],ie=r[R],o.hasOwnProperty(R)&&Y!==ie&&(Y!=null||ie!=null)&&(R==="selected"?e.selected=Y&&typeof Y!="function"&&typeof Y!="symbol":ct(e,t,R,Y,o,ie));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in r)Y=r[Ee],r.hasOwnProperty(Ee)&&Y!=null&&!o.hasOwnProperty(Ee)&&ct(e,t,Ee,null,o,Y);for(D in o)if(Y=o[D],ie=r[D],o.hasOwnProperty(D)&&Y!==ie&&(Y!=null||ie!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ct(e,t,D,Y,o,ie)}return;default:if(Rl(t)){for(var pt in r)Y=r[pt],r.hasOwnProperty(pt)&&Y!==void 0&&!o.hasOwnProperty(pt)&&Xm(e,t,pt,void 0,o,Y);for(J in o)Y=o[J],ie=r[J],!o.hasOwnProperty(J)||Y===ie||Y===void 0&&ie===void 0||Xm(e,t,J,Y,o,ie);return}}for(var tt in r)Y=r[tt],r.hasOwnProperty(tt)&&Y!=null&&!o.hasOwnProperty(tt)&&ct(e,t,tt,null,o,Y);for(K in o)Y=o[K],ie=r[K],!o.hasOwnProperty(K)||Y===ie||Y==null&&ie==null||ct(e,t,K,Y,o,ie)}function vT(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Pm(e){var t={};e=e.style;for(var r=0;r<e.length;r++){var o=e[r];t[o]=e.getPropertyValue(o)}return t}function bT(e,t,r){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var o,u=o="",c;for(c in t)if(t.hasOwnProperty(c)){var g=t[c];g!=null&&typeof g!="boolean"&&g!==""&&(c.indexOf("--")===0?(Ne(g,c),o+=u+c+":"+(""+g).trim()):typeof g!="number"||g===0||DR.has(c)?(Ne(g,c),o+=u+c.replace(wR,"-$1").toLowerCase().replace(TR,"-ms-")+":"+(""+g).trim()):o+=u+c.replace(wR,"-$1").toLowerCase().replace(TR,"-ms-")+":"+g+"px",u=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=po(o),po(t)!==o&&(r.style=Pm(e)))}}function nr(e,t,r,o,u,c){if(u.delete(r),e=e.getAttribute(r),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(De(o,t),e===""+o)return}Qt(t,e,o,c)}function _T(e,t,r,o,u,c){if(u.delete(r),e=e.getAttribute(r),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}Qt(t,e,o,c)}function Zm(e,t,r,o,u,c){if(u.delete(r),e=e.getAttribute(r),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(De(o,r),e===""+o)return}Qt(t,e,o,c)}function ST(e,t,r,o,u,c){if(u.delete(r),e=e.getAttribute(r),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(De(o,t),e===""+o))return}Qt(t,e,o,c)}function Qm(e,t,r,o,u,c){if(u.delete(r),e=e.getAttribute(r),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(De(o,t),r=Al(""+o),e===r)return}Qt(t,e,o,c)}function xT(e,t,r,o){for(var u={},c=new Set,g=e.attributes,_=0;_<g.length;_++)switch(g[_].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:c.add(g[_].name)}if(Rl(t)){for(var R in r)if(r.hasOwnProperty(R)){var D=r[R];if(D!=null){if(di.hasOwnProperty(R))typeof D!="function"&&Wr(R,D);else if(r.suppressHydrationWarning!==!0)switch(R){case"children":typeof D!="string"&&typeof D!="number"||Qt("children",e.textContent,D,u);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":g=e.innerHTML,D=D?D.__html:void 0,D!=null&&(D=gT(e,D),Qt(R,g,D,u));continue;case"style":c.delete(R),bT(e,D,u);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":c.delete(R.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",R);continue;case"className":c.delete("class"),g=Qi(e,"class",D),Qt("className",g,D,u);continue;default:o.context===Ia&&t!=="svg"&&t!=="math"?c.delete(R.toLowerCase()):c.delete(R),g=Qi(e,R,D),Qt(R,g,D,u)}}}}else for(D in r)if(r.hasOwnProperty(D)&&(R=r[D],R!=null)){if(di.hasOwnProperty(D))typeof R!="function"&&Wr(D,R);else if(r.suppressHydrationWarning!==!0)switch(D){case"children":typeof R!="string"&&typeof R!="number"||Qt("children",e.textContent,R,u);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":g=e.innerHTML,R=R?R.__html:void 0,R!=null&&(R=gT(e,R),g!==R&&(u[D]={__html:g}));continue;case"className":nr(e,D,"class",R,c,u);continue;case"tabIndex":nr(e,D,"tabindex",R,c,u);continue;case"style":c.delete(D),bT(e,R,u);continue;case"multiple":c.delete(D),Qt(D,e.multiple,R,u);continue;case"muted":c.delete(D),Qt(D,e.muted,R,u);continue;case"autoFocus":c.delete("autofocus"),Qt(D,e.autofocus,R,u);continue;case"data":if(t!=="object"){c.delete(D),g=e.getAttribute("data"),Qt(D,g,R,u);continue}case"src":case"href":if(!(R!==""||t==="a"&&D==="href"||t==="object"&&D==="data")){console.error(D==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',D,D);continue}Qm(e,D,D,R,c,u);continue;case"action":case"formAction":if(g=e.getAttribute(D),typeof R=="function"){c.delete(D.toLowerCase()),D==="formAction"?(c.delete("name"),c.delete("formenctype"),c.delete("formmethod"),c.delete("formtarget")):(c.delete("enctype"),c.delete("method"),c.delete("target"));continue}else if(g===O6){c.delete(D.toLowerCase()),Qt(D,"function",R,u);continue}Qm(e,D,D.toLowerCase(),R,c,u);continue;case"xlinkHref":Qm(e,D,"xlink:href",R,c,u);continue;case"contentEditable":Zm(e,D,"contenteditable",R,c,u);continue;case"spellCheck":Zm(e,D,"spellcheck",R,c,u);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Zm(e,D,D,R,c,u);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":_T(e,D,D.toLowerCase(),R,c,u);continue;case"capture":case"download":e:{_=e;var J=g=D,K=u;if(c.delete(J),_=_.getAttribute(J),_===null)switch(typeof R){case"undefined":case"function":case"symbol":break e;default:if(R===!1)break e}else if(R!=null)switch(typeof R){case"function":case"symbol":break;case"boolean":if(R===!0&&_==="")break e;break;default:if(De(R,g),_===""+R)break e}Qt(g,_,R,K)}continue;case"cols":case"rows":case"size":case"span":e:{if(_=e,J=g=D,K=u,c.delete(J),_=_.getAttribute(J),_===null)switch(typeof R){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(R)||1>R)break e}else if(R!=null)switch(typeof R){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(R)||1>R)&&(De(R,g),_===""+R))break e}Qt(g,_,R,K)}continue;case"rowSpan":ST(e,D,"rowspan",R,c,u);continue;case"start":ST(e,D,D,R,c,u);continue;case"xHeight":nr(e,D,"x-height",R,c,u);continue;case"xlinkActuate":nr(e,D,"xlink:actuate",R,c,u);continue;case"xlinkArcrole":nr(e,D,"xlink:arcrole",R,c,u);continue;case"xlinkRole":nr(e,D,"xlink:role",R,c,u);continue;case"xlinkShow":nr(e,D,"xlink:show",R,c,u);continue;case"xlinkTitle":nr(e,D,"xlink:title",R,c,u);continue;case"xlinkType":nr(e,D,"xlink:type",R,c,u);continue;case"xmlBase":nr(e,D,"xml:base",R,c,u);continue;case"xmlLang":nr(e,D,"xml:lang",R,c,u);continue;case"xmlSpace":nr(e,D,"xml:space",R,c,u);continue;case"inert":R!==""||$d[D]||($d[D]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",D)),_T(e,D,D,R,c,u);continue;default:if(!(2<D.length)||D[0]!=="o"&&D[0]!=="O"||D[1]!=="n"&&D[1]!=="N"){_=Ex(D),g=!1,o.context===Ia&&t!=="svg"&&t!=="math"?c.delete(_.toLowerCase()):(J=D.toLowerCase(),J=rd.hasOwnProperty(J)&&rd[J]||null,J!==null&&J!==D&&(g=!0,c.delete(J)),c.delete(_));e:if(J=e,K=_,_=R,tr(K))if(J.hasAttribute(K))J=J.getAttribute(K),De(_,K),_=J===""+_?_:J;else{switch(typeof _){case"function":case"symbol":break e;case"boolean":if(J=K.toLowerCase().slice(0,5),J!=="data-"&&J!=="aria-")break e}_=_===void 0?void 0:null}else _=void 0;g||Qt(D,_,R,u)}}}return 0<c.size&&r.suppressHydrationWarning!==!0&&m4(e,c,u),Object.keys(u).length===0?null:u}function y4(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function ET(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function v4(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),o=0;o<r.length;o++){var u=r[o],c=u.transferSize,g=u.initiatorType,_=u.duration;if(c&&_&&ET(g)){for(g=0,_=u.responseEnd,o+=1;o<r.length;o++){var R=r[o],D=R.startTime;if(D>_)break;var J=R.transferSize,K=R.initiatorType;J&&ET(K)&&(R=R.responseEnd,g+=J*(R<_?1:(_-D)/(R-D)))}if(--o,t+=8*(c+g)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function kf(e){return e.nodeType===9?e:e.ownerDocument}function wT(e){switch(e){case Es:return Ws;case nd:return Pd;default:return Ia}}function TT(e,t){if(e===Ia)switch(t){case"svg":return Ws;case"math":return Pd;default:return Ia}return e===Ws&&t==="foreignObject"?Ia:e}function Fm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function b4(){var e=window.event;return e&&e.type==="popstate"?e===qy?!1:(qy=e,!0):(qy=null,!1)}function Jl(){var e=window.event;return e&&e!==Pu?e.type:null}function Kl(){var e=window.event;return e&&e!==Pu?e.timeStamp:-1.1}function _4(e){setTimeout(function(){throw e})}function S4(e,t,r){switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&e.focus();break;case"img":r.src?e.src=r.src:r.srcSet&&(e.srcset=r.srcSet)}}function x4(){}function E4(e,t,r,o){g4(e,t,r,o),e[yn]=o}function RT(e){Jo(e,"")}function w4(e,t,r){e.nodeValue=r}function AT(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[yn]||null;if(t!==null){var r=_e(e);r!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,me(r,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,me(r,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function mo(e){return e==="head"}function T4(e,t){e.removeChild(t)}function R4(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function NT(e,t){var r=t,o=0;do{var u=r.nextSibling;if(e.removeChild(r),u&&u.nodeType===8)if(r=u.data,r===Xu||r===Xd){if(o===0){e.removeChild(u),ys(t);return}o--}else if(r===$u||r===Ho||r===Mi||r===Ks||r===Oi)o++;else if(r===q6)Wl(e.ownerDocument.documentElement);else if(r===U6){r=e.ownerDocument.head,Wl(r);for(var c=r.firstChild;c;){var g=c.nextSibling,_=c.nodeName;c[iu]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&c.rel.toLowerCase()==="stylesheet"||r.removeChild(c),c=g}}else r===z6&&Wl(e.ownerDocument.body);r=u}while(r);ys(t)}function DT(e,t){var r=e;e=0;do{var o=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),o&&o.nodeType===8)if(r=o.data,r===Xu){if(e===0)break;e--}else r!==$u&&r!==Ho&&r!==Mi&&r!==Ks||e++;r=o}while(r)}function A4(e){DT(e,!0)}function N4(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function D4(e){e.nodeValue=""}function C4(e){DT(e,!1)}function O4(e,t){t=t[j6],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function M4(e,t){e.nodeValue=t}function Jm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Jm(r),te(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function q4(e,t,r,o){for(;e.nodeType===1;){var u=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[iu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){De(u.name,"name");var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Gn(e.nextSibling),e===null)break}return null}function z4(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Gn(e.nextSibling),e===null))return null;return e}function CT(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gn(e.nextSibling),e===null))return null;return e}function Km(e){return e.data===Ho||e.data===Mi}function Wm(e){return e.data===Ks||e.data===Ho&&e.ownerDocument.readyState!==bN}function U4(e,t){var r=e.ownerDocument;if(e.data===Mi)e._reactRetry=t;else if(e.data!==Ho||r.readyState!==bN)t();else{var o=function(){t(),r.removeEventListener("DOMContentLoaded",o)};r.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Gn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===$u||t===Ks||t===Ho||t===Mi||t===Oi||t===Cy||t===vN)break;if(t===Xu||t===Xd)return null}}return e}function OT(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),r={},o=e.attributes,u=0;u<o.length;u++){var c=o[u];r[vT(c.name)]=c.name.toLowerCase()==="style"?Pm(e):c.value}return{type:t,props:r}}return e.nodeType===8?e.data===Oi?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function MT(e,t,r){return r===null||r[M6]!==!0?(e.nodeValue===t?e=null:(t=po(t),e=po(e.nodeValue)===t?null:e.nodeValue),e):null}function eg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r===Xu||r===Xd){if(t===0)return Gn(e.nextSibling);t--}else r!==$u&&r!==Ks&&r!==Ho&&r!==Mi&&r!==Oi||t++}e=e.nextSibling}return null}function qT(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r===$u||r===Ks||r===Ho||r===Mi||r===Oi){if(t===0)return e;t--}else r!==Xu&&r!==Xd||t++}e=e.previousSibling}return null}function j4(e){ys(e)}function L4(e){ys(e)}function H4(e){ys(e)}function zT(e,t,r,o,u){switch(u&&Fo(e,o.ancestorInfo),t=kf(r),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function k4(e,t,r,o){if(!r[bo]&&_e(r)){var u=r.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",u,u,u)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(u=r.attributes;u.length;)r.removeAttributeNode(u[0]);sn(r,e,t),r[ln]=o,r[yn]=t}function Wl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);te(e)}function Vf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function UT(e,t,r){var o=el;if(o&&typeof t=="string"&&t){var u=Nn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof r=="string"&&(u+='[crossorigin="'+r+'"]'),TN.has(u)||(TN.add(u),e={rel:e,crossOrigin:r,href:t},o.querySelector(u)===null&&(t=o.createElement("link"),sn(t,"link",e),Me(t),o.head.appendChild(t)))}}function jT(e,t,r,o){var u=(u=yo.current)?Vf(u):null;if(!u)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(r=ms(r.href),t=Ie(u).hoistableStyles,o=t.get(r),o||(o={type:"style",instance:null,count:0,state:null},t.set(r,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=ms(r.href);var c=Ie(u).hoistableStyles,g=c.get(e);if(!g&&(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:zi,preload:null}},c.set(e,g),(c=u.querySelector(eu(e)))&&!c._p&&(g.instance=c,g.state.loading=Zu|pr),!mr.has(e))){var _={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy};mr.set(e,_),c||V4(u,e,_,g.state)}if(t&&o===null)throw r=`
182
+
183
+ - `+Bf(t)+`
184
+ + `+Bf(r),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+r);return g}if(t&&o!==null)throw r=`
185
+
186
+ - `+Bf(t)+`
187
+ + `+Bf(r),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+r);return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(r=gs(r),t=Ie(u).hoistableScripts,o=t.get(r),o||(o={type:"script",instance:null,count:0,state:null},t.set(r,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Bf(e){var t=0,r="<link";return typeof e.rel=="string"?(t++,r+=' rel="'+e.rel+'"'):Er.call(e,"rel")&&(t++,r+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,r+=' href="'+e.href+'"'):Er.call(e,"href")&&(t++,r+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,r+=' precedence="'+e.precedence+'"'):Er.call(e,"precedence")&&(t++,r+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(r+=" ..."),r+" />"}function ms(e){return'href="'+Nn(e)+'"'}function eu(e){return'link[rel="stylesheet"]['+e+"]"}function LT(e){return Fe({},e,{"data-precedence":e.precedence,precedence:null})}function V4(e,t,r,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=Zu:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=Zu}),t.addEventListener("error",function(){return o.loading|=EN}),sn(t,"link",r),Me(t),e.head.appendChild(t))}function gs(e){return'[src="'+Nn(e)+'"]'}function tu(e){return"script[async]"+e}function HT(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Nn(r.href)+'"]');if(o)return t.instance=o,Me(o),o;var u=Fe({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Me(o),sn(o,"style",u),If(o,r.precedence,e),t.instance=o;case"stylesheet":u=ms(r.href);var c=e.querySelector(eu(u));if(c)return t.state.loading|=pr,t.instance=c,Me(c),c;o=LT(r),(u=mr.get(u))&&tg(o,u),c=(e.ownerDocument||e).createElement("link"),Me(c);var g=c;return g._p=new Promise(function(_,R){g.onload=_,g.onerror=R}),sn(c,"link",o),t.state.loading|=pr,If(c,r.precedence,e),t.instance=c;case"script":return c=gs(r.src),(u=e.querySelector(tu(c)))?(t.instance=u,Me(u),u):(o=r,(u=mr.get(c))&&(o=Fe({},r),ng(o,u)),e=e.ownerDocument||e,u=e.createElement("script"),Me(u),sn(u,"link",o),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&pr)===zi&&(o=t.instance,t.state.loading|=pr,If(o,r.precedence,e));return t.instance}function If(e,t,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,c=u,g=0;g<o.length;g++){var _=o[g];if(_.dataset.precedence===t)c=_;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function tg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ng(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function kT(e,t,r){if(Zd===null){var o=new Map,u=Zd=new Map;u.set(r,o)}else u=Zd,o=u.get(r),o||(o=new Map,u.set(r,o));if(o.has(e))return o;for(o.set(e,null),r=r.getElementsByTagName(e),u=0;u<r.length;u++){var c=r[u];if(!(c[iu]||c[ln]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!==Es){var g=c.getAttribute(t)||"";g=e+g;var _=o.get(g);_?_.push(c):o.set(g,[c])}}return o}function VT(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function B4(e,t,r){var o=!r.ancestorInfo.containerTagInScope;if(r.context===Ws||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){o&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var u=t.onError,c=t.disabled;r=[],t.onLoad&&r.push("`onLoad`"),u&&r.push("`onError`"),c!=null&&r.push("`disabled`"),u=y4(r,"and"),u+=r.length===1?" prop":" props",c=r.length===1?"an "+u:"the "+u,r.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,c,u)}o&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return t.rel==="stylesheet"?(e=t.precedence,t=t.disabled,typeof e!="string"&&o&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null):!0;case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){o&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function BT(e){return!(e.type==="stylesheet"&&(e.state.loading&wN)===zi)}function I4(e,t,r,o){if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(r.state.loading&pr)===zi){if(r.instance===null){var u=ms(o.href),c=t.querySelector(eu(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Gf.bind(e),t.then(e,e)),r.state.loading|=pr,r.instance=c,Me(c);return}c=t.ownerDocument||t,o=LT(o),(u=mr.get(u))&&tg(o,u),c=c.createElement("link"),Me(c);var g=c;g._p=new Promise(function(_,R){g.onload=_,g.onerror=R}),sn(c,"link",o),r.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&wN)===zi&&(e.count++,r=Gf.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}function G4(e,t){return e.stylesheets&&e.count===0&&Yf(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var o=setTimeout(function(){if(e.stylesheets&&Yf(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},k6+t);0<e.imgBytes&&Uy===0&&(Uy=125*v4()*B6);var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Yf(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Uy?50:V6)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(u)}}:null}function Gf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Yf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Qd=new Map,t.forEach(Y4,e),Qd=null,Gf.call(e))}function Y4(e,t){if(!(t.state.loading&pr)){var r=Qd.get(e);if(r)var o=r.get(jy);else{r=new Map,Qd.set(e,r);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var g=u[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(r.set(g.dataset.precedence,g),o=g)}o&&r.set(jy,o)}u=t.instance,g=u.getAttribute("data-precedence"),c=r.get(g)||o,c===o&&r.set(jy,u),r.set(g,u),this.count++,o=Gf.bind(this),u.addEventListener("load",o),u.addEventListener("error",o),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=pr}}function $4(e,t,r,o,u,c,g,_,R){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=qi,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Rn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rn(0),this.hiddenUpdates=Rn(null),this.identifierPrefix=o,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=r?"hydrateRoot()":"createRoot()"}function IT(e,t,r,o,u,c,g,_,R,D,J,K){return e=new $4(e,t,r,g,R,D,J,K,_),t=f6,c===!0&&(t|=dn|wr),t|=$e,c=b(3,null,null,t),e.current=c,c.stateNode=e,t=Cp(),oi(t),e.pooledCache=t,oi(t),c.memoizedState={element:o,isDehydrated:r,cache:t},Up(c),e}function GT(e){return e?(e=Eo,e):Eo}function rg(e,t,r,o,u,c){if(fn&&typeof fn.onScheduleFiberRoot=="function")try{fn.onScheduleFiberRoot(Ss,o,r)}catch(g){ra||(ra=!0,console.error("React instrumentation encountered an error: %o",g))}u=GT(u),o.context===null?o.context=u:o.pendingContext=u,na&&$n!==null&&!DN&&(DN=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
188
+
189
+ Check the render method of %s.`,G($n)||"Unknown")),o=so(t),o.payload={element:r},c=c===void 0?null:c,c!==null&&(typeof c!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",c),o.callback=c),r=lo(e,o,t),r!==null&&(Br(t,"root.render()",null),Rt(r,e,t),Ul(r,e,t))}function YT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function ag(e,t){YT(e,t),(e=e.alternate)&&YT(e,t)}function $T(e){if(e.tag===13||e.tag===31){var t=cn(e,67108864);t!==null&&Rt(t,e,67108864),ag(e,67108864)}}function XT(e){if(e.tag===13||e.tag===31){var t=In(e);t=Yt(t);var r=cn(e,t);r!==null&&Rt(r,e,t),ag(e,t)}}function X4(){return $n}function P4(e,t,r,o){var u=le.T;le.T=null;var c=it.p;try{it.p=rr,og(e,t,r,o)}finally{it.p=c,le.T=u}}function Z4(e,t,r,o){var u=le.T;le.T=null;var c=it.p;try{it.p=oa,og(e,t,r,o)}finally{it.p=c,le.T=u}}function og(e,t,r,o){if(Jd){var u=ig(o);if(u===null)Ym(e,t,o,Kd,r),ZT(e,o);else if(Q4(u,e,t,r,o))o.stopPropagation();else if(ZT(e,o),t&4&&-1<G6.indexOf(e)){for(;u!==null;){var c=_e(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=vt(c.pendingLanes);if(g!==0){var _=c;for(_.pendingLanes|=2,_.entangledLanes|=2;g;){var R=1<<31-gn(g);_.entanglements[1]|=R,g&=~R}Kr(c),(rt&(Pt|Qn))===Wt&&(zd=Ft()+rN,Ql(0))}}break;case 31:case 13:_=cn(c,2),_!==null&&Rt(_,c,2),ds(),ag(c,2)}if(c=ig(o),c===null&&Ym(e,t,o,Kd,r),c===u)break;u=c}u!==null&&o.stopPropagation()}else Ym(e,t,o,null,r)}}function ig(e){return e=fp(e),sg(e)}function sg(e){if(Kd=null,e=ye(e),e!==null){var t=T(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=C(t),e!==null)return e;e=null}else if(r===31){if(e=E(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Kd=e,null}function PT(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return rr;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return oa;case"message":switch(oL()){case Sg:return rr;case xg:return oa;case _s:case iL:return Na;case Eg:return ed;default:return Na}default:return Na}}function ZT(e,t){switch(e){case"focusin":case"focusout":ko=null;break;case"dragenter":case"dragleave":Vo=null;break;case"mouseover":case"mouseout":Bo=null;break;case"pointerover":case"pointerout":Fu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ju.delete(t.pointerId)}}function nu(e,t,r,o,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:c,targetContainers:[u]},t!==null&&(t=_e(t),t!==null&&$T(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Q4(e,t,r,o,u){switch(t){case"focusin":return ko=nu(ko,e,t,r,o,u),!0;case"dragenter":return Vo=nu(Vo,e,t,r,o,u),!0;case"mouseover":return Bo=nu(Bo,e,t,r,o,u),!0;case"pointerover":var c=u.pointerId;return Fu.set(c,nu(Fu.get(c)||null,e,t,r,o,u)),!0;case"gotpointercapture":return c=u.pointerId,Ju.set(c,nu(Ju.get(c)||null,e,t,r,o,u)),!0}return!1}function QT(e){var t=ye(e.target);if(t!==null){var r=T(t);if(r!==null){if(t=r.tag,t===13){if(t=C(r),t!==null){e.blockedOn=t,O(e.priority,function(){XT(r)});return}}else if(t===31){if(t=E(r),t!==null){e.blockedOn=t,O(e.priority,function(){XT(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $f(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=ig(e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r),u=o;su!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),su=u,r.target.dispatchEvent(o),su===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),su=null}else return t=_e(r),t!==null&&$T(t),e.blockedOn=r,!1;t.shift()}return!0}function FT(e,t,r){$f(e)&&r.delete(t)}function F4(){Ly=!1,ko!==null&&$f(ko)&&(ko=null),Vo!==null&&$f(Vo)&&(Vo=null),Bo!==null&&$f(Bo)&&(Bo=null),Fu.forEach(FT),Ju.forEach(FT)}function Xf(e,t){e.blockedOn===t&&(e.blockedOn=null,Ly||(Ly=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,F4)))}function JT(e){Wd!==e&&(Wd=e,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,function(){Wd===e&&(Wd=null);for(var t=0;t<e.length;t+=3){var r=e[t],o=e[t+1],u=e[t+2];if(typeof o!="function"){if(sg(o||r)===null)continue;break}var c=_e(r);c!==null&&(e.splice(t,3),t-=3,r={pending:!0,data:u,method:r.method,action:o},Object.freeze(r),sm(c,r,o,u))}}))}function ys(e){function t(R){return Xf(R,e)}ko!==null&&Xf(ko,e),Vo!==null&&Xf(Vo,e),Bo!==null&&Xf(Bo,e),Fu.forEach(t),Ju.forEach(t);for(var r=0;r<Io.length;r++){var o=Io[r];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Io.length&&(r=Io[0],r.blockedOn===null);)QT(r),r.blockedOn===null&&Io.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(o=0;o<r.length;o+=3){var u=r[o],c=r[o+1],g=u[yn]||null;if(typeof c=="function")g||JT(r);else if(g){var _=null;if(c&&c.hasAttribute("formAction")){if(u=c,g=c[yn]||null)_=g.formAction;else if(sg(u)!==null)continue}else _=g.action;typeof _=="function"?r[o+1]=_:(r.splice(o,3),o-=3),JT(r)}}}function KT(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return u=g})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),o||setTimeout(r,20)}function r(){if(!o&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function lg(e){this._internalRoot=e}function Pf(e){this._internalRoot=e}function WT(e){e[bo]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var zt=Q6(),ug=Yi(),J4=Cz(),Fe=Object.assign,K4=Symbol.for("react.element"),ea=Symbol.for("react.transitional.element"),vs=Symbol.for("react.portal"),bs=Symbol.for("react.fragment"),Zf=Symbol.for("react.strict_mode"),cg=Symbol.for("react.profiler"),fg=Symbol.for("react.consumer"),ta=Symbol.for("react.context"),ru=Symbol.for("react.forward_ref"),dg=Symbol.for("react.suspense"),hg=Symbol.for("react.suspense_list"),Qf=Symbol.for("react.memo"),Yn=Symbol.for("react.lazy"),pg=Symbol.for("react.activity"),W4=Symbol.for("react.memo_cache_sentinel"),eR=Symbol.iterator,eL=Symbol.for("react.client.reference"),$t=Array.isArray,le=ug.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it=J4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tL=Object.freeze({pending:!1,data:null,method:null,action:null}),mg=[],gg=[],Aa=-1,go=V(null),au=V(null),yo=V(null),Ff=V(null),ou=0,tR,nR,rR,aR,oR,iR,sR;de.__reactDisabledLog=!0;var yg,lR,vg=!1,bg=new(typeof WeakMap=="function"?WeakMap:Map),$n=null,na=!1,Er=Object.prototype.hasOwnProperty,_g=zt.unstable_scheduleCallback,nL=zt.unstable_cancelCallback,rL=zt.unstable_shouldYield,aL=zt.unstable_requestPaint,Ft=zt.unstable_now,oL=zt.unstable_getCurrentPriorityLevel,Sg=zt.unstable_ImmediatePriority,xg=zt.unstable_UserBlockingPriority,_s=zt.unstable_NormalPriority,iL=zt.unstable_LowPriority,Eg=zt.unstable_IdlePriority,sL=zt.log,lL=zt.unstable_setDisableYieldValue,Ss=null,fn=null,ra=!1,aa=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",gn=Math.clz32?Math.clz32:en,uL=Math.log,cL=Math.LN2,Jf=256,Kf=262144,Wf=4194304,rr=2,oa=8,Na=32,ed=268435456,vo=Math.random().toString(36).slice(2),ln="__reactFiber$"+vo,yn="__reactProps$"+vo,bo="__reactContainer$"+vo,wg="__reactEvents$"+vo,fL="__reactListeners$"+vo,dL="__reactHandles$"+vo,uR="__reactResources$"+vo,iu="__reactMarker$"+vo,cR=new Set,di={},Tg={},hL={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},pL=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fR={},dR={},mL=/[\n"\\]/g,hR=!1,pR=!1,mR=!1,gR=!1,yR=!1,vR=!1,bR=["value","defaultValue"],_R=!1,SR=/["'&<>\n\t]|^\s|\s$/,gL="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),xR="applet caption html table td th marquee object template foreignObject desc title".split(" "),yL=xR.concat(["button"]),vL="dd dt li option optgroup p rp rt".split(" "),ER={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},td={},Rg={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},wR=/([A-Z])/g,TR=/^ms-/,bL=/^(?:webkit|moz|o)[A-Z]/,_L=/^-ms-/,SL=/-(.)/g,RR=/;\s*$/,xs={},Ag={},AR=!1,NR=!1,DR=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),nd="http://www.w3.org/1998/Math/MathML",Es="http://www.w3.org/2000/svg",xL=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),rd={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},CR={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},ws={},EL=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wL=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),OR=!1,vn={},MR=/^on./,TL=/^on[^A-Z]/,RL=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),AL=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),NL=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,su=null,Ts=null,Rs=null,Ng=!1,ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dg=!1;if(ia)try{var lu={};Object.defineProperty(lu,"passive",{get:function(){Dg=!0}}),window.addEventListener("test",lu,lu),window.removeEventListener("test",lu,lu)}catch{Dg=!1}var _o=null,Cg=null,ad=null,hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},od=Dn(hi),uu=Fe({},hi,{view:0,detail:0}),DL=Dn(uu),Og,Mg,cu,id=Fe({},uu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cu&&(cu&&e.type==="mousemove"?(Og=e.screenX-cu.screenX,Mg=e.screenY-cu.screenY):Mg=Og=0,cu=e),Og)},movementY:function(e){return"movementY"in e?e.movementY:Mg}}),qR=Dn(id),CL=Fe({},id,{dataTransfer:0}),OL=Dn(CL),ML=Fe({},uu,{relatedTarget:0}),qg=Dn(ML),qL=Fe({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),zL=Dn(qL),UL=Fe({},hi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jL=Dn(UL),LL=Fe({},hi,{data:0}),zR=Dn(LL),HL=zR,kL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VL={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},BL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},IL=Fe({},uu,{key:function(e){if(e.key){var t=kL[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?VL[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dp,charCode:function(e){return e.type==="keypress"?Yc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),GL=Dn(IL),YL=Fe({},id,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),UR=Dn(YL),$L=Fe({},uu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dp}),XL=Dn($L),PL=Fe({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZL=Dn(PL),QL=Fe({},id,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),FL=Dn(QL),JL=Fe({},hi,{newState:0,oldState:0}),KL=Dn(JL),WL=[9,13,27,32],jR=229,zg=ia&&"CompositionEvent"in window,fu=null;ia&&"documentMode"in document&&(fu=document.documentMode);var e6=ia&&"TextEvent"in window&&!fu,LR=ia&&(!zg||fu&&8<fu&&11>=fu),HR=32,kR=String.fromCharCode(HR),VR=!1,As=!1,t6={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},du=null,hu=null,BR=!1;ia&&(BR=S5("input")&&(!document.documentMode||9<document.documentMode));var bn=typeof Object.is=="function"?Object.is:A5,n6=ia&&"documentMode"in document&&11>=document.documentMode,Ns=null,Ug=null,pu=null,jg=!1,Ds={animationend:Ko("Animation","AnimationEnd"),animationiteration:Ko("Animation","AnimationIteration"),animationstart:Ko("Animation","AnimationStart"),transitionrun:Ko("Transition","TransitionRun"),transitionstart:Ko("Transition","TransitionStart"),transitioncancel:Ko("Transition","TransitionCancel"),transitionend:Ko("Transition","TransitionEnd")},Lg={},IR={};ia&&(IR=document.createElement("div").style,"AnimationEvent"in window||(delete Ds.animationend.animation,delete Ds.animationiteration.animation,delete Ds.animationstart.animation),"TransitionEvent"in window||delete Ds.transitionend.transition);var GR=Wo("animationend"),YR=Wo("animationiteration"),$R=Wo("animationstart"),r6=Wo("transitionrun"),a6=Wo("transitionstart"),o6=Wo("transitioncancel"),XR=Wo("transitionend"),PR=new Map,Hg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hg.push("scrollEnd");var ZR=0;if(typeof performance=="object"&&typeof performance.now=="function")var i6=performance,QR=function(){return i6.now()};else{var s6=Date;QR=function(){return s6.now()}}var kg=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},l6="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",sd=0,Vg=1,Bg=2,Ig=3,ld="– ",ud="+ ",FR="  ",mt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",ar="Components ⚛",et="Scheduler ⚛",nt="Blocking",So=!1,Da={color:"primary",properties:null,tooltipText:"",track:ar},xo={start:-0,end:-0,detail:{devtools:Da}},u6=["Changed Props",""],JR="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",c6=["Changed Props",JR],mu=1,Ca=2,or=[],Cs=0,Gg=0,Eo={};Object.freeze(Eo);var ir=null,Os=null,ke=0,f6=1,$e=2,dn=8,wr=16,d6=32,KR=!1;try{var WR=Object.preventExtensions({})}catch{KR=!0}var Yg=new WeakMap,Ms=[],qs=0,cd=null,gu=0,sr=[],lr=0,pi=null,Oa=1,Ma="",un=null,gt=null,Je=!1,sa=!1,Xn=null,wo=null,ur=!1,$g=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Xg=V(null),Pg=V(null),eA={},fd=null,zs=null,Us=!1,h6=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},p6=zt.unstable_scheduleCallback,m6=zt.unstable_NormalPriority,Ut={$$typeof:ta,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},jt=zt.unstable_now,dd=console.createTask?console.createTask:function(){return null},yu=1,hd=2,Jt=-0,To=-0,qa=-0,za=null,_n=-1.1,mi=-0,St=-0,Ue=-1.1,He=-1.1,_t=null,At=!1,gi=-0,la=-1.1,vu=null,Ro=0,Zg=null,Qg=null,yi=-1.1,bu=null,js=-1.1,pd=-1.1,Ua=-0,ja=-1.1,cr=-1.1,Fg=0,_u=null,tA=null,nA=null,Ao=-1.1,vi=null,No=-1.1,md=-1.1,rA=-0,aA=-0,gd=0,g6=null,oA=0,Su=-1.1,yd=!1,vd=!1,xu=null,Jg=0,bi=0,Ls=null,iA=le.S;le.S=function(e,t){if(tN=Ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>ja&&0>cr){ja=jt();var r=Kl(),o=Jl();(r!==No||o!==vi)&&(No=-1.1),Ao=r,vi=o}z5(e,t)}iA!==null&&iA(e,t)};var _i=V(null),Tr={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Eu=[],wu=[],Tu=[],Ru=[],Au=[],Nu=[],Si=new Set;Tr.recordUnsafeLifecycleWarnings=function(e,t){Si.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Eu.push(e),e.mode&dn&&typeof t.UNSAFE_componentWillMount=="function"&&wu.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Tu.push(e),e.mode&dn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Ru.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Au.push(e),e.mode&dn&&typeof t.UNSAFE_componentWillUpdate=="function"&&Nu.push(e))},Tr.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Eu.length&&(Eu.forEach(function(_){e.add(G(_)||"Component"),Si.add(_.type)}),Eu=[]);var t=new Set;0<wu.length&&(wu.forEach(function(_){t.add(G(_)||"Component"),Si.add(_.type)}),wu=[]);var r=new Set;0<Tu.length&&(Tu.forEach(function(_){r.add(G(_)||"Component"),Si.add(_.type)}),Tu=[]);var o=new Set;0<Ru.length&&(Ru.forEach(function(_){o.add(G(_)||"Component"),Si.add(_.type)}),Ru=[]);var u=new Set;0<Au.length&&(Au.forEach(function(_){u.add(G(_)||"Component"),Si.add(_.type)}),Au=[]);var c=new Set;if(0<Nu.length&&(Nu.forEach(function(_){c.add(G(_)||"Component"),Si.add(_.type)}),Nu=[]),0<t.size){var g=v(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
190
+
191
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
192
+
193
+ Please update the following components: %s`,g)}0<o.size&&(g=v(o),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
+
195
+ * Move data fetching code or side effects to componentDidUpdate.
196
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
197
+
198
+ Please update the following components: %s`,g)),0<c.size&&(g=v(c),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
+
200
+ * Move data fetching code or side effects to componentDidUpdate.
201
+
202
+ Please update the following components: %s`,g)),0<e.size&&(g=v(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
205
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
206
+
207
+ Please update the following components: %s`,g)),0<r.size&&(g=v(r),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+
209
+ * Move data fetching code or side effects to componentDidUpdate.
210
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
211
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
+
213
+ Please update the following components: %s`,g)),0<u.size&&(g=v(u),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
214
+
215
+ * Move data fetching code or side effects to componentDidUpdate.
216
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
217
+
218
+ Please update the following components: %s`,g))};var bd=new Map,sA=new Set;Tr.recordLegacyContextWarning=function(e,t){for(var r=null,o=e;o!==null;)o.mode&dn&&(r=o),o=o.return;r===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!sA.has(e.type)&&(o=bd.get(r),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(o===void 0&&(o=[],bd.set(r,o)),o.push(e))},Tr.flushLegacyContextWarning=function(){bd.forEach(function(e){if(e.length!==0){var t=e[0],r=new Set;e.forEach(function(u){r.add(G(u)||"Component"),sA.add(u.type)});var o=v(r);me(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
219
+
220
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
221
+
222
+ Please update the following components: %s
223
+
224
+ Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},Tr.discardPendingWarnings=function(){Eu=[],wu=[],Tu=[],Ru=[],Au=[],Nu=[],bd=new Map};var lA={react_stack_bottom_frame:function(e,t,r){var o=na;na=!0;try{return e(t,r)}finally{na=o}}},Kg=lA.react_stack_bottom_frame.bind(lA),uA={react_stack_bottom_frame:function(e){var t=na;na=!0;try{return e.render()}finally{na=t}}},cA=uA.react_stack_bottom_frame.bind(uA),fA={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(r){ot(e,e.return,r)}}},Wg=fA.react_stack_bottom_frame.bind(fA),dA={react_stack_bottom_frame:function(e,t,r,o,u){try{t.componentDidUpdate(r,o,u)}catch(c){ot(e,e.return,c)}}},hA=dA.react_stack_bottom_frame.bind(dA),pA={react_stack_bottom_frame:function(e,t){var r=t.stack;e.componentDidCatch(t.value,{componentStack:r!==null?r:""})}},y6=pA.react_stack_bottom_frame.bind(pA),mA={react_stack_bottom_frame:function(e,t,r){try{r.componentWillUnmount()}catch(o){ot(e,t,o)}}},gA=mA.react_stack_bottom_frame.bind(mA),yA={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},v6=yA.react_stack_bottom_frame.bind(yA),vA={react_stack_bottom_frame:function(e,t,r){try{r()}catch(o){ot(e,t,o)}}},b6=vA.react_stack_bottom_frame.bind(vA),bA={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},_6=bA.react_stack_bottom_frame.bind(bA),Hs=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`."),ey=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),_d=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` 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."),Sd={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},xi=null,Du=!1,ks=null,Cu=0,Xe=null,ty,_A=ty=!1,SA={},xA={},EA={};y=function(e,t,r){if(r!==null&&typeof r=="object"&&r._store&&(!r._store.validated&&r.key==null||r._store.validated===2)){if(typeof r._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");r._store.validated=1;var o=G(e),u=o||"null";if(!SA[u]){SA[u]=!0,r=r._owner,e=e._debugOwner;var c="";e&&typeof e.tag=="number"&&(u=G(e))&&(c=`
225
+
226
+ Check the render method of \``+u+"`."),c||o&&(c=`
227
+
228
+ Check the top-level render call using <`+o+">.");var g="";r!=null&&e!==r&&(o=null,typeof r.tag=="number"?o=G(r):typeof r.name=="string"&&(o=r.name),o&&(g=" It was passed a child from "+o+".")),me(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',c,g)})}}};var Ei=mE(!0),wA=mE(!1),TA=0,RA=1,AA=2,ny=3,Do=!1,NA=!1,ry=null,ay=!1,Vs=V(null),xd=V(0),Pn=V(null),fr=null,Bs=1,Ou=2,Ot=V(0),Ed=0,dr=1,Sn=2,Zn=4,xn=8,Is,DA=new Set,CA=new Set,oy=new Set,OA=new Set,La=0,Ve=null,ft=null,Lt=null,wd=!1,Gs=!1,wi=!1,Td=0,Mu=0,Ha=null,S6=0,x6=25,se=null,hr=null,ka=-1,qu=!1,zu={readContext:bt,use:fo,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useLayoutEffect:Dt,useInsertionEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useSyncExternalStore:Dt,useId:Dt,useHostTransitionStatus:Dt,useFormState:Dt,useActionState:Dt,useOptimistic:Dt,useMemoCache:Dt,useCacheRefresh:Dt};zu.useEffectEvent=Dt;var iy=null,MA=null,sy=null,qA=null,ua=null,Rr=null,Rd=null;iy={readContext:function(e){return bt(e)},use:fo,useCallback:function(e,t){return se="useCallback",Qe(),os(t),rm(e,t)},useContext:function(e){return se="useContext",Qe(),bt(e)},useEffect:function(e,t){return se="useEffect",Qe(),os(t),bf(e,t)},useImperativeHandle:function(e,t,r){return se="useImperativeHandle",Qe(),os(r),nm(e,t,r)},useInsertionEffect:function(e,t){se="useInsertionEffect",Qe(),os(t),si(4,Sn,e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",Qe(),os(t),tm(e,t)},useMemo:function(e,t){se="useMemo",Qe(),os(t);var r=le.H;le.H=ua;try{return am(e,t)}finally{le.H=r}},useReducer:function(e,t,r){se="useReducer",Qe();var o=le.H;le.H=ua;try{return Xp(e,t,r)}finally{le.H=o}},useRef:function(e){return se="useRef",Qe(),Wp(e)},useState:function(e){se="useState",Qe();var t=le.H;le.H=ua;try{return Fp(e)}finally{le.H=t}},useDebugValue:function(){se="useDebugValue",Qe()},useDeferredValue:function(e,t){return se="useDeferredValue",Qe(),om(e,t)},useTransition:function(){return se="useTransition",Qe(),lm()},useSyncExternalStore:function(e,t,r){return se="useSyncExternalStore",Qe(),Zp(e,t,r)},useId:function(){return se="useId",Qe(),um()},useFormState:function(e,t){return se="useFormState",Qe(),pf(),ss(e,t)},useActionState:function(e,t){return se="useActionState",Qe(),ss(e,t)},useOptimistic:function(e){return se="useOptimistic",Qe(),Jp(e)},useHostTransitionStatus:li,useMemoCache:ii,useCacheRefresh:function(){return se="useCacheRefresh",Qe(),cm()},useEffectEvent:function(e){return se="useEffectEvent",Qe(),em(e)}},MA={readContext:function(e){return bt(e)},use:fo,useCallback:function(e,t){return se="useCallback",ve(),rm(e,t)},useContext:function(e){return se="useContext",ve(),bt(e)},useEffect:function(e,t){return se="useEffect",ve(),bf(e,t)},useImperativeHandle:function(e,t,r){return se="useImperativeHandle",ve(),nm(e,t,r)},useInsertionEffect:function(e,t){se="useInsertionEffect",ve(),si(4,Sn,e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",ve(),tm(e,t)},useMemo:function(e,t){se="useMemo",ve();var r=le.H;le.H=ua;try{return am(e,t)}finally{le.H=r}},useReducer:function(e,t,r){se="useReducer",ve();var o=le.H;le.H=ua;try{return Xp(e,t,r)}finally{le.H=o}},useRef:function(e){return se="useRef",ve(),Wp(e)},useState:function(e){se="useState",ve();var t=le.H;le.H=ua;try{return Fp(e)}finally{le.H=t}},useDebugValue:function(){se="useDebugValue",ve()},useDeferredValue:function(e,t){return se="useDeferredValue",ve(),om(e,t)},useTransition:function(){return se="useTransition",ve(),lm()},useSyncExternalStore:function(e,t,r){return se="useSyncExternalStore",ve(),Zp(e,t,r)},useId:function(){return se="useId",ve(),um()},useActionState:function(e,t){return se="useActionState",ve(),ss(e,t)},useFormState:function(e,t){return se="useFormState",ve(),pf(),ss(e,t)},useOptimistic:function(e){return se="useOptimistic",ve(),Jp(e)},useHostTransitionStatus:li,useMemoCache:ii,useCacheRefresh:function(){return se="useCacheRefresh",ve(),cm()},useEffectEvent:function(e){return se="useEffectEvent",ve(),em(e)}},sy={readContext:function(e){return bt(e)},use:fo,useCallback:function(e,t){return se="useCallback",ve(),xf(e,t)},useContext:function(e){return se="useContext",ve(),bt(e)},useEffect:function(e,t){se="useEffect",ve(),Cn(2048,xn,e,t)},useImperativeHandle:function(e,t,r){return se="useImperativeHandle",ve(),Sf(e,t,r)},useInsertionEffect:function(e,t){return se="useInsertionEffect",ve(),Cn(4,Sn,e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",ve(),Cn(4,Zn,e,t)},useMemo:function(e,t){se="useMemo",ve();var r=le.H;le.H=Rr;try{return Ef(e,t)}finally{le.H=r}},useReducer:function(e,t,r){se="useReducer",ve();var o=le.H;le.H=Rr;try{return is(e,t,r)}finally{le.H=o}},useRef:function(){return se="useRef",ve(),st().memoizedState},useState:function(){se="useState",ve();var e=le.H;le.H=Rr;try{return is(Sr)}finally{le.H=e}},useDebugValue:function(){se="useDebugValue",ve()},useDeferredValue:function(e,t){return se="useDeferredValue",ve(),LE(e,t)},useTransition:function(){return se="useTransition",ve(),GE()},useSyncExternalStore:function(e,t,r){return se="useSyncExternalStore",ve(),gf(e,t,r)},useId:function(){return se="useId",ve(),st().memoizedState},useFormState:function(e){return se="useFormState",ve(),pf(),yf(e)},useActionState:function(e){return se="useActionState",ve(),yf(e)},useOptimistic:function(e,t){return se="useOptimistic",ve(),AE(e,t)},useHostTransitionStatus:li,useMemoCache:ii,useCacheRefresh:function(){return se="useCacheRefresh",ve(),st().memoizedState},useEffectEvent:function(e){return se="useEffectEvent",ve(),_f(e)}},qA={readContext:function(e){return bt(e)},use:fo,useCallback:function(e,t){return se="useCallback",ve(),xf(e,t)},useContext:function(e){return se="useContext",ve(),bt(e)},useEffect:function(e,t){se="useEffect",ve(),Cn(2048,xn,e,t)},useImperativeHandle:function(e,t,r){return se="useImperativeHandle",ve(),Sf(e,t,r)},useInsertionEffect:function(e,t){return se="useInsertionEffect",ve(),Cn(4,Sn,e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",ve(),Cn(4,Zn,e,t)},useMemo:function(e,t){se="useMemo",ve();var r=le.H;le.H=Rd;try{return Ef(e,t)}finally{le.H=r}},useReducer:function(e,t,r){se="useReducer",ve();var o=le.H;le.H=Rd;try{return kl(e,t,r)}finally{le.H=o}},useRef:function(){return se="useRef",ve(),st().memoizedState},useState:function(){se="useState",ve();var e=le.H;le.H=Rd;try{return kl(Sr)}finally{le.H=e}},useDebugValue:function(){se="useDebugValue",ve()},useDeferredValue:function(e,t){return se="useDeferredValue",ve(),HE(e,t)},useTransition:function(){return se="useTransition",ve(),YE()},useSyncExternalStore:function(e,t,r){return se="useSyncExternalStore",ve(),gf(e,t,r)},useId:function(){return se="useId",ve(),st().memoizedState},useFormState:function(e){return se="useFormState",ve(),pf(),vf(e)},useActionState:function(e){return se="useActionState",ve(),vf(e)},useOptimistic:function(e,t){return se="useOptimistic",ve(),DE(e,t)},useHostTransitionStatus:li,useMemoCache:ii,useCacheRefresh:function(){return se="useCacheRefresh",ve(),st().memoizedState},useEffectEvent:function(e){return se="useEffectEvent",ve(),_f(e)}},ua={readContext:function(e){return p(),bt(e)},use:function(e){return h(),fo(e)},useCallback:function(e,t){return se="useCallback",h(),Qe(),rm(e,t)},useContext:function(e){return se="useContext",h(),Qe(),bt(e)},useEffect:function(e,t){return se="useEffect",h(),Qe(),bf(e,t)},useImperativeHandle:function(e,t,r){return se="useImperativeHandle",h(),Qe(),nm(e,t,r)},useInsertionEffect:function(e,t){se="useInsertionEffect",h(),Qe(),si(4,Sn,e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",h(),Qe(),tm(e,t)},useMemo:function(e,t){se="useMemo",h(),Qe();var r=le.H;le.H=ua;try{return am(e,t)}finally{le.H=r}},useReducer:function(e,t,r){se="useReducer",h(),Qe();var o=le.H;le.H=ua;try{return Xp(e,t,r)}finally{le.H=o}},useRef:function(e){return se="useRef",h(),Qe(),Wp(e)},useState:function(e){se="useState",h(),Qe();var t=le.H;le.H=ua;try{return Fp(e)}finally{le.H=t}},useDebugValue:function(){se="useDebugValue",h(),Qe()},useDeferredValue:function(e,t){return se="useDeferredValue",h(),Qe(),om(e,t)},useTransition:function(){return se="useTransition",h(),Qe(),lm()},useSyncExternalStore:function(e,t,r){return se="useSyncExternalStore",h(),Qe(),Zp(e,t,r)},useId:function(){return se="useId",h(),Qe(),um()},useFormState:function(e,t){return se="useFormState",h(),Qe(),ss(e,t)},useActionState:function(e,t){return se="useActionState",h(),Qe(),ss(e,t)},useOptimistic:function(e){return se="useOptimistic",h(),Qe(),Jp(e)},useMemoCache:function(e){return h(),ii(e)},useHostTransitionStatus:li,useCacheRefresh:function(){return se="useCacheRefresh",Qe(),cm()},useEffectEvent:function(e){return se="useEffectEvent",h(),Qe(),em(e)}},Rr={readContext:function(e){return p(),bt(e)},use:function(e){return h(),fo(e)},useCallback:function(e,t){return se="useCallback",h(),ve(),xf(e,t)},useContext:function(e){return se="useContext",h(),ve(),bt(e)},useEffect:function(e,t){se="useEffect",h(),ve(),Cn(2048,xn,e,t)},useImperativeHandle:function(e,t,r){return se="useImperativeHandle",h(),ve(),Sf(e,t,r)},useInsertionEffect:function(e,t){return se="useInsertionEffect",h(),ve(),Cn(4,Sn,e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",h(),ve(),Cn(4,Zn,e,t)},useMemo:function(e,t){se="useMemo",h(),ve();var r=le.H;le.H=Rr;try{return Ef(e,t)}finally{le.H=r}},useReducer:function(e,t,r){se="useReducer",h(),ve();var o=le.H;le.H=Rr;try{return is(e,t,r)}finally{le.H=o}},useRef:function(){return se="useRef",h(),ve(),st().memoizedState},useState:function(){se="useState",h(),ve();var e=le.H;le.H=Rr;try{return is(Sr)}finally{le.H=e}},useDebugValue:function(){se="useDebugValue",h(),ve()},useDeferredValue:function(e,t){return se="useDeferredValue",h(),ve(),LE(e,t)},useTransition:function(){return se="useTransition",h(),ve(),GE()},useSyncExternalStore:function(e,t,r){return se="useSyncExternalStore",h(),ve(),gf(e,t,r)},useId:function(){return se="useId",h(),ve(),st().memoizedState},useFormState:function(e){return se="useFormState",h(),ve(),yf(e)},useActionState:function(e){return se="useActionState",h(),ve(),yf(e)},useOptimistic:function(e,t){return se="useOptimistic",h(),ve(),AE(e,t)},useMemoCache:function(e){return h(),ii(e)},useHostTransitionStatus:li,useCacheRefresh:function(){return se="useCacheRefresh",ve(),st().memoizedState},useEffectEvent:function(e){return se="useEffectEvent",h(),ve(),_f(e)}},Rd={readContext:function(e){return p(),bt(e)},use:function(e){return h(),fo(e)},useCallback:function(e,t){return se="useCallback",h(),ve(),xf(e,t)},useContext:function(e){return se="useContext",h(),ve(),bt(e)},useEffect:function(e,t){se="useEffect",h(),ve(),Cn(2048,xn,e,t)},useImperativeHandle:function(e,t,r){return se="useImperativeHandle",h(),ve(),Sf(e,t,r)},useInsertionEffect:function(e,t){return se="useInsertionEffect",h(),ve(),Cn(4,Sn,e,t)},useLayoutEffect:function(e,t){return se="useLayoutEffect",h(),ve(),Cn(4,Zn,e,t)},useMemo:function(e,t){se="useMemo",h(),ve();var r=le.H;le.H=Rr;try{return Ef(e,t)}finally{le.H=r}},useReducer:function(e,t,r){se="useReducer",h(),ve();var o=le.H;le.H=Rr;try{return kl(e,t,r)}finally{le.H=o}},useRef:function(){return se="useRef",h(),ve(),st().memoizedState},useState:function(){se="useState",h(),ve();var e=le.H;le.H=Rr;try{return kl(Sr)}finally{le.H=e}},useDebugValue:function(){se="useDebugValue",h(),ve()},useDeferredValue:function(e,t){return se="useDeferredValue",h(),ve(),HE(e,t)},useTransition:function(){return se="useTransition",h(),ve(),YE()},useSyncExternalStore:function(e,t,r){return se="useSyncExternalStore",h(),ve(),gf(e,t,r)},useId:function(){return se="useId",h(),ve(),st().memoizedState},useFormState:function(e){return se="useFormState",h(),ve(),vf(e)},useActionState:function(e){return se="useActionState",h(),ve(),vf(e)},useOptimistic:function(e,t){return se="useOptimistic",h(),ve(),DE(e,t)},useMemoCache:function(e){return h(),ii(e)},useHostTransitionStatus:li,useCacheRefresh:function(){return se="useCacheRefresh",ve(),st().memoizedState},useEffectEvent:function(e){return se="useEffectEvent",h(),ve(),_f(e)}};var zA={},UA=new Set,jA=new Set,LA=new Set,HA=new Set,kA=new Set,VA=new Set,BA=new Set,IA=new Set,GA=new Set,YA=new Set;Object.freeze(zA);var ly={enqueueSetState:function(e,t,r){e=e._reactInternals;var o=In(e),u=so(o);u.payload=t,r!=null&&(dm(r),u.callback=r),t=lo(e,u,o),t!==null&&(Br(o,"this.setState()",e),Rt(t,e,o),Ul(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=In(e),u=so(o);u.tag=RA,u.payload=t,r!=null&&(dm(r),u.callback=r),t=lo(e,u,o),t!==null&&(Br(o,"this.replaceState()",e),Rt(t,e,o),Ul(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=In(e),o=so(r);o.tag=AA,t!=null&&(dm(t),o.callback=t),t=lo(e,o,r),t!==null&&(Br(r,"this.forceUpdate()",e),Rt(t,e,r),Ul(t,e,r))}},Ys=null,uy=null,cy=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Ht=!1,$A={},XA={},PA={},ZA={},$s=!1,QA={},Ad={},fy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},FA=!1,JA=null;JA=new Set;var Va=!1,kt=!1,dy=!1,KA=typeof WeakSet=="function"?WeakSet:Set,Kt=null,Xs=null,Ps=null,Vt=null,qn=!1,Ar=null,Xt=!1,Uu=8192,E6={getCacheForType:function(e){var t=bt(Ut),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return bt(Ut).controller.signal},getOwner:function(){return $n}};if(typeof Symbol=="function"&&Symbol.for){var ju=Symbol.for;ju("selector.component"),ju("selector.has_pseudo_class"),ju("selector.role"),ju("selector.test_id"),ju("selector.text")}var w6=[],T6=typeof WeakMap=="function"?WeakMap:Map,Wt=0,Pt=2,Qn=4,Ba=0,Lu=1,Ti=2,Nd=3,Co=4,Dd=6,WA=5,rt=Wt,dt=null,Ze=null,Pe=0,zn=0,Cd=1,Ri=2,Hu=3,eN=4,hy=5,ku=6,Od=7,py=8,Ai=9,lt=zn,Fn=null,Oo=!1,Zs=!1,my=!1,ca=0,xt=Ba,Mo=0,qo=0,gy=0,Un=0,Ni=0,Vu=null,En=null,Md=!1,qd=0,tN=0,nN=300,zd=1/0,rN=500,Bu=null,Ct=null,zo=null,Ud=0,yy=1,vy=2,aN=3,Uo=0,oN=1,iN=2,sN=3,lN=4,jd=5,Bt=0,jo=null,Qs=null,Nr=0,by=0,_y=-0,Sy=null,uN=null,cN=null,Dr=Ud,fN=null,R6=50,Iu=0,xy=null,Ey=!1,Ld=!1,A6=50,Di=0,Gu=null,Fs=!1,Hd=null,dN=!1,hN=new Set,N6={},kd=null,Js=null,wy=!1,Ty=!1,Vd=!1,Ry=!1,Lo=0,Ay={};(function(){for(var e=0;e<Hg.length;e++){var t=Hg[e],r=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),br(r,"on"+t)}br(GR,"onAnimationEnd"),br(YR,"onAnimationIteration"),br($R,"onAnimationStart"),br("dblclick","onDoubleClick"),br("focusin","onFocus"),br("focusout","onBlur"),br(r6,"onTransitionRun"),br(a6,"onTransitionStart"),br(o6,"onTransitionCancel"),br(XR,"onTransitionEnd")})(),Ge("onMouseEnter",["mouseout","mouseover"]),Ge("onMouseLeave",["mouseout","mouseover"]),Ge("onPointerEnter",["pointerout","pointerover"]),Ge("onPointerLeave",["pointerout","pointerover"]),Ke("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ke("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ke("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ke("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ke("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ke("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ny=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yu)),Bd="_reactListening"+Math.random().toString(36).slice(2),pN=!1,mN=!1,Id=!1,gN=!1,Gd=!1,Yd=!1,yN=!1,$d={},D6=/\r\n?/g,C6=/\u0000|\uFFFD/g,Ci="http://www.w3.org/1999/xlink",Dy="http://www.w3.org/XML/1998/namespace",O6="javascript:throw new Error('React form unexpectedly submitted.')",M6="suppressHydrationWarning",Oi="&",Xd="/&",$u="$",Xu="/$",Ho="$?",Mi="$~",Ks="$!",q6="html",z6="body",U6="head",Cy="F!",vN="F",bN="loading",j6="style",Ia=0,Ws=1,Pd=2,Oy=null,My=null,_N={dialog:!0,webview:!0},qy=null,Pu=void 0,SN=typeof setTimeout=="function"?setTimeout:void 0,L6=typeof clearTimeout=="function"?clearTimeout:void 0,qi=-1,xN=typeof Promise=="function"?Promise:void 0,H6=typeof queueMicrotask=="function"?queueMicrotask:typeof xN<"u"?function(e){return xN.resolve(null).then(e).catch(_4)}:SN,zy=null,zi=0,Zu=1,EN=2,wN=3,pr=4,mr=new Map,TN=new Set,Ga=it.d;it.d={f:function(){var e=Ga.f(),t=ds();return e||t},r:function(e){var t=_e(e);t!==null&&t.tag===5&&t.type==="form"?IE(t):Ga.r(e)},D:function(e){Ga.D(e),UT("dns-prefetch",e,null)},C:function(e,t){Ga.C(e,t),UT("preconnect",e,t)},L:function(e,t,r){Ga.L(e,t,r);var o=el;if(o&&e&&t){var u='link[rel="preload"][as="'+Nn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(u+='[imagesrcset="'+Nn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(u+='[imagesizes="'+Nn(r.imageSizes)+'"]')):u+='[href="'+Nn(e)+'"]';var c=u;switch(t){case"style":c=ms(e);break;case"script":c=gs(e)}mr.has(c)||(e=Fe({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),mr.set(c,e),o.querySelector(u)!==null||t==="style"&&o.querySelector(eu(c))||t==="script"&&o.querySelector(tu(c))||(t=o.createElement("link"),sn(t,"link",e),Me(t),o.head.appendChild(t)))}},m:function(e,t){Ga.m(e,t);var r=el;if(r&&e){var o=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Nn(o)+'"][href="'+Nn(e)+'"]',c=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=gs(e)}if(!mr.has(c)&&(e=Fe({rel:"modulepreload",href:e},t),mr.set(c,e),r.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(tu(c)))return}o=r.createElement("link"),sn(o,"link",e),Me(o),r.head.appendChild(o)}}},X:function(e,t){Ga.X(e,t);var r=el;if(r&&e){var o=Ie(r).hoistableScripts,u=gs(e),c=o.get(u);c||(c=r.querySelector(tu(u)),c||(e=Fe({src:e,async:!0},t),(t=mr.get(u))&&ng(e,t),c=r.createElement("script"),Me(c),sn(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},o.set(u,c))}},S:function(e,t,r){Ga.S(e,t,r);var o=el;if(o&&e){var u=Ie(o).hoistableStyles,c=ms(e);t=t||"default";var g=u.get(c);if(!g){var _={loading:zi,preload:null};if(g=o.querySelector(eu(c)))_.loading=Zu|pr;else{e=Fe({rel:"stylesheet",href:e,"data-precedence":t},r),(r=mr.get(c))&&tg(e,r);var R=g=o.createElement("link");Me(R),sn(R,"link",e),R._p=new Promise(function(D,J){R.onload=D,R.onerror=J}),R.addEventListener("load",function(){_.loading|=Zu}),R.addEventListener("error",function(){_.loading|=EN}),_.loading|=pr,If(g,t,o)}g={type:"stylesheet",instance:g,count:1,state:_},u.set(c,g)}}},M:function(e,t){Ga.M(e,t);var r=el;if(r&&e){var o=Ie(r).hoistableScripts,u=gs(e),c=o.get(u);c||(c=r.querySelector(tu(u)),c||(e=Fe({src:e,async:!0,type:"module"},t),(t=mr.get(u))&&ng(e,t),c=r.createElement("script"),Me(c),sn(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},o.set(u,c))}}};var el=typeof document>"u"?null:document,Zd=null,k6=6e4,V6=800,B6=500,Uy=0,jy=null,Qd=null,Ui=tL,Qu={$$typeof:ta,Provider:null,Consumer:null,_currentValue:Ui,_currentValue2:Ui,_threadCount:0},RN="%c%s%c",AN="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",NN="",Fd=" ",I6=Function.prototype.bind,DN=!1,CN=null,ON=null,MN=null,qN=null,zN=null,UN=null,jN=null,LN=null,HN=null,kN=null;CN=function(e,t,r,o){t=n(e,t),t!==null&&(r=a(t.memoizedState,r,0,o),t.memoizedState=r,t.baseState=r,e.memoizedProps=Fe({},e.memoizedProps),r=cn(e,2),r!==null&&Rt(r,e,2))},ON=function(e,t,r){t=n(e,t),t!==null&&(r=l(t.memoizedState,r,0),t.memoizedState=r,t.baseState=r,e.memoizedProps=Fe({},e.memoizedProps),r=cn(e,2),r!==null&&Rt(r,e,2))},MN=function(e,t,r,o){t=n(e,t),t!==null&&(r=i(t.memoizedState,r,o),t.memoizedState=r,t.baseState=r,e.memoizedProps=Fe({},e.memoizedProps),r=cn(e,2),r!==null&&Rt(r,e,2))},qN=function(e,t,r){e.pendingProps=a(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=cn(e,2),t!==null&&Rt(t,e,2)},zN=function(e,t){e.pendingProps=l(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=cn(e,2),t!==null&&Rt(t,e,2)},UN=function(e,t,r){e.pendingProps=i(e.memoizedProps,t,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=cn(e,2),t!==null&&Rt(t,e,2)},jN=function(e){var t=cn(e,2);t!==null&&Rt(t,e,2)},LN=function(e){var t=Tn(),r=cn(e,t);r!==null&&Rt(r,e,t)},HN=function(e){d=e},kN=function(e){f=e};var Jd=!0,Kd=null,Ly=!1,ko=null,Vo=null,Bo=null,Fu=new Map,Ju=new Map,Io=[],G6="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Wd=null;if(Pf.prototype.render=lg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var r=arguments;typeof r[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):w(r[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof r[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),r=e;var o=t.current,u=In(o);rg(o,u,r,t,null,null)},Pf.prototype.unmount=lg.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(rt&(Pt|Qn))!==Wt&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),rg(e.current,2,null,e,null,null),ds(),t[bo]=null}},Pf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lr();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Io.length&&t!==0&&t<Io[r].priority;r++);Io.splice(r,0,e),r===0&&QT(e)}},(function(){var e=ug.version;if(e!=="19.2.5")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
229
+ - react: `+(e+`
230
+ - react-dom: 19.2.5
231
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),it.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=M(t),e=e!==null?q(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:le,reconcilerVersion:"19.2.5"};return e.overrideHookState=CN,e.overrideHookStateDeletePath=ON,e.overrideHookStateRenamePath=MN,e.overrideProps=qN,e.overridePropsDeletePath=zN,e.overridePropsRenamePath=UN,e.scheduleUpdate=jN,e.scheduleRetry=LN,e.setErrorHandler=HN,e.setSuspenseHandler=kN,e.scheduleRefresh=x,e.scheduleRoot=S,e.setRefreshHandler=A,e.getCurrentFiber=X4,qt(e)})()&&ia&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var VN=window.location.protocol;/^(https?|file):$/.test(VN)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(VN==="file:"?`
232
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Ku.createRoot=function(e,t){if(!w(e))throw Error("Target container is not a DOM element.");WT(e);var r=!1,o="",u=FE,c=JE,g=KE;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===ea&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
233
+
234
+ let root = createRoot(domContainer);
235
+ root.render(<App />);`),t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=IT(e,1,!1,null,null,r,o,null,u,c,g,KT),e[bo]=t.current,Gm(e),new lg(t)},Ku.hydrateRoot=function(e,t,r){if(!w(e))throw Error("Target container is not a DOM element.");WT(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,u="",c=FE,g=JE,_=KE,R=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(c=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(_=r.onRecoverableError),r.formState!==void 0&&(R=r.formState)),t=IT(e,1,!0,t,r??null,o,u,R,c,g,_,KT),t.context=GT(null),r=t.current,o=In(r),o=Yt(o),u=so(o),u.callback=null,lo(r,u,o),Br(o,"hydrateRoot()",null),r=o,t.current.lanes=r,Zt(t,r),Kr(t),e[bo]=t.current,Gm(e),new Pf(t)},Ku.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Ku}var FN;function K6(){return FN||(FN=1,Vy.exports=J6()),Vy.exports}var W6=K6();const eH=Oh(W6);var Yy={exports:{}},Wu={},JN;function tH(){if(JN)return Wu;JN=1;return(function(){function n(z){if(z==null)return null;if(typeof z=="function")return z.$$typeof===V?null:z.displayName||z.name||null;if(typeof z=="string")return z;switch(z){case w:return"Fragment";case C:return"Profiler";case T:return"StrictMode";case q:return"Suspense";case U:return"SuspenseList";case G:return"Activity"}if(typeof z=="object")switch(typeof z.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),z.$$typeof){case A:return"Portal";case N:return z.displayName||"Context";case E:return(z._context.displayName||"Context")+".Consumer";case M:var W=z.render;return z=z.displayName,z||(z=W.displayName||W.name||"",z=z!==""?"ForwardRef("+z+")":"ForwardRef"),z;case H:return W=z.displayName||null,W!==null?W:n(z.type)||"Memo";case k:W=z._payload,z=z._init;try{return n(z(W))}catch{}}return null}function a(z){return""+z}function i(z){try{a(z);var W=!1}catch{W=!0}if(W){W=console;var ge=W.error,B=typeof Symbol=="function"&&Symbol.toStringTag&&z[Symbol.toStringTag]||z.constructor.name||"Object";return ge.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),a(z)}}function s(z){if(z===w)return"<>";if(typeof z=="object"&&z!==null&&z.$$typeof===k)return"<...>";try{var W=n(z);return W?"<"+W+">":"<...>"}catch{return"<...>"}}function l(){var z=X.A;return z===null?null:z.getOwner()}function f(){return Error("react-stack-top-frame")}function d(z){if(ee.call(z,"key")){var W=Object.getOwnPropertyDescriptor(z,"key").get;if(W&&W.isReactWarning)return!1}return z.key!==void 0}function h(z,W){function ge(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",W))}ge.isReactWarning=!0,Object.defineProperty(z,"key",{get:ge,configurable:!0})}function p(){var z=n(this.type);return F[z]||(F[z]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),z=this.props.ref,z!==void 0?z:null}function m(z,W,ge,B,re,ue){var oe=ge.ref;return z={$$typeof:x,type:z,key:W,props:ge,_owner:B},(oe!==void 0?oe:null)!==null?Object.defineProperty(z,"ref",{enumerable:!1,get:p}):Object.defineProperty(z,"ref",{enumerable:!1,value:null}),z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(z,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(z,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.defineProperty(z,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z}function y(z,W,ge,B,re,ue){var oe=W.children;if(oe!==void 0)if(B)if(j(oe)){for(B=0;B<oe.length;B++)v(oe[B]);Object.freeze&&Object.freeze(oe)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else v(oe);if(ee.call(W,"key")){oe=n(z);var he=Object.keys(W).filter(function(Te){return Te!=="key"});B=0<he.length?"{key: someKey, "+he.join(": ..., ")+": ...}":"{key: someKey}",de[oe+B]||(he=0<he.length?"{"+he.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
236
+ let props = %s;
237
+ <%s {...props} />
238
+ React keys must be passed directly to JSX without using spread:
239
+ let props = %s;
240
+ <%s key={someKey} {...props} />`,B,oe,he,oe),de[oe+B]=!0)}if(oe=null,ge!==void 0&&(i(ge),oe=""+ge),d(W)&&(i(W.key),oe=""+W.key),"key"in W){ge={};for(var be in W)be!=="key"&&(ge[be]=W[be])}else ge=W;return oe&&h(ge,typeof z=="function"?z.displayName||z.name||"Unknown":z),m(z,oe,ge,l(),re,ue)}function v(z){b(z)?z._store&&(z._store.validated=1):typeof z=="object"&&z!==null&&z.$$typeof===k&&(z._payload.status==="fulfilled"?b(z._payload.value)&&z._payload.value._store&&(z._payload.value._store.validated=1):z._store&&(z._store.validated=1))}function b(z){return typeof z=="object"&&z!==null&&z.$$typeof===x}var S=Yi(),x=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),N=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),X=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=Object.prototype.hasOwnProperty,j=Array.isArray,Q=console.createTask?console.createTask:function(){return null};S={react_stack_bottom_frame:function(z){return z()}};var L,F={},Z=S.react_stack_bottom_frame.bind(S,f)(),ne=Q(s(f)),de={};Wu.Fragment=w,Wu.jsx=function(z,W,ge){var B=1e4>X.recentlyCreatedOwnerStacks++;return y(z,W,ge,!1,B?Error("react-stack-top-frame"):Z,B?Q(s(z)):ne)},Wu.jsxs=function(z,W,ge){var B=1e4>X.recentlyCreatedOwnerStacks++;return y(z,W,ge,!0,B?Error("react-stack-top-frame"):Z,B?Q(s(z)):ne)}})(),Wu}var KN;function nH(){return KN||(KN=1,Yy.exports=tH()),Yy.exports}var fe=nH();function It(n){if(typeof n=="string"||typeof n=="number")return""+n;let a="";if(Array.isArray(n))for(let i=0,s;i<n.length;i++)(s=It(n[i]))!==""&&(a+=(a&&" ")+s);else for(let i in n)n[i]&&(a+=(a&&" ")+i);return a}var rH={value:()=>{}};function Mh(){for(var n=0,a=arguments.length,i={},s;n<a;++n){if(!(s=arguments[n]+"")||s in i||/[\s.]/.test(s))throw new Error("illegal type: "+s);i[s]=[]}return new hh(i)}function hh(n){this._=n}function aH(n,a){return n.trim().split(/^|\s+/).map(function(i){var s="",l=i.indexOf(".");if(l>=0&&(s=i.slice(l+1),i=i.slice(0,l)),i&&!a.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:s}})}hh.prototype=Mh.prototype={constructor:hh,on:function(n,a){var i=this._,s=aH(n+"",i),l,f=-1,d=s.length;if(arguments.length<2){for(;++f<d;)if((l=(n=s[f]).type)&&(l=oH(i[l],n.name)))return l;return}if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++f<d;)if(l=(n=s[f]).type)i[l]=WN(i[l],n.name,a);else if(a==null)for(l in i)i[l]=WN(i[l],n.name,null);return this},copy:function(){var n={},a=this._;for(var i in a)n[i]=a[i].slice();return new hh(n)},call:function(n,a){if((l=arguments.length-2)>0)for(var i=new Array(l),s=0,l,f;s<l;++s)i[s]=arguments[s+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(f=this._[n],s=0,l=f.length;s<l;++s)f[s].value.apply(a,i)},apply:function(n,a,i){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var s=this._[n],l=0,f=s.length;l<f;++l)s[l].value.apply(a,i)}};function oH(n,a){for(var i=0,s=n.length,l;i<s;++i)if((l=n[i]).name===a)return l.value}function WN(n,a,i){for(var s=0,l=n.length;s<l;++s)if(n[s].name===a){n[s]=rH,n=n.slice(0,s).concat(n.slice(s+1));break}return i!=null&&n.push({name:a,value:i}),n}var wS="http://www.w3.org/1999/xhtml";const eD={svg:"http://www.w3.org/2000/svg",xhtml:wS,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qh(n){var a=n+="",i=a.indexOf(":");return i>=0&&(a=n.slice(0,i))!=="xmlns"&&(n=n.slice(i+1)),eD.hasOwnProperty(a)?{space:eD[a],local:n}:n}function iH(n){return function(){var a=this.ownerDocument,i=this.namespaceURI;return i===wS&&a.documentElement.namespaceURI===wS?a.createElement(n):a.createElementNS(i,n)}}function sH(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Oz(n){var a=qh(n);return(a.local?sH:iH)(a)}function lH(){}function kS(n){return n==null?lH:function(){return this.querySelector(n)}}function uH(n){typeof n!="function"&&(n=kS(n));for(var a=this._groups,i=a.length,s=new Array(i),l=0;l<i;++l)for(var f=a[l],d=f.length,h=s[l]=new Array(d),p,m,y=0;y<d;++y)(p=f[y])&&(m=n.call(p,p.__data__,y,f))&&("__data__"in p&&(m.__data__=p.__data__),h[y]=m);return new Kn(s,this._parents)}function cH(n){return n==null?[]:Array.isArray(n)?n:Array.from(n)}function fH(){return[]}function Mz(n){return n==null?fH:function(){return this.querySelectorAll(n)}}function dH(n){return function(){return cH(n.apply(this,arguments))}}function hH(n){typeof n=="function"?n=dH(n):n=Mz(n);for(var a=this._groups,i=a.length,s=[],l=[],f=0;f<i;++f)for(var d=a[f],h=d.length,p,m=0;m<h;++m)(p=d[m])&&(s.push(n.call(p,p.__data__,m,d)),l.push(p));return new Kn(s,l)}function qz(n){return function(){return this.matches(n)}}function zz(n){return function(a){return a.matches(n)}}var pH=Array.prototype.find;function mH(n){return function(){return pH.call(this.children,n)}}function gH(){return this.firstElementChild}function yH(n){return this.select(n==null?gH:mH(typeof n=="function"?n:zz(n)))}var vH=Array.prototype.filter;function bH(){return Array.from(this.children)}function _H(n){return function(){return vH.call(this.children,n)}}function SH(n){return this.selectAll(n==null?bH:_H(typeof n=="function"?n:zz(n)))}function xH(n){typeof n!="function"&&(n=qz(n));for(var a=this._groups,i=a.length,s=new Array(i),l=0;l<i;++l)for(var f=a[l],d=f.length,h=s[l]=[],p,m=0;m<d;++m)(p=f[m])&&n.call(p,p.__data__,m,f)&&h.push(p);return new Kn(s,this._parents)}function Uz(n){return new Array(n.length)}function EH(){return new Kn(this._enter||this._groups.map(Uz),this._parents)}function vh(n,a){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=a}vh.prototype={constructor:vh,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,a){return this._parent.insertBefore(n,a)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};function wH(n){return function(){return n}}function TH(n,a,i,s,l,f){for(var d=0,h,p=a.length,m=f.length;d<m;++d)(h=a[d])?(h.__data__=f[d],s[d]=h):i[d]=new vh(n,f[d]);for(;d<p;++d)(h=a[d])&&(l[d]=h)}function RH(n,a,i,s,l,f,d){var h,p,m=new Map,y=a.length,v=f.length,b=new Array(y),S;for(h=0;h<y;++h)(p=a[h])&&(b[h]=S=d.call(p,p.__data__,h,a)+"",m.has(S)?l[h]=p:m.set(S,p));for(h=0;h<v;++h)S=d.call(n,f[h],h,f)+"",(p=m.get(S))?(s[h]=p,p.__data__=f[h],m.delete(S)):i[h]=new vh(n,f[h]);for(h=0;h<y;++h)(p=a[h])&&m.get(b[h])===p&&(l[h]=p)}function AH(n){return n.__data__}function NH(n,a){if(!arguments.length)return Array.from(this,AH);var i=a?RH:TH,s=this._parents,l=this._groups;typeof n!="function"&&(n=wH(n));for(var f=l.length,d=new Array(f),h=new Array(f),p=new Array(f),m=0;m<f;++m){var y=s[m],v=l[m],b=v.length,S=DH(n.call(y,y&&y.__data__,m,s)),x=S.length,A=h[m]=new Array(x),w=d[m]=new Array(x),T=p[m]=new Array(b);i(y,v,A,w,T,S,a);for(var C=0,E=0,N,M;C<x;++C)if(N=A[C]){for(C>=E&&(E=C+1);!(M=w[E])&&++E<x;);N._next=M||null}}return d=new Kn(d,s),d._enter=h,d._exit=p,d}function DH(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function CH(){return new Kn(this._exit||this._groups.map(Uz),this._parents)}function OH(n,a,i){var s=this.enter(),l=this,f=this.exit();return typeof n=="function"?(s=n(s),s&&(s=s.selection())):s=s.append(n+""),a!=null&&(l=a(l),l&&(l=l.selection())),i==null?f.remove():i(f),s&&l?s.merge(l).order():l}function MH(n){for(var a=n.selection?n.selection():n,i=this._groups,s=a._groups,l=i.length,f=s.length,d=Math.min(l,f),h=new Array(l),p=0;p<d;++p)for(var m=i[p],y=s[p],v=m.length,b=h[p]=new Array(v),S,x=0;x<v;++x)(S=m[x]||y[x])&&(b[x]=S);for(;p<l;++p)h[p]=i[p];return new Kn(h,this._parents)}function qH(){for(var n=this._groups,a=-1,i=n.length;++a<i;)for(var s=n[a],l=s.length-1,f=s[l],d;--l>=0;)(d=s[l])&&(f&&d.compareDocumentPosition(f)^4&&f.parentNode.insertBefore(d,f),f=d);return this}function zH(n){n||(n=UH);function a(v,b){return v&&b?n(v.__data__,b.__data__):!v-!b}for(var i=this._groups,s=i.length,l=new Array(s),f=0;f<s;++f){for(var d=i[f],h=d.length,p=l[f]=new Array(h),m,y=0;y<h;++y)(m=d[y])&&(p[y]=m);p.sort(a)}return new Kn(l,this._parents).order()}function UH(n,a){return n<a?-1:n>a?1:n>=a?0:NaN}function jH(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function LH(){return Array.from(this)}function HH(){for(var n=this._groups,a=0,i=n.length;a<i;++a)for(var s=n[a],l=0,f=s.length;l<f;++l){var d=s[l];if(d)return d}return null}function kH(){let n=0;for(const a of this)++n;return n}function VH(){return!this.node()}function BH(n){for(var a=this._groups,i=0,s=a.length;i<s;++i)for(var l=a[i],f=0,d=l.length,h;f<d;++f)(h=l[f])&&n.call(h,h.__data__,f,l);return this}function IH(n){return function(){this.removeAttribute(n)}}function GH(n){return function(){this.removeAttributeNS(n.space,n.local)}}function YH(n,a){return function(){this.setAttribute(n,a)}}function $H(n,a){return function(){this.setAttributeNS(n.space,n.local,a)}}function XH(n,a){return function(){var i=a.apply(this,arguments);i==null?this.removeAttribute(n):this.setAttribute(n,i)}}function PH(n,a){return function(){var i=a.apply(this,arguments);i==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,i)}}function ZH(n,a){var i=qh(n);if(arguments.length<2){var s=this.node();return i.local?s.getAttributeNS(i.space,i.local):s.getAttribute(i)}return this.each((a==null?i.local?GH:IH:typeof a=="function"?i.local?PH:XH:i.local?$H:YH)(i,a))}function jz(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function QH(n){return function(){this.style.removeProperty(n)}}function FH(n,a,i){return function(){this.style.setProperty(n,a,i)}}function JH(n,a,i){return function(){var s=a.apply(this,arguments);s==null?this.style.removeProperty(n):this.style.setProperty(n,s,i)}}function KH(n,a,i){return arguments.length>1?this.each((a==null?QH:typeof a=="function"?JH:FH)(n,a,i??"")):il(this.node(),n)}function il(n,a){return n.style.getPropertyValue(a)||jz(n).getComputedStyle(n,null).getPropertyValue(a)}function WH(n){return function(){delete this[n]}}function ek(n,a){return function(){this[n]=a}}function tk(n,a){return function(){var i=a.apply(this,arguments);i==null?delete this[n]:this[n]=i}}function nk(n,a){return arguments.length>1?this.each((a==null?WH:typeof a=="function"?tk:ek)(n,a)):this.node()[n]}function Lz(n){return n.trim().split(/^|\s+/)}function VS(n){return n.classList||new Hz(n)}function Hz(n){this._node=n,this._names=Lz(n.getAttribute("class")||"")}Hz.prototype={add:function(n){var a=this._names.indexOf(n);a<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var a=this._names.indexOf(n);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function kz(n,a){for(var i=VS(n),s=-1,l=a.length;++s<l;)i.add(a[s])}function Vz(n,a){for(var i=VS(n),s=-1,l=a.length;++s<l;)i.remove(a[s])}function rk(n){return function(){kz(this,n)}}function ak(n){return function(){Vz(this,n)}}function ok(n,a){return function(){(a.apply(this,arguments)?kz:Vz)(this,n)}}function ik(n,a){var i=Lz(n+"");if(arguments.length<2){for(var s=VS(this.node()),l=-1,f=i.length;++l<f;)if(!s.contains(i[l]))return!1;return!0}return this.each((typeof a=="function"?ok:a?rk:ak)(i,a))}function sk(){this.textContent=""}function lk(n){return function(){this.textContent=n}}function uk(n){return function(){var a=n.apply(this,arguments);this.textContent=a??""}}function ck(n){return arguments.length?this.each(n==null?sk:(typeof n=="function"?uk:lk)(n)):this.node().textContent}function fk(){this.innerHTML=""}function dk(n){return function(){this.innerHTML=n}}function hk(n){return function(){var a=n.apply(this,arguments);this.innerHTML=a??""}}function pk(n){return arguments.length?this.each(n==null?fk:(typeof n=="function"?hk:dk)(n)):this.node().innerHTML}function mk(){this.nextSibling&&this.parentNode.appendChild(this)}function gk(){return this.each(mk)}function yk(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vk(){return this.each(yk)}function bk(n){var a=typeof n=="function"?n:Oz(n);return this.select(function(){return this.appendChild(a.apply(this,arguments))})}function _k(){return null}function Sk(n,a){var i=typeof n=="function"?n:Oz(n),s=a==null?_k:typeof a=="function"?a:kS(a);return this.select(function(){return this.insertBefore(i.apply(this,arguments),s.apply(this,arguments)||null)})}function xk(){var n=this.parentNode;n&&n.removeChild(this)}function Ek(){return this.each(xk)}function wk(){var n=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}function Tk(){var n=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}function Rk(n){return this.select(n?Tk:wk)}function Ak(n){return arguments.length?this.property("__data__",n):this.node().__data__}function Nk(n){return function(a){n.call(this,a,this.__data__)}}function Dk(n){return n.trim().split(/^|\s+/).map(function(a){var i="",s=a.indexOf(".");return s>=0&&(i=a.slice(s+1),a=a.slice(0,s)),{type:a,name:i}})}function Ck(n){return function(){var a=this.__on;if(a){for(var i=0,s=-1,l=a.length,f;i<l;++i)f=a[i],(!n.type||f.type===n.type)&&f.name===n.name?this.removeEventListener(f.type,f.listener,f.options):a[++s]=f;++s?a.length=s:delete this.__on}}}function Ok(n,a,i){return function(){var s=this.__on,l,f=Nk(a);if(s){for(var d=0,h=s.length;d<h;++d)if((l=s[d]).type===n.type&&l.name===n.name){this.removeEventListener(l.type,l.listener,l.options),this.addEventListener(l.type,l.listener=f,l.options=i),l.value=a;return}}this.addEventListener(n.type,f,i),l={type:n.type,name:n.name,value:a,listener:f,options:i},s?s.push(l):this.__on=[l]}}function Mk(n,a,i){var s=Dk(n+""),l,f=s.length,d;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,m=h.length,y;p<m;++p)for(l=0,y=h[p];l<f;++l)if((d=s[l]).type===y.type&&d.name===y.name)return y.value}return}for(h=a?Ok:Ck,l=0;l<f;++l)this.each(h(s[l],a,i));return this}function Bz(n,a,i){var s=jz(n),l=s.CustomEvent;typeof l=="function"?l=new l(a,i):(l=s.document.createEvent("Event"),i?(l.initEvent(a,i.bubbles,i.cancelable),l.detail=i.detail):l.initEvent(a,!1,!1)),n.dispatchEvent(l)}function qk(n,a){return function(){return Bz(this,n,a)}}function zk(n,a){return function(){return Bz(this,n,a.apply(this,arguments))}}function Uk(n,a){return this.each((typeof a=="function"?zk:qk)(n,a))}function*jk(){for(var n=this._groups,a=0,i=n.length;a<i;++a)for(var s=n[a],l=0,f=s.length,d;l<f;++l)(d=s[l])&&(yield d)}var Iz=[null];function Kn(n,a){this._groups=n,this._parents=a}function bc(){return new Kn([[document.documentElement]],Iz)}function Lk(){return this}Kn.prototype=bc.prototype={constructor:Kn,select:uH,selectAll:hH,selectChild:yH,selectChildren:SH,filter:xH,data:NH,enter:EH,exit:CH,join:OH,merge:MH,selection:Lk,order:qH,sort:zH,call:jH,nodes:LH,node:HH,size:kH,empty:VH,each:BH,attr:ZH,style:KH,property:nk,classed:ik,text:ck,html:pk,raise:gk,lower:vk,append:bk,insert:Sk,remove:Ek,clone:Rk,datum:Ak,on:Mk,dispatch:Uk,[Symbol.iterator]:jk};function Jn(n){return typeof n=="string"?new Kn([[document.querySelector(n)]],[document.documentElement]):new Kn([[n]],Iz)}function Hk(n){let a;for(;a=n.sourceEvent;)n=a;return n}function Cr(n,a){if(n=Hk(n),a===void 0&&(a=n.currentTarget),a){var i=a.ownerSVGElement||a;if(i.createSVGPoint){var s=i.createSVGPoint();return s.x=n.clientX,s.y=n.clientY,s=s.matrixTransform(a.getScreenCTM().inverse()),[s.x,s.y]}if(a.getBoundingClientRect){var l=a.getBoundingClientRect();return[n.clientX-l.left-a.clientLeft,n.clientY-l.top-a.clientTop]}}return[n.pageX,n.pageY]}const kk={passive:!1},cc={capture:!0,passive:!1};function $y(n){n.stopImmediatePropagation()}function al(n){n.preventDefault(),n.stopImmediatePropagation()}function Gz(n){var a=n.document.documentElement,i=Jn(n).on("dragstart.drag",al,cc);"onselectstart"in a?i.on("selectstart.drag",al,cc):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function Yz(n,a){var i=n.document.documentElement,s=Jn(n).on("dragstart.drag",null);a&&(s.on("click.drag",al,cc),setTimeout(function(){s.on("click.drag",null)},0)),"onselectstart"in i?s.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}const nh=n=>()=>n;function TS(n,{sourceEvent:a,subject:i,target:s,identifier:l,active:f,x:d,y:h,dx:p,dy:m,dispatch:y}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},subject:{value:i,enumerable:!0,configurable:!0},target:{value:s,enumerable:!0,configurable:!0},identifier:{value:l,enumerable:!0,configurable:!0},active:{value:f,enumerable:!0,configurable:!0},x:{value:d,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:p,enumerable:!0,configurable:!0},dy:{value:m,enumerable:!0,configurable:!0},_:{value:y}})}TS.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function Vk(n){return!n.ctrlKey&&!n.button}function Bk(){return this.parentNode}function Ik(n,a){return a??{x:n.x,y:n.y}}function Gk(){return navigator.maxTouchPoints||"ontouchstart"in this}function $z(){var n=Vk,a=Bk,i=Ik,s=Gk,l={},f=Mh("start","drag","end"),d=0,h,p,m,y,v=0;function b(N){N.on("mousedown.drag",S).filter(s).on("touchstart.drag",w).on("touchmove.drag",T,kk).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(N,M){if(!(y||!n.call(this,N,M))){var q=E(this,a.call(this,N,M),N,M,"mouse");q&&(Jn(N.view).on("mousemove.drag",x,cc).on("mouseup.drag",A,cc),Gz(N.view),$y(N),m=!1,h=N.clientX,p=N.clientY,q("start",N))}}function x(N){if(al(N),!m){var M=N.clientX-h,q=N.clientY-p;m=M*M+q*q>v}l.mouse("drag",N)}function A(N){Jn(N.view).on("mousemove.drag mouseup.drag",null),Yz(N.view,m),al(N),l.mouse("end",N)}function w(N,M){if(n.call(this,N,M)){var q=N.changedTouches,U=a.call(this,N,M),H=q.length,k,G;for(k=0;k<H;++k)(G=E(this,U,N,M,q[k].identifier,q[k]))&&($y(N),G("start",N,q[k]))}}function T(N){var M=N.changedTouches,q=M.length,U,H;for(U=0;U<q;++U)(H=l[M[U].identifier])&&(al(N),H("drag",N,M[U]))}function C(N){var M=N.changedTouches,q=M.length,U,H;for(y&&clearTimeout(y),y=setTimeout(function(){y=null},500),U=0;U<q;++U)(H=l[M[U].identifier])&&($y(N),H("end",N,M[U]))}function E(N,M,q,U,H,k){var G=f.copy(),V=Cr(k||q,M),X,ee,j;if((j=i.call(N,new TS("beforestart",{sourceEvent:q,target:b,identifier:H,active:d,x:V[0],y:V[1],dx:0,dy:0,dispatch:G}),U))!=null)return X=j.x-V[0]||0,ee=j.y-V[1]||0,function Q(L,F,Z){var ne=V,de;switch(L){case"start":l[H]=Q,de=d++;break;case"end":delete l[H],--d;case"drag":V=Cr(Z||F,M),de=d;break}G.call(L,N,new TS(L,{sourceEvent:F,subject:j,target:b,identifier:H,active:de,x:V[0]+X,y:V[1]+ee,dx:V[0]-ne[0],dy:V[1]-ne[1],dispatch:G}),U)}}return b.filter=function(N){return arguments.length?(n=typeof N=="function"?N:nh(!!N),b):n},b.container=function(N){return arguments.length?(a=typeof N=="function"?N:nh(N),b):a},b.subject=function(N){return arguments.length?(i=typeof N=="function"?N:nh(N),b):i},b.touchable=function(N){return arguments.length?(s=typeof N=="function"?N:nh(!!N),b):s},b.on=function(){var N=f.on.apply(f,arguments);return N===f?b:N},b.clickDistance=function(N){return arguments.length?(v=(N=+N)*N,b):Math.sqrt(v)},b}function BS(n,a,i){n.prototype=a.prototype=i,i.constructor=n}function Xz(n,a){var i=Object.create(n.prototype);for(var s in a)i[s]=a[s];return i}function _c(){}var fc=.7,bh=1/fc,ol="\\s*([+-]?\\d+)\\s*",dc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",da="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yk=/^#([0-9a-f]{3,8})$/,$k=new RegExp(`^rgb\\(${ol},${ol},${ol}\\)$`),Xk=new RegExp(`^rgb\\(${da},${da},${da}\\)$`),Pk=new RegExp(`^rgba\\(${ol},${ol},${ol},${dc}\\)$`),Zk=new RegExp(`^rgba\\(${da},${da},${da},${dc}\\)$`),Qk=new RegExp(`^hsl\\(${dc},${da},${da}\\)$`),Fk=new RegExp(`^hsla\\(${dc},${da},${da},${dc}\\)$`),tD={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};BS(_c,Vi,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:nD,formatHex:nD,formatHex8:Jk,formatHsl:Kk,formatRgb:rD,toString:rD});function nD(){return this.rgb().formatHex()}function Jk(){return this.rgb().formatHex8()}function Kk(){return Pz(this).formatHsl()}function rD(){return this.rgb().formatRgb()}function Vi(n){var a,i;return n=(n+"").trim().toLowerCase(),(a=Yk.exec(n))?(i=a[1].length,a=parseInt(a[1],16),i===6?aD(a):i===3?new jn(a>>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):i===8?rh(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):i===4?rh(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=$k.exec(n))?new jn(a[1],a[2],a[3],1):(a=Xk.exec(n))?new jn(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=Pk.exec(n))?rh(a[1],a[2],a[3],a[4]):(a=Zk.exec(n))?rh(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=Qk.exec(n))?sD(a[1],a[2]/100,a[3]/100,1):(a=Fk.exec(n))?sD(a[1],a[2]/100,a[3]/100,a[4]):tD.hasOwnProperty(n)?aD(tD[n]):n==="transparent"?new jn(NaN,NaN,NaN,0):null}function aD(n){return new jn(n>>16&255,n>>8&255,n&255,1)}function rh(n,a,i,s){return s<=0&&(n=a=i=NaN),new jn(n,a,i,s)}function Wk(n){return n instanceof _c||(n=Vi(n)),n?(n=n.rgb(),new jn(n.r,n.g,n.b,n.opacity)):new jn}function RS(n,a,i,s){return arguments.length===1?Wk(n):new jn(n,a,i,s??1)}function jn(n,a,i,s){this.r=+n,this.g=+a,this.b=+i,this.opacity=+s}BS(jn,RS,Xz(_c,{brighter(n){return n=n==null?bh:Math.pow(bh,n),new jn(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?fc:Math.pow(fc,n),new jn(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new jn(Hi(this.r),Hi(this.g),Hi(this.b),_h(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:oD,formatHex:oD,formatHex8:e8,formatRgb:iD,toString:iD}));function oD(){return`#${Li(this.r)}${Li(this.g)}${Li(this.b)}`}function e8(){return`#${Li(this.r)}${Li(this.g)}${Li(this.b)}${Li((isNaN(this.opacity)?1:this.opacity)*255)}`}function iD(){const n=_h(this.opacity);return`${n===1?"rgb(":"rgba("}${Hi(this.r)}, ${Hi(this.g)}, ${Hi(this.b)}${n===1?")":`, ${n})`}`}function _h(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function Hi(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function Li(n){return n=Hi(n),(n<16?"0":"")+n.toString(16)}function sD(n,a,i,s){return s<=0?n=a=i=NaN:i<=0||i>=1?n=a=NaN:a<=0&&(n=NaN),new Or(n,a,i,s)}function Pz(n){if(n instanceof Or)return new Or(n.h,n.s,n.l,n.opacity);if(n instanceof _c||(n=Vi(n)),!n)return new Or;if(n instanceof Or)return n;n=n.rgb();var a=n.r/255,i=n.g/255,s=n.b/255,l=Math.min(a,i,s),f=Math.max(a,i,s),d=NaN,h=f-l,p=(f+l)/2;return h?(a===f?d=(i-s)/h+(i<s)*6:i===f?d=(s-a)/h+2:d=(a-i)/h+4,h/=p<.5?f+l:2-f-l,d*=60):h=p>0&&p<1?0:d,new Or(d,h,p,n.opacity)}function t8(n,a,i,s){return arguments.length===1?Pz(n):new Or(n,a,i,s??1)}function Or(n,a,i,s){this.h=+n,this.s=+a,this.l=+i,this.opacity=+s}BS(Or,t8,Xz(_c,{brighter(n){return n=n==null?bh:Math.pow(bh,n),new Or(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?fc:Math.pow(fc,n),new Or(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,a=isNaN(n)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*a,l=2*i-s;return new jn(Xy(n>=240?n-240:n+120,l,s),Xy(n,l,s),Xy(n<120?n+240:n-120,l,s),this.opacity)},clamp(){return new Or(lD(this.h),ah(this.s),ah(this.l),_h(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=_h(this.opacity);return`${n===1?"hsl(":"hsla("}${lD(this.h)}, ${ah(this.s)*100}%, ${ah(this.l)*100}%${n===1?")":`, ${n})`}`}}));function lD(n){return n=(n||0)%360,n<0?n+360:n}function ah(n){return Math.max(0,Math.min(1,n||0))}function Xy(n,a,i){return(n<60?a+(i-a)*n/60:n<180?i:n<240?a+(i-a)*(240-n)/60:a)*255}const IS=n=>()=>n;function n8(n,a){return function(i){return n+i*a}}function r8(n,a,i){return n=Math.pow(n,i),a=Math.pow(a,i)-n,i=1/i,function(s){return Math.pow(n+s*a,i)}}function a8(n){return(n=+n)==1?Zz:function(a,i){return i-a?r8(a,i,n):IS(isNaN(a)?i:a)}}function Zz(n,a){var i=a-n;return i?n8(n,i):IS(isNaN(n)?a:n)}const Sh=(function n(a){var i=a8(a);function s(l,f){var d=i((l=RS(l)).r,(f=RS(f)).r),h=i(l.g,f.g),p=i(l.b,f.b),m=Zz(l.opacity,f.opacity);return function(y){return l.r=d(y),l.g=h(y),l.b=p(y),l.opacity=m(y),l+""}}return s.gamma=n,s})(1);function o8(n,a){a||(a=[]);var i=n?Math.min(a.length,n.length):0,s=a.slice(),l;return function(f){for(l=0;l<i;++l)s[l]=n[l]*(1-f)+a[l]*f;return s}}function i8(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function s8(n,a){var i=a?a.length:0,s=n?Math.min(i,n.length):0,l=new Array(s),f=new Array(i),d;for(d=0;d<s;++d)l[d]=lc(n[d],a[d]);for(;d<i;++d)f[d]=a[d];return function(h){for(d=0;d<s;++d)f[d]=l[d](h);return f}}function l8(n,a){var i=new Date;return n=+n,a=+a,function(s){return i.setTime(n*(1-s)+a*s),i}}function fa(n,a){return n=+n,a=+a,function(i){return n*(1-i)+a*i}}function u8(n,a){var i={},s={},l;(n===null||typeof n!="object")&&(n={}),(a===null||typeof a!="object")&&(a={});for(l in a)l in n?i[l]=lc(n[l],a[l]):s[l]=a[l];return function(f){for(l in i)s[l]=i[l](f);return s}}var AS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Py=new RegExp(AS.source,"g");function c8(n){return function(){return n}}function f8(n){return function(a){return n(a)+""}}function Qz(n,a){var i=AS.lastIndex=Py.lastIndex=0,s,l,f,d=-1,h=[],p=[];for(n=n+"",a=a+"";(s=AS.exec(n))&&(l=Py.exec(a));)(f=l.index)>i&&(f=a.slice(i,f),h[d]?h[d]+=f:h[++d]=f),(s=s[0])===(l=l[0])?h[d]?h[d]+=l:h[++d]=l:(h[++d]=null,p.push({i:d,x:fa(s,l)})),i=Py.lastIndex;return i<a.length&&(f=a.slice(i),h[d]?h[d]+=f:h[++d]=f),h.length<2?p[0]?f8(p[0].x):c8(a):(a=p.length,function(m){for(var y=0,v;y<a;++y)h[(v=p[y]).i]=v.x(m);return h.join("")})}function lc(n,a){var i=typeof a,s;return a==null||i==="boolean"?IS(a):(i==="number"?fa:i==="string"?(s=Vi(a))?(a=s,Sh):Qz:a instanceof Vi?Sh:a instanceof Date?l8:i8(a)?o8:Array.isArray(a)?s8:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?u8:fa)(n,a)}var uD=180/Math.PI,NS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fz(n,a,i,s,l,f){var d,h,p;return(d=Math.sqrt(n*n+a*a))&&(n/=d,a/=d),(p=n*i+a*s)&&(i-=n*p,s-=a*p),(h=Math.sqrt(i*i+s*s))&&(i/=h,s/=h,p/=h),n*s<a*i&&(n=-n,a=-a,p=-p,d=-d),{translateX:l,translateY:f,rotate:Math.atan2(a,n)*uD,skewX:Math.atan(p)*uD,scaleX:d,scaleY:h}}var oh;function d8(n){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return a.isIdentity?NS:Fz(a.a,a.b,a.c,a.d,a.e,a.f)}function h8(n){return n==null||(oh||(oh=document.createElementNS("http://www.w3.org/2000/svg","g")),oh.setAttribute("transform",n),!(n=oh.transform.baseVal.consolidate()))?NS:(n=n.matrix,Fz(n.a,n.b,n.c,n.d,n.e,n.f))}function Jz(n,a,i,s){function l(m){return m.length?m.pop()+" ":""}function f(m,y,v,b,S,x){if(m!==v||y!==b){var A=S.push("translate(",null,a,null,i);x.push({i:A-4,x:fa(m,v)},{i:A-2,x:fa(y,b)})}else(v||b)&&S.push("translate("+v+a+b+i)}function d(m,y,v,b){m!==y?(m-y>180?y+=360:y-m>180&&(m+=360),b.push({i:v.push(l(v)+"rotate(",null,s)-2,x:fa(m,y)})):y&&v.push(l(v)+"rotate("+y+s)}function h(m,y,v,b){m!==y?b.push({i:v.push(l(v)+"skewX(",null,s)-2,x:fa(m,y)}):y&&v.push(l(v)+"skewX("+y+s)}function p(m,y,v,b,S,x){if(m!==v||y!==b){var A=S.push(l(S)+"scale(",null,",",null,")");x.push({i:A-4,x:fa(m,v)},{i:A-2,x:fa(y,b)})}else(v!==1||b!==1)&&S.push(l(S)+"scale("+v+","+b+")")}return function(m,y){var v=[],b=[];return m=n(m),y=n(y),f(m.translateX,m.translateY,y.translateX,y.translateY,v,b),d(m.rotate,y.rotate,v,b),h(m.skewX,y.skewX,v,b),p(m.scaleX,m.scaleY,y.scaleX,y.scaleY,v,b),m=y=null,function(S){for(var x=-1,A=b.length,w;++x<A;)v[(w=b[x]).i]=w.x(S);return v.join("")}}}var p8=Jz(d8,"px, ","px)","deg)"),m8=Jz(h8,", ",")",")"),g8=1e-12;function cD(n){return((n=Math.exp(n))+1/n)/2}function y8(n){return((n=Math.exp(n))-1/n)/2}function v8(n){return((n=Math.exp(2*n))-1)/(n+1)}const ph=(function n(a,i,s){function l(f,d){var h=f[0],p=f[1],m=f[2],y=d[0],v=d[1],b=d[2],S=y-h,x=v-p,A=S*S+x*x,w,T;if(A<g8)T=Math.log(b/m)/a,w=function(U){return[h+U*S,p+U*x,m*Math.exp(a*U*T)]};else{var C=Math.sqrt(A),E=(b*b-m*m+s*A)/(2*m*i*C),N=(b*b-m*m-s*A)/(2*b*i*C),M=Math.log(Math.sqrt(E*E+1)-E),q=Math.log(Math.sqrt(N*N+1)-N);T=(q-M)/a,w=function(U){var H=U*T,k=cD(M),G=m/(i*C)*(k*v8(a*H+M)-y8(M));return[h+G*S,p+G*x,m*k/cD(a*H+M)]}}return w.duration=T*1e3*a/Math.SQRT2,w}return l.rho=function(f){var d=Math.max(.001,+f),h=d*d,p=h*h;return n(d,h,p)},l})(Math.SQRT2,2,4);var sl=0,rc=0,ec=0,Kz=1e3,xh,ac,Eh=0,Bi=0,zh=0,hc=typeof performance=="object"&&performance.now?performance:Date,Wz=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function GS(){return Bi||(Wz(b8),Bi=hc.now()+zh)}function b8(){Bi=0}function wh(){this._call=this._time=this._next=null}wh.prototype=eU.prototype={constructor:wh,restart:function(n,a,i){if(typeof n!="function")throw new TypeError("callback is not a function");i=(i==null?GS():+i)+(a==null?0:+a),!this._next&&ac!==this&&(ac?ac._next=this:xh=this,ac=this),this._call=n,this._time=i,DS()},stop:function(){this._call&&(this._call=null,this._time=1/0,DS())}};function eU(n,a,i){var s=new wh;return s.restart(n,a,i),s}function _8(){GS(),++sl;for(var n=xh,a;n;)(a=Bi-n._time)>=0&&n._call.call(void 0,a),n=n._next;--sl}function fD(){Bi=(Eh=hc.now())+zh,sl=rc=0;try{_8()}finally{sl=0,x8(),Bi=0}}function S8(){var n=hc.now(),a=n-Eh;a>Kz&&(zh-=a,Eh=n)}function x8(){for(var n,a=xh,i,s=1/0;a;)a._call?(s>a._time&&(s=a._time),n=a,a=a._next):(i=a._next,a._next=null,a=n?n._next=i:xh=i);ac=n,DS(s)}function DS(n){if(!sl){rc&&(rc=clearTimeout(rc));var a=n-Bi;a>24?(n<1/0&&(rc=setTimeout(fD,n-hc.now()-zh)),ec&&(ec=clearInterval(ec))):(ec||(Eh=hc.now(),ec=setInterval(S8,Kz)),sl=1,Wz(fD))}}function dD(n,a,i){var s=new wh;return a=a==null?0:+a,s.restart(l=>{s.stop(),n(l+a)},a,i),s}var E8=Mh("start","end","cancel","interrupt"),w8=[],tU=0,hD=1,CS=2,mh=3,pD=4,OS=5,gh=6;function Uh(n,a,i,s,l,f){var d=n.__transition;if(!d)n.__transition={};else if(i in d)return;T8(n,i,{name:a,index:s,group:l,on:E8,tween:w8,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:tU})}function YS(n,a){var i=Ur(n,a);if(i.state>tU)throw new Error("too late; already scheduled");return i}function pa(n,a){var i=Ur(n,a);if(i.state>mh)throw new Error("too late; already running");return i}function Ur(n,a){var i=n.__transition;if(!i||!(i=i[a]))throw new Error("transition not found");return i}function T8(n,a,i){var s=n.__transition,l;s[a]=i,i.timer=eU(f,0,i.time);function f(m){i.state=hD,i.timer.restart(d,i.delay,i.time),i.delay<=m&&d(m-i.delay)}function d(m){var y,v,b,S;if(i.state!==hD)return p();for(y in s)if(S=s[y],S.name===i.name){if(S.state===mh)return dD(d);S.state===pD?(S.state=gh,S.timer.stop(),S.on.call("interrupt",n,n.__data__,S.index,S.group),delete s[y]):+y<a&&(S.state=gh,S.timer.stop(),S.on.call("cancel",n,n.__data__,S.index,S.group),delete s[y])}if(dD(function(){i.state===mh&&(i.state=pD,i.timer.restart(h,i.delay,i.time),h(m))}),i.state=CS,i.on.call("start",n,n.__data__,i.index,i.group),i.state===CS){for(i.state=mh,l=new Array(b=i.tween.length),y=0,v=-1;y<b;++y)(S=i.tween[y].value.call(n,n.__data__,i.index,i.group))&&(l[++v]=S);l.length=v+1}}function h(m){for(var y=m<i.duration?i.ease.call(null,m/i.duration):(i.timer.restart(p),i.state=OS,1),v=-1,b=l.length;++v<b;)l[v].call(n,y);i.state===OS&&(i.on.call("end",n,n.__data__,i.index,i.group),p())}function p(){i.state=gh,i.timer.stop(),delete s[a];for(var m in s)return;delete n.__transition}}function yh(n,a){var i=n.__transition,s,l,f=!0,d;if(i){a=a==null?null:a+"";for(d in i){if((s=i[d]).name!==a){f=!1;continue}l=s.state>CS&&s.state<OS,s.state=gh,s.timer.stop(),s.on.call(l?"interrupt":"cancel",n,n.__data__,s.index,s.group),delete i[d]}f&&delete n.__transition}}function R8(n){return this.each(function(){yh(this,n)})}function A8(n,a){var i,s;return function(){var l=pa(this,n),f=l.tween;if(f!==i){s=i=f;for(var d=0,h=s.length;d<h;++d)if(s[d].name===a){s=s.slice(),s.splice(d,1);break}}l.tween=s}}function N8(n,a,i){var s,l;if(typeof i!="function")throw new Error;return function(){var f=pa(this,n),d=f.tween;if(d!==s){l=(s=d).slice();for(var h={name:a,value:i},p=0,m=l.length;p<m;++p)if(l[p].name===a){l[p]=h;break}p===m&&l.push(h)}f.tween=l}}function D8(n,a){var i=this._id;if(n+="",arguments.length<2){for(var s=Ur(this.node(),i).tween,l=0,f=s.length,d;l<f;++l)if((d=s[l]).name===n)return d.value;return null}return this.each((a==null?A8:N8)(i,n,a))}function $S(n,a,i){var s=n._id;return n.each(function(){var l=pa(this,s);(l.value||(l.value={}))[a]=i.apply(this,arguments)}),function(l){return Ur(l,s).value[a]}}function nU(n,a){var i;return(typeof a=="number"?fa:a instanceof Vi?Sh:(i=Vi(a))?(a=i,Sh):Qz)(n,a)}function C8(n){return function(){this.removeAttribute(n)}}function O8(n){return function(){this.removeAttributeNS(n.space,n.local)}}function M8(n,a,i){var s,l=i+"",f;return function(){var d=this.getAttribute(n);return d===l?null:d===s?f:f=a(s=d,i)}}function q8(n,a,i){var s,l=i+"",f;return function(){var d=this.getAttributeNS(n.space,n.local);return d===l?null:d===s?f:f=a(s=d,i)}}function z8(n,a,i){var s,l,f;return function(){var d,h=i(this),p;return h==null?void this.removeAttribute(n):(d=this.getAttribute(n),p=h+"",d===p?null:d===s&&p===l?f:(l=p,f=a(s=d,h)))}}function U8(n,a,i){var s,l,f;return function(){var d,h=i(this),p;return h==null?void this.removeAttributeNS(n.space,n.local):(d=this.getAttributeNS(n.space,n.local),p=h+"",d===p?null:d===s&&p===l?f:(l=p,f=a(s=d,h)))}}function j8(n,a){var i=qh(n),s=i==="transform"?m8:nU;return this.attrTween(n,typeof a=="function"?(i.local?U8:z8)(i,s,$S(this,"attr."+n,a)):a==null?(i.local?O8:C8)(i):(i.local?q8:M8)(i,s,a))}function L8(n,a){return function(i){this.setAttribute(n,a.call(this,i))}}function H8(n,a){return function(i){this.setAttributeNS(n.space,n.local,a.call(this,i))}}function k8(n,a){var i,s;function l(){var f=a.apply(this,arguments);return f!==s&&(i=(s=f)&&H8(n,f)),i}return l._value=a,l}function V8(n,a){var i,s;function l(){var f=a.apply(this,arguments);return f!==s&&(i=(s=f)&&L8(n,f)),i}return l._value=a,l}function B8(n,a){var i="attr."+n;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(a==null)return this.tween(i,null);if(typeof a!="function")throw new Error;var s=qh(n);return this.tween(i,(s.local?k8:V8)(s,a))}function I8(n,a){return function(){YS(this,n).delay=+a.apply(this,arguments)}}function G8(n,a){return a=+a,function(){YS(this,n).delay=a}}function Y8(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?I8:G8)(a,n)):Ur(this.node(),a).delay}function $8(n,a){return function(){pa(this,n).duration=+a.apply(this,arguments)}}function X8(n,a){return a=+a,function(){pa(this,n).duration=a}}function P8(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?$8:X8)(a,n)):Ur(this.node(),a).duration}function Z8(n,a){if(typeof a!="function")throw new Error;return function(){pa(this,n).ease=a}}function Q8(n){var a=this._id;return arguments.length?this.each(Z8(a,n)):Ur(this.node(),a).ease}function F8(n,a){return function(){var i=a.apply(this,arguments);if(typeof i!="function")throw new Error;pa(this,n).ease=i}}function J8(n){if(typeof n!="function")throw new Error;return this.each(F8(this._id,n))}function K8(n){typeof n!="function"&&(n=qz(n));for(var a=this._groups,i=a.length,s=new Array(i),l=0;l<i;++l)for(var f=a[l],d=f.length,h=s[l]=[],p,m=0;m<d;++m)(p=f[m])&&n.call(p,p.__data__,m,f)&&h.push(p);return new Pa(s,this._parents,this._name,this._id)}function W8(n){if(n._id!==this._id)throw new Error;for(var a=this._groups,i=n._groups,s=a.length,l=i.length,f=Math.min(s,l),d=new Array(s),h=0;h<f;++h)for(var p=a[h],m=i[h],y=p.length,v=d[h]=new Array(y),b,S=0;S<y;++S)(b=p[S]||m[S])&&(v[S]=b);for(;h<s;++h)d[h]=a[h];return new Pa(d,this._parents,this._name,this._id)}function eV(n){return(n+"").trim().split(/^|\s+/).every(function(a){var i=a.indexOf(".");return i>=0&&(a=a.slice(0,i)),!a||a==="start"})}function tV(n,a,i){var s,l,f=eV(a)?YS:pa;return function(){var d=f(this,n),h=d.on;h!==s&&(l=(s=h).copy()).on(a,i),d.on=l}}function nV(n,a){var i=this._id;return arguments.length<2?Ur(this.node(),i).on.on(n):this.each(tV(i,n,a))}function rV(n){return function(){var a=this.parentNode;for(var i in this.__transition)if(+i!==n)return;a&&a.removeChild(this)}}function aV(){return this.on("end.remove",rV(this._id))}function oV(n){var a=this._name,i=this._id;typeof n!="function"&&(n=kS(n));for(var s=this._groups,l=s.length,f=new Array(l),d=0;d<l;++d)for(var h=s[d],p=h.length,m=f[d]=new Array(p),y,v,b=0;b<p;++b)(y=h[b])&&(v=n.call(y,y.__data__,b,h))&&("__data__"in y&&(v.__data__=y.__data__),m[b]=v,Uh(m[b],a,i,b,m,Ur(y,i)));return new Pa(f,this._parents,a,i)}function iV(n){var a=this._name,i=this._id;typeof n!="function"&&(n=Mz(n));for(var s=this._groups,l=s.length,f=[],d=[],h=0;h<l;++h)for(var p=s[h],m=p.length,y,v=0;v<m;++v)if(y=p[v]){for(var b=n.call(y,y.__data__,v,p),S,x=Ur(y,i),A=0,w=b.length;A<w;++A)(S=b[A])&&Uh(S,a,i,A,b,x);f.push(b),d.push(y)}return new Pa(f,d,a,i)}var sV=bc.prototype.constructor;function lV(){return new sV(this._groups,this._parents)}function uV(n,a){var i,s,l;return function(){var f=il(this,n),d=(this.style.removeProperty(n),il(this,n));return f===d?null:f===i&&d===s?l:l=a(i=f,s=d)}}function rU(n){return function(){this.style.removeProperty(n)}}function cV(n,a,i){var s,l=i+"",f;return function(){var d=il(this,n);return d===l?null:d===s?f:f=a(s=d,i)}}function fV(n,a,i){var s,l,f;return function(){var d=il(this,n),h=i(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(n),il(this,n))),d===p?null:d===s&&p===l?f:(l=p,f=a(s=d,h))}}function dV(n,a){var i,s,l,f="style."+a,d="end."+f,h;return function(){var p=pa(this,n),m=p.on,y=p.value[f]==null?h||(h=rU(a)):void 0;(m!==i||l!==y)&&(s=(i=m).copy()).on(d,l=y),p.on=s}}function hV(n,a,i){var s=(n+="")=="transform"?p8:nU;return a==null?this.styleTween(n,uV(n,s)).on("end.style."+n,rU(n)):typeof a=="function"?this.styleTween(n,fV(n,s,$S(this,"style."+n,a))).each(dV(this._id,n)):this.styleTween(n,cV(n,s,a),i).on("end.style."+n,null)}function pV(n,a,i){return function(s){this.style.setProperty(n,a.call(this,s),i)}}function mV(n,a,i){var s,l;function f(){var d=a.apply(this,arguments);return d!==l&&(s=(l=d)&&pV(n,d,i)),s}return f._value=a,f}function gV(n,a,i){var s="style."+(n+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(a==null)return this.tween(s,null);if(typeof a!="function")throw new Error;return this.tween(s,mV(n,a,i??""))}function yV(n){return function(){this.textContent=n}}function vV(n){return function(){var a=n(this);this.textContent=a??""}}function bV(n){return this.tween("text",typeof n=="function"?vV($S(this,"text",n)):yV(n==null?"":n+""))}function _V(n){return function(a){this.textContent=n.call(this,a)}}function SV(n){var a,i;function s(){var l=n.apply(this,arguments);return l!==i&&(a=(i=l)&&_V(l)),a}return s._value=n,s}function xV(n){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(n==null)return this.tween(a,null);if(typeof n!="function")throw new Error;return this.tween(a,SV(n))}function EV(){for(var n=this._name,a=this._id,i=aU(),s=this._groups,l=s.length,f=0;f<l;++f)for(var d=s[f],h=d.length,p,m=0;m<h;++m)if(p=d[m]){var y=Ur(p,a);Uh(p,n,i,m,d,{time:y.time+y.delay+y.duration,delay:0,duration:y.duration,ease:y.ease})}return new Pa(s,this._parents,n,i)}function wV(){var n,a,i=this,s=i._id,l=i.size();return new Promise(function(f,d){var h={value:d},p={value:function(){--l===0&&f()}};i.each(function(){var m=pa(this,s),y=m.on;y!==n&&(a=(n=y).copy(),a._.cancel.push(h),a._.interrupt.push(h),a._.end.push(p)),m.on=a}),l===0&&f()})}var TV=0;function Pa(n,a,i,s){this._groups=n,this._parents=a,this._name=i,this._id=s}function aU(){return++TV}var $a=bc.prototype;Pa.prototype={constructor:Pa,select:oV,selectAll:iV,selectChild:$a.selectChild,selectChildren:$a.selectChildren,filter:K8,merge:W8,selection:lV,transition:EV,call:$a.call,nodes:$a.nodes,node:$a.node,size:$a.size,empty:$a.empty,each:$a.each,on:nV,attr:j8,attrTween:B8,style:hV,styleTween:gV,text:bV,textTween:xV,remove:aV,tween:D8,delay:Y8,duration:P8,ease:Q8,easeVarying:J8,end:wV,[Symbol.iterator]:$a[Symbol.iterator]};function RV(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var AV={time:null,delay:0,duration:250,ease:RV};function NV(n,a){for(var i;!(i=n.__transition)||!(i=i[a]);)if(!(n=n.parentNode))throw new Error(`transition ${a} not found`);return i}function DV(n){var a,i;n instanceof Pa?(a=n._id,n=n._name):(a=aU(),(i=AV).time=GS(),n=n==null?null:n+"");for(var s=this._groups,l=s.length,f=0;f<l;++f)for(var d=s[f],h=d.length,p,m=0;m<h;++m)(p=d[m])&&Uh(p,n,a,m,d,i||NV(p,a));return new Pa(s,this._parents,n,a)}bc.prototype.interrupt=R8;bc.prototype.transition=DV;const ih=n=>()=>n;function CV(n,{sourceEvent:a,target:i,transform:s,dispatch:l}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:s,enumerable:!0,configurable:!0},_:{value:l}})}function Xa(n,a,i){this.k=n,this.x=a,this.y=i}Xa.prototype={constructor:Xa,scale:function(n){return n===1?this:new Xa(this.k*n,this.x,this.y)},translate:function(n,a){return n===0&a===0?this:new Xa(this.k,this.x+this.k*n,this.y+this.k*a)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var jh=new Xa(1,0,0);oU.prototype=Xa.prototype;function oU(n){for(;!n.__zoom;)if(!(n=n.parentNode))return jh;return n.__zoom}function Zy(n){n.stopImmediatePropagation()}function tc(n){n.preventDefault(),n.stopImmediatePropagation()}function OV(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function MV(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function mD(){return this.__zoom||jh}function qV(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function zV(){return navigator.maxTouchPoints||"ontouchstart"in this}function UV(n,a,i){var s=n.invertX(a[0][0])-i[0][0],l=n.invertX(a[1][0])-i[1][0],f=n.invertY(a[0][1])-i[0][1],d=n.invertY(a[1][1])-i[1][1];return n.translate(l>s?(s+l)/2:Math.min(0,s)||Math.max(0,l),d>f?(f+d)/2:Math.min(0,f)||Math.max(0,d))}function iU(){var n=OV,a=MV,i=UV,s=qV,l=zV,f=[0,1/0],d=[[-1/0,-1/0],[1/0,1/0]],h=250,p=ph,m=Mh("start","zoom","end"),y,v,b,S=500,x=150,A=0,w=10;function T(j){j.property("__zoom",mD).on("wheel.zoom",H,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",G).filter(l).on("touchstart.zoom",V).on("touchmove.zoom",X).on("touchend.zoom touchcancel.zoom",ee).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(j,Q,L,F){var Z=j.selection?j.selection():j;Z.property("__zoom",mD),j!==Z?M(j,Q,L,F):Z.interrupt().each(function(){q(this,arguments).event(F).start().zoom(null,typeof Q=="function"?Q.apply(this,arguments):Q).end()})},T.scaleBy=function(j,Q,L,F){T.scaleTo(j,function(){var Z=this.__zoom.k,ne=typeof Q=="function"?Q.apply(this,arguments):Q;return Z*ne},L,F)},T.scaleTo=function(j,Q,L,F){T.transform(j,function(){var Z=a.apply(this,arguments),ne=this.__zoom,de=L==null?N(Z):typeof L=="function"?L.apply(this,arguments):L,z=ne.invert(de),W=typeof Q=="function"?Q.apply(this,arguments):Q;return i(E(C(ne,W),de,z),Z,d)},L,F)},T.translateBy=function(j,Q,L,F){T.transform(j,function(){return i(this.__zoom.translate(typeof Q=="function"?Q.apply(this,arguments):Q,typeof L=="function"?L.apply(this,arguments):L),a.apply(this,arguments),d)},null,F)},T.translateTo=function(j,Q,L,F,Z){T.transform(j,function(){var ne=a.apply(this,arguments),de=this.__zoom,z=F==null?N(ne):typeof F=="function"?F.apply(this,arguments):F;return i(jh.translate(z[0],z[1]).scale(de.k).translate(typeof Q=="function"?-Q.apply(this,arguments):-Q,typeof L=="function"?-L.apply(this,arguments):-L),ne,d)},F,Z)};function C(j,Q){return Q=Math.max(f[0],Math.min(f[1],Q)),Q===j.k?j:new Xa(Q,j.x,j.y)}function E(j,Q,L){var F=Q[0]-L[0]*j.k,Z=Q[1]-L[1]*j.k;return F===j.x&&Z===j.y?j:new Xa(j.k,F,Z)}function N(j){return[(+j[0][0]+ +j[1][0])/2,(+j[0][1]+ +j[1][1])/2]}function M(j,Q,L,F){j.on("start.zoom",function(){q(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){q(this,arguments).event(F).end()}).tween("zoom",function(){var Z=this,ne=arguments,de=q(Z,ne).event(F),z=a.apply(Z,ne),W=L==null?N(z):typeof L=="function"?L.apply(Z,ne):L,ge=Math.max(z[1][0]-z[0][0],z[1][1]-z[0][1]),B=Z.__zoom,re=typeof Q=="function"?Q.apply(Z,ne):Q,ue=p(B.invert(W).concat(ge/B.k),re.invert(W).concat(ge/re.k));return function(oe){if(oe===1)oe=re;else{var he=ue(oe),be=ge/he[2];oe=new Xa(be,W[0]-he[0]*be,W[1]-he[1]*be)}de.zoom(null,oe)}})}function q(j,Q,L){return!L&&j.__zooming||new U(j,Q)}function U(j,Q){this.that=j,this.args=Q,this.active=0,this.sourceEvent=null,this.extent=a.apply(j,Q),this.taps=0}U.prototype={event:function(j){return j&&(this.sourceEvent=j),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(j,Q){return this.mouse&&j!=="mouse"&&(this.mouse[1]=Q.invert(this.mouse[0])),this.touch0&&j!=="touch"&&(this.touch0[1]=Q.invert(this.touch0[0])),this.touch1&&j!=="touch"&&(this.touch1[1]=Q.invert(this.touch1[0])),this.that.__zoom=Q,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(j){var Q=Jn(this.that).datum();m.call(j,this.that,new CV(j,{sourceEvent:this.sourceEvent,target:T,transform:this.that.__zoom,dispatch:m}),Q)}};function H(j,...Q){if(!n.apply(this,arguments))return;var L=q(this,Q).event(j),F=this.__zoom,Z=Math.max(f[0],Math.min(f[1],F.k*Math.pow(2,s.apply(this,arguments)))),ne=Cr(j);if(L.wheel)(L.mouse[0][0]!==ne[0]||L.mouse[0][1]!==ne[1])&&(L.mouse[1]=F.invert(L.mouse[0]=ne)),clearTimeout(L.wheel);else{if(F.k===Z)return;L.mouse=[ne,F.invert(ne)],yh(this),L.start()}tc(j),L.wheel=setTimeout(de,x),L.zoom("mouse",i(E(C(F,Z),L.mouse[0],L.mouse[1]),L.extent,d));function de(){L.wheel=null,L.end()}}function k(j,...Q){if(b||!n.apply(this,arguments))return;var L=j.currentTarget,F=q(this,Q,!0).event(j),Z=Jn(j.view).on("mousemove.zoom",W,!0).on("mouseup.zoom",ge,!0),ne=Cr(j,L),de=j.clientX,z=j.clientY;Gz(j.view),Zy(j),F.mouse=[ne,this.__zoom.invert(ne)],yh(this),F.start();function W(B){if(tc(B),!F.moved){var re=B.clientX-de,ue=B.clientY-z;F.moved=re*re+ue*ue>A}F.event(B).zoom("mouse",i(E(F.that.__zoom,F.mouse[0]=Cr(B,L),F.mouse[1]),F.extent,d))}function ge(B){Z.on("mousemove.zoom mouseup.zoom",null),Yz(B.view,F.moved),tc(B),F.event(B).end()}}function G(j,...Q){if(n.apply(this,arguments)){var L=this.__zoom,F=Cr(j.changedTouches?j.changedTouches[0]:j,this),Z=L.invert(F),ne=L.k*(j.shiftKey?.5:2),de=i(E(C(L,ne),F,Z),a.apply(this,Q),d);tc(j),h>0?Jn(this).transition().duration(h).call(M,de,F,j):Jn(this).call(T.transform,de,F,j)}}function V(j,...Q){if(n.apply(this,arguments)){var L=j.touches,F=L.length,Z=q(this,Q,j.changedTouches.length===F).event(j),ne,de,z,W;for(Zy(j),de=0;de<F;++de)z=L[de],W=Cr(z,this),W=[W,this.__zoom.invert(W),z.identifier],Z.touch0?!Z.touch1&&Z.touch0[2]!==W[2]&&(Z.touch1=W,Z.taps=0):(Z.touch0=W,ne=!0,Z.taps=1+!!y);y&&(y=clearTimeout(y)),ne&&(Z.taps<2&&(v=W[0],y=setTimeout(function(){y=null},S)),yh(this),Z.start())}}function X(j,...Q){if(this.__zooming){var L=q(this,Q).event(j),F=j.changedTouches,Z=F.length,ne,de,z,W;for(tc(j),ne=0;ne<Z;++ne)de=F[ne],z=Cr(de,this),L.touch0&&L.touch0[2]===de.identifier?L.touch0[0]=z:L.touch1&&L.touch1[2]===de.identifier&&(L.touch1[0]=z);if(de=L.that.__zoom,L.touch1){var ge=L.touch0[0],B=L.touch0[1],re=L.touch1[0],ue=L.touch1[1],oe=(oe=re[0]-ge[0])*oe+(oe=re[1]-ge[1])*oe,he=(he=ue[0]-B[0])*he+(he=ue[1]-B[1])*he;de=C(de,Math.sqrt(oe/he)),z=[(ge[0]+re[0])/2,(ge[1]+re[1])/2],W=[(B[0]+ue[0])/2,(B[1]+ue[1])/2]}else if(L.touch0)z=L.touch0[0],W=L.touch0[1];else return;L.zoom("touch",i(E(de,z,W),L.extent,d))}}function ee(j,...Q){if(this.__zooming){var L=q(this,Q).event(j),F=j.changedTouches,Z=F.length,ne,de;for(Zy(j),b&&clearTimeout(b),b=setTimeout(function(){b=null},S),ne=0;ne<Z;++ne)de=F[ne],L.touch0&&L.touch0[2]===de.identifier?delete L.touch0:L.touch1&&L.touch1[2]===de.identifier&&delete L.touch1;if(L.touch1&&!L.touch0&&(L.touch0=L.touch1,delete L.touch1),L.touch0)L.touch0[1]=this.__zoom.invert(L.touch0[0]);else if(L.end(),L.taps===2&&(de=Cr(de,this),Math.hypot(v[0]-de[0],v[1]-de[1])<w)){var z=Jn(this).on("dblclick.zoom");z&&z.apply(this,arguments)}}}return T.wheelDelta=function(j){return arguments.length?(s=typeof j=="function"?j:ih(+j),T):s},T.filter=function(j){return arguments.length?(n=typeof j=="function"?j:ih(!!j),T):n},T.touchable=function(j){return arguments.length?(l=typeof j=="function"?j:ih(!!j),T):l},T.extent=function(j){return arguments.length?(a=typeof j=="function"?j:ih([[+j[0][0],+j[0][1]],[+j[1][0],+j[1][1]]]),T):a},T.scaleExtent=function(j){return arguments.length?(f[0]=+j[0],f[1]=+j[1],T):[f[0],f[1]]},T.translateExtent=function(j){return arguments.length?(d[0][0]=+j[0][0],d[1][0]=+j[1][0],d[0][1]=+j[0][1],d[1][1]=+j[1][1],T):[[d[0][0],d[0][1]],[d[1][0],d[1][1]]]},T.constrain=function(j){return arguments.length?(i=j,T):i},T.duration=function(j){return arguments.length?(h=+j,T):h},T.interpolate=function(j){return arguments.length?(p=j,T):p},T.on=function(){var j=m.on.apply(m,arguments);return j===m?T:j},T.clickDistance=function(j){return arguments.length?(A=(j=+j)*j,T):Math.sqrt(A)},T.tapDistance=function(j){return arguments.length?(w=+j,T):w},T}const ha={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:n=>`Node type "${n}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:n=>`The old edge with id=${n} does not exist.`,error009:n=>`Marker type "${n}" doesn't exist.`,error008:(n,{id:a,sourceHandle:i,targetHandle:s})=>`Couldn't create edge for ${n} handle id: "${n==="source"?i:s}", edge id: ${a}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:n=>`Edge type "${n}" not found. Using fallback type "default".`,error012:n=>`Node with id "${n}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(n="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${n}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},pc=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],sU=["Enter"," ","Escape"],lU={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:n,x:a,y:i})=>`Moved selected node ${n}. New position, x: ${a}, y: ${i}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var ll;(function(n){n.Strict="strict",n.Loose="loose"})(ll||(ll={}));var ki;(function(n){n.Free="free",n.Vertical="vertical",n.Horizontal="horizontal"})(ki||(ki={}));var mc;(function(n){n.Partial="partial",n.Full="full"})(mc||(mc={}));const uU={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var $o;(function(n){n.Bezier="default",n.Straight="straight",n.Step="step",n.SmoothStep="smoothstep",n.SimpleBezier="simplebezier"})($o||($o={}));var Th;(function(n){n.Arrow="arrow",n.ArrowClosed="arrowclosed"})(Th||(Th={}));var je;(function(n){n.Left="left",n.Top="top",n.Right="right",n.Bottom="bottom"})(je||(je={}));const gD={[je.Left]:je.Right,[je.Right]:je.Left,[je.Top]:je.Bottom,[je.Bottom]:je.Top};function cU(n){return n===null?null:n?"valid":"invalid"}const fU=n=>"id"in n&&"source"in n&&"target"in n,jV=n=>"id"in n&&"position"in n&&!("source"in n)&&!("target"in n),XS=n=>"id"in n&&"internals"in n&&!("source"in n)&&!("target"in n),Sc=(n,a=[0,0])=>{const{width:i,height:s}=Za(n),l=n.origin??a,f=i*l[0],d=s*l[1];return{x:n.position.x-f,y:n.position.y-d}},LV=(n,a={nodeOrigin:[0,0]})=>{if(n.length===0)return{x:0,y:0,width:0,height:0};const i=n.reduce((s,l)=>{const f=typeof l=="string";let d=!a.nodeLookup&&!f?l:void 0;a.nodeLookup&&(d=f?a.nodeLookup.get(l):XS(l)?l:a.nodeLookup.get(l.id));const h=d?Rh(d,a.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Lh(s,h)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Hh(i)},xc=(n,a={})=>{let i={x:1/0,y:1/0,x2:-1/0,y2:-1/0},s=!1;return n.forEach(l=>{(a.filter===void 0||a.filter(l))&&(i=Lh(i,Rh(l)),s=!0)}),s?Hh(i):{x:0,y:0,width:0,height:0}},PS=(n,a,[i,s,l]=[0,0,1],f=!1,d=!1)=>{const h={...wc(a,[i,s,l]),width:a.width/l,height:a.height/l},p=[];for(const m of n.values()){const{measured:y,selectable:v=!0,hidden:b=!1}=m;if(d&&!v||b)continue;const S=y.width??m.width??m.initialWidth??null,x=y.height??m.height??m.initialHeight??null,A=gc(h,cl(m)),w=(S??0)*(x??0),T=f&&A>0;(!m.internals.handleBounds||T||A>=w||m.dragging)&&p.push(m)}return p},HV=(n,a)=>{const i=new Set;return n.forEach(s=>{i.add(s.id)}),a.filter(s=>i.has(s.source)||i.has(s.target))};function kV(n,a){const i=new Map,s=a?.nodes?new Set(a.nodes.map(l=>l.id)):null;return n.forEach(l=>{l.measured.width&&l.measured.height&&(a?.includeHiddenNodes||!l.hidden)&&(!s||s.has(l.id))&&i.set(l.id,l)}),i}async function VV({nodes:n,width:a,height:i,panZoom:s,minZoom:l,maxZoom:f},d){if(n.size===0)return Promise.resolve(!0);const h=kV(n,d),p=xc(h),m=ZS(p,a,i,d?.minZoom??l,d?.maxZoom??f,d?.padding??.1);return await s.setViewport(m,{duration:d?.duration,ease:d?.ease,interpolate:d?.interpolate}),Promise.resolve(!0)}function dU({nodeId:n,nextPosition:a,nodeLookup:i,nodeOrigin:s=[0,0],nodeExtent:l,onError:f}){const d=i.get(n),h=d.parentId?i.get(d.parentId):void 0,{x:p,y:m}=h?h.internals.positionAbsolute:{x:0,y:0},y=d.origin??s;let v=d.extent||l;if(d.extent==="parent"&&!d.expandParent)if(!h)f?.("005",ha.error005());else{const S=h.measured.width,x=h.measured.height;S&&x&&(v=[[p,m],[p+S,m+x]])}else h&&fl(d.extent)&&(v=[[d.extent[0][0]+p,d.extent[0][1]+m],[d.extent[1][0]+p,d.extent[1][1]+m]]);const b=fl(v)?Ii(a,v,d.measured):a;return(d.measured.width===void 0||d.measured.height===void 0)&&f?.("015",ha.error015()),{position:{x:b.x-p+(d.measured.width??0)*y[0],y:b.y-m+(d.measured.height??0)*y[1]},positionAbsolute:b}}async function BV({nodesToRemove:n=[],edgesToRemove:a=[],nodes:i,edges:s,onBeforeDelete:l}){const f=new Set(n.map(b=>b.id)),d=[];for(const b of i){if(b.deletable===!1)continue;const S=f.has(b.id),x=!S&&b.parentId&&d.find(A=>A.id===b.parentId);(S||x)&&d.push(b)}const h=new Set(a.map(b=>b.id)),p=s.filter(b=>b.deletable!==!1),y=HV(d,p);for(const b of p)h.has(b.id)&&!y.find(x=>x.id===b.id)&&y.push(b);if(!l)return{edges:y,nodes:d};const v=await l({nodes:d,edges:y});return typeof v=="boolean"?v?{edges:y,nodes:d}:{edges:[],nodes:[]}:v}const ul=(n,a=0,i=1)=>Math.min(Math.max(n,a),i),Ii=(n={x:0,y:0},a,i)=>({x:ul(n.x,a[0][0],a[1][0]-(i?.width??0)),y:ul(n.y,a[0][1],a[1][1]-(i?.height??0))});function hU(n,a,i){const{width:s,height:l}=Za(i),{x:f,y:d}=i.internals.positionAbsolute;return Ii(n,[[f,d],[f+s,d+l]],a)}const yD=(n,a,i)=>n<a?ul(Math.abs(n-a),1,a)/a:n>i?-ul(Math.abs(n-i),1,a)/a:0,pU=(n,a,i=15,s=40)=>{const l=yD(n.x,s,a.width-s)*i,f=yD(n.y,s,a.height-s)*i;return[l,f]},Lh=(n,a)=>({x:Math.min(n.x,a.x),y:Math.min(n.y,a.y),x2:Math.max(n.x2,a.x2),y2:Math.max(n.y2,a.y2)}),MS=({x:n,y:a,width:i,height:s})=>({x:n,y:a,x2:n+i,y2:a+s}),Hh=({x:n,y:a,x2:i,y2:s})=>({x:n,y:a,width:i-n,height:s-a}),cl=(n,a=[0,0])=>{const{x:i,y:s}=XS(n)?n.internals.positionAbsolute:Sc(n,a);return{x:i,y:s,width:n.measured?.width??n.width??n.initialWidth??0,height:n.measured?.height??n.height??n.initialHeight??0}},Rh=(n,a=[0,0])=>{const{x:i,y:s}=XS(n)?n.internals.positionAbsolute:Sc(n,a);return{x:i,y:s,x2:i+(n.measured?.width??n.width??n.initialWidth??0),y2:s+(n.measured?.height??n.height??n.initialHeight??0)}},mU=(n,a)=>Hh(Lh(MS(n),MS(a))),gc=(n,a)=>{const i=Math.max(0,Math.min(n.x+n.width,a.x+a.width)-Math.max(n.x,a.x)),s=Math.max(0,Math.min(n.y+n.height,a.y+a.height)-Math.max(n.y,a.y));return Math.ceil(i*s)},vD=n=>Mr(n.width)&&Mr(n.height)&&Mr(n.x)&&Mr(n.y),Mr=n=>!isNaN(n)&&isFinite(n),IV=(n,a)=>{},Ec=(n,a=[1,1])=>({x:a[0]*Math.round(n.x/a[0]),y:a[1]*Math.round(n.y/a[1])}),wc=({x:n,y:a},[i,s,l],f=!1,d=[1,1])=>{const h={x:(n-i)/l,y:(a-s)/l};return f?Ec(h,d):h},Ah=({x:n,y:a},[i,s,l])=>({x:n*l+i,y:a*l+s});function tl(n,a){if(typeof n=="number")return Math.floor((a-a/(1+n))*.5);if(typeof n=="string"&&n.endsWith("px")){const i=parseFloat(n);if(!Number.isNaN(i))return Math.floor(i)}if(typeof n=="string"&&n.endsWith("%")){const i=parseFloat(n);if(!Number.isNaN(i))return Math.floor(a*i*.01)}return console.error(`[React Flow] The padding value "${n}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function GV(n,a,i){if(typeof n=="string"||typeof n=="number"){const s=tl(n,i),l=tl(n,a);return{top:s,right:l,bottom:s,left:l,x:l*2,y:s*2}}if(typeof n=="object"){const s=tl(n.top??n.y??0,i),l=tl(n.bottom??n.y??0,i),f=tl(n.left??n.x??0,a),d=tl(n.right??n.x??0,a);return{top:s,right:d,bottom:l,left:f,x:f+d,y:s+l}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function YV(n,a,i,s,l,f){const{x:d,y:h}=Ah(n,[a,i,s]),{x:p,y:m}=Ah({x:n.x+n.width,y:n.y+n.height},[a,i,s]),y=l-p,v=f-m;return{left:Math.floor(d),top:Math.floor(h),right:Math.floor(y),bottom:Math.floor(v)}}const ZS=(n,a,i,s,l,f)=>{const d=GV(f,a,i),h=(a-d.x)/n.width,p=(i-d.y)/n.height,m=Math.min(h,p),y=ul(m,s,l),v=n.x+n.width/2,b=n.y+n.height/2,S=a/2-v*y,x=i/2-b*y,A=YV(n,S,x,y,a,i),w={left:Math.min(A.left-d.left,0),top:Math.min(A.top-d.top,0),right:Math.min(A.right-d.right,0),bottom:Math.min(A.bottom-d.bottom,0)};return{x:S-w.left+w.right,y:x-w.top+w.bottom,zoom:y}},yc=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function fl(n){return n!=null&&n!=="parent"}function Za(n){return{width:n.measured?.width??n.width??n.initialWidth??0,height:n.measured?.height??n.height??n.initialHeight??0}}function gU(n){return(n.measured?.width??n.width??n.initialWidth)!==void 0&&(n.measured?.height??n.height??n.initialHeight)!==void 0}function yU(n,a={width:0,height:0},i,s,l){const f={...n},d=s.get(i);if(d){const h=d.origin||l;f.x+=d.internals.positionAbsolute.x-(a.width??0)*h[0],f.y+=d.internals.positionAbsolute.y-(a.height??0)*h[1]}return f}function bD(n,a){if(n.size!==a.size)return!1;for(const i of n)if(!a.has(i))return!1;return!0}function $V(){let n,a;return{promise:new Promise((s,l)=>{n=s,a=l}),resolve:n,reject:a}}function XV(n){return{...lU,...n||{}}}function uc(n,{snapGrid:a=[0,0],snapToGrid:i=!1,transform:s,containerBounds:l}){const{x:f,y:d}=qr(n),h=wc({x:f-(l?.left??0),y:d-(l?.top??0)},s),{x:p,y:m}=i?Ec(h,a):h;return{xSnapped:p,ySnapped:m,...h}}const QS=n=>({width:n.offsetWidth,height:n.offsetHeight}),vU=n=>n?.getRootNode?.()||window?.document,PV=["INPUT","SELECT","TEXTAREA"];function bU(n){const a=n.composedPath?.()?.[0]||n.target;return a?.nodeType!==1?!1:PV.includes(a.nodeName)||a.hasAttribute("contenteditable")||!!a.closest(".nokey")}const _U=n=>"clientX"in n,qr=(n,a)=>{const i=_U(n),s=i?n.clientX:n.touches?.[0].clientX,l=i?n.clientY:n.touches?.[0].clientY;return{x:s-(a?.left??0),y:l-(a?.top??0)}},_D=(n,a,i,s,l)=>{const f=a.querySelectorAll(`.${n}`);return!f||!f.length?null:Array.from(f).map(d=>{const h=d.getBoundingClientRect();return{id:d.getAttribute("data-handleid"),type:n,nodeId:l,position:d.getAttribute("data-handlepos"),x:(h.left-i.left)/s,y:(h.top-i.top)/s,...QS(d)}})};function SU({sourceX:n,sourceY:a,targetX:i,targetY:s,sourceControlX:l,sourceControlY:f,targetControlX:d,targetControlY:h}){const p=n*.125+l*.375+d*.375+i*.125,m=a*.125+f*.375+h*.375+s*.125,y=Math.abs(p-n),v=Math.abs(m-a);return[p,m,y,v]}function sh(n,a){return n>=0?.5*n:a*25*Math.sqrt(-n)}function SD({pos:n,x1:a,y1:i,x2:s,y2:l,c:f}){switch(n){case je.Left:return[a-sh(a-s,f),i];case je.Right:return[a+sh(s-a,f),i];case je.Top:return[a,i-sh(i-l,f)];case je.Bottom:return[a,i+sh(l-i,f)]}}function xU({sourceX:n,sourceY:a,sourcePosition:i=je.Bottom,targetX:s,targetY:l,targetPosition:f=je.Top,curvature:d=.25}){const[h,p]=SD({pos:i,x1:n,y1:a,x2:s,y2:l,c:d}),[m,y]=SD({pos:f,x1:s,y1:l,x2:n,y2:a,c:d}),[v,b,S,x]=SU({sourceX:n,sourceY:a,targetX:s,targetY:l,sourceControlX:h,sourceControlY:p,targetControlX:m,targetControlY:y});return[`M${n},${a} C${h},${p} ${m},${y} ${s},${l}`,v,b,S,x]}function EU({sourceX:n,sourceY:a,targetX:i,targetY:s}){const l=Math.abs(i-n)/2,f=i<n?i+l:i-l,d=Math.abs(s-a)/2,h=s<a?s+d:s-d;return[f,h,l,d]}function ZV({sourceNode:n,targetNode:a,selected:i=!1,zIndex:s=0,elevateOnSelect:l=!1,zIndexMode:f="basic"}){if(f==="manual")return s;const d=l&&i?s+1e3:s,h=Math.max(n.parentId||l&&n.selected?n.internals.z:0,a.parentId||l&&a.selected?a.internals.z:0);return d+h}function QV({sourceNode:n,targetNode:a,width:i,height:s,transform:l}){const f=Lh(Rh(n),Rh(a));f.x===f.x2&&(f.x2+=1),f.y===f.y2&&(f.y2+=1);const d={x:-l[0]/l[2],y:-l[1]/l[2],width:i/l[2],height:s/l[2]};return gc(d,Hh(f))>0}const FV=({source:n,sourceHandle:a,target:i,targetHandle:s})=>`xy-edge__${n}${a||""}-${i}${s||""}`,JV=(n,a)=>a.some(i=>i.source===n.source&&i.target===n.target&&(i.sourceHandle===n.sourceHandle||!i.sourceHandle&&!n.sourceHandle)&&(i.targetHandle===n.targetHandle||!i.targetHandle&&!n.targetHandle)),KV=(n,a,i={})=>{if(!n.source||!n.target)return a;const s=i.getEdgeId||FV;let l;return fU(n)?l={...n}:l={...n,id:s(n)},JV(l,a)?a:(l.sourceHandle===null&&delete l.sourceHandle,l.targetHandle===null&&delete l.targetHandle,a.concat(l))};function wU({sourceX:n,sourceY:a,targetX:i,targetY:s}){const[l,f,d,h]=EU({sourceX:n,sourceY:a,targetX:i,targetY:s});return[`M ${n},${a}L ${i},${s}`,l,f,d,h]}const xD={[je.Left]:{x:-1,y:0},[je.Right]:{x:1,y:0},[je.Top]:{x:0,y:-1},[je.Bottom]:{x:0,y:1}},WV=({source:n,sourcePosition:a=je.Bottom,target:i})=>a===je.Left||a===je.Right?n.x<i.x?{x:1,y:0}:{x:-1,y:0}:n.y<i.y?{x:0,y:1}:{x:0,y:-1},ED=(n,a)=>Math.sqrt(Math.pow(a.x-n.x,2)+Math.pow(a.y-n.y,2));function eB({source:n,sourcePosition:a=je.Bottom,target:i,targetPosition:s=je.Top,center:l,offset:f,stepPosition:d}){const h=xD[a],p=xD[s],m={x:n.x+h.x*f,y:n.y+h.y*f},y={x:i.x+p.x*f,y:i.y+p.y*f},v=WV({source:m,sourcePosition:a,target:y}),b=v.x!==0?"x":"y",S=v[b];let x=[],A,w;const T={x:0,y:0},C={x:0,y:0},[,,E,N]=EU({sourceX:n.x,sourceY:n.y,targetX:i.x,targetY:i.y});if(h[b]*p[b]===-1){b==="x"?(A=l.x??m.x+(y.x-m.x)*d,w=l.y??(m.y+y.y)/2):(A=l.x??(m.x+y.x)/2,w=l.y??m.y+(y.y-m.y)*d);const H=[{x:A,y:m.y},{x:A,y:y.y}],k=[{x:m.x,y:w},{x:y.x,y:w}];h[b]===S?x=b==="x"?H:k:x=b==="x"?k:H}else{const H=[{x:m.x,y:y.y}],k=[{x:y.x,y:m.y}];if(b==="x"?x=h.x===S?k:H:x=h.y===S?H:k,a===s){const j=Math.abs(n[b]-i[b]);if(j<=f){const Q=Math.min(f-1,f-j);h[b]===S?T[b]=(m[b]>n[b]?-1:1)*Q:C[b]=(y[b]>i[b]?-1:1)*Q}}if(a!==s){const j=b==="x"?"y":"x",Q=h[b]===p[j],L=m[j]>y[j],F=m[j]<y[j];(h[b]===1&&(!Q&&L||Q&&F)||h[b]!==1&&(!Q&&F||Q&&L))&&(x=b==="x"?H:k)}const G={x:m.x+T.x,y:m.y+T.y},V={x:y.x+C.x,y:y.y+C.y},X=Math.max(Math.abs(G.x-x[0].x),Math.abs(V.x-x[0].x)),ee=Math.max(Math.abs(G.y-x[0].y),Math.abs(V.y-x[0].y));X>=ee?(A=(G.x+V.x)/2,w=x[0].y):(A=x[0].x,w=(G.y+V.y)/2)}const M={x:m.x+T.x,y:m.y+T.y},q={x:y.x+C.x,y:y.y+C.y};return[[n,...M.x!==x[0].x||M.y!==x[0].y?[M]:[],...x,...q.x!==x[x.length-1].x||q.y!==x[x.length-1].y?[q]:[],i],A,w,E,N]}function tB(n,a,i,s){const l=Math.min(ED(n,a)/2,ED(a,i)/2,s),{x:f,y:d}=a;if(n.x===f&&f===i.x||n.y===d&&d===i.y)return`L${f} ${d}`;if(n.y===d){const m=n.x<i.x?-1:1,y=n.y<i.y?1:-1;return`L ${f+l*m},${d}Q ${f},${d} ${f},${d+l*y}`}const h=n.x<i.x?1:-1,p=n.y<i.y?-1:1;return`L ${f},${d+l*p}Q ${f},${d} ${f+l*h},${d}`}function qS({sourceX:n,sourceY:a,sourcePosition:i=je.Bottom,targetX:s,targetY:l,targetPosition:f=je.Top,borderRadius:d=5,centerX:h,centerY:p,offset:m=20,stepPosition:y=.5}){const[v,b,S,x,A]=eB({source:{x:n,y:a},sourcePosition:i,target:{x:s,y:l},targetPosition:f,center:{x:h,y:p},offset:m,stepPosition:y});let w=`M${v[0].x} ${v[0].y}`;for(let T=1;T<v.length-1;T++)w+=tB(v[T-1],v[T],v[T+1],d);return w+=`L${v[v.length-1].x} ${v[v.length-1].y}`,[w,b,S,x,A]}function wD(n){return n&&!!(n.internals.handleBounds||n.handles?.length)&&!!(n.measured.width||n.width||n.initialWidth)}function nB(n){const{sourceNode:a,targetNode:i}=n;if(!wD(a)||!wD(i))return null;const s=a.internals.handleBounds||TD(a.handles),l=i.internals.handleBounds||TD(i.handles),f=RD(s?.source??[],n.sourceHandle),d=RD(n.connectionMode===ll.Strict?l?.target??[]:(l?.target??[]).concat(l?.source??[]),n.targetHandle);if(!f||!d)return n.onError?.("008",ha.error008(f?"target":"source",{id:n.id,sourceHandle:n.sourceHandle,targetHandle:n.targetHandle})),null;const h=f?.position||je.Bottom,p=d?.position||je.Top,m=Gi(a,f,h),y=Gi(i,d,p);return{sourceX:m.x,sourceY:m.y,targetX:y.x,targetY:y.y,sourcePosition:h,targetPosition:p}}function TD(n){if(!n)return null;const a=[],i=[];for(const s of n)s.width=s.width??1,s.height=s.height??1,s.type==="source"?a.push(s):s.type==="target"&&i.push(s);return{source:a,target:i}}function Gi(n,a,i=je.Left,s=!1){const l=(a?.x??0)+n.internals.positionAbsolute.x,f=(a?.y??0)+n.internals.positionAbsolute.y,{width:d,height:h}=a??Za(n);if(s)return{x:l+d/2,y:f+h/2};switch(a?.position??i){case je.Top:return{x:l+d/2,y:f};case je.Right:return{x:l+d,y:f+h/2};case je.Bottom:return{x:l+d/2,y:f+h};case je.Left:return{x:l,y:f+h/2}}}function RD(n,a){return n&&(a?n.find(i=>i.id===a):n[0])||null}function zS(n,a){return n?typeof n=="string"?n:`${a?`${a}__`:""}${Object.keys(n).sort().map(s=>`${s}=${n[s]}`).join("&")}`:""}function rB(n,{id:a,defaultColor:i,defaultMarkerStart:s,defaultMarkerEnd:l}){const f=new Set;return n.reduce((d,h)=>([h.markerStart||s,h.markerEnd||l].forEach(p=>{if(p&&typeof p=="object"){const m=zS(p,a);f.has(m)||(d.push({id:m,color:p.color||i,...p}),f.add(m))}}),d),[]).sort((d,h)=>d.id.localeCompare(h.id))}const TU=1e3,aB=10,FS={nodeOrigin:[0,0],nodeExtent:pc,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},oB={...FS,checkEquality:!0};function JS(n,a){const i={...n};for(const s in a)a[s]!==void 0&&(i[s]=a[s]);return i}function iB(n,a,i){const s=JS(FS,i);for(const l of n.values())if(l.parentId)WS(l,n,a,s);else{const f=Sc(l,s.nodeOrigin),d=fl(l.extent)?l.extent:s.nodeExtent,h=Ii(f,d,Za(l));l.internals.positionAbsolute=h}}function sB(n,a){if(!n.handles)return n.measured?a?.internals.handleBounds:void 0;const i=[],s=[];for(const l of n.handles){const f={id:l.id,width:l.width??1,height:l.height??1,nodeId:n.id,x:l.x,y:l.y,position:l.position,type:l.type};l.type==="source"?i.push(f):l.type==="target"&&s.push(f)}return{source:i,target:s}}function KS(n){return n==="manual"}function US(n,a,i,s={}){const l=JS(oB,s),f={i:0},d=new Map(a),h=l?.elevateNodesOnSelect&&!KS(l.zIndexMode)?TU:0;let p=n.length>0,m=!1;a.clear(),i.clear();for(const y of n){let v=d.get(y.id);if(l.checkEquality&&y===v?.internals.userNode)a.set(y.id,v);else{const b=Sc(y,l.nodeOrigin),S=fl(y.extent)?y.extent:l.nodeExtent,x=Ii(b,S,Za(y));v={...l.defaults,...y,measured:{width:y.measured?.width,height:y.measured?.height},internals:{positionAbsolute:x,handleBounds:sB(y,v),z:RU(y,h,l.zIndexMode),userNode:y}},a.set(y.id,v)}(v.measured===void 0||v.measured.width===void 0||v.measured.height===void 0)&&!v.hidden&&(p=!1),y.parentId&&WS(v,a,i,s,f),m||=y.selected??!1}return{nodesInitialized:p,hasSelectedNodes:m}}function lB(n,a){if(!n.parentId)return;const i=a.get(n.parentId);i?i.set(n.id,n):a.set(n.parentId,new Map([[n.id,n]]))}function WS(n,a,i,s,l){const{elevateNodesOnSelect:f,nodeOrigin:d,nodeExtent:h,zIndexMode:p}=JS(FS,s),m=n.parentId,y=a.get(m);if(!y){console.warn(`Parent node ${m} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}lB(n,i),l&&!y.parentId&&y.internals.rootParentIndex===void 0&&p==="auto"&&(y.internals.rootParentIndex=++l.i,y.internals.z=y.internals.z+l.i*aB),l&&y.internals.rootParentIndex!==void 0&&(l.i=y.internals.rootParentIndex);const v=f&&!KS(p)?TU:0,{x:b,y:S,z:x}=uB(n,y,d,h,v,p),{positionAbsolute:A}=n.internals,w=b!==A.x||S!==A.y;(w||x!==n.internals.z)&&a.set(n.id,{...n,internals:{...n.internals,positionAbsolute:w?{x:b,y:S}:A,z:x}})}function RU(n,a,i){const s=Mr(n.zIndex)?n.zIndex:0;return KS(i)?s:s+(n.selected?a:0)}function uB(n,a,i,s,l,f){const{x:d,y:h}=a.internals.positionAbsolute,p=Za(n),m=Sc(n,i),y=fl(n.extent)?Ii(m,n.extent,p):m;let v=Ii({x:d+y.x,y:h+y.y},s,p);n.extent==="parent"&&(v=hU(v,p,a));const b=RU(n,l,f),S=a.internals.z??0;return{x:v.x,y:v.y,z:S>=b?S+1:b}}function ex(n,a,i,s=[0,0]){const l=[],f=new Map;for(const d of n){const h=a.get(d.parentId);if(!h)continue;const p=f.get(d.parentId)?.expandedRect??cl(h),m=mU(p,d.rect);f.set(d.parentId,{expandedRect:m,parent:h})}return f.size>0&&f.forEach(({expandedRect:d,parent:h},p)=>{const m=h.internals.positionAbsolute,y=Za(h),v=h.origin??s,b=d.x<m.x?Math.round(Math.abs(m.x-d.x)):0,S=d.y<m.y?Math.round(Math.abs(m.y-d.y)):0,x=Math.max(y.width,Math.round(d.width)),A=Math.max(y.height,Math.round(d.height)),w=(x-y.width)*v[0],T=(A-y.height)*v[1];(b>0||S>0||w||T)&&(l.push({id:p,type:"position",position:{x:h.position.x-b+w,y:h.position.y-S+T}}),i.get(p)?.forEach(C=>{n.some(E=>E.id===C.id)||l.push({id:C.id,type:"position",position:{x:C.position.x+b,y:C.position.y+S}})})),(y.width<d.width||y.height<d.height||b||S)&&l.push({id:p,type:"dimensions",setAttributes:!0,dimensions:{width:x+(b?v[0]*b-w:0),height:A+(S?v[1]*S-T:0)}})}),l}function cB(n,a,i,s,l,f,d){const h=s?.querySelector(".xyflow__viewport");let p=!1;if(!h)return{changes:[],updatedInternals:p};const m=[],y=window.getComputedStyle(h),{m22:v}=new window.DOMMatrixReadOnly(y.transform),b=[];for(const S of n.values()){const x=a.get(S.id);if(!x)continue;if(x.hidden){a.set(x.id,{...x,internals:{...x.internals,handleBounds:void 0}}),p=!0;continue}const A=QS(S.nodeElement),w=x.measured.width!==A.width||x.measured.height!==A.height;if(!!(A.width&&A.height&&(w||!x.internals.handleBounds||S.force))){const C=S.nodeElement.getBoundingClientRect(),E=fl(x.extent)?x.extent:f;let{positionAbsolute:N}=x.internals;x.parentId&&x.extent==="parent"?N=hU(N,A,a.get(x.parentId)):E&&(N=Ii(N,E,A));const M={...x,measured:A,internals:{...x.internals,positionAbsolute:N,handleBounds:{source:_D("source",S.nodeElement,C,v,x.id),target:_D("target",S.nodeElement,C,v,x.id)}}};a.set(x.id,M),x.parentId&&WS(M,a,i,{nodeOrigin:l,zIndexMode:d}),p=!0,w&&(m.push({id:x.id,type:"dimensions",dimensions:A}),x.expandParent&&x.parentId&&b.push({id:x.id,parentId:x.parentId,rect:cl(M,l)}))}}if(b.length>0){const S=ex(b,a,i,l);m.push(...S)}return{changes:m,updatedInternals:p}}async function fB({delta:n,panZoom:a,transform:i,translateExtent:s,width:l,height:f}){if(!a||!n.x&&!n.y)return Promise.resolve(!1);const d=await a.setViewportConstrained({x:i[0]+n.x,y:i[1]+n.y,zoom:i[2]},[[0,0],[l,f]],s),h=!!d&&(d.x!==i[0]||d.y!==i[1]||d.k!==i[2]);return Promise.resolve(h)}function AD(n,a,i,s,l,f){let d=l;const h=s.get(d)||new Map;s.set(d,h.set(i,a)),d=`${l}-${n}`;const p=s.get(d)||new Map;if(s.set(d,p.set(i,a)),f){d=`${l}-${n}-${f}`;const m=s.get(d)||new Map;s.set(d,m.set(i,a))}}function AU(n,a,i){n.clear(),a.clear();for(const s of i){const{source:l,target:f,sourceHandle:d=null,targetHandle:h=null}=s,p={edgeId:s.id,source:l,target:f,sourceHandle:d,targetHandle:h},m=`${l}-${d}--${f}-${h}`,y=`${f}-${h}--${l}-${d}`;AD("source",p,y,n,l,d),AD("target",p,m,n,f,h),a.set(s.id,s)}}function NU(n,a){if(!n.parentId)return!1;const i=a.get(n.parentId);return i?i.selected?!0:NU(i,a):!1}function ND(n,a,i){let s=n;do{if(s?.matches?.(a))return!0;if(s===i)return!1;s=s?.parentElement}while(s);return!1}function dB(n,a,i,s){const l=new Map;for(const[f,d]of n)if((d.selected||d.id===s)&&(!d.parentId||!NU(d,n))&&(d.draggable||a&&typeof d.draggable>"u")){const h=n.get(f);h&&l.set(f,{id:f,position:h.position||{x:0,y:0},distance:{x:i.x-h.internals.positionAbsolute.x,y:i.y-h.internals.positionAbsolute.y},extent:h.extent,parentId:h.parentId,origin:h.origin,expandParent:h.expandParent,internals:{positionAbsolute:h.internals.positionAbsolute||{x:0,y:0}},measured:{width:h.measured.width??0,height:h.measured.height??0}})}return l}function Qy({nodeId:n,dragItems:a,nodeLookup:i,dragging:s=!0}){const l=[];for(const[d,h]of a){const p=i.get(d)?.internals.userNode;p&&l.push({...p,position:h.position,dragging:s})}if(!n)return[l[0],l];const f=i.get(n)?.internals.userNode;return[f?{...f,position:a.get(n)?.position||f.position,dragging:s}:l[0],l]}function hB({dragItems:n,snapGrid:a,x:i,y:s}){const l=n.values().next().value;if(!l)return null;const f={x:i-l.distance.x,y:s-l.distance.y},d=Ec(f,a);return{x:d.x-f.x,y:d.y-f.y}}function pB({onNodeMouseDown:n,getStoreItems:a,onDragStart:i,onDrag:s,onDragStop:l}){let f={x:null,y:null},d=0,h=new Map,p=!1,m={x:0,y:0},y=null,v=!1,b=null,S=!1,x=!1,A=null;function w({noDragClassName:C,handleSelector:E,domNode:N,isSelectable:M,nodeId:q,nodeClickDistance:U=0}){b=Jn(N);function H({x:X,y:ee}){const{nodeLookup:j,nodeExtent:Q,snapGrid:L,snapToGrid:F,nodeOrigin:Z,onNodeDrag:ne,onSelectionDrag:de,onError:z,updateNodePositions:W}=a();f={x:X,y:ee};let ge=!1;const B=h.size>1,re=B&&Q?MS(xc(h)):null,ue=B&&F?hB({dragItems:h,snapGrid:L,x:X,y:ee}):null;for(const[oe,he]of h){if(!j.has(oe))continue;let be={x:X-he.distance.x,y:ee-he.distance.y};F&&(be=ue?{x:Math.round(be.x+ue.x),y:Math.round(be.y+ue.y)}:Ec(be,L));let Te=null;if(B&&Q&&!he.extent&&re){const{positionAbsolute:Re}=he.internals,Le=Re.x-re.x+Q[0][0],Ae=Re.x+he.measured.width-re.x2+Q[1][0],De=Re.y-re.y+Q[0][1],Ne=Re.y+he.measured.height-re.y2+Q[1][1];Te=[[Le,De],[Ae,Ne]]}const{position:me,positionAbsolute:qe}=dU({nodeId:oe,nextPosition:be,nodeLookup:j,nodeExtent:Te||Q,nodeOrigin:Z,onError:z});ge=ge||he.position.x!==me.x||he.position.y!==me.y,he.position=me,he.internals.positionAbsolute=qe}if(x=x||ge,!!ge&&(W(h,!0),A&&(s||ne||!q&&de))){const[oe,he]=Qy({nodeId:q,dragItems:h,nodeLookup:j});s?.(A,h,oe,he),ne?.(A,oe,he),q||de?.(A,he)}}async function k(){if(!y)return;const{transform:X,panBy:ee,autoPanSpeed:j,autoPanOnNodeDrag:Q}=a();if(!Q){p=!1,cancelAnimationFrame(d);return}const[L,F]=pU(m,y,j);(L!==0||F!==0)&&(f.x=(f.x??0)-L/X[2],f.y=(f.y??0)-F/X[2],await ee({x:L,y:F})&&H(f)),d=requestAnimationFrame(k)}function G(X){const{nodeLookup:ee,multiSelectionActive:j,nodesDraggable:Q,transform:L,snapGrid:F,snapToGrid:Z,selectNodesOnDrag:ne,onNodeDragStart:de,onSelectionDragStart:z,unselectNodesAndEdges:W}=a();v=!0,(!ne||!M)&&!j&&q&&(ee.get(q)?.selected||W()),M&&ne&&q&&n?.(q);const ge=uc(X.sourceEvent,{transform:L,snapGrid:F,snapToGrid:Z,containerBounds:y});if(f=ge,h=dB(ee,Q,ge,q),h.size>0&&(i||de||!q&&z)){const[B,re]=Qy({nodeId:q,dragItems:h,nodeLookup:ee});i?.(X.sourceEvent,h,B,re),de?.(X.sourceEvent,B,re),q||z?.(X.sourceEvent,re)}}const V=$z().clickDistance(U).on("start",X=>{const{domNode:ee,nodeDragThreshold:j,transform:Q,snapGrid:L,snapToGrid:F}=a();y=ee?.getBoundingClientRect()||null,S=!1,x=!1,A=X.sourceEvent,j===0&&G(X),f=uc(X.sourceEvent,{transform:Q,snapGrid:L,snapToGrid:F,containerBounds:y}),m=qr(X.sourceEvent,y)}).on("drag",X=>{const{autoPanOnNodeDrag:ee,transform:j,snapGrid:Q,snapToGrid:L,nodeDragThreshold:F,nodeLookup:Z}=a(),ne=uc(X.sourceEvent,{transform:j,snapGrid:Q,snapToGrid:L,containerBounds:y});if(A=X.sourceEvent,(X.sourceEvent.type==="touchmove"&&X.sourceEvent.touches.length>1||q&&!Z.has(q))&&(S=!0),!S){if(!p&&ee&&v&&(p=!0,k()),!v){const de=qr(X.sourceEvent,y),z=de.x-m.x,W=de.y-m.y;Math.sqrt(z*z+W*W)>F&&G(X)}(f.x!==ne.xSnapped||f.y!==ne.ySnapped)&&h&&v&&(m=qr(X.sourceEvent,y),H(ne))}}).on("end",X=>{if(!(!v||S)&&(p=!1,v=!1,cancelAnimationFrame(d),h.size>0)){const{nodeLookup:ee,updateNodePositions:j,onNodeDragStop:Q,onSelectionDragStop:L}=a();if(x&&(j(h,!1),x=!1),l||Q||!q&&L){const[F,Z]=Qy({nodeId:q,dragItems:h,nodeLookup:ee,dragging:!1});l?.(X.sourceEvent,h,F,Z),Q?.(X.sourceEvent,F,Z),q||L?.(X.sourceEvent,Z)}}}).filter(X=>{const ee=X.target;return!X.button&&(!C||!ND(ee,`.${C}`,N))&&(!E||ND(ee,E,N))});b.call(V)}function T(){b?.on(".drag",null)}return{update:w,destroy:T}}function mB(n,a,i){const s=[],l={x:n.x-i,y:n.y-i,width:i*2,height:i*2};for(const f of a.values())gc(l,cl(f))>0&&s.push(f);return s}const gB=250;function yB(n,a,i,s){let l=[],f=1/0;const d=mB(n,i,a+gB);for(const h of d){const p=[...h.internals.handleBounds?.source??[],...h.internals.handleBounds?.target??[]];for(const m of p){if(s.nodeId===m.nodeId&&s.type===m.type&&s.id===m.id)continue;const{x:y,y:v}=Gi(h,m,m.position,!0),b=Math.sqrt(Math.pow(y-n.x,2)+Math.pow(v-n.y,2));b>a||(b<f?(l=[{...m,x:y,y:v}],f=b):b===f&&l.push({...m,x:y,y:v}))}}if(!l.length)return null;if(l.length>1){const h=s.type==="source"?"target":"source";return l.find(p=>p.type===h)??l[0]}return l[0]}function DU(n,a,i,s,l,f=!1){const d=s.get(n);if(!d)return null;const h=l==="strict"?d.internals.handleBounds?.[a]:[...d.internals.handleBounds?.source??[],...d.internals.handleBounds?.target??[]],p=(i?h?.find(m=>m.id===i):h?.[0])??null;return p&&f?{...p,...Gi(d,p,p.position,!0)}:p}function CU(n,a){return n||(a?.classList.contains("target")?"target":a?.classList.contains("source")?"source":null)}function vB(n,a){let i=null;return a?i=!0:n&&!a&&(i=!1),i}const OU=()=>!0;function bB(n,{connectionMode:a,connectionRadius:i,handleId:s,nodeId:l,edgeUpdaterType:f,isTarget:d,domNode:h,nodeLookup:p,lib:m,autoPanOnConnect:y,flowId:v,panBy:b,cancelConnection:S,onConnectStart:x,onConnect:A,onConnectEnd:w,isValidConnection:T=OU,onReconnectEnd:C,updateConnection:E,getTransform:N,getFromHandle:M,autoPanSpeed:q,dragThreshold:U=1,handleDomNode:H}){const k=vU(n.target);let G=0,V;const{x:X,y:ee}=qr(n),j=CU(f,H),Q=h?.getBoundingClientRect();let L=!1;if(!Q||!j)return;const F=DU(l,j,s,p,a);if(!F)return;let Z=qr(n,Q),ne=!1,de=null,z=!1,W=null;function ge(){if(!y||!Q)return;const[me,qe]=pU(Z,Q,q);b({x:me,y:qe}),G=requestAnimationFrame(ge)}const B={...F,nodeId:l,type:j,position:F.position},re=p.get(l);let oe={inProgress:!0,isValid:null,from:Gi(re,B,je.Left,!0),fromHandle:B,fromPosition:B.position,fromNode:re,to:Z,toHandle:null,toPosition:gD[B.position],toNode:null,pointer:Z};function he(){L=!0,E(oe),x?.(n,{nodeId:l,handleId:s,handleType:j})}U===0&&he();function be(me){if(!L){const{x:Ne,y:Nt}=qr(me),qt=Ne-X,we=Nt-ee;if(!(qt*qt+we*we>U*U))return;he()}if(!M()||!B){Te(me);return}const qe=N();Z=qr(me,Q),V=yB(wc(Z,qe,!1,[1,1]),i,p,B),ne||(ge(),ne=!0);const Re=MU(me,{handle:V,connectionMode:a,fromNodeId:l,fromHandleId:s,fromType:d?"target":"source",isValidConnection:T,doc:k,lib:m,flowId:v,nodeLookup:p});W=Re.handleDomNode,de=Re.connection,z=vB(!!V,Re.isValid);const Le=p.get(l),Ae=Le?Gi(Le,B,je.Left,!0):oe.from,De={...oe,from:Ae,isValid:z,to:Re.toHandle&&z?Ah({x:Re.toHandle.x,y:Re.toHandle.y},qe):Z,toHandle:Re.toHandle,toPosition:z&&Re.toHandle?Re.toHandle.position:gD[B.position],toNode:Re.toHandle?p.get(Re.toHandle.nodeId):null,pointer:Z};E(De),oe=De}function Te(me){if(!("touches"in me&&me.touches.length>0)){if(L){(V||W)&&de&&z&&A?.(de);const{inProgress:qe,...Re}=oe,Le={...Re,toPosition:oe.toHandle?oe.toPosition:null};w?.(me,Le),f&&C?.(me,Le)}S(),cancelAnimationFrame(G),ne=!1,z=!1,de=null,W=null,k.removeEventListener("mousemove",be),k.removeEventListener("mouseup",Te),k.removeEventListener("touchmove",be),k.removeEventListener("touchend",Te)}}k.addEventListener("mousemove",be),k.addEventListener("mouseup",Te),k.addEventListener("touchmove",be),k.addEventListener("touchend",Te)}function MU(n,{handle:a,connectionMode:i,fromNodeId:s,fromHandleId:l,fromType:f,doc:d,lib:h,flowId:p,isValidConnection:m=OU,nodeLookup:y}){const v=f==="target",b=a?d.querySelector(`.${h}-flow__handle[data-id="${p}-${a?.nodeId}-${a?.id}-${a?.type}"]`):null,{x:S,y:x}=qr(n),A=d.elementFromPoint(S,x),w=A?.classList.contains(`${h}-flow__handle`)?A:b,T={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const C=CU(void 0,w),E=w.getAttribute("data-nodeid"),N=w.getAttribute("data-handleid"),M=w.classList.contains("connectable"),q=w.classList.contains("connectableend");if(!E||!C)return T;const U={source:v?E:s,sourceHandle:v?N:l,target:v?s:E,targetHandle:v?l:N};T.connection=U;const k=M&&q&&(i===ll.Strict?v&&C==="source"||!v&&C==="target":E!==s||N!==l);T.isValid=k&&m(U),T.toHandle=DU(E,C,N,y,i,!0)}return T}const jS={onPointerDown:bB,isValid:MU};function _B({domNode:n,panZoom:a,getTransform:i,getViewScale:s}){const l=Jn(n);function f({translateExtent:h,width:p,height:m,zoomStep:y=1,pannable:v=!0,zoomable:b=!0,inversePan:S=!1}){const x=E=>{if(E.sourceEvent.type!=="wheel"||!a)return;const N=i(),M=E.sourceEvent.ctrlKey&&yc()?10:1,q=-E.sourceEvent.deltaY*(E.sourceEvent.deltaMode===1?.05:E.sourceEvent.deltaMode?1:.002)*y,U=N[2]*Math.pow(2,q*M);a.scaleTo(U)};let A=[0,0];const w=E=>{(E.sourceEvent.type==="mousedown"||E.sourceEvent.type==="touchstart")&&(A=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY])},T=E=>{const N=i();if(E.sourceEvent.type!=="mousemove"&&E.sourceEvent.type!=="touchmove"||!a)return;const M=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY],q=[M[0]-A[0],M[1]-A[1]];A=M;const U=s()*Math.max(N[2],Math.log(N[2]))*(S?-1:1),H={x:N[0]-q[0]*U,y:N[1]-q[1]*U},k=[[0,0],[p,m]];a.setViewportConstrained({x:H.x,y:H.y,zoom:N[2]},k,h)},C=iU().on("start",w).on("zoom",v?T:null).on("zoom.wheel",b?x:null);l.call(C,{})}function d(){l.on("zoom",null)}return{update:f,destroy:d,pointer:Cr}}const kh=n=>({x:n.x,y:n.y,zoom:n.k}),Fy=({x:n,y:a,zoom:i})=>jh.translate(n,a).scale(i),nl=(n,a)=>n.target.closest(`.${a}`),qU=(n,a)=>a===2&&Array.isArray(n)&&n.includes(2),SB=n=>((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2,Jy=(n,a=0,i=SB,s=()=>{})=>{const l=typeof a=="number"&&a>0;return l||s(),l?n.transition().duration(a).ease(i).on("end",s):n},zU=n=>{const a=n.ctrlKey&&yc()?10:1;return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*a};function xB({zoomPanValues:n,noWheelClassName:a,d3Selection:i,d3Zoom:s,panOnScrollMode:l,panOnScrollSpeed:f,zoomOnPinch:d,onPanZoomStart:h,onPanZoom:p,onPanZoomEnd:m}){return y=>{if(nl(y,a))return y.ctrlKey&&y.preventDefault(),!1;y.preventDefault(),y.stopImmediatePropagation();const v=i.property("__zoom").k||1;if(y.ctrlKey&&d){const w=Cr(y),T=zU(y),C=v*Math.pow(2,T);s.scaleTo(i,C,w,y);return}const b=y.deltaMode===1?20:1;let S=l===ki.Vertical?0:y.deltaX*b,x=l===ki.Horizontal?0:y.deltaY*b;!yc()&&y.shiftKey&&l!==ki.Vertical&&(S=y.deltaY*b,x=0),s.translateBy(i,-(S/v)*f,-(x/v)*f,{internal:!0});const A=kh(i.property("__zoom"));clearTimeout(n.panScrollTimeout),n.isPanScrolling?(p?.(y,A),n.panScrollTimeout=setTimeout(()=>{m?.(y,A),n.isPanScrolling=!1},150)):(n.isPanScrolling=!0,h?.(y,A))}}function EB({noWheelClassName:n,preventScrolling:a,d3ZoomHandler:i}){return function(s,l){const f=s.type==="wheel",d=!a&&f&&!s.ctrlKey,h=nl(s,n);if(s.ctrlKey&&f&&h&&s.preventDefault(),d||h)return null;s.preventDefault(),i.call(this,s,l)}}function wB({zoomPanValues:n,onDraggingChange:a,onPanZoomStart:i}){return s=>{if(s.sourceEvent?.internal)return;const l=kh(s.transform);n.mouseButton=s.sourceEvent?.button||0,n.isZoomingOrPanning=!0,n.prevViewport=l,s.sourceEvent?.type==="mousedown"&&a(!0),i&&i?.(s.sourceEvent,l)}}function TB({zoomPanValues:n,panOnDrag:a,onPaneContextMenu:i,onTransformChange:s,onPanZoom:l}){return f=>{n.usedRightMouseButton=!!(i&&qU(a,n.mouseButton??0)),f.sourceEvent?.sync||s([f.transform.x,f.transform.y,f.transform.k]),l&&!f.sourceEvent?.internal&&l?.(f.sourceEvent,kh(f.transform))}}function RB({zoomPanValues:n,panOnDrag:a,panOnScroll:i,onDraggingChange:s,onPanZoomEnd:l,onPaneContextMenu:f}){return d=>{if(!d.sourceEvent?.internal&&(n.isZoomingOrPanning=!1,f&&qU(a,n.mouseButton??0)&&!n.usedRightMouseButton&&d.sourceEvent&&f(d.sourceEvent),n.usedRightMouseButton=!1,s(!1),l)){const h=kh(d.transform);n.prevViewport=h,clearTimeout(n.timerId),n.timerId=setTimeout(()=>{l?.(d.sourceEvent,h)},i?150:0)}}}function AB({zoomActivationKeyPressed:n,zoomOnScroll:a,zoomOnPinch:i,panOnDrag:s,panOnScroll:l,zoomOnDoubleClick:f,userSelectionActive:d,noWheelClassName:h,noPanClassName:p,lib:m,connectionInProgress:y}){return v=>{const b=n||a,S=i&&v.ctrlKey,x=v.type==="wheel";if(v.button===1&&v.type==="mousedown"&&(nl(v,`${m}-flow__node`)||nl(v,`${m}-flow__edge`)))return!0;if(!s&&!b&&!l&&!f&&!i||d||y&&!x||nl(v,h)&&x||nl(v,p)&&(!x||l&&x&&!n)||!i&&v.ctrlKey&&x)return!1;if(!i&&v.type==="touchstart"&&v.touches?.length>1)return v.preventDefault(),!1;if(!b&&!l&&!S&&x||!s&&(v.type==="mousedown"||v.type==="touchstart")||Array.isArray(s)&&!s.includes(v.button)&&v.type==="mousedown")return!1;const A=Array.isArray(s)&&s.includes(v.button)||!v.button||v.button<=1;return(!v.ctrlKey||x)&&A}}function NB({domNode:n,minZoom:a,maxZoom:i,translateExtent:s,viewport:l,onPanZoom:f,onPanZoomStart:d,onPanZoomEnd:h,onDraggingChange:p}){const m={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},y=n.getBoundingClientRect(),v=iU().scaleExtent([a,i]).translateExtent(s),b=Jn(n).call(v);C({x:l.x,y:l.y,zoom:ul(l.zoom,a,i)},[[0,0],[y.width,y.height]],s);const S=b.on("wheel.zoom"),x=b.on("dblclick.zoom");v.wheelDelta(zU);function A(V,X){return b?new Promise(ee=>{v?.interpolate(X?.interpolate==="linear"?lc:ph).transform(Jy(b,X?.duration,X?.ease,()=>ee(!0)),V)}):Promise.resolve(!1)}function w({noWheelClassName:V,noPanClassName:X,onPaneContextMenu:ee,userSelectionActive:j,panOnScroll:Q,panOnDrag:L,panOnScrollMode:F,panOnScrollSpeed:Z,preventScrolling:ne,zoomOnPinch:de,zoomOnScroll:z,zoomOnDoubleClick:W,zoomActivationKeyPressed:ge,lib:B,onTransformChange:re,connectionInProgress:ue,paneClickDistance:oe,selectionOnDrag:he}){j&&!m.isZoomingOrPanning&&T();const be=Q&&!ge&&!j;v.clickDistance(he?1/0:!Mr(oe)||oe<0?0:oe);const Te=be?xB({zoomPanValues:m,noWheelClassName:V,d3Selection:b,d3Zoom:v,panOnScrollMode:F,panOnScrollSpeed:Z,zoomOnPinch:de,onPanZoomStart:d,onPanZoom:f,onPanZoomEnd:h}):EB({noWheelClassName:V,preventScrolling:ne,d3ZoomHandler:S});if(b.on("wheel.zoom",Te,{passive:!1}),!j){const qe=wB({zoomPanValues:m,onDraggingChange:p,onPanZoomStart:d});v.on("start",qe);const Re=TB({zoomPanValues:m,panOnDrag:L,onPaneContextMenu:!!ee,onPanZoom:f,onTransformChange:re});v.on("zoom",Re);const Le=RB({zoomPanValues:m,panOnDrag:L,panOnScroll:Q,onPaneContextMenu:ee,onPanZoomEnd:h,onDraggingChange:p});v.on("end",Le)}const me=AB({zoomActivationKeyPressed:ge,panOnDrag:L,zoomOnScroll:z,panOnScroll:Q,zoomOnDoubleClick:W,zoomOnPinch:de,userSelectionActive:j,noPanClassName:X,noWheelClassName:V,lib:B,connectionInProgress:ue});v.filter(me),W?b.on("dblclick.zoom",x):b.on("dblclick.zoom",null)}function T(){v.on("zoom",null)}async function C(V,X,ee){const j=Fy(V),Q=v?.constrain()(j,X,ee);return Q&&await A(Q),new Promise(L=>L(Q))}async function E(V,X){const ee=Fy(V);return await A(ee,X),new Promise(j=>j(ee))}function N(V){if(b){const X=Fy(V),ee=b.property("__zoom");(ee.k!==V.zoom||ee.x!==V.x||ee.y!==V.y)&&v?.transform(b,X,null,{sync:!0})}}function M(){const V=b?oU(b.node()):{x:0,y:0,k:1};return{x:V.x,y:V.y,zoom:V.k}}function q(V,X){return b?new Promise(ee=>{v?.interpolate(X?.interpolate==="linear"?lc:ph).scaleTo(Jy(b,X?.duration,X?.ease,()=>ee(!0)),V)}):Promise.resolve(!1)}function U(V,X){return b?new Promise(ee=>{v?.interpolate(X?.interpolate==="linear"?lc:ph).scaleBy(Jy(b,X?.duration,X?.ease,()=>ee(!0)),V)}):Promise.resolve(!1)}function H(V){v?.scaleExtent(V)}function k(V){v?.translateExtent(V)}function G(V){const X=!Mr(V)||V<0?0:V;v?.clickDistance(X)}return{update:w,destroy:T,setViewport:E,setViewportConstrained:C,getViewport:M,scaleTo:q,scaleBy:U,setScaleExtent:H,setTranslateExtent:k,syncViewport:N,setClickDistance:G}}var dl;(function(n){n.Line="line",n.Handle="handle"})(dl||(dl={}));function DB({width:n,prevWidth:a,height:i,prevHeight:s,affectsX:l,affectsY:f}){const d=n-a,h=i-s,p=[d>0?1:d<0?-1:0,h>0?1:h<0?-1:0];return d&&l&&(p[0]=p[0]*-1),h&&f&&(p[1]=p[1]*-1),p}function DD(n){const a=n.includes("right")||n.includes("left"),i=n.includes("bottom")||n.includes("top"),s=n.includes("left"),l=n.includes("top");return{isHorizontal:a,isVertical:i,affectsX:s,affectsY:l}}function Go(n,a){return Math.max(0,a-n)}function Yo(n,a){return Math.max(0,n-a)}function lh(n,a,i){return Math.max(0,a-n,n-i)}function CD(n,a){return n?!a:a}function CB(n,a,i,s,l,f,d,h){let{affectsX:p,affectsY:m}=a;const{isHorizontal:y,isVertical:v}=a,b=y&&v,{xSnapped:S,ySnapped:x}=i,{minWidth:A,maxWidth:w,minHeight:T,maxHeight:C}=s,{x:E,y:N,width:M,height:q,aspectRatio:U}=n;let H=Math.floor(y?S-n.pointerX:0),k=Math.floor(v?x-n.pointerY:0);const G=M+(p?-H:H),V=q+(m?-k:k),X=-f[0]*M,ee=-f[1]*q;let j=lh(G,A,w),Q=lh(V,T,C);if(d){let Z=0,ne=0;p&&H<0?Z=Go(E+H+X,d[0][0]):!p&&H>0&&(Z=Yo(E+G+X,d[1][0])),m&&k<0?ne=Go(N+k+ee,d[0][1]):!m&&k>0&&(ne=Yo(N+V+ee,d[1][1])),j=Math.max(j,Z),Q=Math.max(Q,ne)}if(h){let Z=0,ne=0;p&&H>0?Z=Yo(E+H,h[0][0]):!p&&H<0&&(Z=Go(E+G,h[1][0])),m&&k>0?ne=Yo(N+k,h[0][1]):!m&&k<0&&(ne=Go(N+V,h[1][1])),j=Math.max(j,Z),Q=Math.max(Q,ne)}if(l){if(y){const Z=lh(G/U,T,C)*U;if(j=Math.max(j,Z),d){let ne=0;!p&&!m||p&&!m&&b?ne=Yo(N+ee+G/U,d[1][1])*U:ne=Go(N+ee+(p?H:-H)/U,d[0][1])*U,j=Math.max(j,ne)}if(h){let ne=0;!p&&!m||p&&!m&&b?ne=Go(N+G/U,h[1][1])*U:ne=Yo(N+(p?H:-H)/U,h[0][1])*U,j=Math.max(j,ne)}}if(v){const Z=lh(V*U,A,w)/U;if(Q=Math.max(Q,Z),d){let ne=0;!p&&!m||m&&!p&&b?ne=Yo(E+V*U+X,d[1][0])/U:ne=Go(E+(m?k:-k)*U+X,d[0][0])/U,Q=Math.max(Q,ne)}if(h){let ne=0;!p&&!m||m&&!p&&b?ne=Go(E+V*U,h[1][0])/U:ne=Yo(E+(m?k:-k)*U,h[0][0])/U,Q=Math.max(Q,ne)}}}k=k+(k<0?Q:-Q),H=H+(H<0?j:-j),l&&(b?G>V*U?k=(CD(p,m)?-H:H)/U:H=(CD(p,m)?-k:k)*U:y?(k=H/U,m=p):(H=k*U,p=m));const L=p?E+H:E,F=m?N+k:N;return{width:M+(p?-H:H),height:q+(m?-k:k),x:f[0]*H*(p?-1:1)+L,y:f[1]*k*(m?-1:1)+F}}const UU={width:0,height:0,x:0,y:0},OB={...UU,pointerX:0,pointerY:0,aspectRatio:1};function MB(n){return[[0,0],[n.measured.width,n.measured.height]]}function qB(n,a,i){const s=a.position.x+n.position.x,l=a.position.y+n.position.y,f=n.measured.width??0,d=n.measured.height??0,h=i[0]*f,p=i[1]*d;return[[s-h,l-p],[s+f-h,l+d-p]]}function zB({domNode:n,nodeId:a,getStoreItems:i,onChange:s,onEnd:l}){const f=Jn(n);let d={controlDirection:DD("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function h({controlPosition:m,boundaries:y,keepAspectRatio:v,resizeDirection:b,onResizeStart:S,onResize:x,onResizeEnd:A,shouldResize:w}){let T={...UU},C={...OB};d={boundaries:y,resizeDirection:b,keepAspectRatio:v,controlDirection:DD(m)};let E,N=null,M=[],q,U,H,k=!1;const G=$z().on("start",V=>{const{nodeLookup:X,transform:ee,snapGrid:j,snapToGrid:Q,nodeOrigin:L,paneDomNode:F}=i();if(E=X.get(a),!E)return;N=F?.getBoundingClientRect()??null;const{xSnapped:Z,ySnapped:ne}=uc(V.sourceEvent,{transform:ee,snapGrid:j,snapToGrid:Q,containerBounds:N});T={width:E.measured.width??0,height:E.measured.height??0,x:E.position.x??0,y:E.position.y??0},C={...T,pointerX:Z,pointerY:ne,aspectRatio:T.width/T.height},q=void 0,E.parentId&&(E.extent==="parent"||E.expandParent)&&(q=X.get(E.parentId),U=q&&E.extent==="parent"?MB(q):void 0),M=[],H=void 0;for(const[de,z]of X)if(z.parentId===a&&(M.push({id:de,position:{...z.position},extent:z.extent}),z.extent==="parent"||z.expandParent)){const W=qB(z,E,z.origin??L);H?H=[[Math.min(W[0][0],H[0][0]),Math.min(W[0][1],H[0][1])],[Math.max(W[1][0],H[1][0]),Math.max(W[1][1],H[1][1])]]:H=W}S?.(V,{...T})}).on("drag",V=>{const{transform:X,snapGrid:ee,snapToGrid:j,nodeOrigin:Q}=i(),L=uc(V.sourceEvent,{transform:X,snapGrid:ee,snapToGrid:j,containerBounds:N}),F=[];if(!E)return;const{x:Z,y:ne,width:de,height:z}=T,W={},ge=E.origin??Q,{width:B,height:re,x:ue,y:oe}=CB(C,d.controlDirection,L,d.boundaries,d.keepAspectRatio,ge,U,H),he=B!==de,be=re!==z,Te=ue!==Z&&he,me=oe!==ne&&be;if(!Te&&!me&&!he&&!be)return;if((Te||me||ge[0]===1||ge[1]===1)&&(W.x=Te?ue:T.x,W.y=me?oe:T.y,T.x=W.x,T.y=W.y,M.length>0)){const Ae=ue-Z,De=oe-ne;for(const Ne of M)Ne.position={x:Ne.position.x-Ae+ge[0]*(B-de),y:Ne.position.y-De+ge[1]*(re-z)},F.push(Ne)}if((he||be)&&(W.width=he&&(!d.resizeDirection||d.resizeDirection==="horizontal")?B:T.width,W.height=be&&(!d.resizeDirection||d.resizeDirection==="vertical")?re:T.height,T.width=W.width,T.height=W.height),q&&E.expandParent){const Ae=ge[0]*(W.width??0);W.x&&W.x<Ae&&(T.x=Ae,C.x=C.x-(W.x-Ae));const De=ge[1]*(W.height??0);W.y&&W.y<De&&(T.y=De,C.y=C.y-(W.y-De))}const qe=DB({width:T.width,prevWidth:de,height:T.height,prevHeight:z,affectsX:d.controlDirection.affectsX,affectsY:d.controlDirection.affectsY}),Re={...T,direction:qe};w?.(V,Re)!==!1&&(k=!0,x?.(V,Re),s(W,F))}).on("end",V=>{k&&(A?.(V,{...T}),l?.({...T}),k=!1)});f.call(G)}function p(){f.on(".drag",null)}return{update:h,destroy:p}}var Ky={exports:{}},Wy={},ev={exports:{}},tv={},OD;function UB(){if(OD)return tv;OD=1;return(function(){function n(S,x){return S===x&&(S!==0||1/S===1/x)||S!==S&&x!==x}function a(S,x){y||l.startTransition===void 0||(y=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var A=x();if(!v){var w=x();f(A,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),v=!0)}w=d({inst:{value:A,getSnapshot:x}});var T=w[0].inst,C=w[1];return p(function(){T.value=A,T.getSnapshot=x,i(T)&&C({inst:T})},[S,A,x]),h(function(){return i(T)&&C({inst:T}),S(function(){i(T)&&C({inst:T})})},[S]),m(A),A}function i(S){var x=S.getSnapshot;S=S.value;try{var A=x();return!f(S,A)}catch{return!0}}function s(S,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l=Yi(),f=typeof Object.is=="function"?Object.is:n,d=l.useState,h=l.useEffect,p=l.useLayoutEffect,m=l.useDebugValue,y=!1,v=!1,b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:a;tv.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),tv}var MD;function jB(){return MD||(MD=1,ev.exports=UB()),ev.exports}var qD;function LB(){if(qD)return Wy;qD=1;return(function(){function n(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=Yi(),i=jB(),s=typeof Object.is=="function"?Object.is:n,l=i.useSyncExternalStore,f=a.useRef,d=a.useEffect,h=a.useMemo,p=a.useDebugValue;Wy.useSyncExternalStoreWithSelector=function(m,y,v,b,S){var x=f(null);if(x.current===null){var A={hasValue:!1,value:null};x.current=A}else A=x.current;x=h(function(){function T(q){if(!C){if(C=!0,E=q,q=b(q),S!==void 0&&A.hasValue){var U=A.value;if(S(U,q))return N=U}return N=q}if(U=N,s(E,q))return U;var H=b(q);return S!==void 0&&S(U,H)?(E=q,U):(E=q,N=H)}var C=!1,E,N,M=v===void 0?null:v;return[function(){return T(y())},M===null?void 0:function(){return T(M())}]},[y,v,b,S]);var w=l(m,x[0],x[1]);return d(function(){A.hasValue=!0,A.value=w},[w]),p(w),w},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Wy}var zD;function HB(){return zD||(zD=1,Ky.exports=LB()),Ky.exports}var kB=HB();const VB=Oh(kB),BB={},UD=n=>{let a;const i=new Set,s=(y,v)=>{const b=typeof y=="function"?y(a):y;if(!Object.is(b,a)){const S=a;a=v??(typeof b!="object"||b===null)?b:Object.assign({},a,b),i.forEach(x=>x(a,S))}},l=()=>a,p={setState:s,getState:l,getInitialState:()=>m,subscribe:y=>(i.add(y),()=>i.delete(y)),destroy:()=>{(BB?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},m=a=n(s,l,p);return p},IB=n=>n?UD(n):UD,{useDebugValue:GB}=Dz,{useSyncExternalStoreWithSelector:YB}=VB,$B=n=>n;function jU(n,a=$B,i){const s=YB(n.subscribe,n.getState,n.getServerState||n.getInitialState,a,i);return GB(s),s}const jD=(n,a)=>{const i=IB(n),s=(l,f=a)=>jU(i,l,f);return Object.assign(s,i),s},XB=(n,a)=>n?jD(n,a):jD;function Et(n,a){if(Object.is(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;if(n instanceof Map&&a instanceof Map){if(n.size!==a.size)return!1;for(const[s,l]of n)if(!Object.is(l,a.get(s)))return!1;return!0}if(n instanceof Set&&a instanceof Set){if(n.size!==a.size)return!1;for(const s of n)if(!a.has(s))return!1;return!0}const i=Object.keys(n);if(i.length!==Object.keys(a).length)return!1;for(const s of i)if(!Object.prototype.hasOwnProperty.call(a,s)||!Object.is(n[s],a[s]))return!1;return!0}Cz();const Vh=ce.createContext(null),PB=Vh.Provider,LU=ha.error001();function at(n,a){const i=ce.useContext(Vh);if(i===null)throw new Error(LU);return jU(i,n,a)}function wt(){const n=ce.useContext(Vh);if(n===null)throw new Error(LU);return ce.useMemo(()=>({getState:n.getState,setState:n.setState,subscribe:n.subscribe}),[n])}const LD={display:"none"},ZB={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},HU="react-flow__node-desc",kU="react-flow__edge-desc",QB="react-flow__aria-live",FB=n=>n.ariaLiveMessage,JB=n=>n.ariaLabelConfig;function KB({rfId:n}){const a=at(FB);return fe.jsx("div",{id:`${QB}-${n}`,"aria-live":"assertive","aria-atomic":"true",style:ZB,children:a})}function WB({rfId:n,disableKeyboardA11y:a}){const i=at(JB);return fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{id:`${HU}-${n}`,style:LD,children:a?i["node.a11yDescription.default"]:i["node.a11yDescription.keyboardDisabled"]}),fe.jsx("div",{id:`${kU}-${n}`,style:LD,children:i["edge.a11yDescription.default"]}),!a&&fe.jsx(KB,{rfId:n})]})}const Bh=ce.forwardRef(({position:n="top-left",children:a,className:i,style:s,...l},f)=>{const d=`${n}`.split("-");return fe.jsx("div",{className:It(["react-flow__panel",i,...d]),style:s,ref:f,...l,children:a})});Bh.displayName="Panel";function e7({proOptions:n,position:a="bottom-right"}){return n?.hideAttribution?null:fe.jsx(Bh,{position:a,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:fe.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const t7=n=>{const a=[],i=[];for(const[,s]of n.nodeLookup)s.selected&&a.push(s.internals.userNode);for(const[,s]of n.edgeLookup)s.selected&&i.push(s);return{selectedNodes:a,selectedEdges:i}},uh=n=>n.id;function n7(n,a){return Et(n.selectedNodes.map(uh),a.selectedNodes.map(uh))&&Et(n.selectedEdges.map(uh),a.selectedEdges.map(uh))}function r7({onSelectionChange:n}){const a=wt(),{selectedNodes:i,selectedEdges:s}=at(t7,n7);return ce.useEffect(()=>{const l={nodes:i,edges:s};n?.(l),a.getState().onSelectionChangeHandlers.forEach(f=>f(l))},[i,s,n]),null}const a7=n=>!!n.onSelectionChangeHandlers;function o7({onSelectionChange:n}){const a=at(a7);return n||a?fe.jsx(r7,{onSelectionChange:n}):null}const LS=typeof window<"u"?ce.useLayoutEffect:ce.useEffect,VU=[0,0],i7={x:0,y:0,zoom:1},s7=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],HD=[...s7,"rfId"],l7=n=>({setNodes:n.setNodes,setEdges:n.setEdges,setMinZoom:n.setMinZoom,setMaxZoom:n.setMaxZoom,setTranslateExtent:n.setTranslateExtent,setNodeExtent:n.setNodeExtent,reset:n.reset,setDefaultNodesAndEdges:n.setDefaultNodesAndEdges}),kD={translateExtent:pc,nodeOrigin:VU,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function u7(n){const{setNodes:a,setEdges:i,setMinZoom:s,setMaxZoom:l,setTranslateExtent:f,setNodeExtent:d,reset:h,setDefaultNodesAndEdges:p}=at(l7,Et),m=wt();LS(()=>(p(n.defaultNodes,n.defaultEdges),()=>{y.current=kD,h()}),[]);const y=ce.useRef(kD);return LS(()=>{for(const v of HD){const b=n[v],S=y.current[v];b!==S&&(typeof n[v]>"u"||(v==="nodes"?a(b):v==="edges"?i(b):v==="minZoom"?s(b):v==="maxZoom"?l(b):v==="translateExtent"?f(b):v==="nodeExtent"?d(b):v==="ariaLabelConfig"?m.setState({ariaLabelConfig:XV(b)}):v==="fitView"?m.setState({fitViewQueued:b}):v==="fitViewOptions"?m.setState({fitViewOptions:b}):m.setState({[v]:b})))}y.current=n},HD.map(v=>n[v])),null}function VD(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function c7(n){const[a,i]=ce.useState(n==="system"?null:n);return ce.useEffect(()=>{if(n!=="system"){i(n);return}const s=VD(),l=()=>i(s?.matches?"dark":"light");return l(),s?.addEventListener("change",l),()=>{s?.removeEventListener("change",l)}},[n]),a!==null?a:VD()?.matches?"dark":"light"}const BD=typeof document<"u"?document:null;function vc(n=null,a={target:BD,actInsideInputWithModifier:!0}){const[i,s]=ce.useState(!1),l=ce.useRef(!1),f=ce.useRef(new Set([])),[d,h]=ce.useMemo(()=>{if(n!==null){const m=(Array.isArray(n)?n:[n]).filter(v=>typeof v=="string").map(v=>v.replace("+",`
241
+ `).replace(`
242
+
243
+ `,`
244
+ +`).split(`
245
+ `)),y=m.reduce((v,b)=>v.concat(...b),[]);return[m,y]}return[[],[]]},[n]);return ce.useEffect(()=>{const p=a?.target??BD,m=a?.actInsideInputWithModifier??!0;if(n!==null){const y=S=>{if(l.current=S.ctrlKey||S.metaKey||S.shiftKey||S.altKey,(!l.current||l.current&&!m)&&bU(S))return!1;const A=GD(S.code,h);if(f.current.add(S[A]),ID(d,f.current,!1)){const w=S.composedPath?.()?.[0]||S.target,T=w?.nodeName==="BUTTON"||w?.nodeName==="A";a.preventDefault!==!1&&(l.current||!T)&&S.preventDefault(),s(!0)}},v=S=>{const x=GD(S.code,h);ID(d,f.current,!0)?(s(!1),f.current.clear()):f.current.delete(S[x]),S.key==="Meta"&&f.current.clear(),l.current=!1},b=()=>{f.current.clear(),s(!1)};return p?.addEventListener("keydown",y),p?.addEventListener("keyup",v),window.addEventListener("blur",b),window.addEventListener("contextmenu",b),()=>{p?.removeEventListener("keydown",y),p?.removeEventListener("keyup",v),window.removeEventListener("blur",b),window.removeEventListener("contextmenu",b)}}},[n,s]),i}function ID(n,a,i){return n.filter(s=>i||s.length===a.size).some(s=>s.every(l=>a.has(l)))}function GD(n,a){return a.includes(n)?"code":"key"}const f7=()=>{const n=wt();return ce.useMemo(()=>({zoomIn:a=>{const{panZoom:i}=n.getState();return i?i.scaleBy(1.2,a):Promise.resolve(!1)},zoomOut:a=>{const{panZoom:i}=n.getState();return i?i.scaleBy(1/1.2,a):Promise.resolve(!1)},zoomTo:(a,i)=>{const{panZoom:s}=n.getState();return s?s.scaleTo(a,i):Promise.resolve(!1)},getZoom:()=>n.getState().transform[2],setViewport:async(a,i)=>{const{transform:[s,l,f],panZoom:d}=n.getState();return d?(await d.setViewport({x:a.x??s,y:a.y??l,zoom:a.zoom??f},i),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[a,i,s]=n.getState().transform;return{x:a,y:i,zoom:s}},setCenter:async(a,i,s)=>n.getState().setCenter(a,i,s),fitBounds:async(a,i)=>{const{width:s,height:l,minZoom:f,maxZoom:d,panZoom:h}=n.getState(),p=ZS(a,s,l,f,d,i?.padding??.1);return h?(await h.setViewport(p,{duration:i?.duration,ease:i?.ease,interpolate:i?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(a,i={})=>{const{transform:s,snapGrid:l,snapToGrid:f,domNode:d}=n.getState();if(!d)return a;const{x:h,y:p}=d.getBoundingClientRect(),m={x:a.x-h,y:a.y-p},y=i.snapGrid??l,v=i.snapToGrid??f;return wc(m,s,v,y)},flowToScreenPosition:a=>{const{transform:i,domNode:s}=n.getState();if(!s)return a;const{x:l,y:f}=s.getBoundingClientRect(),d=Ah(a,i);return{x:d.x+l,y:d.y+f}}}),[])};function BU(n,a){const i=[],s=new Map,l=[];for(const f of n)if(f.type==="add"){l.push(f);continue}else if(f.type==="remove"||f.type==="replace")s.set(f.id,[f]);else{const d=s.get(f.id);d?d.push(f):s.set(f.id,[f])}for(const f of a){const d=s.get(f.id);if(!d){i.push(f);continue}if(d[0].type==="remove")continue;if(d[0].type==="replace"){i.push({...d[0].item});continue}const h={...f};for(const p of d)d7(p,h);i.push(h)}return l.length&&l.forEach(f=>{f.index!==void 0?i.splice(f.index,0,{...f.item}):i.push({...f.item})}),i}function d7(n,a){switch(n.type){case"select":{a.selected=n.selected;break}case"position":{typeof n.position<"u"&&(a.position=n.position),typeof n.dragging<"u"&&(a.dragging=n.dragging);break}case"dimensions":{typeof n.dimensions<"u"&&(a.measured={...n.dimensions},n.setAttributes&&((n.setAttributes===!0||n.setAttributes==="width")&&(a.width=n.dimensions.width),(n.setAttributes===!0||n.setAttributes==="height")&&(a.height=n.dimensions.height))),typeof n.resizing=="boolean"&&(a.resizing=n.resizing);break}}}function h7(n,a){return BU(n,a)}function p7(n,a){return BU(n,a)}function ji(n,a){return{id:n,type:"select",selected:a}}function rl(n,a=new Set,i=!1){const s=[];for(const[l,f]of n){const d=a.has(l);!(f.selected===void 0&&!d)&&f.selected!==d&&(i&&(f.selected=d),s.push(ji(f.id,d)))}return s}function YD({items:n=[],lookup:a}){const i=[],s=new Map(n.map(l=>[l.id,l]));for(const[l,f]of n.entries()){const d=a.get(f.id),h=d?.internals?.userNode??d;h!==void 0&&h!==f&&i.push({id:f.id,item:f,type:"replace"}),h===void 0&&i.push({item:f,type:"add",index:l})}for(const[l]of a)s.get(l)===void 0&&i.push({id:l,type:"remove"});return i}function $D(n){return{id:n.id,type:"remove"}}const XD=n=>jV(n),m7=n=>fU(n);function IU(n){return ce.forwardRef(n)}function PD(n){const[a,i]=ce.useState(BigInt(0)),[s]=ce.useState(()=>g7(()=>i(l=>l+BigInt(1))));return LS(()=>{const l=s.get();l.length&&(n(l),s.reset())},[a]),s}function g7(n){let a=[];return{get:()=>a,reset:()=>{a=[]},push:i=>{a.push(i),n()}}}const GU=ce.createContext(null);function y7({children:n}){const a=wt(),i=ce.useCallback(h=>{const{nodes:p=[],setNodes:m,hasDefaultNodes:y,onNodesChange:v,nodeLookup:b,fitViewQueued:S,onNodesChangeMiddlewareMap:x}=a.getState();let A=p;for(const T of h)A=typeof T=="function"?T(A):T;let w=YD({items:A,lookup:b});for(const T of x.values())w=T(w);y&&m(A),w.length>0?v?.(w):S&&window.requestAnimationFrame(()=>{const{fitViewQueued:T,nodes:C,setNodes:E}=a.getState();T&&E(C)})},[]),s=PD(i),l=ce.useCallback(h=>{const{edges:p=[],setEdges:m,hasDefaultEdges:y,onEdgesChange:v,edgeLookup:b}=a.getState();let S=p;for(const x of h)S=typeof x=="function"?x(S):x;y?m(S):v&&v(YD({items:S,lookup:b}))},[]),f=PD(l),d=ce.useMemo(()=>({nodeQueue:s,edgeQueue:f}),[]);return fe.jsx(GU.Provider,{value:d,children:n})}function v7(){const n=ce.useContext(GU);if(!n)throw new Error("useBatchContext must be used within a BatchProvider");return n}const b7=n=>!!n.panZoom;function tx(){const n=f7(),a=wt(),i=v7(),s=at(b7),l=ce.useMemo(()=>{const f=v=>a.getState().nodeLookup.get(v),d=v=>{i.nodeQueue.push(v)},h=v=>{i.edgeQueue.push(v)},p=v=>{const{nodeLookup:b,nodeOrigin:S}=a.getState(),x=XD(v)?v:b.get(v.id),A=x.parentId?yU(x.position,x.measured,x.parentId,b,S):x.position,w={...x,position:A,width:x.measured?.width??x.width,height:x.measured?.height??x.height};return cl(w)},m=(v,b,S={replace:!1})=>{d(x=>x.map(A=>{if(A.id===v){const w=typeof b=="function"?b(A):b;return S.replace&&XD(w)?w:{...A,...w}}return A}))},y=(v,b,S={replace:!1})=>{h(x=>x.map(A=>{if(A.id===v){const w=typeof b=="function"?b(A):b;return S.replace&&m7(w)?w:{...A,...w}}return A}))};return{getNodes:()=>a.getState().nodes.map(v=>({...v})),getNode:v=>f(v)?.internals.userNode,getInternalNode:f,getEdges:()=>{const{edges:v=[]}=a.getState();return v.map(b=>({...b}))},getEdge:v=>a.getState().edgeLookup.get(v),setNodes:d,setEdges:h,addNodes:v=>{const b=Array.isArray(v)?v:[v];i.nodeQueue.push(S=>[...S,...b])},addEdges:v=>{const b=Array.isArray(v)?v:[v];i.edgeQueue.push(S=>[...S,...b])},toObject:()=>{const{nodes:v=[],edges:b=[],transform:S}=a.getState(),[x,A,w]=S;return{nodes:v.map(T=>({...T})),edges:b.map(T=>({...T})),viewport:{x,y:A,zoom:w}}},deleteElements:async({nodes:v=[],edges:b=[]})=>{const{nodes:S,edges:x,onNodesDelete:A,onEdgesDelete:w,triggerNodeChanges:T,triggerEdgeChanges:C,onDelete:E,onBeforeDelete:N}=a.getState(),{nodes:M,edges:q}=await BV({nodesToRemove:v,edgesToRemove:b,nodes:S,edges:x,onBeforeDelete:N}),U=q.length>0,H=M.length>0;if(U){const k=q.map($D);w?.(q),C(k)}if(H){const k=M.map($D);A?.(M),T(k)}return(H||U)&&E?.({nodes:M,edges:q}),{deletedNodes:M,deletedEdges:q}},getIntersectingNodes:(v,b=!0,S)=>{const x=vD(v),A=x?v:p(v),w=S!==void 0;return A?(S||a.getState().nodes).filter(T=>{const C=a.getState().nodeLookup.get(T.id);if(C&&!x&&(T.id===v.id||!C.internals.positionAbsolute))return!1;const E=cl(w?T:C),N=gc(E,A);return b&&N>0||N>=E.width*E.height||N>=A.width*A.height}):[]},isNodeIntersecting:(v,b,S=!0)=>{const A=vD(v)?v:p(v);if(!A)return!1;const w=gc(A,b);return S&&w>0||w>=b.width*b.height||w>=A.width*A.height},updateNode:m,updateNodeData:(v,b,S={replace:!1})=>{m(v,x=>{const A=typeof b=="function"?b(x):b;return S.replace?{...x,data:A}:{...x,data:{...x.data,...A}}},S)},updateEdge:y,updateEdgeData:(v,b,S={replace:!1})=>{y(v,x=>{const A=typeof b=="function"?b(x):b;return S.replace?{...x,data:A}:{...x,data:{...x.data,...A}}},S)},getNodesBounds:v=>{const{nodeLookup:b,nodeOrigin:S}=a.getState();return LV(v,{nodeLookup:b,nodeOrigin:S})},getHandleConnections:({type:v,id:b,nodeId:S})=>Array.from(a.getState().connectionLookup.get(`${S}-${v}${b?`-${b}`:""}`)?.values()??[]),getNodeConnections:({type:v,handleId:b,nodeId:S})=>Array.from(a.getState().connectionLookup.get(`${S}${v?b?`-${v}-${b}`:`-${v}`:""}`)?.values()??[]),fitView:async v=>{const b=a.getState().fitViewResolver??$V();return a.setState({fitViewQueued:!0,fitViewOptions:v,fitViewResolver:b}),i.nodeQueue.push(S=>[...S]),b.promise}}},[]);return ce.useMemo(()=>({...l,...n,viewportInitialized:s}),[s])}const ZD=n=>n.selected,_7=typeof window<"u"?window:void 0;function S7({deleteKeyCode:n,multiSelectionKeyCode:a}){const i=wt(),{deleteElements:s}=tx(),l=vc(n,{actInsideInputWithModifier:!1}),f=vc(a,{target:_7});ce.useEffect(()=>{if(l){const{edges:d,nodes:h}=i.getState();s({nodes:h.filter(ZD),edges:d.filter(ZD)}),i.setState({nodesSelectionActive:!1})}},[l]),ce.useEffect(()=>{i.setState({multiSelectionActive:f})},[f])}function x7(n){const a=wt();ce.useEffect(()=>{const i=()=>{if(!n.current||!(n.current.checkVisibility?.()??!0))return!1;const s=QS(n.current);(s.height===0||s.width===0)&&a.getState().onError?.("004",ha.error004()),a.setState({width:s.width||500,height:s.height||500})};if(n.current){i(),window.addEventListener("resize",i);const s=new ResizeObserver(()=>i());return s.observe(n.current),()=>{window.removeEventListener("resize",i),s&&n.current&&s.unobserve(n.current)}}},[])}const Ih={position:"absolute",width:"100%",height:"100%",top:0,left:0},E7=n=>({userSelectionActive:n.userSelectionActive,lib:n.lib,connectionInProgress:n.connection.inProgress});function w7({onPaneContextMenu:n,zoomOnScroll:a=!0,zoomOnPinch:i=!0,panOnScroll:s=!1,panOnScrollSpeed:l=.5,panOnScrollMode:f=ki.Free,zoomOnDoubleClick:d=!0,panOnDrag:h=!0,defaultViewport:p,translateExtent:m,minZoom:y,maxZoom:v,zoomActivationKeyCode:b,preventScrolling:S=!0,children:x,noWheelClassName:A,noPanClassName:w,onViewportChange:T,isControlledViewport:C,paneClickDistance:E,selectionOnDrag:N}){const M=wt(),q=ce.useRef(null),{userSelectionActive:U,lib:H,connectionInProgress:k}=at(E7,Et),G=vc(b),V=ce.useRef();x7(q);const X=ce.useCallback(ee=>{T?.({x:ee[0],y:ee[1],zoom:ee[2]}),C||M.setState({transform:ee})},[T,C]);return ce.useEffect(()=>{if(q.current){V.current=NB({domNode:q.current,minZoom:y,maxZoom:v,translateExtent:m,viewport:p,onDraggingChange:L=>M.setState(F=>F.paneDragging===L?F:{paneDragging:L}),onPanZoomStart:(L,F)=>{const{onViewportChangeStart:Z,onMoveStart:ne}=M.getState();ne?.(L,F),Z?.(F)},onPanZoom:(L,F)=>{const{onViewportChange:Z,onMove:ne}=M.getState();ne?.(L,F),Z?.(F)},onPanZoomEnd:(L,F)=>{const{onViewportChangeEnd:Z,onMoveEnd:ne}=M.getState();ne?.(L,F),Z?.(F)}});const{x:ee,y:j,zoom:Q}=V.current.getViewport();return M.setState({panZoom:V.current,transform:[ee,j,Q],domNode:q.current.closest(".react-flow")}),()=>{V.current?.destroy()}}},[]),ce.useEffect(()=>{V.current?.update({onPaneContextMenu:n,zoomOnScroll:a,zoomOnPinch:i,panOnScroll:s,panOnScrollSpeed:l,panOnScrollMode:f,zoomOnDoubleClick:d,panOnDrag:h,zoomActivationKeyPressed:G,preventScrolling:S,noPanClassName:w,userSelectionActive:U,noWheelClassName:A,lib:H,onTransformChange:X,connectionInProgress:k,selectionOnDrag:N,paneClickDistance:E})},[n,a,i,s,l,f,d,h,G,S,w,U,A,H,X,k,N,E]),fe.jsx("div",{className:"react-flow__renderer",ref:q,style:Ih,children:x})}const T7=n=>({userSelectionActive:n.userSelectionActive,userSelectionRect:n.userSelectionRect});function R7(){const{userSelectionActive:n,userSelectionRect:a}=at(T7,Et);return n&&a?fe.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:a.width,height:a.height,transform:`translate(${a.x}px, ${a.y}px)`}}):null}const nv=(n,a)=>i=>{i.target===a.current&&n?.(i)},A7=n=>({userSelectionActive:n.userSelectionActive,elementsSelectable:n.elementsSelectable,connectionInProgress:n.connection.inProgress,dragging:n.paneDragging});function N7({isSelecting:n,selectionKeyPressed:a,selectionMode:i=mc.Full,panOnDrag:s,paneClickDistance:l,selectionOnDrag:f,onSelectionStart:d,onSelectionEnd:h,onPaneClick:p,onPaneContextMenu:m,onPaneScroll:y,onPaneMouseEnter:v,onPaneMouseMove:b,onPaneMouseLeave:S,children:x}){const A=wt(),{userSelectionActive:w,elementsSelectable:T,dragging:C,connectionInProgress:E}=at(A7,Et),N=T&&(n||w),M=ce.useRef(null),q=ce.useRef(),U=ce.useRef(new Set),H=ce.useRef(new Set),k=ce.useRef(!1),G=Z=>{if(k.current||E){k.current=!1;return}p?.(Z),A.getState().resetSelectedElements(),A.setState({nodesSelectionActive:!1})},V=Z=>{if(Array.isArray(s)&&s?.includes(2)){Z.preventDefault();return}m?.(Z)},X=y?Z=>y(Z):void 0,ee=Z=>{k.current&&(Z.stopPropagation(),k.current=!1)},j=Z=>{const{domNode:ne}=A.getState();if(q.current=ne?.getBoundingClientRect(),!q.current)return;const de=Z.target===M.current;if(!de&&!!Z.target.closest(".nokey")||!n||!(f&&de||a)||Z.button!==0||!Z.isPrimary)return;Z.target?.setPointerCapture?.(Z.pointerId),k.current=!1;const{x:ge,y:B}=qr(Z.nativeEvent,q.current);A.setState({userSelectionRect:{width:0,height:0,startX:ge,startY:B,x:ge,y:B}}),de||(Z.stopPropagation(),Z.preventDefault())},Q=Z=>{const{userSelectionRect:ne,transform:de,nodeLookup:z,edgeLookup:W,connectionLookup:ge,triggerNodeChanges:B,triggerEdgeChanges:re,defaultEdgeOptions:ue,resetSelectedElements:oe}=A.getState();if(!q.current||!ne)return;const{x:he,y:be}=qr(Z.nativeEvent,q.current),{startX:Te,startY:me}=ne;if(!k.current){const De=a?0:l;if(Math.hypot(he-Te,be-me)<=De)return;oe(),d?.(Z)}k.current=!0;const qe={startX:Te,startY:me,x:he<Te?he:Te,y:be<me?be:me,width:Math.abs(he-Te),height:Math.abs(be-me)},Re=U.current,Le=H.current;U.current=new Set(PS(z,qe,de,i===mc.Partial,!0).map(De=>De.id)),H.current=new Set;const Ae=ue?.selectable??!0;for(const De of U.current){const Ne=ge.get(De);if(Ne)for(const{edgeId:Nt}of Ne.values()){const qt=W.get(Nt);qt&&(qt.selectable??Ae)&&H.current.add(Nt)}}if(!bD(Re,U.current)){const De=rl(z,U.current,!0);B(De)}if(!bD(Le,H.current)){const De=rl(W,H.current);re(De)}A.setState({userSelectionRect:qe,userSelectionActive:!0,nodesSelectionActive:!1})},L=Z=>{Z.button===0&&(Z.target?.releasePointerCapture?.(Z.pointerId),!w&&Z.target===M.current&&A.getState().userSelectionRect&&G?.(Z),A.setState({userSelectionActive:!1,userSelectionRect:null}),k.current&&(h?.(Z),A.setState({nodesSelectionActive:U.current.size>0})))},F=s===!0||Array.isArray(s)&&s.includes(0);return fe.jsxs("div",{className:It(["react-flow__pane",{draggable:F,dragging:C,selection:n}]),onClick:N?void 0:nv(G,M),onContextMenu:nv(V,M),onWheel:nv(X,M),onPointerEnter:N?void 0:v,onPointerMove:N?Q:b,onPointerUp:N?L:void 0,onPointerDownCapture:N?j:void 0,onClickCapture:N?ee:void 0,onPointerLeave:S,ref:M,style:Ih,children:[x,fe.jsx(R7,{})]})}function HS({id:n,store:a,unselect:i=!1,nodeRef:s}){const{addSelectedNodes:l,unselectNodesAndEdges:f,multiSelectionActive:d,nodeLookup:h,onError:p}=a.getState(),m=h.get(n);if(!m){p?.("012",ha.error012(n));return}a.setState({nodesSelectionActive:!1}),m.selected?(i||m.selected&&d)&&(f({nodes:[m],edges:[]}),requestAnimationFrame(()=>s?.current?.blur())):l([n])}function YU({nodeRef:n,disabled:a=!1,noDragClassName:i,handleSelector:s,nodeId:l,isSelectable:f,nodeClickDistance:d}){const h=wt(),[p,m]=ce.useState(!1),y=ce.useRef();return ce.useEffect(()=>{y.current=pB({getStoreItems:()=>h.getState(),onNodeMouseDown:v=>{HS({id:v,store:h,nodeRef:n})},onDragStart:()=>{m(!0)},onDragStop:()=>{m(!1)}})},[]),ce.useEffect(()=>{if(!(a||!n.current||!y.current))return y.current.update({noDragClassName:i,handleSelector:s,domNode:n.current,isSelectable:f,nodeId:l,nodeClickDistance:d}),()=>{y.current?.destroy()}},[i,s,a,f,n,l,d]),p}const D7=n=>a=>a.selected&&(a.draggable||n&&typeof a.draggable>"u");function $U(){const n=wt();return ce.useCallback(i=>{const{nodeExtent:s,snapToGrid:l,snapGrid:f,nodesDraggable:d,onError:h,updateNodePositions:p,nodeLookup:m,nodeOrigin:y}=n.getState(),v=new Map,b=D7(d),S=l?f[0]:5,x=l?f[1]:5,A=i.direction.x*S*i.factor,w=i.direction.y*x*i.factor;for(const[,T]of m){if(!b(T))continue;let C={x:T.internals.positionAbsolute.x+A,y:T.internals.positionAbsolute.y+w};l&&(C=Ec(C,f));const{position:E,positionAbsolute:N}=dU({nodeId:T.id,nextPosition:C,nodeLookup:m,nodeExtent:s,nodeOrigin:y,onError:h});T.position=E,T.internals.positionAbsolute=N,v.set(T.id,T)}p(v)},[])}const nx=ce.createContext(null),C7=nx.Provider;nx.Consumer;const XU=()=>ce.useContext(nx),O7=n=>({connectOnClick:n.connectOnClick,noPanClassName:n.noPanClassName,rfId:n.rfId}),M7=(n,a,i)=>s=>{const{connectionClickStartHandle:l,connectionMode:f,connection:d}=s,{fromHandle:h,toHandle:p,isValid:m}=d,y=p?.nodeId===n&&p?.id===a&&p?.type===i;return{connectingFrom:h?.nodeId===n&&h?.id===a&&h?.type===i,connectingTo:y,clickConnecting:l?.nodeId===n&&l?.id===a&&l?.type===i,isPossibleEndHandle:f===ll.Strict?h?.type!==i:n!==h?.nodeId||a!==h?.id,connectionInProcess:!!h,clickConnectionInProcess:!!l,valid:y&&m}};function q7({type:n="source",position:a=je.Top,isValidConnection:i,isConnectable:s=!0,isConnectableStart:l=!0,isConnectableEnd:f=!0,id:d,onConnect:h,children:p,className:m,onMouseDown:y,onTouchStart:v,...b},S){const x=d||null,A=n==="target",w=wt(),T=XU(),{connectOnClick:C,noPanClassName:E,rfId:N}=at(O7,Et),{connectingFrom:M,connectingTo:q,clickConnecting:U,isPossibleEndHandle:H,connectionInProcess:k,clickConnectionInProcess:G,valid:V}=at(M7(T,x,n),Et);T||w.getState().onError?.("010",ha.error010());const X=Q=>{const{defaultEdgeOptions:L,onConnect:F,hasDefaultEdges:Z}=w.getState(),ne={...L,...Q};if(Z){const{edges:de,setEdges:z}=w.getState();z(KV(ne,de))}F?.(ne),h?.(ne)},ee=Q=>{if(!T)return;const L=_U(Q.nativeEvent);if(l&&(L&&Q.button===0||!L)){const F=w.getState();jS.onPointerDown(Q.nativeEvent,{handleDomNode:Q.currentTarget,autoPanOnConnect:F.autoPanOnConnect,connectionMode:F.connectionMode,connectionRadius:F.connectionRadius,domNode:F.domNode,nodeLookup:F.nodeLookup,lib:F.lib,isTarget:A,handleId:x,nodeId:T,flowId:F.rfId,panBy:F.panBy,cancelConnection:F.cancelConnection,onConnectStart:F.onConnectStart,onConnectEnd:(...Z)=>w.getState().onConnectEnd?.(...Z),updateConnection:F.updateConnection,onConnect:X,isValidConnection:i||((...Z)=>w.getState().isValidConnection?.(...Z)??!0),getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:F.autoPanSpeed,dragThreshold:F.connectionDragThreshold})}L?y?.(Q):v?.(Q)},j=Q=>{const{onClickConnectStart:L,onClickConnectEnd:F,connectionClickStartHandle:Z,connectionMode:ne,isValidConnection:de,lib:z,rfId:W,nodeLookup:ge,connection:B}=w.getState();if(!T||!Z&&!l)return;if(!Z){L?.(Q.nativeEvent,{nodeId:T,handleId:x,handleType:n}),w.setState({connectionClickStartHandle:{nodeId:T,type:n,id:x}});return}const re=vU(Q.target),ue=i||de,{connection:oe,isValid:he}=jS.isValid(Q.nativeEvent,{handle:{nodeId:T,id:x,type:n},connectionMode:ne,fromNodeId:Z.nodeId,fromHandleId:Z.id||null,fromType:Z.type,isValidConnection:ue,flowId:W,doc:re,lib:z,nodeLookup:ge});he&&oe&&X(oe);const be=structuredClone(B);delete be.inProgress,be.toPosition=be.toHandle?be.toHandle.position:null,F?.(Q,be),w.setState({connectionClickStartHandle:null})};return fe.jsx("div",{"data-handleid":x,"data-nodeid":T,"data-handlepos":a,"data-id":`${N}-${T}-${x}-${n}`,className:It(["react-flow__handle",`react-flow__handle-${a}`,"nodrag",E,m,{source:!A,target:A,connectable:s,connectablestart:l,connectableend:f,clickconnecting:U,connectingfrom:M,connectingto:q,valid:V,connectionindicator:s&&(!k||H)&&(k||G?f:l)}]),onMouseDown:ee,onTouchStart:ee,onClick:C?j:void 0,ref:S,...b,children:p})}const Nh=ce.memo(IU(q7));function z7({data:n,isConnectable:a,sourcePosition:i=je.Bottom}){return fe.jsxs(fe.Fragment,{children:[n?.label,fe.jsx(Nh,{type:"source",position:i,isConnectable:a})]})}function U7({data:n,isConnectable:a,targetPosition:i=je.Top,sourcePosition:s=je.Bottom}){return fe.jsxs(fe.Fragment,{children:[fe.jsx(Nh,{type:"target",position:i,isConnectable:a}),n?.label,fe.jsx(Nh,{type:"source",position:s,isConnectable:a})]})}function j7(){return null}function L7({data:n,isConnectable:a,targetPosition:i=je.Top}){return fe.jsxs(fe.Fragment,{children:[fe.jsx(Nh,{type:"target",position:i,isConnectable:a}),n?.label]})}const Dh={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},QD={input:z7,default:U7,output:L7,group:j7};function H7(n){return n.internals.handleBounds===void 0?{width:n.width??n.initialWidth??n.style?.width,height:n.height??n.initialHeight??n.style?.height}:{width:n.width??n.style?.width,height:n.height??n.style?.height}}const k7=n=>{const{width:a,height:i,x:s,y:l}=xc(n.nodeLookup,{filter:f=>!!f.selected});return{width:Mr(a)?a:null,height:Mr(i)?i:null,userSelectionActive:n.userSelectionActive,transformString:`translate(${n.transform[0]}px,${n.transform[1]}px) scale(${n.transform[2]}) translate(${s}px,${l}px)`}};function V7({onSelectionContextMenu:n,noPanClassName:a,disableKeyboardA11y:i}){const s=wt(),{width:l,height:f,transformString:d,userSelectionActive:h}=at(k7,Et),p=$U(),m=ce.useRef(null);ce.useEffect(()=>{i||m.current?.focus({preventScroll:!0})},[i]);const y=!h&&l!==null&&f!==null;if(YU({nodeRef:m,disabled:!y}),!y)return null;const v=n?S=>{const x=s.getState().nodes.filter(A=>A.selected);n(S,x)}:void 0,b=S=>{Object.prototype.hasOwnProperty.call(Dh,S.key)&&(S.preventDefault(),p({direction:Dh[S.key],factor:S.shiftKey?4:1}))};return fe.jsx("div",{className:It(["react-flow__nodesselection","react-flow__container",a]),style:{transform:d},children:fe.jsx("div",{ref:m,className:"react-flow__nodesselection-rect",onContextMenu:v,tabIndex:i?void 0:-1,onKeyDown:i?void 0:b,style:{width:l,height:f}})})}const FD=typeof window<"u"?window:void 0,B7=n=>({nodesSelectionActive:n.nodesSelectionActive,userSelectionActive:n.userSelectionActive});function PU({children:n,onPaneClick:a,onPaneMouseEnter:i,onPaneMouseMove:s,onPaneMouseLeave:l,onPaneContextMenu:f,onPaneScroll:d,paneClickDistance:h,deleteKeyCode:p,selectionKeyCode:m,selectionOnDrag:y,selectionMode:v,onSelectionStart:b,onSelectionEnd:S,multiSelectionKeyCode:x,panActivationKeyCode:A,zoomActivationKeyCode:w,elementsSelectable:T,zoomOnScroll:C,zoomOnPinch:E,panOnScroll:N,panOnScrollSpeed:M,panOnScrollMode:q,zoomOnDoubleClick:U,panOnDrag:H,defaultViewport:k,translateExtent:G,minZoom:V,maxZoom:X,preventScrolling:ee,onSelectionContextMenu:j,noWheelClassName:Q,noPanClassName:L,disableKeyboardA11y:F,onViewportChange:Z,isControlledViewport:ne}){const{nodesSelectionActive:de,userSelectionActive:z}=at(B7,Et),W=vc(m,{target:FD}),ge=vc(A,{target:FD}),B=ge||H,re=ge||N,ue=y&&B!==!0,oe=W||z||ue;return S7({deleteKeyCode:p,multiSelectionKeyCode:x}),fe.jsx(w7,{onPaneContextMenu:f,elementsSelectable:T,zoomOnScroll:C,zoomOnPinch:E,panOnScroll:re,panOnScrollSpeed:M,panOnScrollMode:q,zoomOnDoubleClick:U,panOnDrag:!W&&B,defaultViewport:k,translateExtent:G,minZoom:V,maxZoom:X,zoomActivationKeyCode:w,preventScrolling:ee,noWheelClassName:Q,noPanClassName:L,onViewportChange:Z,isControlledViewport:ne,paneClickDistance:h,selectionOnDrag:ue,children:fe.jsxs(N7,{onSelectionStart:b,onSelectionEnd:S,onPaneClick:a,onPaneMouseEnter:i,onPaneMouseMove:s,onPaneMouseLeave:l,onPaneContextMenu:f,onPaneScroll:d,panOnDrag:B,isSelecting:!!oe,selectionMode:v,selectionKeyPressed:W,paneClickDistance:h,selectionOnDrag:ue,children:[n,de&&fe.jsx(V7,{onSelectionContextMenu:j,noPanClassName:L,disableKeyboardA11y:F})]})})}PU.displayName="FlowRenderer";const I7=ce.memo(PU),G7=n=>a=>n?PS(a.nodeLookup,{x:0,y:0,width:a.width,height:a.height},a.transform,!0).map(i=>i.id):Array.from(a.nodeLookup.keys());function Y7(n){return at(ce.useCallback(G7(n),[n]),Et)}const $7=n=>n.updateNodeInternals;function X7(){const n=at($7),[a]=ce.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(i=>{const s=new Map;i.forEach(l=>{const f=l.target.getAttribute("data-id");s.set(f,{id:f,nodeElement:l.target,force:!0})}),n(s)}));return ce.useEffect(()=>()=>{a?.disconnect()},[a]),a}function P7({node:n,nodeType:a,hasDimensions:i,resizeObserver:s}){const l=wt(),f=ce.useRef(null),d=ce.useRef(null),h=ce.useRef(n.sourcePosition),p=ce.useRef(n.targetPosition),m=ce.useRef(a),y=i&&!!n.internals.handleBounds;return ce.useEffect(()=>{f.current&&!n.hidden&&(!y||d.current!==f.current)&&(d.current&&s?.unobserve(d.current),s?.observe(f.current),d.current=f.current)},[y,n.hidden]),ce.useEffect(()=>()=>{d.current&&(s?.unobserve(d.current),d.current=null)},[]),ce.useEffect(()=>{if(f.current){const v=m.current!==a,b=h.current!==n.sourcePosition,S=p.current!==n.targetPosition;(v||b||S)&&(m.current=a,h.current=n.sourcePosition,p.current=n.targetPosition,l.getState().updateNodeInternals(new Map([[n.id,{id:n.id,nodeElement:f.current,force:!0}]])))}},[n.id,a,n.sourcePosition,n.targetPosition]),f}function Z7({id:n,onClick:a,onMouseEnter:i,onMouseMove:s,onMouseLeave:l,onContextMenu:f,onDoubleClick:d,nodesDraggable:h,elementsSelectable:p,nodesConnectable:m,nodesFocusable:y,resizeObserver:v,noDragClassName:b,noPanClassName:S,disableKeyboardA11y:x,rfId:A,nodeTypes:w,nodeClickDistance:T,onError:C}){const{node:E,internals:N,isParent:M}=at(he=>{const be=he.nodeLookup.get(n),Te=he.parentLookup.has(n);return{node:be,internals:be.internals,isParent:Te}},Et);let q=E.type||"default",U=w?.[q]||QD[q];U===void 0&&(C?.("003",ha.error003(q)),q="default",U=w?.default||QD.default);const H=!!(E.draggable||h&&typeof E.draggable>"u"),k=!!(E.selectable||p&&typeof E.selectable>"u"),G=!!(E.connectable||m&&typeof E.connectable>"u"),V=!!(E.focusable||y&&typeof E.focusable>"u"),X=wt(),ee=gU(E),j=P7({node:E,nodeType:q,hasDimensions:ee,resizeObserver:v}),Q=YU({nodeRef:j,disabled:E.hidden||!H,noDragClassName:b,handleSelector:E.dragHandle,nodeId:n,isSelectable:k,nodeClickDistance:T}),L=$U();if(E.hidden)return null;const F=Za(E),Z=H7(E),ne=k||H||a||i||s||l,de=i?he=>i(he,{...N.userNode}):void 0,z=s?he=>s(he,{...N.userNode}):void 0,W=l?he=>l(he,{...N.userNode}):void 0,ge=f?he=>f(he,{...N.userNode}):void 0,B=d?he=>d(he,{...N.userNode}):void 0,re=he=>{const{selectNodesOnDrag:be,nodeDragThreshold:Te}=X.getState();k&&(!be||!H||Te>0)&&HS({id:n,store:X,nodeRef:j}),a&&a(he,{...N.userNode})},ue=he=>{if(!(bU(he.nativeEvent)||x)){if(sU.includes(he.key)&&k){const be=he.key==="Escape";HS({id:n,store:X,unselect:be,nodeRef:j})}else if(H&&E.selected&&Object.prototype.hasOwnProperty.call(Dh,he.key)){he.preventDefault();const{ariaLabelConfig:be}=X.getState();X.setState({ariaLiveMessage:be["node.a11yDescription.ariaLiveMessage"]({direction:he.key.replace("Arrow","").toLowerCase(),x:~~N.positionAbsolute.x,y:~~N.positionAbsolute.y})}),L({direction:Dh[he.key],factor:he.shiftKey?4:1})}}},oe=()=>{if(x||!j.current?.matches(":focus-visible"))return;const{transform:he,width:be,height:Te,autoPanOnNodeFocus:me,setCenter:qe}=X.getState();if(!me)return;PS(new Map([[n,E]]),{x:0,y:0,width:be,height:Te},he,!0).length>0||qe(E.position.x+F.width/2,E.position.y+F.height/2,{zoom:he[2]})};return fe.jsx("div",{className:It(["react-flow__node",`react-flow__node-${q}`,{[S]:H},E.className,{selected:E.selected,selectable:k,parent:M,draggable:H,dragging:Q}]),ref:j,style:{zIndex:N.z,transform:`translate(${N.positionAbsolute.x}px,${N.positionAbsolute.y}px)`,pointerEvents:ne?"all":"none",visibility:ee?"visible":"hidden",...E.style,...Z},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:de,onMouseMove:z,onMouseLeave:W,onContextMenu:ge,onClick:re,onDoubleClick:B,onKeyDown:V?ue:void 0,tabIndex:V?0:void 0,onFocus:V?oe:void 0,role:E.ariaRole??(V?"group":void 0),"aria-roledescription":"node","aria-describedby":x?void 0:`${HU}-${A}`,"aria-label":E.ariaLabel,...E.domAttributes,children:fe.jsx(C7,{value:n,children:fe.jsx(U,{id:n,data:E.data,type:q,positionAbsoluteX:N.positionAbsolute.x,positionAbsoluteY:N.positionAbsolute.y,selected:E.selected??!1,selectable:k,draggable:H,deletable:E.deletable??!0,isConnectable:G,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:Q,dragHandle:E.dragHandle,zIndex:N.z,parentId:E.parentId,...F})})})}var Q7=ce.memo(Z7);const F7=n=>({nodesDraggable:n.nodesDraggable,nodesConnectable:n.nodesConnectable,nodesFocusable:n.nodesFocusable,elementsSelectable:n.elementsSelectable,onError:n.onError});function ZU(n){const{nodesDraggable:a,nodesConnectable:i,nodesFocusable:s,elementsSelectable:l,onError:f}=at(F7,Et),d=Y7(n.onlyRenderVisibleElements),h=X7();return fe.jsx("div",{className:"react-flow__nodes",style:Ih,children:d.map(p=>fe.jsx(Q7,{id:p,nodeTypes:n.nodeTypes,nodeExtent:n.nodeExtent,onClick:n.onNodeClick,onMouseEnter:n.onNodeMouseEnter,onMouseMove:n.onNodeMouseMove,onMouseLeave:n.onNodeMouseLeave,onContextMenu:n.onNodeContextMenu,onDoubleClick:n.onNodeDoubleClick,noDragClassName:n.noDragClassName,noPanClassName:n.noPanClassName,rfId:n.rfId,disableKeyboardA11y:n.disableKeyboardA11y,resizeObserver:h,nodesDraggable:a,nodesConnectable:i,nodesFocusable:s,elementsSelectable:l,nodeClickDistance:n.nodeClickDistance,onError:f},p))})}ZU.displayName="NodeRenderer";const J7=ce.memo(ZU);function K7(n){return at(ce.useCallback(i=>{if(!n)return i.edges.map(l=>l.id);const s=[];if(i.width&&i.height)for(const l of i.edges){const f=i.nodeLookup.get(l.source),d=i.nodeLookup.get(l.target);f&&d&&QV({sourceNode:f,targetNode:d,width:i.width,height:i.height,transform:i.transform})&&s.push(l.id)}return s},[n]),Et)}const W7=({color:n="none",strokeWidth:a=1})=>{const i={strokeWidth:a,...n&&{stroke:n}};return fe.jsx("polyline",{className:"arrow",style:i,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},eI=({color:n="none",strokeWidth:a=1})=>{const i={strokeWidth:a,...n&&{stroke:n,fill:n}};return fe.jsx("polyline",{className:"arrowclosed",style:i,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},JD={[Th.Arrow]:W7,[Th.ArrowClosed]:eI};function tI(n){const a=wt();return ce.useMemo(()=>Object.prototype.hasOwnProperty.call(JD,n)?JD[n]:(a.getState().onError?.("009",ha.error009(n)),null),[n])}const nI=({id:n,type:a,color:i,width:s=12.5,height:l=12.5,markerUnits:f="strokeWidth",strokeWidth:d,orient:h="auto-start-reverse"})=>{const p=tI(a);return p?fe.jsx("marker",{className:"react-flow__arrowhead",id:n,markerWidth:`${s}`,markerHeight:`${l}`,viewBox:"-10 -10 20 20",markerUnits:f,orient:h,refX:"0",refY:"0",children:fe.jsx(p,{color:i,strokeWidth:d})}):null},QU=({defaultColor:n,rfId:a})=>{const i=at(f=>f.edges),s=at(f=>f.defaultEdgeOptions),l=ce.useMemo(()=>rB(i,{id:a,defaultColor:n,defaultMarkerStart:s?.markerStart,defaultMarkerEnd:s?.markerEnd}),[i,s,a,n]);return l.length?fe.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:fe.jsx("defs",{children:l.map(f=>fe.jsx(nI,{id:f.id,type:f.type,color:f.color,width:f.width,height:f.height,markerUnits:f.markerUnits,strokeWidth:f.strokeWidth,orient:f.orient},f.id))})}):null};QU.displayName="MarkerDefinitions";var rI=ce.memo(QU);function FU({x:n,y:a,label:i,labelStyle:s,labelShowBg:l=!0,labelBgStyle:f,labelBgPadding:d=[2,4],labelBgBorderRadius:h=2,children:p,className:m,...y}){const[v,b]=ce.useState({x:1,y:0,width:0,height:0}),S=It(["react-flow__edge-textwrapper",m]),x=ce.useRef(null);return ce.useEffect(()=>{if(x.current){const A=x.current.getBBox();b({x:A.x,y:A.y,width:A.width,height:A.height})}},[i]),i?fe.jsxs("g",{transform:`translate(${n-v.width/2} ${a-v.height/2})`,className:S,visibility:v.width?"visible":"hidden",...y,children:[l&&fe.jsx("rect",{width:v.width+2*d[0],x:-d[0],y:-d[1],height:v.height+2*d[1],className:"react-flow__edge-textbg",style:f,rx:h,ry:h}),fe.jsx("text",{className:"react-flow__edge-text",y:v.height/2,dy:"0.3em",ref:x,style:s,children:i}),p]}):null}FU.displayName="EdgeText";const aI=ce.memo(FU);function Gh({path:n,labelX:a,labelY:i,label:s,labelStyle:l,labelShowBg:f,labelBgStyle:d,labelBgPadding:h,labelBgBorderRadius:p,interactionWidth:m=20,...y}){return fe.jsxs(fe.Fragment,{children:[fe.jsx("path",{...y,d:n,fill:"none",className:It(["react-flow__edge-path",y.className])}),m?fe.jsx("path",{d:n,fill:"none",strokeOpacity:0,strokeWidth:m,className:"react-flow__edge-interaction"}):null,s&&Mr(a)&&Mr(i)?fe.jsx(aI,{x:a,y:i,label:s,labelStyle:l,labelShowBg:f,labelBgStyle:d,labelBgPadding:h,labelBgBorderRadius:p}):null]})}function KD({pos:n,x1:a,y1:i,x2:s,y2:l}){return n===je.Left||n===je.Right?[.5*(a+s),i]:[a,.5*(i+l)]}function JU({sourceX:n,sourceY:a,sourcePosition:i=je.Bottom,targetX:s,targetY:l,targetPosition:f=je.Top}){const[d,h]=KD({pos:i,x1:n,y1:a,x2:s,y2:l}),[p,m]=KD({pos:f,x1:s,y1:l,x2:n,y2:a}),[y,v,b,S]=SU({sourceX:n,sourceY:a,targetX:s,targetY:l,sourceControlX:d,sourceControlY:h,targetControlX:p,targetControlY:m});return[`M${n},${a} C${d},${h} ${p},${m} ${s},${l}`,y,v,b,S]}function KU(n){return ce.memo(({id:a,sourceX:i,sourceY:s,targetX:l,targetY:f,sourcePosition:d,targetPosition:h,label:p,labelStyle:m,labelShowBg:y,labelBgStyle:v,labelBgPadding:b,labelBgBorderRadius:S,style:x,markerEnd:A,markerStart:w,interactionWidth:T})=>{const[C,E,N]=JU({sourceX:i,sourceY:s,sourcePosition:d,targetX:l,targetY:f,targetPosition:h}),M=n.isInternal?void 0:a;return fe.jsx(Gh,{id:M,path:C,labelX:E,labelY:N,label:p,labelStyle:m,labelShowBg:y,labelBgStyle:v,labelBgPadding:b,labelBgBorderRadius:S,style:x,markerEnd:A,markerStart:w,interactionWidth:T})})}const oI=KU({isInternal:!1}),WU=KU({isInternal:!0});oI.displayName="SimpleBezierEdge";WU.displayName="SimpleBezierEdgeInternal";function ej(n){return ce.memo(({id:a,sourceX:i,sourceY:s,targetX:l,targetY:f,label:d,labelStyle:h,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:v,style:b,sourcePosition:S=je.Bottom,targetPosition:x=je.Top,markerEnd:A,markerStart:w,pathOptions:T,interactionWidth:C})=>{const[E,N,M]=qS({sourceX:i,sourceY:s,sourcePosition:S,targetX:l,targetY:f,targetPosition:x,borderRadius:T?.borderRadius,offset:T?.offset,stepPosition:T?.stepPosition}),q=n.isInternal?void 0:a;return fe.jsx(Gh,{id:q,path:E,labelX:N,labelY:M,label:d,labelStyle:h,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:v,style:b,markerEnd:A,markerStart:w,interactionWidth:C})})}const tj=ej({isInternal:!1}),nj=ej({isInternal:!0});tj.displayName="SmoothStepEdge";nj.displayName="SmoothStepEdgeInternal";function rj(n){return ce.memo(({id:a,...i})=>{const s=n.isInternal?void 0:a;return fe.jsx(tj,{...i,id:s,pathOptions:ce.useMemo(()=>({borderRadius:0,offset:i.pathOptions?.offset}),[i.pathOptions?.offset])})})}const iI=rj({isInternal:!1}),aj=rj({isInternal:!0});iI.displayName="StepEdge";aj.displayName="StepEdgeInternal";function oj(n){return ce.memo(({id:a,sourceX:i,sourceY:s,targetX:l,targetY:f,label:d,labelStyle:h,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:v,style:b,markerEnd:S,markerStart:x,interactionWidth:A})=>{const[w,T,C]=wU({sourceX:i,sourceY:s,targetX:l,targetY:f}),E=n.isInternal?void 0:a;return fe.jsx(Gh,{id:E,path:w,labelX:T,labelY:C,label:d,labelStyle:h,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:v,style:b,markerEnd:S,markerStart:x,interactionWidth:A})})}const sI=oj({isInternal:!1}),ij=oj({isInternal:!0});sI.displayName="StraightEdge";ij.displayName="StraightEdgeInternal";function sj(n){return ce.memo(({id:a,sourceX:i,sourceY:s,targetX:l,targetY:f,sourcePosition:d=je.Bottom,targetPosition:h=je.Top,label:p,labelStyle:m,labelShowBg:y,labelBgStyle:v,labelBgPadding:b,labelBgBorderRadius:S,style:x,markerEnd:A,markerStart:w,pathOptions:T,interactionWidth:C})=>{const[E,N,M]=xU({sourceX:i,sourceY:s,sourcePosition:d,targetX:l,targetY:f,targetPosition:h,curvature:T?.curvature}),q=n.isInternal?void 0:a;return fe.jsx(Gh,{id:q,path:E,labelX:N,labelY:M,label:p,labelStyle:m,labelShowBg:y,labelBgStyle:v,labelBgPadding:b,labelBgBorderRadius:S,style:x,markerEnd:A,markerStart:w,interactionWidth:C})})}const lI=sj({isInternal:!1}),lj=sj({isInternal:!0});lI.displayName="BezierEdge";lj.displayName="BezierEdgeInternal";const WD={default:lj,straight:ij,step:aj,smoothstep:nj,simplebezier:WU},eC={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},uI=(n,a,i)=>i===je.Left?n-a:i===je.Right?n+a:n,cI=(n,a,i)=>i===je.Top?n-a:i===je.Bottom?n+a:n,tC="react-flow__edgeupdater";function nC({position:n,centerX:a,centerY:i,radius:s=10,onMouseDown:l,onMouseEnter:f,onMouseOut:d,type:h}){return fe.jsx("circle",{onMouseDown:l,onMouseEnter:f,onMouseOut:d,className:It([tC,`${tC}-${h}`]),cx:uI(a,s,n),cy:cI(i,s,n),r:s,stroke:"transparent",fill:"transparent"})}function fI({isReconnectable:n,reconnectRadius:a,edge:i,sourceX:s,sourceY:l,targetX:f,targetY:d,sourcePosition:h,targetPosition:p,onReconnect:m,onReconnectStart:y,onReconnectEnd:v,setReconnecting:b,setUpdateHover:S}){const x=wt(),A=(N,M)=>{if(N.button!==0)return;const{autoPanOnConnect:q,domNode:U,connectionMode:H,connectionRadius:k,lib:G,onConnectStart:V,cancelConnection:X,nodeLookup:ee,rfId:j,panBy:Q,updateConnection:L}=x.getState(),F=M.type==="target",Z=(z,W)=>{b(!1),v?.(z,i,M.type,W)},ne=z=>m?.(i,z),de=(z,W)=>{b(!0),y?.(N,i,M.type),V?.(z,W)};jS.onPointerDown(N.nativeEvent,{autoPanOnConnect:q,connectionMode:H,connectionRadius:k,domNode:U,handleId:M.id,nodeId:M.nodeId,nodeLookup:ee,isTarget:F,edgeUpdaterType:M.type,lib:G,flowId:j,cancelConnection:X,panBy:Q,isValidConnection:(...z)=>x.getState().isValidConnection?.(...z)??!0,onConnect:ne,onConnectStart:de,onConnectEnd:(...z)=>x.getState().onConnectEnd?.(...z),onReconnectEnd:Z,updateConnection:L,getTransform:()=>x.getState().transform,getFromHandle:()=>x.getState().connection.fromHandle,dragThreshold:x.getState().connectionDragThreshold,handleDomNode:N.currentTarget})},w=N=>A(N,{nodeId:i.target,id:i.targetHandle??null,type:"target"}),T=N=>A(N,{nodeId:i.source,id:i.sourceHandle??null,type:"source"}),C=()=>S(!0),E=()=>S(!1);return fe.jsxs(fe.Fragment,{children:[(n===!0||n==="source")&&fe.jsx(nC,{position:h,centerX:s,centerY:l,radius:a,onMouseDown:w,onMouseEnter:C,onMouseOut:E,type:"source"}),(n===!0||n==="target")&&fe.jsx(nC,{position:p,centerX:f,centerY:d,radius:a,onMouseDown:T,onMouseEnter:C,onMouseOut:E,type:"target"})]})}function dI({id:n,edgesFocusable:a,edgesReconnectable:i,elementsSelectable:s,onClick:l,onDoubleClick:f,onContextMenu:d,onMouseEnter:h,onMouseMove:p,onMouseLeave:m,reconnectRadius:y,onReconnect:v,onReconnectStart:b,onReconnectEnd:S,rfId:x,edgeTypes:A,noPanClassName:w,onError:T,disableKeyboardA11y:C}){let E=at(qe=>qe.edgeLookup.get(n));const N=at(qe=>qe.defaultEdgeOptions);E=N?{...N,...E}:E;let M=E.type||"default",q=A?.[M]||WD[M];q===void 0&&(T?.("011",ha.error011(M)),M="default",q=A?.default||WD.default);const U=!!(E.focusable||a&&typeof E.focusable>"u"),H=typeof v<"u"&&(E.reconnectable||i&&typeof E.reconnectable>"u"),k=!!(E.selectable||s&&typeof E.selectable>"u"),G=ce.useRef(null),[V,X]=ce.useState(!1),[ee,j]=ce.useState(!1),Q=wt(),{zIndex:L,sourceX:F,sourceY:Z,targetX:ne,targetY:de,sourcePosition:z,targetPosition:W}=at(ce.useCallback(qe=>{const Re=qe.nodeLookup.get(E.source),Le=qe.nodeLookup.get(E.target);if(!Re||!Le)return{zIndex:E.zIndex,...eC};const Ae=nB({id:n,sourceNode:Re,targetNode:Le,sourceHandle:E.sourceHandle||null,targetHandle:E.targetHandle||null,connectionMode:qe.connectionMode,onError:T});return{zIndex:ZV({selected:E.selected,zIndex:E.zIndex,sourceNode:Re,targetNode:Le,elevateOnSelect:qe.elevateEdgesOnSelect,zIndexMode:qe.zIndexMode}),...Ae||eC}},[E.source,E.target,E.sourceHandle,E.targetHandle,E.selected,E.zIndex]),Et),ge=ce.useMemo(()=>E.markerStart?`url('#${zS(E.markerStart,x)}')`:void 0,[E.markerStart,x]),B=ce.useMemo(()=>E.markerEnd?`url('#${zS(E.markerEnd,x)}')`:void 0,[E.markerEnd,x]);if(E.hidden||F===null||Z===null||ne===null||de===null)return null;const re=qe=>{const{addSelectedEdges:Re,unselectNodesAndEdges:Le,multiSelectionActive:Ae}=Q.getState();k&&(Q.setState({nodesSelectionActive:!1}),E.selected&&Ae?(Le({nodes:[],edges:[E]}),G.current?.blur()):Re([n])),l&&l(qe,E)},ue=f?qe=>{f(qe,{...E})}:void 0,oe=d?qe=>{d(qe,{...E})}:void 0,he=h?qe=>{h(qe,{...E})}:void 0,be=p?qe=>{p(qe,{...E})}:void 0,Te=m?qe=>{m(qe,{...E})}:void 0,me=qe=>{if(!C&&sU.includes(qe.key)&&k){const{unselectNodesAndEdges:Re,addSelectedEdges:Le}=Q.getState();qe.key==="Escape"?(G.current?.blur(),Re({edges:[E]})):Le([n])}};return fe.jsx("svg",{style:{zIndex:L},children:fe.jsxs("g",{className:It(["react-flow__edge",`react-flow__edge-${M}`,E.className,w,{selected:E.selected,animated:E.animated,inactive:!k&&!l,updating:V,selectable:k}]),onClick:re,onDoubleClick:ue,onContextMenu:oe,onMouseEnter:he,onMouseMove:be,onMouseLeave:Te,onKeyDown:U?me:void 0,tabIndex:U?0:void 0,role:E.ariaRole??(U?"group":"img"),"aria-roledescription":"edge","data-id":n,"data-testid":`rf__edge-${n}`,"aria-label":E.ariaLabel===null?void 0:E.ariaLabel||`Edge from ${E.source} to ${E.target}`,"aria-describedby":U?`${kU}-${x}`:void 0,ref:G,...E.domAttributes,children:[!ee&&fe.jsx(q,{id:n,source:E.source,target:E.target,type:E.type,selected:E.selected,animated:E.animated,selectable:k,deletable:E.deletable??!0,label:E.label,labelStyle:E.labelStyle,labelShowBg:E.labelShowBg,labelBgStyle:E.labelBgStyle,labelBgPadding:E.labelBgPadding,labelBgBorderRadius:E.labelBgBorderRadius,sourceX:F,sourceY:Z,targetX:ne,targetY:de,sourcePosition:z,targetPosition:W,data:E.data,style:E.style,sourceHandleId:E.sourceHandle,targetHandleId:E.targetHandle,markerStart:ge,markerEnd:B,pathOptions:"pathOptions"in E?E.pathOptions:void 0,interactionWidth:E.interactionWidth}),H&&fe.jsx(fI,{edge:E,isReconnectable:H,reconnectRadius:y,onReconnect:v,onReconnectStart:b,onReconnectEnd:S,sourceX:F,sourceY:Z,targetX:ne,targetY:de,sourcePosition:z,targetPosition:W,setUpdateHover:X,setReconnecting:j})]})})}var hI=ce.memo(dI);const pI=n=>({edgesFocusable:n.edgesFocusable,edgesReconnectable:n.edgesReconnectable,elementsSelectable:n.elementsSelectable,connectionMode:n.connectionMode,onError:n.onError});function uj({defaultMarkerColor:n,onlyRenderVisibleElements:a,rfId:i,edgeTypes:s,noPanClassName:l,onReconnect:f,onEdgeContextMenu:d,onEdgeMouseEnter:h,onEdgeMouseMove:p,onEdgeMouseLeave:m,onEdgeClick:y,reconnectRadius:v,onEdgeDoubleClick:b,onReconnectStart:S,onReconnectEnd:x,disableKeyboardA11y:A}){const{edgesFocusable:w,edgesReconnectable:T,elementsSelectable:C,onError:E}=at(pI,Et),N=K7(a);return fe.jsxs("div",{className:"react-flow__edges",children:[fe.jsx(rI,{defaultColor:n,rfId:i}),N.map(M=>fe.jsx(hI,{id:M,edgesFocusable:w,edgesReconnectable:T,elementsSelectable:C,noPanClassName:l,onReconnect:f,onContextMenu:d,onMouseEnter:h,onMouseMove:p,onMouseLeave:m,onClick:y,reconnectRadius:v,onDoubleClick:b,onReconnectStart:S,onReconnectEnd:x,rfId:i,onError:E,edgeTypes:s,disableKeyboardA11y:A},M))]})}uj.displayName="EdgeRenderer";const mI=ce.memo(uj),gI=n=>`translate(${n.transform[0]}px,${n.transform[1]}px) scale(${n.transform[2]})`;function yI({children:n}){const a=at(gI);return fe.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:a},children:n})}function vI(n){const a=tx(),i=ce.useRef(!1);ce.useEffect(()=>{!i.current&&a.viewportInitialized&&n&&(setTimeout(()=>n(a),1),i.current=!0)},[n,a.viewportInitialized])}const bI=n=>n.panZoom?.syncViewport;function _I(n){const a=at(bI),i=wt();return ce.useEffect(()=>{n&&(a?.(n),i.setState({transform:[n.x,n.y,n.zoom]}))},[n,a]),null}function SI(n){return n.connection.inProgress?{...n.connection,to:wc(n.connection.to,n.transform)}:{...n.connection}}function xI(n){return SI}function EI(n){const a=xI();return at(a,Et)}const wI=n=>({nodesConnectable:n.nodesConnectable,isValid:n.connection.isValid,inProgress:n.connection.inProgress,width:n.width,height:n.height});function TI({containerStyle:n,style:a,type:i,component:s}){const{nodesConnectable:l,width:f,height:d,isValid:h,inProgress:p}=at(wI,Et);return!(f&&l&&p)?null:fe.jsx("svg",{style:n,width:f,height:d,className:"react-flow__connectionline react-flow__container",children:fe.jsx("g",{className:It(["react-flow__connection",cU(h)]),children:fe.jsx(cj,{style:a,type:i,CustomComponent:s,isValid:h})})})}const cj=({style:n,type:a=$o.Bezier,CustomComponent:i,isValid:s})=>{const{inProgress:l,from:f,fromNode:d,fromHandle:h,fromPosition:p,to:m,toNode:y,toHandle:v,toPosition:b,pointer:S}=EI();if(!l)return;if(i)return fe.jsx(i,{connectionLineType:a,connectionLineStyle:n,fromNode:d,fromHandle:h,fromX:f.x,fromY:f.y,toX:m.x,toY:m.y,fromPosition:p,toPosition:b,connectionStatus:cU(s),toNode:y,toHandle:v,pointer:S});let x="";const A={sourceX:f.x,sourceY:f.y,sourcePosition:p,targetX:m.x,targetY:m.y,targetPosition:b};switch(a){case $o.Bezier:[x]=xU(A);break;case $o.SimpleBezier:[x]=JU(A);break;case $o.Step:[x]=qS({...A,borderRadius:0});break;case $o.SmoothStep:[x]=qS(A);break;default:[x]=wU(A)}return fe.jsx("path",{d:x,fill:"none",className:"react-flow__connection-path",style:n})};cj.displayName="ConnectionLine";const RI={};function rC(n=RI){ce.useRef(n),wt(),ce.useEffect(()=>{},[n])}function AI(){wt(),ce.useRef(!1),ce.useEffect(()=>{},[])}function fj({nodeTypes:n,edgeTypes:a,onInit:i,onNodeClick:s,onEdgeClick:l,onNodeDoubleClick:f,onEdgeDoubleClick:d,onNodeMouseEnter:h,onNodeMouseMove:p,onNodeMouseLeave:m,onNodeContextMenu:y,onSelectionContextMenu:v,onSelectionStart:b,onSelectionEnd:S,connectionLineType:x,connectionLineStyle:A,connectionLineComponent:w,connectionLineContainerStyle:T,selectionKeyCode:C,selectionOnDrag:E,selectionMode:N,multiSelectionKeyCode:M,panActivationKeyCode:q,zoomActivationKeyCode:U,deleteKeyCode:H,onlyRenderVisibleElements:k,elementsSelectable:G,defaultViewport:V,translateExtent:X,minZoom:ee,maxZoom:j,preventScrolling:Q,defaultMarkerColor:L,zoomOnScroll:F,zoomOnPinch:Z,panOnScroll:ne,panOnScrollSpeed:de,panOnScrollMode:z,zoomOnDoubleClick:W,panOnDrag:ge,onPaneClick:B,onPaneMouseEnter:re,onPaneMouseMove:ue,onPaneMouseLeave:oe,onPaneScroll:he,onPaneContextMenu:be,paneClickDistance:Te,nodeClickDistance:me,onEdgeContextMenu:qe,onEdgeMouseEnter:Re,onEdgeMouseMove:Le,onEdgeMouseLeave:Ae,reconnectRadius:De,onReconnect:Ne,onReconnectStart:Nt,onReconnectEnd:qt,noDragClassName:we,noWheelClassName:en,noPanClassName:vt,disableKeyboardA11y:ut,nodeExtent:tn,rfId:wn,viewport:Tn,onViewportChange:Rn}){return rC(n),rC(a),AI(),vI(i),_I(Tn),fe.jsx(I7,{onPaneClick:B,onPaneMouseEnter:re,onPaneMouseMove:ue,onPaneMouseLeave:oe,onPaneContextMenu:be,onPaneScroll:he,paneClickDistance:Te,deleteKeyCode:H,selectionKeyCode:C,selectionOnDrag:E,selectionMode:N,onSelectionStart:b,onSelectionEnd:S,multiSelectionKeyCode:M,panActivationKeyCode:q,zoomActivationKeyCode:U,elementsSelectable:G,zoomOnScroll:F,zoomOnPinch:Z,zoomOnDoubleClick:W,panOnScroll:ne,panOnScrollSpeed:de,panOnScrollMode:z,panOnDrag:ge,defaultViewport:V,translateExtent:X,minZoom:ee,maxZoom:j,onSelectionContextMenu:v,preventScrolling:Q,noDragClassName:we,noWheelClassName:en,noPanClassName:vt,disableKeyboardA11y:ut,onViewportChange:Rn,isControlledViewport:!!Tn,children:fe.jsxs(yI,{children:[fe.jsx(mI,{edgeTypes:a,onEdgeClick:l,onEdgeDoubleClick:d,onReconnect:Ne,onReconnectStart:Nt,onReconnectEnd:qt,onlyRenderVisibleElements:k,onEdgeContextMenu:qe,onEdgeMouseEnter:Re,onEdgeMouseMove:Le,onEdgeMouseLeave:Ae,reconnectRadius:De,defaultMarkerColor:L,noPanClassName:vt,disableKeyboardA11y:ut,rfId:wn}),fe.jsx(TI,{style:A,type:x,component:w,containerStyle:T}),fe.jsx("div",{className:"react-flow__edgelabel-renderer"}),fe.jsx(J7,{nodeTypes:n,onNodeClick:s,onNodeDoubleClick:f,onNodeMouseEnter:h,onNodeMouseMove:p,onNodeMouseLeave:m,onNodeContextMenu:y,nodeClickDistance:me,onlyRenderVisibleElements:k,noPanClassName:vt,noDragClassName:we,disableKeyboardA11y:ut,nodeExtent:tn,rfId:wn}),fe.jsx("div",{className:"react-flow__viewport-portal"})]})})}fj.displayName="GraphView";const NI=ce.memo(fj),aC=({nodes:n,edges:a,defaultNodes:i,defaultEdges:s,width:l,height:f,fitView:d,fitViewOptions:h,minZoom:p=.5,maxZoom:m=2,nodeOrigin:y,nodeExtent:v,zIndexMode:b="basic"}={})=>{const S=new Map,x=new Map,A=new Map,w=new Map,T=s??a??[],C=i??n??[],E=y??[0,0],N=v??pc;AU(A,w,T);const{nodesInitialized:M}=US(C,S,x,{nodeOrigin:E,nodeExtent:N,zIndexMode:b});let q=[0,0,1];if(d&&l&&f){const U=xc(S,{filter:V=>!!((V.width||V.initialWidth)&&(V.height||V.initialHeight))}),{x:H,y:k,zoom:G}=ZS(U,l,f,p,m,h?.padding??.1);q=[H,k,G]}return{rfId:"1",width:l??0,height:f??0,transform:q,nodes:C,nodesInitialized:M,nodeLookup:S,parentLookup:x,edges:T,edgeLookup:w,connectionLookup:A,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:i!==void 0,hasDefaultEdges:s!==void 0,panZoom:null,minZoom:p,maxZoom:m,translateExtent:pc,nodeExtent:N,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:ll.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:E,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:d??!1,fitViewOptions:h,fitViewResolver:null,connection:{...uU},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:IV,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:lU,zIndexMode:b,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},DI=({nodes:n,edges:a,defaultNodes:i,defaultEdges:s,width:l,height:f,fitView:d,fitViewOptions:h,minZoom:p,maxZoom:m,nodeOrigin:y,nodeExtent:v,zIndexMode:b})=>XB((S,x)=>{async function A(){const{nodeLookup:w,panZoom:T,fitViewOptions:C,fitViewResolver:E,width:N,height:M,minZoom:q,maxZoom:U}=x();T&&(await VV({nodes:w,width:N,height:M,panZoom:T,minZoom:q,maxZoom:U},C),E?.resolve(!0),S({fitViewResolver:null}))}return{...aC({nodes:n,edges:a,width:l,height:f,fitView:d,fitViewOptions:h,minZoom:p,maxZoom:m,nodeOrigin:y,nodeExtent:v,defaultNodes:i,defaultEdges:s,zIndexMode:b}),setNodes:w=>{const{nodeLookup:T,parentLookup:C,nodeOrigin:E,elevateNodesOnSelect:N,fitViewQueued:M,zIndexMode:q,nodesSelectionActive:U}=x(),{nodesInitialized:H,hasSelectedNodes:k}=US(w,T,C,{nodeOrigin:E,nodeExtent:v,elevateNodesOnSelect:N,checkEquality:!0,zIndexMode:q}),G=U&&k;M&&H?(A(),S({nodes:w,nodesInitialized:H,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:G})):S({nodes:w,nodesInitialized:H,nodesSelectionActive:G})},setEdges:w=>{const{connectionLookup:T,edgeLookup:C}=x();AU(T,C,w),S({edges:w})},setDefaultNodesAndEdges:(w,T)=>{if(w){const{setNodes:C}=x();C(w),S({hasDefaultNodes:!0})}if(T){const{setEdges:C}=x();C(T),S({hasDefaultEdges:!0})}},updateNodeInternals:w=>{const{triggerNodeChanges:T,nodeLookup:C,parentLookup:E,domNode:N,nodeOrigin:M,nodeExtent:q,debug:U,fitViewQueued:H,zIndexMode:k}=x(),{changes:G,updatedInternals:V}=cB(w,C,E,N,M,q,k);V&&(iB(C,E,{nodeOrigin:M,nodeExtent:q,zIndexMode:k}),H?(A(),S({fitViewQueued:!1,fitViewOptions:void 0})):S({}),G?.length>0&&(U&&console.log("React Flow: trigger node changes",G),T?.(G)))},updateNodePositions:(w,T=!1)=>{const C=[];let E=[];const{nodeLookup:N,triggerNodeChanges:M,connection:q,updateConnection:U,onNodesChangeMiddlewareMap:H}=x();for(const[k,G]of w){const V=N.get(k),X=!!(V?.expandParent&&V?.parentId&&G?.position),ee={id:k,type:"position",position:X?{x:Math.max(0,G.position.x),y:Math.max(0,G.position.y)}:G.position,dragging:T};if(V&&q.inProgress&&q.fromNode.id===V.id){const j=Gi(V,q.fromHandle,je.Left,!0);U({...q,from:j})}X&&V.parentId&&C.push({id:k,parentId:V.parentId,rect:{...G.internals.positionAbsolute,width:G.measured.width??0,height:G.measured.height??0}}),E.push(ee)}if(C.length>0){const{parentLookup:k,nodeOrigin:G}=x(),V=ex(C,N,k,G);E.push(...V)}for(const k of H.values())E=k(E);M(E)},triggerNodeChanges:w=>{const{onNodesChange:T,setNodes:C,nodes:E,hasDefaultNodes:N,debug:M}=x();if(w?.length){if(N){const q=h7(w,E);C(q)}M&&console.log("React Flow: trigger node changes",w),T?.(w)}},triggerEdgeChanges:w=>{const{onEdgesChange:T,setEdges:C,edges:E,hasDefaultEdges:N,debug:M}=x();if(w?.length){if(N){const q=p7(w,E);C(q)}M&&console.log("React Flow: trigger edge changes",w),T?.(w)}},addSelectedNodes:w=>{const{multiSelectionActive:T,edgeLookup:C,nodeLookup:E,triggerNodeChanges:N,triggerEdgeChanges:M}=x();if(T){const q=w.map(U=>ji(U,!0));N(q);return}N(rl(E,new Set([...w]),!0)),M(rl(C))},addSelectedEdges:w=>{const{multiSelectionActive:T,edgeLookup:C,nodeLookup:E,triggerNodeChanges:N,triggerEdgeChanges:M}=x();if(T){const q=w.map(U=>ji(U,!0));M(q);return}M(rl(C,new Set([...w]))),N(rl(E,new Set,!0))},unselectNodesAndEdges:({nodes:w,edges:T}={})=>{const{edges:C,nodes:E,nodeLookup:N,triggerNodeChanges:M,triggerEdgeChanges:q}=x(),U=w||E,H=T||C,k=[];for(const V of U){if(!V.selected)continue;const X=N.get(V.id);X&&(X.selected=!1),k.push(ji(V.id,!1))}const G=[];for(const V of H)V.selected&&G.push(ji(V.id,!1));M(k),q(G)},setMinZoom:w=>{const{panZoom:T,maxZoom:C}=x();T?.setScaleExtent([w,C]),S({minZoom:w})},setMaxZoom:w=>{const{panZoom:T,minZoom:C}=x();T?.setScaleExtent([C,w]),S({maxZoom:w})},setTranslateExtent:w=>{x().panZoom?.setTranslateExtent(w),S({translateExtent:w})},resetSelectedElements:()=>{const{edges:w,nodes:T,triggerNodeChanges:C,triggerEdgeChanges:E,elementsSelectable:N}=x();if(!N)return;const M=T.reduce((U,H)=>H.selected?[...U,ji(H.id,!1)]:U,[]),q=w.reduce((U,H)=>H.selected?[...U,ji(H.id,!1)]:U,[]);C(M),E(q)},setNodeExtent:w=>{const{nodes:T,nodeLookup:C,parentLookup:E,nodeOrigin:N,elevateNodesOnSelect:M,nodeExtent:q,zIndexMode:U}=x();w[0][0]===q[0][0]&&w[0][1]===q[0][1]&&w[1][0]===q[1][0]&&w[1][1]===q[1][1]||(US(T,C,E,{nodeOrigin:N,nodeExtent:w,elevateNodesOnSelect:M,checkEquality:!1,zIndexMode:U}),S({nodeExtent:w}))},panBy:w=>{const{transform:T,width:C,height:E,panZoom:N,translateExtent:M}=x();return fB({delta:w,panZoom:N,transform:T,translateExtent:M,width:C,height:E})},setCenter:async(w,T,C)=>{const{width:E,height:N,maxZoom:M,panZoom:q}=x();if(!q)return Promise.resolve(!1);const U=typeof C?.zoom<"u"?C.zoom:M;return await q.setViewport({x:E/2-w*U,y:N/2-T*U,zoom:U},{duration:C?.duration,ease:C?.ease,interpolate:C?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{S({connection:{...uU}})},updateConnection:w=>{S({connection:w})},reset:()=>S({...aC()})}},Object.is);function CI({initialNodes:n,initialEdges:a,defaultNodes:i,defaultEdges:s,initialWidth:l,initialHeight:f,initialMinZoom:d,initialMaxZoom:h,initialFitViewOptions:p,fitView:m,nodeOrigin:y,nodeExtent:v,zIndexMode:b,children:S}){const[x]=ce.useState(()=>DI({nodes:n,edges:a,defaultNodes:i,defaultEdges:s,width:l,height:f,fitView:m,minZoom:d,maxZoom:h,fitViewOptions:p,nodeOrigin:y,nodeExtent:v,zIndexMode:b}));return fe.jsx(PB,{value:x,children:fe.jsx(y7,{children:S})})}function OI({children:n,nodes:a,edges:i,defaultNodes:s,defaultEdges:l,width:f,height:d,fitView:h,fitViewOptions:p,minZoom:m,maxZoom:y,nodeOrigin:v,nodeExtent:b,zIndexMode:S}){return ce.useContext(Vh)?fe.jsx(fe.Fragment,{children:n}):fe.jsx(CI,{initialNodes:a,initialEdges:i,defaultNodes:s,defaultEdges:l,initialWidth:f,initialHeight:d,fitView:h,initialFitViewOptions:p,initialMinZoom:m,initialMaxZoom:y,nodeOrigin:v,nodeExtent:b,zIndexMode:S,children:n})}const MI={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function qI({nodes:n,edges:a,defaultNodes:i,defaultEdges:s,className:l,nodeTypes:f,edgeTypes:d,onNodeClick:h,onEdgeClick:p,onInit:m,onMove:y,onMoveStart:v,onMoveEnd:b,onConnect:S,onConnectStart:x,onConnectEnd:A,onClickConnectStart:w,onClickConnectEnd:T,onNodeMouseEnter:C,onNodeMouseMove:E,onNodeMouseLeave:N,onNodeContextMenu:M,onNodeDoubleClick:q,onNodeDragStart:U,onNodeDrag:H,onNodeDragStop:k,onNodesDelete:G,onEdgesDelete:V,onDelete:X,onSelectionChange:ee,onSelectionDragStart:j,onSelectionDrag:Q,onSelectionDragStop:L,onSelectionContextMenu:F,onSelectionStart:Z,onSelectionEnd:ne,onBeforeDelete:de,connectionMode:z,connectionLineType:W=$o.Bezier,connectionLineStyle:ge,connectionLineComponent:B,connectionLineContainerStyle:re,deleteKeyCode:ue="Backspace",selectionKeyCode:oe="Shift",selectionOnDrag:he=!1,selectionMode:be=mc.Full,panActivationKeyCode:Te="Space",multiSelectionKeyCode:me=yc()?"Meta":"Control",zoomActivationKeyCode:qe=yc()?"Meta":"Control",snapToGrid:Re,snapGrid:Le,onlyRenderVisibleElements:Ae=!1,selectNodesOnDrag:De,nodesDraggable:Ne,autoPanOnNodeFocus:Nt,nodesConnectable:qt,nodesFocusable:we,nodeOrigin:en=VU,edgesFocusable:vt,edgesReconnectable:ut,elementsSelectable:tn=!0,defaultViewport:wn=i7,minZoom:Tn=.5,maxZoom:Rn=2,translateExtent:Zt=pc,preventScrolling:ga=!0,nodeExtent:Wn,defaultMarkerColor:ya="#b1b1b7",zoomOnScroll:er=!0,zoomOnPinch:Yt=!0,panOnScroll:nn=!1,panOnScrollSpeed:Ja=.5,panOnScrollMode:Ka=ki.Free,zoomOnDoubleClick:Lr=!0,panOnDrag:O=!0,onPaneClick:te,onPaneMouseEnter:ye,onPaneMouseMove:_e,onPaneMouseLeave:Ce,onPaneScroll:Ie,onPaneContextMenu:Me,paneClickDistance:Ke=1,nodeClickDistance:Ge=0,children:rn,onReconnect:tr,onReconnectStart:Qi,onReconnectEnd:Wa,onEdgeContextMenu:Fi,onEdgeDoubleClick:vr,onEdgeMouseEnter:An,onEdgeMouseMove:Cc,onEdgeMouseLeave:sp,reconnectRadius:vl=10,onNodesChange:Oc,onEdgesChange:Ji,noDragClassName:Nn="nodrag",noWheelClassName:Mc="nowheel",noPanClassName:Ki="nopan",fitView:bl,fitViewOptions:Wi,connectOnClick:qc,attributionPosition:zc,proOptions:eo,defaultEdgeOptions:Uc,elevateNodesOnSelect:jc=!0,elevateEdgesOnSelect:Lc=!1,disableKeyboardA11y:_l=!1,autoPanOnConnect:Hc,autoPanOnNodeDrag:pn,autoPanSpeed:to,connectionRadius:va,isValidConnection:kc,onError:Zo,style:es,id:ts,nodeDragThreshold:Qo,connectionDragThreshold:no,viewport:Sl,onViewportChange:lp,width:up,height:Vc,colorMode:xl="light",debug:El,onScroll:wl,ariaLabelConfig:Bc,zIndexMode:Tl="basic",...cp},Ic){const Fo=ts||"1",ns=c7(xl),Jo=ce.useCallback(Gc=>{Gc.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),wl?.(Gc)},[wl]);return fe.jsx("div",{"data-testid":"rf__wrapper",...cp,onScroll:Jo,style:{...es,...MI},ref:Ic,className:It(["react-flow",l,ns]),id:ts,role:"application",children:fe.jsxs(OI,{nodes:n,edges:a,width:up,height:Vc,fitView:bl,fitViewOptions:Wi,minZoom:Tn,maxZoom:Rn,nodeOrigin:en,nodeExtent:Wn,zIndexMode:Tl,children:[fe.jsx(u7,{nodes:n,edges:a,defaultNodes:i,defaultEdges:s,onConnect:S,onConnectStart:x,onConnectEnd:A,onClickConnectStart:w,onClickConnectEnd:T,nodesDraggable:Ne,autoPanOnNodeFocus:Nt,nodesConnectable:qt,nodesFocusable:we,edgesFocusable:vt,edgesReconnectable:ut,elementsSelectable:tn,elevateNodesOnSelect:jc,elevateEdgesOnSelect:Lc,minZoom:Tn,maxZoom:Rn,nodeExtent:Wn,onNodesChange:Oc,onEdgesChange:Ji,snapToGrid:Re,snapGrid:Le,connectionMode:z,translateExtent:Zt,connectOnClick:qc,defaultEdgeOptions:Uc,fitView:bl,fitViewOptions:Wi,onNodesDelete:G,onEdgesDelete:V,onDelete:X,onNodeDragStart:U,onNodeDrag:H,onNodeDragStop:k,onSelectionDrag:Q,onSelectionDragStart:j,onSelectionDragStop:L,onMove:y,onMoveStart:v,onMoveEnd:b,noPanClassName:Ki,nodeOrigin:en,rfId:Fo,autoPanOnConnect:Hc,autoPanOnNodeDrag:pn,autoPanSpeed:to,onError:Zo,connectionRadius:va,isValidConnection:kc,selectNodesOnDrag:De,nodeDragThreshold:Qo,connectionDragThreshold:no,onBeforeDelete:de,debug:El,ariaLabelConfig:Bc,zIndexMode:Tl}),fe.jsx(NI,{onInit:m,onNodeClick:h,onEdgeClick:p,onNodeMouseEnter:C,onNodeMouseMove:E,onNodeMouseLeave:N,onNodeContextMenu:M,onNodeDoubleClick:q,nodeTypes:f,edgeTypes:d,connectionLineType:W,connectionLineStyle:ge,connectionLineComponent:B,connectionLineContainerStyle:re,selectionKeyCode:oe,selectionOnDrag:he,selectionMode:be,deleteKeyCode:ue,multiSelectionKeyCode:me,panActivationKeyCode:Te,zoomActivationKeyCode:qe,onlyRenderVisibleElements:Ae,defaultViewport:wn,translateExtent:Zt,minZoom:Tn,maxZoom:Rn,preventScrolling:ga,zoomOnScroll:er,zoomOnPinch:Yt,zoomOnDoubleClick:Lr,panOnScroll:nn,panOnScrollSpeed:Ja,panOnScrollMode:Ka,panOnDrag:O,onPaneClick:te,onPaneMouseEnter:ye,onPaneMouseMove:_e,onPaneMouseLeave:Ce,onPaneScroll:Ie,onPaneContextMenu:Me,paneClickDistance:Ke,nodeClickDistance:Ge,onSelectionContextMenu:F,onSelectionStart:Z,onSelectionEnd:ne,onReconnect:tr,onReconnectStart:Qi,onReconnectEnd:Wa,onEdgeContextMenu:Fi,onEdgeDoubleClick:vr,onEdgeMouseEnter:An,onEdgeMouseMove:Cc,onEdgeMouseLeave:sp,reconnectRadius:vl,defaultMarkerColor:ya,noDragClassName:Nn,noWheelClassName:Mc,noPanClassName:Ki,rfId:Fo,disableKeyboardA11y:_l,nodeExtent:Wn,viewport:Sl,onViewportChange:lp}),fe.jsx(o7,{onSelectionChange:ee}),rn,fe.jsx(e7,{proOptions:eo,position:zc}),fe.jsx(WB,{rfId:Fo,disableKeyboardA11y:_l})]})})}var zI=IU(qI);function UI({dimensions:n,lineWidth:a,variant:i,className:s}){return fe.jsx("path",{strokeWidth:a,d:`M${n[0]/2} 0 V${n[1]} M0 ${n[1]/2} H${n[0]}`,className:It(["react-flow__background-pattern",i,s])})}function jI({radius:n,className:a}){return fe.jsx("circle",{cx:n,cy:n,r:n,className:It(["react-flow__background-pattern","dots",a])})}var Xo;(function(n){n.Lines="lines",n.Dots="dots",n.Cross="cross"})(Xo||(Xo={}));const LI={[Xo.Dots]:1,[Xo.Lines]:1,[Xo.Cross]:6},HI=n=>({transform:n.transform,patternId:`pattern-${n.rfId}`});function dj({id:n,variant:a=Xo.Dots,gap:i=20,size:s,lineWidth:l=1,offset:f=0,color:d,bgColor:h,style:p,className:m,patternClassName:y}){const v=ce.useRef(null),{transform:b,patternId:S}=at(HI,Et),x=s||LI[a],A=a===Xo.Dots,w=a===Xo.Cross,T=Array.isArray(i)?i:[i,i],C=[T[0]*b[2]||1,T[1]*b[2]||1],E=x*b[2],N=Array.isArray(f)?f:[f,f],M=w?[E,E]:C,q=[N[0]*b[2]||1+M[0]/2,N[1]*b[2]||1+M[1]/2],U=`${S}${n||""}`;return fe.jsxs("svg",{className:It(["react-flow__background",m]),style:{...p,...Ih,"--xy-background-color-props":h,"--xy-background-pattern-color-props":d},ref:v,"data-testid":"rf__background",children:[fe.jsx("pattern",{id:U,x:b[0]%C[0],y:b[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${q[0]},-${q[1]})`,children:A?fe.jsx(jI,{radius:E/2,className:y}):fe.jsx(UI,{dimensions:M,lineWidth:l,variant:a,className:y})}),fe.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${U})`})]})}dj.displayName="Background";const kI=ce.memo(dj);function VI(){return fe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:fe.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function BI(){return fe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:fe.jsx("path",{d:"M0 0h32v4.2H0z"})})}function II(){return fe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:fe.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function GI(){return fe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:fe.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function YI(){return fe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:fe.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function ch({children:n,className:a,...i}){return fe.jsx("button",{type:"button",className:It(["react-flow__controls-button",a]),...i,children:n})}const $I=n=>({isInteractive:n.nodesDraggable||n.nodesConnectable||n.elementsSelectable,minZoomReached:n.transform[2]<=n.minZoom,maxZoomReached:n.transform[2]>=n.maxZoom,ariaLabelConfig:n.ariaLabelConfig});function hj({style:n,showZoom:a=!0,showFitView:i=!0,showInteractive:s=!0,fitViewOptions:l,onZoomIn:f,onZoomOut:d,onFitView:h,onInteractiveChange:p,className:m,children:y,position:v="bottom-left",orientation:b="vertical","aria-label":S}){const x=wt(),{isInteractive:A,minZoomReached:w,maxZoomReached:T,ariaLabelConfig:C}=at($I,Et),{zoomIn:E,zoomOut:N,fitView:M}=tx(),q=()=>{E(),f?.()},U=()=>{N(),d?.()},H=()=>{M(l),h?.()},k=()=>{x.setState({nodesDraggable:!A,nodesConnectable:!A,elementsSelectable:!A}),p?.(!A)},G=b==="horizontal"?"horizontal":"vertical";return fe.jsxs(Bh,{className:It(["react-flow__controls",G,m]),position:v,style:n,"data-testid":"rf__controls","aria-label":S??C["controls.ariaLabel"],children:[a&&fe.jsxs(fe.Fragment,{children:[fe.jsx(ch,{onClick:q,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:T,children:fe.jsx(VI,{})}),fe.jsx(ch,{onClick:U,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:w,children:fe.jsx(BI,{})})]}),i&&fe.jsx(ch,{className:"react-flow__controls-fitview",onClick:H,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:fe.jsx(II,{})}),s&&fe.jsx(ch,{className:"react-flow__controls-interactive",onClick:k,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:A?fe.jsx(YI,{}):fe.jsx(GI,{})}),y]})}hj.displayName="Controls";const XI=ce.memo(hj);function PI({id:n,x:a,y:i,width:s,height:l,style:f,color:d,strokeColor:h,strokeWidth:p,className:m,borderRadius:y,shapeRendering:v,selected:b,onClick:S}){const{background:x,backgroundColor:A}=f||{},w=d||x||A;return fe.jsx("rect",{className:It(["react-flow__minimap-node",{selected:b},m]),x:a,y:i,rx:y,ry:y,width:s,height:l,style:{fill:w,stroke:h,strokeWidth:p},shapeRendering:v,onClick:S?T=>S(T,n):void 0})}const ZI=ce.memo(PI),QI=n=>n.nodes.map(a=>a.id),rv=n=>n instanceof Function?n:()=>n;function FI({nodeStrokeColor:n,nodeColor:a,nodeClassName:i="",nodeBorderRadius:s=5,nodeStrokeWidth:l,nodeComponent:f=ZI,onClick:d}){const h=at(QI,Et),p=rv(a),m=rv(n),y=rv(i),v=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return fe.jsx(fe.Fragment,{children:h.map(b=>fe.jsx(KI,{id:b,nodeColorFunc:p,nodeStrokeColorFunc:m,nodeClassNameFunc:y,nodeBorderRadius:s,nodeStrokeWidth:l,NodeComponent:f,onClick:d,shapeRendering:v},b))})}function JI({id:n,nodeColorFunc:a,nodeStrokeColorFunc:i,nodeClassNameFunc:s,nodeBorderRadius:l,nodeStrokeWidth:f,shapeRendering:d,NodeComponent:h,onClick:p}){const{node:m,x:y,y:v,width:b,height:S}=at(x=>{const A=x.nodeLookup.get(n);if(!A)return{node:void 0,x:0,y:0,width:0,height:0};const w=A.internals.userNode,{x:T,y:C}=A.internals.positionAbsolute,{width:E,height:N}=Za(w);return{node:w,x:T,y:C,width:E,height:N}},Et);return!m||m.hidden||!gU(m)?null:fe.jsx(h,{x:y,y:v,width:b,height:S,style:m.style,selected:!!m.selected,className:s(m),color:a(m),borderRadius:l,strokeColor:i(m),strokeWidth:f,shapeRendering:d,onClick:p,id:m.id})}const KI=ce.memo(JI);var WI=ce.memo(FI);const e9=200,t9=150,n9=n=>!n.hidden,r9=n=>{const a={x:-n.transform[0]/n.transform[2],y:-n.transform[1]/n.transform[2],width:n.width/n.transform[2],height:n.height/n.transform[2]};return{viewBB:a,boundingRect:n.nodeLookup.size>0?mU(xc(n.nodeLookup,{filter:n9}),a):a,rfId:n.rfId,panZoom:n.panZoom,translateExtent:n.translateExtent,flowWidth:n.width,flowHeight:n.height,ariaLabelConfig:n.ariaLabelConfig}},a9="react-flow__minimap-desc";function pj({style:n,className:a,nodeStrokeColor:i,nodeColor:s,nodeClassName:l="",nodeBorderRadius:f=5,nodeStrokeWidth:d,nodeComponent:h,bgColor:p,maskColor:m,maskStrokeColor:y,maskStrokeWidth:v,position:b="bottom-right",onClick:S,onNodeClick:x,pannable:A=!1,zoomable:w=!1,ariaLabel:T,inversePan:C,zoomStep:E=1,offsetScale:N=5}){const M=wt(),q=ce.useRef(null),{boundingRect:U,viewBB:H,rfId:k,panZoom:G,translateExtent:V,flowWidth:X,flowHeight:ee,ariaLabelConfig:j}=at(r9,Et),Q=n?.width??e9,L=n?.height??t9,F=U.width/Q,Z=U.height/L,ne=Math.max(F,Z),de=ne*Q,z=ne*L,W=N*ne,ge=U.x-(de-U.width)/2-W,B=U.y-(z-U.height)/2-W,re=de+W*2,ue=z+W*2,oe=`${a9}-${k}`,he=ce.useRef(0),be=ce.useRef();he.current=ne,ce.useEffect(()=>{if(q.current&&G)return be.current=_B({domNode:q.current,panZoom:G,getTransform:()=>M.getState().transform,getViewScale:()=>he.current}),()=>{be.current?.destroy()}},[G]),ce.useEffect(()=>{be.current?.update({translateExtent:V,width:X,height:ee,inversePan:C,pannable:A,zoomStep:E,zoomable:w})},[A,w,C,E,V,X,ee]);const Te=S?Re=>{const[Le,Ae]=be.current?.pointer(Re)||[0,0];S(Re,{x:Le,y:Ae})}:void 0,me=x?ce.useCallback((Re,Le)=>{const Ae=M.getState().nodeLookup.get(Le).internals.userNode;x(Re,Ae)},[]):void 0,qe=T??j["minimap.ariaLabel"];return fe.jsx(Bh,{position:b,style:{...n,"--xy-minimap-background-color-props":typeof p=="string"?p:void 0,"--xy-minimap-mask-background-color-props":typeof m=="string"?m:void 0,"--xy-minimap-mask-stroke-color-props":typeof y=="string"?y:void 0,"--xy-minimap-mask-stroke-width-props":typeof v=="number"?v*ne:void 0,"--xy-minimap-node-background-color-props":typeof s=="string"?s:void 0,"--xy-minimap-node-stroke-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-width-props":typeof d=="number"?d:void 0},className:It(["react-flow__minimap",a]),"data-testid":"rf__minimap",children:fe.jsxs("svg",{width:Q,height:L,viewBox:`${ge} ${B} ${re} ${ue}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":oe,ref:q,onClick:Te,children:[qe&&fe.jsx("title",{id:oe,children:qe}),fe.jsx(WI,{onClick:me,nodeColor:s,nodeStrokeColor:i,nodeBorderRadius:f,nodeClassName:l,nodeStrokeWidth:d,nodeComponent:h}),fe.jsx("path",{className:"react-flow__minimap-mask",d:`M${ge-W},${B-W}h${re+W*2}v${ue+W*2}h${-re-W*2}z
246
+ M${H.x},${H.y}h${H.width}v${H.height}h${-H.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}pj.displayName="MiniMap";const o9=ce.memo(pj),i9=n=>a=>n?`${Math.max(1/a.transform[2],1)}`:void 0,s9={[dl.Line]:"right",[dl.Handle]:"bottom-right"};function l9({nodeId:n,position:a,variant:i=dl.Handle,className:s,style:l=void 0,children:f,color:d,minWidth:h=10,minHeight:p=10,maxWidth:m=Number.MAX_VALUE,maxHeight:y=Number.MAX_VALUE,keepAspectRatio:v=!1,resizeDirection:b,autoScale:S=!0,shouldResize:x,onResizeStart:A,onResize:w,onResizeEnd:T}){const C=XU(),E=typeof n=="string"?n:C,N=wt(),M=ce.useRef(null),q=i===dl.Handle,U=at(ce.useCallback(i9(q&&S),[q,S]),Et),H=ce.useRef(null),k=a??s9[i];ce.useEffect(()=>{if(!(!M.current||!E))return H.current||(H.current=zB({domNode:M.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:V,transform:X,snapGrid:ee,snapToGrid:j,nodeOrigin:Q,domNode:L}=N.getState();return{nodeLookup:V,transform:X,snapGrid:ee,snapToGrid:j,nodeOrigin:Q,paneDomNode:L}},onChange:(V,X)=>{const{triggerNodeChanges:ee,nodeLookup:j,parentLookup:Q,nodeOrigin:L}=N.getState(),F=[],Z={x:V.x,y:V.y},ne=j.get(E);if(ne&&ne.expandParent&&ne.parentId){const de=ne.origin??L,z=V.width??ne.measured.width??0,W=V.height??ne.measured.height??0,ge={id:ne.id,parentId:ne.parentId,rect:{width:z,height:W,...yU({x:V.x??ne.position.x,y:V.y??ne.position.y},{width:z,height:W},ne.parentId,j,de)}},B=ex([ge],j,Q,L);F.push(...B),Z.x=V.x?Math.max(de[0]*z,V.x):void 0,Z.y=V.y?Math.max(de[1]*W,V.y):void 0}if(Z.x!==void 0&&Z.y!==void 0){const de={id:E,type:"position",position:{...Z}};F.push(de)}if(V.width!==void 0&&V.height!==void 0){const z={id:E,type:"dimensions",resizing:!0,setAttributes:b?b==="horizontal"?"width":"height":!0,dimensions:{width:V.width,height:V.height}};F.push(z)}for(const de of X){const z={...de,type:"position"};F.push(z)}ee(F)},onEnd:({width:V,height:X})=>{const ee={id:E,type:"dimensions",resizing:!1,dimensions:{width:V,height:X}};N.getState().triggerNodeChanges([ee])}})),H.current.update({controlPosition:k,boundaries:{minWidth:h,minHeight:p,maxWidth:m,maxHeight:y},keepAspectRatio:v,resizeDirection:b,onResizeStart:A,onResize:w,onResizeEnd:T,shouldResize:x}),()=>{H.current?.destroy()}},[k,h,p,m,y,v,A,w,T,x]);const G=k.split("-");return fe.jsx("div",{className:It(["react-flow__resize-control","nodrag",...G,i,s]),ref:M,style:{...l,scale:U,...d&&{[q?"backgroundColor":"borderColor"]:d}},children:f})}ce.memo(l9);function u9(n){return n.loading?ae.jsxDEV(oC,{message:"Loading graph state..."},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/DAGView.tsx",lineNumber:13,columnNumber:12},this):n.nodes.length===0?ae.jsxDEV(oC,{message:"No tasks found in this scope yet."},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/DAGView.tsx",lineNumber:17,columnNumber:12},this):ae.jsxDEV(zI,{fitView:!0,nodes:n.nodes.map(a=>({...a,selected:n.selectedTaskId===Number(a.id)})),edges:n.edges,onNodeClick:(a,i)=>{n.onSelectTask(Number(i.id))},children:[ae.jsxDEV(kI,{color:"rgba(41, 69, 60, 0.08)",gap:22},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/DAGView.tsx",lineNumber:32,columnNumber:7},this),ae.jsxDEV(o9,{pannable:!0,zoomable:!0},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/DAGView.tsx",lineNumber:33,columnNumber:7},this),ae.jsxDEV(XI,{showInteractive:!1},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/DAGView.tsx",lineNumber:34,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/DAGView.tsx",lineNumber:21,columnNumber:5},this)}function oC(n){return ae.jsxDEV("div",{className:"grid min-h-[392px] place-items-center rounded-[24px] border border-dashed border-moss/15 bg-white/60",children:ae.jsxDEV("p",{className:"max-w-sm text-center text-sm leading-6 text-moss/65",children:n.message},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/DAGView.tsx",lineNumber:42,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/DAGView.tsx",lineNumber:41,columnNumber:5},this)}function c9(n){const a=[{label:"Project",value:"project"},{label:"Global",value:"global"},{label:"Aggregate",value:"all"}];return ae.jsxDEV("div",{className:"space-y-2",children:[ae.jsxDEV("p",{className:"font-display text-xs uppercase tracking-[0.24em] text-moss/55",children:"Scope"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/ScopeSwitch.tsx",lineNumber:15,columnNumber:7},this),ae.jsxDEV("div",{className:"grid gap-2",children:a.map(i=>ae.jsxDEV("button",{type:"button",onClick:()=>n.onChange(i.value),className:`rounded-2xl border px-3 py-3 text-left text-sm transition ${n.value===i.value?"border-moss bg-moss text-mist":"border-moss/10 bg-white text-moss/75 hover:border-moss/30"}`,children:i.label},i.value,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/ScopeSwitch.tsx",lineNumber:18,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/ScopeSwitch.tsx",lineNumber:16,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/ScopeSwitch.tsx",lineNumber:14,columnNumber:5},this)}const f9={"task.created":"🆕","task.status_changed":"🔄","run.started":"▶","run.completed":"✅","run.failed":"❌","task.dependency_unlocked":"🔓","schedule.triggered":"⏱"};function d9(n){return n.events.length===0?ae.jsxDEV("p",{className:"text-sm leading-6 text-moss/65",children:"No events recorded for this task yet."},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/EventTimeline.tsx",lineNumber:15,columnNumber:12},this):ae.jsxDEV("div",{className:"space-y-3",children:n.events.map(a=>ae.jsxDEV("article",{className:"rounded-2xl border border-moss/10 bg-white px-4 py-3",children:ae.jsxDEV("div",{className:"flex items-start gap-3",children:[ae.jsxDEV("span",{className:"text-lg",children:f9[a.type]??"•"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/EventTimeline.tsx",lineNumber:23,columnNumber:13},this),ae.jsxDEV("div",{className:"min-w-0",children:[ae.jsxDEV("p",{className:"text-sm font-medium text-ink",children:a.type},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/EventTimeline.tsx",lineNumber:25,columnNumber:15},this),ae.jsxDEV("p",{className:"mt-1 text-xs uppercase tracking-[0.18em] text-moss/50",children:h9(a.ts)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/EventTimeline.tsx",lineNumber:26,columnNumber:15},this),a.from||a.to?ae.jsxDEV("p",{className:"mt-2 text-sm text-moss/70",children:[a.from??"start"," → ",a.to??"end"]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/EventTimeline.tsx",lineNumber:28,columnNumber:17},this):null]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/EventTimeline.tsx",lineNumber:24,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/EventTimeline.tsx",lineNumber:22,columnNumber:11},this)},`${a.ts}-${a.type}`,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/EventTimeline.tsx",lineNumber:21,columnNumber:9},this))},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/EventTimeline.tsx",lineNumber:19,columnNumber:5},this)}function h9(n){return new Date(n).toLocaleString()}function p9(n){return ae.jsxDEV("div",{className:"rounded-[22px] border border-moss/10 bg-[#f7fbf8] px-4 py-4",children:[ae.jsxDEV("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[ae.jsxDEV("div",{children:[ae.jsxDEV("p",{className:"font-display text-base font-semibold text-ink",children:n.run.id},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:8,columnNumber:11},this),ae.jsxDEV("p",{className:"mt-1 text-xs uppercase tracking-[0.18em] text-moss/55",children:[n.run.tool," · ",n.run.status," · exit ",n.run.exitCode??"..."]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:9,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:7,columnNumber:9},this),n.run.attachCommand?ae.jsxDEV("code",{className:"rounded-full bg-moss/10 px-3 py-1 text-xs text-moss",children:n.run.attachCommand},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:15,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:6,columnNumber:7},this),ae.jsxDEV("dl",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:[ae.jsxDEV(fh,{label:"Started",value:new Date(n.run.startedAt).toLocaleString()},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:20,columnNumber:9},this),ae.jsxDEV(fh,{label:"Completed",value:n.run.completedAt?new Date(n.run.completedAt).toLocaleString():"Running"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:21,columnNumber:9},this),ae.jsxDEV(fh,{label:"Session",value:n.run.tmuxSession},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:22,columnNumber:9},this),ae.jsxDEV(fh,{label:"Directory",value:n.run.directory},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:23,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:19,columnNumber:7},this),ae.jsxDEV("div",{className:"mt-4",children:[ae.jsxDEV("p",{className:"text-[11px] uppercase tracking-[0.18em] text-moss/55",children:"stdout.log"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:27,columnNumber:9},this),ae.jsxDEV("pre",{className:"mt-2 max-h-60 overflow-auto rounded-2xl bg-white px-3 py-3 text-xs leading-6 text-moss/72",children:n.run.output||"No output captured yet."},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:28,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:26,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:5,columnNumber:5},this)}function fh(n){return ae.jsxDEV("div",{className:"rounded-2xl bg-white px-3 py-3",children:[ae.jsxDEV("dt",{className:"text-[11px] uppercase tracking-[0.18em] text-moss/55",children:n.label},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:39,columnNumber:7},this),ae.jsxDEV("dd",{className:"mt-2 break-words text-sm text-ink",children:n.value},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:40,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunDetail.tsx",lineNumber:38,columnNumber:5},this)}function m9(n){const[a,i]=ce.useState(n.runs[0]?.id??null),s=n.runs.find(l=>l.id===a)??n.runs[0]??null;return n.runs.length===0?ae.jsxDEV("p",{className:"text-sm leading-6 text-moss/68",children:"No runs recorded for this task yet."},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunList.tsx",lineNumber:11,columnNumber:12},this):ae.jsxDEV("div",{className:"space-y-4",children:[ae.jsxDEV("div",{className:"grid gap-2",children:n.runs.map(l=>ae.jsxDEV("button",{type:"button",className:`flex items-center justify-between rounded-2xl px-4 py-3 text-left ${s?.id===l.id?"bg-moss text-mist":"bg-[#f7fbf8] text-ink"}`,onClick:()=>i(l.id),children:[ae.jsxDEV("div",{children:[ae.jsxDEV("p",{className:"font-medium",children:l.id},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunList.tsx",lineNumber:27,columnNumber:15},this),ae.jsxDEV("p",{className:`mt-1 text-xs uppercase tracking-[0.18em] ${s?.id===l.id?"text-mist/70":"text-moss/55"}`,children:[l.tool," · ",l.status]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunList.tsx",lineNumber:28,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunList.tsx",lineNumber:26,columnNumber:13},this),ae.jsxDEV("span",{className:`text-xs ${s?.id===l.id?"text-mist/70":"text-moss/55"}`,children:new Date(l.startedAt).toLocaleTimeString()},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunList.tsx",lineNumber:32,columnNumber:13},this)]},l.id,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunList.tsx",lineNumber:18,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunList.tsx",lineNumber:16,columnNumber:7},this),s?ae.jsxDEV(p9,{run:s},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunList.tsx",lineNumber:39,columnNumber:22},this):null]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/RunList.tsx",lineNumber:15,columnNumber:5},this)}async function g9(n){return(await fetch(`/api/tasks?scope=${n}`)).json()}async function y9(n,a){return(await fetch(`/api/tasks/${n}?scope=${a}`)).json()}async function v9(n,a){return(await fetch(`/api/tasks/${n}/events?scope=${a}`)).json()}async function b9(n,a){return(await fetch(`/api/tasks/${n}/runs?scope=${a}`)).json()}async function _9(n){return(await fetch(`/api/graph?scope=${n}`)).json()}function S9(n,a){const[i,s]=ce.useState(null),[l,f]=ce.useState([]),[d,h]=ce.useState([]),[p,m]=ce.useState(!1);return ce.useEffect(()=>{let y=!1;if(!a){s(null),f([]),h([]);return}return m(!0),Promise.all([y9(a,n),v9(a,n),b9(a,n)]).then(([v,b,S])=>{y||(s(v),f(b.toSorted((x,A)=>A.ts.localeCompare(x.ts))),h(S))}).finally(()=>{y||m(!1)}),()=>{y=!0}},[n,a]),{task:i,events:l,runs:d,loading:p}}function x9(n){const a=S9(n.scope,n.taskId);return ae.jsxDEV("aside",{className:"rounded-[32px] border border-moss/10 bg-[#f7fbf8] p-6 shadow-panel",children:[ae.jsxDEV("p",{className:"font-display text-xs uppercase tracking-[0.26em] text-moss/55",children:"Inspector"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:11,columnNumber:7},this),ae.jsxDEV("h3",{className:"mt-2 font-display text-2xl font-semibold",children:"Task detail rail"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:12,columnNumber:7},this),n.taskId?null:ae.jsxDEV("p",{className:"mt-5 text-sm leading-6 text-moss/68",children:"Select a node or table row to inspect metadata and events."},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:15,columnNumber:9},this),a.loading&&n.taskId?ae.jsxDEV("p",{className:"mt-5 text-sm leading-6 text-moss/68",children:"Loading task detail..."},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:19,columnNumber:9},this):null,a.task?ae.jsxDEV("div",{className:"mt-5 space-y-5 text-sm text-moss/72",children:[ae.jsxDEV("section",{className:"rounded-[24px] border border-moss/10 bg-white/80 px-4 py-4",children:[ae.jsxDEV("div",{className:"flex items-start justify-between gap-3",children:ae.jsxDEV("div",{children:[ae.jsxDEV("p",{className:"font-display text-lg font-semibold text-ink",children:["#",a.task.id," ",a.task.title]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:27,columnNumber:17},this),ae.jsxDEV("p",{className:"mt-2 text-xs uppercase tracking-[0.2em] text-moss/55",children:[a.task.level," · ",a.task.status," · ",a.task.assignee]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:30,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:26,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:25,columnNumber:13},this),ae.jsxDEV("dl",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:[ae.jsxDEV(dh,{label:"Created",value:new Date(a.task.created).toLocaleString()},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:37,columnNumber:15},this),ae.jsxDEV(dh,{label:"Updated",value:new Date(a.task.updated).toLocaleString()},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:38,columnNumber:15},this),ae.jsxDEV(dh,{label:"Depends on",value:a.task.deps.length>0?a.task.deps.join(", "):"None"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:39,columnNumber:15},this),ae.jsxDEV(dh,{label:"Blocks",value:a.task.blocks.length>0?a.task.blocks.join(", "):"None"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:40,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:36,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:24,columnNumber:11},this),ae.jsxDEV("section",{className:"rounded-[24px] border border-moss/10 bg-white/80 px-4 py-4",children:[ae.jsxDEV("p",{className:"font-display text-base font-semibold text-ink",children:"Body"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:45,columnNumber:13},this),ae.jsxDEV("pre",{className:"mt-3 whitespace-pre-wrap text-sm leading-6 text-moss/72",children:a.task.body||"No markdown body yet."},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:46,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:44,columnNumber:11},this),ae.jsxDEV("section",{className:"rounded-[24px] border border-moss/10 bg-white/80 px-4 py-4",children:[ae.jsxDEV("p",{className:"font-display text-base font-semibold text-ink",children:"Event timeline"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:50,columnNumber:13},this),ae.jsxDEV("div",{className:"mt-4",children:ae.jsxDEV(d9,{events:a.events},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:52,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:51,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:49,columnNumber:11},this),ae.jsxDEV("section",{className:"rounded-[24px] border border-moss/10 bg-white/80 px-4 py-4",children:[ae.jsxDEV("p",{className:"font-display text-base font-semibold text-ink",children:"Runs"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:57,columnNumber:13},this),ae.jsxDEV("div",{className:"mt-4",children:ae.jsxDEV(m9,{runs:a.runs},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:59,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:58,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:56,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:23,columnNumber:9},this):null]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:10,columnNumber:5},this)}function dh(n){return ae.jsxDEV("div",{className:"rounded-2xl bg-mist px-3 py-3",children:[ae.jsxDEV("dt",{className:"text-[11px] uppercase tracking-[0.18em] text-moss/55",children:n.label},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:71,columnNumber:7},this),ae.jsxDEV("dd",{className:"mt-2 text-sm text-ink",children:n.value},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:72,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskDetail.tsx",lineNumber:70,columnNumber:5},this)}function E9(n){return ae.jsxDEV("article",{className:"rounded-[32px] border border-moss/10 bg-white/90 p-6 shadow-panel",children:[ae.jsxDEV("header",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between",children:[ae.jsxDEV("div",{children:[ae.jsxDEV("p",{className:"font-display text-xs uppercase tracking-[0.26em] text-moss/55",children:"Table"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:19,columnNumber:11},this),ae.jsxDEV("h3",{className:"mt-2 font-display text-2xl font-semibold",children:"Task register"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:20,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:18,columnNumber:9},this),ae.jsxDEV("div",{className:"grid gap-3 sm:grid-cols-3",children:[ae.jsxDEV(av,{label:"Level",value:n.levelFilter,onChange:a=>n.onLevelFilterChange(a),options:["all","L1","L2","L3"]},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:24,columnNumber:11},this),ae.jsxDEV(av,{label:"Status",value:n.statusFilter,onChange:a=>n.onStatusFilterChange(a),options:["all","pending","running","paused","waiting-review","completed","failed"]},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:30,columnNumber:11},this),ae.jsxDEV(av,{label:"Sort",value:n.sortBy,onChange:a=>n.onSortByChange(a),options:["updated","id","level"]},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:40,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:23,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:17,columnNumber:7},this),ae.jsxDEV("div",{className:"mt-5 overflow-x-auto",children:ae.jsxDEV("table",{className:"min-w-full border-separate border-spacing-y-2 text-left text-sm",children:[ae.jsxDEV("thead",{children:ae.jsxDEV("tr",{className:"text-xs uppercase tracking-[0.18em] text-moss/55",children:[ae.jsxDEV("th",{className:"px-3 py-2",children:"ID"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:53,columnNumber:15},this),ae.jsxDEV("th",{className:"px-3 py-2",children:"Level"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:54,columnNumber:15},this),ae.jsxDEV("th",{className:"px-3 py-2",children:"Status"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:55,columnNumber:15},this),ae.jsxDEV("th",{className:"px-3 py-2",children:"Title"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:56,columnNumber:15},this),ae.jsxDEV("th",{className:"px-3 py-2",children:"Assignee"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:57,columnNumber:15},this),ae.jsxDEV("th",{className:"px-3 py-2",children:"Updated"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:58,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:52,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:51,columnNumber:11},this),ae.jsxDEV("tbody",{children:[n.loading?ae.jsxDEV("tr",{children:ae.jsxDEV("td",{className:"px-3 py-4 text-moss/60",colSpan:6,children:"Loading tasks..."},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:64,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:63,columnNumber:15},this):null,!n.loading&&n.tasks.length===0?ae.jsxDEV("tr",{children:ae.jsxDEV("td",{className:"px-3 py-4 text-moss/60",colSpan:6,children:"No tasks match the current filters."},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:72,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:71,columnNumber:15},this):null,n.tasks.map(a=>ae.jsxDEV("tr",{className:`cursor-pointer rounded-2xl ${n.selectedTaskId===a.id?"bg-moss text-mist":"bg-[#f7fbf8] text-ink"}`,onClick:()=>n.onSelectTask(a.id),children:[ae.jsxDEV("td",{className:"rounded-l-2xl px-3 py-3 font-medium",children:["#",a.id]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:86,columnNumber:17},this),ae.jsxDEV("td",{className:"px-3 py-3",children:ae.jsxDEV(iC,{tone:a.level==="L1"?"green":a.level==="L2"?"gold":"red",children:a.level},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:88,columnNumber:19},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:87,columnNumber:17},this),ae.jsxDEV("td",{className:"px-3 py-3",children:ae.jsxDEV(iC,{tone:w9(a.status),children:a.status},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:91,columnNumber:19},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:90,columnNumber:17},this),ae.jsxDEV("td",{className:"px-3 py-3",children:a.title},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:93,columnNumber:17},this),ae.jsxDEV("td",{className:"px-3 py-3 capitalize",children:a.assignee},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:94,columnNumber:17},this),ae.jsxDEV("td",{className:"rounded-r-2xl px-3 py-3",children:new Date(a.updated).toLocaleString()},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:95,columnNumber:17},this)]},`${a.scope}-${a.id}`,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:79,columnNumber:15},this))]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:61,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:50,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:49,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:16,columnNumber:5},this)}function av(n){return ae.jsxDEV("label",{className:"flex flex-col gap-2 text-xs uppercase tracking-[0.18em] text-moss/55",children:[n.label,ae.jsxDEV("select",{className:"rounded-2xl border border-moss/10 bg-white px-3 py-3 text-sm capitalize tracking-normal text-ink outline-none",value:n.value,onChange:a=>n.onChange(a.target.value),children:n.options.map(a=>ae.jsxDEV("option",{value:a,children:a},a,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:120,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:114,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:112,columnNumber:5},this)}function iC(n){const a=n.tone==="green"?"bg-emerald-100 text-emerald-700":n.tone==="gold"?"bg-amber-100 text-amber-700":n.tone==="red"?"bg-rose-100 text-rose-700":n.tone==="blue"?"bg-sky-100 text-sky-700":"bg-slate-100 text-slate-700";return ae.jsxDEV("span",{className:`rounded-full px-2 py-1 text-xs uppercase tracking-[0.18em] ${a}`,children:n.children},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/components/TaskList.tsx",lineNumber:141,columnNumber:10},this)}function w9(n){return n==="completed"?"green":n==="running"?"blue":n==="failed"?"red":n==="paused"||n==="waiting-review"?"gold":"slate"}function rx(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ov,sC;function T9(){if(sC)return ov;sC=1;function n(){this.__data__=[],this.size=0}return ov=n,ov}var iv,lC;function hl(){if(lC)return iv;lC=1;function n(a,i){return a===i||a!==a&&i!==i}return iv=n,iv}var sv,uC;function Yh(){if(uC)return sv;uC=1;var n=hl();function a(i,s){for(var l=i.length;l--;)if(n(i[l][0],s))return l;return-1}return sv=a,sv}var lv,cC;function R9(){if(cC)return lv;cC=1;var n=Yh(),a=Array.prototype,i=a.splice;function s(l){var f=this.__data__,d=n(f,l);if(d<0)return!1;var h=f.length-1;return d==h?f.pop():i.call(f,d,1),--this.size,!0}return lv=s,lv}var uv,fC;function A9(){if(fC)return uv;fC=1;var n=Yh();function a(i){var s=this.__data__,l=n(s,i);return l<0?void 0:s[l][1]}return uv=a,uv}var cv,dC;function N9(){if(dC)return cv;dC=1;var n=Yh();function a(i){return n(this.__data__,i)>-1}return cv=a,cv}var fv,hC;function D9(){if(hC)return fv;hC=1;var n=Yh();function a(i,s){var l=this.__data__,f=n(l,i);return f<0?(++this.size,l.push([i,s])):l[f][1]=s,this}return fv=a,fv}var dv,pC;function $h(){if(pC)return dv;pC=1;var n=T9(),a=R9(),i=A9(),s=N9(),l=D9();function f(d){var h=-1,p=d==null?0:d.length;for(this.clear();++h<p;){var m=d[h];this.set(m[0],m[1])}}return f.prototype.clear=n,f.prototype.delete=a,f.prototype.get=i,f.prototype.has=s,f.prototype.set=l,dv=f,dv}var hv,mC;function C9(){if(mC)return hv;mC=1;var n=$h();function a(){this.__data__=new n,this.size=0}return hv=a,hv}var pv,gC;function O9(){if(gC)return pv;gC=1;function n(a){var i=this.__data__,s=i.delete(a);return this.size=i.size,s}return pv=n,pv}var mv,yC;function M9(){if(yC)return mv;yC=1;function n(a){return this.__data__.get(a)}return mv=n,mv}var gv,vC;function q9(){if(vC)return gv;vC=1;function n(a){return this.__data__.has(a)}return gv=n,gv}var yv,bC;function mj(){if(bC)return yv;bC=1;var n=typeof eh=="object"&&eh&&eh.Object===Object&&eh;return yv=n,yv}var vv,_C;function jr(){if(_C)return vv;_C=1;var n=mj(),a=typeof self=="object"&&self&&self.Object===Object&&self,i=n||a||Function("return this")();return vv=i,vv}var bv,SC;function pl(){if(SC)return bv;SC=1;var n=jr(),a=n.Symbol;return bv=a,bv}var _v,xC;function z9(){if(xC)return _v;xC=1;var n=pl(),a=Object.prototype,i=a.hasOwnProperty,s=a.toString,l=n?n.toStringTag:void 0;function f(d){var h=i.call(d,l),p=d[l];try{d[l]=void 0;var m=!0}catch{}var y=s.call(d);return m&&(h?d[l]=p:delete d[l]),y}return _v=f,_v}var Sv,EC;function U9(){if(EC)return Sv;EC=1;var n=Object.prototype,a=n.toString;function i(s){return a.call(s)}return Sv=i,Sv}var xv,wC;function $i(){if(wC)return xv;wC=1;var n=pl(),a=z9(),i=U9(),s="[object Null]",l="[object Undefined]",f=n?n.toStringTag:void 0;function d(h){return h==null?h===void 0?l:s:f&&f in Object(h)?a(h):i(h)}return xv=d,xv}var Ev,TC;function gr(){if(TC)return Ev;TC=1;function n(a){var i=typeof a;return a!=null&&(i=="object"||i=="function")}return Ev=n,Ev}var wv,RC;function Tc(){if(RC)return wv;RC=1;var n=$i(),a=gr(),i="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",f="[object Proxy]";function d(h){if(!a(h))return!1;var p=n(h);return p==s||p==l||p==i||p==f}return wv=d,wv}var Tv,AC;function j9(){if(AC)return Tv;AC=1;var n=jr(),a=n["__core-js_shared__"];return Tv=a,Tv}var Rv,NC;function L9(){if(NC)return Rv;NC=1;var n=j9(),a=(function(){var s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""})();function i(s){return!!a&&a in s}return Rv=i,Rv}var Av,DC;function gj(){if(DC)return Av;DC=1;var n=Function.prototype,a=n.toString;function i(s){if(s!=null){try{return a.call(s)}catch{}try{return s+""}catch{}}return""}return Av=i,Av}var Nv,CC;function H9(){if(CC)return Nv;CC=1;var n=Tc(),a=L9(),i=gr(),s=gj(),l=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,d=Function.prototype,h=Object.prototype,p=d.toString,m=h.hasOwnProperty,y=RegExp("^"+p.call(m).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v(b){if(!i(b)||a(b))return!1;var S=n(b)?y:f;return S.test(s(b))}return Nv=v,Nv}var Dv,OC;function k9(){if(OC)return Dv;OC=1;function n(a,i){return a?.[i]}return Dv=n,Dv}var Cv,MC;function Xi(){if(MC)return Cv;MC=1;var n=H9(),a=k9();function i(s,l){var f=a(s,l);return n(f)?f:void 0}return Cv=i,Cv}var Ov,qC;function ax(){if(qC)return Ov;qC=1;var n=Xi(),a=jr(),i=n(a,"Map");return Ov=i,Ov}var Mv,zC;function Xh(){if(zC)return Mv;zC=1;var n=Xi(),a=n(Object,"create");return Mv=a,Mv}var qv,UC;function V9(){if(UC)return qv;UC=1;var n=Xh();function a(){this.__data__=n?n(null):{},this.size=0}return qv=a,qv}var zv,jC;function B9(){if(jC)return zv;jC=1;function n(a){var i=this.has(a)&&delete this.__data__[a];return this.size-=i?1:0,i}return zv=n,zv}var Uv,LC;function I9(){if(LC)return Uv;LC=1;var n=Xh(),a="__lodash_hash_undefined__",i=Object.prototype,s=i.hasOwnProperty;function l(f){var d=this.__data__;if(n){var h=d[f];return h===a?void 0:h}return s.call(d,f)?d[f]:void 0}return Uv=l,Uv}var jv,HC;function G9(){if(HC)return jv;HC=1;var n=Xh(),a=Object.prototype,i=a.hasOwnProperty;function s(l){var f=this.__data__;return n?f[l]!==void 0:i.call(f,l)}return jv=s,jv}var Lv,kC;function Y9(){if(kC)return Lv;kC=1;var n=Xh(),a="__lodash_hash_undefined__";function i(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=n&&l===void 0?a:l,this}return Lv=i,Lv}var Hv,VC;function $9(){if(VC)return Hv;VC=1;var n=V9(),a=B9(),i=I9(),s=G9(),l=Y9();function f(d){var h=-1,p=d==null?0:d.length;for(this.clear();++h<p;){var m=d[h];this.set(m[0],m[1])}}return f.prototype.clear=n,f.prototype.delete=a,f.prototype.get=i,f.prototype.has=s,f.prototype.set=l,Hv=f,Hv}var kv,BC;function X9(){if(BC)return kv;BC=1;var n=$9(),a=$h(),i=ax();function s(){this.size=0,this.__data__={hash:new n,map:new(i||a),string:new n}}return kv=s,kv}var Vv,IC;function P9(){if(IC)return Vv;IC=1;function n(a){var i=typeof a;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?a!=="__proto__":a===null}return Vv=n,Vv}var Bv,GC;function Ph(){if(GC)return Bv;GC=1;var n=P9();function a(i,s){var l=i.__data__;return n(s)?l[typeof s=="string"?"string":"hash"]:l.map}return Bv=a,Bv}var Iv,YC;function Z9(){if(YC)return Iv;YC=1;var n=Ph();function a(i){var s=n(this,i).delete(i);return this.size-=s?1:0,s}return Iv=a,Iv}var Gv,$C;function Q9(){if($C)return Gv;$C=1;var n=Ph();function a(i){return n(this,i).get(i)}return Gv=a,Gv}var Yv,XC;function F9(){if(XC)return Yv;XC=1;var n=Ph();function a(i){return n(this,i).has(i)}return Yv=a,Yv}var $v,PC;function J9(){if(PC)return $v;PC=1;var n=Ph();function a(i,s){var l=n(this,i),f=l.size;return l.set(i,s),this.size+=l.size==f?0:1,this}return $v=a,$v}var Xv,ZC;function ox(){if(ZC)return Xv;ZC=1;var n=X9(),a=Z9(),i=Q9(),s=F9(),l=J9();function f(d){var h=-1,p=d==null?0:d.length;for(this.clear();++h<p;){var m=d[h];this.set(m[0],m[1])}}return f.prototype.clear=n,f.prototype.delete=a,f.prototype.get=i,f.prototype.has=s,f.prototype.set=l,Xv=f,Xv}var Pv,QC;function K9(){if(QC)return Pv;QC=1;var n=$h(),a=ax(),i=ox(),s=200;function l(f,d){var h=this.__data__;if(h instanceof n){var p=h.__data__;if(!a||p.length<s-1)return p.push([f,d]),this.size=++h.size,this;h=this.__data__=new i(p)}return h.set(f,d),this.size=h.size,this}return Pv=l,Pv}var Zv,FC;function Zh(){if(FC)return Zv;FC=1;var n=$h(),a=C9(),i=O9(),s=M9(),l=q9(),f=K9();function d(h){var p=this.__data__=new n(h);this.size=p.size}return d.prototype.clear=a,d.prototype.delete=i,d.prototype.get=s,d.prototype.has=l,d.prototype.set=f,Zv=d,Zv}var Qv,JC;function ix(){if(JC)return Qv;JC=1;function n(a,i){for(var s=-1,l=a==null?0:a.length;++s<l&&i(a[s],s,a)!==!1;);return a}return Qv=n,Qv}var Fv,KC;function yj(){if(KC)return Fv;KC=1;var n=Xi(),a=(function(){try{var i=n(Object,"defineProperty");return i({},"",{}),i}catch{}})();return Fv=a,Fv}var Jv,WC;function Qh(){if(WC)return Jv;WC=1;var n=yj();function a(i,s,l){s=="__proto__"&&n?n(i,s,{configurable:!0,enumerable:!0,value:l,writable:!0}):i[s]=l}return Jv=a,Jv}var Kv,eO;function Fh(){if(eO)return Kv;eO=1;var n=Qh(),a=hl(),i=Object.prototype,s=i.hasOwnProperty;function l(f,d,h){var p=f[d];(!(s.call(f,d)&&a(p,h))||h===void 0&&!(d in f))&&n(f,d,h)}return Kv=l,Kv}var Wv,tO;function Rc(){if(tO)return Wv;tO=1;var n=Fh(),a=Qh();function i(s,l,f,d){var h=!f;f||(f={});for(var p=-1,m=l.length;++p<m;){var y=l[p],v=d?d(f[y],s[y],y,f,s):void 0;v===void 0&&(v=s[y]),h?a(f,y,v):n(f,y,v)}return f}return Wv=i,Wv}var e0,nO;function W9(){if(nO)return e0;nO=1;function n(a,i){for(var s=-1,l=Array(a);++s<a;)l[s]=i(s);return l}return e0=n,e0}var t0,rO;function ma(){if(rO)return t0;rO=1;function n(a){return a!=null&&typeof a=="object"}return t0=n,t0}var n0,aO;function eG(){if(aO)return n0;aO=1;var n=$i(),a=ma(),i="[object Arguments]";function s(l){return a(l)&&n(l)==i}return n0=s,n0}var r0,oO;function Ac(){if(oO)return r0;oO=1;var n=eG(),a=ma(),i=Object.prototype,s=i.hasOwnProperty,l=i.propertyIsEnumerable,f=n((function(){return arguments})())?n:function(d){return a(d)&&s.call(d,"callee")&&!l.call(d,"callee")};return r0=f,r0}var a0,iO;function Gt(){if(iO)return a0;iO=1;var n=Array.isArray;return a0=n,a0}var oc={exports:{}},o0,sO;function tG(){if(sO)return o0;sO=1;function n(){return!1}return o0=n,o0}oc.exports;var lO;function ml(){return lO||(lO=1,(function(n,a){var i=jr(),s=tG(),l=a&&!a.nodeType&&a,f=l&&!0&&n&&!n.nodeType&&n,d=f&&f.exports===l,h=d?i.Buffer:void 0,p=h?h.isBuffer:void 0,m=p||s;n.exports=m})(oc,oc.exports)),oc.exports}var i0,uO;function Jh(){if(uO)return i0;uO=1;var n=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function i(s,l){var f=typeof s;return l=l??n,!!l&&(f=="number"||f!="symbol"&&a.test(s))&&s>-1&&s%1==0&&s<l}return i0=i,i0}var s0,cO;function sx(){if(cO)return s0;cO=1;var n=9007199254740991;function a(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=n}return s0=a,s0}var l0,fO;function nG(){if(fO)return l0;fO=1;var n=$i(),a=sx(),i=ma(),s="[object Arguments]",l="[object Array]",f="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",m="[object Map]",y="[object Number]",v="[object Object]",b="[object RegExp]",S="[object Set]",x="[object String]",A="[object WeakMap]",w="[object ArrayBuffer]",T="[object DataView]",C="[object Float32Array]",E="[object Float64Array]",N="[object Int8Array]",M="[object Int16Array]",q="[object Int32Array]",U="[object Uint8Array]",H="[object Uint8ClampedArray]",k="[object Uint16Array]",G="[object Uint32Array]",V={};V[C]=V[E]=V[N]=V[M]=V[q]=V[U]=V[H]=V[k]=V[G]=!0,V[s]=V[l]=V[w]=V[f]=V[T]=V[d]=V[h]=V[p]=V[m]=V[y]=V[v]=V[b]=V[S]=V[x]=V[A]=!1;function X(ee){return i(ee)&&a(ee.length)&&!!V[n(ee)]}return l0=X,l0}var u0,dO;function Kh(){if(dO)return u0;dO=1;function n(a){return function(i){return a(i)}}return u0=n,u0}var ic={exports:{}};ic.exports;var hO;function lx(){return hO||(hO=1,(function(n,a){var i=mj(),s=a&&!a.nodeType&&a,l=s&&!0&&n&&!n.nodeType&&n,f=l&&l.exports===s,d=f&&i.process,h=(function(){try{var p=l&&l.require&&l.require("util").types;return p||d&&d.binding&&d.binding("util")}catch{}})();n.exports=h})(ic,ic.exports)),ic.exports}var c0,pO;function Nc(){if(pO)return c0;pO=1;var n=nG(),a=Kh(),i=lx(),s=i&&i.isTypedArray,l=s?a(s):n;return c0=l,c0}var f0,mO;function vj(){if(mO)return f0;mO=1;var n=W9(),a=Ac(),i=Gt(),s=ml(),l=Jh(),f=Nc(),d=Object.prototype,h=d.hasOwnProperty;function p(m,y){var v=i(m),b=!v&&a(m),S=!v&&!b&&s(m),x=!v&&!b&&!S&&f(m),A=v||b||S||x,w=A?n(m.length,String):[],T=w.length;for(var C in m)(y||h.call(m,C))&&!(A&&(C=="length"||S&&(C=="offset"||C=="parent")||x&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||l(C,T)))&&w.push(C);return w}return f0=p,f0}var d0,gO;function Wh(){if(gO)return d0;gO=1;var n=Object.prototype;function a(i){var s=i&&i.constructor,l=typeof s=="function"&&s.prototype||n;return i===l}return d0=a,d0}var h0,yO;function bj(){if(yO)return h0;yO=1;function n(a,i){return function(s){return a(i(s))}}return h0=n,h0}var p0,vO;function rG(){if(vO)return p0;vO=1;var n=bj(),a=n(Object.keys,Object);return p0=a,p0}var m0,bO;function ux(){if(bO)return m0;bO=1;var n=Wh(),a=rG(),i=Object.prototype,s=i.hasOwnProperty;function l(f){if(!n(f))return a(f);var d=[];for(var h in Object(f))s.call(f,h)&&h!="constructor"&&d.push(h);return d}return m0=l,m0}var g0,_O;function Qa(){if(_O)return g0;_O=1;var n=Tc(),a=sx();function i(s){return s!=null&&a(s.length)&&!n(s)}return g0=i,g0}var y0,SO;function Po(){if(SO)return y0;SO=1;var n=vj(),a=ux(),i=Qa();function s(l){return i(l)?n(l):a(l)}return y0=s,y0}var v0,xO;function aG(){if(xO)return v0;xO=1;var n=Rc(),a=Po();function i(s,l){return s&&n(l,a(l),s)}return v0=i,v0}var b0,EO;function oG(){if(EO)return b0;EO=1;function n(a){var i=[];if(a!=null)for(var s in Object(a))i.push(s);return i}return b0=n,b0}var _0,wO;function iG(){if(wO)return _0;wO=1;var n=gr(),a=Wh(),i=oG(),s=Object.prototype,l=s.hasOwnProperty;function f(d){if(!n(d))return i(d);var h=a(d),p=[];for(var m in d)m=="constructor"&&(h||!l.call(d,m))||p.push(m);return p}return _0=f,_0}var S0,TO;function Pi(){if(TO)return S0;TO=1;var n=vj(),a=iG(),i=Qa();function s(l){return i(l)?n(l,!0):a(l)}return S0=s,S0}var x0,RO;function sG(){if(RO)return x0;RO=1;var n=Rc(),a=Pi();function i(s,l){return s&&n(l,a(l),s)}return x0=i,x0}var sc={exports:{}};sc.exports;var AO;function _j(){return AO||(AO=1,(function(n,a){var i=jr(),s=a&&!a.nodeType&&a,l=s&&!0&&n&&!n.nodeType&&n,f=l&&l.exports===s,d=f?i.Buffer:void 0,h=d?d.allocUnsafe:void 0;function p(m,y){if(y)return m.slice();var v=m.length,b=h?h(v):new m.constructor(v);return m.copy(b),b}n.exports=p})(sc,sc.exports)),sc.exports}var E0,NO;function Sj(){if(NO)return E0;NO=1;function n(a,i){var s=-1,l=a.length;for(i||(i=Array(l));++s<l;)i[s]=a[s];return i}return E0=n,E0}var w0,DO;function xj(){if(DO)return w0;DO=1;function n(a,i){for(var s=-1,l=a==null?0:a.length,f=0,d=[];++s<l;){var h=a[s];i(h,s,a)&&(d[f++]=h)}return d}return w0=n,w0}var T0,CO;function Ej(){if(CO)return T0;CO=1;function n(){return[]}return T0=n,T0}var R0,OO;function cx(){if(OO)return R0;OO=1;var n=xj(),a=Ej(),i=Object.prototype,s=i.propertyIsEnumerable,l=Object.getOwnPropertySymbols,f=l?function(d){return d==null?[]:(d=Object(d),n(l(d),function(h){return s.call(d,h)}))}:a;return R0=f,R0}var A0,MO;function lG(){if(MO)return A0;MO=1;var n=Rc(),a=cx();function i(s,l){return n(s,a(s),l)}return A0=i,A0}var N0,qO;function fx(){if(qO)return N0;qO=1;function n(a,i){for(var s=-1,l=i.length,f=a.length;++s<l;)a[f+s]=i[s];return a}return N0=n,N0}var D0,zO;function ep(){if(zO)return D0;zO=1;var n=bj(),a=n(Object.getPrototypeOf,Object);return D0=a,D0}var C0,UO;function wj(){if(UO)return C0;UO=1;var n=fx(),a=ep(),i=cx(),s=Ej(),l=Object.getOwnPropertySymbols,f=l?function(d){for(var h=[];d;)n(h,i(d)),d=a(d);return h}:s;return C0=f,C0}var O0,jO;function uG(){if(jO)return O0;jO=1;var n=Rc(),a=wj();function i(s,l){return n(s,a(s),l)}return O0=i,O0}var M0,LO;function Tj(){if(LO)return M0;LO=1;var n=fx(),a=Gt();function i(s,l,f){var d=l(s);return a(s)?d:n(d,f(s))}return M0=i,M0}var q0,HO;function Rj(){if(HO)return q0;HO=1;var n=Tj(),a=cx(),i=Po();function s(l){return n(l,i,a)}return q0=s,q0}var z0,kO;function cG(){if(kO)return z0;kO=1;var n=Tj(),a=wj(),i=Pi();function s(l){return n(l,i,a)}return z0=s,z0}var U0,VO;function fG(){if(VO)return U0;VO=1;var n=Xi(),a=jr(),i=n(a,"DataView");return U0=i,U0}var j0,BO;function dG(){if(BO)return j0;BO=1;var n=Xi(),a=jr(),i=n(a,"Promise");return j0=i,j0}var L0,IO;function Aj(){if(IO)return L0;IO=1;var n=Xi(),a=jr(),i=n(a,"Set");return L0=i,L0}var H0,GO;function hG(){if(GO)return H0;GO=1;var n=Xi(),a=jr(),i=n(a,"WeakMap");return H0=i,H0}var k0,YO;function gl(){if(YO)return k0;YO=1;var n=fG(),a=ax(),i=dG(),s=Aj(),l=hG(),f=$i(),d=gj(),h="[object Map]",p="[object Object]",m="[object Promise]",y="[object Set]",v="[object WeakMap]",b="[object DataView]",S=d(n),x=d(a),A=d(i),w=d(s),T=d(l),C=f;return(n&&C(new n(new ArrayBuffer(1)))!=b||a&&C(new a)!=h||i&&C(i.resolve())!=m||s&&C(new s)!=y||l&&C(new l)!=v)&&(C=function(E){var N=f(E),M=N==p?E.constructor:void 0,q=M?d(M):"";if(q)switch(q){case S:return b;case x:return h;case A:return m;case w:return y;case T:return v}return N}),k0=C,k0}var V0,$O;function pG(){if($O)return V0;$O=1;var n=Object.prototype,a=n.hasOwnProperty;function i(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&a.call(s,"index")&&(f.index=s.index,f.input=s.input),f}return V0=i,V0}var B0,XO;function Nj(){if(XO)return B0;XO=1;var n=jr(),a=n.Uint8Array;return B0=a,B0}var I0,PO;function dx(){if(PO)return I0;PO=1;var n=Nj();function a(i){var s=new i.constructor(i.byteLength);return new n(s).set(new n(i)),s}return I0=a,I0}var G0,ZO;function mG(){if(ZO)return G0;ZO=1;var n=dx();function a(i,s){var l=s?n(i.buffer):i.buffer;return new i.constructor(l,i.byteOffset,i.byteLength)}return G0=a,G0}var Y0,QO;function gG(){if(QO)return Y0;QO=1;var n=/\w*$/;function a(i){var s=new i.constructor(i.source,n.exec(i));return s.lastIndex=i.lastIndex,s}return Y0=a,Y0}var $0,FO;function yG(){if(FO)return $0;FO=1;var n=pl(),a=n?n.prototype:void 0,i=a?a.valueOf:void 0;function s(l){return i?Object(i.call(l)):{}}return $0=s,$0}var X0,JO;function Dj(){if(JO)return X0;JO=1;var n=dx();function a(i,s){var l=s?n(i.buffer):i.buffer;return new i.constructor(l,i.byteOffset,i.length)}return X0=a,X0}var P0,KO;function vG(){if(KO)return P0;KO=1;var n=dx(),a=mG(),i=gG(),s=yG(),l=Dj(),f="[object Boolean]",d="[object Date]",h="[object Map]",p="[object Number]",m="[object RegExp]",y="[object Set]",v="[object String]",b="[object Symbol]",S="[object ArrayBuffer]",x="[object DataView]",A="[object Float32Array]",w="[object Float64Array]",T="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",N="[object Uint8Array]",M="[object Uint8ClampedArray]",q="[object Uint16Array]",U="[object Uint32Array]";function H(k,G,V){var X=k.constructor;switch(G){case S:return n(k);case f:case d:return new X(+k);case x:return a(k,V);case A:case w:case T:case C:case E:case N:case M:case q:case U:return l(k,V);case h:return new X;case p:case v:return new X(k);case m:return i(k);case y:return new X;case b:return s(k)}}return P0=H,P0}var Z0,WO;function Cj(){if(WO)return Z0;WO=1;var n=gr(),a=Object.create,i=(function(){function s(){}return function(l){if(!n(l))return{};if(a)return a(l);s.prototype=l;var f=new s;return s.prototype=void 0,f}})();return Z0=i,Z0}var Q0,eM;function Oj(){if(eM)return Q0;eM=1;var n=Cj(),a=ep(),i=Wh();function s(l){return typeof l.constructor=="function"&&!i(l)?n(a(l)):{}}return Q0=s,Q0}var F0,tM;function bG(){if(tM)return F0;tM=1;var n=gl(),a=ma(),i="[object Map]";function s(l){return a(l)&&n(l)==i}return F0=s,F0}var J0,nM;function _G(){if(nM)return J0;nM=1;var n=bG(),a=Kh(),i=lx(),s=i&&i.isMap,l=s?a(s):n;return J0=l,J0}var K0,rM;function SG(){if(rM)return K0;rM=1;var n=gl(),a=ma(),i="[object Set]";function s(l){return a(l)&&n(l)==i}return K0=s,K0}var W0,aM;function xG(){if(aM)return W0;aM=1;var n=SG(),a=Kh(),i=lx(),s=i&&i.isSet,l=s?a(s):n;return W0=l,W0}var eb,oM;function Mj(){if(oM)return eb;oM=1;var n=Zh(),a=ix(),i=Fh(),s=aG(),l=sG(),f=_j(),d=Sj(),h=lG(),p=uG(),m=Rj(),y=cG(),v=gl(),b=pG(),S=vG(),x=Oj(),A=Gt(),w=ml(),T=_G(),C=gr(),E=xG(),N=Po(),M=Pi(),q=1,U=2,H=4,k="[object Arguments]",G="[object Array]",V="[object Boolean]",X="[object Date]",ee="[object Error]",j="[object Function]",Q="[object GeneratorFunction]",L="[object Map]",F="[object Number]",Z="[object Object]",ne="[object RegExp]",de="[object Set]",z="[object String]",W="[object Symbol]",ge="[object WeakMap]",B="[object ArrayBuffer]",re="[object DataView]",ue="[object Float32Array]",oe="[object Float64Array]",he="[object Int8Array]",be="[object Int16Array]",Te="[object Int32Array]",me="[object Uint8Array]",qe="[object Uint8ClampedArray]",Re="[object Uint16Array]",Le="[object Uint32Array]",Ae={};Ae[k]=Ae[G]=Ae[B]=Ae[re]=Ae[V]=Ae[X]=Ae[ue]=Ae[oe]=Ae[he]=Ae[be]=Ae[Te]=Ae[L]=Ae[F]=Ae[Z]=Ae[ne]=Ae[de]=Ae[z]=Ae[W]=Ae[me]=Ae[qe]=Ae[Re]=Ae[Le]=!0,Ae[ee]=Ae[j]=Ae[ge]=!1;function De(Ne,Nt,qt,we,en,vt){var ut,tn=Nt&q,wn=Nt&U,Tn=Nt&H;if(qt&&(ut=en?qt(Ne,we,en,vt):qt(Ne)),ut!==void 0)return ut;if(!C(Ne))return Ne;var Rn=A(Ne);if(Rn){if(ut=b(Ne),!tn)return d(Ne,ut)}else{var Zt=v(Ne),ga=Zt==j||Zt==Q;if(w(Ne))return f(Ne,tn);if(Zt==Z||Zt==k||ga&&!en){if(ut=wn||ga?{}:x(Ne),!tn)return wn?p(Ne,l(ut,Ne)):h(Ne,s(ut,Ne))}else{if(!Ae[Zt])return en?Ne:{};ut=S(Ne,Zt,tn)}}vt||(vt=new n);var Wn=vt.get(Ne);if(Wn)return Wn;vt.set(Ne,ut),E(Ne)?Ne.forEach(function(Yt){ut.add(De(Yt,Nt,qt,Yt,Ne,vt))}):T(Ne)&&Ne.forEach(function(Yt,nn){ut.set(nn,De(Yt,Nt,qt,nn,Ne,vt))});var ya=Tn?wn?y:m:wn?M:N,er=Rn?void 0:ya(Ne);return a(er||Ne,function(Yt,nn){er&&(nn=Yt,Yt=Ne[nn]),i(ut,nn,De(Yt,Nt,qt,nn,Ne,vt))}),ut}return eb=De,eb}var tb,iM;function EG(){if(iM)return tb;iM=1;var n=Mj(),a=4;function i(s){return n(s,a)}return tb=i,tb}var nb,sM;function hx(){if(sM)return nb;sM=1;function n(a){return function(){return a}}return nb=n,nb}var rb,lM;function wG(){if(lM)return rb;lM=1;function n(a){return function(i,s,l){for(var f=-1,d=Object(i),h=l(i),p=h.length;p--;){var m=h[a?p:++f];if(s(d[m],m,d)===!1)break}return i}}return rb=n,rb}var ab,uM;function px(){if(uM)return ab;uM=1;var n=wG(),a=n();return ab=a,ab}var ob,cM;function mx(){if(cM)return ob;cM=1;var n=px(),a=Po();function i(s,l){return s&&n(s,l,a)}return ob=i,ob}var ib,fM;function TG(){if(fM)return ib;fM=1;var n=Qa();function a(i,s){return function(l,f){if(l==null)return l;if(!n(l))return i(l,f);for(var d=l.length,h=s?d:-1,p=Object(l);(s?h--:++h<d)&&f(p[h],h,p)!==!1;);return l}}return ib=a,ib}var sb,dM;function tp(){if(dM)return sb;dM=1;var n=mx(),a=TG(),i=a(n);return sb=i,sb}var lb,hM;function Zi(){if(hM)return lb;hM=1;function n(a){return a}return lb=n,lb}var ub,pM;function qj(){if(pM)return ub;pM=1;var n=Zi();function a(i){return typeof i=="function"?i:n}return ub=a,ub}var cb,mM;function zj(){if(mM)return cb;mM=1;var n=ix(),a=tp(),i=qj(),s=Gt();function l(f,d){var h=s(f)?n:a;return h(f,i(d))}return cb=l,cb}var fb,gM;function Uj(){return gM||(gM=1,fb=zj()),fb}var db,yM;function RG(){if(yM)return db;yM=1;var n=tp();function a(i,s){var l=[];return n(i,function(f,d,h){s(f,d,h)&&l.push(f)}),l}return db=a,db}var hb,vM;function AG(){if(vM)return hb;vM=1;var n="__lodash_hash_undefined__";function a(i){return this.__data__.set(i,n),this}return hb=a,hb}var pb,bM;function NG(){if(bM)return pb;bM=1;function n(a){return this.__data__.has(a)}return pb=n,pb}var mb,_M;function jj(){if(_M)return mb;_M=1;var n=ox(),a=AG(),i=NG();function s(l){var f=-1,d=l==null?0:l.length;for(this.__data__=new n;++f<d;)this.add(l[f])}return s.prototype.add=s.prototype.push=a,s.prototype.has=i,mb=s,mb}var gb,SM;function DG(){if(SM)return gb;SM=1;function n(a,i){for(var s=-1,l=a==null?0:a.length;++s<l;)if(i(a[s],s,a))return!0;return!1}return gb=n,gb}var yb,xM;function Lj(){if(xM)return yb;xM=1;function n(a,i){return a.has(i)}return yb=n,yb}var vb,EM;function Hj(){if(EM)return vb;EM=1;var n=jj(),a=DG(),i=Lj(),s=1,l=2;function f(d,h,p,m,y,v){var b=p&s,S=d.length,x=h.length;if(S!=x&&!(b&&x>S))return!1;var A=v.get(d),w=v.get(h);if(A&&w)return A==h&&w==d;var T=-1,C=!0,E=p&l?new n:void 0;for(v.set(d,h),v.set(h,d);++T<S;){var N=d[T],M=h[T];if(m)var q=b?m(M,N,T,h,d,v):m(N,M,T,d,h,v);if(q!==void 0){if(q)continue;C=!1;break}if(E){if(!a(h,function(U,H){if(!i(E,H)&&(N===U||y(N,U,p,m,v)))return E.push(H)})){C=!1;break}}else if(!(N===M||y(N,M,p,m,v))){C=!1;break}}return v.delete(d),v.delete(h),C}return vb=f,vb}var bb,wM;function CG(){if(wM)return bb;wM=1;function n(a){var i=-1,s=Array(a.size);return a.forEach(function(l,f){s[++i]=[f,l]}),s}return bb=n,bb}var _b,TM;function gx(){if(TM)return _b;TM=1;function n(a){var i=-1,s=Array(a.size);return a.forEach(function(l){s[++i]=l}),s}return _b=n,_b}var Sb,RM;function OG(){if(RM)return Sb;RM=1;var n=pl(),a=Nj(),i=hl(),s=Hj(),l=CG(),f=gx(),d=1,h=2,p="[object Boolean]",m="[object Date]",y="[object Error]",v="[object Map]",b="[object Number]",S="[object RegExp]",x="[object Set]",A="[object String]",w="[object Symbol]",T="[object ArrayBuffer]",C="[object DataView]",E=n?n.prototype:void 0,N=E?E.valueOf:void 0;function M(q,U,H,k,G,V,X){switch(H){case C:if(q.byteLength!=U.byteLength||q.byteOffset!=U.byteOffset)return!1;q=q.buffer,U=U.buffer;case T:return!(q.byteLength!=U.byteLength||!V(new a(q),new a(U)));case p:case m:case b:return i(+q,+U);case y:return q.name==U.name&&q.message==U.message;case S:case A:return q==U+"";case v:var ee=l;case x:var j=k&d;if(ee||(ee=f),q.size!=U.size&&!j)return!1;var Q=X.get(q);if(Q)return Q==U;k|=h,X.set(q,U);var L=s(ee(q),ee(U),k,G,V,X);return X.delete(q),L;case w:if(N)return N.call(q)==N.call(U)}return!1}return Sb=M,Sb}var xb,AM;function MG(){if(AM)return xb;AM=1;var n=Rj(),a=1,i=Object.prototype,s=i.hasOwnProperty;function l(f,d,h,p,m,y){var v=h&a,b=n(f),S=b.length,x=n(d),A=x.length;if(S!=A&&!v)return!1;for(var w=S;w--;){var T=b[w];if(!(v?T in d:s.call(d,T)))return!1}var C=y.get(f),E=y.get(d);if(C&&E)return C==d&&E==f;var N=!0;y.set(f,d),y.set(d,f);for(var M=v;++w<S;){T=b[w];var q=f[T],U=d[T];if(p)var H=v?p(U,q,T,d,f,y):p(q,U,T,f,d,y);if(!(H===void 0?q===U||m(q,U,h,p,y):H)){N=!1;break}M||(M=T=="constructor")}if(N&&!M){var k=f.constructor,G=d.constructor;k!=G&&"constructor"in f&&"constructor"in d&&!(typeof k=="function"&&k instanceof k&&typeof G=="function"&&G instanceof G)&&(N=!1)}return y.delete(f),y.delete(d),N}return xb=l,xb}var Eb,NM;function qG(){if(NM)return Eb;NM=1;var n=Zh(),a=Hj(),i=OG(),s=MG(),l=gl(),f=Gt(),d=ml(),h=Nc(),p=1,m="[object Arguments]",y="[object Array]",v="[object Object]",b=Object.prototype,S=b.hasOwnProperty;function x(A,w,T,C,E,N){var M=f(A),q=f(w),U=M?y:l(A),H=q?y:l(w);U=U==m?v:U,H=H==m?v:H;var k=U==v,G=H==v,V=U==H;if(V&&d(A)){if(!d(w))return!1;M=!0,k=!1}if(V&&!k)return N||(N=new n),M||h(A)?a(A,w,T,C,E,N):i(A,w,U,T,C,E,N);if(!(T&p)){var X=k&&S.call(A,"__wrapped__"),ee=G&&S.call(w,"__wrapped__");if(X||ee){var j=X?A.value():A,Q=ee?w.value():w;return N||(N=new n),E(j,Q,T,C,N)}}return V?(N||(N=new n),s(A,w,T,C,E,N)):!1}return Eb=x,Eb}var wb,DM;function kj(){if(DM)return wb;DM=1;var n=qG(),a=ma();function i(s,l,f,d,h){return s===l?!0:s==null||l==null||!a(s)&&!a(l)?s!==s&&l!==l:n(s,l,f,d,i,h)}return wb=i,wb}var Tb,CM;function zG(){if(CM)return Tb;CM=1;var n=Zh(),a=kj(),i=1,s=2;function l(f,d,h,p){var m=h.length,y=m,v=!p;if(f==null)return!y;for(f=Object(f);m--;){var b=h[m];if(v&&b[2]?b[1]!==f[b[0]]:!(b[0]in f))return!1}for(;++m<y;){b=h[m];var S=b[0],x=f[S],A=b[1];if(v&&b[2]){if(x===void 0&&!(S in f))return!1}else{var w=new n;if(p)var T=p(x,A,S,f,d,w);if(!(T===void 0?a(A,x,i|s,p,w):T))return!1}}return!0}return Tb=l,Tb}var Rb,OM;function Vj(){if(OM)return Rb;OM=1;var n=gr();function a(i){return i===i&&!n(i)}return Rb=a,Rb}var Ab,MM;function UG(){if(MM)return Ab;MM=1;var n=Vj(),a=Po();function i(s){for(var l=a(s),f=l.length;f--;){var d=l[f],h=s[d];l[f]=[d,h,n(h)]}return l}return Ab=i,Ab}var Nb,qM;function Bj(){if(qM)return Nb;qM=1;function n(a,i){return function(s){return s==null?!1:s[a]===i&&(i!==void 0||a in Object(s))}}return Nb=n,Nb}var Db,zM;function jG(){if(zM)return Db;zM=1;var n=zG(),a=UG(),i=Bj();function s(l){var f=a(l);return f.length==1&&f[0][2]?i(f[0][0],f[0][1]):function(d){return d===l||n(d,l,f)}}return Db=s,Db}var Cb,UM;function yl(){if(UM)return Cb;UM=1;var n=$i(),a=ma(),i="[object Symbol]";function s(l){return typeof l=="symbol"||a(l)&&n(l)==i}return Cb=s,Cb}var Ob,jM;function yx(){if(jM)return Ob;jM=1;var n=Gt(),a=yl(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function l(f,d){if(n(f))return!1;var h=typeof f;return h=="number"||h=="symbol"||h=="boolean"||f==null||a(f)?!0:s.test(f)||!i.test(f)||d!=null&&f in Object(d)}return Ob=l,Ob}var Mb,LM;function LG(){if(LM)return Mb;LM=1;var n=ox(),a="Expected a function";function i(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new TypeError(a);var f=function(){var d=arguments,h=l?l.apply(this,d):d[0],p=f.cache;if(p.has(h))return p.get(h);var m=s.apply(this,d);return f.cache=p.set(h,m)||p,m};return f.cache=new(i.Cache||n),f}return i.Cache=n,Mb=i,Mb}var qb,HM;function HG(){if(HM)return qb;HM=1;var n=LG(),a=500;function i(s){var l=n(s,function(d){return f.size===a&&f.clear(),d}),f=l.cache;return l}return qb=i,qb}var zb,kM;function kG(){if(kM)return zb;kM=1;var n=HG(),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=n(function(l){var f=[];return l.charCodeAt(0)===46&&f.push(""),l.replace(a,function(d,h,p,m){f.push(p?m.replace(i,"$1"):h||d)}),f});return zb=s,zb}var Ub,VM;function np(){if(VM)return Ub;VM=1;function n(a,i){for(var s=-1,l=a==null?0:a.length,f=Array(l);++s<l;)f[s]=i(a[s],s,a);return f}return Ub=n,Ub}var jb,BM;function VG(){if(BM)return jb;BM=1;var n=pl(),a=np(),i=Gt(),s=yl(),l=n?n.prototype:void 0,f=l?l.toString:void 0;function d(h){if(typeof h=="string")return h;if(i(h))return a(h,d)+"";if(s(h))return f?f.call(h):"";var p=h+"";return p=="0"&&1/h==-1/0?"-0":p}return jb=d,jb}var Lb,IM;function Ij(){if(IM)return Lb;IM=1;var n=VG();function a(i){return i==null?"":n(i)}return Lb=a,Lb}var Hb,GM;function rp(){if(GM)return Hb;GM=1;var n=Gt(),a=yx(),i=kG(),s=Ij();function l(f,d){return n(f)?f:a(f,d)?[f]:i(s(f))}return Hb=l,Hb}var kb,YM;function Dc(){if(YM)return kb;YM=1;var n=yl();function a(i){if(typeof i=="string"||n(i))return i;var s=i+"";return s=="0"&&1/i==-1/0?"-0":s}return kb=a,kb}var Vb,$M;function ap(){if($M)return Vb;$M=1;var n=rp(),a=Dc();function i(s,l){l=n(l,s);for(var f=0,d=l.length;s!=null&&f<d;)s=s[a(l[f++])];return f&&f==d?s:void 0}return Vb=i,Vb}var Bb,XM;function BG(){if(XM)return Bb;XM=1;var n=ap();function a(i,s,l){var f=i==null?void 0:n(i,s);return f===void 0?l:f}return Bb=a,Bb}var Ib,PM;function IG(){if(PM)return Ib;PM=1;function n(a,i){return a!=null&&i in Object(a)}return Ib=n,Ib}var Gb,ZM;function Gj(){if(ZM)return Gb;ZM=1;var n=rp(),a=Ac(),i=Gt(),s=Jh(),l=sx(),f=Dc();function d(h,p,m){p=n(p,h);for(var y=-1,v=p.length,b=!1;++y<v;){var S=f(p[y]);if(!(b=h!=null&&m(h,S)))break;h=h[S]}return b||++y!=v?b:(v=h==null?0:h.length,!!v&&l(v)&&s(S,v)&&(i(h)||a(h)))}return Gb=d,Gb}var Yb,QM;function Yj(){if(QM)return Yb;QM=1;var n=IG(),a=Gj();function i(s,l){return s!=null&&a(s,l,n)}return Yb=i,Yb}var $b,FM;function GG(){if(FM)return $b;FM=1;var n=kj(),a=BG(),i=Yj(),s=yx(),l=Vj(),f=Bj(),d=Dc(),h=1,p=2;function m(y,v){return s(y)&&l(v)?f(d(y),v):function(b){var S=a(b,y);return S===void 0&&S===v?i(b,y):n(v,S,h|p)}}return $b=m,$b}var Xb,JM;function $j(){if(JM)return Xb;JM=1;function n(a){return function(i){return i?.[a]}}return Xb=n,Xb}var Pb,KM;function YG(){if(KM)return Pb;KM=1;var n=ap();function a(i){return function(s){return n(s,i)}}return Pb=a,Pb}var Zb,WM;function $G(){if(WM)return Zb;WM=1;var n=$j(),a=YG(),i=yx(),s=Dc();function l(f){return i(f)?n(s(f)):a(f)}return Zb=l,Zb}var Qb,eq;function Fa(){if(eq)return Qb;eq=1;var n=jG(),a=GG(),i=Zi(),s=Gt(),l=$G();function f(d){return typeof d=="function"?d:d==null?i:typeof d=="object"?s(d)?a(d[0],d[1]):n(d):l(d)}return Qb=f,Qb}var Fb,tq;function Xj(){if(tq)return Fb;tq=1;var n=xj(),a=RG(),i=Fa(),s=Gt();function l(f,d){var h=s(f)?n:a;return h(f,i(d,3))}return Fb=l,Fb}var Jb,nq;function XG(){if(nq)return Jb;nq=1;var n=Object.prototype,a=n.hasOwnProperty;function i(s,l){return s!=null&&a.call(s,l)}return Jb=i,Jb}var Kb,rq;function Pj(){if(rq)return Kb;rq=1;var n=XG(),a=Gj();function i(s,l){return s!=null&&a(s,l,n)}return Kb=i,Kb}var Wb,aq;function PG(){if(aq)return Wb;aq=1;var n=ux(),a=gl(),i=Ac(),s=Gt(),l=Qa(),f=ml(),d=Wh(),h=Nc(),p="[object Map]",m="[object Set]",y=Object.prototype,v=y.hasOwnProperty;function b(S){if(S==null)return!0;if(l(S)&&(s(S)||typeof S=="string"||typeof S.splice=="function"||f(S)||h(S)||i(S)))return!S.length;var x=a(S);if(x==p||x==m)return!S.size;if(d(S))return!n(S).length;for(var A in S)if(v.call(S,A))return!1;return!0}return Wb=b,Wb}var e1,oq;function Zj(){if(oq)return e1;oq=1;function n(a){return a===void 0}return e1=n,e1}var t1,iq;function Qj(){if(iq)return t1;iq=1;var n=tp(),a=Qa();function i(s,l){var f=-1,d=a(s)?Array(s.length):[];return n(s,function(h,p,m){d[++f]=l(h,p,m)}),d}return t1=i,t1}var n1,sq;function Fj(){if(sq)return n1;sq=1;var n=np(),a=Fa(),i=Qj(),s=Gt();function l(f,d){var h=s(f)?n:i;return h(f,a(d,3))}return n1=l,n1}var r1,lq;function ZG(){if(lq)return r1;lq=1;function n(a,i,s,l){var f=-1,d=a==null?0:a.length;for(l&&d&&(s=a[++f]);++f<d;)s=i(s,a[f],f,a);return s}return r1=n,r1}var a1,uq;function QG(){if(uq)return a1;uq=1;function n(a,i,s,l,f){return f(a,function(d,h,p){s=l?(l=!1,d):i(s,d,h,p)}),s}return a1=n,a1}var o1,cq;function Jj(){if(cq)return o1;cq=1;var n=ZG(),a=tp(),i=Fa(),s=QG(),l=Gt();function f(d,h,p){var m=l(d)?n:s,y=arguments.length<3;return m(d,i(h,4),p,y,a)}return o1=f,o1}var i1,fq;function FG(){if(fq)return i1;fq=1;var n=$i(),a=Gt(),i=ma(),s="[object String]";function l(f){return typeof f=="string"||!a(f)&&i(f)&&n(f)==s}return i1=l,i1}var s1,dq;function JG(){if(dq)return s1;dq=1;var n=$j(),a=n("length");return s1=a,s1}var l1,hq;function KG(){if(hq)return l1;hq=1;var n="\\ud800-\\udfff",a="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",l=a+i+s,f="\\ufe0e\\ufe0f",d="\\u200d",h=RegExp("["+d+n+l+f+"]");function p(m){return h.test(m)}return l1=p,l1}var u1,pq;function WG(){if(pq)return u1;pq=1;var n="\\ud800-\\udfff",a="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",l=a+i+s,f="\\ufe0e\\ufe0f",d="["+n+"]",h="["+l+"]",p="\\ud83c[\\udffb-\\udfff]",m="(?:"+h+"|"+p+")",y="[^"+n+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",S="\\u200d",x=m+"?",A="["+f+"]?",w="(?:"+S+"(?:"+[y,v,b].join("|")+")"+A+x+")*",T=A+x+w,C="(?:"+[y+h+"?",h,v,b,d].join("|")+")",E=RegExp(p+"(?="+p+")|"+C+T,"g");function N(M){for(var q=E.lastIndex=0;E.test(M);)++q;return q}return u1=N,u1}var c1,mq;function eY(){if(mq)return c1;mq=1;var n=JG(),a=KG(),i=WG();function s(l){return a(l)?i(l):n(l)}return c1=s,c1}var f1,gq;function tY(){if(gq)return f1;gq=1;var n=ux(),a=gl(),i=Qa(),s=FG(),l=eY(),f="[object Map]",d="[object Set]";function h(p){if(p==null)return 0;if(i(p))return s(p)?l(p):p.length;var m=a(p);return m==f||m==d?p.size:n(p).length}return f1=h,f1}var d1,yq;function nY(){if(yq)return d1;yq=1;var n=ix(),a=Cj(),i=mx(),s=Fa(),l=ep(),f=Gt(),d=ml(),h=Tc(),p=gr(),m=Nc();function y(v,b,S){var x=f(v),A=x||d(v)||m(v);if(b=s(b,4),S==null){var w=v&&v.constructor;A?S=x?new w:[]:p(v)?S=h(w)?a(l(v)):{}:S={}}return(A?n:i)(v,function(T,C,E){return b(S,T,C,E)}),S}return d1=y,d1}var h1,vq;function rY(){if(vq)return h1;vq=1;var n=pl(),a=Ac(),i=Gt(),s=n?n.isConcatSpreadable:void 0;function l(f){return i(f)||a(f)||!!(s&&f&&f[s])}return h1=l,h1}var p1,bq;function vx(){if(bq)return p1;bq=1;var n=fx(),a=rY();function i(s,l,f,d,h){var p=-1,m=s.length;for(f||(f=a),h||(h=[]);++p<m;){var y=s[p];l>0&&f(y)?l>1?i(y,l-1,f,d,h):n(h,y):d||(h[h.length]=y)}return h}return p1=i,p1}var m1,_q;function aY(){if(_q)return m1;_q=1;function n(a,i,s){switch(s.length){case 0:return a.call(i);case 1:return a.call(i,s[0]);case 2:return a.call(i,s[0],s[1]);case 3:return a.call(i,s[0],s[1],s[2])}return a.apply(i,s)}return m1=n,m1}var g1,Sq;function Kj(){if(Sq)return g1;Sq=1;var n=aY(),a=Math.max;function i(s,l,f){return l=a(l===void 0?s.length-1:l,0),function(){for(var d=arguments,h=-1,p=a(d.length-l,0),m=Array(p);++h<p;)m[h]=d[l+h];h=-1;for(var y=Array(l+1);++h<l;)y[h]=d[h];return y[l]=f(m),n(s,this,y)}}return g1=i,g1}var y1,xq;function oY(){if(xq)return y1;xq=1;var n=hx(),a=yj(),i=Zi(),s=a?function(l,f){return a(l,"toString",{configurable:!0,enumerable:!1,value:n(f),writable:!0})}:i;return y1=s,y1}var v1,Eq;function iY(){if(Eq)return v1;Eq=1;var n=800,a=16,i=Date.now;function s(l){var f=0,d=0;return function(){var h=i(),p=a-(h-d);if(d=h,p>0){if(++f>=n)return arguments[0]}else f=0;return l.apply(void 0,arguments)}}return v1=s,v1}var b1,wq;function Wj(){if(wq)return b1;wq=1;var n=oY(),a=iY(),i=a(n);return b1=i,b1}var _1,Tq;function op(){if(Tq)return _1;Tq=1;var n=Zi(),a=Kj(),i=Wj();function s(l,f){return i(a(l,f,n),l+"")}return _1=s,_1}var S1,Rq;function e5(){if(Rq)return S1;Rq=1;function n(a,i,s,l){for(var f=a.length,d=s+(l?1:-1);l?d--:++d<f;)if(i(a[d],d,a))return d;return-1}return S1=n,S1}var x1,Aq;function sY(){if(Aq)return x1;Aq=1;function n(a){return a!==a}return x1=n,x1}var E1,Nq;function lY(){if(Nq)return E1;Nq=1;function n(a,i,s){for(var l=s-1,f=a.length;++l<f;)if(a[l]===i)return l;return-1}return E1=n,E1}var w1,Dq;function uY(){if(Dq)return w1;Dq=1;var n=e5(),a=sY(),i=lY();function s(l,f,d){return f===f?i(l,f,d):n(l,a,d)}return w1=s,w1}var T1,Cq;function cY(){if(Cq)return T1;Cq=1;var n=uY();function a(i,s){var l=i==null?0:i.length;return!!l&&n(i,s,0)>-1}return T1=a,T1}var R1,Oq;function fY(){if(Oq)return R1;Oq=1;function n(a,i,s){for(var l=-1,f=a==null?0:a.length;++l<f;)if(s(i,a[l]))return!0;return!1}return R1=n,R1}var A1,Mq;function dY(){if(Mq)return A1;Mq=1;function n(){}return A1=n,A1}var N1,qq;function hY(){if(qq)return N1;qq=1;var n=Aj(),a=dY(),i=gx(),s=1/0,l=n&&1/i(new n([,-0]))[1]==s?function(f){return new n(f)}:a;return N1=l,N1}var D1,zq;function pY(){if(zq)return D1;zq=1;var n=jj(),a=cY(),i=fY(),s=Lj(),l=hY(),f=gx(),d=200;function h(p,m,y){var v=-1,b=a,S=p.length,x=!0,A=[],w=A;if(y)x=!1,b=i;else if(S>=d){var T=m?null:l(p);if(T)return f(T);x=!1,b=s,w=new n}else w=m?[]:A;e:for(;++v<S;){var C=p[v],E=m?m(C):C;if(C=y||C!==0?C:0,x&&E===E){for(var N=w.length;N--;)if(w[N]===E)continue e;m&&w.push(E),A.push(C)}else b(w,E,y)||(w!==A&&w.push(E),A.push(C))}return A}return D1=h,D1}var C1,Uq;function t5(){if(Uq)return C1;Uq=1;var n=Qa(),a=ma();function i(s){return a(s)&&n(s)}return C1=i,C1}var O1,jq;function mY(){if(jq)return O1;jq=1;var n=vx(),a=op(),i=pY(),s=t5(),l=a(function(f){return i(n(f,1,s,!0))});return O1=l,O1}var M1,Lq;function gY(){if(Lq)return M1;Lq=1;var n=np();function a(i,s){return n(s,function(l){return i[l]})}return M1=a,M1}var q1,Hq;function n5(){if(Hq)return q1;Hq=1;var n=gY(),a=Po();function i(s){return s==null?[]:n(s,a(s))}return q1=i,q1}var z1,kq;function yr(){if(kq)return z1;kq=1;var n;if(typeof rx=="function")try{n={clone:EG(),constant:hx(),each:Uj(),filter:Xj(),has:Pj(),isArray:Gt(),isEmpty:PG(),isFunction:Tc(),isUndefined:Zj(),keys:Po(),map:Fj(),reduce:Jj(),size:tY(),transform:nY(),union:mY(),values:n5()}}catch{}return n||(n=window._),z1=n,z1}var U1,Vq;function bx(){if(Vq)return U1;Vq=1;var n=yr();U1=l;var a="\0",i="\0",s="";function l(y){this._isDirected=n.has(y,"directed")?y.directed:!0,this._isMultigraph=n.has(y,"multigraph")?y.multigraph:!1,this._isCompound=n.has(y,"compound")?y.compound:!1,this._label=void 0,this._defaultNodeLabelFn=n.constant(void 0),this._defaultEdgeLabelFn=n.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}l.prototype._nodeCount=0,l.prototype._edgeCount=0,l.prototype.isDirected=function(){return this._isDirected},l.prototype.isMultigraph=function(){return this._isMultigraph},l.prototype.isCompound=function(){return this._isCompound},l.prototype.setGraph=function(y){return this._label=y,this},l.prototype.graph=function(){return this._label},l.prototype.setDefaultNodeLabel=function(y){return n.isFunction(y)||(y=n.constant(y)),this._defaultNodeLabelFn=y,this},l.prototype.nodeCount=function(){return this._nodeCount},l.prototype.nodes=function(){return n.keys(this._nodes)},l.prototype.sources=function(){var y=this;return n.filter(this.nodes(),function(v){return n.isEmpty(y._in[v])})},l.prototype.sinks=function(){var y=this;return n.filter(this.nodes(),function(v){return n.isEmpty(y._out[v])})},l.prototype.setNodes=function(y,v){var b=arguments,S=this;return n.each(y,function(x){b.length>1?S.setNode(x,v):S.setNode(x)}),this},l.prototype.setNode=function(y,v){return n.has(this._nodes,y)?(arguments.length>1&&(this._nodes[y]=v),this):(this._nodes[y]=arguments.length>1?v:this._defaultNodeLabelFn(y),this._isCompound&&(this._parent[y]=i,this._children[y]={},this._children[i][y]=!0),this._in[y]={},this._preds[y]={},this._out[y]={},this._sucs[y]={},++this._nodeCount,this)},l.prototype.node=function(y){return this._nodes[y]},l.prototype.hasNode=function(y){return n.has(this._nodes,y)},l.prototype.removeNode=function(y){var v=this;if(n.has(this._nodes,y)){var b=function(S){v.removeEdge(v._edgeObjs[S])};delete this._nodes[y],this._isCompound&&(this._removeFromParentsChildList(y),delete this._parent[y],n.each(this.children(y),function(S){v.setParent(S)}),delete this._children[y]),n.each(n.keys(this._in[y]),b),delete this._in[y],delete this._preds[y],n.each(n.keys(this._out[y]),b),delete this._out[y],delete this._sucs[y],--this._nodeCount}return this},l.prototype.setParent=function(y,v){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(n.isUndefined(v))v=i;else{v+="";for(var b=v;!n.isUndefined(b);b=this.parent(b))if(b===y)throw new Error("Setting "+v+" as parent of "+y+" would create a cycle");this.setNode(v)}return this.setNode(y),this._removeFromParentsChildList(y),this._parent[y]=v,this._children[v][y]=!0,this},l.prototype._removeFromParentsChildList=function(y){delete this._children[this._parent[y]][y]},l.prototype.parent=function(y){if(this._isCompound){var v=this._parent[y];if(v!==i)return v}},l.prototype.children=function(y){if(n.isUndefined(y)&&(y=i),this._isCompound){var v=this._children[y];if(v)return n.keys(v)}else{if(y===i)return this.nodes();if(this.hasNode(y))return[]}},l.prototype.predecessors=function(y){var v=this._preds[y];if(v)return n.keys(v)},l.prototype.successors=function(y){var v=this._sucs[y];if(v)return n.keys(v)},l.prototype.neighbors=function(y){var v=this.predecessors(y);if(v)return n.union(v,this.successors(y))},l.prototype.isLeaf=function(y){var v;return this.isDirected()?v=this.successors(y):v=this.neighbors(y),v.length===0},l.prototype.filterNodes=function(y){var v=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});v.setGraph(this.graph());var b=this;n.each(this._nodes,function(A,w){y(w)&&v.setNode(w,A)}),n.each(this._edgeObjs,function(A){v.hasNode(A.v)&&v.hasNode(A.w)&&v.setEdge(A,b.edge(A))});var S={};function x(A){var w=b.parent(A);return w===void 0||v.hasNode(w)?(S[A]=w,w):w in S?S[w]:x(w)}return this._isCompound&&n.each(v.nodes(),function(A){v.setParent(A,x(A))}),v},l.prototype.setDefaultEdgeLabel=function(y){return n.isFunction(y)||(y=n.constant(y)),this._defaultEdgeLabelFn=y,this},l.prototype.edgeCount=function(){return this._edgeCount},l.prototype.edges=function(){return n.values(this._edgeObjs)},l.prototype.setPath=function(y,v){var b=this,S=arguments;return n.reduce(y,function(x,A){return S.length>1?b.setEdge(x,A,v):b.setEdge(x,A),A}),this},l.prototype.setEdge=function(){var y,v,b,S,x=!1,A=arguments[0];typeof A=="object"&&A!==null&&"v"in A?(y=A.v,v=A.w,b=A.name,arguments.length===2&&(S=arguments[1],x=!0)):(y=A,v=arguments[1],b=arguments[3],arguments.length>2&&(S=arguments[2],x=!0)),y=""+y,v=""+v,n.isUndefined(b)||(b=""+b);var w=h(this._isDirected,y,v,b);if(n.has(this._edgeLabels,w))return x&&(this._edgeLabels[w]=S),this;if(!n.isUndefined(b)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(y),this.setNode(v),this._edgeLabels[w]=x?S:this._defaultEdgeLabelFn(y,v,b);var T=p(this._isDirected,y,v,b);return y=T.v,v=T.w,Object.freeze(T),this._edgeObjs[w]=T,f(this._preds[v],y),f(this._sucs[y],v),this._in[v][w]=T,this._out[y][w]=T,this._edgeCount++,this},l.prototype.edge=function(y,v,b){var S=arguments.length===1?m(this._isDirected,arguments[0]):h(this._isDirected,y,v,b);return this._edgeLabels[S]},l.prototype.hasEdge=function(y,v,b){var S=arguments.length===1?m(this._isDirected,arguments[0]):h(this._isDirected,y,v,b);return n.has(this._edgeLabels,S)},l.prototype.removeEdge=function(y,v,b){var S=arguments.length===1?m(this._isDirected,arguments[0]):h(this._isDirected,y,v,b),x=this._edgeObjs[S];return x&&(y=x.v,v=x.w,delete this._edgeLabels[S],delete this._edgeObjs[S],d(this._preds[v],y),d(this._sucs[y],v),delete this._in[v][S],delete this._out[y][S],this._edgeCount--),this},l.prototype.inEdges=function(y,v){var b=this._in[y];if(b){var S=n.values(b);return v?n.filter(S,function(x){return x.v===v}):S}},l.prototype.outEdges=function(y,v){var b=this._out[y];if(b){var S=n.values(b);return v?n.filter(S,function(x){return x.w===v}):S}},l.prototype.nodeEdges=function(y,v){var b=this.inEdges(y,v);if(b)return b.concat(this.outEdges(y,v))};function f(y,v){y[v]?y[v]++:y[v]=1}function d(y,v){--y[v]||delete y[v]}function h(y,v,b,S){var x=""+v,A=""+b;if(!y&&x>A){var w=x;x=A,A=w}return x+s+A+s+(n.isUndefined(S)?a:S)}function p(y,v,b,S){var x=""+v,A=""+b;if(!y&&x>A){var w=x;x=A,A=w}var T={v:x,w:A};return S&&(T.name=S),T}function m(y,v){return h(y,v.v,v.w,v.name)}return U1}var j1,Bq;function yY(){return Bq||(Bq=1,j1="2.1.8"),j1}var L1,Iq;function vY(){return Iq||(Iq=1,L1={Graph:bx(),version:yY()}),L1}var H1,Gq;function bY(){if(Gq)return H1;Gq=1;var n=yr(),a=bx();H1={write:i,read:f};function i(d){var h={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:s(d),edges:l(d)};return n.isUndefined(d.graph())||(h.value=n.clone(d.graph())),h}function s(d){return n.map(d.nodes(),function(h){var p=d.node(h),m=d.parent(h),y={v:h};return n.isUndefined(p)||(y.value=p),n.isUndefined(m)||(y.parent=m),y})}function l(d){return n.map(d.edges(),function(h){var p=d.edge(h),m={v:h.v,w:h.w};return n.isUndefined(h.name)||(m.name=h.name),n.isUndefined(p)||(m.value=p),m})}function f(d){var h=new a(d.options).setGraph(d.value);return n.each(d.nodes,function(p){h.setNode(p.v,p.value),p.parent&&h.setParent(p.v,p.parent)}),n.each(d.edges,function(p){h.setEdge({v:p.v,w:p.w,name:p.name},p.value)}),h}return H1}var k1,Yq;function _Y(){if(Yq)return k1;Yq=1;var n=yr();k1=a;function a(i){var s={},l=[],f;function d(h){n.has(s,h)||(s[h]=!0,f.push(h),n.each(i.successors(h),d),n.each(i.predecessors(h),d))}return n.each(i.nodes(),function(h){f=[],d(h),f.length&&l.push(f)}),l}return k1}var V1,$q;function r5(){if($q)return V1;$q=1;var n=yr();V1=a;function a(){this._arr=[],this._keyIndices={}}return a.prototype.size=function(){return this._arr.length},a.prototype.keys=function(){return this._arr.map(function(i){return i.key})},a.prototype.has=function(i){return n.has(this._keyIndices,i)},a.prototype.priority=function(i){var s=this._keyIndices[i];if(s!==void 0)return this._arr[s].priority},a.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},a.prototype.add=function(i,s){var l=this._keyIndices;if(i=String(i),!n.has(l,i)){var f=this._arr,d=f.length;return l[i]=d,f.push({key:i,priority:s}),this._decrease(d),!0}return!1},a.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var i=this._arr.pop();return delete this._keyIndices[i.key],this._heapify(0),i.key},a.prototype.decrease=function(i,s){var l=this._keyIndices[i];if(s>this._arr[l].priority)throw new Error("New priority is greater than current priority. Key: "+i+" Old: "+this._arr[l].priority+" New: "+s);this._arr[l].priority=s,this._decrease(l)},a.prototype._heapify=function(i){var s=this._arr,l=2*i,f=l+1,d=i;l<s.length&&(d=s[l].priority<s[d].priority?l:d,f<s.length&&(d=s[f].priority<s[d].priority?f:d),d!==i&&(this._swap(i,d),this._heapify(d)))},a.prototype._decrease=function(i){for(var s=this._arr,l=s[i].priority,f;i!==0&&(f=i>>1,!(s[f].priority<l));)this._swap(i,f),i=f},a.prototype._swap=function(i,s){var l=this._arr,f=this._keyIndices,d=l[i],h=l[s];l[i]=h,l[s]=d,f[h.key]=i,f[d.key]=s},V1}var B1,Xq;function a5(){if(Xq)return B1;Xq=1;var n=yr(),a=r5();B1=s;var i=n.constant(1);function s(f,d,h,p){return l(f,String(d),h||i,p||function(m){return f.outEdges(m)})}function l(f,d,h,p){var m={},y=new a,v,b,S=function(x){var A=x.v!==v?x.v:x.w,w=m[A],T=h(x),C=b.distance+T;if(T<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+x+" Weight: "+T);C<w.distance&&(w.distance=C,w.predecessor=v,y.decrease(A,C))};for(f.nodes().forEach(function(x){var A=x===d?0:Number.POSITIVE_INFINITY;m[x]={distance:A},y.add(x,A)});y.size()>0&&(v=y.removeMin(),b=m[v],b.distance!==Number.POSITIVE_INFINITY);)p(v).forEach(S);return m}return B1}var I1,Pq;function SY(){if(Pq)return I1;Pq=1;var n=a5(),a=yr();I1=i;function i(s,l,f){return a.transform(s.nodes(),function(d,h){d[h]=n(s,h,l,f)},{})}return I1}var G1,Zq;function o5(){if(Zq)return G1;Zq=1;var n=yr();G1=a;function a(i){var s=0,l=[],f={},d=[];function h(p){var m=f[p]={onStack:!0,lowlink:s,index:s++};if(l.push(p),i.successors(p).forEach(function(b){n.has(f,b)?f[b].onStack&&(m.lowlink=Math.min(m.lowlink,f[b].index)):(h(b),m.lowlink=Math.min(m.lowlink,f[b].lowlink))}),m.lowlink===m.index){var y=[],v;do v=l.pop(),f[v].onStack=!1,y.push(v);while(p!==v);d.push(y)}}return i.nodes().forEach(function(p){n.has(f,p)||h(p)}),d}return G1}var Y1,Qq;function xY(){if(Qq)return Y1;Qq=1;var n=yr(),a=o5();Y1=i;function i(s){return n.filter(a(s),function(l){return l.length>1||l.length===1&&s.hasEdge(l[0],l[0])})}return Y1}var $1,Fq;function EY(){if(Fq)return $1;Fq=1;var n=yr();$1=i;var a=n.constant(1);function i(l,f,d){return s(l,f||a,d||function(h){return l.outEdges(h)})}function s(l,f,d){var h={},p=l.nodes();return p.forEach(function(m){h[m]={},h[m][m]={distance:0},p.forEach(function(y){m!==y&&(h[m][y]={distance:Number.POSITIVE_INFINITY})}),d(m).forEach(function(y){var v=y.v===m?y.w:y.v,b=f(y);h[m][v]={distance:b,predecessor:m}})}),p.forEach(function(m){var y=h[m];p.forEach(function(v){var b=h[v];p.forEach(function(S){var x=b[m],A=y[S],w=b[S],T=x.distance+A.distance;T<w.distance&&(w.distance=T,w.predecessor=A.predecessor)})})}),h}return $1}var X1,Jq;function i5(){if(Jq)return X1;Jq=1;var n=yr();X1=a,a.CycleException=i;function a(s){var l={},f={},d=[];function h(p){if(n.has(f,p))throw new i;n.has(l,p)||(f[p]=!0,l[p]=!0,n.each(s.predecessors(p),h),delete f[p],d.push(p))}if(n.each(s.sinks(),h),n.size(l)!==s.nodeCount())throw new i;return d}function i(){}return i.prototype=new Error,X1}var P1,Kq;function wY(){if(Kq)return P1;Kq=1;var n=i5();P1=a;function a(i){try{n(i)}catch(s){if(s instanceof n.CycleException)return!1;throw s}return!0}return P1}var Z1,Wq;function s5(){if(Wq)return Z1;Wq=1;var n=yr();Z1=a;function a(s,l,f){n.isArray(l)||(l=[l]);var d=(s.isDirected()?s.successors:s.neighbors).bind(s),h=[],p={};return n.each(l,function(m){if(!s.hasNode(m))throw new Error("Graph does not have node: "+m);i(s,m,f==="post",p,d,h)}),h}function i(s,l,f,d,h,p){n.has(d,l)||(d[l]=!0,f||p.push(l),n.each(h(l),function(m){i(s,m,f,d,h,p)}),f&&p.push(l))}return Z1}var Q1,e3;function TY(){if(e3)return Q1;e3=1;var n=s5();Q1=a;function a(i,s){return n(i,s,"post")}return Q1}var F1,t3;function RY(){if(t3)return F1;t3=1;var n=s5();F1=a;function a(i,s){return n(i,s,"pre")}return F1}var J1,n3;function AY(){if(n3)return J1;n3=1;var n=yr(),a=bx(),i=r5();J1=s;function s(l,f){var d=new a,h={},p=new i,m;function y(b){var S=b.v===m?b.w:b.v,x=p.priority(S);if(x!==void 0){var A=f(b);A<x&&(h[S]=m,p.decrease(S,A))}}if(l.nodeCount()===0)return d;n.each(l.nodes(),function(b){p.add(b,Number.POSITIVE_INFINITY),d.setNode(b)}),p.decrease(l.nodes()[0],0);for(var v=!1;p.size()>0;){if(m=p.removeMin(),n.has(h,m))d.setEdge(m,h[m]);else{if(v)throw new Error("Input graph is not connected: "+l);v=!0}l.nodeEdges(m).forEach(y)}return d}return J1}var K1,r3;function NY(){return r3||(r3=1,K1={components:_Y(),dijkstra:a5(),dijkstraAll:SY(),findCycles:xY(),floydWarshall:EY(),isAcyclic:wY(),postorder:TY(),preorder:RY(),prim:AY(),tarjan:o5(),topsort:i5()}),K1}var W1,a3;function DY(){if(a3)return W1;a3=1;var n=vY();return W1={Graph:n.Graph,json:bY(),alg:NY(),version:n.version},W1}var e_,o3;function zr(){if(o3)return e_;o3=1;var n;if(typeof rx=="function")try{n=DY()}catch{}return n||(n=window.graphlib),e_=n,e_}var t_,i3;function CY(){if(i3)return t_;i3=1;var n=Mj(),a=1,i=4;function s(l){return n(l,a|i)}return t_=s,t_}var n_,s3;function ip(){if(s3)return n_;s3=1;var n=hl(),a=Qa(),i=Jh(),s=gr();function l(f,d,h){if(!s(h))return!1;var p=typeof d;return(p=="number"?a(h)&&i(d,h.length):p=="string"&&d in h)?n(h[d],f):!1}return n_=l,n_}var r_,l3;function OY(){if(l3)return r_;l3=1;var n=op(),a=hl(),i=ip(),s=Pi(),l=Object.prototype,f=l.hasOwnProperty,d=n(function(h,p){h=Object(h);var m=-1,y=p.length,v=y>2?p[2]:void 0;for(v&&i(p[0],p[1],v)&&(y=1);++m<y;)for(var b=p[m],S=s(b),x=-1,A=S.length;++x<A;){var w=S[x],T=h[w];(T===void 0||a(T,l[w])&&!f.call(h,w))&&(h[w]=b[w])}return h});return r_=d,r_}var a_,u3;function MY(){if(u3)return a_;u3=1;var n=Fa(),a=Qa(),i=Po();function s(l){return function(f,d,h){var p=Object(f);if(!a(f)){var m=n(d,3);f=i(f),d=function(v){return m(p[v],v,p)}}var y=l(f,d,h);return y>-1?p[m?f[y]:y]:void 0}}return a_=s,a_}var o_,c3;function qY(){if(c3)return o_;c3=1;var n=/\s/;function a(i){for(var s=i.length;s--&&n.test(i.charAt(s)););return s}return o_=a,o_}var i_,f3;function zY(){if(f3)return i_;f3=1;var n=qY(),a=/^\s+/;function i(s){return s&&s.slice(0,n(s)+1).replace(a,"")}return i_=i,i_}var s_,d3;function UY(){if(d3)return s_;d3=1;var n=zY(),a=gr(),i=yl(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function p(m){if(typeof m=="number")return m;if(i(m))return s;if(a(m)){var y=typeof m.valueOf=="function"?m.valueOf():m;m=a(y)?y+"":y}if(typeof m!="string")return m===0?m:+m;m=n(m);var v=f.test(m);return v||d.test(m)?h(m.slice(2),v?2:8):l.test(m)?s:+m}return s_=p,s_}var l_,h3;function l5(){if(h3)return l_;h3=1;var n=UY(),a=1/0,i=17976931348623157e292;function s(l){if(!l)return l===0?l:0;if(l=n(l),l===a||l===-a){var f=l<0?-1:1;return f*i}return l===l?l:0}return l_=s,l_}var u_,p3;function jY(){if(p3)return u_;p3=1;var n=l5();function a(i){var s=n(i),l=s%1;return s===s?l?s-l:s:0}return u_=a,u_}var c_,m3;function LY(){if(m3)return c_;m3=1;var n=e5(),a=Fa(),i=jY(),s=Math.max;function l(f,d,h){var p=f==null?0:f.length;if(!p)return-1;var m=h==null?0:i(h);return m<0&&(m=s(p+m,0)),n(f,a(d,3),m)}return c_=l,c_}var f_,g3;function HY(){if(g3)return f_;g3=1;var n=MY(),a=LY(),i=n(a);return f_=i,f_}var d_,y3;function u5(){if(y3)return d_;y3=1;var n=vx();function a(i){var s=i==null?0:i.length;return s?n(i,1):[]}return d_=a,d_}var h_,v3;function kY(){if(v3)return h_;v3=1;var n=px(),a=qj(),i=Pi();function s(l,f){return l==null?l:n(l,a(f),i)}return h_=s,h_}var p_,b3;function VY(){if(b3)return p_;b3=1;function n(a){var i=a==null?0:a.length;return i?a[i-1]:void 0}return p_=n,p_}var m_,_3;function BY(){if(_3)return m_;_3=1;var n=Qh(),a=mx(),i=Fa();function s(l,f){var d={};return f=i(f,3),a(l,function(h,p,m){n(d,p,f(h,p,m))}),d}return m_=s,m_}var g_,S3;function _x(){if(S3)return g_;S3=1;var n=yl();function a(i,s,l){for(var f=-1,d=i.length;++f<d;){var h=i[f],p=s(h);if(p!=null&&(m===void 0?p===p&&!n(p):l(p,m)))var m=p,y=h}return y}return g_=a,g_}var y_,x3;function IY(){if(x3)return y_;x3=1;function n(a,i){return a>i}return y_=n,y_}var v_,E3;function GY(){if(E3)return v_;E3=1;var n=_x(),a=IY(),i=Zi();function s(l){return l&&l.length?n(l,i,a):void 0}return v_=s,v_}var b_,w3;function c5(){if(w3)return b_;w3=1;var n=Qh(),a=hl();function i(s,l,f){(f!==void 0&&!a(s[l],f)||f===void 0&&!(l in s))&&n(s,l,f)}return b_=i,b_}var __,T3;function YY(){if(T3)return __;T3=1;var n=$i(),a=ep(),i=ma(),s="[object Object]",l=Function.prototype,f=Object.prototype,d=l.toString,h=f.hasOwnProperty,p=d.call(Object);function m(y){if(!i(y)||n(y)!=s)return!1;var v=a(y);if(v===null)return!0;var b=h.call(v,"constructor")&&v.constructor;return typeof b=="function"&&b instanceof b&&d.call(b)==p}return __=m,__}var S_,R3;function f5(){if(R3)return S_;R3=1;function n(a,i){if(!(i==="constructor"&&typeof a[i]=="function")&&i!="__proto__")return a[i]}return S_=n,S_}var x_,A3;function $Y(){if(A3)return x_;A3=1;var n=Rc(),a=Pi();function i(s){return n(s,a(s))}return x_=i,x_}var E_,N3;function XY(){if(N3)return E_;N3=1;var n=c5(),a=_j(),i=Dj(),s=Sj(),l=Oj(),f=Ac(),d=Gt(),h=t5(),p=ml(),m=Tc(),y=gr(),v=YY(),b=Nc(),S=f5(),x=$Y();function A(w,T,C,E,N,M,q){var U=S(w,C),H=S(T,C),k=q.get(H);if(k){n(w,C,k);return}var G=M?M(U,H,C+"",w,T,q):void 0,V=G===void 0;if(V){var X=d(H),ee=!X&&p(H),j=!X&&!ee&&b(H);G=H,X||ee||j?d(U)?G=U:h(U)?G=s(U):ee?(V=!1,G=a(H,!0)):j?(V=!1,G=i(H,!0)):G=[]:v(H)||f(H)?(G=U,f(U)?G=x(U):(!y(U)||m(U))&&(G=l(H))):V=!1}V&&(q.set(H,G),N(G,H,E,M,q),q.delete(H)),n(w,C,G)}return E_=A,E_}var w_,D3;function PY(){if(D3)return w_;D3=1;var n=Zh(),a=c5(),i=px(),s=XY(),l=gr(),f=Pi(),d=f5();function h(p,m,y,v,b){p!==m&&i(m,function(S,x){if(b||(b=new n),l(S))s(p,m,x,y,h,v,b);else{var A=v?v(d(p,x),S,x+"",p,m,b):void 0;A===void 0&&(A=S),a(p,x,A)}},f)}return w_=h,w_}var T_,C3;function ZY(){if(C3)return T_;C3=1;var n=op(),a=ip();function i(s){return n(function(l,f){var d=-1,h=f.length,p=h>1?f[h-1]:void 0,m=h>2?f[2]:void 0;for(p=s.length>3&&typeof p=="function"?(h--,p):void 0,m&&a(f[0],f[1],m)&&(p=h<3?void 0:p,h=1),l=Object(l);++d<h;){var y=f[d];y&&s(l,y,d,p)}return l})}return T_=i,T_}var R_,O3;function QY(){if(O3)return R_;O3=1;var n=PY(),a=ZY(),i=a(function(s,l,f){n(s,l,f)});return R_=i,R_}var A_,M3;function d5(){if(M3)return A_;M3=1;function n(a,i){return a<i}return A_=n,A_}var N_,q3;function FY(){if(q3)return N_;q3=1;var n=_x(),a=d5(),i=Zi();function s(l){return l&&l.length?n(l,i,a):void 0}return N_=s,N_}var D_,z3;function JY(){if(z3)return D_;z3=1;var n=_x(),a=Fa(),i=d5();function s(l,f){return l&&l.length?n(l,a(f,2),i):void 0}return D_=s,D_}var C_,U3;function KY(){if(U3)return C_;U3=1;var n=jr(),a=function(){return n.Date.now()};return C_=a,C_}var O_,j3;function WY(){if(j3)return O_;j3=1;var n=Fh(),a=rp(),i=Jh(),s=gr(),l=Dc();function f(d,h,p,m){if(!s(d))return d;h=a(h,d);for(var y=-1,v=h.length,b=v-1,S=d;S!=null&&++y<v;){var x=l(h[y]),A=p;if(x==="__proto__"||x==="constructor"||x==="prototype")return d;if(y!=b){var w=S[x];A=m?m(w,x,S):void 0,A===void 0&&(A=s(w)?w:i(h[y+1])?[]:{})}n(S,x,A),S=S[x]}return d}return O_=f,O_}var M_,L3;function e$(){if(L3)return M_;L3=1;var n=ap(),a=WY(),i=rp();function s(l,f,d){for(var h=-1,p=f.length,m={};++h<p;){var y=f[h],v=n(l,y);d(v,y)&&a(m,i(y,l),v)}return m}return M_=s,M_}var q_,H3;function t$(){if(H3)return q_;H3=1;var n=e$(),a=Yj();function i(s,l){return n(s,l,function(f,d){return a(s,d)})}return q_=i,q_}var z_,k3;function n$(){if(k3)return z_;k3=1;var n=u5(),a=Kj(),i=Wj();function s(l){return i(a(l,void 0,n),l+"")}return z_=s,z_}var U_,V3;function r$(){if(V3)return U_;V3=1;var n=t$(),a=n$(),i=a(function(s,l){return s==null?{}:n(s,l)});return U_=i,U_}var j_,B3;function a$(){if(B3)return j_;B3=1;var n=Math.ceil,a=Math.max;function i(s,l,f,d){for(var h=-1,p=a(n((l-s)/(f||1)),0),m=Array(p);p--;)m[d?p:++h]=s,s+=f;return m}return j_=i,j_}var L_,I3;function o$(){if(I3)return L_;I3=1;var n=a$(),a=ip(),i=l5();function s(l){return function(f,d,h){return h&&typeof h!="number"&&a(f,d,h)&&(d=h=void 0),f=i(f),d===void 0?(d=f,f=0):d=i(d),h=h===void 0?f<d?1:-1:i(h),n(f,d,h,l)}}return L_=s,L_}var H_,G3;function i$(){if(G3)return H_;G3=1;var n=o$(),a=n();return H_=a,H_}var k_,Y3;function s$(){if(Y3)return k_;Y3=1;function n(a,i){var s=a.length;for(a.sort(i);s--;)a[s]=a[s].value;return a}return k_=n,k_}var V_,$3;function l$(){if($3)return V_;$3=1;var n=yl();function a(i,s){if(i!==s){var l=i!==void 0,f=i===null,d=i===i,h=n(i),p=s!==void 0,m=s===null,y=s===s,v=n(s);if(!m&&!v&&!h&&i>s||h&&p&&y&&!m&&!v||f&&p&&y||!l&&y||!d)return 1;if(!f&&!h&&!v&&i<s||v&&l&&d&&!f&&!h||m&&l&&d||!p&&d||!y)return-1}return 0}return V_=a,V_}var B_,X3;function u$(){if(X3)return B_;X3=1;var n=l$();function a(i,s,l){for(var f=-1,d=i.criteria,h=s.criteria,p=d.length,m=l.length;++f<p;){var y=n(d[f],h[f]);if(y){if(f>=m)return y;var v=l[f];return y*(v=="desc"?-1:1)}}return i.index-s.index}return B_=a,B_}var I_,P3;function c$(){if(P3)return I_;P3=1;var n=np(),a=ap(),i=Fa(),s=Qj(),l=s$(),f=Kh(),d=u$(),h=Zi(),p=Gt();function m(y,v,b){v.length?v=n(v,function(A){return p(A)?function(w){return a(w,A.length===1?A[0]:A)}:A}):v=[h];var S=-1;v=n(v,f(i));var x=s(y,function(A,w,T){var C=n(v,function(E){return E(A)});return{criteria:C,index:++S,value:A}});return l(x,function(A,w){return d(A,w,b)})}return I_=m,I_}var G_,Z3;function f$(){if(Z3)return G_;Z3=1;var n=vx(),a=c$(),i=op(),s=ip(),l=i(function(f,d){if(f==null)return[];var h=d.length;return h>1&&s(f,d[0],d[1])?d=[]:h>2&&s(d[0],d[1],d[2])&&(d=[d[0]]),a(f,n(d,1),[])});return G_=l,G_}var Y_,Q3;function d$(){if(Q3)return Y_;Q3=1;var n=Ij(),a=0;function i(s){var l=++a;return n(s)+l}return Y_=i,Y_}var $_,F3;function h$(){if(F3)return $_;F3=1;function n(a,i,s){for(var l=-1,f=a.length,d=i.length,h={};++l<f;){var p=l<d?i[l]:void 0;s(h,a[l],p)}return h}return $_=n,$_}var X_,J3;function p$(){if(J3)return X_;J3=1;var n=Fh(),a=h$();function i(s,l){return a(s||[],l||[],n)}return X_=i,X_}var P_,K3;function Tt(){if(K3)return P_;K3=1;var n;if(typeof rx=="function")try{n={cloneDeep:CY(),constant:hx(),defaults:OY(),each:Uj(),filter:Xj(),find:HY(),flatten:u5(),forEach:zj(),forIn:kY(),has:Pj(),isUndefined:Zj(),last:VY(),map:Fj(),mapValues:BY(),max:GY(),merge:QY(),min:FY(),minBy:JY(),now:KY(),pick:r$(),range:i$(),reduce:Jj(),sortBy:f$(),uniqueId:d$(),values:n5(),zipObject:p$()}}catch{}return n||(n=window._),P_=n,P_}var Z_,W3;function m$(){if(W3)return Z_;W3=1,Z_=n;function n(){var s={};s._next=s._prev=s,this._sentinel=s}n.prototype.dequeue=function(){var s=this._sentinel,l=s._prev;if(l!==s)return a(l),l},n.prototype.enqueue=function(s){var l=this._sentinel;s._prev&&s._next&&a(s),s._next=l._next,l._next._prev=s,l._next=s,s._prev=l},n.prototype.toString=function(){for(var s=[],l=this._sentinel,f=l._prev;f!==l;)s.push(JSON.stringify(f,i)),f=f._prev;return"["+s.join(", ")+"]"};function a(s){s._prev._next=s._next,s._next._prev=s._prev,delete s._next,delete s._prev}function i(s,l){if(s!=="_next"&&s!=="_prev")return l}return Z_}var Q_,ez;function g$(){if(ez)return Q_;ez=1;var n=Tt(),a=zr().Graph,i=m$();Q_=l;var s=n.constant(1);function l(m,y){if(m.nodeCount()<=1)return[];var v=h(m,y||s),b=f(v.graph,v.buckets,v.zeroIdx);return n.flatten(n.map(b,function(S){return m.outEdges(S.v,S.w)}),!0)}function f(m,y,v){for(var b=[],S=y[y.length-1],x=y[0],A;m.nodeCount();){for(;A=x.dequeue();)d(m,y,v,A);for(;A=S.dequeue();)d(m,y,v,A);if(m.nodeCount()){for(var w=y.length-2;w>0;--w)if(A=y[w].dequeue(),A){b=b.concat(d(m,y,v,A,!0));break}}}return b}function d(m,y,v,b,S){var x=S?[]:void 0;return n.forEach(m.inEdges(b.v),function(A){var w=m.edge(A),T=m.node(A.v);S&&x.push({v:A.v,w:A.w}),T.out-=w,p(y,v,T)}),n.forEach(m.outEdges(b.v),function(A){var w=m.edge(A),T=A.w,C=m.node(T);C.in-=w,p(y,v,C)}),m.removeNode(b.v),x}function h(m,y){var v=new a,b=0,S=0;n.forEach(m.nodes(),function(w){v.setNode(w,{v:w,in:0,out:0})}),n.forEach(m.edges(),function(w){var T=v.edge(w.v,w.w)||0,C=y(w),E=T+C;v.setEdge(w.v,w.w,E),S=Math.max(S,v.node(w.v).out+=C),b=Math.max(b,v.node(w.w).in+=C)});var x=n.range(S+b+3).map(function(){return new i}),A=b+1;return n.forEach(v.nodes(),function(w){p(x,A,v.node(w))}),{graph:v,buckets:x,zeroIdx:A}}function p(m,y,v){v.out?v.in?m[v.out-v.in+y].enqueue(v):m[m.length-1].enqueue(v):m[0].enqueue(v)}return Q_}var F_,tz;function y$(){if(tz)return F_;tz=1;var n=Tt(),a=g$();F_={run:i,undo:l};function i(f){var d=f.graph().acyclicer==="greedy"?a(f,h(f)):s(f);n.forEach(d,function(p){var m=f.edge(p);f.removeEdge(p),m.forwardName=p.name,m.reversed=!0,f.setEdge(p.w,p.v,m,n.uniqueId("rev"))});function h(p){return function(m){return p.edge(m).weight}}}function s(f){var d=[],h={},p={};function m(y){n.has(p,y)||(p[y]=!0,h[y]=!0,n.forEach(f.outEdges(y),function(v){n.has(h,v.w)?d.push(v):m(v.w)}),delete h[y])}return n.forEach(f.nodes(),m),d}function l(f){n.forEach(f.edges(),function(d){var h=f.edge(d);if(h.reversed){f.removeEdge(d);var p=h.forwardName;delete h.reversed,delete h.forwardName,f.setEdge(d.w,d.v,h,p)}})}return F_}var J_,nz;function Ln(){if(nz)return J_;nz=1;var n=Tt(),a=zr().Graph;J_={addDummyNode:i,simplify:s,asNonCompoundGraph:l,successorWeights:f,predecessorWeights:d,intersectRect:h,buildLayerMatrix:p,normalizeRanks:m,removeEmptyRanks:y,addBorderNode:v,maxRank:b,partition:S,time:x,notime:A};function i(w,T,C,E){var N;do N=n.uniqueId(E);while(w.hasNode(N));return C.dummy=T,w.setNode(N,C),N}function s(w){var T=new a().setGraph(w.graph());return n.forEach(w.nodes(),function(C){T.setNode(C,w.node(C))}),n.forEach(w.edges(),function(C){var E=T.edge(C.v,C.w)||{weight:0,minlen:1},N=w.edge(C);T.setEdge(C.v,C.w,{weight:E.weight+N.weight,minlen:Math.max(E.minlen,N.minlen)})}),T}function l(w){var T=new a({multigraph:w.isMultigraph()}).setGraph(w.graph());return n.forEach(w.nodes(),function(C){w.children(C).length||T.setNode(C,w.node(C))}),n.forEach(w.edges(),function(C){T.setEdge(C,w.edge(C))}),T}function f(w){var T=n.map(w.nodes(),function(C){var E={};return n.forEach(w.outEdges(C),function(N){E[N.w]=(E[N.w]||0)+w.edge(N).weight}),E});return n.zipObject(w.nodes(),T)}function d(w){var T=n.map(w.nodes(),function(C){var E={};return n.forEach(w.inEdges(C),function(N){E[N.v]=(E[N.v]||0)+w.edge(N).weight}),E});return n.zipObject(w.nodes(),T)}function h(w,T){var C=w.x,E=w.y,N=T.x-C,M=T.y-E,q=w.width/2,U=w.height/2;if(!N&&!M)throw new Error("Not possible to find intersection inside of the rectangle");var H,k;return Math.abs(M)*q>Math.abs(N)*U?(M<0&&(U=-U),H=U*N/M,k=U):(N<0&&(q=-q),H=q,k=q*M/N),{x:C+H,y:E+k}}function p(w){var T=n.map(n.range(b(w)+1),function(){return[]});return n.forEach(w.nodes(),function(C){var E=w.node(C),N=E.rank;n.isUndefined(N)||(T[N][E.order]=C)}),T}function m(w){var T=n.min(n.map(w.nodes(),function(C){return w.node(C).rank}));n.forEach(w.nodes(),function(C){var E=w.node(C);n.has(E,"rank")&&(E.rank-=T)})}function y(w){var T=n.min(n.map(w.nodes(),function(M){return w.node(M).rank})),C=[];n.forEach(w.nodes(),function(M){var q=w.node(M).rank-T;C[q]||(C[q]=[]),C[q].push(M)});var E=0,N=w.graph().nodeRankFactor;n.forEach(C,function(M,q){n.isUndefined(M)&&q%N!==0?--E:E&&n.forEach(M,function(U){w.node(U).rank+=E})})}function v(w,T,C,E){var N={width:0,height:0};return arguments.length>=4&&(N.rank=C,N.order=E),i(w,"border",N,T)}function b(w){return n.max(n.map(w.nodes(),function(T){var C=w.node(T).rank;if(!n.isUndefined(C))return C}))}function S(w,T){var C={lhs:[],rhs:[]};return n.forEach(w,function(E){T(E)?C.lhs.push(E):C.rhs.push(E)}),C}function x(w,T){var C=n.now();try{return T()}finally{console.log(w+" time: "+(n.now()-C)+"ms")}}function A(w,T){return T()}return J_}var K_,rz;function v$(){if(rz)return K_;rz=1;var n=Tt(),a=Ln();K_={run:i,undo:l};function i(f){f.graph().dummyChains=[],n.forEach(f.edges(),function(d){s(f,d)})}function s(f,d){var h=d.v,p=f.node(h).rank,m=d.w,y=f.node(m).rank,v=d.name,b=f.edge(d),S=b.labelRank;if(y!==p+1){f.removeEdge(d);var x,A,w;for(w=0,++p;p<y;++w,++p)b.points=[],A={width:0,height:0,edgeLabel:b,edgeObj:d,rank:p},x=a.addDummyNode(f,"edge",A,"_d"),p===S&&(A.width=b.width,A.height=b.height,A.dummy="edge-label",A.labelpos=b.labelpos),f.setEdge(h,x,{weight:b.weight},v),w===0&&f.graph().dummyChains.push(x),h=x;f.setEdge(h,m,{weight:b.weight},v)}}function l(f){n.forEach(f.graph().dummyChains,function(d){var h=f.node(d),p=h.edgeLabel,m;for(f.setEdge(h.edgeObj,p);h.dummy;)m=f.successors(d)[0],f.removeNode(d),p.points.push({x:h.x,y:h.y}),h.dummy==="edge-label"&&(p.x=h.x,p.y=h.y,p.width=h.width,p.height=h.height),d=m,h=f.node(d)})}return K_}var W_,az;function Ch(){if(az)return W_;az=1;var n=Tt();W_={longestPath:a,slack:i};function a(s){var l={};function f(d){var h=s.node(d);if(n.has(l,d))return h.rank;l[d]=!0;var p=n.min(n.map(s.outEdges(d),function(m){return f(m.w)-s.edge(m).minlen}));return(p===Number.POSITIVE_INFINITY||p===void 0||p===null)&&(p=0),h.rank=p}n.forEach(s.sources(),f)}function i(s,l){return s.node(l.w).rank-s.node(l.v).rank-s.edge(l).minlen}return W_}var eS,oz;function h5(){if(oz)return eS;oz=1;var n=Tt(),a=zr().Graph,i=Ch().slack;eS=s;function s(h){var p=new a({directed:!1}),m=h.nodes()[0],y=h.nodeCount();p.setNode(m,{});for(var v,b;l(p,h)<y;)v=f(p,h),b=p.hasNode(v.v)?i(h,v):-i(h,v),d(p,h,b);return p}function l(h,p){function m(y){n.forEach(p.nodeEdges(y),function(v){var b=v.v,S=y===b?v.w:b;!h.hasNode(S)&&!i(p,v)&&(h.setNode(S,{}),h.setEdge(y,S,{}),m(S))})}return n.forEach(h.nodes(),m),h.nodeCount()}function f(h,p){return n.minBy(p.edges(),function(m){if(h.hasNode(m.v)!==h.hasNode(m.w))return i(p,m)})}function d(h,p,m){n.forEach(h.nodes(),function(y){p.node(y).rank+=m})}return eS}var tS,iz;function b$(){if(iz)return tS;iz=1;var n=Tt(),a=h5(),i=Ch().slack,s=Ch().longestPath,l=zr().alg.preorder,f=zr().alg.postorder,d=Ln().simplify;tS=h,h.initLowLimValues=v,h.initCutValues=p,h.calcCutValue=y,h.leaveEdge=S,h.enterEdge=x,h.exchangeEdges=A;function h(E){E=d(E),s(E);var N=a(E);v(N),p(N,E);for(var M,q;M=S(N);)q=x(N,E,M),A(N,E,M,q)}function p(E,N){var M=f(E,E.nodes());M=M.slice(0,M.length-1),n.forEach(M,function(q){m(E,N,q)})}function m(E,N,M){var q=E.node(M),U=q.parent;E.edge(M,U).cutvalue=y(E,N,M)}function y(E,N,M){var q=E.node(M),U=q.parent,H=!0,k=N.edge(M,U),G=0;return k||(H=!1,k=N.edge(U,M)),G=k.weight,n.forEach(N.nodeEdges(M),function(V){var X=V.v===M,ee=X?V.w:V.v;if(ee!==U){var j=X===H,Q=N.edge(V).weight;if(G+=j?Q:-Q,T(E,M,ee)){var L=E.edge(M,ee).cutvalue;G+=j?-L:L}}}),G}function v(E,N){arguments.length<2&&(N=E.nodes()[0]),b(E,{},1,N)}function b(E,N,M,q,U){var H=M,k=E.node(q);return N[q]=!0,n.forEach(E.neighbors(q),function(G){n.has(N,G)||(M=b(E,N,M,G,q))}),k.low=H,k.lim=M++,U?k.parent=U:delete k.parent,M}function S(E){return n.find(E.edges(),function(N){return E.edge(N).cutvalue<0})}function x(E,N,M){var q=M.v,U=M.w;N.hasEdge(q,U)||(q=M.w,U=M.v);var H=E.node(q),k=E.node(U),G=H,V=!1;H.lim>k.lim&&(G=k,V=!0);var X=n.filter(N.edges(),function(ee){return V===C(E,E.node(ee.v),G)&&V!==C(E,E.node(ee.w),G)});return n.minBy(X,function(ee){return i(N,ee)})}function A(E,N,M,q){var U=M.v,H=M.w;E.removeEdge(U,H),E.setEdge(q.v,q.w,{}),v(E),p(E,N),w(E,N)}function w(E,N){var M=n.find(E.nodes(),function(U){return!N.node(U).parent}),q=l(E,M);q=q.slice(1),n.forEach(q,function(U){var H=E.node(U).parent,k=N.edge(U,H),G=!1;k||(k=N.edge(H,U),G=!0),N.node(U).rank=N.node(H).rank+(G?k.minlen:-k.minlen)})}function T(E,N,M){return E.hasEdge(N,M)}function C(E,N,M){return M.low<=N.lim&&N.lim<=M.lim}return tS}var nS,sz;function _$(){if(sz)return nS;sz=1;var n=Ch(),a=n.longestPath,i=h5(),s=b$();nS=l;function l(p){switch(p.graph().ranker){case"network-simplex":h(p);break;case"tight-tree":d(p);break;case"longest-path":f(p);break;default:h(p)}}var f=a;function d(p){a(p),i(p)}function h(p){s(p)}return nS}var rS,lz;function S$(){if(lz)return rS;lz=1;var n=Tt();rS=a;function a(l){var f=s(l);n.forEach(l.graph().dummyChains,function(d){for(var h=l.node(d),p=h.edgeObj,m=i(l,f,p.v,p.w),y=m.path,v=m.lca,b=0,S=y[b],x=!0;d!==p.w;){if(h=l.node(d),x){for(;(S=y[b])!==v&&l.node(S).maxRank<h.rank;)b++;S===v&&(x=!1)}if(!x){for(;b<y.length-1&&l.node(S=y[b+1]).minRank<=h.rank;)b++;S=y[b]}l.setParent(d,S),d=l.successors(d)[0]}})}function i(l,f,d,h){var p=[],m=[],y=Math.min(f[d].low,f[h].low),v=Math.max(f[d].lim,f[h].lim),b,S;b=d;do b=l.parent(b),p.push(b);while(b&&(f[b].low>y||v>f[b].lim));for(S=b,b=h;(b=l.parent(b))!==S;)m.push(b);return{path:p.concat(m.reverse()),lca:S}}function s(l){var f={},d=0;function h(p){var m=d;n.forEach(l.children(p),h),f[p]={low:m,lim:d++}}return n.forEach(l.children(),h),f}return rS}var aS,uz;function x$(){if(uz)return aS;uz=1;var n=Tt(),a=Ln();aS={run:i,cleanup:d};function i(h){var p=a.addDummyNode(h,"root",{},"_root"),m=l(h),y=n.max(n.values(m))-1,v=2*y+1;h.graph().nestingRoot=p,n.forEach(h.edges(),function(S){h.edge(S).minlen*=v});var b=f(h)+1;n.forEach(h.children(),function(S){s(h,p,v,b,y,m,S)}),h.graph().nodeRankFactor=v}function s(h,p,m,y,v,b,S){var x=h.children(S);if(!x.length){S!==p&&h.setEdge(p,S,{weight:0,minlen:m});return}var A=a.addBorderNode(h,"_bt"),w=a.addBorderNode(h,"_bb"),T=h.node(S);h.setParent(A,S),T.borderTop=A,h.setParent(w,S),T.borderBottom=w,n.forEach(x,function(C){s(h,p,m,y,v,b,C);var E=h.node(C),N=E.borderTop?E.borderTop:C,M=E.borderBottom?E.borderBottom:C,q=E.borderTop?y:2*y,U=N!==M?1:v-b[S]+1;h.setEdge(A,N,{weight:q,minlen:U,nestingEdge:!0}),h.setEdge(M,w,{weight:q,minlen:U,nestingEdge:!0})}),h.parent(S)||h.setEdge(p,A,{weight:0,minlen:v+b[S]})}function l(h){var p={};function m(y,v){var b=h.children(y);b&&b.length&&n.forEach(b,function(S){m(S,v+1)}),p[y]=v}return n.forEach(h.children(),function(y){m(y,1)}),p}function f(h){return n.reduce(h.edges(),function(p,m){return p+h.edge(m).weight},0)}function d(h){var p=h.graph();h.removeNode(p.nestingRoot),delete p.nestingRoot,n.forEach(h.edges(),function(m){var y=h.edge(m);y.nestingEdge&&h.removeEdge(m)})}return aS}var oS,cz;function E$(){if(cz)return oS;cz=1;var n=Tt(),a=Ln();oS=i;function i(l){function f(d){var h=l.children(d),p=l.node(d);if(h.length&&n.forEach(h,f),n.has(p,"minRank")){p.borderLeft=[],p.borderRight=[];for(var m=p.minRank,y=p.maxRank+1;m<y;++m)s(l,"borderLeft","_bl",d,p,m),s(l,"borderRight","_br",d,p,m)}}n.forEach(l.children(),f)}function s(l,f,d,h,p,m){var y={width:0,height:0,rank:m,borderType:f},v=p[f][m-1],b=a.addDummyNode(l,"border",y,d);p[f][m]=b,l.setParent(b,h),v&&l.setEdge(v,b,{weight:1})}return oS}var iS,fz;function w$(){if(fz)return iS;fz=1;var n=Tt();iS={adjust:a,undo:i};function a(m){var y=m.graph().rankdir.toLowerCase();(y==="lr"||y==="rl")&&s(m)}function i(m){var y=m.graph().rankdir.toLowerCase();(y==="bt"||y==="rl")&&f(m),(y==="lr"||y==="rl")&&(h(m),s(m))}function s(m){n.forEach(m.nodes(),function(y){l(m.node(y))}),n.forEach(m.edges(),function(y){l(m.edge(y))})}function l(m){var y=m.width;m.width=m.height,m.height=y}function f(m){n.forEach(m.nodes(),function(y){d(m.node(y))}),n.forEach(m.edges(),function(y){var v=m.edge(y);n.forEach(v.points,d),n.has(v,"y")&&d(v)})}function d(m){m.y=-m.y}function h(m){n.forEach(m.nodes(),function(y){p(m.node(y))}),n.forEach(m.edges(),function(y){var v=m.edge(y);n.forEach(v.points,p),n.has(v,"x")&&p(v)})}function p(m){var y=m.x;m.x=m.y,m.y=y}return iS}var sS,dz;function T$(){if(dz)return sS;dz=1;var n=Tt();sS=a;function a(i){var s={},l=n.filter(i.nodes(),function(m){return!i.children(m).length}),f=n.max(n.map(l,function(m){return i.node(m).rank})),d=n.map(n.range(f+1),function(){return[]});function h(m){if(!n.has(s,m)){s[m]=!0;var y=i.node(m);d[y.rank].push(m),n.forEach(i.successors(m),h)}}var p=n.sortBy(l,function(m){return i.node(m).rank});return n.forEach(p,h),d}return sS}var lS,hz;function R$(){if(hz)return lS;hz=1;var n=Tt();lS=a;function a(s,l){for(var f=0,d=1;d<l.length;++d)f+=i(s,l[d-1],l[d]);return f}function i(s,l,f){for(var d=n.zipObject(f,n.map(f,function(b,S){return S})),h=n.flatten(n.map(l,function(b){return n.sortBy(n.map(s.outEdges(b),function(S){return{pos:d[S.w],weight:s.edge(S).weight}}),"pos")}),!0),p=1;p<f.length;)p<<=1;var m=2*p-1;p-=1;var y=n.map(new Array(m),function(){return 0}),v=0;return n.forEach(h.forEach(function(b){var S=b.pos+p;y[S]+=b.weight;for(var x=0;S>0;)S%2&&(x+=y[S+1]),S=S-1>>1,y[S]+=b.weight;v+=b.weight*x})),v}return lS}var uS,pz;function A$(){if(pz)return uS;pz=1;var n=Tt();uS=a;function a(i,s){return n.map(s,function(l){var f=i.inEdges(l);if(f.length){var d=n.reduce(f,function(h,p){var m=i.edge(p),y=i.node(p.v);return{sum:h.sum+m.weight*y.order,weight:h.weight+m.weight}},{sum:0,weight:0});return{v:l,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:l}})}return uS}var cS,mz;function N$(){if(mz)return cS;mz=1;var n=Tt();cS=a;function a(l,f){var d={};n.forEach(l,function(p,m){var y=d[p.v]={indegree:0,in:[],out:[],vs:[p.v],i:m};n.isUndefined(p.barycenter)||(y.barycenter=p.barycenter,y.weight=p.weight)}),n.forEach(f.edges(),function(p){var m=d[p.v],y=d[p.w];!n.isUndefined(m)&&!n.isUndefined(y)&&(y.indegree++,m.out.push(d[p.w]))});var h=n.filter(d,function(p){return!p.indegree});return i(h)}function i(l){var f=[];function d(m){return function(y){y.merged||(n.isUndefined(y.barycenter)||n.isUndefined(m.barycenter)||y.barycenter>=m.barycenter)&&s(m,y)}}function h(m){return function(y){y.in.push(m),--y.indegree===0&&l.push(y)}}for(;l.length;){var p=l.pop();f.push(p),n.forEach(p.in.reverse(),d(p)),n.forEach(p.out,h(p))}return n.map(n.filter(f,function(m){return!m.merged}),function(m){return n.pick(m,["vs","i","barycenter","weight"])})}function s(l,f){var d=0,h=0;l.weight&&(d+=l.barycenter*l.weight,h+=l.weight),f.weight&&(d+=f.barycenter*f.weight,h+=f.weight),l.vs=f.vs.concat(l.vs),l.barycenter=d/h,l.weight=h,l.i=Math.min(f.i,l.i),f.merged=!0}return cS}var fS,gz;function D$(){if(gz)return fS;gz=1;var n=Tt(),a=Ln();fS=i;function i(f,d){var h=a.partition(f,function(A){return n.has(A,"barycenter")}),p=h.lhs,m=n.sortBy(h.rhs,function(A){return-A.i}),y=[],v=0,b=0,S=0;p.sort(l(!!d)),S=s(y,m,S),n.forEach(p,function(A){S+=A.vs.length,y.push(A.vs),v+=A.barycenter*A.weight,b+=A.weight,S=s(y,m,S)});var x={vs:n.flatten(y,!0)};return b&&(x.barycenter=v/b,x.weight=b),x}function s(f,d,h){for(var p;d.length&&(p=n.last(d)).i<=h;)d.pop(),f.push(p.vs),h++;return h}function l(f){return function(d,h){return d.barycenter<h.barycenter?-1:d.barycenter>h.barycenter?1:f?h.i-d.i:d.i-h.i}}return fS}var dS,yz;function C$(){if(yz)return dS;yz=1;var n=Tt(),a=A$(),i=N$(),s=D$();dS=l;function l(h,p,m,y){var v=h.children(p),b=h.node(p),S=b?b.borderLeft:void 0,x=b?b.borderRight:void 0,A={};S&&(v=n.filter(v,function(M){return M!==S&&M!==x}));var w=a(h,v);n.forEach(w,function(M){if(h.children(M.v).length){var q=l(h,M.v,m,y);A[M.v]=q,n.has(q,"barycenter")&&d(M,q)}});var T=i(w,m);f(T,A);var C=s(T,y);if(S&&(C.vs=n.flatten([S,C.vs,x],!0),h.predecessors(S).length)){var E=h.node(h.predecessors(S)[0]),N=h.node(h.predecessors(x)[0]);n.has(C,"barycenter")||(C.barycenter=0,C.weight=0),C.barycenter=(C.barycenter*C.weight+E.order+N.order)/(C.weight+2),C.weight+=2}return C}function f(h,p){n.forEach(h,function(m){m.vs=n.flatten(m.vs.map(function(y){return p[y]?p[y].vs:y}),!0)})}function d(h,p){n.isUndefined(h.barycenter)?(h.barycenter=p.barycenter,h.weight=p.weight):(h.barycenter=(h.barycenter*h.weight+p.barycenter*p.weight)/(h.weight+p.weight),h.weight+=p.weight)}return dS}var hS,vz;function O$(){if(vz)return hS;vz=1;var n=Tt(),a=zr().Graph;hS=i;function i(l,f,d){var h=s(l),p=new a({compound:!0}).setGraph({root:h}).setDefaultNodeLabel(function(m){return l.node(m)});return n.forEach(l.nodes(),function(m){var y=l.node(m),v=l.parent(m);(y.rank===f||y.minRank<=f&&f<=y.maxRank)&&(p.setNode(m),p.setParent(m,v||h),n.forEach(l[d](m),function(b){var S=b.v===m?b.w:b.v,x=p.edge(S,m),A=n.isUndefined(x)?0:x.weight;p.setEdge(S,m,{weight:l.edge(b).weight+A})}),n.has(y,"minRank")&&p.setNode(m,{borderLeft:y.borderLeft[f],borderRight:y.borderRight[f]}))}),p}function s(l){for(var f;l.hasNode(f=n.uniqueId("_root")););return f}return hS}var pS,bz;function M$(){if(bz)return pS;bz=1;var n=Tt();pS=a;function a(i,s,l){var f={},d;n.forEach(l,function(h){for(var p=i.parent(h),m,y;p;){if(m=i.parent(p),m?(y=f[m],f[m]=p):(y=d,d=p),y&&y!==p){s.setEdge(y,p);return}p=m}})}return pS}var mS,_z;function q$(){if(_z)return mS;_z=1;var n=Tt(),a=T$(),i=R$(),s=C$(),l=O$(),f=M$(),d=zr().Graph,h=Ln();mS=p;function p(b){var S=h.maxRank(b),x=m(b,n.range(1,S+1),"inEdges"),A=m(b,n.range(S-1,-1,-1),"outEdges"),w=a(b);v(b,w);for(var T=Number.POSITIVE_INFINITY,C,E=0,N=0;N<4;++E,++N){y(E%2?x:A,E%4>=2),w=h.buildLayerMatrix(b);var M=i(b,w);M<T&&(N=0,C=n.cloneDeep(w),T=M)}v(b,C)}function m(b,S,x){return n.map(S,function(A){return l(b,A,x)})}function y(b,S){var x=new d;n.forEach(b,function(A){var w=A.graph().root,T=s(A,w,x,S);n.forEach(T.vs,function(C,E){A.node(C).order=E}),f(A,x,T.vs)})}function v(b,S){n.forEach(S,function(x){n.forEach(x,function(A,w){b.node(A).order=w})})}return mS}var gS,Sz;function z$(){if(Sz)return gS;Sz=1;var n=Tt(),a=zr().Graph,i=Ln();gS={positionX:x,findType1Conflicts:s,findType2Conflicts:l,addConflict:d,hasConflict:h,verticalAlignment:p,horizontalCompaction:m,alignCoordinates:b,findSmallestWidthAlignment:v,balance:S};function s(T,C){var E={};function N(M,q){var U=0,H=0,k=M.length,G=n.last(q);return n.forEach(q,function(V,X){var ee=f(T,V),j=ee?T.node(ee).order:k;(ee||V===G)&&(n.forEach(q.slice(H,X+1),function(Q){n.forEach(T.predecessors(Q),function(L){var F=T.node(L),Z=F.order;(Z<U||j<Z)&&!(F.dummy&&T.node(Q).dummy)&&d(E,L,Q)})}),H=X+1,U=j)}),q}return n.reduce(C,N),E}function l(T,C){var E={};function N(q,U,H,k,G){var V;n.forEach(n.range(U,H),function(X){V=q[X],T.node(V).dummy&&n.forEach(T.predecessors(V),function(ee){var j=T.node(ee);j.dummy&&(j.order<k||j.order>G)&&d(E,ee,V)})})}function M(q,U){var H=-1,k,G=0;return n.forEach(U,function(V,X){if(T.node(V).dummy==="border"){var ee=T.predecessors(V);ee.length&&(k=T.node(ee[0]).order,N(U,G,X,H,k),G=X,H=k)}N(U,G,U.length,k,q.length)}),U}return n.reduce(C,M),E}function f(T,C){if(T.node(C).dummy)return n.find(T.predecessors(C),function(E){return T.node(E).dummy})}function d(T,C,E){if(C>E){var N=C;C=E,E=N}var M=T[C];M||(T[C]=M={}),M[E]=!0}function h(T,C,E){if(C>E){var N=C;C=E,E=N}return n.has(T[C],E)}function p(T,C,E,N){var M={},q={},U={};return n.forEach(C,function(H){n.forEach(H,function(k,G){M[k]=k,q[k]=k,U[k]=G})}),n.forEach(C,function(H){var k=-1;n.forEach(H,function(G){var V=N(G);if(V.length){V=n.sortBy(V,function(L){return U[L]});for(var X=(V.length-1)/2,ee=Math.floor(X),j=Math.ceil(X);ee<=j;++ee){var Q=V[ee];q[G]===G&&k<U[Q]&&!h(E,G,Q)&&(q[Q]=G,q[G]=M[G]=M[Q],k=U[Q])}}})}),{root:M,align:q}}function m(T,C,E,N,M){var q={},U=y(T,C,E,M),H=M?"borderLeft":"borderRight";function k(X,ee){for(var j=U.nodes(),Q=j.pop(),L={};Q;)L[Q]?X(Q):(L[Q]=!0,j.push(Q),j=j.concat(ee(Q))),Q=j.pop()}function G(X){q[X]=U.inEdges(X).reduce(function(ee,j){return Math.max(ee,q[j.v]+U.edge(j))},0)}function V(X){var ee=U.outEdges(X).reduce(function(Q,L){return Math.min(Q,q[L.w]-U.edge(L))},Number.POSITIVE_INFINITY),j=T.node(X);ee!==Number.POSITIVE_INFINITY&&j.borderType!==H&&(q[X]=Math.max(q[X],ee))}return k(G,U.predecessors.bind(U)),k(V,U.successors.bind(U)),n.forEach(N,function(X){q[X]=q[E[X]]}),q}function y(T,C,E,N){var M=new a,q=T.graph(),U=A(q.nodesep,q.edgesep,N);return n.forEach(C,function(H){var k;n.forEach(H,function(G){var V=E[G];if(M.setNode(V),k){var X=E[k],ee=M.edge(X,V);M.setEdge(X,V,Math.max(U(T,G,k),ee||0))}k=G})}),M}function v(T,C){return n.minBy(n.values(C),function(E){var N=Number.NEGATIVE_INFINITY,M=Number.POSITIVE_INFINITY;return n.forIn(E,function(q,U){var H=w(T,U)/2;N=Math.max(q+H,N),M=Math.min(q-H,M)}),N-M})}function b(T,C){var E=n.values(C),N=n.min(E),M=n.max(E);n.forEach(["u","d"],function(q){n.forEach(["l","r"],function(U){var H=q+U,k=T[H],G;if(k!==C){var V=n.values(k);G=U==="l"?N-n.min(V):M-n.max(V),G&&(T[H]=n.mapValues(k,function(X){return X+G}))}})})}function S(T,C){return n.mapValues(T.ul,function(E,N){if(C)return T[C.toLowerCase()][N];var M=n.sortBy(n.map(T,N));return(M[1]+M[2])/2})}function x(T){var C=i.buildLayerMatrix(T),E=n.merge(s(T,C),l(T,C)),N={},M;n.forEach(["u","d"],function(U){M=U==="u"?C:n.values(C).reverse(),n.forEach(["l","r"],function(H){H==="r"&&(M=n.map(M,function(X){return n.values(X).reverse()}));var k=(U==="u"?T.predecessors:T.successors).bind(T),G=p(T,M,E,k),V=m(T,M,G.root,G.align,H==="r");H==="r"&&(V=n.mapValues(V,function(X){return-X})),N[U+H]=V})});var q=v(T,N);return b(N,q),S(N,T.graph().align)}function A(T,C,E){return function(N,M,q){var U=N.node(M),H=N.node(q),k=0,G;if(k+=U.width/2,n.has(U,"labelpos"))switch(U.labelpos.toLowerCase()){case"l":G=-U.width/2;break;case"r":G=U.width/2;break}if(G&&(k+=E?G:-G),G=0,k+=(U.dummy?C:T)/2,k+=(H.dummy?C:T)/2,k+=H.width/2,n.has(H,"labelpos"))switch(H.labelpos.toLowerCase()){case"l":G=H.width/2;break;case"r":G=-H.width/2;break}return G&&(k+=E?G:-G),G=0,k}}function w(T,C){return T.node(C).width}return gS}var yS,xz;function U$(){if(xz)return yS;xz=1;var n=Tt(),a=Ln(),i=z$().positionX;yS=s;function s(f){f=a.asNonCompoundGraph(f),l(f),n.forEach(i(f),function(d,h){f.node(h).x=d})}function l(f){var d=a.buildLayerMatrix(f),h=f.graph().ranksep,p=0;n.forEach(d,function(m){var y=n.max(n.map(m,function(v){return f.node(v).height}));n.forEach(m,function(v){f.node(v).y=p+y/2}),p+=y+h})}return yS}var vS,Ez;function j$(){if(Ez)return vS;Ez=1;var n=Tt(),a=y$(),i=v$(),s=_$(),l=Ln().normalizeRanks,f=S$(),d=Ln().removeEmptyRanks,h=x$(),p=E$(),m=w$(),y=q$(),v=U$(),b=Ln(),S=zr().Graph;vS=x;function x(B,re){var ue=re&&re.debugTiming?b.time:b.notime;ue("layout",function(){var oe=ue(" buildLayoutGraph",function(){return k(B)});ue(" runLayout",function(){A(oe,ue)}),ue(" updateInputGraph",function(){w(B,oe)})})}function A(B,re){re(" makeSpaceForEdgeLabels",function(){G(B)}),re(" removeSelfEdges",function(){ne(B)}),re(" acyclic",function(){a.run(B)}),re(" nestingGraph.run",function(){h.run(B)}),re(" rank",function(){s(b.asNonCompoundGraph(B))}),re(" injectEdgeLabelProxies",function(){V(B)}),re(" removeEmptyRanks",function(){d(B)}),re(" nestingGraph.cleanup",function(){h.cleanup(B)}),re(" normalizeRanks",function(){l(B)}),re(" assignRankMinMax",function(){X(B)}),re(" removeEdgeLabelProxies",function(){ee(B)}),re(" normalize.run",function(){i.run(B)}),re(" parentDummyChains",function(){f(B)}),re(" addBorderSegments",function(){p(B)}),re(" order",function(){y(B)}),re(" insertSelfEdges",function(){de(B)}),re(" adjustCoordinateSystem",function(){m.adjust(B)}),re(" position",function(){v(B)}),re(" positionSelfEdges",function(){z(B)}),re(" removeBorderNodes",function(){Z(B)}),re(" normalize.undo",function(){i.undo(B)}),re(" fixupEdgeLabelCoords",function(){L(B)}),re(" undoCoordinateSystem",function(){m.undo(B)}),re(" translateGraph",function(){j(B)}),re(" assignNodeIntersects",function(){Q(B)}),re(" reversePoints",function(){F(B)}),re(" acyclic.undo",function(){a.undo(B)})}function w(B,re){n.forEach(B.nodes(),function(ue){var oe=B.node(ue),he=re.node(ue);oe&&(oe.x=he.x,oe.y=he.y,re.children(ue).length&&(oe.width=he.width,oe.height=he.height))}),n.forEach(B.edges(),function(ue){var oe=B.edge(ue),he=re.edge(ue);oe.points=he.points,n.has(he,"x")&&(oe.x=he.x,oe.y=he.y)}),B.graph().width=re.graph().width,B.graph().height=re.graph().height}var T=["nodesep","edgesep","ranksep","marginx","marginy"],C={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},E=["acyclicer","ranker","rankdir","align"],N=["width","height"],M={width:0,height:0},q=["minlen","weight","width","height","labeloffset"],U={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},H=["labelpos"];function k(B){var re=new S({multigraph:!0,compound:!0}),ue=ge(B.graph());return re.setGraph(n.merge({},C,W(ue,T),n.pick(ue,E))),n.forEach(B.nodes(),function(oe){var he=ge(B.node(oe));re.setNode(oe,n.defaults(W(he,N),M)),re.setParent(oe,B.parent(oe))}),n.forEach(B.edges(),function(oe){var he=ge(B.edge(oe));re.setEdge(oe,n.merge({},U,W(he,q),n.pick(he,H)))}),re}function G(B){var re=B.graph();re.ranksep/=2,n.forEach(B.edges(),function(ue){var oe=B.edge(ue);oe.minlen*=2,oe.labelpos.toLowerCase()!=="c"&&(re.rankdir==="TB"||re.rankdir==="BT"?oe.width+=oe.labeloffset:oe.height+=oe.labeloffset)})}function V(B){n.forEach(B.edges(),function(re){var ue=B.edge(re);if(ue.width&&ue.height){var oe=B.node(re.v),he=B.node(re.w),be={rank:(he.rank-oe.rank)/2+oe.rank,e:re};b.addDummyNode(B,"edge-proxy",be,"_ep")}})}function X(B){var re=0;n.forEach(B.nodes(),function(ue){var oe=B.node(ue);oe.borderTop&&(oe.minRank=B.node(oe.borderTop).rank,oe.maxRank=B.node(oe.borderBottom).rank,re=n.max(re,oe.maxRank))}),B.graph().maxRank=re}function ee(B){n.forEach(B.nodes(),function(re){var ue=B.node(re);ue.dummy==="edge-proxy"&&(B.edge(ue.e).labelRank=ue.rank,B.removeNode(re))})}function j(B){var re=Number.POSITIVE_INFINITY,ue=0,oe=Number.POSITIVE_INFINITY,he=0,be=B.graph(),Te=be.marginx||0,me=be.marginy||0;function qe(Re){var Le=Re.x,Ae=Re.y,De=Re.width,Ne=Re.height;re=Math.min(re,Le-De/2),ue=Math.max(ue,Le+De/2),oe=Math.min(oe,Ae-Ne/2),he=Math.max(he,Ae+Ne/2)}n.forEach(B.nodes(),function(Re){qe(B.node(Re))}),n.forEach(B.edges(),function(Re){var Le=B.edge(Re);n.has(Le,"x")&&qe(Le)}),re-=Te,oe-=me,n.forEach(B.nodes(),function(Re){var Le=B.node(Re);Le.x-=re,Le.y-=oe}),n.forEach(B.edges(),function(Re){var Le=B.edge(Re);n.forEach(Le.points,function(Ae){Ae.x-=re,Ae.y-=oe}),n.has(Le,"x")&&(Le.x-=re),n.has(Le,"y")&&(Le.y-=oe)}),be.width=ue-re+Te,be.height=he-oe+me}function Q(B){n.forEach(B.edges(),function(re){var ue=B.edge(re),oe=B.node(re.v),he=B.node(re.w),be,Te;ue.points?(be=ue.points[0],Te=ue.points[ue.points.length-1]):(ue.points=[],be=he,Te=oe),ue.points.unshift(b.intersectRect(oe,be)),ue.points.push(b.intersectRect(he,Te))})}function L(B){n.forEach(B.edges(),function(re){var ue=B.edge(re);if(n.has(ue,"x"))switch((ue.labelpos==="l"||ue.labelpos==="r")&&(ue.width-=ue.labeloffset),ue.labelpos){case"l":ue.x-=ue.width/2+ue.labeloffset;break;case"r":ue.x+=ue.width/2+ue.labeloffset;break}})}function F(B){n.forEach(B.edges(),function(re){var ue=B.edge(re);ue.reversed&&ue.points.reverse()})}function Z(B){n.forEach(B.nodes(),function(re){if(B.children(re).length){var ue=B.node(re),oe=B.node(ue.borderTop),he=B.node(ue.borderBottom),be=B.node(n.last(ue.borderLeft)),Te=B.node(n.last(ue.borderRight));ue.width=Math.abs(Te.x-be.x),ue.height=Math.abs(he.y-oe.y),ue.x=be.x+ue.width/2,ue.y=oe.y+ue.height/2}}),n.forEach(B.nodes(),function(re){B.node(re).dummy==="border"&&B.removeNode(re)})}function ne(B){n.forEach(B.edges(),function(re){if(re.v===re.w){var ue=B.node(re.v);ue.selfEdges||(ue.selfEdges=[]),ue.selfEdges.push({e:re,label:B.edge(re)}),B.removeEdge(re)}})}function de(B){var re=b.buildLayerMatrix(B);n.forEach(re,function(ue){var oe=0;n.forEach(ue,function(he,be){var Te=B.node(he);Te.order=be+oe,n.forEach(Te.selfEdges,function(me){b.addDummyNode(B,"selfedge",{width:me.label.width,height:me.label.height,rank:Te.rank,order:be+ ++oe,e:me.e,label:me.label},"_se")}),delete Te.selfEdges})})}function z(B){n.forEach(B.nodes(),function(re){var ue=B.node(re);if(ue.dummy==="selfedge"){var oe=B.node(ue.e.v),he=oe.x+oe.width/2,be=oe.y,Te=ue.x-he,me=oe.height/2;B.setEdge(ue.e,ue.label),B.removeNode(re),ue.label.points=[{x:he+2*Te/3,y:be-me},{x:he+5*Te/6,y:be-me},{x:he+Te,y:be},{x:he+5*Te/6,y:be+me},{x:he+2*Te/3,y:be+me}],ue.label.x=ue.x,ue.label.y=ue.y}})}function W(B,re){return n.mapValues(n.pick(B,re),Number)}function ge(B){var re={};return n.forEach(B,function(ue,oe){re[oe.toLowerCase()]=ue}),re}return vS}var bS,wz;function L$(){if(wz)return bS;wz=1;var n=Tt(),a=Ln(),i=zr().Graph;bS={debugOrdering:s};function s(l){var f=a.buildLayerMatrix(l),d=new i({compound:!0,multigraph:!0}).setGraph({});return n.forEach(l.nodes(),function(h){d.setNode(h,{label:h}),d.setParent(h,"layer"+l.node(h).rank)}),n.forEach(l.edges(),function(h){d.setEdge(h.v,h.w,{},h.name)}),n.forEach(f,function(h,p){var m="layer"+p;d.setNode(m,{rank:"same"}),n.reduce(h,function(y,v){return d.setEdge(y,v,{style:"invis"}),v})}),d}return bS}var _S,Tz;function H$(){return Tz||(Tz=1,_S="0.8.5"),_S}var SS,Rz;function k$(){return Rz||(Rz=1,SS={graphlib:zr(),layout:j$(),debug:L$(),util:{time:Ln().time,notime:Ln().notime},version:H$()}),SS}var V$=k$();const Az=Oh(V$);function B$(n,a){const[i,s]=ce.useState([]),[l,f]=ce.useState([]),[d,h]=ce.useState(!0);return ce.useEffect(()=>{let p=!1;return h(!0),_9(n).then(m=>{if(p)return;const y=I$(m.nodes,m.edges);s(y.nodes),f(y.edges)}).finally(()=>{p||h(!1)}),()=>{p=!0}},[a,n]),{nodes:i,edges:l,loading:d}}function I$(n,a){const i=new Az.graphlib.Graph;i.setDefaultEdgeLabel(()=>({})),i.setGraph({rankdir:"LR",nodesep:42,ranksep:76});for(const s of n)i.setNode(String(s.id),{width:240,height:92});for(const s of a)i.setEdge(String(s.from),String(s.to));return Az.layout(i),{nodes:n.map(s=>{const l=i.node(String(s.id));return{id:String(s.id),position:{x:l.x-120,y:l.y-46},data:{label:ae.jsxDEV("div",{className:"min-w-[200px] rounded-[20px] border border-moss/10 bg-white px-4 py-3 text-left shadow-sm",children:[ae.jsxDEV("p",{className:"text-[11px] uppercase tracking-[0.18em] text-moss/55",children:[s.level," · ",s.status]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/hooks/useGraph.tsx",lineNumber:74,columnNumber:15},this),ae.jsxDEV("p",{className:"mt-2 font-display text-base font-semibold text-ink",children:["#",s.id," ",s.title]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/hooks/useGraph.tsx",lineNumber:77,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/hooks/useGraph.tsx",lineNumber:73,columnNumber:13},this)},style:G$(s),type:"default"}}),edges:a.map(s=>({id:`${s.from}-${s.to}`,source:String(s.from),target:String(s.to),animated:!1,style:Nz(n.find(l=>l.id===s.to)?.status??"pending"),markerEnd:{type:"arrowclosed",color:Nz(n.find(l=>l.id===s.to)?.status??"pending").stroke}}))}}function G$(n){const a=n.level==="L1"?{background:"#edf8f1",borderColor:"#2f6d48"}:n.level==="L2"?{background:"#fdf5e6",borderColor:"#a88136"}:{background:"#fbe9e7",borderColor:"#8b3a1f"};return{background:a.background,borderRadius:24,border:`2px ${n.status==="pending"?"dashed":"solid"} ${a.borderColor}`,padding:0,width:240}}function Nz(n){return n==="completed"?{stroke:"#2f6d48",strokeWidth:2.2}:n==="running"?{stroke:"#1d70a2",strokeWidth:2.2}:n==="failed"?{stroke:"#8b3a1f",strokeWidth:2.2}:{stroke:"#7f8f88",strokeWidth:1.6,strokeDasharray:"6 4"}}function Y$(n,a){const[i,s]=ce.useState([]),[l,f]=ce.useState(!0);return ce.useEffect(()=>{let d=!1;return f(!0),g9(n).then(h=>{d||s(h)}).finally(()=>{d||f(!1)}),()=>{d=!0}},[a,n]),{items:i,loading:l}}function $$(){const[n,a]=ce.useState("project"),[i,s]=ce.useState(null),[l,f]=ce.useState(0),[d,h]=ce.useState("all"),[p,m]=ce.useState("all"),[y,v]=ce.useState("updated"),b=B$(n,l),S=Y$(n,l);ce.useEffect(()=>{!i&&S.items.length>0&&s(S.items[0]?.id??null)},[i,S.items]),ce.useEffect(()=>{const A=window.location.origin.replace(/^http/,"ws"),w=new WebSocket(`${A}/ws`);return w.addEventListener("message",()=>{ce.startTransition(()=>{f(T=>T+1)})}),()=>{w.close()}},[]);const x=S.items.filter(A=>d==="all"||A.level===d).filter(A=>p==="all"||A.status===p).toSorted((A,w)=>y==="id"?A.id-w.id:y==="level"?A.level.localeCompare(w.level):w.updated.localeCompare(A.updated));return ae.jsxDEV("div",{className:"min-h-screen bg-mist text-ink",children:ae.jsxDEV("div",{className:"mx-auto flex min-h-screen max-w-[1600px] flex-col gap-6 px-4 py-4 lg:flex-row lg:px-6",children:[ae.jsxDEV("aside",{className:"w-full rounded-[28px] border border-moss/10 bg-white/90 p-5 shadow-panel lg:w-[280px]",children:ae.jsxDEV("div",{className:"space-y-5",children:[ae.jsxDEV("div",{children:[ae.jsxDEV("p",{className:"font-display text-xs uppercase tracking-[0.28em] text-moss/60",children:"Harness Async"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:62,columnNumber:15},this),ae.jsxDEV("h1",{className:"mt-2 font-display text-3xl font-semibold tracking-tight",children:"Command room"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:63,columnNumber:15},this),ae.jsxDEV("p",{className:"mt-3 text-sm leading-6 text-moss/70",children:"Track graph flow, review queues, and daemon activity without leaving the markdown-first workflow."},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:64,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:61,columnNumber:13},this),ae.jsxDEV("div",{className:"rounded-[22px] bg-moss px-4 py-4 text-mist",children:[ae.jsxDEV("p",{className:"text-xs uppercase tracking-[0.24em] text-mist/70",children:"Live summary"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:70,columnNumber:15},this),ae.jsxDEV("div",{className:"mt-3 grid gap-3",children:[ae.jsxDEV(ES,{label:"Tasks",value:String(S.items.length)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:72,columnNumber:17},this),ae.jsxDEV(ES,{label:"Edges",value:String(b.edges.length)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:73,columnNumber:17},this),ae.jsxDEV(ES,{label:"Selected",value:i?`#${i}`:"None"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:74,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:71,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:69,columnNumber:13},this),ae.jsxDEV(c9,{value:n,onChange:A=>{a(A),s(null)}},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:78,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:60,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:59,columnNumber:9},this),ae.jsxDEV("main",{className:"flex min-h-[80vh] flex-1 flex-col gap-6",children:[ae.jsxDEV("section",{className:"rounded-[32px] border border-moss/10 bg-white/90 px-6 py-6 shadow-panel",children:ae.jsxDEV("div",{className:"flex flex-col gap-5 xl:flex-row xl:items-end xl:justify-between",children:[ae.jsxDEV("div",{children:[ae.jsxDEV("p",{className:"font-display text-xs uppercase tracking-[0.28em] text-moss/55",children:"Overview"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:92,columnNumber:17},this),ae.jsxDEV("h2",{className:"mt-2 font-display text-4xl font-semibold tracking-tight",children:"Readable DAG operations"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:93,columnNumber:17},this),ae.jsxDEV("p",{className:"mt-3 max-w-3xl text-sm leading-6 text-moss/72",children:"Scope controls, graph state, sortable task tables, and the detail rail all stay in one surface so you can review human-agent progress without digging through multiple files."},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:94,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:91,columnNumber:15},this),ae.jsxDEV("div",{className:"grid gap-3 sm:grid-cols-3",children:[ae.jsxDEV(xS,{label:"Scope",value:n,accent:"bg-moss/10 text-moss"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:101,columnNumber:17},this),ae.jsxDEV(xS,{label:"Graph",value:b.loading?"Syncing":"Live",accent:"bg-brass/15 text-ember"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:102,columnNumber:17},this),ae.jsxDEV(xS,{label:"Detail rail",value:i?`#${i}`:"Idle",accent:"bg-emerald-100 text-emerald-700"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:103,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:100,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:90,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:89,columnNumber:11},this),ae.jsxDEV("section",{className:"grid flex-1 gap-6 xl:grid-cols-[minmax(0,1.2fr)_minmax(360px,0.8fr)]",children:[ae.jsxDEV("div",{className:"flex flex-col gap-6",children:[ae.jsxDEV("article",{className:"rounded-[32px] border border-moss/10 bg-white/90 p-6 shadow-panel",children:[ae.jsxDEV("header",{className:"flex items-center justify-between gap-4",children:[ae.jsxDEV("div",{children:[ae.jsxDEV("p",{className:"font-display text-xs uppercase tracking-[0.26em] text-moss/55",children:"Canvas"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:117,columnNumber:21},this),ae.jsxDEV("h3",{className:"mt-2 font-display text-2xl font-semibold",children:"DAG workspace"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:118,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:116,columnNumber:19},this),ae.jsxDEV("span",{className:"rounded-full bg-moss/10 px-3 py-1 text-xs uppercase tracking-[0.2em] text-moss",children:"React Flow live"},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:120,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:115,columnNumber:17},this),ae.jsxDEV("div",{className:"mt-6 min-h-[420px] rounded-[28px] border border-dashed border-moss/15 bg-[linear-gradient(180deg,_rgba(255,255,255,0.96),_rgba(237,245,239,0.86))] p-2",children:ae.jsxDEV(u9,{nodes:b.nodes,edges:b.edges,loading:b.loading,selectedTaskId:i,onSelectTask:s},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:126,columnNumber:19},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:125,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:114,columnNumber:15},this),ae.jsxDEV(E9,{tasks:x,selectedTaskId:i,loading:S.loading,levelFilter:d,onLevelFilterChange:h,statusFilter:p,onStatusFilterChange:m,sortBy:y,onSortByChange:v,onSelectTask:s},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:136,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:113,columnNumber:13},this),ae.jsxDEV(x9,{scope:n,taskId:i},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:150,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:112,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:88,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:58,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:57,columnNumber:5},this)}function xS(n){return ae.jsxDEV("div",{className:`rounded-[24px] px-4 py-4 ${n.accent}`,children:[ae.jsxDEV("p",{className:"text-[11px] uppercase tracking-[0.24em] opacity-70",children:n.label},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:161,columnNumber:7},this),ae.jsxDEV("p",{className:"mt-2 font-display text-2xl font-semibold capitalize",children:n.value},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:162,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:160,columnNumber:5},this)}function ES(n){return ae.jsxDEV("div",{className:"rounded-2xl border border-white/10 bg-white/10 px-3 py-3",children:[ae.jsxDEV("p",{className:"text-[11px] uppercase tracking-[0.2em] text-mist/70",children:n.label},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:170,columnNumber:7},this),ae.jsxDEV("p",{className:"mt-2 font-display text-lg",children:n.value},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:171,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/App.tsx",lineNumber:169,columnNumber:5},this)}eH.createRoot(document.getElementById("root")).render(ae.jsxDEV(Dz.StrictMode,{children:ae.jsxDEV($$,{},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/main.tsx",lineNumber:9,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/bytedance/Developer/harness-async/src/dashboard/ui/main.tsx",lineNumber:8,columnNumber:3},void 0));