@invariant.guru/cli 0.7.0 → 0.7.1
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.
- package/README.md +17 -0
- package/dist/main.js +885 -842
- package/dist/ui/assets/{Editor-Dp4QGalH.js → Editor-DOz_xbEw.js} +1 -1
- package/dist/ui/assets/{MarkdownBody-uzyy16ip.js → MarkdownBody-mdOs0gnW.js} +1 -1
- package/dist/ui/assets/{Preview-CnZqPbLm.js → Preview-D2NRuXXW.js} +1 -1
- package/dist/ui/assets/{index-YeoJUXZX.css → index-D7CqVS9q.css} +1 -1
- package/dist/ui/assets/index-Xjxl1JDa.js +253 -0
- package/dist/ui/index.html +2 -2
- package/package.json +1 -1
- package/dist/ui/assets/index-B5eBMPHp.js +0 -246
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o(((e,t)=>{(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=xe&&e[xe]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;Se[n]||(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.",t,e),Se[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=we,this.updater=n||Ce}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=we,this.updater=n||Ce}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===De?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ue:return`Fragment`;case fe:return`Profiler`;case de:return`StrictMode`;case ge:return`Suspense`;case _e:return`SuspenseList`;case be: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 le:return`Portal`;case me:return e.displayName||`Context`;case pe:return(e._context.displayName||`Context`)+`.Consumer`;case he:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ve:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case ye:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===ue)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===ye)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=O.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(Oe.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){Ae||(Ae=!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)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function _(){var e=d(this.type);return Me[e]||(Me[e]=!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.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:ce,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===ye&&(e._payload.status===`fulfilled`?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===ce}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function te(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),ee(``+e.key)):t.toString(36)}function S(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case ce:case le:s=!0;break;case ye:return s=e._init,ne(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+te(s,0):i;return Ee(a)?(n=``,c!=null&&(n=c.replace(Ie,`$&/`)+`/`),ne(a,t,n,``,function(e){return e})):a!=null&&(x(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(Ie,`$&/`)+`/`)+c),i!==``&&s!=null&&x(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,Ee(e))for(var l=0;l<e.length;l++)i=e[l],o=c+te(i,l),s+=ne(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(Fe||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Fe=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+te(i,l++),s+=ne(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return ne(S(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function re(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var n=t();if(n.then(function(t){if(e._status===0||e._status===-1){e._status=1,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`fulfilled`,n.value=t)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`rejected`,n.reason=t)}}),t=e._ioInfo,t!=null){t.value=n;var r=n.displayName;typeof r==`string`&&(t.name=r)}e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return t=e._result,t===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?`,t),`default`in t||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'))`,t),t.default;throw e._result}function C(){var e=O.H;return e===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.`),e}function ae(){O.asyncTransitions--}function w(e){if(ze===null)try{var n=(`require`+Math.random()).slice(0,7);ze=(t&&t[n]).call(t,`timers`).setImmediate}catch{ze=function(e){!1===Re&&(Re=!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 t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return ze(e)}function T(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function oe(e,t){t!==Be-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. `),Be=t}function E(e,t,n){var r=O.actQueue;if(r!==null){if(r.length!==0)try{se(r),w(function(){return E(e,t,n)});return}catch(e){O.thrownErrors.push(e)}else O.actQueue=null}0<O.thrownErrors.length?(r=T(O.thrownErrors),O.thrownErrors.length=0,n(r)):t(e)}function se(e){if(!He){He=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{O.didUsePromise=!1;var r=n(!1);if(r!==null){if(O.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),O.thrownErrors.push(n)}finally{He=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ce=Symbol.for(`react.transitional.element`),le=Symbol.for(`react.portal`),ue=Symbol.for(`react.fragment`),de=Symbol.for(`react.strict_mode`),fe=Symbol.for(`react.profiler`),pe=Symbol.for(`react.consumer`),me=Symbol.for(`react.context`),he=Symbol.for(`react.forward_ref`),ge=Symbol.for(`react.suspense`),_e=Symbol.for(`react.suspense_list`),ve=Symbol.for(`react.memo`),ye=Symbol.for(`react.lazy`),be=Symbol.for(`react.activity`),xe=Symbol.iterator,Se={},Ce={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},D=Object.assign,we={};Object.freeze(we),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var Te={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(We in Te)Te.hasOwnProperty(We)&&n(We,Te[We]);o.prototype=a.prototype,Te=s.prototype=new o,Te.constructor=s,D(Te,a.prototype),Te.isPureReactComponent=!0;var Ee=Array.isArray,De=Symbol.for(`react.client.reference`),O={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Oe=Object.prototype.hasOwnProperty,ke=console.createTask?console.createTask:function(){return null};Te={react_stack_bottom_frame:function(e){return e()}};var Ae,je,Me={},Ne=Te.react_stack_bottom_frame.bind(Te,m)(),Pe=ke(f(m)),Fe=!1,Ie=/\/+/g,Le=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&&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)},Re=!1,ze=null,Be=0,Ve=!1,He=!1,Ue=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:w;Te=Object.freeze({__proto__:null,c:function(e){return C().useMemoCache(e)}});var We={map:re,forEach:function(e,t,n){re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return re(e,function(){t++}),t},toArray:function(e){return re(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=be,e.Children=We,e.Component=a,e.Fragment=ue,e.Profiler=fe,e.PureComponent=s,e.StrictMode=de,e.Suspense=ge,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,e.__COMPILER_RUNTIME=Te,e.act=function(e){var t=O.actQueue,n=Be;Be++;var r=O.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){O.thrownErrors.push(e)}if(0<O.thrownErrors.length)throw oe(t,n),e=T(O.thrownErrors),O.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return Ue(function(){i||Ve||(Ve=!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(e,a){i=!0,o.then(function(i){if(oe(t,n),n===0){try{se(r),w(function(){return E(i,e,a)})}catch(e){O.thrownErrors.push(e)}if(0<O.thrownErrors.length){var o=T(O.thrownErrors);O.thrownErrors.length=0,a(o)}}else e(i)},function(e){oe(t,n),0<O.thrownErrors.length?(e=T(O.thrownErrors),O.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(oe(t,n),n===0&&(se(r),r.length!==0&&Ue(function(){i||Ve||(Ve=!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(() => ...)"))}),O.actQueue=null),0<O.thrownErrors.length)throw e=T(O.thrownErrors),O.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(O.actQueue=r,w(function(){return E(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=O.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=D({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(Oe.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!Oe.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:me,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:pe,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);r={};var i=null;if(t!=null)for(c in je||!(`__self`in t)||`key`in t||(je=!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`)),h(t)&&(u(t.key),i=``+t.key),t)Oe.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>O.recentlyCreatedOwnerStacks++;return v(e,i,r,p(),c?Error(`react-stack-top-frame`):Ne,c?ke(f(e)):Pe)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===ve?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:he,render:e},n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.isValidElement=x,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:ye,_payload:e,_init:ie},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:ve,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=O.T,n={};n._updatedFibers=new Set,O.T=n;try{var r=e(),i=O.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(O.asyncTransitions++,r.then(ae,ae),r.then(c,Le))}catch(e){Le(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._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.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.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.`),t.types=n.types),O.T=t}},e.unstable_useCacheRefresh=function(){return C().useCacheRefresh()},e.use=function(e){return C().use(e)},e.useActionState=function(e,t,n){return C().useActionState(e,t,n)},e.useCallback=function(e,t){return C().useCallback(e,t)},e.useContext=function(e){var t=C();return e.$$typeof===pe&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return C().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return C().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),C().useEffect(e,t)},e.useEffectEvent=function(e){return C().useEffectEvent(e)},e.useId=function(){return C().useId()},e.useImperativeHandle=function(e,t,n){return C().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),C().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),C().useLayoutEffect(e,t)},e.useMemo=function(e,t){return C().useMemo(e,t)},e.useOptimistic=function(e,t){return C().useOptimistic(e,t)},e.useReducer=function(e,t,n){return C().useReducer(e,t,n)},e.useRef=function(e){return C().useRef(e)},e.useState=function(e){return C().useState(e)},e.useSyncExternalStore=function(e,t,n){return C().useSyncExternalStore(e,t,n)},e.useTransition=function(){return C().useTransition()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{(function(){function t(){if(x=!1,ne){var t=e.unstable_now();C=t;var n=!0;try{a:{y=!1,b&&(b=!1,te(re),re=-1),v=!0;var a=_;try{b:{for(o(t),g=r(p);g!==null&&!(g.expirationTime>t&&c());){var u=g.callback;if(typeof u==`function`){g.callback=null,_=g.priorityLevel;var d=u(g.expirationTime<=t);if(t=e.unstable_now(),typeof d==`function`){g.callback=d,o(t),n=!0;break b}g===r(p)&&i(p),o(t)}else i(p);g=r(p)}if(g!==null)n=!0;else{var f=r(m);f!==null&&l(s,f.startTime-t),n=!1}}break a}finally{g=null,_=a,v=!1}n=void 0}}finally{n?ae():ne=!1}}}function n(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<a(i,t))e[r]=t,e[n]=i,n=r;else break a}}function r(e){return e.length===0?null:e[0]}function i(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<i&&0>a(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}function o(e){for(var t=r(m);t!==null;){if(t.callback===null)i(m);else if(t.startTime<=e)i(m),t.sortIndex=t.expirationTime,n(p,t);else break;t=r(m)}}function s(e){if(b=!1,o(e),!y){if(r(p)!==null)y=!0,ne||(ne=!0,ae());else{var t=r(m);t!==null&&l(s,t.startTime-e)}}}function c(){return x?!0:!(e.unstable_now()-C<ie)}function l(t,n){re=ee(function(){t(e.unstable_now())},n)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],h=1,g=null,_=3,v=!1,y=!1,b=!1,x=!1,ee=typeof setTimeout==`function`?setTimeout:null,te=typeof clearTimeout==`function`?clearTimeout:null,S=typeof setImmediate<`u`?setImmediate:null,ne=!1,re=-1,ie=5,C=-1;if(typeof S==`function`)var ae=function(){S(t)};else if(typeof MessageChannel<`u`){var w=new MessageChannel,T=w.port2;w.port1.onmessage=t,ae=function(){T.postMessage(null)}}else ae=function(){ee(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ie=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var n=_;_=t;try{return e()}finally{_=n}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=_;_=e;try{return t()}finally{_=n}},e.unstable_scheduleCallback=function(t,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=a+c,t={id:h++,callback:i,priorityLevel:t,startTime:a,expirationTime:c,sortIndex:-1},a>o?(t.sortIndex=a,n(m,t),r(p)===null&&t===r(m)&&(b?(te(re),re=-1):b=!0,l(s,a-o))):(t.sortIndex=c,n(p,t),y||v||(y=!0,ne||(ne=!0,ae()))),t},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(e){var t=_;return function(){var n=_;_=t;try{return e.apply(this,arguments)}finally{_=n}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(i);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&&i[Symbol.toStringTag]||i.constructor.name||`Object`),n(i)),{$$typeof:u,key:i==null?null:``+i,children:e,containerInfo:t,implementation:r}}function i(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function a(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function s(){var e=f.H;return e===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:
|
|
14
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
15
|
-
2. You might be breaking the Rules of Hooks
|
|
16
|
-
3. You might have more than one copy of React in the same app
|
|
17
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=d(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),f=c.__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`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return r(e,t,null,n)},e.flushSync=function(e){var t=f.T,n=l.p;try{if(f.T=null,l.p=2,e)return e()}finally{f.T=t,l.p=n,l.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.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`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.",o(t)):t!=null&&typeof t.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.",a(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,l.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.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`.",o(t)):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`.",o(t))}typeof e==`string`&&l.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?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.",o(t)):t.as!==`style`&&t.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".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=i(n,t.crossOrigin),s=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?l.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:s,fetchPriority:c}):n===`script`&&l.d.X(e,{crossOrigin:r,integrity:s,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n)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",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=o(n),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)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=i(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})):t??l.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+a(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&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',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&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',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),h=o(((e,t)=>{t.exports=m()})),g=o((e=>{(function(){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=Gf(e)?e.slice():H({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=Gf(e)?e.slice():H({},e);return r+1===t.length?(o[n[r]]=o[a],Gf(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=Gf(e)?e.slice():H({},e);return n+1===t.length?(Gf(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(){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 l(){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 u(){}function f(){}function m(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function g(e,t,n,r){return new br(e,t,n,r)}function _(e,t){e.context===Ng&&(Qd(e.current,2,t,e,null,null),nl())}function v(e,t){if(Pg!==null){var n=t.staleFamilies;t=t.updatedFamilies,Ol(),yr(e.current,t,n),nl()}}function y(e){Pg=e}function b(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ee(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 te(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 S(e){if(x(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function ne(e){var t=e.alternate;if(!t){if(t=x(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return S(i),e;if(a===r)return S(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)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(n.alternate!==r)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(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function re(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=re(e),t!==null)return t;e=e.sibling}return null}function ie(e){return typeof e!=`object`||!e?null:(e=Uf&&e[Uf]||e[`@@iterator`],typeof e==`function`?e:null)}function C(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Wf?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case jf:return`Fragment`;case Nf:return`Profiler`;case Mf:return`StrictMode`;case Lf:return`Suspense`;case Rf:return`SuspenseList`;case Vf: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 Af:return`Portal`;case Ff:return e.displayName||`Context`;case Pf:return(e._context.displayName||`Context`)+`.Consumer`;case If:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case zf:return t=e.displayName||null,t===null?C(e.type)||`Memo`:t;case Bf:t=e._payload,e=e._init;try{return C(e(t))}catch{}}return null}function ae(e){return typeof e.tag==`number`?w(e):typeof e.name==`string`?e.name:null}function w(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`:`ForwardRef(`+e+`)`);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 C(t);case 8:return t===Mf?`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 n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return w(e.return)}return null}function T(e){return{current:e}}function oe(e,t){0>Xf?console.error(`Unexpected pop.`):(t!==Yf[Xf]&&console.error(`Unexpected Fiber popped.`),e.current=Jf[Xf],Jf[Xf]=null,Yf[Xf]=null,Xf--)}function E(e,t,n){Xf++,Jf[Xf]=e.current,Yf[Xf]=n,e.current=t}function se(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 ce(e,t){E($f,t,e),E(Qf,e,e),E(Zf,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?`#document`:`#fragment`,t=(t=t.documentElement)&&(t=t.namespaceURI)?Ru(t):US;break;default:if(n=t.tagName,t=t.namespaceURI)t=Ru(t),t=zu(t,n);else switch(n){case`svg`:t=WS;break;case`math`:t=GS;break;default:t=US}}n=n.toLowerCase(),n=Ut(null,n),n={context:t,ancestorInfo:n},oe(Zf,e),E(Zf,n,e)}function le(e){oe(Zf,e),oe(Qf,e),oe($f,e)}function ue(){return se(Zf.current)}function de(e){e.memoizedState!==null&&E(ep,e,e);var t=se(Zf.current),n=e.type,r=zu(t.context,n);n=Ut(t.ancestorInfo,n),r={context:r,ancestorInfo:n},t!==r&&(E(Qf,e,e),E(Zf,r,e))}function fe(e){Qf.current===e&&(oe(Zf,e),oe(Qf,e)),ep.current===e&&(oe(ep,e),bC._currentValue=yC)}function pe(){}function me(){if(tp===0){np=console.log,rp=console.info,ip=console.warn,ap=console.error,op=console.group,sp=console.groupCollapsed,cp=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}tp++}function he(){if(tp--,tp===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},e,{value:np}),info:H({},e,{value:rp}),warn:H({},e,{value:ip}),error:H({},e,{value:ap}),group:H({},e,{value:op}),groupCollapsed:H({},e,{value:sp}),groupEnd:H({},e,{value:cp})})}0>tp&&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
|
|
18
|
-
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
19
|
-
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t!==-1&&(t=e.lastIndexOf(`
|
|
20
|
-
`,t)),t!==-1)e=e.slice(0,t);else return``;return e}function _e(e){if(lp===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);lp=t&&t[1]||``,up=-1<e.stack.indexOf(`
|
|
21
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
22
|
-
`+lp+e+up}function ve(e,t){if(!e||dp)return``;var n=fp.get(e);if(n!==void 0)return n;dp=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=U.H,U.H=null,me();try{var i={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,`name`);a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var o=i.DetermineComponentFrameRoot(),s=o[0],c=o[1];if(s&&c){var l=s.split(`
|
|
23
|
-
`),u=c.split(`
|
|
24
|
-
`);for(o=a=0;a<l.length&&!l[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<u.length&&!u[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===l.length||o===u.length)for(a=l.length-1,o=u.length-1;1<=a&&0<=o&&l[a]!==u[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==u[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==u[o]){var d=`
|
|
25
|
-
`+l[a].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&fp.set(e,d),d}while(1<=a&&0<=o);break}}}finally{dp=!1,U.H=r,he(),Error.prepareStackTrace=n}return l=(l=e?e.displayName||e.name:``)?_e(l):``,typeof e==`function`&&fp.set(e,l),l}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e(`Lazy`);case 13:return e.child!==t&&t!==null?_e(`Suspense Fallback`):_e(`Suspense`);case 19:return _e(`SuspenseList`);case 0:case 15:return ve(e.type,!1);case 11:return ve(e.type.render,!1);case 1:return ve(e.type,!0);case 31:return _e(`Activity`);default:return``}}function be(e){try{var t=``,n=null;do{t+=ye(e,n);var r=e._debugInfo;if(r)for(var i=r.length-1;0<=i;i--){var a=r[i];if(typeof a.name==`string`){var o=t;a:{var s=a.name,c=a.env,l=a.debugLocation;if(l!=null){var u=ge(l),d=u.lastIndexOf(`
|
|
26
|
-
`),f=d===-1?u:u.slice(d+1);if(f.indexOf(s)!==-1){var p=`
|
|
27
|
-
`+f;break a}}p=_e(s+(c?` [`+c+`]`:``))}t=o+p}}n=e,e=e.return}while(e);return t}catch(e){return`
|
|
28
|
-
Error generating stack: `+e.message+`
|
|
29
|
-
`+e.stack}}function xe(e){return(e=e?e.displayName||e.name:``)?_e(e):``}function Se(){if(pp===null)return null;var e=pp._debugOwner;return e==null?null:ae(e)}function Ce(){if(pp===null)return``;var e=pp;try{var t=``;switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=_e(e.type);break;case 13:t+=_e(`Suspense`);break;case 19:t+=_e(`SuspenseList`);break;case 31:t+=_e(`Activity`);break;case 30:case 0:case 15:case 1:e._debugOwner||t!==``||(t+=xe(e.type));break;case 11:e._debugOwner||t!==``||(t+=xe(e.type.render))}for(;e;)if(typeof e.tag==`number`){var n=e;e=n._debugOwner;var r=n._debugStack;if(e&&r){var i=ge(r);i!==``&&(t+=`
|
|
30
|
-
`+i)}}else if(e.debugStack!=null){var a=e.debugStack;(e=e.owner)&&a&&(t+=`
|
|
31
|
-
`+ge(a))}else break;var o=t}catch(e){o=`
|
|
32
|
-
Error generating stack: `+e.message+`
|
|
33
|
-
`+e.stack}return o}function D(e,t,n,r,i,a,o){var s=pp;we(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,r,i,a,o)):t(n,r,i,a,o)}finally{we(s)}throw Error(`runWithFiberInDEV should never be called in production. This is a bug in React.`)}function we(e){U.getCurrentStack=e===null?null:Ce,mp=!1,pp=e}function Te(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function Ee(e){try{return De(e),!1}catch{return!0}}function De(e){return``+e}function O(e,t){if(Ee(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,Te(e)),De(e)}function Oe(e,t){if(Ee(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,Te(e)),De(e)}function ke(e){if(Ee(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.`,Te(e)),De(e)}function Ae(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{kp=t.inject(e),Ap=t}catch(e){console.error(`React instrumentation encountered an error: %o.`,e)}return!!t.checkDCE}function je(e){if(typeof Dp==`function`&&Op(e),Ap&&typeof Ap.setStrictMode==`function`)try{Ap.setStrictMode(kp,e)}catch(e){jp||(jp=!0,console.error(`React instrumentation encountered an error: %o`,e))}}function Me(e){return e>>>=0,e===0?32:31-(Pp(e)/Fp|0)|0}function Ne(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 Pe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ne(n))):i=Ne(o):i=Ne(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ne(n))):i=Ne(o)):i=Ne(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Fe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ie(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 Le(){var e=Rp;return Rp<<=1,!(Rp&62914560)&&(Rp=4194304),e}function Re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Be(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Np(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ve(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ve(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Np(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function He(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Np(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ue(e,t){var n=t&-t;return n=n&42?1:We(n),(n&(e.suspendedLanes|t))===0?n:0}function We(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 Ge(e,t,n){if(Mp)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-Np(n),i=1<<r;e[r].add(t),n&=~i}}function Ke(e,t){if(Mp)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var i=31-Np(t);e=1<<i,i=n[i],0<i.size&&(i.forEach(function(e){var t=e.alternate;t!==null&&r.has(t)||r.add(e)}),i.clear()),t&=~e}}function qe(e){return e&=-e,zp!==0&&zp<e?Bp!==0&&Bp<e?e&134217727?Vp:Hp:Bp:zp}function Je(){var e=Kf.p;return e===0?(e=window.event,e===void 0?Vp:uf(e.type)):e}function Ye(e,t){var n=Kf.p;try{return Kf.p=e,t()}finally{Kf.p=n}}function Xe(e){delete e[Wp],delete e[Gp],delete e[qp],delete e[Jp],delete e[Yp]}function Ze(e){var t=e[Wp];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Kp]||n[Wp]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yd(e);e!==null;){if(n=e[Wp])return n;e=yd(e)}return t}e=n,n=e.parentNode}return null}function Qe(e){if(e=e[Wp]||e[Kp]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function $e(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(`getNodeFromInstance: Invalid argument.`)}function k(e){var t=e[Xp];return t||=e[Xp]={hoistableStyles:new Map,hoistableScripts:new Map},t}function et(e){e[Zp]=!0}function tt(e,t){nt(e,t),nt(e+`Capture`,t)}function nt(e,t){$p[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),$p[e]=t;var n=e.toLowerCase();for(em[n]=e,e===`onDoubleClick`&&(em.ondblclick=e),e=0;e<t.length;e++)Qp.add(t[e])}function rt(e,t){tm[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 it(e){return hp.call(im,e)?!0:hp.call(rm,e)?!1:nm.test(e)?im[e]=!0:(rm[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function at(e,t,n){if(it(t)){if(!e.hasAttribute(t)){switch(typeof n){case`symbol`:case`object`:return n;case`function`:return n;case`boolean`:if(!1===n)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===``&&!0===n||(O(n,t),e===``+n?n:e)}}function ot(e,t,n){if(it(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}O(n,t),e.setAttribute(t,``+n)}}}function st(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}O(n,t),e.setAttribute(t,``+n)}}function ct(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}O(r,n),e.setAttributeNS(t,n,``+r)}}function lt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return ke(e),e;default:return``}}function ut(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function dt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){ke(e),n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){ke(e),n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ft(e){if(!e._valueTracker){var t=ut(e)?`checked`:`value`;e._valueTracker=dt(e,t,``+e[t])}}function pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ut(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function mt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ht(e){return e.replace(am,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function gt(e,t){t.checked===void 0||t.defaultChecked===void 0||sm||(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`,Se()||`A component`,t.type),sm=!0),t.value===void 0||t.defaultValue===void 0||om||(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`,Se()||`A component`,t.type),om=!0)}function _t(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?(O(o,`type`),e.type=o):e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+lt(t)):e.value!==``+lt(t)&&(e.value=``+lt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):yt(e,o,lt(n)):yt(e,o,lt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?(O(s,`name`),e.name=``+lt(s)):e.removeAttribute(`name`)}function vt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(O(a,`type`),e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){ft(e);return}n=n==null?``:``+lt(n),t=t==null?n:``+lt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(O(o,`name`),e.name=o),ft(e)}function yt(e,t,n){t===`number`&&mt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function bt(e,t){t.value??(typeof t.children==`object`&&t.children!==null?Ef.Children.forEach(t.children,function(e){e==null||typeof e==`string`||typeof e==`number`||typeof e==`bigint`||lm||(lm=!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||um||(um=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||cm||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),cm=!0)}function xt(){var e=Se();return e?`
|
|
34
|
-
|
|
35
|
-
Check the render method of \``+e+"`.":``}function St(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+lt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ct(e,t){for(e=0;e<fm.length;e++){var n=fm[e];if(t[n]!=null){var r=Gf(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,xt()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,xt())}}t.value===void 0||t.defaultValue===void 0||dm||(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`),dm=!0)}function wt(e,t){t.value===void 0||t.defaultValue===void 0||pm||(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`,Se()||`A component`),pm=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function A(e,t,n){if(t!=null&&(t=``+lt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+lt(n)}function Tt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Gf(r)){if(1<r.length)throw Error(`<textarea> can only have at most one child.`);r=r[0]}n=r}n??=``,t=n}n=lt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),ft(e)}function Et(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Et(e.children[0],t):e}function Dt(e){return` `+` `.repeat(e)}function Ot(e){return`+ `+` `.repeat(e)}function kt(e){return`- `+` `.repeat(e)}function At(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 jt(e,t){return mm.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 Mt(e,t,n){var r=120-2*n;if(t===null)return Ot(n)+jt(e,r)+`
|
|
36
|
-
`;if(typeof t==`string`){for(var i=0;i<t.length&&i<e.length&&t.charCodeAt(i)===e.charCodeAt(i);i++);return i>r-8&&10<i&&(e=`...`+e.slice(i-8),t=`...`+t.slice(i-8)),Ot(n)+jt(e,r)+`
|
|
37
|
-
`+kt(n)+jt(t,r)+`
|
|
38
|
-
`}return Dt(n)+jt(e,r)+`
|
|
39
|
-
`}function Nt(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function Pt(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(Gf(e))return`[...]`;if(e.$$typeof===kf)return(t=C(e.type))?`<`+t+`>`:`<...>`;var n=Nt(e);if(n===`Object`){for(var r in n=``,t-=2,e)if(e.hasOwnProperty(r)){var i=JSON.stringify(r);if(i!==`"`+r+`"`&&(r=i),t-=r.length-2,i=Pt(e[r],15>t?t:15),t-=i.length,0>t){n+=n===``?`...`:`, ...`;break}n+=(n===``?``:`,`)+r+`:`+i}return`{`+n+`}`}return n;case`function`:return(t=e.displayName||e.name)?`function `+t:`function`;default:return String(e)}}function Ft(e,t){return typeof e!=`string`||mm.test(e)?`{`+Pt(e,t-2)+`}`:e.length>t-2?5>t?`"..."`:`"`+e.slice(0,t-5)+`..."`:`"`+e+`"`}function It(e,t,n){var r=120-n.length-e.length,i=[],a;for(a in t)if(t.hasOwnProperty(a)&&a!==`children`){var o=Ft(t[a],120-n.length-a.length-1);r-=a.length+o.length+2,i.push(a+`=`+o)}return i.length===0?n+`<`+e+`>
|
|
40
|
-
`:0<r?n+`<`+e+` `+i.join(` `)+`>
|
|
41
|
-
`:n+`<`+e+`
|
|
42
|
-
`+n+` `+i.join(`
|
|
43
|
-
`+n+` `)+`
|
|
44
|
-
`+n+`>
|
|
45
|
-
`}function Lt(e,t,n){var r=``,i=H({},t),a;for(a in e)if(e.hasOwnProperty(a)){delete i[a];var o=120-2*n-a.length-2,s=Pt(e[a],o);t.hasOwnProperty(a)?(o=Pt(t[a],o),r+=Ot(n)+a+`: `+s+`
|
|
46
|
-
`,r+=kt(n)+a+`: `+o+`
|
|
47
|
-
`):r+=Ot(n)+a+`: `+s+`
|
|
48
|
-
`}for(var c in i)i.hasOwnProperty(c)&&(e=Pt(i[c],120-2*n-c.length-2),r+=kt(n)+c+`: `+e+`
|
|
49
|
-
`);return r}function Rt(e,t,n,r){var i=``,a=new Map;for(l in n)n.hasOwnProperty(l)&&a.set(l.toLowerCase(),l);if(a.size===1&&a.has(`children`))i+=It(e,t,Dt(r));else{for(var o in t)if(t.hasOwnProperty(o)&&o!==`children`){var s=120-2*(r+1)-o.length-1,c=a.get(o.toLowerCase());if(c!==void 0){a.delete(o.toLowerCase());var l=t[o];c=n[c];var u=Ft(l,s);s=Ft(c,s),typeof l==`object`&&l&&typeof c==`object`&&c&&Nt(l)===`Object`&&Nt(c)===`Object`&&(2<Object.keys(l).length||2<Object.keys(c).length||-1<u.indexOf(`...`)||-1<s.indexOf(`...`))?i+=Dt(r+1)+o+`={{
|
|
50
|
-
`+Lt(l,c,r+2)+Dt(r+1)+`}}
|
|
51
|
-
`:(i+=Ot(r+1)+o+`=`+u+`
|
|
52
|
-
`,i+=kt(r+1)+o+`=`+s+`
|
|
53
|
-
`)}else i+=Dt(r+1)+o+`=`+Ft(t[o],s)+`
|
|
54
|
-
`}a.forEach(function(e){if(e!==`children`){var t=120-2*(r+1)-e.length-1;i+=kt(r+1)+e+`=`+Ft(n[e],t)+`
|
|
55
|
-
`}}),i=i===``?Dt(r)+`<`+e+`>
|
|
56
|
-
`:Dt(r)+`<`+e+`
|
|
57
|
-
`+i+Dt(r)+`>
|
|
58
|
-
`}return e=n.children,t=t.children,typeof e==`string`||typeof e==`number`||typeof e==`bigint`?(a=``,(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(a=``+t),i+=Mt(a,``+e,r+1)):(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(i=e==null?i+Mt(``+t,null,r+1):i+Mt(``+t,void 0,r+1)),i}function zt(e,t){var n=At(e);if(n===null){for(n=``,e=e.child;e;)n+=zt(e,t),e=e.sibling;return n}return Dt(t)+`<`+n+`>
|
|
59
|
-
`}function Bt(e,t){var n=Et(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return Dt(t)+`...
|
|
60
|
-
`+Bt(n,t+1);n=``;var r=e.fiber._debugInfo;if(r)for(var i=0;i<r.length;i++){var a=r[i].name;typeof a==`string`&&(n+=Dt(t)+`<`+a+`>
|
|
61
|
-
`,t++)}if(r=``,i=e.fiber.pendingProps,e.fiber.tag===6)r=Mt(i,e.serverProps,t),t++;else if(a=At(e.fiber),a!==null){if(e.serverProps===void 0){r=t;var o=120-2*r-a.length-2,s=``;for(l in i)if(i.hasOwnProperty(l)&&l!==`children`){var c=Ft(i[l],15);if(o-=l.length+c.length+2,0>o){s+=` ...`;break}s+=` `+l+`=`+c}r=Dt(r)+`<`+a+s+`>
|
|
62
|
-
`,t++}else e.serverProps===null?(r=It(a,i,Ot(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.`):(r=Rt(a,i,e.serverProps,t),t++)}var l=``;for(i=e.fiber.child,a=0;i&&a<e.children.length;)o=e.children[a],o.fiber===i?(l+=Bt(o,t),a++):l+=zt(i,t),i=i.sibling;for(i&&0<e.children.length&&(l+=Dt(t)+`...
|
|
63
|
-
`),i=e.serverTail,e.serverProps===null&&t--,e=0;e<i.length;e++)a=i[e],l=typeof a==`string`?l+(kt(t)+jt(a,120-2*t)+`
|
|
64
|
-
`):l+It(a.type,a.props,kt(t));return n+r+l}function Vt(e){try{return`
|
|
65
|
-
|
|
66
|
-
`+Bt(e,0)}catch{return``}}function Ht(e,t,n){for(var r=t,i=null,a=0;r;)r===e&&(a=0),i={fiber:r,children:i===null?[]:[i],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:a},a++,r=r.return;return i===null?``:Vt(i).replaceAll(/^[+-]/gm,`>`)}function Ut(e,t){var n=H({},e||ym),r={tag:t};return gm.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),_m.indexOf(t)!==-1&&(n.pTagInButtonScope=null),hm.indexOf(t)!==-1&&t!==`address`&&t!==`div`&&t!==`p`&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,t===`form`&&(n.formTag=r),t===`a`&&(n.aTagInScope=r),t===`button`&&(n.buttonTagInScope=r),t===`nobr`&&(n.nobrTagInScope=r),t===`p`&&(n.pTagInButtonScope=r),t===`li`&&(n.listItemTagAutoclosing=r),(t===`dd`||t===`dt`)&&(n.dlItemTagAutoclosing=r),t===`#document`||t===`html`?n.containerTagInScope=null:n.containerTagInScope||=r,e!==null||t!==`#document`&&t!==`html`&&t!==`body`?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function Wt(e,t,n){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(n)break;return e===`head`||e===`body`||e===`frameset`;case`frameset`:return e===`frame`;case`#document`:if(!n)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 vm.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 n||t===null;case`html`:return n&&t===`#document`||t===null;case`body`:return n&&(t===`#document`||t===`html`)||t===null}return!0}function Gt(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 Kt(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 qt(e,t){t||=ym;var n=t.current;if(t=(n=Wt(e,n&&n.tag,t.implicitRootScope)?null:n)?null:Gt(e,t),t=n||t,!t)return!0;var r=t.tag;if(t=String(!!n)+`|`+e+`|`+r,bm[t])return!1;bm[t]=!0;var i=(t=pp)?Kt(t.return,r):null,a=t!==null&&i!==null?Ht(i,t,null):``,o=`<`+e+`>`;return n?(n=``,r===`table`&&e===`tr`&&(n+=` 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
|
|
67
|
-
This will cause a hydration error.%s`,o,r,n,a)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
-
This will cause a hydration error.%s`,o,r,a),t&&(e=t.return,i===null||e===null||i===e&&e._debugOwner===t._debugOwner||D(i,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
-
See this log for the ancestor stack trace.`,r,o)})),!1}function Jt(e,t,n){if(n||Wt(`#text`,t,!1))return!0;if(n=`#text|`+t,bm[n])return!1;bm[n]=!0;var r=(n=pp)?Kt(n,t):null;return n=n!==null&&r!==null?Ht(r,n,n.tag===6?null:{children:null}):``,/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
|
-
This will cause a hydration error.%s`,t,n):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.
|
|
71
|
-
This will cause a hydration error.%s`,t,n),!1}function Yt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function Xt(e){return e.replace(Em,function(e,t){return t.toUpperCase()})}function Zt(e,t,n){var r=t.indexOf(`--`)===0;r||(-1<t.indexOf(`-`)?Om.hasOwnProperty(t)&&Om[t]||(Om[t]=!0,console.error(`Unsupported style property %s. Did you mean %s?`,t,Xt(t.replace(Tm,`ms-`)))):wm.test(t)?Om.hasOwnProperty(t)&&Om[t]||(Om[t]=!0,console.error(`Unsupported vendor-prefixed style property %s. Did you mean %s?`,t,t.charAt(0).toUpperCase()+t.slice(1))):!Dm.test(n)||km.hasOwnProperty(n)&&km[n]||(km[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(Dm,``))),typeof n==`number`&&(isNaN(n)?Am||(Am=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||jm||(jm=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Mm.has(t)?t===`float`?e.cssFloat=n:(Oe(n,t),e[t]=(``+n).trim()):e[t]=n+`px`}function Qt(e,t,n){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,n!=null){if(t){var r={};if(n){for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))for(var a=xm[i]||[i],o=0;o<a.length;o++)r[a[o]]=i}for(var s in t)if(t.hasOwnProperty(s)&&(!n||n[s]!==t[s]))for(i=xm[s]||[s],a=0;a<i.length;a++)r[i[a]]=s;for(var c in s={},t)for(i=xm[c]||[c],a=0;a<i.length;a++)s[i[a]]=c;for(var l in c={},r)if(i=r[l],(a=s[l])&&i!==a&&(o=i+`,`+a,!c[o])){c[o]=!0,o=console;var u=t[i];o.error.call(o,`%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.`,u==null||typeof u==`boolean`||u===``?`Removing`:`Updating`,i,a)}}for(var d in n)!n.hasOwnProperty(d)||t!=null&&t.hasOwnProperty(d)||(d.indexOf(`--`)===0?e.setProperty(d,``):d===`float`?e.cssFloat=``:e[d]=``);for(var f in t)l=t[f],t.hasOwnProperty(f)&&n[f]!==l&&Zt(e,f,l)}else for(r in t)t.hasOwnProperty(r)&&Zt(e,r,t[r])}function $t(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 en(e){return Fm.get(e)||e}function tn(e,t){if(hp.call(Rm,t)&&Rm[t])return!0;if(Bm.test(t)){if(e=`aria-`+t.slice(4).toLowerCase(),e=Lm.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Rm[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Rm[t]=!0}if(zm.test(t)){if(e=t.toLowerCase(),e=Lm.hasOwnProperty(e)?e:null,e==null)return Rm[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Rm[t]=!0)}return!0}function nn(e,t){var n=[],r;for(r in t)tn(e,r)||n.push(r);t=n.map(function(e){return"`"+e+"`"}).join(`, `),n.length===1?console.error(`Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e):1<n.length&&console.error(`Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e)}function rn(e,t,n,r){if(hp.call(Hm,t)&&Hm[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`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.`),Hm[t]=!0;if(typeof n==`function`&&(e===`form`&&t===`action`||e===`input`&&t===`formAction`||e===`button`&&t===`formAction`))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(i)?e[i]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Hm[t]=!0;if(Um.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Hm[t]=!0}else if(Um.test(t))return Wm.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Hm[t]=!0;if(Gm.test(t)||Km.test(t))return!0;if(i===`innerhtml`)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Hm[t]=!0;if(i===`aria`)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Hm[t]=!0;if(i===`is`&&n!=null&&typeof n!=`string`)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Hm[t]=!0;if(typeof n==`number`&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Hm[t]=!0;if(Im.hasOwnProperty(i)){if(i=Im[i],i!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,i),Hm[t]=!0}else if(t!==i)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,i),Hm[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 n){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 i=t.toLowerCase().slice(0,5),i===`data-`||i===`aria-`||(n?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,t,t,n,t):console.error(`Received \`%s\` for a non-boolean attribute \`%s\`.
|
|
72
|
-
|
|
73
|
-
If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
|
|
74
|
-
|
|
75
|
-
If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),Hm[t]=!0)}case`function`:case`symbol`:return Hm[t]=!0,!1;case`string`:if(n===`false`||n===`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}?",n,t,n===`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,n),Hm[t]=!0}}return!0}function an(e,t,n){var r=[],i;for(i in t)rn(e,i,t[i],n)||r.push(i);t=r.map(function(e){return"`"+e+"`"}).join(`, `),r.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<r.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 on(e){return qm.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function sn(){}function cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function ln(e){var t=Qe(e);if(t&&(e=t.stateNode)){var n=e[Gp]||null;a:switch(e=t.stateNode,t.type){case`input`:if(_t(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(O(t,`name`),n=n.querySelectorAll(`input[name="`+ht(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Gp]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");_t(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&pt(r)}break a;case`textarea`:A(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&St(e,!!n.multiple,t,!1)}}}function un(e,t,n){if(Zm)return e(t,n);Zm=!0;try{return e(t)}finally{if(Zm=!1,(Ym!==null||Xm!==null)&&(nl(),Ym&&(t=Ym,e=Xm,Xm=Ym=null,ln(t),e)))for(t=0;t<e.length;t++)ln(e[t])}}function dn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Gp]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function fn(){if(rh)return rh;var e,t=nh,n=t.length,r,i=`value`in th?th.value:th.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return rh=i.slice(e,1<r?1-r:void 0)}function pn(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 mn(){return!0}function hn(){return!1}function gn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?mn:hn,this.isPropagationStopped=hn,this}return H(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=mn)},persist:function(){},isPersistent:mn}),t}function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xh[e])?!!t[e]:!1}function vn(){return _n}function yn(e,t){switch(e){case`keyup`:return Oh.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==kh;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function bn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}function xn(e,t){switch(e){case`compositionend`:return bn(t);case`keypress`:return t.which===Ph?(Ih=!0,Fh):null;case`textInput`:return e=t.data,e===Fh&&Ih?null:e;default:return null}}function Sn(e,t){if(Lh)return e===`compositionend`||!Ah&&yn(e,t)?(e=fn(),rh=nh=th=null,Lh=!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 Nh&&t.locale!==`ko`?null:t.data;default:return null}}function Cn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Rh[e.type]:t===`textarea`}function wn(e){if(!Qm)return!1;e=`on`+e;var t=e in document;return t||=(t=document.createElement(`div`),t.setAttribute(e,`return;`),typeof t[e]==`function`),t}function Tn(e,t,n,r){Ym?Xm?Xm.push(r):Xm=[r]:Ym=r,t=du(t,`onChange`),0<t.length&&(n=new ah(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}function En(e){iu(e,0)}function Dn(e){if(pt($e(e)))return e}function On(e,t){if(e===`change`)return t}function kn(){zh&&(zh.detachEvent(`onpropertychange`,An),Bh=zh=null)}function An(e){if(e.propertyName===`value`&&Dn(Bh)){var t=[];Tn(t,Bh,e,cn(e)),un(En,t)}}function jn(e,t,n){e===`focusin`?(kn(),zh=t,Bh=n,zh.attachEvent(`onpropertychange`,An)):e===`focusout`&&kn()}function Mn(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Dn(Bh)}function Nn(e,t){if(e===`click`)return Dn(t)}function Pn(e,t){if(e===`input`||e===`change`)return Dn(t)}function Fn(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function In(e,t){if(Hh(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!hp.call(t,i)||!Hh(e[i],t[i]))return!1}return!0}function Ln(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rn(e,t){var n=Ln(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ln(n)}}function zn(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zn(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bn(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=mt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=mt(e.document)}return t}function Vn(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 Hn(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qh||Wh==null||Wh!==mt(r)||(r=Wh,`selectionStart`in r&&Vn(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kh&&In(Kh,r)||(Kh=r,r=du(Gh,`onSelect`),0<r.length&&(t=new ah(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Wh)))}function Un(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}function Wn(e){if(Yh[e])return Yh[e];if(!Jh[e])return e;var t=Jh[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xh)return Yh[e]=t[n];return e}function Gn(e,t){ig.set(e,t),tt(t,[e])}function Kn(e){for(var t=fg,n=0;n<e.length;n++){var r=e[n];if(typeof r==`object`&&r){if(Gf(r)&&r.length===2&&typeof r[0]==`string`){if(t!==fg&&t!==hg)return pg;t=hg}else return pg}else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==fg&&t!==mg)return pg;t=mg}}return t}function qn(e,t,n,r){for(var i in e)hp.call(e,i)&&i[0]!==`_`&&Jn(i,e[i],t,n,r)}function Jn(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}if(t.$$typeof===kf){var a=C(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&Jn(`key`,o,n,r+1,i),e=!1,t)l===`children`?t.children!=null&&(!Gf(t.children)||0<t.children.length)&&(e=!0):hp.call(t,l)&&l[0]!==`_`&&Jn(l,t[l],n,r+1,i);n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),a===`Array`){if(l=Kn(t),l===mg||l===fg){t=JSON.stringify(t);break}if(l===hg){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length;e++)a=t[e],Jn(a[0],a[1],n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,Jn(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,Jn(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&qn(t,n,r+1,i);return;case`function`:t=t.name===``?`() => {}`:t.name+`() {}`;break;case`string`:t=t===dg?`…`:JSON.stringify(t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function Yn(e,t,n,r){var i=!0;for(o in e)o in t||(n.push([gg+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1);for(var a in t)if(a in e){var o=e[a],s=t[a];if(o!==s){if(r===0&&a===`children`)i=`\xA0\xA0`.repeat(r)+a,n.push([gg+i,`…`],[_g+i,`…`]);else{if(!(3<=r)){if(typeof o==`object`&&typeof s==`object`&&o!==null&&s!==null&&o.$$typeof===s.$$typeof){if(s.$$typeof===kf){if(o.type===s.type&&o.key===s.key){o=C(s.type)||`…`,i=`\xA0\xA0`.repeat(r)+a,o=`<`+o+` … />`,n.push([gg+i,o],[_g+i,o]),i=!1;continue}}else{var c=Object.prototype.toString.call(o),l=Object.prototype.toString.call(s);if(c===l&&(l===`[object Object]`||l===`[object Array]`)){c=[vg+`\xA0\xA0`.repeat(r)+a,l===`[object Array]`?`Array`:``],n.push(c),l=n.length,Yn(o,s,n,r+1)?l===n.length&&(c[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}}else if(typeof o==`function`&&typeof s==`function`&&o.name===s.name&&o.length===s.length&&(c=Function.prototype.toString.call(o),l=Function.prototype.toString.call(s),c===l)){o=s.name===``?`() => {}`:s.name+`() {}`,n.push([vg+`\xA0\xA0`.repeat(r)+a,o+` Referentially unequal function closure. Consider memoization.`]);continue}}Jn(a,o,n,r,gg),Jn(a,s,n,r,_g)}i=!1}}else n.push([_g+`\xA0\xA0`.repeat(r)+a,`…`]),i=!1;return i}function j(e){xg=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function Xn(e,t,n,r){yg&&(wg.start=t,wg.end=n,Cg.color=`warning`,Cg.tooltipText=r,Cg.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,wg)):performance.measure(r,wg))}function Zn(e,t,n){Xn(e,t,n,`Reconnect`)}function Qn(e,t,n,r,i){var a=w(e);if(a!==null&&yg){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;r=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;s=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[Tg],l=Yn(o.memoizedProps,l,c,0),1<c.length&&(l&&!Sg&&(o.lanes&i)===0&&100<e.actualDuration?(Sg=!0,c[0]=Dg,Cg.color=`warning`,Cg.tooltipText=Eg):(Cg.color=r,Cg.tooltipText=a),Cg.properties=c,wg.start=t,wg.end=n,s==null?performance.measure(``+a,wg):s.run(performance.measure.bind(performance,``+a,wg)))):s==null?console.timeStamp(a,t,n,bg,void 0,r):s.run(console.timeStamp.bind(console,a,t,n,bg,void 0,r))}}function $n(e,t,n,r){if(yg){var i=w(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&Jn(`key`,e.key,o,0,``),e.memoizedProps!==null&&qn(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:bg,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},a?a.run(performance.measure.bind(performance,``+i,e)):performance.measure(``+i,e)}}}function er(e,t,n,r,i){if(i!==null){if(yg){var a=w(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&Jn(`key`,e.key,r,0,``),e.memoizedProps!==null&&qn(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:bg,tooltipText:`A lifecycle or effect errored`,properties:r}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,``+a,t)):performance.measure(``+a,t)}}}else a=w(e),a!==null&&yg&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,bg,void 0,i)):console.timeStamp(a,t,n,bg,void 0,i))}function tr(e,t,n,r){if(yg&&!(t<=e)){var i=(n&738197653)===n?`tertiary-dark`:`primary-dark`;n=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,r?r.run(console.timeStamp.bind(console,n,e,t,xg,W,i)):console.timeStamp(n,e,t,xg,W,i)}}function nr(e,t,n,r){!yg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,xg,W,n)):console.timeStamp(`Prewarm`,e,t,xg,W,n))}function rr(e,t,n,r){!yg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,xg,W,n)):console.timeStamp(`Suspended`,e,t,xg,W,n))}function ir(e,t,n,r,i,a){if(yg&&!(t<=e)){n=[];for(var o=0;o<r.length;o++){var s=r[o].value;n.push([`Recoverable Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`primary-dark`,track:xg,trackGroup:W,tooltipText:i?`Hydration Failed`:`Recovered after Error`,properties:n}}},a?a.run(performance.measure.bind(performance,`Recovered`,e)):performance.measure(`Recovered`,e)}}function ar(e,t,n,r){!yg||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,xg,W,`error`)):console.timeStamp(`Errored`,e,t,xg,W,`error`))}function or(e,t,n,r){!yg||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,xg,W,`secondary-light`)):console.timeStamp(n,e,t,xg,W,`secondary-light`))}function sr(e,t,n,r,i){if(yg&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:xg,trackGroup:W,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e)}}function cr(e,t,n){!yg||t<=e||(n?n.run(console.timeStamp.bind(console,`Animating`,e,t,xg,W,`secondary-dark`)):console.timeStamp(`Animating`,e,t,xg,W,`secondary-dark`))}function lr(){for(var e=jg,t=Mg=jg=0;t<e;){var n=Ag[t];Ag[t++]=null;var r=Ag[t];Ag[t++]=null;var i=Ag[t];Ag[t++]=null;var a=Ag[t];if(Ag[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&pr(n,i,a)}}function ur(e,t,n,r){Ag[jg++]=e,Ag[jg++]=t,Ag[jg++]=n,Ag[jg++]=r,Mg|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function dr(e,t,n,r){return ur(e,t,n,r),mr(e)}function fr(e,t){return ur(e,null,null,t),mr(e)}function pr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&Og||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Np(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function mr(e){if(Kx>Gx)throw Zx=Kx=0,Qx=qx=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.`);Zx>Xx&&(Zx=0,Qx=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&&Bl(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&Bl(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function hr(e){if(Pg===null)return e;var t=Pg(e);return t===void 0?e:t.current}function gr(e){if(Pg===null)return e;var t=Pg(e);return t===void 0?e!=null&&typeof e.render==`function`&&(t=hr(e.render),e.render!==t)?(t={$$typeof:If,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function _r(e,t){if(Pg===null)return!1;var n=e.elementType;t=t.type;var r=!1,i=typeof t==`object`&&t?t.$$typeof:null;switch(e.tag){case 1:typeof t==`function`&&(r=!0);break;case 0:(typeof t==`function`||i===Bf)&&(r=!0);break;case 11:(i===If||i===Bf)&&(r=!0);break;case 14:case 15:(i===zf||i===Bf)&&(r=!0);break;default:return!1}return!!(r&&(e=Pg(n),e!==void 0&&e===Pg(t)))}function vr(e){Pg!==null&&typeof WeakSet==`function`&&(Fg===null&&(Fg=new WeakSet),Fg.add(e))}function yr(e,t,n){do{var r=e,i=r.alternate,a=r.child,o=r.sibling,s=r.tag;r=r.type;var c=null;switch(s){case 0:case 15:case 1:c=r;break;case 11:c=r.render}if(Pg===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var l=!1;if(r=!1,c!==null&&(c=Pg(c),c!==void 0&&(n.has(c)?r=!0:t.has(c)&&(s===1?r=!0:l=!0))),Fg!==null&&(Fg.has(e)||i!==null&&Fg.has(i))&&(r=!0),r&&(e._debugNeedsRemount=!0),(r||l)&&(i=fr(e,2),i!==null&&Zc(i,e,2)),a===null||r||yr(a,t,n),o===null)break;e=o}while(1)}function br(e,t,n,r){this.tag=e,this.key=n,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=r,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,Bg||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function xr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sr(e,t){var n=e.alternate;switch(n===null?(n=g(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=hr(e.type);break;case 1:n.type=hr(e.type);break;case 11:n.type=gr(e.type)}return n}function Cr(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function wr(e,t,n,r,i,a){var o=0,s=e;if(typeof e==`function`)xr(e)&&(o=1),s=hr(s);else if(typeof e==`string`)o=ue(),o=Hd(e,n,o)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case Vf:return t=g(31,n,t,i),t.elementType=Vf,t.lanes=a,t;case jf:return Er(n.children,i,a,t);case Mf:o=8,i|=Lg,i|=Rg;break;case Nf:return e=n,r=i,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=g(12,e,t,r|K),t.elementType=Nf,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Lf:return t=g(13,n,t,i),t.elementType=Lf,t.lanes=a,t;case Rf:return t=g(19,n,t,i),t.elementType=Rf,t.lanes=a,t;default:if(typeof e==`object`&&e)switch(e.$$typeof){case Ff:o=10;break a;case Pf:o=9;break a;case If:o=11,s=gr(s);break a;case zf:o=14;break a;case Bf:o=16,s=null;break a}s=``,(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(s+=` 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?n=`null`:Gf(e)?n=`array`:e!==void 0&&e.$$typeof===kf?(n=`<`+(C(e.type)||`Unknown`)+` />`,s=` Did you accidentally export a JSX literal instead of a component?`):n=typeof e,(o=r?ae(r):null)&&(s+=`
|
|
76
|
-
|
|
77
|
-
Check the render method of \``+o+"`."),o=29,n=Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+(n+`.`+s)),s=null}return t=g(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t._debugOwner=r,t}function Tr(e,t,n){return t=wr(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Er(e,t,n,r){return e=g(7,e,r,t),e.lanes=n,e}function Dr(e,t,n){return e=g(6,e,null,t),e.lanes=n,e}function Or(e){var t=g(18,null,null,G);return t.stateNode=e,t}function kr(e,t,n){return t=g(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ar(e,t){if(typeof e==`object`&&e){var n=Vg.get(e);return n===void 0?(t={value:e,source:t,stack:be(t)},Vg.set(e,t),t):n}return{value:e,source:t,stack:be(t)}}function jr(e,t){Lr(),Hg[Ug++]=Gg,Hg[Ug++]=Wg,Wg=e,Gg=t}function Mr(e,t,n){Lr(),Kg[qg++]=Yg,Kg[qg++]=Xg,Kg[qg++]=Jg,Jg=e;var r=Yg;e=Xg;var i=32-Np(r)-1;r&=~(1<<i),n+=1;var a=32-Np(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Yg=1<<32-Np(t)+i|n<<i|r,Xg=a+e}else Yg=1<<a|n<<i|r,Xg=e}function Nr(e){Lr(),e.return!==null&&(jr(e,1),Mr(e,1,0))}function Pr(e){for(;e===Wg;)Wg=Hg[--Ug],Hg[Ug]=null,Gg=Hg[--Ug],Hg[Ug]=null;for(;e===Jg;)Jg=Kg[--qg],Kg[qg]=null,Xg=Kg[--qg],Kg[qg]=null,Yg=Kg[--qg],Kg[qg]=null}function Fr(){return Lr(),Jg===null?null:{id:Yg,overflow:Xg}}function Ir(e,t){Lr(),Kg[qg++]=Yg,Kg[qg++]=Xg,Kg[qg++]=Jg,Yg=t.id,Xg=t.overflow,Jg=e}function Lr(){$g||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function Rr(e,t){if(e.return===null){if(t_===null)t_={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(t_.fiber!==e)throw Error(`Saw multiple hydration diff roots in a pass. This is a bug in React.`);t_.distanceFromLeaf>t&&(t_.distanceFromLeaf=t)}return t_}var n=Rr(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function zr(){$g&&console.error(`We should not be hydrating here. This is a bug in React. Please file a bug.`)}function Br(e,t){e_||(e=Rr(e,0),e.serverProps=null,t!==null&&(t=gd(t),e.serverTail.push(t)))}function Vr(e){var t=1<arguments.length&&arguments[1]!==void 0&&arguments[1],n=``,r=t_;throw r!==null&&(t_=null,n=Vt(r)),qr(Ar(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:
|
|
78
|
-
|
|
79
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
80
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
81
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
82
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
83
|
-
- Invalid HTML tag nesting.
|
|
84
|
-
|
|
85
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
86
|
-
|
|
87
|
-
https://react.dev/link/hydration-mismatch`+n),e)),i_}function Hr(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Wp]=e,t[Gp]=r,mu(n,r),n){case`dialog`:au(`cancel`,t),au(`close`,t);break;case`iframe`:case`object`:case`embed`:au(`load`,t);break;case`video`:case`audio`:for(n=0;n<fS.length;n++)au(fS[n],t);break;case`source`:au(`error`,t);break;case`img`:case`image`:case`link`:au(`error`,t),au(`load`,t);break;case`details`:au(`toggle`,t);break;case`input`:rt(`input`,r),au(`invalid`,t),gt(t,r),vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`option`:bt(t,r);break;case`select`:rt(`select`,r),au(`invalid`,t),Ct(t,r);break;case`textarea`:rt(`textarea`,r),au(`invalid`,t),wt(t,r),Tt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||bu(t.textContent,n)?(r.popover!=null&&(au(`beforetoggle`,t),au(`toggle`,t)),r.onScroll!=null&&au(`scroll`,t),r.onScrollEnd!=null&&au(`scrollend`,t),r.onClick!=null&&(t.onclick=sn),t=!0):t=!1,t||Vr(e,!0)}function Ur(e){for(Zg=e.return;Zg;)switch(Zg.tag){case 5:case 31:case 13:r_=!1;return;case 27:case 3:r_=!0;return;default:Zg=Zg.return}}function Wr(e){if(e!==Zg)return!1;if(!$g)return Ur(e),$g=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Bu(e.type,e.memoizedProps)),n=!n),n&&Qg){for(n=Qg;n;){var r=Rr(e,0),i=gd(n);r.serverTail.push(i),n=i.type===`Suspense`?vd(n):hd(n.nextSibling)}Vr(e)}if(Ur(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Qg=vd(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Qg=vd(e)}else t===27?(t=Qg,Zu(e.type)?(e=nC,nC=null,Qg=e):Qg=t):Qg=Zg?hd(e.stateNode.nextSibling):null;return!0}function Gr(){Qg=Zg=null,e_=$g=!1}function Kr(){var e=n_;return e!==null&&(mx===null?mx=e:mx.push.apply(mx,e),n_=null),e}function qr(e){n_===null?n_=[e]:n_.push(e)}function Jr(){var e=t_;if(e!==null){t_=null;for(var t=Vt(e);0<e.children.length;)e=e.children[0];D(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:
|
|
88
|
-
|
|
89
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
90
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
91
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
92
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
93
|
-
- Invalid HTML tag nesting.
|
|
94
|
-
|
|
95
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
96
|
-
|
|
97
|
-
%s%s`,`https://react.dev/link/hydration-mismatch`,t)})}}function Yr(){l_=c_=null,u_=!1}function Xr(e,t,n){E(a_,t._currentValue,e),t._currentValue=n,E(o_,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==s_&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer=s_}function Zr(e,t){e._currentValue=a_.current;var n=o_.current;oe(o_,t),e._currentRenderer=n,oe(a_,t)}function Qr(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}e!==n&&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 $r(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Qr(a.return,n,e),r||(o=null);break a}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(`We just came from a parent so we must have had a parent. This is a bug in React.`);o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Qr(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function ei(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(`Should have a current fiber. This is a bug in React.`);if(o=o.memoizedProps,o!==null){var s=i.type;Hh(i.pendingProps.value,o.value)||(e===null?e=[s]:e.push(s))}}else if(i===ep.current){if(o=i.alternate,o===null)throw Error(`Should have a current fiber. This is a bug in React.`);o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[bC]:e.push(bC))}i=i.return}e!==null&&$r(t,e,n,r),t.flags|=262144}function ti(e){for(e=e.firstContext;e!==null;){if(!Hh(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ni(e){c_=e,l_=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ri(e){return u_&&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().`),ai(c_,e)}function ii(e,t){return c_===null&&ni(e),ai(e,t)}function ai(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},l_===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().`);l_=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else l_=l_.next=t;return n}function oi(){return{controller:new d_,data:new Map,refCount:0}}function si(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 ci(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&&f_(p_,function(){e.controller.abort()})}function li(e,t,n){e&127?0>k_&&(k_=h_(),A_=g_(t),M_=t,n!=null&&(N_=w(n)),(Ub&(Pb|Fb))!==Nb&&(D_=!0,j_=__),e=Uu(),t=Hu(),e!==I_||t!==F_?I_=-1.1:t!==null&&(j_=__),P_=e,F_=t):e&4194048&&0>B_&&(B_=h_(),H_=g_(t),U_=t,n!=null&&(W_=w(n)),0>z_)&&(e=Uu(),t=Hu(),(e!==q_||t!==K_)&&(q_=-1.1),G_=e,K_=t)}function ui(e){if(0>k_){k_=h_(),A_=e._debugTask==null?null:e._debugTask,(Ub&(Pb|Fb))!==Nb&&(j_=__);var t=Uu(),n=Hu();t!==I_||n!==F_?I_=-1.1:n!==null&&(j_=__),P_=t,F_=n}0>B_&&(B_=h_(),H_=e._debugTask==null?null:e._debugTask,0>z_)&&(e=Uu(),t=Hu(),(e!==q_||t!==K_)&&(q_=-1.1),G_=e,K_=t)}function di(){var e=w_;return w_=0,e}function fi(e){var t=w_;return w_=e,t}function pi(e){var t=w_;return w_+=e,t}function mi(){J=q=-1.1}function hi(){var e=q;return q=-1.1,e}function gi(e){0<=e&&(q=e)}function M(){var e=T_;return T_=-0,e}function _i(e){0<=e&&(T_=e)}function vi(){var e=E_;return E_=null,e}function yi(){var e=D_;return D_=!1,e}function bi(e){C_=h_(),0>e.actualStartTime&&(e.actualStartTime=C_)}function xi(e){if(0<=C_){var t=h_()-C_;e.actualDuration+=t,e.selfBaseDuration=t,C_=-1}}function Si(e){if(0<=C_){var t=h_()-C_;e.actualDuration+=t,C_=-1}}function Ci(){if(0<=C_){var e=h_(),t=e-C_;C_=-1,w_+=t,T_+=t,J=e}}function wi(e){E_===null&&(E_=[]),E_.push(e),S_===null&&(S_=[]),S_.push(e)}function Ti(){C_=h_(),0>q&&(q=C_)}function Ei(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function N(e,t){if(rv===null){var n=rv=[];iv=0,av=$l(),ov={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return iv++,t.then(Di,Di),t}function Di(){if(--iv===0&&(-1<B_||(z_=-1.1),rv!==null)){ov!==null&&(ov.status=`fulfilled`);var e=rv;rv=null,av=0,ov=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Oi(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function ki(){var e=cv.current;return e===null?Wb.pooledCache:e}function Ai(e,t){t===null?E(cv,cv.current,e):E(cv,t.pool,e)}function ji(){var e=ki();return e===null?null:{parent:m_._currentValue,pool:e}}function Mi(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Ni(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Pi(e,t,n){U.actQueue!==null&&(U.didUsePromise=!0);var r=e.thenables;if(n=r[n],n===void 0?r.push(t):n!==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(sn,sn),t=n),t._debugInfo===void 0){e=performance.now(),r=t.displayName;var i={name:typeof r==`string`?r:`Promise`,start:e,end:e,value:t};t._debugInfo=[{awaited:i}],t.status!==`fulfilled`&&t.status!==`rejected`&&(e=function(){i.end=performance.now()},t.then(e,e))}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Li(e),e;default:if(typeof t.status==`string`)t.then(sn,sn);else{if(e=Wb,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(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Li(e),e}throw Vv=t,Hv=!0,Lv}}function Fi(e){try{return Iv(e)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Vv=e,Hv=!0,Lv):e}}function Ii(){if(Vv===null)throw Error(`Expected a suspended thenable. This is a bug in React. Please file an issue.`);var e=Vv;return Vv=null,Hv=!1,e}function Li(e){if(e===Lv||e===zv)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 Ri(e){var t=Y;return e!=null&&(Y=t===null?e:t.concat(e)),t}function P(){var e=Y;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function zi(e,t,n){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!==`children`&&a!==`key`){t===null&&(t=Tr(e,n.mode,0),t._debugInfo=Y,t.return=n),D(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},a);break}}}function Bi(e){var t=Wv;return Wv+=1,Uv===null&&(Uv=Mi()),Pi(Uv,e,t)}function Vi(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Hi(e,t){throw t.$$typeof===Of?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
98
|
-
- Multiple copies of the "react" package is used.
|
|
99
|
-
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
100
|
-
- 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 Ui(e,t){var n=P();n===null?Hi(e,t):n.run(Hi.bind(null,e,t))}function Wi(e,t){var n=w(e)||`Component`;Jv[n]||(Jv[n]=!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.
|
|
101
|
-
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.
|
|
102
|
-
<%s>{%s}</%s>`,t,t,n,t,n))}function Gi(e,t){var n=P();n===null?Wi(e,t):n.run(Wi.bind(null,e,t))}function Ki(e,t){var n=w(e)||`Component`;Yv[n]||(Yv[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
103
|
-
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
104
|
-
<%s>%s</%s>`,n,t,n))}function qi(e,t){var n=P();n===null?Ki(e,t):n.run(Ki.bind(null,e,t))}function Ji(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=Sr(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function s(e,t,n,r){return t===null||t.tag!==6?(t=Dr(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t):(t=i(t,n),t.return=e,t._debugInfo=Y,t)}function c(e,t,n,r){var a=n.type;return a===jf?(t=u(e,t,n.props.children,r,n.key),zi(n,t,e),t):t!==null&&(t.elementType===a||_r(t,n)||typeof a==`object`&&a&&a.$$typeof===Bf&&Fi(a)===t.type)?(t=i(t,n.props),Vi(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Y,t):(t=Tr(n,e.mode,r),Vi(t,n),t.return=e,t._debugInfo=Y,t)}function l(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=kr(n,e.mode,r),t.return=e,t._debugInfo=Y,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=Y,t)}function u(e,t,n,r,a){return t===null||t.tag!==7?(t=Er(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t):(t=i(t,n),t.return=e,t._debugInfo=Y,t)}function d(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Dr(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t;if(typeof t==`object`&&t){switch(t.$$typeof){case kf:return n=Tr(t,e.mode,n),Vi(n,t),n.return=e,e=Ri(t._debugInfo),n._debugInfo=Y,Y=e,n;case Af:return t=kr(t,e.mode,n),t.return=e,t._debugInfo=Y,t;case Bf:var r=Ri(t._debugInfo);return t=Fi(t),e=d(e,t,n),Y=r,e}if(Gf(t)||ie(t))return n=Er(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=Ri(t._debugInfo),n._debugInfo=Y,Y=e,n;if(typeof t.then==`function`)return r=Ri(t._debugInfo),e=d(e,Bi(t),n),Y=r,e;if(t.$$typeof===Ff)return d(e,ii(e,t),n);Ui(e,t)}return typeof t==`function`&&Gi(e,t),typeof t==`symbol`&&qi(e,t),null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?s(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case kf:return n.key===i?(i=Ri(n._debugInfo),e=c(e,t,n,r),Y=i,e):null;case Af:return n.key===i?l(e,t,n,r):null;case Bf:return i=Ri(n._debugInfo),n=Fi(n),e=p(e,t,n,r),Y=i,e}if(Gf(n)||ie(n))return i===null?(i=Ri(n._debugInfo),e=u(e,t,n,r,null),Y=i,e):null;if(typeof n.then==`function`)return i=Ri(n._debugInfo),e=p(e,t,Bi(n),r),Y=i,e;if(n.$$typeof===Ff)return p(e,t,ii(e,n),r);Ui(e,n)}return typeof n==`function`&&Gi(e,n),typeof n==`symbol`&&qi(e,n),null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,s(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case kf:return n=e.get(r.key===null?n:r.key)||null,e=Ri(r._debugInfo),t=c(t,n,r,i),Y=e,t;case Af:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case Bf:var a=Ri(r._debugInfo);return r=Fi(r),t=m(e,t,n,r,i),Y=a,t}if(Gf(r)||ie(r))return n=e.get(n)||null,e=Ri(r._debugInfo),t=u(t,n,r,i,null),Y=e,t;if(typeof r.then==`function`)return a=Ri(r._debugInfo),t=m(e,t,n,Bi(r),i),Y=a,t;if(r.$$typeof===Ff)return m(e,t,n,ii(t,r),i);Ui(t,r)}return typeof r==`function`&&Gi(t,r),typeof r==`symbol`&&qi(t,r),null}function h(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case kf:case Af:f(e,t,n);var i=n.key;if(typeof i!=`string`)break;if(r===null){r=new Set,r.add(i);break}if(!r.has(i)){r.add(i);break}D(t,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.",i)});break;case Bf:n=Fi(n),h(e,t,n,r)}return r}function _(i,o,s,c){for(var l=null,u=null,f=null,g=o,_=o=0,v=null;g!==null&&_<s.length;_++){g.index>_?(v=g,g=null):v=g.sibling;var y=p(i,g,s[_],c);if(y===null){g===null&&(g=v);break}l=h(i,y,s[_],l),e&&g&&y.alternate===null&&t(i,g),o=a(y,o,_),f===null?u=y:f.sibling=y,f=y,g=v}if(_===s.length)return n(i,g),$g&&jr(i,_),u;if(g===null){for(;_<s.length;_++)g=d(i,s[_],c),g!==null&&(l=h(i,g,s[_],l),o=a(g,o,_),f===null?u=g:f.sibling=g,f=g);return $g&&jr(i,_),u}for(g=r(g);_<s.length;_++)v=m(g,i,_,s[_],c),v!==null&&(l=h(i,v,s[_],l),e&&v.alternate!==null&&g.delete(v.key===null?_:v.key),o=a(v,o,_),f===null?u=v:f.sibling=v,f=v);return e&&g.forEach(function(e){return t(i,e)}),$g&&jr(i,_),u}function v(i,o,s,c){if(s==null)throw Error(`An iterable object provided no iterator.`);for(var l=null,u=null,f=o,g=o=0,_=null,v=null,y=s.next();f!==null&&!y.done;g++,y=s.next()){f.index>g?(_=f,f=null):_=f.sibling;var b=p(i,f,y.value,c);if(b===null){f===null&&(f=_);break}v=h(i,b,y.value,v),e&&f&&b.alternate===null&&t(i,f),o=a(b,o,g),u===null?l=b:u.sibling=b,u=b,f=_}if(y.done)return n(i,f),$g&&jr(i,g),l;if(f===null){for(;!y.done;g++,y=s.next())f=d(i,y.value,c),f!==null&&(v=h(i,f,y.value,v),o=a(f,o,g),u===null?l=f:u.sibling=f,u=f);return $g&&jr(i,g),l}for(f=r(f);!y.done;g++,y=s.next())_=m(f,i,g,y.value,c),_!==null&&(v=h(i,_,y.value,v),e&&_.alternate!==null&&f.delete(_.key===null?g:_.key),o=a(_,o,g),u===null?l=_:u.sibling=_,u=_);return e&&f.forEach(function(e){return t(i,e)}),$g&&jr(i,g),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===jf&&a.key===null&&(zi(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case kf:var c=Ri(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===jf){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),s.return=e,s._debugOwner=a._owner,s._debugInfo=Y,zi(a,s,e),e=s;break a}}else if(r.elementType===l||_r(r,a)||typeof l==`object`&&l&&l.$$typeof===Bf&&Fi(l)===r.type){n(e,r.sibling),s=i(r,a.props),Vi(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=Y,e=s;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===jf?(s=Er(a.props.children,e.mode,s,a.key),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Y,zi(a,s,e),e=s):(s=Tr(a,e.mode,s),Vi(s,a),s.return=e,s._debugInfo=Y,e=s)}return e=o(e),Y=c,e;case Af:a:{for(c=a,a=c.key;r!==null;){if(r.key===a){if(r.tag===4&&r.stateNode.containerInfo===c.containerInfo&&r.stateNode.implementation===c.implementation){n(e,r.sibling),s=i(r,c.children||[]),s.return=e,e=s;break a}n(e,r);break}t(e,r),r=r.sibling}s=kr(c,e.mode,s),s.return=e,e=s}return o(e);case Bf:return c=Ri(a._debugInfo),a=Fi(a),e=y(e,r,a,s),Y=c,e}if(Gf(a))return c=Ri(a._debugInfo),e=_(e,r,a,s),Y=c,e;if(ie(a)){if(c=Ri(a._debugInfo),l=ie(a),typeof l!=`function`)throw Error(`An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.`);var u=l.call(a);return u===a?(e.tag!==0||Object.prototype.toString.call(e.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(u)!==`[object Generator]`)&&(Kv||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."),Kv=!0):a.entries!==l||Gv||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Gv=!0),e=v(e,r,u,s),Y=c,e}if(typeof a.then==`function`)return c=Ri(a._debugInfo),e=y(e,r,Bi(a),s),Y=c,e;if(a.$$typeof===Ff)return y(e,r,ii(e,a),s);Ui(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(c=``+a,r!==null&&r.tag===6?(n(e,r.sibling),s=i(r,c),s.return=e,e=s):(n(e,r),s=Dr(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Y,e=s),o(e)):(typeof a==`function`&&Gi(e,a),typeof a==`symbol`&&qi(e,a),n(e,r))}return function(e,t,n,r){var i=Y;Y=null;try{Wv=0;var a=y(e,t,n,r);return Uv=null,a}catch(t){if(t===Lv||t===zv)throw t;var o=g(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=Y;if(o._debugOwner=e._debugOwner,o._debugTask=e._debugTask,s!=null){for(var c=s.length-1;0<=c;c--)if(typeof s[c].stack==`string`){o._debugOwner=s[c],o._debugTask=s[c].debugTask;break}}return o}finally{Y=i}}}function Yi(e,t){var n=Gf(e);return e=!n&&typeof ie(e)==`function`,n||e?(n=n?`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>`,n,t,n),!1):!0}function Xi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zi(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 Qi(e){return{lane:e,tag:Qv,payload:null,callback:null,next:null}}function $i(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,iy===r&&!ry){var i=w(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.
|
|
105
|
-
|
|
106
|
-
Please update the following component: %s`,i),ry=!0}return(Ub&Pb)===Nb?(ur(e,r,t,n),mr(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=mr(e),pr(e,null,n),t)}function ea(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,He(e,n)}}function ta(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function na(){if(ay){var e=ov;if(e!==null)throw e}}function ra(e,t,n,r){ay=!1;var i=e.updateQueue;ny=!1,iy=i.shared;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?($&f)===f:(r&f)===f){f!==0&&f===av&&(ay=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{f=e;var m=s,h=t,g=n;switch(m.tag){case $v:if(m=m.payload,typeof m==`function`){u_=!0;var _=m.call(g,d,h);if(f.mode&Lg){je(!0);try{m.call(g,d,h)}finally{je(!1)}}u_=!1,d=_;break a}d=m;break a;case ty:f.flags=f.flags&-65537|128;case Qv:if(_=m.payload,typeof _==`function`){if(u_=!0,m=_.call(g,d,h),f.mode&Lg){je(!0);try{_.call(g,d,h)}finally{je(!1)}}u_=!1}else m=_;if(m==null)break a;d=H({},d,m);break a;case ey:ny=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),cx|=o,e.lanes=o,e.memoizedState=d}iy=null}function ia(e,t){if(typeof e!=`function`)throw Error(`Invalid argument passed as callback. Expected a function. Instead received: `+e);e.call(t)}function aa(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)ia(n[e],t)}function oa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ia(n[e],t)}function sa(e,t){var n=ox;E(sy,n,e),E(oy,t,e),ox=n|t.baseLanes}function ca(e){E(sy,ox,e),E(oy,oy.current,e)}function la(e){ox=sy.current,oe(oy,e),oe(sy,e)}function ua(e){var t=e.alternate;E(fy,fy.current&uy,e),E(cy,e,e),ly===null&&(t===null||oy.current!==null||t.memoizedState!==null)&&(ly=e)}function da(e){E(fy,fy.current,e),E(cy,e,e),ly===null&&(ly=e)}function fa(e){e.tag===22?(E(fy,fy.current,e),E(cy,e,e),ly===null&&(ly=e)):pa(e)}function pa(e){E(fy,fy.current,e),E(cy,cy.current,e)}function ma(e){oe(cy,e),ly===e&&(ly=null),oe(fy,e)}function ha(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fd(n)||pd(n)))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)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 F(){var e=Z;Py===null?Py=[e]:Py.push(e)}function I(){var e=Z;if(Py!==null&&(Fy++,Py[Fy]!==e)){var t=w(X);if(!yy.has(t)&&(yy.add(t),Py!==null)){for(var n=``,r=0;r<=Fy;r++){var i=Py[r],a=r===Fy?e:i;for(i=r+1+`. `+i;30>i.length;)i+=` `;i+=a+`
|
|
107
|
-
`,n+=i}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
|
|
108
|
-
|
|
109
|
-
Previous render Next render
|
|
110
|
-
------------------------------------------------------
|
|
111
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
112
|
-
`,t,n)}}}function ga(e){e==null||Gf(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.",Z,typeof e)}function _a(){var e=w(X);Sy.has(e)||(Sy.add(e),console.error(`ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.`,e))}function va(){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:
|
|
113
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
114
|
-
2. You might be breaking the Rules of Hooks
|
|
115
|
-
3. You might have more than one copy of React in the same app
|
|
116
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function ya(e,t){if(Iy)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.`,Z),!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.
|
|
117
|
-
|
|
118
|
-
Previous: %s
|
|
119
|
-
Incoming: %s`,Z,`[`+t.join(`, `)+`]`,`[`+e.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!Hh(e[n],t[n]))return!1;return!0}function ba(e,t,n,r,i,a){Cy=a,X=t,Py=e===null?null:e._debugHookTypes,Fy=-1,Iy=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)===`[object AsyncFunction]`||Object.prototype.toString.call(n)===`[object AsyncGeneratorFunction]`)&&(a=w(X),xy.has(a)||(xy.add(a),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.",a===null?`An unknown Component`:`<`+a+`>`))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e!==null&&e.memoizedState!==null?By:Py===null?Ry:zy,Oy=a=(t.mode&Lg)!==G;var o=bv(n,r,i);if(Oy=!1,Dy&&(o=Sa(t,n,r,i)),a){je(!0);try{o=Sa(t,n,r,i)}finally{je(!1)}}return xa(e,t),o}function xa(e,t){t._debugHookTypes=Py,t.dependencies===null?jy!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:jy}):t.dependencies._debugThenableState=jy,U.H=Ly;var n=wy!==null&&wy.next!==null;if(Cy=0,Py=Z=Ty=wy=X=null,Fy=-1,e!==null&&(e.flags&65011712)!=(t.flags&65011712)&&console.error(`Internal React error: Expected static flag was missing. Please notify the React team.`),Ey=!1,Ay=0,jy=null,n)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);e===null||ob||(e=e.dependencies,e!==null&&ti(e)&&(ob=!0)),Hv?(Hv=!1,e=!0):e=!1,e&&(t=w(t)||`Unknown`,by.has(t)||xy.has(t)||(by.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 Sa(e,t,n,r){X=e;var i=0;do{if(Dy&&(jy=null),Ay=0,Dy=!1,i>=Ny)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(i+=1,Iy=!1,Ty=wy=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Fy=-1,U.H=Vy,a=bv(t,n,r)}while(Dy);return a}function Ca(){var e=U.H,t=e.useState()[0];return t=typeof t.then==`function`?Aa(t):t,e=e.useState()[0],(wy===null?null:wy.memoizedState)!==e&&(X.flags|=1024),t}function wa(){var e=ky!==0;return ky=0,e}function Ta(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&Rg)===G?t.flags&-2053:t.flags&-402655237,e.lanes&=~n}function Ea(e){if(Ey){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ey=!1}Cy=0,Py=Ty=wy=X=null,Fy=-1,Z=null,Dy=!1,Ay=ky=0,jy=null}function Da(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ty===null?X.memoizedState=Ty=e:Ty=Ty.next=e,Ty}function Oa(){if(wy===null){var e=X.alternate;e=e===null?null:e.memoizedState}else e=wy.next;var t=Ty===null?X.memoizedState:Ty.next;if(t!==null)Ty=t,wy=e;else{if(e===null)throw X.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.`);wy=e,e={memoizedState:wy.memoizedState,baseState:wy.baseState,baseQueue:wy.baseQueue,queue:wy.queue,next:null},Ty===null?X.memoizedState=Ty=e:Ty=Ty.next=e}return Ty}function ka(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Aa(e){var t=Ay;return Ay+=1,jy===null&&(jy=Mi()),e=Pi(jy,e,t),t=X,(Ty===null?t.memoizedState:Ty.next)===null&&(t=t.alternate,U.H=t!==null&&t.memoizedState!==null?By:Ry),e}function ja(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Aa(e);if(e.$$typeof===Ff)return ri(e)}throw Error(`An unsupported type was passed to use(): `+String(e))}function Ma(e){var t=null,n=X.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=X.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ka(),X.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Iy)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Hf;else n.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.`,n.length,e);return t.index++,n}function Na(e,t){return typeof t==`function`?t(e):t}function Pa(e,t,n){var r=Da();if(n!==void 0){var i=n(t);if(Oy){je(!0);try{n(t)}finally{je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Bo.bind(null,X,e),[r.memoizedState,e]}function Fa(e){return Ia(Oa(),wy,e)}function Ia(e,t,n){var r=e.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=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue!==i&&console.error(`Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.`),t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,c=null,l=t,u=!1;do{var d=l.lane&-536870913;if(d===l.lane?(Cy&d)===d:($&d)===d){var f=l.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===av&&(u=!0);else if((Cy&f)===f){l=l.next,f===av&&(u=!0);continue}else d={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=d,o=a):c=c.next=d,X.lanes|=f,cx|=f;d=l.action,Oy&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=f,o=a):c=c.next=f,X.lanes|=d,cx|=d;l=l.next}while(l!==null&&l!==t);if(c===null?o=a:c.next=s,!Hh(a,e.memoizedState)&&(ob=!0,u&&(n=ov,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function La(e){var t=Oa(),n=t.queue;if(n===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Hh(a,t.memoizedState)||(ob=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ra(e,t,n){var r=X,i=Da();if($g){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);var a=n();vy||a===n()||(console.error(`The result of getServerSnapshot should be cached to avoid an infinite loop`),vy=!0)}else{if(a=t(),vy||(n=t(),Hh(a,n)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),vy=!0)),Wb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);$&127||Ba(r,t,a)}return i.memoizedState=a,n={value:a,getSnapshot:t},i.queue=n,mo(Ha.bind(null,r,n,e),[e]),r.flags|=2048,lo(my|_y,{destroy:void 0},Va.bind(null,r,n,a,t),null),a}function za(e,t,n){var r=X,i=Oa(),a=$g;if(a){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);n=n()}else if(n=t(),!vy){var o=t();Hh(n,o)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),vy=!0)}if((o=!Hh((wy||i).memoizedState,n))&&(i.memoizedState=n,ob=!0),i=i.queue,po(2048,_y,Ha.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||Ty!==null&&Ty.memoizedState.tag&my){if(r.flags|=2048,lo(my|_y,{destroy:void 0},Va.bind(null,r,i,n,t),null),Wb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);a||Cy&127||Ba(r,t,n)}return n}function Ba(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t=ka(),X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Va(e,t,n,r){t.value=n,t.getSnapshot=r,Ua(t)&&Wa(e)}function Ha(e,t,n){return n(function(){Ua(t)&&(li(2,`updateSyncExternalStore()`,e),Wa(e))})}function Ua(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hh(e,n)}catch{return!0}}function Wa(e){var t=fr(e,2);t!==null&&Zc(t,e,2)}function Ga(e){var t=Da();if(typeof e==`function`){var n=e;if(e=n(),Oy){je(!0);try{n()}finally{je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:e},t}function Ka(e){e=Ga(e);var t=e.queue,n=Vo.bind(null,X,t);return t.dispatch=n,[e.memoizedState,n]}function qa(e){var t=Da();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ho.bind(null,X,!0,n),n.dispatch=t,[e,t]}function Ja(e,t){return Ya(Oa(),wy,e,t)}function Ya(e,t,n,r){return e.baseState=n,Ia(e,wy,typeof r==`function`?r:Na)}function Xa(e,t){var n=Oa();return wy===null?(n.baseState=e,[e,n.queue.dispatch]):Ya(n,wy,e,t)}function Za(e,t,n,r,i){if(Uo(e))throw Error(`Cannot update form state while rendering.`);if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};U.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Qa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Qa(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=U.T,o={};o._updatedFibers=new Set,U.T=o;try{var s=n(i,r),c=U.S;c!==null&&c(o,s),$a(e,t,s)}catch(n){to(e,t,n)}finally{a!==null&&o.types!==null&&(a.types!==null&&a.types!==o.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.`),a.types=o.types),U.T=a,a===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._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{o=n(i,r),$a(e,t,o)}catch(n){to(e,t,n)}}function $a(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?(U.asyncTransitions++,n.then(ko,ko),n.then(function(n){eo(e,t,n)},function(n){return to(e,t,n)}),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.")):eo(e,t,n)}function eo(e,t,n){t.status=`fulfilled`,t.value=n,no(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Qa(e,n)))}function to(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,no(t),t=t.next;while(t!==r)}e.action=null}function no(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ro(e,t){return t}function io(e,t){if($g){var n=Wb.formState;if(n!==null){a:{var r=X;if($g){if(Qg){b:{for(var i=Qg,a=r_;i.nodeType!==8;){if(!a){i=null;break b}if(i=hd(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===zS||a===BS?i:null}if(i){Qg=hd(i.nextSibling),r=i.data===zS;break a}}Vr(r)}r=!1}r&&(t=n[0])}}return n=Da(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ro,lastRenderedState:t},n.queue=r,n=Vo.bind(null,X,r),r.dispatch=n,r=Ga(!1),a=Ho.bind(null,X,!1,r.queue),r=Da(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Za.bind(null,X,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ao(e){return oo(Oa(),wy,e)}function oo(e,t,n){if(t=Ia(e,t,ro)[0],e=Fa(Na)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Aa(t)}catch(e){throw e===Lv?zv:e}else r=t;t=Oa();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(X.flags|=2048,lo(my|_y,{destroy:void 0},so.bind(null,i,n),null)),[r,a,e]}function so(e,t){e.action=t}function co(e){var t=Oa(),n=wy;if(n!==null)return oo(t,n,e);Oa(),t=t.memoizedState,n=Oa();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function lo(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=X.updateQueue,t===null&&(t=ka(),X.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function uo(e){var t=Da();return e={current:e},t.memoizedState=e}function fo(e,t,n,r){var i=Da();X.flags|=e,i.memoizedState=lo(my|t,{destroy:void 0},n,r===void 0?null:r)}function po(e,t,n,r){var i=Oa();r=r===void 0?null:r;var a=i.memoizedState.inst;wy!==null&&r!==null&&ya(r,wy.memoizedState.deps)?i.memoizedState=lo(t,a,n,r):(X.flags|=e,i.memoizedState=lo(my|t,a,n,r))}function mo(e,t){(X.mode&Rg)===G?fo(8390656,_y,e,t):fo(276826112,_y,e,t)}function ho(e){X.flags|=4;var t=X.updateQueue;if(t===null)t=ka(),X.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function go(e){var t=Da(),n={impl:e};return t.memoizedState=n,function(){if((Ub&Pb)!==Nb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return n.impl.apply(void 0,arguments)}}function _o(e){var t=Oa().memoizedState;return ho({ref:t,nextImpl:e}),function(){if((Ub&Pb)!==Nb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return t.impl.apply(void 0,arguments)}}function vo(e,t){var n=4194308;return(X.mode&Rg)!==G&&(n|=134217728),fo(n,gy,e,t)}function L(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():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 yo(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]);var r=4194308;(X.mode&Rg)!==G&&(r|=134217728),fo(r,gy,L.bind(null,t,e),n)}function bo(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]),po(4,gy,L.bind(null,t,e),n)}function xo(e,t){return Da().memoizedState=[e,t===void 0?null:t],e}function So(e,t){var n=Oa();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ya(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Co(e,t){var n=Da();t=t===void 0?null:t;var r=e();if(Oy){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r}function wo(e,t){var n=Oa();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ya(t,r[1]))return r[0];if(r=e(),Oy){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r}function To(e,t){return R(Da(),e,t)}function Eo(e,t){return Oo(Oa(),wy.memoizedState,e,t)}function Do(e,t){var n=Oa();return wy===null?R(n,e,t):Oo(n,wy.memoizedState,e,t)}function R(e,t,n){return n===void 0||Cy&1073741824&&!($&261930)?e.memoizedState=t:(e.memoizedState=n,e=Xc(),X.lanes|=e,cx|=e,n)}function Oo(e,t,n,r){return Hh(n,t)?n:oy.current===null?!(Cy&42)||Cy&1073741824&&!($&261930)?(ob=!0,e.memoizedState=n):(e=Xc(),X.lanes|=e,cx|=e,t):(e=R(e,n,r),Hh(e,t)||(ob=!0),e)}function ko(){U.asyncTransitions--}function Ao(e,t,n,r,i){var a=Kf.p;Kf.p=a!==0&&a<Bp?a:Bp;var o=U.T,s={};s._updatedFibers=new Set,U.T=s,Ho(e,!1,t,n);try{var c=i(),l=U.S;if(l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`){U.asyncTransitions++,c.then(ko,ko);var u=Oi(c,r);B(e,t,u,Yc(e))}else B(e,t,r,Yc(e))}catch(n){B(e,t,{then:function(){},status:`rejected`,reason:n},Yc(e))}finally{Kf.p=a,o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.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.`),o.types=s.types),U.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._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 jo(e,t,n,r){if(e.tag!==5)throw Error(`Expected the form instance to be a HostComponent. This is a bug in React.`);var i=Mo(e).queue;ui(e),Ao(e,i,t,yC,n===null?u:function(){return No(e),n(r)})}function Mo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:yC,baseState:yC,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:yC},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function No(e){U.T===null&&console.error(`requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.`);var t=Mo(e);t.next===null&&(t=e.alternate.memoizedState),B(e,t.next.queue,{},Yc(e))}function Po(){var e=Ga(!1);return e=Ao.bind(null,X,e.queue,!0,!1),Da().memoizedState=e,[!1,e]}function z(){var e=Fa(Na)[0],t=Oa().memoizedState;return[typeof e==`boolean`?e:Aa(e),t]}function Fo(){var e=La(Na)[0],t=Oa().memoizedState;return[typeof e==`boolean`?e:Aa(e),t]}function Io(){return ri(bC)}function Lo(){var e=Da(),t=Wb.identifierPrefix;if($g){var n=Xg,r=Yg;n=(r&~(1<<32-Np(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ky++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=My++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t}function Ro(){return Da().memoizedState=zo.bind(null,X)}function zo(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=Yc(n),i=Qi(r),a=$i(n,i,r);a!==null&&(li(r,`refresh()`,e),Zc(a,n,r),ea(a,n,r)),e=oi(),t!=null&&a!==null&&console.error(`The seed argument is not enabled outside experimental channels.`),i.payload={cache:e};return}n=n.return}}function Bo(e,t,n){var r=arguments;typeof r[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().`),r=Yc(e);var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};Uo(e)?Wo(t,i):(i=dr(e,t,i,r),i!==null&&(li(r,`dispatch()`,e),Zc(i,e,r),Go(i,t,r)))}function Vo(e,t,n){var r=arguments;typeof r[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().`),r=Yc(e),B(e,t,n,r)&&li(r,`setState()`,e)}function B(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Uo(e))Wo(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null)){var o=U.H;U.H=Uy;try{var s=t.lastRenderedState,c=a(s,n);if(i.hasEagerState=!0,i.eagerState=c,Hh(c,s))return ur(e,t,i,0),Wb===null&&lr(),!1}catch{}finally{U.H=o}}if(n=dr(e,t,i,r),n!==null)return Zc(n,e,r),Go(n,t,r),!0}return!1}function Ho(e,t,n,r){if(U.T===null&&av===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.`),r={lane:2,revertLane:$l(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Uo(e)){if(t)throw Error(`Cannot update optimistic state while rendering.`);console.error(`Cannot call startTransition while rendering.`)}else t=dr(e,n,r,2),t!==null&&(li(2,`setOptimistic()`,e),Zc(t,e,2))}function Uo(e){var t=e.alternate;return e===X||t!==null&&t===X}function Wo(e,t){Dy=Ey=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Go(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,He(e,n)}}function Ko(e){if(e!==null&&typeof e!=`function`){var t=String(e);tb.has(t)||(tb.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function qo(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&Lg){je(!0);try{a=n(r,i)}finally{je(!1)}}a===void 0&&(t=C(t)||`Component`,Zy.has(t)||(Zy.add(t),console.error(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,t))),i=a==null?i:H({},i,a),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}function Jo(e,t,n,r,i,a,o){var s=e.stateNode;if(typeof s.shouldComponentUpdate==`function`){if(n=s.shouldComponentUpdate(r,a,o),e.mode&Lg){je(!0);try{n=s.shouldComponentUpdate(r,a,o)}finally{je(!1)}}return n===void 0&&console.error(`%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.`,C(t)||`Component`),n}return t.prototype&&t.prototype.isPureReactComponent?!In(n,r)||!In(i,a):!0}function Yo(e,t,n,r){var i=t.state;typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i&&(e=w(e)||`Component`,Ky.has(e)||(Ky.add(e),console.error(`%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,e)),nb.enqueueReplaceState(t,t.state,null))}function Xo(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=H({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Zo(e){ug(e),console.warn(`%s
|
|
120
|
-
|
|
121
|
-
%s
|
|
122
|
-
`,rb?`An error occurred in the <`+rb+`> component.`:`An error occurred in one of your React components.`,`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
123
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Qo(e){var t=rb?`The above error occurred in the <`+rb+`> component.`:`The above error occurred in one of your React components.`,n=`React will try to recreate this component tree from scratch using the error boundary you provided, `+((ib||`Anonymous`)+`.`);if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var r=e.environmentName;e=[`%o
|
|
124
|
-
|
|
125
|
-
%s
|
|
126
|
-
|
|
127
|
-
%s
|
|
128
|
-
`,e,t,n].slice(0),typeof e[0]==`string`?e.splice(0,1,xC+` `+e[0],SC,wC+r+wC,CC):e.splice(0,0,xC,SC,wC+r+wC,CC),e.unshift(console),r=TC.apply(console.error,e),r()}else console.error(`%o
|
|
129
|
-
|
|
130
|
-
%s
|
|
131
|
-
|
|
132
|
-
%s
|
|
133
|
-
`,e,t,n)}function V(e){ug(e)}function $o(e,t){try{rb=t.source?w(t.source):null,ib=null;var n=t.value;if(U.actQueue!==null)U.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function es(e,t,n){try{rb=n.source?w(n.source):null,ib=w(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ts(e,t,n){return n=Qi(n),n.tag=ty,n.payload={element:null},n.callback=function(){D(t.source,$o,e,t)},n}function ns(e){return e=Qi(e),e.tag=ty,e}function rs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){vr(n),D(r.source,es,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){vr(n),D(r.source,es,t,n,r),typeof i!=`function`&&(Cx===null?Cx=new Set([this]):Cx.add(this)),Ov(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,w(n)||`Unknown`)})}function is(e,t,n,r,i){if(n.flags|=32768,Mp&&Vl(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ei(t,n,i,!0),$g&&(e_=!0),n=cy.current,n!==null){switch(n.tag){case 31:case 13:return ly===null?dl():n.alternate===null&&sx===Ib&&(sx=zb),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Bv?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ml(e,r,i)),!1;case 22:return n.flags|=65536,r===Bv?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ml(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Ml(e,r,i),dl(),!1}if($g)return e_=!0,t=cy.current,t===null?(r!==i_&&qr(Ar(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Ar(r,n),i=ts(e.stateNode,r,i),ta(e,i),sx!==Bb&&(sx=Rb)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==i_&&qr(Ar(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=Ar(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(px===null?px=[a]:px.push(a),sx!==Bb&&(sx=Rb),t===null)return!0;r=Ar(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=ts(n.stateNode,r,e),ta(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(Cx===null||!Cx.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=ns(i),rs(i,e,n,r),ta(n,i),!1}n=n.return}while(n!==null);return!1}function as(e,t,n,r){t.child=e===null?Zv(t,null,n,r):Xv(t,e.child,n,r)}function os(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ni(t),r=ba(e,t,n,o,a,i),s=wa(),e!==null&&!ob?(Ta(e,t,i),As(e,t,i)):($g&&s&&Nr(t),t.flags|=1,as(e,t,r,i),t.child)}function ss(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!xr(a)&&a.defaultProps===void 0&&n.compare===null?(n=hr(a),t.tag=15,t.type=n,bs(t,a),cs(e,t,n,r,i)):(e=wr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!js(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?In:n,n(o,r)&&e.ref===t.ref)return As(e,t,i)}return t.flags|=1,e=Sr(a,r),e.ref=t.ref,e.return=t,t.child=e}function cs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(In(a,r)&&e.ref===t.ref&&t.type===e.type){if(ob=!1,t.pendingProps=r=a,js(e,i))e.flags&131072&&(ob=!0);else return t.lanes=e.lanes,As(e,t,i)}}return gs(e,t,n,r,i)}function ls(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Og,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ds(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ai(t,a===null?null:a.cachePool),a===null?ca(t):sa(t,a),fa(t);else return r=t.lanes=536870912,ds(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ai(t,null),ca(t),pa(t)):(Ai(t,a.cachePool),sa(t,a),pa(t),t.memoizedState=null);return as(e,t,i,n),t.child}function us(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Og,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ds(e,t,n,r,i){var a=ki();return a=a===null?null:{parent:m_._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ai(t,null),ca(t),fa(t),e!==null&&ei(e,t,r,!0),t.childLanes=i,null}function fs(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
134
|
-
- <Activity %s>
|
|
135
|
-
+ <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=Ts({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ps(e,t,n){return Xv(t,e.child,null,n),e=fs(t,t.pendingProps),e.flags|=2,ma(t),t.memoizedState=null,e}function ms(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if($g){if(r.mode===`hidden`)return e=fs(t,r),t.lanes=536870912,us(null,e);if(da(t),(e=Qg)?(n=dd(e,r_),n=n!==null&&n.data===kS?n:null,n!==null&&(r={dehydrated:n,treeContext:Fr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Or(n),r.return=t,t.child=r,Zg=t,Qg=null)):n=null,n===null)throw Br(t,e),Vr(t);return t.lanes=536870912,null}return fs(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(da(t),i){if(t.flags&256)t.flags&=-257,t=ps(e,t,n);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(zr(),n&536870912&&ul(t),ob||ei(e,t,n,!1),i=(n&e.childLanes)!==0,ob||i){if(r=Wb,r!==null&&(o=Ue(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,fr(e,o),Zc(r,e,o),ab;dl(),t=ps(e,t,n)}else e=a.treeContext,Qg=hd(o.nextSibling),Zg=t,$g=!0,n_=null,e_=!1,t_=null,r_=!1,e!==null&&Ir(t,e),t=fs(t,r),t.flags|=4096;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&ul(t),e=Sr(a,r),e.ref=t.ref,t.child=e,e.return=t,e}function hs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(`Expected ref to be a function, an object returned by React.createRef(), or undefined/null.`);(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gs(e,t,n,r,i){if(n.prototype&&typeof n.prototype.render==`function`){var a=C(n)||`Unknown`;sb[a]||(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.`,a,a),sb[a]=!0)}return t.mode&Lg&&lv.recordLegacyContextWarning(t,null),e===null&&(bs(t,t.type),n.contextTypes&&(a=C(n)||`Unknown`,lb[a]||(lb[a]=!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)`,a)))),ni(t),n=ba(e,t,n,r,void 0,i),r=wa(),e!==null&&!ob?(Ta(e,t,i),As(e,t,i)):($g&&r&&Nr(t),t.flags|=1,as(e,t,n,i),t.child)}function _s(e,t,n,r,i,a){return ni(t),Fy=-1,Iy=e!==null&&e.type!==t.type,t.updateQueue=null,n=Sa(t,r,n,i),xa(e,t),r=wa(),e!==null&&!ob?(Ta(e,t,a),As(e,t,a)):($g&&r&&Nr(t),t.flags|=1,as(e,t,n,a),t.child)}function vs(e,t,n,r,i){switch(s(t)){case!1:var a=t.stateNode,o=new t.type(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,o,null);break;case!0:t.flags|=128,t.flags|=65536,a=Error(`Simulated error coming from DevTools`);var c=i&-i;if(t.lanes|=c,o=Wb,o===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);c=ns(c),rs(c,o,t,Ar(a,t)),ta(t,c)}if(ni(t),t.stateNode===null){if(o=Ng,a=n.contextType,`contextType`in n&&a!==null&&(a===void 0||a.$$typeof!==Ff)&&!eb.has(n)&&(eb.add(n),c=a===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 a==`object`?a.$$typeof===Pf?` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to an object with keys {`+Object.keys(a).join(`, `)+`}.`:` However, it is set to a `+typeof a+`.`,console.error(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,C(n)||`Component`,c)),typeof a==`object`&&a&&(o=ri(a)),a=new n(r,o),t.mode&Lg){je(!0);try{a=new n(r,o)}finally{je(!1)}}if(o=t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=nb,t.stateNode=a,a._reactInternals=t,a._reactInternalInstance=Gy,typeof n.getDerivedStateFromProps==`function`&&o===null&&(o=C(n)||`Component`,qy.has(o)||(qy.add(o),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.",o,a.state===null?`null`:`undefined`,o))),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`){var l=c=o=null;if(typeof a.componentWillMount==`function`&&!0!==a.componentWillMount.__suppressDeprecationWarning?o=`componentWillMount`:typeof a.UNSAFE_componentWillMount==`function`&&(o=`UNSAFE_componentWillMount`),typeof a.componentWillReceiveProps==`function`&&!0!==a.componentWillReceiveProps.__suppressDeprecationWarning?c=`componentWillReceiveProps`:typeof a.UNSAFE_componentWillReceiveProps==`function`&&(c=`UNSAFE_componentWillReceiveProps`),typeof a.componentWillUpdate==`function`&&!0!==a.componentWillUpdate.__suppressDeprecationWarning?l=`componentWillUpdate`:typeof a.UNSAFE_componentWillUpdate==`function`&&(l=`UNSAFE_componentWillUpdate`),o!==null||c!==null||l!==null){a=C(n)||`Component`;var u=typeof n.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;Yy.has(a)||(Yy.add(a),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
136
|
-
|
|
137
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
138
|
-
|
|
139
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
140
|
-
https://react.dev/link/unsafe-component-lifecycles`,a,u,o===null?``:`
|
|
141
|
-
`+o,c===null?``:`
|
|
142
|
-
`+c,l===null?``:`
|
|
143
|
-
`+l))}}a=t.stateNode,o=C(n)||`Component`,a.render||(n.prototype&&typeof n.prototype.render==`function`?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",o):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",o)),!a.getInitialState||a.getInitialState.isReactClassApproved||a.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?`,o),a.getDefaultProps&&!a.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.`,o),a.contextType&&console.error(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,o),n.childContextTypes&&!$y.has(n)&&($y.add(n),console.error(`%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)`,o)),n.contextTypes&&!Qy.has(n)&&(Qy.add(n),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)`,o)),typeof a.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.`,o),n.prototype&&n.prototype.isPureReactComponent&&a.shouldComponentUpdate!==void 0&&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.`,C(n)||`A pure component`),typeof a.componentDidUnmount==`function`&&console.error(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,o),typeof a.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().`,o),typeof a.componentWillRecieveProps==`function`&&console.error(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,o),typeof a.UNSAFE_componentWillRecieveProps==`function`&&console.error(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,o),c=a.props!==r,a.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o),a.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.`,o,o),typeof a.getSnapshotBeforeUpdate!=`function`||typeof a.componentDidUpdate==`function`||Jy.has(n)||(Jy.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,C(n))),typeof a.getDerivedStateFromProps==`function`&&console.error(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof a.getDerivedStateFromError==`function`&&console.error(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof n.getSnapshotBeforeUpdate==`function`&&console.error(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,o),(c=a.state)&&(typeof c!=`object`||Gf(c))&&console.error(`%s.state: must be set to an object or null`,o),typeof a.getChildContext==`function`&&typeof n.childContextTypes!=`object`&&console.error(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,o),a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Xi(t),o=n.contextType,a.context=typeof o==`object`&&o?ri(o):Ng,a.state===r&&(o=C(n)||`Component`,Xy.has(o)||(Xy.add(o),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.`,o))),t.mode&Lg&&lv.recordLegacyContextWarning(t,a),lv.recordUnsafeLifecycleWarnings(t,a),a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(qo(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&(console.error(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,w(t)||`Component`),nb.enqueueReplaceState(a,a.state,null)),ra(t,r,a,i),na(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==G&&(t.flags|=134217728),a=!0}else if(e===null){a=t.stateNode;var d=t.memoizedProps;c=Xo(n,d),a.props=c;var f=a.context;l=n.contextType,o=Ng,typeof l==`object`&&l&&(o=ri(l)),u=n.getDerivedStateFromProps,l=typeof u==`function`||typeof a.getSnapshotBeforeUpdate==`function`,d=t.pendingProps!==d,l||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(d||f!==o)&&Yo(t,a,r,o),ny=!1;var p=t.memoizedState;a.state=p,ra(t,r,a,i),na(),f=t.memoizedState,d||p!==f||ny?(typeof u==`function`&&(qo(t,n,u,r),f=t.memoizedState),(c=ny||Jo(t,n,c,r,p,f,o))?(l||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==G&&(t.flags|=134217728)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==G&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=o,a=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==G&&(t.flags|=134217728),a=!1)}else{a=t.stateNode,Zi(e,t),o=t.memoizedProps,l=Xo(n,o),a.props=l,u=t.pendingProps,p=a.context,f=n.contextType,c=Ng,typeof f==`object`&&f&&(c=ri(f)),d=n.getDerivedStateFromProps,(f=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==u||p!==c)&&Yo(t,a,r,c),ny=!1,p=t.memoizedState,a.state=p,ra(t,r,a,i),na();var m=t.memoizedState;o!==u||p!==m||ny||e!==null&&e.dependencies!==null&&ti(e.dependencies)?(typeof d==`function`&&(qo(t,n,d,r),m=t.memoizedState),(l=ny||Jo(t,n,l,r,p,m,c)||e!==null&&e.dependencies!==null&&ti(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,a=l):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}if(c=a,hs(e,t),o=!!(t.flags&128),c||o){if(c=t.stateNode,we(t),o&&typeof n.getDerivedStateFromError!=`function`)n=null,C_=-1;else if(n=Sv(c),t.mode&Lg){je(!0);try{Sv(c)}finally{je(!1)}}t.flags|=1,e!==null&&o?(t.child=Xv(t,e.child,null,i),t.child=Xv(t,null,n,i)):as(e,t,n,i),t.memoizedState=c.state,e=t.child}else e=As(e,t,i);return i=t.stateNode,a&&i.props!==r&&(db||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",w(t)||`a component`),db=!0),e}function ys(e,t,n,r){return Gr(),t.flags|=256,as(e,t,n,r),t.child}function bs(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
144
|
-
%s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=C(t)||`Unknown`,ub[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),ub[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=C(t)||`Unknown`,cb[t]||(console.error(`%s: Function components do not support contextType.`,t),cb[t]=!0))}function xs(e){return{baseLanes:e,cachePool:ji()}}function Ss(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=dx),e}function Cs(e,t,n){var r,i=t.pendingProps;o(t)&&(t.flags|=128);var a=!1,s=!!(t.flags&128);if((r=s)||(r=e!==null&&e.memoizedState===null?!1:(fy.current&dy)!==0),r&&(a=!0,t.flags&=-129),r=!!(t.flags&32),t.flags&=-33,e===null){if($g){if(a?ua(t):pa(t),(e=Qg)?(n=dd(e,r_),n=n!==null&&n.data!==kS?n:null,n!==null&&(r={dehydrated:n,treeContext:Fr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Or(n),r.return=t,t.child=r,Zg=t,Qg=null)):n=null,n===null)throw Br(t,e),Vr(t);return pd(n)?t.lanes=32:t.lanes=536870912,null}var c=i.children;if(i=i.fallback,a){pa(t);var l=t.mode;return c=Ts({mode:`hidden`,children:c},l),i=Er(i,l,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=xs(n),i.childLanes=Ss(e,r,n),t.memoizedState=mb,us(null,i)}return ua(t),ws(t,c)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(d!==null){if(s)t.flags&256?(ua(t),t.flags&=-257,t=Es(e,t,n)):t.memoizedState===null?(pa(t),c=i.fallback,l=t.mode,i=Ts({mode:`visible`,children:i.children},l),c=Er(c,l,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Xv(t,e.child,null,n),i=t.child,i.memoizedState=xs(n),i.childLanes=Ss(e,r,n),t.memoizedState=mb,t=us(null,i)):(pa(t),t.child=e.child,t.flags|=128,t=null);else if(ua(t),zr(),n&536870912&&ul(t),pd(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r){c=r.dgst;var f=r.msg;l=r.stck;var p=r.cstck}a=f,r=c,i=l,d=p,c=a,l=d,c=Error(c||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),c.stack=i||``,c.digest=r,r=l===void 0?null:l,i={value:c,source:null,stack:r},typeof r==`string`&&Vg.set(c,i),qr(i),t=Es(e,t,n)}else if(ob||ei(e,t,n,!1),r=(n&e.childLanes)!==0,ob||r){if(r=Wb,r!==null&&(i=Ue(r,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,fr(e,i),Zc(r,e,i),ab;fd(d)||dl(),t=Es(e,t,n)}else fd(d)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,Qg=hd(d.nextSibling),Zg=t,$g=!0,n_=null,e_=!1,t_=null,r_=!1,e!==null&&Ir(t,e),t=ws(t,i.children),t.flags|=4096);return t}}return a?(pa(t),c=i.fallback,l=t.mode,p=e.child,d=p.sibling,i=Sr(p,{mode:`hidden`,children:i.children}),i.subtreeFlags=p.subtreeFlags&65011712,d===null?(c=Er(c,l,n,null),c.flags|=2):c=Sr(d,c),c.return=t,i.return=t,i.sibling=c,t.child=i,us(null,i),i=t.child,c=e.child.memoizedState,c===null?c=xs(n):(l=c.cachePool,l===null?l=ji():(p=m_._currentValue,l=l.parent===p?l:{parent:p,pool:p}),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=Ss(e,r,n),t.memoizedState=mb,us(e.child,i)):(u!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&ul(t),ua(t),n=e.child,e=n.sibling,n=Sr(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function ws(e,t){return t=Ts({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ts(e,t){return e=g(22,e,null,t),e.lanes=0,e}function Es(e,t,n){return Xv(t,e.child,null,n),e=ws(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ds(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qr(e.return,t,n)}function Os(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function ks(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=fy.current;if((r=(s&dy)!==0)?(s=s&uy|dy,t.flags|=128):s&=uy,E(fy,s,t),s=i??`null`,i!==`forwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!fb[s]){if(fb[s]=!0,i==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(i===`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 i==`string`)switch(i.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.`,i,i.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.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}s=a??`null`,pb[s]||(a==null?(i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&(pb[s]=!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".`)):a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(pb[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(pb[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o){if(Gf(o)){for(s=0;s<o.length;s++)if(!Yi(o[s],s))break a}else if(s=ie(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!Yi(c.value,l))break a;l++}}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?`,i)}if(as(e,t,o,n),$g?(Lr(),o=Gg):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ds(e,n,t);else if(e.tag===19)Ds(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ha(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Os(t,!1,i,n,a,o);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ha(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Os(t,!0,n,null,a,o);break;case`together`:Os(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function As(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),C_=-1,cx|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ei(e,t,n,!1),(n&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,n=Sr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Sr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function js(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ti(e)))}function Ms(e,t,n){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),Xr(t,m_,e.memoizedState.cache),Gr();break;case 27:case 5:de(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:Xr(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,da(t),null;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ua(t),e=As(e,t,n),e===null?null:e.sibling):Cs(e,t,n):(ua(t),t.flags|=128,null);ua(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(ei(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ks(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),E(fy,fy.current,t),r)break;return null;case 22:return t.lanes=0,ls(e,t,n,t.pendingProps);case 24:Xr(t,m_,e.memoizedState.cache)}return As(e,t,n)}function Ns(e,t,n){if(t._debugNeedsRemount&&e!==null){n=wr(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(e!==null){if(e.memoizedProps!==t.pendingProps||t.type!==e.type)ob=!0;else{if(!js(e,n)&&!(t.flags&128))return ob=!1,Ms(e,t,n);ob=!!(e.flags&131072)}}else ob=!1,(r=$g)&&(Lr(),r=!!(t.flags&1048576)),r&&(r=t.index,Lr(),Mr(t,Gg,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=Fi(t.elementType),t.type=e,typeof e==`function`)xr(e)?(r=Xo(e,r),t.tag=1,t.type=e=hr(e),t=vs(null,t,e,r,n)):(t.tag=0,bs(t,e),t.type=e=hr(e),t=gs(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===If){t.tag=11,t.type=e=gr(e),t=os(null,t,e,r,n);break a}if(i===zf){t.tag=14,t=ss(null,t,e,r,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===Bf&&(t=` Did you wrap a component in React.lazy() more than once?`),n=C(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+n+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return gs(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Xo(r,t.pendingProps),vs(e,t,r,i,n);case 3:a:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);r=t.pendingProps;var a=t.memoizedState;i=a.element,Zi(e,t),ra(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Xr(t,m_,r),r!==a.cache&&$r(t,[m_],n,!0),na(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=ys(e,t,r,n);break a}if(r!==i){i=Ar(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),qr(i),t=ys(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Qg=hd(e.firstChild),Zg=t,$g=!0,n_=null,e_=!1,t_=null,r_=!0,n=Zv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Gr(),r===i){t=As(e,t,n);break a}as(e,t,r,n)}t=t.child}return t;case 26:return hs(e,t),e===null?(n=Od(t.type,null,t.pendingProps,null))?t.memoizedState=n:$g||(n=t.type,e=t.pendingProps,r=se($f.current),r=Lu(r).createElement(n),r[Wp]=t,r[Gp]=e,Cu(r,n,e),et(r),t.stateNode=r):t.memoizedState=Od(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return de(t),e===null&&$g&&(r=se($f.current),i=ue(),r=t.stateNode=Cd(t.type,t.pendingProps,r,i,!1),e_||(i=Nu(r,t.type,t.pendingProps,i),i!==null&&(Rr(t,0).serverProps=i)),Zg=t,r_=!0,i=Qg,Zu(t.type)?(nC=i,Qg=hd(r.firstChild)):Qg=i),as(e,t,t.pendingProps.children,n),hs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$g&&(a=ue(),r=qt(t.type,a.ancestorInfo),i=Qg,(o=!i)||(o=ld(i,t.type,t.pendingProps,r_),o===null?a=!1:(t.stateNode=o,e_||(a=Nu(o,t.type,t.pendingProps,a),a!==null&&(Rr(t,0).serverProps=a)),Zg=t,Qg=hd(o.firstChild),r_=!1,a=!0),o=!a),o&&(r&&Br(t,i),Vr(t))),de(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Bu(i,a)?r=null:o!==null&&Bu(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=ba(e,t,Ca,null,null,n),bC._currentValue=i),hs(e,t),as(e,t,r,n),t.child;case 6:return e===null&&$g&&(n=t.pendingProps,e=ue(),r=e.ancestorInfo.current,n=r==null||Jt(n,r.tag,e.ancestorInfo.implicitRootScope),e=Qg,(r=!e)||(r=ud(e,t.pendingProps,r_),r===null?r=!1:(t.stateNode=r,Zg=t,Qg=null,r=!0),r=!r),r&&(n&&Br(t,e),Vr(t))),null;case 13:return Cs(e,t,n);case 4:return ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xv(t,null,r,n):as(e,t,r,n),t.child;case 11:return os(e,t,t.type,t.pendingProps,n);case 7:return as(e,t,t.pendingProps,n),t.child;case 8:return as(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,as(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=t.pendingProps,a=i.value,`value`in i||hb||(hb=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Xr(t,r,a),as(e,t,i.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`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.`),ni(t),i=ri(i),r=bv(r,i,void 0),t.flags|=1,as(e,t,r,n),t.child;case 14:return ss(e,t,t.type,t.pendingProps,n);case 15:return cs(e,t,t.type,t.pendingProps,n);case 19:return ks(e,t,n);case 31:return ms(e,t,n);case 22:return ls(e,t,n,t.pendingProps);case 24:return ni(t),r=ri(m_),e===null?(i=ki(),i===null&&(i=Wb,a=oi(),i.pooledCache=a,si(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Xi(t),Xr(t,m_,i)):((e.lanes&n)!==0&&(Zi(e,t),ra(t,null,null,n),na()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Xr(t,m_,r),r!==i.cache&&$r(t,[m_],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Xr(t,m_,r))),as(e,t,t.pendingProps.children,n),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 Ps(e){e.flags|=4}function Fs(e,t,n,r,i){if((t=(e.mode&zg)!==G)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(sl())e.flags|=8192;else throw Vv=Bv,Rv}}else e.flags&=-16777217}function Is(e,t){if(t.type!==`stylesheet`||(t.state.loading&sC)!==rC)e.flags&=-16777217;else if(e.flags|=16777216,!Ud(t)){if(sl())e.flags|=8192;else throw Vv=Bv,Rv}}function Ls(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Le(),e.lanes|=t,fx|=t)}function Rs(e,t){if(!$g)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function zs(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t){if((e.mode&K)!==G){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling}else if((e.mode&K)!==G){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bs(e,t,n){var r=t.pendingProps;switch(Pr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zs(t),null;case 1:return zs(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Zr(m_,t),le(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wr(t)?(Jr(),Ps(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Kr())),zs(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Ps(t),a===null?(zs(t),Fs(t,i,null,r,n)):(zs(t),Is(t,a))):a?a===e.memoizedState?(zs(t),t.flags&=-16777217):(Ps(t),zs(t),Is(t,a)):(e=e.memoizedProps,e!==r&&Ps(t),zs(t),Fs(t,i,e,r,n)),null;case 27:if(fe(t),n=se($f.current),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ps(t);else{if(!r){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 zs(t),null}e=ue(),Wr(t)?Hr(t,e):(e=Cd(i,r,n,e,!0),t.stateNode=e,Ps(t))}return zs(t),null;case 5:if(fe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ps(t);else{if(!r){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 zs(t),null}var o=ue();if(Wr(t))Hr(t,o);else{switch(a=se($f.current),qt(i,o.ancestorInfo),o=o.context,a=Lu(a),o){case WS:a=a.createElementNS(Pm,i);break;case GS:a=a.createElementNS(Nm,i);break;default:switch(i){case`svg`:a=a.createElementNS(Pm,i);break;case`math`:a=a.createElementNS(Nm,i);break;case`script`:a=a.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?a.createElement(`select`,{is:r.is}):a.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?a.createElement(i,{is:r.is}):a.createElement(i),i.indexOf(`-`)===-1&&(i!==i.toLowerCase()&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,i),Object.prototype.toString.call(a)!==`[object HTMLUnknownElement]`||hp.call(JS,i)||(JS[i]=!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.`,i)))}}a[Wp]=t,a[Gp]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Cu(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ps(t)}}return zs(t),Fs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ps(t);else{if(typeof r!=`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=se($f.current),n=ue(),Wr(t)){if(e=t.stateNode,n=t.memoizedProps,i=!e_,r=null,a=Zg,a!==null)switch(a.tag){case 3:i&&(i=_d(e,n,r),i!==null&&(Rr(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=_d(e,n,r),i!==null&&(Rr(t,0).serverProps=i))}e[Wp]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||bu(e.nodeValue,n)),e||Vr(t,!0)}else i=n.ancestorInfo.current,i!=null&&Jt(r,i.tag,n.ancestorInfo.implicitRootScope),e=Lu(e).createTextNode(r),e[Wp]=t,t.stateNode=e}return zs(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Wr(t),n!==null){if(e===null){if(!r)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?null:e.dehydrated,!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[Wp]=t,zs(t),(t.mode&K)!==G&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Jr(),Gr(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,zs(t),(t.mode&K)!==G&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Kr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ma(t),t):(ma(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return zs(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=Wr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);a[Wp]=t,zs(t),(t.mode&K)!==G&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else Jr(),Gr(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,zs(t),(t.mode&K)!==G&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=Kr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(ma(t),t):(ma(t),null)}return ma(t),t.flags&128?(t.lanes=n,(t.mode&K)!==G&&Ei(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ls(t,t.updateQueue),zs(t),(t.mode&K)!==G&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return le(t),e===null&&su(t.stateNode.containerInfo),zs(t),null;case 10:return Zr(t.type,t),zs(t),null;case 19:if(oe(fy,t),r=t.memoizedState,r===null)return zs(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)Rs(r,!1);else{if(sx!==Ib||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ha(e),a!==null){for(t.flags|=128,Rs(r,!1),e=a.updateQueue,t.updateQueue=e,Ls(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Cr(n,e),n=n.sibling;return E(fy,fy.current&uy|dy,t),$g&&jr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&bp()>yx&&(t.flags|=128,i=!0,Rs(r,!1),t.lanes=4194304)}}else{if(!i){if(e=ha(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ls(t,e),Rs(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!$g)return zs(t),null}else 2*bp()-r.renderingStartTime>yx&&n!==536870912&&(t.flags|=128,i=!0,Rs(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(zs(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=bp(),e.sibling=null,n=fy.current,n=i?n&uy|dy:n&uy,E(fy,n,t),$g&&jr(t,r.treeForkCount),e);case 22:case 23:return ma(t),la(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(zs(t),t.subtreeFlags&6&&(t.flags|=8192)):zs(t),n=t.updateQueue,n!==null&&Ls(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&oe(cv,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zr(m_,t),zs(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 Vs(e,t){switch(Pr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&K)!==G&&Ei(t),t):null;case 3:return Zr(m_,t),le(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(ma(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Gr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&K)!==G&&Ei(t),t):null;case 13:if(ma(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.`);Gr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&K)!==G&&Ei(t),t):null;case 19:return oe(fy,t),null;case 4:return le(t),null;case 10:return Zr(t.type,t),null;case 22:case 23:return ma(t),la(t),e!==null&&oe(cv,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&K)!==G&&Ei(t),t):null;case 24:return Zr(m_,t),null;case 25:return null;default:return null}}function Hs(e,t){switch(Pr(t),t.tag){case 3:Zr(m_,t),le(t);break;case 26:case 27:case 5:fe(t);break;case 4:le(t);break;case 31:t.memoizedState!==null&&ma(t);break;case 13:ma(t);break;case 19:oe(fy,t);break;case 10:Zr(t.type,t);break;case 22:case 23:ma(t),la(t),e!==null&&oe(cv,t);break;case 24:Zr(m_,t)}}function Us(e){return(e.mode&K)!==G}function Ws(e,t){Us(e)?(Ti(),Ks(t,e),Ci()):Ks(t,e)}function Gs(e,t,n){Us(e)?(Ti(),qs(n,e,t),Ci()):qs(n,e,t)}function Ks(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e&&(r=void 0,(e&hy)!==py&&($x=!0),r=D(t,Mv,n),(e&hy)!==py&&($x=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&gy)===0?(n.tag&hy)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
|
|
145
|
-
|
|
146
|
-
It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
147
|
-
|
|
148
|
-
`+a+`(() => {
|
|
149
|
-
async function fetchData() {
|
|
150
|
-
// You can await here
|
|
151
|
-
const response = await MyAPI.getData(someId);
|
|
152
|
-
// ...
|
|
153
|
-
}
|
|
154
|
-
fetchData();
|
|
155
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
156
|
-
|
|
157
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,D(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){jl(t,t.return,e)}}function qs(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&hy)!==py&&($x=!0),i=t,D(i,Pv,i,n,s),(e&hy)!==py&&($x=!1))}r=r.next}while(r!==a)}}catch(e){jl(t,t.return,e)}}function Js(e,t){Us(e)?(Ti(),Ks(t,e),Ci()):Ks(t,e)}function Ys(e,t,n){Us(e)?(Ti(),qs(n,e,t),Ci()):qs(n,e,t)}function Xs(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||db||(n.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.",w(e)||`instance`),n.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.",w(e)||`instance`));try{D(e,oa,t,n)}catch(t){jl(e,e.return,t)}}}function Zs(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Qs(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||db||(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.",w(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.",w(e)||`instance`));try{var i=Xo(e.type,n),a=D(e,Zs,t,i,r);n=gb,a!==void 0||n.has(e.type)||(n.add(e.type),D(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,w(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){jl(e,e.return,t)}}function $s(e,t,n){n.props=Xo(e.type,e.memoizedProps),n.state=e.memoizedState,Us(e)?(Ti(),D(e,Av,e,t,n),Ci()):D(e,Av,e,t,n)}function ec(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`){if(Us(e))try{Ti(),e.refCleanup=t(n)}finally{Ci()}else e.refCleanup=t(n)}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().`,w(e)),t.current=n}}function tc(e,t){try{D(e,ec,e)}catch(n){jl(e,t,n)}}function nc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{if(Us(e))try{Ti(),D(e,r)}finally{Ci(e)}else D(e,r)}catch(n){jl(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(Us(e))try{Ti(),D(e,n,null)}finally{Ci(e)}else D(e,n,null)}catch(n){jl(e,t,n)}else n.current=null}}function rc(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,tv&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function ic(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,tv&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function ac(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{D(e,Gu,r,t,n,e)}catch(t){jl(e,e.return,t)}}function oc(e,t,n){try{D(e,qu,e.stateNode,e.type,n,t,e)}catch(t){jl(e,e.return,t)}}function sc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zu(e.type)||e.tag===4}function cc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||sc(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&&Zu(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(Xu(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t)):(Xu(n),t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sn));else if(r!==4&&(r===27&&Zu(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}function uc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zu(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(uc(e,t,n),e=e.sibling;e!==null;)uc(e,t,n),e=e.sibling}function dc(e){for(var t,n=e.return;n!==null;){if(sc(n)){t=n;break}n=n.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,n=cc(e),uc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(Ju(n),t.flags&=-33),t=cc(e),uc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=cc(e),lc(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function fc(e){var t=e.stateNode,n=e.memoizedProps;try{D(e,wd,e.type,n,t,e)}catch(t){jl(e,e.return,t)}}function pc(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)}function mc(e,t){if(e=e.containerInfo,KS=LC,e=Bn(e),Vn(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,s=-1,c=-1,l=0,u=0,d=e,f=null;b:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(c=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break b;if(f===n&&++l===i&&(s=o),f===a&&++u===r&&(c=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n||={start:0,end:0}}else n=null;for(qS={focusedElem:e,selectionRange:n},LC=!1,xb=t;xb!==null;)if(t=xb,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,xb=e;else for(;xb!==null;){switch(e=t=xb,n=e.alternate,i=e.flags,e.tag){case 0:if(i&4&&(e=e.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:i&1024&&n!==null&&Qs(e,n);break;case 3:if(i&1024){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)cd(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:cd(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(i&1024)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,xb=e;break}xb=t.return}}function hc(e,t,n){var r=hi(),i=M(),a=vi(),o=yi(),s=n.flags;switch(n.tag){case 0:case 11:case 15:Dc(e,n),s&4&&Ws(n,gy|my);break;case 1:if(Dc(e,n),s&4){if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||db||(e.props!==n.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.",w(n)||`instance`),e.state!==n.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.",w(n)||`instance`)),Us(n)?(Ti(),D(n,wv,n,e),Ci()):D(n,wv,n,e);else{var c=Xo(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||db||(e.props!==n.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.",w(n)||`instance`),e.state!==n.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.",w(n)||`instance`)),Us(n)?(Ti(),D(n,Ev,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),Ci()):D(n,Ev,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}}s&64&&Xs(n),s&512&&tc(n,n.return);break;case 3:if(t=di(),Dc(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{D(n,oa,s,c)}catch(e){jl(n,n.return,e)}}e.effectDuration+=fi(t);break;case 27:t===null&&s&4&&fc(n);case 26:case 5:if(Dc(e,n),t===null){if(s&4)ac(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{D(n,Ku,c,e,t,n)}catch(e){jl(n,n.return,e)}}}s&512&&tc(n,n.return);break;case 12:if(s&4){s=di(),Dc(e,n),e=n.stateNode,e.effectDuration+=pi(s);try{D(n,rc,n,t,b_,e.effectDuration)}catch(e){jl(n,n.return,e)}}else Dc(e,n);break;case 31:Dc(e,n),s&4&&yc(e,n);break;case 13:Dc(e,n),s&4&&bc(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Fl.bind(null,n),md(e,s))));break;case 22:if(s=n.memoizedState!==null||_b,!s){t=t!==null&&t.memoizedState!==null||vb,c=_b;var l=vb;_b=s,(vb=t)&&!l?(jc(e,n,!!(n.subtreeFlags&8772)),(n.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Zn(n,q,J)):Dc(e,n),_b=c,vb=l}break;case 30:break;default:Dc(e,n)}(n.mode&K)!==G&&0<=q&&0<=J&&((D_||.05<T_)&&er(n,q,J,T_,E_),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<J-q&&(pc(n.return.alternate,n.return)||Xn(n,q,J,`Mount`))),gi(r),_i(i),E_=a,D_=o}function gc(e){var t=e.alternate;t!==null&&(e.alternate=null,gc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xe(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 _c(e,t,n){for(n=n.child;n!==null;)vc(e,t,n),n=n.sibling}function vc(e,t,n){if(Ap&&typeof Ap.onCommitFiberUnmount==`function`)try{Ap.onCommitFiberUnmount(kp,n)}catch(e){jp||(jp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=hi(),i=M(),a=vi(),o=yi();switch(n.tag){case 26:vb||nc(n,t),_c(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:vb||nc(n,t);var s=wb,c=Tb;Zu(n.type)&&(wb=n.stateNode,Tb=!1),_c(e,t,n),D(n,Td,n.stateNode),wb=s,Tb=c;break;case 5:vb||nc(n,t);case 6:if(s=wb,c=Tb,wb=null,_c(e,t,n),wb=s,Tb=c,wb!==null){if(Tb)try{D(n,$u,wb,n.stateNode)}catch(e){jl(n,t,e)}else try{D(n,Qu,wb,n.stateNode)}catch(e){jl(n,t,e)}}break;case 18:wb!==null&&(Tb?(e=wb,ed(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),bf(e)):ed(wb,n.stateNode));break;case 4:s=wb,c=Tb,wb=n.stateNode.containerInfo,Tb=!0,_c(e,t,n),wb=s,Tb=c;break;case 0:case 11:case 14:case 15:qs(hy,n,t),vb||Gs(n,t,gy),_c(e,t,n);break;case 1:vb||(nc(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&$s(n,t,s)),_c(e,t,n);break;case 21:_c(e,t,n);break;case 22:vb=(s=vb)||n.memoizedState!==null,_c(e,t,n),vb=s;break;default:_c(e,t,n)}(n.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&er(n,q,J,T_,E_),gi(r),_i(i),E_=a,D_=o}function yc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{D(t,xd,e)}catch(e){jl(t,t.return,e)}}}function bc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{D(t,Sd,e)}catch(e){jl(t,t.return,e)}}function xc(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new bb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new bb),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function Sc(e,t){var n=xc(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),Mp){if(Sb!==null&&Cb!==null)Vl(Cb,Sb);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`)}var r=Il.bind(null,e,t);t.then(r,r)}})}function Cc(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=hi(),c=a;a:for(;c!==null;){switch(c.tag){case 27:if(Zu(c.type)){wb=c.stateNode,Tb=!1;break a}break;case 5:wb=c.stateNode,Tb=!1;break a;case 3:case 4:wb=c.stateNode.containerInfo,Tb=!0;break a}c=c.return}if(wb===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);vc(i,a,o),wb=null,Tb=!1,(o.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Xn(o,q,J,`Unmount`),gi(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wc(t,e),t=t.sibling}function wc(e,t){var n=hi(),r=M(),i=vi(),a=yi(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Cc(t,e),Tc(e),s&4&&(qs(hy|my,e,e.return),Ks(hy|my,e),Gs(e,e.return,gy|my));break;case 1:if(Cc(t,e),Tc(e),s&512&&(vb||o===null||nc(o,o.return)),s&64&&_b&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null))){var c=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=c===null?o:c.concat(o)}break;case 26:if(c=Eb,Cc(t,e),Tc(e),s&512&&(vb||o===null||nc(o,o.return)),s&4){var l=o===null?null:o.memoizedState;if(s=e.memoizedState,o===null){if(s===null){if(e.stateNode===null){a:{s=e.type,o=e.memoizedProps,c=c.ownerDocument||c;b:switch(s){case`title`:l=c.getElementsByTagName(`title`)[0],(!l||l[Zp]||l[Wp]||l.namespaceURI===Pm||l.hasAttribute(`itemprop`))&&(l=c.createElement(s),c.head.insertBefore(l,c.querySelector(`head > title`))),Cu(l,s,o),l[Wp]=e,et(l),s=l;break a;case`link`:var u=Bd(`link`,`href`,c).get(s+(o.href||``));if(u){for(var d=0;d<u.length;d++)if(l=u[d],l.getAttribute(`href`)===(o.href==null||o.href===``?null:o.href)&&l.getAttribute(`rel`)===(o.rel==null?null:o.rel)&&l.getAttribute(`title`)===(o.title==null?null:o.title)&&l.getAttribute(`crossorigin`)===(o.crossOrigin==null?null:o.crossOrigin)){u.splice(d,1);break b}}l=c.createElement(s),Cu(l,s,o),c.head.appendChild(l);break;case`meta`:if(u=Bd(`meta`,`content`,c).get(s+(o.content||``))){for(d=0;d<u.length;d++)if(l=u[d],O(o.content,`content`),l.getAttribute(`content`)===(o.content==null?null:``+o.content)&&l.getAttribute(`name`)===(o.name==null?null:o.name)&&l.getAttribute(`property`)===(o.property==null?null:o.property)&&l.getAttribute(`http-equiv`)===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute(`charset`)===(o.charSet==null?null:o.charSet)){u.splice(d,1);break b}}l=c.createElement(s),Cu(l,s,o),c.head.appendChild(l);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+s+`". This is a bug in React.`)}l[Wp]=e,et(l),s=l}e.stateNode=s}else Vd(c,e.type,e.stateNode)}else e.stateNode=Id(c,s,e.memoizedProps)}else l===s?s===null&&e.stateNode!==null&&oc(e,e.memoizedProps,o.memoizedProps):(l===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):l.count--,s===null?Vd(c,e.type,e.stateNode):Id(c,s,e.memoizedProps))}break;case 27:Cc(t,e),Tc(e),s&512&&(vb||o===null||nc(o,o.return)),o!==null&&s&4&&oc(e,e.memoizedProps,o.memoizedProps);break;case 5:if(Cc(t,e),Tc(e),s&512&&(vb||o===null||nc(o,o.return)),e.flags&32){c=e.stateNode;try{D(e,Ju,c)}catch(t){jl(e,e.return,t)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,oc(e,c,o===null?c:o.memoizedProps)),s&1024&&(yb=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(Cc(t,e),Tc(e),s&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.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,c=e.stateNode;try{D(e,Yu,c,o,s)}catch(t){jl(e,e.return,t)}}break;case 3:if(c=di(),fC=null,l=Eb,Eb=Ed(t.containerInfo),Cc(t,e),Eb=l,Tc(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{D(e,bd,t.containerInfo)}catch(t){jl(e,e.return,t)}yb&&(yb=!1,Ec(e)),t.effectDuration+=fi(c);break;case 4:s=Eb,Eb=Ed(e.stateNode.containerInfo),Cc(t,e),Tc(e),Eb=s;break;case 12:s=di(),Cc(t,e),Tc(e),e.stateNode.effectDuration+=pi(s);break;case 31:Cc(t,e),Tc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Sc(e,s)));break;case 13:Cc(t,e),Tc(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(gx=bp()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Sc(e,s)));break;case 22:c=e.memoizedState!==null;var f=o!==null&&o.memoizedState!==null,p=_b,m=vb;if(_b=p||c,vb=m||f,Cc(t,e),vb=m,_b=p,f&&!c&&!p&&!m&&(e.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Zn(e,q,J),Tc(e),s&8192)a:for(t=e.stateNode,t._visibility=c?t._visibility&~Og:t._visibility|Og,!c||o===null||f||_b||vb||(kc(e),(e.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Xn(e,q,J,`Disconnect`)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){f=o=t;try{l=f.stateNode,c?D(f,rd,l):D(f,od,f.stateNode,f.memoizedProps)}catch(e){jl(f,f.return,e)}}}else if(t.tag===6){if(o===null){f=t;try{u=f.stateNode,c?D(f,id,u):D(f,sd,u,f.memoizedProps)}catch(e){jl(f,f.return,e)}}}else if(t.tag===18){if(o===null){f=t;try{d=f.stateNode,c?D(f,nd,d):D(f,ad,f.stateNode)}catch(e){jl(f,f.return,e)}}}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 a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,Sc(e,o))));break;case 19:Cc(t,e),Tc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Sc(e,s)));break;case 30:break;case 21:break;default:Cc(t,e),Tc(e)}(e.mode&K)!==G&&0<=q&&0<=J&&((D_||.05<T_)&&er(e,q,J,T_,E_),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<J-q&&(pc(e.return.alternate,e.return)||Xn(e,q,J,`Mount`))),gi(n),_i(r),E_=i,D_=a}function Tc(e){var t=e.flags;if(t&2){try{D(e,dc,e)}catch(t){jl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ec(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ec(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dc(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hc(e,t.alternate,t),t=t.sibling}function Oc(e){var t=hi(),n=M(),r=vi(),i=yi();switch(e.tag){case 0:case 11:case 14:case 15:Gs(e,e.return,gy),kc(e);break;case 1:nc(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&$s(e,e.return,a),kc(e);break;case 27:D(e,Td,e.stateNode);case 26:case 5:nc(e,e.return),kc(e);break;case 22:e.memoizedState===null&&kc(e);break;case 30:kc(e);break;default:kc(e)}(e.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&er(e,q,J,T_,E_),gi(t),_i(n),E_=r,D_=i}function kc(e){for(e=e.child;e!==null;)Oc(e),e=e.sibling}function Ac(e,t,n,r){var i=hi(),a=M(),o=vi(),s=yi(),c=n.flags;switch(n.tag){case 0:case 11:case 15:jc(e,n,r),Ws(n,gy);break;case 1:if(jc(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&D(n,wv,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{D(n,aa,t,e)}catch(e){jl(n,n.return,e)}}r&&c&64&&Xs(n),tc(n,n.return);break;case 27:fc(n);case 26:case 5:jc(e,n,r),r&&t===null&&c&4&&ac(n),tc(n,n.return);break;case 12:if(r&&c&4){c=di(),jc(e,n,r),r=n.stateNode,r.effectDuration+=pi(c);try{D(n,rc,n,t,b_,r.effectDuration)}catch(e){jl(n,n.return,e)}}else jc(e,n,r);break;case 31:jc(e,n,r),r&&c&4&&yc(e,n);break;case 13:jc(e,n,r),r&&c&4&&bc(e,n);break;case 22:n.memoizedState===null&&jc(e,n,r),tc(n,n.return);break;case 30:break;default:jc(e,n,r)}(n.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&er(n,q,J,T_,E_),gi(i),_i(a),E_=o,D_=s}function jc(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;)Ac(e,t.alternate,t,n),t=t.sibling}function Mc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&si(e),n!=null&&ci(n))}function Nc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(si(t),e!=null&&ci(e))}function Pc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;Fc(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function Fc(e,t,n,r,i){var a=hi(),o=M(),s=vi(),c=yi(),l=Sg,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&K)!==G&&0<t.actualStartTime&&t.flags&1&&Qn(t,t.actualStartTime,i,Db,n),Pc(e,t,n,r,i),u&2048&&Js(t,_y|my);break;case 1:(t.mode&K)!==G&&0<t.actualStartTime&&(t.flags&128?$n(t,t.actualStartTime,i,[]):t.flags&1&&Qn(t,t.actualStartTime,i,Db,n)),Pc(e,t,n,r,i);break;case 3:var d=di(),f=Db;Db=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!(t.flags&256),Pc(e,t,n,r,i),Db=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(si(r),n!=null&&ci(n))),e.passiveEffectDuration+=fi(d);break;case 12:if(u&2048){u=di(),Pc(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=pi(u);try{D(t,ic,t,t.alternate,b_,e.passiveEffectDuration)}catch(e){jl(t,t.return,e)}}else Pc(e,t,n,r,i);break;case 31:u=Db,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Db=!1,d=d.hydrationErrors,d!==null&&$n(t,t.actualStartTime,i,d)):Db=!0):Db=!1,Pc(e,t,n,r,i),Db=u;break;case 13:u=Db,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?Db=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Db=!1,d=d.hydrationErrors,d!==null&&$n(t,t.actualStartTime,i,d)):Db=!0),Pc(e,t,n,r,i),Db=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&kg?Pc(e,t,n,r,i):(f._visibility|=kg,Ic(e,t,n,r,!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&K)===G||Db||(e=t.actualStartTime,0<=e&&.05<i-e&&Zn(t,e,i),0<=q&&0<=J&&.05<J-q&&Zn(t,q,J))):f._visibility&kg?Pc(e,t,n,r,i):Rc(e,t,n,r,i),u&2048&&Mc(d,t);break;case 24:Pc(e,t,n,r,i),u&2048&&Nc(t.alternate,t);break;default:Pc(e,t,n,r,i)}(t.mode&K)!==G&&((e=!Db&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&Xn(t,n,i,`Mount`)),0<=q&&0<=J&&((D_||.05<T_)&&er(t,q,J,T_,E_),e&&.05<J-q&&Xn(t,q,J,`Mount`))),gi(a),_i(o),E_=s,D_=c,Sg=l}function Ic(e,t,n,r,i,a){for(i&&=!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Lc(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Lc(e,t,n,r,i,a){var o=hi(),s=M(),c=vi(),l=yi(),u=Sg;i&&(t.mode&K)!==G&&0<t.actualStartTime&&t.flags&1&&Qn(t,t.actualStartTime,a,Db,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Ic(e,t,n,r,i,a),Js(t,_y);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=kg,Ic(e,t,n,r,i,a)):f._visibility&kg?Ic(e,t,n,r,i,a):Rc(e,t,n,r,a),i&&d&2048&&Mc(t.alternate,t);break;case 24:Ic(e,t,n,r,i,a),i&&d&2048&&Nc(t.alternate,t);break;default:Ic(e,t,n,r,i,a)}(t.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&er(t,q,J,T_,E_),gi(o),_i(s),E_=c,D_=l,Sg=u}function Rc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=Sg;(a.mode&K)!==G&&0<a.actualStartTime&&a.flags&1&&Qn(a,a.actualStartTime,l,Db,s);var d=a.flags;switch(a.tag){case 22:Rc(o,a,s,c,l),d&2048&&Mc(a.alternate,a);break;case 24:Rc(o,a,s,c,l),d&2048&&Nc(a.alternate,a);break;default:Rc(o,a,s,c,l)}Sg=u,a=t}}function zc(e,t,n){if(e.subtreeFlags&Ob)for(e=e.child;e!==null;)Bc(e,t,n),e=e.sibling}function Bc(e,t,n){switch(e.tag){case 26:zc(e,t,n),e.flags&Ob&&e.memoizedState!==null&&Wd(n,Eb,e.memoizedState,e.memoizedProps);break;case 5:zc(e,t,n);break;case 3:case 4:var r=Eb;Eb=Ed(e.stateNode.containerInfo),zc(e,t,n),Eb=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ob,Ob=16777216,zc(e,t,n),Ob=r):zc(e,t,n));break;default:zc(e,t,n)}}function Vc(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 Hc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=hi();xb=r,Kc(r,e),(r.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Xn(r,q,J,`Unmount`),gi(i)}Vc(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Uc(e),e=e.sibling}function Uc(e){var t=hi(),n=M(),r=vi(),i=yi();switch(e.tag){case 0:case 11:case 15:Hc(e),e.flags&2048&&Ys(e,e.return,_y|my);break;case 3:var a=di();Hc(e),e.stateNode.passiveEffectDuration+=fi(a);break;case 12:a=di(),Hc(e),e.stateNode.passiveEffectDuration+=pi(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&kg&&(e.return===null||e.return.tag!==13)?(a._visibility&=~kg,Wc(e),(e.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Xn(e,q,J,`Disconnect`)):Hc(e);break;default:Hc(e)}(e.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&er(e,q,J,T_,E_),gi(t),_i(n),D_=i,E_=r}function Wc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=hi();xb=r,Kc(r,e),(r.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Xn(r,q,J,`Unmount`),gi(i)}Vc(e)}for(e=e.child;e!==null;)Gc(e),e=e.sibling}function Gc(e){var t=hi(),n=M(),r=vi(),i=yi();switch(e.tag){case 0:case 11:case 15:Ys(e,e.return,_y),Wc(e);break;case 22:var a=e.stateNode;a._visibility&kg&&(a._visibility&=~kg,Wc(e));break;default:Wc(e)}(e.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&er(e,q,J,T_,E_),gi(t),_i(n),D_=i,E_=r}function Kc(e,t){for(;xb!==null;){var n=xb,r=n,i=t,a=hi(),o=M(),s=vi(),c=yi();switch(r.tag){case 0:case 11:case 15:Ys(r,i,_y);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&si(i));break;case 24:ci(r.memoizedState.cache)}if((r.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&er(r,q,J,T_,E_),gi(a),_i(o),D_=c,E_=s,r=n.child,r!==null)r.return=n,xb=r;else a:for(n=e;xb!==null;){if(r=xb,a=r.sibling,o=r.return,gc(r),r===n){xb=null;break a}if(a!==null){a.return=o,xb=a;break a}xb=o}}}function qc(){jb.forEach(function(e){return e()})}function Jc(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||U.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function Yc(e){if((Ub&Pb)!==Nb&&$!==0)return $&-$;var t=U.T;return t===null?Je():(t._updatedFibers||=new Set,t._updatedFibers.add(e),$l())}function Xc(){if(dx===0){if(!($&536870912)||$g){var e=Lp;Lp<<=1,!(Lp&3932160)&&(Lp=262144),dx=e}else dx=536870912}return e=cy.current,e!==null&&(e.flags|=32),dx}function Zc(e,t,n){if($x&&console.error(`useInsertionEffect must not schedule updates.`),Jx&&(Yx=!0),(e===Wb&&(tx===qb||tx===ex)||e.cancelPendingCommit!==null)&&(al(e,0),tl(e,$,dx,!1)),ze(e,n),(Ub&Pb)!==Nb&&e===Wb){if(mp)switch(t.tag){case 0:case 11:case 15:e=Q&&w(Q)||`Unknown`,nS.has(e)||(nS.add(e),t=w(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:tS||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else Mp&&Ge(e,t,n),Ul(t),e===Wb&&((Ub&Pb)===Nb&&(lx|=n),sx===Bb&&tl(e,$,dx,!1)),Wl(e)}function Qc(e,t,n){if((Ub&(Pb|Fb))!==Nb)throw Error(`Should not already be working.`);if($!==0&&Q!==null){var r=Q,i=bp();switch($_){case Jb:case qb:var a=ev;yg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,bg,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,bg,void 0,`primary-light`));break;case ex:a=ev,yg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,bg,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,bg,void 0,`primary-light`));break;default:yg&&(r=i-ev,3>r||console.timeStamp(`Blocked`,ev,i,bg,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&!(t&127)&&(t&e.expiredLanes)===0||Fe(e,t))?ml(e,t):fl(e,t,!0);var o=n;do{if(a===Ib){ix&&!n&&tl(e,t,0,!1),t=tx,ev=h_(),$_=t;break}if(r=bp(),i=e.current.alternate,o&&!el(i)){j(t),i=y_,a=r,!yg||a<=i||(Sx?Sx.run(console.timeStamp.bind(console,`Teared Render`,i,a,xg,W,`error`)):console.timeStamp(`Teared Render`,i,a,xg,W,`error`)),il(t,r),a=fl(e,t,!1),o=!1;continue}if(a===Rb){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){j(t),ar(y_,r,t,Sx),il(t,r),t=s;a:{r=e,a=o,o=px;var c=r.current.memoizedState.isDehydrated;if(c&&(al(r,s).flags|=256),s=fl(r,s,!1),s!==Rb){if(ax&&!c){r.errorRecoveryDisabledLanes|=a,lx|=a,a=Bb;break a}r=mx,mx=o,r!==null&&(mx===null?mx=r:mx.push.apply(mx,r))}a=s}if(o=!1,a!==Rb)continue;r=bp()}}if(a===Lb){j(t),ar(y_,r,t,Sx),il(t,r),al(e,0),tl(e,t,0,!0);break}a:{switch(n=e,a){case Ib:case Lb:throw Error(`Root did not complete. This is a bug in React.`);case Bb:if((t&4194048)!==t)break;case Vb:j(t),nr(y_,r,t,Sx),il(t,r),i=t,i&127?L_=r:i&4194048&&(J_=r),tl(n,t,dx,!rx);break a;case Rb:mx=null;break;case zb:case Hb:break;default:throw Error(`Unknown root exit status.`)}if(U.actQueue!==null)Sl(n,i,t,mx,xx,hx,dx,lx,fx,a,null,null,y_,r);else{if((t&62914560)===t&&(o=gx+vx-bp(),10<o)){if(tl(n,t,dx,!rx),Pe(n,0,!0)!==0)break a;Lx=t,n.timeoutHandle=ZS($c.bind(null,n,i,mx,xx,hx,t,dx,lx,fx,rx,a,`Throttled`,y_,r),o);break a}$c(n,i,mx,xx,hx,t,dx,lx,fx,rx,a,null,y_,r)}}break}while(1);Wl(e)}function $c(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=$S;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sn},Bc(t,a,h),m=(a&62914560)===a?gx-bp():(a&4194048)===a?_x-bp():0,m=Gd(h,m),m!==null)){Lx=a,e.cancelPendingCommit=m(Sl.bind(null,e,t,a,n,r,i,o,s,c,u,h,h.waitingForViewTransition?`Waiting for the previous Animation`:0<h.count?0<h.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:h.imgCount===1?`Suspended on an Image`:0<h.imgCount?`Suspended on Images`:null,f,p)),tl(e,a,o,!l);return}Sl(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function el(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Hh(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 tl(e,t,n,r){t&=~ux,t&=~lx,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Np(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ve(e,n,t)}function nl(){return(Ub&(Pb|Fb))!==Nb||(Gl(0,!1),!1)}function rl(){if(Q!==null){if(tx===Gb)var e=Q.return;else e=Q,Yr(),Ea(e),Uv=null,Wv=0,e=Q;for(;e!==null;)Hs(e.alternate,e),e=e.return;Q=null}}function il(e,t){e&127&&(O_=t),e&4194048&&(R_=t),e&62914560&&(Y_=t),e&2080374784&&(X_=t)}function al(e,t){yg&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,W,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,W,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,W,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,W,`primary-light`));var n=y_;if(y_=h_(),$!==0&&0<n){if(j($),sx===zb||sx===Bb)nr(n,y_,t,Sx);else{var r=y_,i=Sx;if(yg&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,xg,W,a)):console.timeStamp(o,n,r,xg,W,a)}}il($,y_)}if(n=Sx,Sx=null,t&127){Sx=A_,i=0<=k_&&k_<O_?O_:k_,r=0<=P_&&P_<O_?O_:P_,a=0<=r?r:0<=i?i:y_,0<=L_?(j(2),rr(L_,a,t,n)):Z_&127&&(j(2),cr(O_,a,Q_)),n=i;var s=r,c=F_,l=0<I_,u=j_===__,d=j_===v_;if(i=y_,r=A_,a=M_,o=N_,yg){if(xg=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,xg,W,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,xg,W,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:xg,trackGroup:W,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}k_=-1.1,j_=0,N_=M_=null,L_=-1.1,I_=P_,P_=-1.1,O_=h_()}if(t&4194048&&(Sx=H_,i=0<=z_&&z_<R_?R_:z_,n=0<=B_&&B_<R_?R_:B_,r=0<=G_&&G_<R_?R_:G_,a=0<=r?r:0<=n?n:y_,0<=J_?(j(256),rr(J_,a,t,Sx)):Z_&4194048&&(j(256),cr(R_,a,Q_)),d=r,s=K_,c=0<q_,l=V_===v_,a=y_,r=H_,o=U_,u=W_,yg&&(xg=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,xg,W,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,xg,W,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,xg,W,`primary-dark`)):console.timeStamp(`Action`,i,n,xg,W,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:xg,trackGroup:W,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),B_=z_=-1.1,V_=0,J_=-1.1,q_=G_,G_=-1.1,R_=h_()),t&62914560&&Z_&62914560&&(j(4194304),cr(Y_,y_,Q_)),t&2080374784&&Z_&2080374784&&(j(268435456),cr(X_,y_,Q_)),n=e.timeoutHandle,n!==$S&&(e.timeoutHandle=$S,QS(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Lx=0,rl(),Wb=e,Q=n=Sr(e.current,null),$=t,tx=Gb,nx=null,rx=!1,ix=Fe(e,t),ax=!1,sx=Ib,fx=dx=ux=lx=cx=0,mx=px=null,hx=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-Np(r),a=1<<i,t|=e[i],r&=~a;return ox=t,lr(),e=cg(),1e3<e-og&&(U.recentlyCreatedOwnerStacks=0,og=e),lv.discardPendingWarnings(),n}function ol(e,t){X=null,U.H=Ly,U.getCurrentStack=null,mp=!1,pp=null,t===Lv||t===zv?(t=Ii(),tx=Jb):t===Rv?(t=Ii(),tx=Yb):tx=t===ab?$b:typeof t==`object`&&t&&typeof t.then==`function`?Zb:Kb,nx=t;var n=Q;n===null?(sx=Lb,$o(e,Ar(t,e.current))):n.mode&K&&xi(n)}function sl(){var e=cy.current;return e===null?!0:($&4194048)===$?ly===null:($&62914560)===$||$&536870912?e===ly:!1}function cl(){var e=U.H;return U.H=Ly,e===null?Ly:e}function ll(){var e=U.A;return U.A=kb,e}function ul(e){Sx===null&&(Sx=e._debugTask==null?null:e._debugTask)}function dl(){sx=Bb,rx||($&4194048)!==$&&cy.current!==null||(ix=!0),!(cx&134217727)&&!(lx&134217727)||Wb===null||tl(Wb,$,dx,!1)}function fl(e,t,n){var r=Ub;Ub|=Pb;var i=cl(),a=ll();if(Wb!==e||$!==t){if(Mp){var o=e.memoizedUpdaters;0<o.size&&(Vl(e,$),o.clear()),Ke(e,t)}xx=null,al(e,t)}t=!1,o=sx;a:do try{if(tx!==Gb&&Q!==null){var s=Q,c=nx;switch(tx){case $b:rl(),o=Vb;break a;case Jb:case qb:case ex:case Zb:cy.current===null&&(t=!0);var l=tx;if(tx=Gb,nx=null,yl(e,s,c,l),n&&ix){o=Ib;break a}break;default:l=tx,tx=Gb,nx=null,yl(e,s,c,l)}}pl(),o=sx;break}catch(t){ol(e,t)}while(1);return t&&e.shellSuspendCounter++,Yr(),Ub=r,U.H=i,U.A=a,Q===null&&(Wb=null,$=0,lr()),o}function pl(){for(;Q!==null;)gl(Q)}function ml(e,t){var n=Ub;Ub|=Pb;var r=cl(),i=ll();if(Wb!==e||$!==t){if(Mp){var a=e.memoizedUpdaters;0<a.size&&(Vl(e,$),a.clear()),Ke(e,t)}xx=null,yx=bp()+bx,al(e,t)}else ix=Fe(e,t);a:do try{if(tx!==Gb&&Q!==null)b:switch(t=Q,a=nx,tx){case Kb:tx=Gb,nx=null,yl(e,t,a,Kb);break;case qb:case ex:if(Ni(a)){tx=Gb,nx=null,_l(t);break}t=function(){tx!==qb&&tx!==ex||Wb!==e||(tx=Qb),Wl(e)},a.then(t,t);break a;case Jb:tx=Qb;break a;case Yb:tx=Xb;break a;case Qb:Ni(a)?(tx=Gb,nx=null,_l(t)):(tx=Gb,nx=null,yl(e,t,a,Qb));break;case Xb:var o=null;switch(Q.tag){case 26:o=Q.memoizedState;case 5:case 27:var s=Q;if(o?Ud(o):s.stateNode.complete){tx=Gb,nx=null;var c=s.sibling;if(c!==null)Q=c;else{var l=s.return;l===null?Q=null:(Q=l,bl(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}tx=Gb,nx=null,yl(e,t,a,Xb);break;case Zb:tx=Gb,nx=null,yl(e,t,a,Zb);break;case $b:rl(),sx=Vb;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}U.actQueue===null?hl():pl();break}catch(t){ol(e,t)}while(1);return Yr(),U.H=r,U.A=i,Ub=n,Q===null?(Wb=null,$=0,lr(),sx):Ib}function hl(){for(;Q!==null&&!vp();)gl(Q)}function gl(e){var t=e.alternate;(e.mode&K)===G?t=D(e,Ns,t,e,ox):(bi(e),t=D(e,Ns,t,e,ox),xi(e)),e.memoizedProps=e.pendingProps,t===null?bl(e):Q=t}function _l(e){var t=D(e,vl,e);e.memoizedProps=e.pendingProps,t===null?bl(e):Q=t}function vl(e){var t=e.alternate,n=(e.mode&K)!==G;switch(n&&bi(e),e.tag){case 15:case 0:t=_s(t,e,e.pendingProps,e.type,void 0,$);break;case 11:t=_s(t,e,e.pendingProps,e.type.render,e.ref,$);break;case 5:Ea(e);default:Hs(t,e),e=Q=Cr(e,ox),t=Ns(t,e,ox)}return n&&xi(e),t}function yl(e,t,n,r){Yr(),Ea(t),Uv=null,Wv=0;var i=t.return;try{if(is(e,i,t,n,$)){sx=Lb,$o(e,Ar(n,e.current)),Q=null;return}}catch(t){if(i!==null)throw Q=i,t;sx=Lb,$o(e,Ar(n,e.current)),Q=null;return}t.flags&32768?($g||r===Kb?e=!0:ix||$&536870912?e=!1:(rx=e=!0,(r===qb||r===ex||r===Jb||r===Zb)&&(r=cy.current,r!==null&&r.tag===13&&(r.flags|=16384))),xl(t,e)):bl(t)}function bl(e){var t=e;do{if(t.flags&32768){xl(t,rx);return}var n=t.alternate;if(e=t.return,bi(t),n=D(t,Bs,n,t,ox),(t.mode&K)!==G&&Si(t),n!==null){Q=n;return}if(t=t.sibling,t!==null){Q=t;return}Q=t=e}while(t!==null);sx===Ib&&(sx=Hb)}function xl(e,t){do{var n=Vs(e.alternate,e);if(n!==null){n.flags&=32767,Q=n;return}if((e.mode&K)!==G){Si(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Q=e;return}Q=e=n}while(e!==null);sx=Vb,Q=null}function Sl(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do Ol();while(Px!==Ox);if(lv.flushLegacyContextWarning(),lv.flushPendingUnsafeLifecycleWarnings(),(Ub&(Pb|Fb))!==Nb)throw Error(`Should not already be working.`);if(j(n),l===Rb?ar(f,p,n,Sx):r===null?tr(f,p,n,Sx):ir(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!!(t.flags&256),Sx),t!==null){if(n===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(a=t.lanes|t.childLanes,a|=Mg,Be(e,n,a,o,s,c),e===Wb&&(Q=Wb=null,$=0),Ix=t,Fx=e,Lx=n,Rx=a,Bx=i,Vx=r,zx=p,Hx=d,Ux=wx,Wx=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Hl(wp,function(){return XS=window.event,Ux===wx&&(Ux=Ex),kl(),null})):(e.callbackNode=null,e.callbackPriority=0),S_=null,b_=h_(),d!==null&&or(p,b_,d,Sx),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=U.T,U.T=null,i=Kf.p,Kf.p=zp,o=Ub,Ub|=Fb;try{mc(e,t,n)}finally{Ub=o,Kf.p=i,U.T=r}}Px=kx,Cl(),wl(),Tl()}}function Cl(){if(Px===kx){Px=Ox;var e=Fx,t=Ix,n=Lx,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=U.T,U.T=null;var i=Kf.p;Kf.p=zp;var a=Ub;Ub|=Fb;try{Sb=n,Cb=e,mi(),wc(t,e),Cb=Sb=null,n=qS;var o=Bn(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&zn(s.ownerDocument.documentElement,s)){if(c!==null&&Vn(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Rn(s,h),v=Rn(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}LC=!!KS,qS=KS=null}finally{Ub=a,Kf.p=i,U.T=r}}e.current=t,Px=Ax}}function wl(){if(Px===Ax){Px=Ox;var e=Wx;if(e!==null){b_=h_();var t=x_,n=b_;!yg||n<=t||(Q_?Q_.run(console.timeStamp.bind(console,e,t,n,xg,W,`secondary-light`)):console.timeStamp(e,t,n,xg,W,`secondary-light`))}e=Fx,t=Ix,n=Lx;var r=!!(t.flags&8772);if(t.subtreeFlags&8772||r){r=U.T,U.T=null;var i=Kf.p;Kf.p=zp;var a=Ub;Ub|=Fb;try{Sb=n,Cb=e,mi(),hc(e,t.alternate,t),Cb=Sb=null}finally{Ub=a,Kf.p=i,U.T=r}}e=zx,t=Hx,x_=h_(),e=t===null?e:b_,t=x_,n=Ux===Tx,r=Sx,S_===null?!yg||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,xg,W,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,xg,W,n?`error`:`secondary-dark`)):sr(e,t,S_,!1,r),Px=jx}}function Tl(){if(Px===Mx||Px===jx){if(Px===Mx){var e=x_;x_=h_();var t=x_,n=Ux===Tx;!yg||t<=e||(Q_?Q_.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,xg,W,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,xg,W,n?` error`:`secondary-light`)),Ux!==Tx&&(Ux=Dx)}Px=Ox,yp(),e=Fx;var r=Ix;t=Lx,n=Vx;var i=r.actualDuration!==0||!!(r.subtreeFlags&10256)||!!(r.flags&10256);i?Px=Nx:(Px=Ox,Ix=Fx=null,Dl(e,e.pendingLanes),Zx=0,Qx=null);var a=e.pendingLanes;if(a===0&&(Cx=null),i||zl(e),a=qe(t),r=r.stateNode,Ap&&typeof Ap.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case zp:var s=Sp;break;case Bp:s=Cp;break;case Vp:s=wp;break;case Hp:s=Ep;break;default:s=wp}Ap.onCommitFiberRoot(kp,r,s,o)}catch(e){jp||(jp=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(Mp&&e.memoizedUpdaters.clear(),qc(),n!==null){o=U.T,s=Kf.p,Kf.p=zp,U.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=El(l.stack);D(l.source,c,l.value,u)}}finally{U.T=o,Kf.p=s}}Lx&3&&Ol(),Wl(e),a=e.pendingLanes,t&261930&&a&42?(nv=!0,e===qx?Kx++:(Kx=0,qx=e)):Kx=0,i||il(t,x_),Gl(0,!1)}}function El(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 Dl(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function Ol(){return Cl(),wl(),Tl(),kl()}function kl(){if(Px!==Nx)return!1;var e=Fx,t=Rx;Rx=0;var n=qe(Lx),r=Vp===0||Vp>n?Vp:n;n=U.T;var i=Kf.p;try{Kf.p=r,U.T=null;var a=Bx;Bx=null,r=Fx;var o=Lx;if(Px=Ox,Ix=Fx=null,Lx=0,(Ub&(Pb|Fb))!==Nb)throw Error(`Cannot flush passive effects while already rendering.`);j(o),Jx=!0,Yx=!1;var s=0;if(S_=null,s=bp(),Ux===Dx)cr(x_,s,Q_);else{var c=x_,l=s,u=Ux===Ex;!yg||l<=c||(Sx?Sx.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,xg,W,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,xg,W,`secondary-light`))}c=Ub,Ub|=Fb;var d=r.current;mi(),Uc(d);var f=r.current;d=zx,mi(),Fc(r,f,o,a,d),zl(r),Ub=c;var p=bp();if(f=s,d=Sx,S_===null?!yg||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,xg,W,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,xg,W,`secondary-dark`)):sr(f,p,S_,!0,d),il(o,p),Gl(0,!1),Yx?r===Qx?Zx++:(Zx=0,Qx=r):Zx=0,Yx=Jx=!1,Ap&&typeof Ap.onPostCommitFiberRoot==`function`)try{Ap.onPostCommitFiberRoot(kp,r)}catch(e){jp||(jp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{Kf.p=i,U.T=n,Dl(e,t)}}function Al(e,t,n){t=Ar(n,t),wi(t),t=ts(e.stateNode,t,2),e=$i(e,t,2),e!==null&&(ze(e,2),Wl(e))}function jl(e,t,n){if($x=!1,e.tag===3)Al(e,e,n);else{for(;t!==null;){if(t.tag===3){Al(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Cx===null||!Cx.has(r))){e=Ar(n,e),wi(e),n=ns(2),r=$i(t,n,2),r!==null&&(rs(n,r,t,e),ze(r,2),Wl(r));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.
|
|
158
|
-
|
|
159
|
-
Error message:
|
|
160
|
-
|
|
161
|
-
%s`,n)}}function Ml(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Mb;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ax=!0,i.add(n),r=Nl.bind(null,e,t,n),Mp&&Vl(e,n),t.then(r,r))}function Nl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,n&127?0>k_&&(O_=k_=h_(),A_=g_(`Promise Resolved`),j_=v_):n&4194048&&0>B_&&(R_=B_=h_(),H_=g_(`Promise Resolved`),V_=v_),Jc()&&U.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
162
|
-
|
|
163
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
164
|
-
|
|
165
|
-
act(() => {
|
|
166
|
-
/* finish loading suspended data */
|
|
167
|
-
});
|
|
168
|
-
/* assert on the output */
|
|
169
|
-
|
|
170
|
-
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`),Wb===e&&($&n)===n&&(sx===Bb||sx===zb&&($&62914560)===$&&bp()-gx<vx?(Ub&Pb)===Nb&&al(e,0):ux|=n,fx===$&&(fx=0)),Wl(e)}function Pl(e,t){t===0&&(t=Le()),e=fr(e,t),e!==null&&(ze(e,t),Wl(e))}function Fl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pl(e,n)}function Il(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(`Pinged unknown suspense boundary type. This is probably a bug in React.`)}r!==null&&r.delete(t),Pl(e,n)}function Ll(e,t,n){if(t.subtreeFlags&67117056)for(t=t.child;t!==null;){var r=e,i=t,a=i.type===Mf;a=n||a,i.tag===22?i.memoizedState===null&&(a&&i.flags&8192?D(i,Rl,r,i):i.subtreeFlags&67108864&&D(i,Ll,r,i,a)):i.flags&67108864?a&&D(i,Rl,r,i):Ll(r,i,a),t=t.sibling}}function Rl(e,t){je(!0);try{Oc(t),Gc(t),Ac(e,t.alternate,t,!1),Lc(e,t,0,null,!1,0)}finally{je(!1)}}function zl(e){var t=!0;e.current.mode&(Lg|Rg)||(t=!1),Ll(e,e.current,t)}function Bl(e){if((Ub&Pb)===Nb){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=w(e)||`ReactComponent`,eS!==null){if(eS.has(t))return;eS.add(t)}else eS=new Set([t]);D(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 Vl(e,t){Mp&&e.memoizedUpdaters.forEach(function(n){Ge(e,n,t)})}function Hl(e,t){var n=U.actQueue;return n===null?gp(e,t):(n.push(t),rS)}function Ul(e){Jc()&&U.actQueue===null&&D(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
171
|
-
|
|
172
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
173
|
-
|
|
174
|
-
act(() => {
|
|
175
|
-
/* fire events that update state */
|
|
176
|
-
});
|
|
177
|
-
/* assert on the output */
|
|
178
|
-
|
|
179
|
-
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`,w(e))})}function Wl(e){e!==aS&&e.next===null&&(aS===null?iS=aS=e:aS=aS.next=e),cS=!0,U.actQueue===null?oS||(oS=!0,Ql()):sS||(sS=!0,Ql())}function Gl(e,t){if(!lS&&cS){lS=!0;do for(var n=!1,r=iS;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Np(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Xl(r,a))}else a=$,a=Pe(r,r===Wb?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==$S),!(a&3)||Fe(r,a)||(n=!0,Xl(r,a))}r=r.next}while(n);lS=!1}}function Kl(){XS=window.event,ql()}function ql(){cS=sS=oS=!1;var e=0;uS!==0&&Vu()&&(e=uS);for(var t=bp(),n=null,r=iS;r!==null;){var i=r.next,a=Jl(r,t);a===0?(r.next=null,n===null?iS=i:n.next=i,i===null&&(aS=n)):(n=r,(e!==0||a&3)&&(cS=!0)),r=i}Px!==Ox&&Px!==Nx||Gl(e,!1),uS!==0&&(uS=0)}function Jl(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Np(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ie(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Wb,n=$,n=Pe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==$S),r=e.callbackNode,n===0||e===t&&(tx===qb||tx===ex)||e.cancelPendingCommit!==null)return r!==null&&Zl(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Fe(e,n)){if(t=n&-n,t!==e.callbackPriority||U.actQueue!==null&&r!==dS)Zl(r);else return t;switch(qe(n)){case zp:case Bp:n=Cp;break;case Vp:n=wp;break;case Hp:n=Ep;break;default:n=wp}return r=Yl.bind(null,e),U.actQueue===null?n=gp(n,r):(U.actQueue.push(r),n=dS),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&Zl(r),e.callbackPriority=2,e.callbackNode=null,2}function Yl(e,t){if(nv=tv=!1,XS=window.event,Px!==Ox&&Px!==Nx)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ux===wx&&(Ux=Ex),Ol()&&e.callbackNode!==n)return null;var r=$;return r=Pe(e,e===Wb?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==$S),r===0?null:(Qc(e,r,t),Jl(e,bp()),e.callbackNode!=null&&e.callbackNode===n?Yl.bind(null,e):null)}function Xl(e,t){if(Ol())return null;tv=nv,nv=!1,Qc(e,t,!0)}function Zl(e){e!==dS&&e!==null&&_p(e)}function Ql(){U.actQueue!==null&&U.actQueue.push(function(){return ql(),null}),tC(function(){(Ub&(Pb|Fb))===Nb?ql():gp(Sp,Kl)})}function $l(){if(uS===0){var e=av;e===0&&(e=Ip,Ip<<=1,!(Ip&261888)&&(Ip=256)),uS=e}return uS}function eu(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:(O(e,`action`),on(``+e))}function tu(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function nu(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=eu((i[Gp]||null).action),o=r.submitter;o&&(t=(t=o[Gp]||null)?eu(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new ah(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(uS!==0){var e=o?tu(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a};Object.freeze(t),jo(n,t,null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?tu(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a},Object.freeze(t),jo(n,t,a,e))},currentTarget:i}]})}}function ru(e,t,n){e.currentTarget=n;try{t(e)}catch(e){ug(e)}e.currentTarget=null}function iu(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n];a:{var i=void 0,a=r.event;if(r=r.listeners,t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?ru(a,s,l):D(c,ru,a,s,l),i=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?ru(a,s,l):D(c,ru,a,s,l),i=c}}}}function au(e,t){pS.has(e)||console.error(`Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.`,e);var n=t[qp];n===void 0&&(n=t[qp]=new Set);var r=e+`__bubble`;n.has(r)||(cu(t,e,2,!1),n.add(r))}function ou(e,t,n){pS.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 r=0;t&&(r|=4),cu(n,e,r,t)}function su(e){if(!e[mS]){e[mS]=!0,Qp.forEach(function(t){t!==`selectionchange`&&(pS.has(t)||ou(t,!1,e),ou(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mS]||(t[mS]=!0,ou(`selectionchange`,!1,t))}}function cu(e,t,n,r){switch(uf(t)){case zp:var i=af;break;case Bp:i=of;break;default:i=sf}n=i.bind(null,t,n,e),i=void 0,!$m||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function lu(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Ze(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}un(function(){var r=a,i=cn(n),o=[];a:{var s=ig.get(e);if(s!==void 0){var c=ah,l=e;switch(e){case`keypress`:if(pn(n)===0)break a;case`keydown`:case`keyup`:c=Sh;break;case`focusin`:l=`focus`,c=mh;break;case`focusout`:l=`blur`,c=mh;break;case`beforeblur`:case`afterblur`:c=mh;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=fh;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=ph;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=wh;break;case Zh:case Qh:case $h:c=hh;break;case rg:c=Th;break;case`scroll`:case`scrollend`:c=sh;break;case`wheel`:c=Eh;break;case`copy`:case`cut`:case`paste`:c=gh;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Ch;break;case`toggle`:case`beforetoggle`:c=Dh}var u=!!(t&4),d=!u&&(e===`scroll`||e===`scrollend`),f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){var h=p;if(m=h.stateNode,h=h.tag,h!==5&&h!==26&&h!==27||m===null||f===null||(h=dn(p,f),h!=null&&u.push(uu(p,h,m))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Jm&&(l=n.relatedTarget||n.fromElement)&&(Ze(l)||l[Kp]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ze(l):null,l!==null&&(d=x(l),u=l.tag,l!==d||u!==5&&u!==27&&u!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=fh,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Ch,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:$e(c),m=l==null?s:$e(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ze(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=fu,f=c,p=l,m=0,h=f;h;h=u(h))m++;h=0;for(var g=p;g;g=u(g))h++;for(;0<m-h;)f=u(f),m--;for(;0<h-m;)p=u(p),h--;for(;m--;){if(f===p||p!==null&&f===p.alternate){u=f;break b}f=u(f),p=u(p)}u=null}else u=null;c!==null&&pu(o,s,c,u,!1),l!==null&&d!==null&&pu(o,d,l,u,!0)}}a:{if(s=r?$e(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=On;else if(Cn(s)){if(Vh)_=Pn;else{_=Mn;var v=jn}}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&$t(r.elementType)&&(_=On):_=Nn;if(_&&=_(e,r)){Tn(o,_,n,i);break a}v&&v(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&yt(s,`number`,s.value)}switch(v=r?$e(r):window,e){case`focusin`:(Cn(v)||v.contentEditable===`true`)&&(Wh=v,Gh=r,Kh=null);break;case`focusout`:Kh=Gh=Wh=null;break;case`mousedown`:qh=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:qh=!1,Hn(o,n,i);break;case`selectionchange`:if(Uh)break;case`keydown`:case`keyup`:Hn(o,n,i)}var y;if(Ah)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Lh?yn(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===kh&&(b=`onCompositionStart`);b&&(Nh&&n.locale!==`ko`&&(Lh||b!==`onCompositionStart`?b===`onCompositionEnd`&&Lh&&(y=fn()):(th=i,nh=`value`in th?th.value:th.textContent,Lh=!0)),v=du(r,b),0<v.length&&(b=new _h(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=bn(n),y!==null&&(b.data=y)))),(y=Mh?xn(e,n):Sn(e,n))&&(b=du(r,`onBeforeInput`),0<b.length&&(v=new vh(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),nu(o,e,r,n,i)}iu(o,t)})}function uu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function du(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=dn(e,n),i!=null&&r.unshift(uu(e,i,a)),i=dn(e,t),i!=null&&r.push(uu(e,i,a))),e.tag===3)return r;e=e.return}return[]}function fu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function pu(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=dn(n,a),l!=null&&o.unshift(uu(n,l,c))):i||(l=dn(n,a),l!=null&&o.push(uu(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function mu(e,t){nn(e,t),e!==`input`&&e!==`textarea`&&e!==`select`||t==null||t.value!==null||Vm||(Vm=!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 n={registrationNameDependencies:$p,possibleRegistrationNames:em};$t(e)||typeof t.is==`string`||an(e,t,n),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 hu(e,t,n,r){t!==n&&(n=yu(n),yu(t)!==n&&(r[e]=t))}function gu(e,t,n){t.forEach(function(t){n[Tu(t)]=t===`style`?Eu(e):e.getAttribute(t)})}function _u(e,t){!1===t?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 vu(e,t){return e=e.namespaceURI===Nm||e.namespaceURI===Pm?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function yu(e){return Ee(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.`,Te(e)),De(e)),(typeof e==`string`?e:``+e).replace(CS,`
|
|
180
|
-
`).replace(wS,``)}function bu(e,t){return t=yu(t),yu(e)===t}function xu(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?(Jt(r,t,!1),t===`body`||t===`textarea`&&r===``||Yt(e,r)):(typeof r==`number`||typeof r==`bigint`)&&(Jt(``+r,t,!1),t!==`body`&&Yt(e,``+r));break;case`className`:st(e,`class`,r);break;case`tabIndex`:st(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:st(e,n,r);break;case`style`:Qt(e,r,a);break;case`data`:if(t!==`object`){st(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){console.error(n===`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.`,n,n),e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}O(r,n),r=on(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(r!=null&&(t===`form`?n===`formAction`?console.error(`You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.`):typeof r==`function`&&(i.encType==null&&i.method==null||bS||(bS=!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.`)),i.target==null||yS||(yS=!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`?n===`action`?console.error(`You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.`):t!==`input`||i.type===`submit`||i.type===`image`||_S?t!==`button`||i.type==null||i.type===`submit`||_S?typeof r==`function`&&(i.name==null||vS||(vS=!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.`)),i.formEncType==null&&i.formMethod==null||bS||(bS=!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.`)),i.formTarget==null||yS||(yS=!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.`))):(_S=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`)):(_S=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`)):console.error(n===`action`?`You can only pass the action prop to <form>.`:`You can only pass the formAction prop to <input> or <button>.`)),typeof r==`function`){e.setAttribute(n,`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}if(typeof a==`function`&&(n===`formAction`?(t!==`input`&&xu(e,t,`name`,i.name,i,null),xu(e,t,`formEncType`,i.formEncType,i,null),xu(e,t,`formMethod`,i.formMethod,i,null),xu(e,t,`formTarget`,i.formTarget,i,null)):(xu(e,t,`encType`,i.encType,i,null),xu(e,t,`method`,i.method,i,null),xu(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}O(r,n),r=on(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(typeof r!=`function`&&_u(n,r),e.onclick=sn);break;case`onScroll`:r!=null&&(typeof r!=`function`&&_u(n,r),au(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&_u(n,r),au(`scrollend`,e));break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}O(r,n),n=on(``+r),e.setAttributeNS(TS,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(O(r,n),e.setAttribute(n,``+r)):e.removeAttribute(n);break;case`inert`:r!==``||SS[n]||(SS[n]=!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.",n));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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(O(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?(O(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):(O(r,n),e.setAttribute(n,r));break;case`popover`:au(`beforetoggle`,e),au(`toggle`,e),ot(e,`popover`,r);break;case`xlinkActuate`:ct(e,TS,`xlink:actuate`,r);break;case`xlinkArcrole`:ct(e,TS,`xlink:arcrole`,r);break;case`xlinkRole`:ct(e,TS,`xlink:role`,r);break;case`xlinkShow`:ct(e,TS,`xlink:show`,r);break;case`xlinkTitle`:ct(e,TS,`xlink:title`,r);break;case`xlinkType`:ct(e,TS,`xlink:type`,r);break;case`xmlBase`:ct(e,ES,`xml:base`,r);break;case`xmlLang`:ct(e,ES,`xml:lang`,r);break;case`xmlSpace`:ct(e,ES,`xml:space`,r);break;case`is`:a!=null&&console.error(`Cannot update the "is" prop after it has been initialized.`),ot(e,`is`,r);break;case`innerText`:case`textContent`:break;case`popoverTarget`:xS||typeof r!=`object`||!r||(xS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`?(n=en(n),ot(e,n,r)):$p.hasOwnProperty(n)&&r!=null&&typeof r!=`function`&&_u(n,r)}}function Su(e,t,n,r,i,a){switch(n){case`style`:Qt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`children`:typeof r==`string`?Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Yt(e,``+r);break;case`onScroll`:r!=null&&(typeof r!=`function`&&_u(n,r),au(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&_u(n,r),au(`scrollend`,e));break;case`onClick`:r!=null&&(typeof r!=`function`&&_u(n,r),e.onclick=sn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if($p.hasOwnProperty(n))r!=null&&typeof r!=`function`&&_u(n,r);else a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[Gp]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):ot(e,n,r)}}}function Cu(e,t,n){switch(mu(t,n),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:au(`error`,e),au(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:xu(e,t,a,o,n,null)}}i&&xu(e,t,`srcSet`,n.srcSet,n,null),r&&xu(e,t,`src`,n.src,n,null);return;case`input`:rt(`input`,n),au(`invalid`,e);var s=a=o=i=null,c=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case`name`:i=u;break;case`type`:o=u;break;case`checked`:c=u;break;case`defaultChecked`:l=u;break;case`value`:a=u;break;case`defaultValue`:s=u;break;case`children`:case`dangerouslySetInnerHTML`:if(u!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:xu(e,t,r,u,n,null)}}gt(e,n),vt(e,a,s,c,l,o,i,!1);return;case`select`:for(i in rt(`select`,n),au(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case`value`:a=s;break;case`defaultValue`:o=s;break;case`multiple`:r=s;default:xu(e,t,i,s,n,null)}Ct(e,n),t=a,n=o,e.multiple=!!r,t==null?n!=null&&St(e,!!r,n,!0):St(e,!!r,t,!1);return;case`textarea`:for(o in rt(`textarea`,n),au(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case`value`:r=s;break;case`defaultValue`:i=s;break;case`children`:a=s;break;case`dangerouslySetInnerHTML`:if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:xu(e,t,o,s,n,null)}wt(e,n),Tt(e,r,i,a);return;case`option`:for(c in bt(e,n),n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:xu(e,t,c,r,n,null)}return;case`dialog`:au(`beforetoggle`,e),au(`toggle`,e),au(`cancel`,e),au(`close`,e);break;case`iframe`:case`object`:au(`load`,e);break;case`video`:case`audio`:for(r=0;r<fS.length;r++)au(fS[r],e);break;case`image`:au(`error`,e),au(`load`,e);break;case`details`:au(`toggle`,e);break;case`embed`:case`source`:case`link`:au(`error`,e),au(`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(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:xu(e,t,l,r,n,null)}return;default:if($t(t)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&Su(e,t,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&xu(e,t,s,r,n,null))}function wu(e,t,n,r){switch(mu(t,r),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,s=null,c=null,l=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case`checked`:break;case`value`:break;case`defaultValue`:c=d;default:r.hasOwnProperty(p)||xu(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case`type`:a=p;break;case`name`:i=p;break;case`checked`:l=p;break;case`defaultChecked`:u=p;break;case`value`:o=p;break;case`defaultValue`:s=p;break;case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&xu(e,t,f,p,r,d)}}t=n.type===`checkbox`||n.type===`radio`?n.checked!=null:n.value!=null,r=r.type===`checkbox`||r.type===`radio`?r.checked!=null:r.value!=null,t||!r||gS||(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`),gS=!0),!t||r||hS||(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`),hS=!0),_t(e,o,s,c,l,u,a,i);return;case`select`:for(a in p=o=s=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case`value`:break;case`multiple`:p=c;default:r.hasOwnProperty(a)||xu(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case`value`:f=a;break;case`defaultValue`:s=a;break;case`multiple`:o=a;default:a!==c&&xu(e,t,i,a,r,c)}r=s,t=o,n=p,f==null?!!n!=!!t&&(r==null?St(e,!!t,t?[]:``,!1):St(e,!!t,r,!0)):St(e,!!t,f,!1);return;case`textarea`:for(s in p=f=null,n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case`value`:break;case`children`:break;default:xu(e,t,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:f=i;break;case`defaultValue`:p=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==a&&xu(e,t,o,i,r,a)}A(e,f,p);return;case`option`:for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case`selected`:e.selected=!1;break;default:xu(e,t,m,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case`selected`:e.selected=f&&typeof f!=`function`&&typeof f!=`symbol`;break;default:xu(e,t,c,f,r,p)}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 h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h)&&xu(e,t,h,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:if(f!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:xu(e,t,l,f,r,p)}return;default:if($t(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&Su(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||Su(e,t,u,f,r,p);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!r.hasOwnProperty(_)&&xu(e,t,_,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||xu(e,t,d,f,r,p)}function Tu(e){switch(e){case`class`:return`className`;case`for`:return`htmlFor`;default:return e}}function Eu(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function Du(e,t,n){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 r,i=r=``,a;for(a in t)if(t.hasOwnProperty(a)){var o=t[a];o!=null&&typeof o!=`boolean`&&o!==``&&(a.indexOf(`--`)===0?(Oe(o,a),r+=i+a+`:`+(``+o).trim()):typeof o!=`number`||o===0||Mm.has(a)?(Oe(o,a),r+=i+a.replace(Sm,`-$1`).toLowerCase().replace(Cm,`-ms-`)+`:`+(``+o).trim()):r+=i+a.replace(Sm,`-$1`).toLowerCase().replace(Cm,`-ms-`)+`:`+o+`px`,i=`;`)}r||=null,t=e.getAttribute(`style`),t!==r&&(r=yu(r),yu(t)!==r&&(n.style=Eu(e)))}}function Ou(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(O(r,t),e===``+r)return}hu(t,e,r,a)}function ku(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null){switch(typeof r){case`function`:case`symbol`:return}if(!r)return}else switch(typeof r){case`function`:case`symbol`:break;default:if(r)return}hu(t,e,r,a)}function Au(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:break;default:if(O(r,n),e===``+r)return}hu(t,e,r,a)}function ju(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(!isNaN(r)&&(O(r,t),e===``+r))return}hu(t,e,r,a)}function Mu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(O(r,t),n=on(``+r),e===n)return}hu(t,e,r,a)}function Nu(e,t,n,r){for(var i={},a=new Set,o=e.attributes,s=0;s<o.length;s++)switch(o[s].name.toLowerCase()){case`value`:break;case`checked`:break;case`selected`:break;default:a.add(o[s].name)}if($t(t)){for(var c in n)if(n.hasOwnProperty(c)){var l=n[c];if(l!=null){if($p.hasOwnProperty(c))typeof l!=`function`&&_u(c,l);else if(!0!==n.suppressHydrationWarning)switch(c){case`children`:typeof l!=`string`&&typeof l!=`number`||hu(`children`,e.textContent,l,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,l=l?l.__html:void 0,l!=null&&(l=vu(e,l),hu(c,o,l,i));continue;case`style`:a.delete(c),Du(e,l,i);continue;case`offsetParent`:case`offsetTop`:case`offsetLeft`:case`offsetWidth`:case`offsetHeight`:case`isContentEditable`:case`outerText`:case`outerHTML`:a.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case`className`:a.delete(`class`),o=at(e,`class`,l),hu(`className`,o,l,i);continue;default:r.context===US&&t!==`svg`&&t!==`math`?a.delete(c.toLowerCase()):a.delete(c),o=at(e,c,l),hu(c,o,l,i)}}}}else for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null)){if($p.hasOwnProperty(l))typeof c!=`function`&&_u(l,c);else if(!0!==n.suppressHydrationWarning)switch(l){case`children`:typeof c!=`string`&&typeof c!=`number`||hu(`children`,e.textContent,c,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`value`:case`checked`:case`selected`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,c=c?c.__html:void 0,c!=null&&(c=vu(e,c),o!==c&&(i[l]={__html:o}));continue;case`className`:Ou(e,l,`class`,c,a,i);continue;case`tabIndex`:Ou(e,l,`tabindex`,c,a,i);continue;case`style`:a.delete(l),Du(e,c,i);continue;case`multiple`:a.delete(l),hu(l,e.multiple,c,i);continue;case`muted`:a.delete(l),hu(l,e.muted,c,i);continue;case`autoFocus`:a.delete(`autofocus`),hu(l,e.autofocus,c,i);continue;case`data`:if(t!==`object`){a.delete(l),o=e.getAttribute(`data`),hu(l,o,c,i);continue}case`src`:case`href`:if(!(c!==``||t===`a`&&l===`href`||t===`object`&&l===`data`)){console.error(l===`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.`,l,l);continue}Mu(e,l,l,c,a,i);continue;case`action`:case`formAction`:if(o=e.getAttribute(l),typeof c==`function`){a.delete(l.toLowerCase()),l===`formAction`?(a.delete(`name`),a.delete(`formenctype`),a.delete(`formmethod`),a.delete(`formtarget`)):(a.delete(`enctype`),a.delete(`method`),a.delete(`target`));continue}if(o===DS){a.delete(l.toLowerCase()),hu(l,`function`,c,i);continue}Mu(e,l,l.toLowerCase(),c,a,i);continue;case`xlinkHref`:Mu(e,l,`xlink:href`,c,a,i);continue;case`contentEditable`:Au(e,l,`contenteditable`,c,a,i);continue;case`spellCheck`:Au(e,l,`spellcheck`,c,a,i);continue;case`draggable`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:Au(e,l,l,c,a,i);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`:ku(e,l,l.toLowerCase(),c,a,i);continue;case`capture`:case`download`:a:{s=e;var u=o=l,d=i;if(a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:break a;default:if(!1===c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:break;case`boolean`:if(!0===c&&s===``)break a;break;default:if(O(c,o),s===``+c)break a}hu(o,s,c,d)}continue;case`cols`:case`rows`:case`size`:case`span`:a:{if(s=e,u=o=l,d=i,a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:case`boolean`:break a;default:if(isNaN(c)||1>c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:case`boolean`:break;default:if(!(isNaN(c)||1>c)&&(O(c,o),s===``+c))break a}hu(o,s,c,d)}continue;case`rowSpan`:ju(e,l,`rowspan`,c,a,i);continue;case`start`:ju(e,l,l,c,a,i);continue;case`xHeight`:Ou(e,l,`x-height`,c,a,i);continue;case`xlinkActuate`:Ou(e,l,`xlink:actuate`,c,a,i);continue;case`xlinkArcrole`:Ou(e,l,`xlink:arcrole`,c,a,i);continue;case`xlinkRole`:Ou(e,l,`xlink:role`,c,a,i);continue;case`xlinkShow`:Ou(e,l,`xlink:show`,c,a,i);continue;case`xlinkTitle`:Ou(e,l,`xlink:title`,c,a,i);continue;case`xlinkType`:Ou(e,l,`xlink:type`,c,a,i);continue;case`xmlBase`:Ou(e,l,`xml:base`,c,a,i);continue;case`xmlLang`:Ou(e,l,`xml:lang`,c,a,i);continue;case`xmlSpace`:Ou(e,l,`xml:space`,c,a,i);continue;case`inert`:c!==``||SS[l]||(SS[l]=!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.",l)),ku(e,l,l,c,a,i);continue;default:if(!(2<l.length)||l[0]!==`o`&&l[0]!==`O`||l[1]!==`n`&&l[1]!==`N`){s=en(l),o=!1,r.context===US&&t!==`svg`&&t!==`math`?a.delete(s.toLowerCase()):(u=l.toLowerCase(),u=Im.hasOwnProperty(u)&&Im[u]||null,u!==null&&u!==l&&(o=!0,a.delete(u)),a.delete(s));a:if(u=e,d=s,s=c,it(d)){if(u.hasAttribute(d))u=u.getAttribute(d),O(s,d),s=u===``+s?s:u;else{switch(typeof s){case`function`:case`symbol`:break a;case`boolean`:if(u=d.toLowerCase().slice(0,5),u!==`data-`&&u!==`aria-`)break a}s=s===void 0?void 0:null}}else s=void 0;o||hu(l,s,c,i)}}}return 0<a.size&&!0!==n.suppressHydrationWarning&&gu(e,a,i),Object.keys(i).length===0?null:i}function Pu(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 Fu(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Iu(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Fu(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Fu(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.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 Lu(e){return e.nodeType===9?e:e.ownerDocument}function Ru(e){switch(e){case Pm:return WS;case Nm:return GS;default:return US}}function zu(e,t){if(e===US)switch(t){case`svg`:return WS;case`math`:return GS;default:return US}return e===WS&&t===`foreignObject`?US:e}function Bu(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 Vu(){var e=window.event;return e&&e.type===`popstate`?e!==YS&&(YS=e,!0):(YS=null,!1)}function Hu(){var e=window.event;return e&&e!==XS?e.type:null}function Uu(){var e=window.event;return e&&e!==XS?e.timeStamp:-1.1}function Wu(e){setTimeout(function(){throw e})}function Gu(e,t,n){switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&e.focus();break;case`img`:n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function Ku(){}function qu(e,t,n,r){wu(e,t,n,r),e[Gp]=r}function Ju(e){Yt(e,``)}function Yu(e,t,n){e.nodeValue=n}function Xu(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Gp]||null;if(t!==null){var n=Qe(e);n!==null&&(typeof t.children==`string`||typeof t.children==`number`?(e.__reactWarnedAboutChildrenConflict=!0,D(n,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,D(n,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 Zu(e){return e===`head`}function Qu(e,t){e.removeChild(t)}function $u(e,t){(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e).removeChild(t)}function ed(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===MS||n===AS){if(r===0){e.removeChild(i),bf(t);return}r--}else if(n===jS||n===NS||n===PS||n===FS||n===kS)r++;else if(n===IS)Td(e.ownerDocument.documentElement);else if(n===RS){n=e.ownerDocument.head,Td(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Zp]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===LS&&Td(e.ownerDocument.body)}n=i}while(n);bf(t)}function td(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===MS){if(e===0)break;e--}else n!==jS&&n!==NS&&n!==PS&&n!==FS||e++}n=r}while(n)}function nd(e){td(e,!0)}function rd(e){e=e.style,typeof e.setProperty==`function`?e.setProperty(`display`,`none`,`important`):e.display=`none`}function id(e){e.nodeValue=``}function ad(e){td(e,!1)}function od(e,t){t=t[HS],t=t!=null&&t.hasOwnProperty(`display`)?t.display:null,e.style.display=t==null||typeof t==`boolean`?``:(``+t).trim()}function sd(e,t){e.nodeValue=t}function cd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:cd(n),Xe(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function ld(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){O(i.name,`name`);var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Zp])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=hd(e.nextSibling),e===null)break}return null}function ud(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=hd(e.nextSibling),e===null))return null;return e}function dd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=hd(e.nextSibling),e===null))return null;return e}function fd(e){return e.data===NS||e.data===PS}function pd(e){return e.data===FS||e.data===NS&&e.ownerDocument.readyState!==VS}function md(e,t){var n=e.ownerDocument;if(e.data===PS)e._reactRetry=t;else if(e.data!==NS||n.readyState!==VS)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function hd(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===jS||t===FS||t===NS||t===PS||t===kS||t===zS||t===BS)break;if(t===MS||t===AS)return null}}return e}function gd(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,i=0;i<r.length;i++){var a=r[i];n[Tu(a.name)]=a.name.toLowerCase()===`style`?Eu(e):a.value}return{type:t,props:n}}return e.nodeType===8?e.data===kS?{type:`Activity`,props:{}}:{type:`Suspense`,props:{}}:e.nodeValue}function _d(e,t,n){return n===null||!0!==n[OS]?(e.nodeValue===t?e=null:(t=yu(t),e=yu(e.nodeValue)===t?null:e.nodeValue),e):null}function vd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===MS||n===AS){if(t===0)return hd(e.nextSibling);t--}else n!==jS&&n!==FS&&n!==NS&&n!==PS&&n!==kS||t++}e=e.nextSibling}return null}function yd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===jS||n===FS||n===NS||n===PS||n===kS){if(t===0)return e;t--}else n!==MS&&n!==AS||t++}e=e.previousSibling}return null}function bd(e){bf(e)}function xd(e){bf(e)}function Sd(e){bf(e)}function Cd(e,t,n,r,i){switch(i&&qt(e,r.ancestorInfo),t=Lu(n),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 wd(e,t,n,r){if(!n[Kp]&&Qe(n)){var i=n.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.`,i,i,i)}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(i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Cu(n,e,t),n[Wp]=r,n[Gp]=t}function Td(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xe(e)}function Ed(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Dd(e,t,n){var r=dC;if(r&&typeof t==`string`&&t){var i=ht(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),lC.has(i)||(lC.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Cu(t,`link`,e),et(t),r.head.appendChild(t)))}}function Od(e,t,n,r){var i=(i=$f.current)?Ed(i):null;if(!i)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 n.precedence==`string`&&typeof n.href==`string`?(n=Ad(n.href),t=k(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Ad(n.href);var a=k(i).hoistableStyles,o=a.get(e);if(!o&&(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:rC,preload:null}},a.set(e,o),(a=i.querySelector(jd(e)))&&!a._p&&(o.instance=a,o.state.loading=iC|sC),!cC.has(e))){var s={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};cC.set(e,s),a||Nd(i,e,s,o.state)}if(t&&r===null)throw n=`
|
|
181
|
-
|
|
182
|
-
- `+kd(t)+`
|
|
183
|
-
+ `+kd(n),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."+n);return o}if(t&&r!==null)throw n=`
|
|
184
|
-
|
|
185
|
-
- `+kd(t)+`
|
|
186
|
-
+ `+kd(n),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."+n);return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Pd(n),t=k(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{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 kd(e){var t=0,n=`<link`;return typeof e.rel==`string`?(t++,n+=` rel="`+e.rel+`"`):hp.call(e,`rel`)&&(t++,n+=` rel="`+(e.rel===null?`null`:`invalid type `+typeof e.rel)+`"`),typeof e.href==`string`?(t++,n+=` href="`+e.href+`"`):hp.call(e,`href`)&&(t++,n+=` href="`+(e.href===null?`null`:`invalid type `+typeof e.href)+`"`),typeof e.precedence==`string`?(t++,n+=` precedence="`+e.precedence+`"`):hp.call(e,`precedence`)&&(t++,n+=` precedence={`+(e.precedence===null?`null`:`invalid type `+typeof e.precedence)+`}`),Object.getOwnPropertyNames(e).length>t&&(n+=` ...`),n+` />`}function Ad(e){return`href="`+ht(e)+`"`}function jd(e){return`link[rel="stylesheet"][`+e+`]`}function Md(e){return H({},e,{"data-precedence":e.precedence,precedence:null})}function Nd(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=iC:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=iC}),t.addEventListener(`error`,function(){return r.loading|=aC}),Cu(t,`link`,n),et(t),e.head.appendChild(t))}function Pd(e){return`[src="`+ht(e)+`"]`}function Fd(e){return`script[async]`+e}function Id(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+ht(n.href)+`"]`);if(r)return t.instance=r,et(r),r;var i=H({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),et(r),Cu(r,`style`,i),Ld(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Ad(n.href);var a=e.querySelector(jd(i));if(a)return t.state.loading|=sC,t.instance=a,et(a),a;r=Md(n),(i=cC.get(i))&&Rd(r,i),a=(e.ownerDocument||e).createElement(`link`),et(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Cu(a,`link`,r),t.state.loading|=sC,Ld(a,n.precedence,e),t.instance=a;case`script`:return a=Pd(n.src),(i=e.querySelector(Fd(a)))?(t.instance=i,et(i),i):(r=n,(i=cC.get(a))&&(r=H({},n),zd(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),et(i),Cu(i,`link`,r),e.head.appendChild(i),t.instance=i);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&sC)===rC&&(r=t.instance,t.state.loading|=sC,Ld(r,n.precedence,e));return t.instance}function Ld(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rd(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zd(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function Bd(e,t,n){if(fC===null){var r=new Map,i=fC=new Map;i.set(n,r)}else i=fC,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Zp]||a[Wp]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==Pm){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Vd(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Hd(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===WS||t.itemProp!=null)return!r||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===``){r&&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 i=t.onError,a=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),i&&n.push("`onError`"),a!=null&&n.push("`disabled`"),i=Pu(n,`and`),i+=n.length===1?` prop`:` props`,a=n.length===1?`an `+i:`the `+i,n.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,a,i)}r&&(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}switch(t.rel){case`stylesheet`:return e=t.precedence,t=t.disabled,typeof e!=`string`&&r&&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;default:return!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`){r&&(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`:r&&console.error(`Cannot render <%s> outside the main document. Try moving it into the root <head> tag.`,e)}return!1}function Ud(e){return e.type!==`stylesheet`||(e.state.loading&oC)!==rC}function Wd(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&(n.state.loading&sC)===rC){if(n.instance===null){var i=Ad(r.href),a=t.querySelector(jd(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Kd.bind(e),t.then(e,e)),n.state.loading|=sC,n.instance=a,et(a);return}a=t.ownerDocument||t,r=Md(r),(i=cC.get(i))&&Rd(r,i),a=a.createElement(`link`),et(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Cu(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&oC)===rC&&(e.count++,n=Kd.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}function Gd(e,t){return e.stylesheets&&e.count===0&&qd(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&qd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},pC+t);0<e.imgBytes&&gC===0&&(gC=125*Iu()*hC);var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&qd(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>gC?50:mC)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Kd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function qd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vC=new Map,t.forEach(Jd,e),vC=null,Kd.call(e))}function Jd(e,t){if(!(t.state.loading&sC)){var n=vC.get(e);if(n)var r=n.get(_C);else{n=new Map,vC.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(_C,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(_C,i),n.set(o,i),this.count++,r=Kd.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=sC}}function Yd(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=$S,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,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=n?`hydrateRoot()`:`createRoot()`}function Xd(e,t,n,r,i,a,o,s,c,l,u,d){return e=new Yd(e,t,n,o,c,l,u,d,s),t=Ig,!0===a&&(t|=Lg|Rg),t|=K,a=g(3,null,null,t),e.current=a,a.stateNode=e,t=oi(),si(t),e.pooledCache=t,si(t),a.memoizedState={element:r,isDehydrated:n,cache:t},Xi(a),e}function Zd(e){return e?(e=Ng,e):Ng}function Qd(e,t,n,r,i,a){if(Ap&&typeof Ap.onScheduleFiberRoot==`function`)try{Ap.onScheduleFiberRoot(kp,r,n)}catch(e){jp||(jp=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=Zd(i),r.context===null?r.context=i:r.pendingContext=i,mp&&pp!==null&&!EC&&(EC=!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.
|
|
187
|
-
|
|
188
|
-
Check the render method of %s.`,w(pp)||`Unknown`)),r=Qi(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=$i(e,r,t),n!==null&&(li(t,`root.render()`,null),Zc(n,e,t),ea(n,e,t))}function $d(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ef(e,t){$d(e,t),(e=e.alternate)&&$d(e,t)}function tf(e){if(e.tag===13||e.tag===31){var t=fr(e,67108864);t!==null&&Zc(t,e,67108864),ef(e,67108864)}}function nf(e){if(e.tag===13||e.tag===31){var t=Yc(e);t=We(t);var n=fr(e,t);n!==null&&Zc(n,e,t),ef(e,t)}}function rf(){return pp}function af(e,t,n,r){var i=U.T;U.T=null;var a=Kf.p;try{Kf.p=zp,sf(e,t,n,r)}finally{Kf.p=a,U.T=i}}function of(e,t,n,r){var i=U.T;U.T=null;var a=Kf.p;try{Kf.p=Bp,sf(e,t,n,r)}finally{Kf.p=a,U.T=i}}function sf(e,t,n,r){if(LC){var i=cf(r);if(i===null)lu(e,t,r,RC,n),df(e,r);else if(pf(i,e,t,n,r))r.stopPropagation();else if(df(e,r),t&4&&-1<KC.indexOf(e)){for(;i!==null;){var a=Qe(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ne(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Np(o);s.entanglements[1]|=c,o&=~c}Wl(a),(Ub&(Pb|Fb))===Nb&&(yx=bp()+bx,Gl(0,!1))}}break;case 31:case 13:s=fr(a,2),s!==null&&Zc(s,a,2),nl(),ef(a,2)}if(a=cf(r),a===null&&lu(e,t,r,RC,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else lu(e,t,r,null,n)}}function cf(e){return e=cn(e),lf(e)}function lf(e){if(RC=null,e=Ze(e),e!==null){var t=x(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=ee(t),e!==null)return e;e=null}else if(n===31){if(e=te(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return RC=e,null}function uf(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 zp;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 Bp;case`message`:switch(xp()){case Sp:return zp;case Cp:return Bp;case wp:case Tp:return Vp;case Ep:return Hp;default:return Vp}default:return Vp}}function df(e,t){switch(e){case`focusin`:case`focusout`:BC=null;break;case`dragenter`:case`dragleave`:VC=null;break;case`mouseover`:case`mouseout`:HC=null;break;case`pointerover`:case`pointerout`:UC.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:WC.delete(t.pointerId)}}function ff(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Qe(t),t!==null&&tf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function pf(e,t,n,r,i){switch(t){case`focusin`:return BC=ff(BC,e,t,n,r,i),!0;case`dragenter`:return VC=ff(VC,e,t,n,r,i),!0;case`mouseover`:return HC=ff(HC,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return UC.set(a,ff(UC.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,WC.set(a,ff(WC.get(a)||null,e,t,n,r,i)),!0}return!1}function mf(e){var t=Ze(e.target);if(t!==null){var n=x(t);if(n!==null){if(t=n.tag,t===13){if(t=ee(n),t!==null){e.blockedOn=t,Ye(e.priority,function(){nf(n)});return}}else if(t===31){if(t=te(n),t!==null){e.blockedOn=t,Ye(e.priority,function(){nf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=cf(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n),i=r;Jm!==null&&console.error(`Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.`),Jm=i,n.target.dispatchEvent(r),Jm===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.`),Jm=null}else return t=Qe(n),t!==null&&tf(t),e.blockedOn=n,!1;t.shift()}return!0}function gf(e,t,n){hf(e)&&n.delete(t)}function _f(){zC=!1,BC!==null&&hf(BC)&&(BC=null),VC!==null&&hf(VC)&&(VC=null),HC!==null&&hf(HC)&&(HC=null),UC.forEach(gf),WC.forEach(gf)}function vf(e,t){e.blockedOn===t&&(e.blockedOn=null,zC||(zC=!0,Tf.unstable_scheduleCallback(Tf.unstable_NormalPriority,_f)))}function yf(e){qC!==e&&(qC=e,Tf.unstable_scheduleCallback(Tf.unstable_NormalPriority,function(){qC===e&&(qC=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(lf(r||n)===null)continue;break}var a=Qe(n);a!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:i,method:n.method,action:r},Object.freeze(n),jo(a,n,r,i))}}))}function bf(e){function t(t){return vf(t,e)}BC!==null&&vf(BC,e),VC!==null&&vf(VC,e),HC!==null&&vf(HC,e),UC.forEach(t),WC.forEach(t);for(var n=0;n<GC.length;n++){var r=GC[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<GC.length&&(n=GC[0],n.blockedOn===null);)mf(n),n.blockedOn===null&&GC.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Gp]||null;if(typeof a==`function`)o||yf(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Gp]||null)s=o.formAction;else if(lf(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),yf(n)}}}function xf(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Sf(e){this._internalRoot=e}function Cf(e){this._internalRoot=e}function wf(e){e[Kp]&&(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 Tf=p(),Ef=d(),Df=h(),H=Object.assign,Of=Symbol.for(`react.element`),kf=Symbol.for(`react.transitional.element`),Af=Symbol.for(`react.portal`),jf=Symbol.for(`react.fragment`),Mf=Symbol.for(`react.strict_mode`),Nf=Symbol.for(`react.profiler`),Pf=Symbol.for(`react.consumer`),Ff=Symbol.for(`react.context`),If=Symbol.for(`react.forward_ref`),Lf=Symbol.for(`react.suspense`),Rf=Symbol.for(`react.suspense_list`),zf=Symbol.for(`react.memo`),Bf=Symbol.for(`react.lazy`),Vf=Symbol.for(`react.activity`),Hf=Symbol.for(`react.memo_cache_sentinel`),Uf=Symbol.iterator,Wf=Symbol.for(`react.client.reference`),Gf=Array.isArray,U=Ef.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Kf=Df.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qf=Object.freeze({pending:!1,data:null,method:null,action:null}),Jf=[],Yf=[],Xf=-1,Zf=T(null),Qf=T(null),$f=T(null),ep=T(null),tp=0,np,rp,ip,ap,op,sp,cp;pe.__reactDisabledLog=!0;var lp,up,dp=!1,fp=new(typeof WeakMap==`function`?WeakMap:Map),pp=null,mp=!1,hp=Object.prototype.hasOwnProperty,gp=Tf.unstable_scheduleCallback,_p=Tf.unstable_cancelCallback,vp=Tf.unstable_shouldYield,yp=Tf.unstable_requestPaint,bp=Tf.unstable_now,xp=Tf.unstable_getCurrentPriorityLevel,Sp=Tf.unstable_ImmediatePriority,Cp=Tf.unstable_UserBlockingPriority,wp=Tf.unstable_NormalPriority,Tp=Tf.unstable_LowPriority,Ep=Tf.unstable_IdlePriority,Dp=Tf.log,Op=Tf.unstable_setDisableYieldValue,kp=null,Ap=null,jp=!1,Mp=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Np=Math.clz32?Math.clz32:Me,Pp=Math.log,Fp=Math.LN2,Ip=256,Lp=262144,Rp=4194304,zp=2,Bp=8,Vp=32,Hp=268435456,Up=Math.random().toString(36).slice(2),Wp=`__reactFiber$`+Up,Gp=`__reactProps$`+Up,Kp=`__reactContainer$`+Up,qp=`__reactEvents$`+Up,Jp=`__reactListeners$`+Up,Yp=`__reactHandles$`+Up,Xp=`__reactResources$`+Up,Zp=`__reactMarker$`+Up,Qp=new Set,$p={},em={},tm={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},nm=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]*$`),rm={},im={},am=/[\n"\\]/g,om=!1,sm=!1,cm=!1,lm=!1,um=!1,dm=!1,fm=[`value`,`defaultValue`],pm=!1,mm=/["'&<>\n\t]|^\s|\s$/,hm=`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(` `),gm=`applet caption html table td th marquee object template foreignObject desc title`.split(` `),_m=gm.concat([`button`]),vm=`dd dt li option optgroup p rp rt`.split(` `),ym={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},bm={},xm={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`]},Sm=/([A-Z])/g,Cm=/^ms-/,wm=/^(?:webkit|moz|o)[A-Z]/,Tm=/^-ms-/,Em=/-(.)/g,Dm=/;\s*$/,Om={},km={},Am=!1,jm=!1,Mm=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(` `)),Nm=`http://www.w3.org/1998/Math/MathML`,Pm=`http://www.w3.org/2000/svg`,Fm=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`]]),Im={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`},Lm={"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},Rm={},zm=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]*$`),Bm=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]*$`),Vm=!1,Hm={},Um=/^on./,Wm=/^on[^A-Z]/,Gm=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]*$`),Km=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]*$`),qm=/^[\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,Jm=null,Ym=null,Xm=null,Zm=!1,Qm=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),$m=!1;if(Qm)try{var eh={};Object.defineProperty(eh,"passive",{get:function(){$m=!0}}),window.addEventListener(`test`,eh,eh),window.removeEventListener(`test`,eh,eh)}catch{$m=!1}var th=null,nh=null,rh=null,ih={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ah=gn(ih),oh=H({},ih,{view:0,detail:0}),sh=gn(oh),ch,lh,uh,dh=H({},oh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,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!==uh&&(uh&&e.type===`mousemove`?(ch=e.screenX-uh.screenX,lh=e.screenY-uh.screenY):lh=ch=0,uh=e),ch)},movementY:function(e){return`movementY`in e?e.movementY:lh}}),fh=gn(dh),ph=gn(H({},dh,{dataTransfer:0})),mh=gn(H({},oh,{relatedTarget:0})),hh=gn(H({},ih,{animationName:0,elapsedTime:0,pseudoElement:0})),gh=gn(H({},ih,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),_h=gn(H({},ih,{data:0})),vh=_h,yh={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},bh={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`},xh={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`},Sh=gn(H({},oh,{key:function(e){if(e.key){var t=yh[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?bh[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vn,charCode:function(e){return e.type===`keypress`?pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Ch=gn(H({},dh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),wh=gn(H({},oh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),Th=gn(H({},ih,{propertyName:0,elapsedTime:0,pseudoElement:0})),Eh=gn(H({},dh,{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})),Dh=gn(H({},ih,{newState:0,oldState:0})),Oh=[9,13,27,32],kh=229,Ah=Qm&&`CompositionEvent`in window,jh=null;Qm&&`documentMode`in document&&(jh=document.documentMode);var Mh=Qm&&`TextEvent`in window&&!jh,Nh=Qm&&(!Ah||jh&&8<jh&&11>=jh),Ph=32,Fh=String.fromCharCode(Ph),Ih=!1,Lh=!1,Rh={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},zh=null,Bh=null,Vh=!1;Qm&&(Vh=wn(`input`)&&(!document.documentMode||9<document.documentMode));var Hh=typeof Object.is==`function`?Object.is:Fn,Uh=Qm&&`documentMode`in document&&11>=document.documentMode,Wh=null,Gh=null,Kh=null,qh=!1,Jh={animationend:Un(`Animation`,`AnimationEnd`),animationiteration:Un(`Animation`,`AnimationIteration`),animationstart:Un(`Animation`,`AnimationStart`),transitionrun:Un(`Transition`,`TransitionRun`),transitionstart:Un(`Transition`,`TransitionStart`),transitioncancel:Un(`Transition`,`TransitionCancel`),transitionend:Un(`Transition`,`TransitionEnd`)},Yh={},Xh={};Qm&&(Xh=document.createElement(`div`).style,`AnimationEvent`in window||(delete Jh.animationend.animation,delete Jh.animationiteration.animation,delete Jh.animationstart.animation),`TransitionEvent`in window||delete Jh.transitionend.transition);var Zh=Wn(`animationend`),Qh=Wn(`animationiteration`),$h=Wn(`animationstart`),eg=Wn(`transitionrun`),tg=Wn(`transitionstart`),ng=Wn(`transitioncancel`),rg=Wn(`transitionend`),ig=new Map,ag=`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(` `);ag.push(`scrollEnd`);var og=0;if(typeof performance==`object`&&typeof performance.now==`function`)var sg=performance,cg=function(){return sg.now()};else{var lg=Date;cg=function(){return lg.now()}}var ug=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&&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)},dg=`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.`,fg=0,pg=1,mg=2,hg=3,gg=`–\xA0`,_g=`+\xA0`,vg=` \xA0`,yg=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,bg=`Components ⚛`,W=`Scheduler ⚛`,xg=`Blocking`,Sg=!1,Cg={color:`primary`,properties:null,tooltipText:``,track:bg},wg={start:-0,end:-0,detail:{devtools:Cg}},Tg=[`Changed Props`,``],Eg=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`,Dg=[`Changed Props`,Eg],Og=1,kg=2,Ag=[],jg=0,Mg=0,Ng={};Object.freeze(Ng);var Pg=null,Fg=null,G=0,Ig=1,K=2,Lg=8,Rg=16,zg=32,Bg=!1;try{Object.preventExtensions({})}catch{Bg=!0}var Vg=new WeakMap,Hg=[],Ug=0,Wg=null,Gg=0,Kg=[],qg=0,Jg=null,Yg=1,Xg=``,Zg=null,Qg=null,$g=!1,e_=!1,t_=null,n_=null,r_=!1,i_=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.`),a_=T(null),o_=T(null),s_={},c_=null,l_=null,u_=!1,d_=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},f_=Tf.unstable_scheduleCallback,p_=Tf.unstable_NormalPriority,m_={$$typeof:Ff,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},h_=Tf.unstable_now,g_=console.createTask?console.createTask:function(){return null},__=1,v_=2,y_=-0,b_=-0,x_=-0,S_=null,C_=-1.1,w_=-0,T_=-0,q=-1.1,J=-1.1,E_=null,D_=!1,O_=-0,k_=-1.1,A_=null,j_=0,M_=null,N_=null,P_=-1.1,F_=null,I_=-1.1,L_=-1.1,R_=-0,z_=-1.1,B_=-1.1,V_=0,H_=null,U_=null,W_=null,G_=-1.1,K_=null,q_=-1.1,J_=-1.1,Y_=-0,X_=-0,Z_=0,Q_=null,$_=0,ev=-1.1,tv=!1,nv=!1,rv=null,iv=0,av=0,ov=null,sv=U.S;U.S=function(e,t){if(_x=bp(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>z_&&0>B_){z_=h_();var n=Uu(),r=Hu();(n!==q_||r!==K_)&&(q_=-1.1),G_=n,K_=r}N(e,t)}sv!==null&&sv(e,t)};var cv=T(null),lv={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},uv=[],dv=[],fv=[],pv=[],mv=[],hv=[],gv=new Set;lv.recordUnsafeLifecycleWarnings=function(e,t){gv.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&uv.push(e),e.mode&Lg&&typeof t.UNSAFE_componentWillMount==`function`&&dv.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&fv.push(e),e.mode&Lg&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&pv.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&mv.push(e),e.mode&Lg&&typeof t.UNSAFE_componentWillUpdate==`function`&&hv.push(e))},lv.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<uv.length&&(uv.forEach(function(t){e.add(w(t)||`Component`),gv.add(t.type)}),uv=[]);var t=new Set;0<dv.length&&(dv.forEach(function(e){t.add(w(e)||`Component`),gv.add(e.type)}),dv=[]);var n=new Set;0<fv.length&&(fv.forEach(function(e){n.add(w(e)||`Component`),gv.add(e.type)}),fv=[]);var r=new Set;0<pv.length&&(pv.forEach(function(e){r.add(w(e)||`Component`),gv.add(e.type)}),pv=[]);var i=new Set;0<mv.length&&(mv.forEach(function(e){i.add(w(e)||`Component`),gv.add(e.type)}),mv=[]);var a=new Set;if(0<hv.length&&(hv.forEach(function(e){a.add(w(e)||`Component`),gv.add(e.type)}),hv=[]),0<t.size){var o=m(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.
|
|
189
|
-
|
|
190
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
191
|
-
|
|
192
|
-
Please update the following components: %s`,o)}0<r.size&&(o=m(r),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.
|
|
193
|
-
|
|
194
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
195
|
-
* 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
|
|
196
|
-
|
|
197
|
-
Please update the following components: %s`,o)),0<a.size&&(o=m(a),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.
|
|
198
|
-
|
|
199
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
200
|
-
|
|
201
|
-
Please update the following components: %s`,o)),0<e.size&&(o=m(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
202
|
-
|
|
203
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
204
|
-
* 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.
|
|
205
|
-
|
|
206
|
-
Please update the following components: %s`,o)),0<n.size&&(o=m(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
207
|
-
|
|
208
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
209
|
-
* 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
|
|
210
|
-
* 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.
|
|
211
|
-
|
|
212
|
-
Please update the following components: %s`,o)),0<i.size&&(o=m(i),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
213
|
-
|
|
214
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
215
|
-
* 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.
|
|
216
|
-
|
|
217
|
-
Please update the following components: %s`,o))};var _v=new Map,vv=new Set;lv.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;r!==null;)r.mode&Lg&&(n=r),r=r.return;n===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.`):!vv.has(e.type)&&(r=_v.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==`function`)&&(r===void 0&&(r=[],_v.set(n,r)),r.push(e))},lv.flushLegacyContextWarning=function(){_v.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(e){n.add(w(e)||`Component`),vv.add(e.type)});var r=m(n);D(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
218
|
-
|
|
219
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
220
|
-
|
|
221
|
-
Please update the following components: %s
|
|
222
|
-
|
|
223
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}})},lv.discardPendingWarnings=function(){uv=[],dv=[],fv=[],pv=[],mv=[],hv=[],_v=new Map};var yv={react_stack_bottom_frame:function(e,t,n){var r=mp;mp=!0;try{return e(t,n)}finally{mp=r}}},bv=yv.react_stack_bottom_frame.bind(yv),xv={react_stack_bottom_frame:function(e){var t=mp;mp=!0;try{return e.render()}finally{mp=t}}},Sv=xv.react_stack_bottom_frame.bind(xv),Cv={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){jl(e,e.return,t)}}},wv=Cv.react_stack_bottom_frame.bind(Cv),Tv={react_stack_bottom_frame:function(e,t,n,r,i){try{t.componentDidUpdate(n,r,i)}catch(t){jl(e,e.return,t)}}},Ev=Tv.react_stack_bottom_frame.bind(Tv),Dv={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n===null?``:n})}},Ov=Dv.react_stack_bottom_frame.bind(Dv),kv={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){jl(e,t,n)}}},Av=kv.react_stack_bottom_frame.bind(kv),jv={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Mv=jv.react_stack_bottom_frame.bind(jv),Nv={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){jl(e,t,n)}}},Pv=Nv.react_stack_bottom_frame.bind(Nv),Fv={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},Iv=Fv.react_stack_bottom_frame.bind(Fv),Lv=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`."),Rv=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.`),zv=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."),Bv={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.`)}},Vv=null,Hv=!1,Uv=null,Wv=0,Y=null,Gv,Kv=Gv=!1,qv={},Jv={},Yv={};f=function(e,t,n){if(typeof n==`object`&&n&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._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.`);n._store.validated=1;var r=w(e),i=r||`null`;if(!qv[i]){qv[i]=!0,n=n._owner,e=e._debugOwner;var a=``;e&&typeof e.tag==`number`&&(i=w(e))&&(a=`
|
|
224
|
-
|
|
225
|
-
Check the render method of \``+i+"`."),a||r&&(a=`
|
|
226
|
-
|
|
227
|
-
Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=w(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),D(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.`,a,o)})}}};var Xv=Ji(!0),Zv=Ji(!1),Qv=0,$v=1,ey=2,ty=3,ny=!1,ry=!1,iy=null,ay=!1,oy=T(null),sy=T(0),cy=T(null),ly=null,uy=1,dy=2,fy=T(0),py=0,my=1,hy=2,gy=4,_y=8,vy,yy=new Set,by=new Set,xy=new Set,Sy=new Set,Cy=0,X=null,wy=null,Ty=null,Ey=!1,Dy=!1,Oy=!1,ky=0,Ay=0,jy=null,My=0,Ny=25,Z=null,Py=null,Fy=-1,Iy=!1,Ly={readContext:ri,use:ja,useCallback:va,useContext:va,useEffect:va,useImperativeHandle:va,useLayoutEffect:va,useInsertionEffect:va,useMemo:va,useReducer:va,useRef:va,useState:va,useDebugValue:va,useDeferredValue:va,useTransition:va,useSyncExternalStore:va,useId:va,useHostTransitionStatus:va,useFormState:va,useActionState:va,useOptimistic:va,useMemoCache:va,useCacheRefresh:va};Ly.useEffectEvent=va;var Ry=null,zy=null,By=null,Vy=null,Hy=null,Uy=null,Wy=null;Ry={readContext:function(e){return ri(e)},use:ja,useCallback:function(e,t){return Z=`useCallback`,F(),ga(t),xo(e,t)},useContext:function(e){return Z=`useContext`,F(),ri(e)},useEffect:function(e,t){return Z=`useEffect`,F(),ga(t),mo(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,F(),ga(n),yo(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,F(),ga(t),fo(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,F(),ga(t),vo(e,t)},useMemo:function(e,t){Z=`useMemo`,F(),ga(t);var n=U.H;U.H=Hy;try{return Co(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,F();var r=U.H;U.H=Hy;try{return Pa(e,t,n)}finally{U.H=r}},useRef:function(e){return Z=`useRef`,F(),uo(e)},useState:function(e){Z=`useState`,F();var t=U.H;U.H=Hy;try{return Ka(e)}finally{U.H=t}},useDebugValue:function(){Z=`useDebugValue`,F()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,F(),To(e,t)},useTransition:function(){return Z=`useTransition`,F(),Po()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,F(),Ra(e,t,n)},useId:function(){return Z=`useId`,F(),Lo()},useFormState:function(e,t){return Z=`useFormState`,F(),_a(),io(e,t)},useActionState:function(e,t){return Z=`useActionState`,F(),io(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,F(),qa(e)},useHostTransitionStatus:Io,useMemoCache:Ma,useCacheRefresh:function(){return Z=`useCacheRefresh`,F(),Ro()},useEffectEvent:function(e){return Z=`useEffectEvent`,F(),go(e)}},zy={readContext:function(e){return ri(e)},use:ja,useCallback:function(e,t){return Z=`useCallback`,I(),xo(e,t)},useContext:function(e){return Z=`useContext`,I(),ri(e)},useEffect:function(e,t){return Z=`useEffect`,I(),mo(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,I(),yo(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,I(),fo(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,I(),vo(e,t)},useMemo:function(e,t){Z=`useMemo`,I();var n=U.H;U.H=Hy;try{return Co(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,I();var r=U.H;U.H=Hy;try{return Pa(e,t,n)}finally{U.H=r}},useRef:function(e){return Z=`useRef`,I(),uo(e)},useState:function(e){Z=`useState`,I();var t=U.H;U.H=Hy;try{return Ka(e)}finally{U.H=t}},useDebugValue:function(){Z=`useDebugValue`,I()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,I(),To(e,t)},useTransition:function(){return Z=`useTransition`,I(),Po()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,I(),Ra(e,t,n)},useId:function(){return Z=`useId`,I(),Lo()},useActionState:function(e,t){return Z=`useActionState`,I(),io(e,t)},useFormState:function(e,t){return Z=`useFormState`,I(),_a(),io(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,I(),qa(e)},useHostTransitionStatus:Io,useMemoCache:Ma,useCacheRefresh:function(){return Z=`useCacheRefresh`,I(),Ro()},useEffectEvent:function(e){return Z=`useEffectEvent`,I(),go(e)}},By={readContext:function(e){return ri(e)},use:ja,useCallback:function(e,t){return Z=`useCallback`,I(),So(e,t)},useContext:function(e){return Z=`useContext`,I(),ri(e)},useEffect:function(e,t){Z=`useEffect`,I(),po(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,I(),bo(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,I(),po(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,I(),po(4,gy,e,t)},useMemo:function(e,t){Z=`useMemo`,I();var n=U.H;U.H=Uy;try{return wo(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,I();var r=U.H;U.H=Uy;try{return Fa(e,t,n)}finally{U.H=r}},useRef:function(){return Z=`useRef`,I(),Oa().memoizedState},useState:function(){Z=`useState`,I();var e=U.H;U.H=Uy;try{return Fa(Na)}finally{U.H=e}},useDebugValue:function(){Z=`useDebugValue`,I()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,I(),Eo(e,t)},useTransition:function(){return Z=`useTransition`,I(),z()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,I(),za(e,t,n)},useId:function(){return Z=`useId`,I(),Oa().memoizedState},useFormState:function(e){return Z=`useFormState`,I(),_a(),ao(e)},useActionState:function(e){return Z=`useActionState`,I(),ao(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,I(),Ja(e,t)},useHostTransitionStatus:Io,useMemoCache:Ma,useCacheRefresh:function(){return Z=`useCacheRefresh`,I(),Oa().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,I(),_o(e)}},Vy={readContext:function(e){return ri(e)},use:ja,useCallback:function(e,t){return Z=`useCallback`,I(),So(e,t)},useContext:function(e){return Z=`useContext`,I(),ri(e)},useEffect:function(e,t){Z=`useEffect`,I(),po(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,I(),bo(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,I(),po(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,I(),po(4,gy,e,t)},useMemo:function(e,t){Z=`useMemo`,I();var n=U.H;U.H=Wy;try{return wo(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,I();var r=U.H;U.H=Wy;try{return La(e,t,n)}finally{U.H=r}},useRef:function(){return Z=`useRef`,I(),Oa().memoizedState},useState:function(){Z=`useState`,I();var e=U.H;U.H=Wy;try{return La(Na)}finally{U.H=e}},useDebugValue:function(){Z=`useDebugValue`,I()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,I(),Do(e,t)},useTransition:function(){return Z=`useTransition`,I(),Fo()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,I(),za(e,t,n)},useId:function(){return Z=`useId`,I(),Oa().memoizedState},useFormState:function(e){return Z=`useFormState`,I(),_a(),co(e)},useActionState:function(e){return Z=`useActionState`,I(),co(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,I(),Xa(e,t)},useHostTransitionStatus:Io,useMemoCache:Ma,useCacheRefresh:function(){return Z=`useCacheRefresh`,I(),Oa().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,I(),_o(e)}},Hy={readContext:function(e){return l(),ri(e)},use:function(e){return c(),ja(e)},useCallback:function(e,t){return Z=`useCallback`,c(),F(),xo(e,t)},useContext:function(e){return Z=`useContext`,c(),F(),ri(e)},useEffect:function(e,t){return Z=`useEffect`,c(),F(),mo(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,c(),F(),yo(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,c(),F(),fo(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,c(),F(),vo(e,t)},useMemo:function(e,t){Z=`useMemo`,c(),F();var n=U.H;U.H=Hy;try{return Co(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,c(),F();var r=U.H;U.H=Hy;try{return Pa(e,t,n)}finally{U.H=r}},useRef:function(e){return Z=`useRef`,c(),F(),uo(e)},useState:function(e){Z=`useState`,c(),F();var t=U.H;U.H=Hy;try{return Ka(e)}finally{U.H=t}},useDebugValue:function(){Z=`useDebugValue`,c(),F()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,c(),F(),To(e,t)},useTransition:function(){return Z=`useTransition`,c(),F(),Po()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,c(),F(),Ra(e,t,n)},useId:function(){return Z=`useId`,c(),F(),Lo()},useFormState:function(e,t){return Z=`useFormState`,c(),F(),io(e,t)},useActionState:function(e,t){return Z=`useActionState`,c(),F(),io(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,c(),F(),qa(e)},useMemoCache:function(e){return c(),Ma(e)},useHostTransitionStatus:Io,useCacheRefresh:function(){return Z=`useCacheRefresh`,F(),Ro()},useEffectEvent:function(e){return Z=`useEffectEvent`,c(),F(),go(e)}},Uy={readContext:function(e){return l(),ri(e)},use:function(e){return c(),ja(e)},useCallback:function(e,t){return Z=`useCallback`,c(),I(),So(e,t)},useContext:function(e){return Z=`useContext`,c(),I(),ri(e)},useEffect:function(e,t){Z=`useEffect`,c(),I(),po(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,c(),I(),bo(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,c(),I(),po(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,c(),I(),po(4,gy,e,t)},useMemo:function(e,t){Z=`useMemo`,c(),I();var n=U.H;U.H=Uy;try{return wo(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,c(),I();var r=U.H;U.H=Uy;try{return Fa(e,t,n)}finally{U.H=r}},useRef:function(){return Z=`useRef`,c(),I(),Oa().memoizedState},useState:function(){Z=`useState`,c(),I();var e=U.H;U.H=Uy;try{return Fa(Na)}finally{U.H=e}},useDebugValue:function(){Z=`useDebugValue`,c(),I()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,c(),I(),Eo(e,t)},useTransition:function(){return Z=`useTransition`,c(),I(),z()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,c(),I(),za(e,t,n)},useId:function(){return Z=`useId`,c(),I(),Oa().memoizedState},useFormState:function(e){return Z=`useFormState`,c(),I(),ao(e)},useActionState:function(e){return Z=`useActionState`,c(),I(),ao(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,c(),I(),Ja(e,t)},useMemoCache:function(e){return c(),Ma(e)},useHostTransitionStatus:Io,useCacheRefresh:function(){return Z=`useCacheRefresh`,I(),Oa().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,c(),I(),_o(e)}},Wy={readContext:function(e){return l(),ri(e)},use:function(e){return c(),ja(e)},useCallback:function(e,t){return Z=`useCallback`,c(),I(),So(e,t)},useContext:function(e){return Z=`useContext`,c(),I(),ri(e)},useEffect:function(e,t){Z=`useEffect`,c(),I(),po(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,c(),I(),bo(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,c(),I(),po(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,c(),I(),po(4,gy,e,t)},useMemo:function(e,t){Z=`useMemo`,c(),I();var n=U.H;U.H=Uy;try{return wo(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,c(),I();var r=U.H;U.H=Uy;try{return La(e,t,n)}finally{U.H=r}},useRef:function(){return Z=`useRef`,c(),I(),Oa().memoizedState},useState:function(){Z=`useState`,c(),I();var e=U.H;U.H=Uy;try{return La(Na)}finally{U.H=e}},useDebugValue:function(){Z=`useDebugValue`,c(),I()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,c(),I(),Do(e,t)},useTransition:function(){return Z=`useTransition`,c(),I(),Fo()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,c(),I(),za(e,t,n)},useId:function(){return Z=`useId`,c(),I(),Oa().memoizedState},useFormState:function(e){return Z=`useFormState`,c(),I(),co(e)},useActionState:function(e){return Z=`useActionState`,c(),I(),co(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,c(),I(),Xa(e,t)},useMemoCache:function(e){return c(),Ma(e)},useHostTransitionStatus:Io,useCacheRefresh:function(){return Z=`useCacheRefresh`,I(),Oa().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,c(),I(),_o(e)}};var Gy={},Ky=new Set,qy=new Set,Jy=new Set,Yy=new Set,Xy=new Set,Zy=new Set,Qy=new Set,$y=new Set,eb=new Set,tb=new Set;Object.freeze(Gy);var nb={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Yc(e),i=Qi(r);i.payload=t,n!=null&&(Ko(n),i.callback=n),t=$i(e,i,r),t!==null&&(li(r,`this.setState()`,e),Zc(t,e,r),ea(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Yc(e),i=Qi(r);i.tag=$v,i.payload=t,n!=null&&(Ko(n),i.callback=n),t=$i(e,i,r),t!==null&&(li(r,`this.replaceState()`,e),Zc(t,e,r),ea(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Yc(e),r=Qi(n);r.tag=ey,t!=null&&(Ko(t),r.callback=t),t=$i(e,r,n),t!==null&&(li(n,`this.forceUpdate()`,e),Zc(t,e,n),ea(t,e,n))}},rb=null,ib=null,ab=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.`),ob=!1,sb={},cb={},lb={},ub={},db=!1,fb={},pb={},mb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},hb=!1,gb=null;gb=new Set;var _b=!1,vb=!1,yb=!1,bb=typeof WeakSet==`function`?WeakSet:Set,xb=null,Sb=null,Cb=null,wb=null,Tb=!1,Eb=null,Db=!1,Ob=8192,kb={getCacheForType:function(e){var t=ri(m_),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ri(m_).controller.signal},getOwner:function(){return pp}};if(typeof Symbol==`function`&&Symbol.for){var Ab=Symbol.for;Ab(`selector.component`),Ab(`selector.has_pseudo_class`),Ab(`selector.role`),Ab(`selector.test_id`),Ab(`selector.text`)}var jb=[],Mb=typeof WeakMap==`function`?WeakMap:Map,Nb=0,Pb=2,Fb=4,Ib=0,Lb=1,Rb=2,zb=3,Bb=4,Vb=6,Hb=5,Ub=Nb,Wb=null,Q=null,$=0,Gb=0,Kb=1,qb=2,Jb=3,Yb=4,Xb=5,Zb=6,Qb=7,$b=8,ex=9,tx=Gb,nx=null,rx=!1,ix=!1,ax=!1,ox=0,sx=Ib,cx=0,lx=0,ux=0,dx=0,fx=0,px=null,mx=null,hx=!1,gx=0,_x=0,vx=300,yx=1/0,bx=500,xx=null,Sx=null,Cx=null,wx=0,Tx=1,Ex=2,Dx=3,Ox=0,kx=1,Ax=2,jx=3,Mx=4,Nx=5,Px=0,Fx=null,Ix=null,Lx=0,Rx=0,zx=-0,Bx=null,Vx=null,Hx=null,Ux=wx,Wx=null,Gx=50,Kx=0,qx=null,Jx=!1,Yx=!1,Xx=50,Zx=0,Qx=null,$x=!1,eS=null,tS=!1,nS=new Set,rS={},iS=null,aS=null,oS=!1,sS=!1,cS=!1,lS=!1,uS=0,dS={};(function(){for(var e=0;e<ag.length;e++){var t=ag[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Gn(n,`on`+t)}Gn(Zh,`onAnimationEnd`),Gn(Qh,`onAnimationIteration`),Gn($h,`onAnimationStart`),Gn(`dblclick`,`onDoubleClick`),Gn(`focusin`,`onFocus`),Gn(`focusout`,`onBlur`),Gn(eg,`onTransitionRun`),Gn(tg,`onTransitionStart`),Gn(ng,`onTransitionCancel`),Gn(rg,`onTransitionEnd`)})(),nt(`onMouseEnter`,[`mouseout`,`mouseover`]),nt(`onMouseLeave`,[`mouseout`,`mouseover`]),nt(`onPointerEnter`,[`pointerout`,`pointerover`]),nt(`onPointerLeave`,[`pointerout`,`pointerover`]),tt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),tt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),tt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),tt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),tt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),tt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var fS=`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(` `),pS=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(fS)),mS=`_reactListening`+Math.random().toString(36).slice(2),hS=!1,gS=!1,_S=!1,vS=!1,yS=!1,bS=!1,xS=!1,SS={},CS=/\r\n?/g,wS=/\u0000|\uFFFD/g,TS=`http://www.w3.org/1999/xlink`,ES=`http://www.w3.org/XML/1998/namespace`,DS=`javascript:throw new Error('React form unexpectedly submitted.')`,OS=`suppressHydrationWarning`,kS=`&`,AS=`/&`,jS=`$`,MS=`/$`,NS=`$?`,PS=`$~`,FS=`$!`,IS=`html`,LS=`body`,RS=`head`,zS=`F!`,BS=`F`,VS=`loading`,HS=`style`,US=0,WS=1,GS=2,KS=null,qS=null,JS={dialog:!0,webview:!0},YS=null,XS=void 0,ZS=typeof setTimeout==`function`?setTimeout:void 0,QS=typeof clearTimeout==`function`?clearTimeout:void 0,$S=-1,eC=typeof Promise==`function`?Promise:void 0,tC=typeof queueMicrotask==`function`?queueMicrotask:eC===void 0?ZS:function(e){return eC.resolve(null).then(e).catch(Wu)},nC=null,rC=0,iC=1,aC=2,oC=3,sC=4,cC=new Map,lC=new Set,uC=Kf.d;Kf.d={f:function(){var e=uC.f(),t=nl();return e||t},r:function(e){var t=Qe(e);t!==null&&t.tag===5&&t.type===`form`?No(t):uC.r(e)},D:function(e){uC.D(e),Dd(`dns-prefetch`,e,null)},C:function(e,t){uC.C(e,t),Dd(`preconnect`,e,t)},L:function(e,t,n){uC.L(e,t,n);var r=dC;if(r&&e&&t){var i=`link[rel="preload"][as="`+ht(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+ht(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+ht(n.imageSizes)+`"]`)):i+=`[href="`+ht(e)+`"]`;var a=i;switch(t){case`style`:a=Ad(e);break;case`script`:a=Pd(e)}cC.has(a)||(e=H({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),cC.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jd(a))||t===`script`&&r.querySelector(Fd(a))||(t=r.createElement(`link`),Cu(t,`link`,e),et(t),r.head.appendChild(t)))}},m:function(e,t){uC.m(e,t);var n=dC;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+ht(r)+`"][href="`+ht(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pd(e)}if(!cC.has(a)&&(e=H({rel:`modulepreload`,href:e},t),cC.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Fd(a)))return}r=n.createElement(`link`),Cu(r,`link`,e),et(r),n.head.appendChild(r)}}},X:function(e,t){uC.X(e,t);var n=dC;if(n&&e){var r=k(n).hoistableScripts,i=Pd(e),a=r.get(i);a||(a=n.querySelector(Fd(i)),a||(e=H({src:e,async:!0},t),(t=cC.get(i))&&zd(e,t),a=n.createElement(`script`),et(a),Cu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){uC.S(e,t,n);var r=dC;if(r&&e){var i=k(r).hoistableStyles,a=Ad(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:rC,preload:null};if(o=r.querySelector(jd(a)))s.loading=iC|sC;else{e=H({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=cC.get(a))&&Rd(e,n);var c=o=r.createElement(`link`);et(c),Cu(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=iC}),c.addEventListener(`error`,function(){s.loading|=aC}),s.loading|=sC,Ld(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){uC.M(e,t);var n=dC;if(n&&e){var r=k(n).hoistableScripts,i=Pd(e),a=r.get(i);a||(a=n.querySelector(Fd(i)),a||(e=H({src:e,async:!0,type:`module`},t),(t=cC.get(i))&&zd(e,t),a=n.createElement(`script`),et(a),Cu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}};var dC=typeof document>`u`?null:document,fC=null,pC=6e4,mC=800,hC=500,gC=0,_C=null,vC=null,yC=qf,bC={$$typeof:Ff,Provider:null,Consumer:null,_currentValue:yC,_currentValue2:yC,_threadCount:0},xC=`%c%s%c`,SC=`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`,CC=``,wC=` `,TC=Function.prototype.bind,EC=!1,DC=null,OC=null,kC=null,AC=null,jC=null,MC=null,NC=null,PC=null,FC=null,IC=null;DC=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=H({},e.memoizedProps),i=fr(e,2),i!==null&&Zc(i,e,2))},OC=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=H({},e.memoizedProps),r=fr(e,2),r!==null&&Zc(r,e,2))},kC=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=H({},e.memoizedProps),i=fr(e,2),i!==null&&Zc(i,e,2))},AC=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=fr(e,2),t!==null&&Zc(t,e,2)},jC=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=fr(e,2),t!==null&&Zc(t,e,2)},MC=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=fr(e,2),t!==null&&Zc(t,e,2)},NC=function(e){var t=fr(e,2);t!==null&&Zc(t,e,2)},PC=function(e){var t=Le(),n=fr(e,t);n!==null&&Zc(n,e,t)},FC=function(e){s=e},IC=function(e){o=e};var LC=!0,RC=null,zC=!1,BC=null,VC=null,HC=null,UC=new Map,WC=new Map,GC=[],KC=`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(` `),qC=null;if(Cf.prototype.render=Sf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(`Cannot update an unmounted root.`);var n=arguments;typeof n[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().`):b(n[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.`):n[1]!==void 0&&console.error(`You passed a second argument to root.render(...) but it only accepts one argument.`),n=e;var r=t.current;Qd(r,Yc(r),n,t,null,null)},Cf.prototype.unmount=Sf.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;(Ub&(Pb|Fb))!==Nb&&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.`),Qd(e.current,2,null,e,null,null),nl(),t[Kp]=null}},Cf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Je();e={blockedOn:null,target:e,priority:t};for(var n=0;n<GC.length&&t!==0&&t<GC[n].priority;n++);GC.splice(n,0,e),n===0&&mf(e)}},(function(){var e=Ef.version;if(e!==`19.2.8`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
228
|
-
- react: `+(e+`
|
|
229
|
-
- react-dom: 19.2.8
|
|
230
|
-
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`),Kf.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=ne(t),e=e===null?null:re(e),e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:U,reconcilerVersion:`19.2.8`};return e.overrideHookState=DC,e.overrideHookStateDeletePath=OC,e.overrideHookStateRenamePath=kC,e.overrideProps=AC,e.overridePropsDeletePath=jC,e.overridePropsRenamePath=MC,e.scheduleUpdate=NC,e.scheduleRetry=PC,e.setErrorHandler=FC,e.setSuspenseHandler=IC,e.scheduleRefresh=v,e.scheduleRoot=_,e.setRefreshHandler=y,e.getCurrentFiber=rf,Ae(e)})()&&Qm&&window.top===window.self&&(-1<navigator.userAgent.indexOf(`Chrome`)&&navigator.userAgent.indexOf(`Edge`)===-1||-1<navigator.userAgent.indexOf(`Firefox`))){var JC=window.location.protocol;/^(https?|file):$/.test(JC)&&console.info(`%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools`+(JC===`file:`?`
|
|
231
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:``),`font-weight:bold`)}e.createRoot=function(e,t){if(!b(e))throw Error(`Target container is not a DOM element.`);wf(e);var n=!1,r=``,i=Zo,a=Qo,o=V;return t!=null&&(t.hydrate?console.warn(`hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.`):typeof t==`object`&&t&&t.$$typeof===kf&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
232
|
-
|
|
233
|
-
let root = createRoot(domContainer);
|
|
234
|
-
root.render(<App />);`),!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Xd(e,1,!1,null,null,n,r,null,i,a,o,xf),e[Kp]=t.current,su(e),new Sf(t)},e.hydrateRoot=function(e,t,n){if(!b(e))throw Error(`Target container is not a DOM element.`);wf(e),t===void 0&&console.error(`Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)`);var r=!1,i=``,a=Zo,o=Qo,s=V,c=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=Xd(e,1,!0,t,n??null,r,i,c,a,o,s,xf),t.context=Zd(null),n=t.current,r=Yc(n),r=We(r),i=Qi(r),i.callback=null,$i(n,i,r),li(r,`hydrateRoot()`,null),n=r,t.current.lanes=n,ze(t,n),Wl(t),e[Kp]=t.current,su(e),new Cf(t)},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),_=o(((e,t)=>{t.exports=g()})),v=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},y=new class extends v{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},b={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},x=new class{#e=b;#t=!1;setTimeoutProvider(e){this.#t&&e!==this.#e&&console.error(`[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.`,{previous:this.#e,provider:e}),this.#e=e,this.#t=!1}setTimeout(e,t){return this.#t=!0,this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#t=!0,this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ee(e){setTimeout(e,0)}var te=typeof window>`u`||`Deno`in globalThis;function S(){}function ne(e,t){return typeof e==`function`?e(t):e}function re(e){return typeof e==`number`&&e>=0&&e!==1/0}function ie(e,t){return Math.max(e+(t||0)-Date.now(),0)}function C(e,t){return typeof e==`function`?e(t):e}function ae(e,t){return typeof e==`function`?e(t):e}function w(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==oe(o,t.options))return!1}else if(!se(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function T(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(E(t.options.mutationKey)!==E(a))return!1}else if(!se(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function oe(e,t){return(t?.queryKeyHashFn||E)(e)}function E(e){return JSON.stringify(e,(e,t)=>fe(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function se(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!se(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!se(e[r],t[r]))return!1;return!0}return!1}var ce=Object.prototype.hasOwnProperty;function le(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=de(e)&&de(t);if(!r&&!(fe(e)&&fe(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:ce.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=le(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function ue(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function de(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function fe(e){if(!pe(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!pe(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function pe(e){return Object.prototype.toString.call(e)===`[object Object]`}function me(e){return new Promise(t=>{x.setTimeout(t,e)})}function he(e,t,n){if(typeof n.structuralSharing==`function`)return n.structuralSharing(e,t);if(n.structuralSharing!==!1)try{return le(e,t)}catch(e){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`),e}return t}function ge(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function _e(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ve=Symbol();function ye(e,t){return e.queryFn===ve&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ve?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function be(e,t){return typeof e==`function`?e(...t):!!e}function xe(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Se=(()=>{let e=()=>te;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ce(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var D=ee;function we(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=D,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Te=we(),Ee=new class extends v{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function De(e){return Math.min(1e3*2**e,3e4)}function O(e){return(e??`online`)!==`online`||Ee.isOnline()}var Oe=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function ke(e){let t=!1,n=0,r,i=Ce(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Oe(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>y.isFocused()&&(e.networkMode===`always`||Ee.isOnline())&&e.canRun(),u=()=>O(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Se.isServer()?0:3),o=e.retryDelay??De,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),me(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Ae=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),re(this.gcTime)&&(this.#e=x.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Se.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(x.clearTimeout(this.#e),this.#e=void 0)}};function je(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{xe(e,()=>t.signal,()=>n=!0)},u=ye(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?_e:ge;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Ne:Me,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Me(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Me(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ne(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Pe=class extends Ae{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Le(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Le(this.options);e.data!==void 0&&(this.setState(Ie(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=he(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(S).catch(S):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>ae(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ve||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>C(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ie(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey)||console.error(`As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`);let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ye(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?je(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=ke({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Oe&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Oe){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Fe(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Ie(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Te.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Fe(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:O(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ie(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Le(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Re=class extends v{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Ce(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Be(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ve(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ve(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof ae(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!ue(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&He(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||ae(this.options.enabled,this.#t)!==ae(t.enabled,this.#t)||C(this.options.staleTime,this.#t)!==C(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||ae(this.options.enabled,this.#t)!==ae(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return We(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(S)),t}#g(){this.#b();let e=C(this.options.staleTime,this.#t);if(Se.isServer()||this.#r.isStale||!re(e))return;let t=ie(this.#r.dataUpdatedAt,e)+1;this.#d=x.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(Se.isServer()||ae(this.options.enabled,this.#t)===!1||!re(this.#p)||this.#p===0)&&(this.#f=x.setInterval(()=>{(this.options.refetchIntervalInBackground||y.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(x.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(x.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Be(e,t),o=i&&He(e,n,t,r);(a||o)&&(l={...l,...Fe(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=he(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=he(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Ue(e,t),refetch:this.refetch,promise:this.#o,isEnabled:ae(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{let e=this.#o=x.promise=Ce();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a()}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!ue(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){Te.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function ze(e,t){return ae(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||ae(t.retryOnMount,e)!==!1)}function Be(e,t){return ze(e,t)||e.state.data!==void 0&&Ve(e,t,t.refetchOnMount)}function Ve(e,t,n){if(ae(t.enabled,e)!==!1&&C(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Ue(e,t)}return!1}function He(e,t,n,r){return(e!==t||ae(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Ue(e,n)}function Ue(e,t){return ae(t.enabled,e)!==!1&&e.isStaleByTime(C(t.staleTime,e))}function We(e,t){return!ue(e.getCurrentResult(),t)}var Ge=class extends Ae{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ke(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=ke({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Te.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ke(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var qe=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Ge({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Je(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Je(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Je(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Je(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Te.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>T(t,e))}findAll(e={}){return this.getAll().filter(t=>T(e,t))}notify(e){Te.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Te.batch(()=>Promise.all(e.map(e=>e.continue().catch(S))))}};function Je(e){return e.options.scope?.id}var Ye=class extends v{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),ue(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&E(t.mutationKey)!==E(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Ke();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){Te.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Xe=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??oe(r,t),a=this.get(i);return a||(a=new Pe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Te.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>w(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>w(e,t)):t}notify(e){Te.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Te.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Te.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ze=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Xe,this.#t=e.mutationCache||new qe,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=y.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ee.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(C(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=ne(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Te.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Te.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Te.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Te.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(S).catch(S)}invalidateQueries(e,t={}){return Te.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Te.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(S)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(S)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(C(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(S).catch(S)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(S).catch(S)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Ee.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(E(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{se(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(E(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{se(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=oe(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ve&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Qe=o((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case S:return`Suspense`;case ne:return`SuspenseList`;case C: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 _:return`Portal`;case ee:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case te:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case re:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case ie:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===ie)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=w.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(T.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){se||(se=!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)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return ce[e]||(ce[e]=!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.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,n,i,o,l,d){var f=n.children;if(f!==void 0){if(o){if(oe(f)){for(o=0;o<f.length;o++)p(f[o]);Object.freeze&&Object.freeze(f)}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 p(f)}if(T.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,de[f+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
235
|
-
let props = %s;
|
|
236
|
-
<%s {...props} />
|
|
237
|
-
React keys must be passed directly to JSX without using spread:
|
|
238
|
-
let props = %s;
|
|
239
|
-
<%s key={someKey} {...props} />`,o,f,m,f),de[f+o]=!0)}if(f=null,i!==void 0&&(r(i),f=``+i),s(n)&&(r(n.key),f=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return f&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,f,i,a(),l,d)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===ie&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=d(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),ee=Symbol.for(`react.context`),te=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),ie=Symbol.for(`react.lazy`),C=Symbol.for(`react.activity`),ae=Symbol.for(`react.client.reference`),w=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,oe=Array.isArray,E=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var se,ce={},le=h.react_stack_bottom_frame.bind(h,o)(),ue=E(i(o)),de={};e.Fragment=v,e.jsx=function(e,t,n){var r=1e4>w.recentlyCreatedOwnerStacks++;return f(e,t,n,!1,r?Error(`react-stack-top-frame`):le,r?E(i(e)):ue)},e.jsxs=function(e,t,n){var r=1e4>w.recentlyCreatedOwnerStacks++;return f(e,t,n,!0,r?Error(`react-stack-top-frame`):le,r?E(i(e)):ue)}})()})),$e=o(((e,t)=>{t.exports=Qe()})),k=l(d(),1),et=$e(),tt=k.createContext(void 0),nt=e=>{let t=k.useContext(tt);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},rt=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,et.jsx)(tt.Provider,{value:e,children:t})),it=k.createContext(!1),at=()=>k.useContext(it);it.Provider;function ot(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var st=k.createContext(ot()),ct=()=>k.useContext(st),lt=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?be(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ut=e=>{k.useEffect(()=>{e.clearReset()},[e])},dt=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||be(n,[e.error,r])),ft=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},pt=(e,t)=>e.isLoading&&e.isFetching&&!t,mt=(e,t)=>e?.suspense&&t.isPending,ht=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function gt(e,t,n){if(typeof e!=`object`||Array.isArray(e))throw Error(`Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object`);let r=at(),i=ct(),a=nt(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o.queryFn||console.error(`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`);let c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,ft(o),lt(o,i,s),ut(i);let l=!a.getQueryCache().get(o.queryHash),[u]=k.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(k.useSyncExternalStore(k.useCallback(e=>{let t=f?u.subscribe(Te.batchCalls(e)):S;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),k.useEffect(()=>{u.setOptions(o)},[o,u]),mt(o,d))throw ht(o,u,i);if(dt({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!Se.isServer()&&pt(d,r)&&(l?ht(o,u,i):s?.promise)?.catch(S).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function _t(e,t){return gt(e,Re,t)}function vt(e,t){let n=nt(t),[r]=k.useState(()=>new Ye(n,e));k.useEffect(()=>{r.setOptions(e)},[r,e]);let i=k.useSyncExternalStore(k.useCallback(e=>r.subscribe(Te.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=k.useCallback((e,t)=>{r.mutate(e,t).catch(S)},[r]);if(i.error&&be(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var yt=_();function bt(e){let t=e.split(/[^A-Za-z0-9]+/).filter(e=>e.length>0);return t.length===0?`??`:t.length===1?t[0].slice(0,2).toUpperCase():`${t[0][0]}${t[1][0]}`.toUpperCase()}function xt(e){if(e.state!==`ok`)return e.problem??`Unavailable`;let t=e.counts,n=(t?.[`in-progress`]??0)+(t?.planning??0),r=e.attention?.awaitingDecision??0,i=e.attention?.openReviewComments??0,a=[n>0?`${n} in flight`:``,r>0?`${r} awaiting you`:``,i>0?`${i} open comment${i===1?``:`s`}`:``].filter(e=>e.length>0);return a.length>0?a.join(` · `):`Nothing in flight`}function St(e){if(!e)return;let t=Date.parse(e);if(Number.isNaN(t))return;let n=Math.max(0,Math.round((Date.now()-t)/1e3));if(n<60)return`just now`;let r=Math.round(n/60);if(r<60)return`${r}m ago`;let i=Math.round(r/60);if(i<24)return`${i}h ago`;let a=Math.round(i/24);if(a<30)return`${a}d ago`;let o=Math.round(a/30);return o<12?`${o}mo ago`:`${Math.round(o/12)}y ago`}var Ct=o((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case S:return`Suspense`;case ne:return`SuspenseList`;case C: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 _:return`Portal`;case ee:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case te:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case re:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case ie:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===ie)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=w.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(T.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){se||(se=!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)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return ce[e]||(ce[e]=!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.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,n,i,o,l,d){var f=n.children;if(f!==void 0){if(o){if(oe(f)){for(o=0;o<f.length;o++)p(f[o]);Object.freeze&&Object.freeze(f)}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 p(f)}if(T.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,de[f+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
240
|
-
let props = %s;
|
|
241
|
-
<%s {...props} />
|
|
242
|
-
React keys must be passed directly to JSX without using spread:
|
|
243
|
-
let props = %s;
|
|
244
|
-
<%s key={someKey} {...props} />`,o,f,m,f),de[f+o]=!0)}if(f=null,i!==void 0&&(r(i),f=``+i),s(n)&&(r(n.key),f=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return f&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,f,i,a(),l,d)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===ie&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=d(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),ee=Symbol.for(`react.context`),te=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),ie=Symbol.for(`react.lazy`),C=Symbol.for(`react.activity`),ae=Symbol.for(`react.client.reference`),w=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,oe=Array.isArray,E=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var se,ce={},le=h.react_stack_bottom_frame.bind(h,o)(),ue=E(i(o)),de={};e.Fragment=v,e.jsxDEV=function(e,t,n,r){var a=1e4>w.recentlyCreatedOwnerStacks++;return f(e,t,n,r,a?Error(`react-stack-top-frame`):le,a?E(i(e)):ue)}})()})),wt=o(((e,t)=>{t.exports=Ct()})),A=wt(),Tt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/shell/Rail.tsx`;function Et(e){return[{key:`sessions`,label:`Sessions`,route:{name:`sessions`,projectId:e},icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`rect`,{x:`3`,y:`3.5`,width:`14`,height:`13`,rx:`2.5`},void 0,!1,{fileName:Tt,lineNumber:35,columnNumber:9},this),(0,A.jsxDEV)(`path`,{d:`M6.5 8h7M6.5 11.5h4.5`},void 0,!1,{fileName:Tt,lineNumber:36,columnNumber:9},this)]},void 0,!0,{fileName:Tt,lineNumber:34,columnNumber:7},this)},{key:`reviews`,label:`Reviews`,route:{name:`reviews`,projectId:e},icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`path`,{d:`M3.5 4.5h13v9h-7.5L6 16.5v-3H3.5z`},void 0,!1,{fileName:Tt,lineNumber:46,columnNumber:9},this),(0,A.jsxDEV)(`path`,{d:`M7 8h6M7 10.75h3.5`},void 0,!1,{fileName:Tt,lineNumber:47,columnNumber:9},this)]},void 0,!0,{fileName:Tt,lineNumber:45,columnNumber:7},this)},{key:`packages`,label:`Packages`,route:{name:`packages`,projectId:e},icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`path`,{d:`M10 2.8 16.5 6v8L10 17.2 3.5 14V6z`},void 0,!1,{fileName:Tt,lineNumber:57,columnNumber:9},this),(0,A.jsxDEV)(`path`,{d:`M3.5 6 10 9.4 16.5 6M10 9.4v7.8`},void 0,!1,{fileName:Tt,lineNumber:58,columnNumber:9},this)]},void 0,!0,{fileName:Tt,lineNumber:56,columnNumber:7},this)},{key:`settings`,label:`Settings`,route:{name:`settings`,projectId:e},icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`circle`,{cx:`10`,cy:`10`,r:`2.6`},void 0,!1,{fileName:Tt,lineNumber:68,columnNumber:9},this),(0,A.jsxDEV)(`path`,{d:`M10 2.6v2M10 15.4v2M2.6 10h2M15.4 10h2M4.8 4.8l1.4 1.4M13.8 13.8l1.4 1.4M15.2 4.8l-1.4 1.4M6.2 13.8l-1.4 1.4`},void 0,!1,{fileName:Tt,lineNumber:69,columnNumber:9},this)]},void 0,!0,{fileName:Tt,lineNumber:67,columnNumber:7},this)}]}function Dt({route:e,projectId:t,card:n,onNavigate:r,onOpenPalette:i,onOpenHub:a,onSwitchProject:o,live:s}){let c=n?.name??`Project`;return(0,A.jsxDEV)(`nav`,{className:`rail`,"aria-label":`Primary`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`rail__hub`,onClick:a,title:`All projects (⇧⌘H)`,children:[(0,A.jsxDEV)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`path`,{d:`M12 3.2 20 7.6v8.8L12 20.8 4 16.4V7.6z`},void 0,!1,{fileName:Tt,lineNumber:100,columnNumber:11},this),(0,A.jsxDEV)(`path`,{d:`M12 8.4v7.2`},void 0,!1,{fileName:Tt,lineNumber:101,columnNumber:11},this)]},void 0,!0,{fileName:Tt,lineNumber:99,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`visually-hidden`,children:`All projects`},void 0,!1,{fileName:Tt,lineNumber:103,columnNumber:9},this)]},void 0,!0,{fileName:Tt,lineNumber:98,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`rail__project rail__project--${n?.color??`indigo`}`,onClick:o,title:`${c}${n?` — ${n.directory}`:``}\nSwitch project (⌘P)`,children:[(0,A.jsxDEV)(`span`,{className:`rail__monogram`,children:bt(c)},void 0,!1,{fileName:Tt,lineNumber:112,columnNumber:9},this),(0,A.jsxDEV)(`svg`,{className:`rail__chevron`,viewBox:`0 0 12 12`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M3 4.5 6 7.5 9 4.5`},void 0,!1,{fileName:Tt,lineNumber:114,columnNumber:11},this)},void 0,!1,{fileName:Tt,lineNumber:113,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`visually-hidden`,children:[`Switch project — currently `,c]},void 0,!0,{fileName:Tt,lineNumber:116,columnNumber:9},this)]},void 0,!0,{fileName:Tt,lineNumber:106,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`rail__items`,children:Et(t).map(t=>{let n=t.route.name===e.name||t.key===`reviews`&&e.name===`review`||t.key===`sessions`&&e.name===`session`;return(0,A.jsxDEV)(`button`,{type:`button`,className:`rail__item${n?` is-active`:``}`,onClick:()=>r(t.route),title:t.label,"aria-current":n?`page`:void 0,children:[t.icon,(0,A.jsxDEV)(`span`,{className:`visually-hidden`,children:t.label},void 0,!1,{fileName:Tt,lineNumber:137,columnNumber:15},this)]},t.key,!0,{fileName:Tt,lineNumber:128,columnNumber:13},this)})},void 0,!1,{fileName:Tt,lineNumber:119,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`rail__foot`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`rail__item`,onClick:i,title:`Command palette (⌘K)`,children:[(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`rect`,{x:`3`,y:`4.5`,width:`14`,height:`11`,rx:`2.5`},void 0,!1,{fileName:Tt,lineNumber:146,columnNumber:13},this),(0,A.jsxDEV)(`path`,{d:`M6.5 9 8.6 11 6.5 13M11 13h3`},void 0,!1,{fileName:Tt,lineNumber:147,columnNumber:13},this)]},void 0,!0,{fileName:Tt,lineNumber:145,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`visually-hidden`,children:`Command palette`},void 0,!1,{fileName:Tt,lineNumber:149,columnNumber:11},this)]},void 0,!0,{fileName:Tt,lineNumber:144,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`rail__live rail__live--${s}`,title:s===`live`?`Live — watching for changes`:s===`connecting`?`Connecting…`:`Disconnected — retrying`},void 0,!1,{fileName:Tt,lineNumber:151,columnNumber:9},this)]},void 0,!0,{fileName:Tt,lineNumber:143,columnNumber:7},this)]},void 0,!0,{fileName:Tt,lineNumber:97,columnNumber:5},this)}var Ot=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/SelectCheckbox.tsx`;function kt({checked:e,label:t,disabled:n,onChange:r}){return(0,A.jsxDEV)(`input`,{type:`checkbox`,className:`select-box`,"aria-label":t,checked:e,disabled:n,onClick:e=>e.stopPropagation(),onChange:e=>{let t=e.nativeEvent;r(e.target.checked,{range:t.shiftKey===!0})}},void 0,!1,{fileName:Ot,lineNumber:20,columnNumber:5},this)}function At({state:e,label:t,disabled:n,onChange:r}){let i=(0,k.useRef)(null);return(0,k.useEffect)(()=>{i.current&&(i.current.indeterminate=e===`some`)},[e]),(0,A.jsxDEV)(`input`,{ref:i,type:`checkbox`,className:`select-box`,"aria-label":t,"aria-checked":e===`some`?`mixed`:e===`all`,checked:e===`all`,disabled:n,onClick:e=>e.stopPropagation(),onChange:()=>r(e!==`all`)},void 0,!1,{fileName:Ot,lineNumber:55,columnNumber:5},this)}var jt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/StatusGlyph.tsx`;function Mt({status:e,kind:t=`plan`,size:n=10}){return(0,A.jsxDEV)(`span`,{className:`glyph glyph--${e}${t===`review`?` glyph--kind-review`:``}`,style:{width:n,height:n},"aria-hidden":`true`,children:[(e===`in-progress`||e===`planning`)&&(0,A.jsxDEV)(`span`,{className:`glyph__pulse`},void 0,!1,{fileName:jt,lineNumber:41,columnNumber:63},this),e===`review`&&(0,A.jsxDEV)(`span`,{className:`glyph__ring`},void 0,!1,{fileName:jt,lineNumber:42,columnNumber:31},this),e===`executed`&&(0,A.jsxDEV)(`svg`,{className:`glyph__check`,viewBox:`0 0 10 10`,focusable:`false`,children:(0,A.jsxDEV)(`path`,{d:`M2.2 5.2 4.1 7 7.8 3.2`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:jt,lineNumber:45,columnNumber:11},this)},void 0,!1,{fileName:jt,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:jt,lineNumber:36,columnNumber:5},this)}var Nt=[`reviewing`,`triage`,`fixes`,`done`],Pt={reviewing:`Reviewing`,triage:`Triage`,fixes:`Fixes`,done:`Done`};function Ft(e,t){return e.kind===`review`?Lt(e.status,t):It(e.status)}function It(e){switch(e){case`draft`:return{label:`Draft`,holder:`you`,hint:`No plan yet — paste the execute line to have an agent write one.`,action:{kind:`copy-execute`}};case`planning`:return{label:`Planning`,holder:`agent`,hint:`An agent is reading the task and writing the plan.`,action:{kind:`none`}};case`planned`:return{label:`Planned`,holder:`you`,hint:`A plan is written and waiting for your go-ahead.`,action:{kind:`write-plan`}};case`in-progress`:return{label:`Building`,holder:`agent`,hint:`An agent is implementing this plan.`,action:{kind:`none`}};case`executed`:return{label:`Done`,holder:`you`,hint:`The work is finished — this is the moment a review is worth asking for.`,action:{kind:`request-review`}};default:return{label:`Review`,holder:`you`,hint:`This plan session claims the review status, which only a review session may hold.`,action:{kind:`none`}}}}function Lt(e,t){let n=t?.counts,r=t?.status===`published`;switch(e){case`draft`:return{label:`Awaiting reviewer`,holder:`agent`,hint:`Paste the execute line into a NEW conversation — a fresh agent has not seen the plan.`,action:{kind:`copy-execute`},step:`reviewing`};case`planning`:return{label:`Reviewing`,holder:`agent`,hint:`An agent is reading the diff and writing the review document.`,action:{kind:`none`},step:`reviewing`};case`in-progress`:return{label:`Fixing`,holder:`agent`,hint:`An agent is implementing the comments you staged.`,action:{kind:`none`},step:`fixes`};case`review`:return n&&n.open===0?{label:`Triaged`,holder:`you`,hint:`Every comment is decided — plan the changes, or publish them to GitLab.`,action:{kind:`triage`,openCount:0},step:`triage`}:{label:n?`Triage · ${n.open}`:`Triage`,holder:`you`,hint:n?`${n.open} of ${n.total} comment(s) still need a decision.`:`Every comment is waiting for a decision.`,action:{kind:`triage`,openCount:n?.open??0},step:`triage`};case`planned`:return{label:`Fixes planned`,holder:`you`,hint:`The comments you staged are written into the Plan — paste the execute line to implement them.`,action:{kind:`copy-execute`},step:`fixes`};case`executed`:return r?{label:`Published`,holder:`you`,hint:`The staged comments are on the merge request — nothing left to implement here.`,action:{kind:`none`},step:`done`}:n&&n.staged===0&&n.total>0?{label:`Closed`,holder:`you`,hint:`Every comment was discarded, so there was nothing to implement.`,action:{kind:`none`},step:`done`}:{label:`Fixed`,holder:`you`,hint:`The staged comments have been implemented.`,action:{kind:`none`},step:`done`};default:return{label:`Review`,holder:`you`,hint:`Unknown review stage.`,action:{kind:`none`},step:`reviewing`}}}function Rt(e,t){let n=Nt.indexOf(e),r=Nt.indexOf(t);return n===r?0:n<r?-1:1}var zt=[`in-progress`,`planning`,`review`,`draft`,`planned`,`executed`],Bt={"in-progress":`Building`,planning:`Planning`,review:`Review`,draft:`Draft`,planned:`Planned`,executed:`Done`},Vt=zt.filter(e=>e!==`review`),Ht="`Review` is set by writing a review, and cleared by planning its changes or publishing them.",Ut=[`blocker`,`major`,`minor`,`nit`,`praise`],Wt={blocker:`Blocker`,major:`Major`,minor:`Minor`,nit:`Nit`,praise:`Praise`},Gt=[`correctness`,`security`,`performance`,`architecture`,`test`,`docs`,`style`],Kt=[`agents`,`skills`,`commands`,`rules`,`contexts`,`instructions`],qt=[`claude`,`codex`,`cursor`,`aider`,`copilot`],Jt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/StatusPill.tsx`;function Yt({status:e,kind:t=`plan`,review:n,onChange:r,onTriage:i,disabled:a}){let[o,s]=(0,k.useState)(!1),c=(0,k.useRef)(null);(0,k.useEffect)(()=>{if(!o)return;let e=e=>{c.current?.contains(e.target)||s(!1)},t=e=>{e.key===`Escape`&&s(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[o]);let l=Ft({kind:t,status:e},n),u=`pill pill--${e}${t===`review`?` pill--kind-review`:``}`;if(e===`review`&&i)return(0,A.jsxDEV)(`button`,{type:`button`,className:`${u} pill--interactive`,onClick:i,disabled:a,title:l.hint,children:[(0,A.jsxDEV)(Mt,{status:e,kind:t},void 0,!1,{fileName:Jt,lineNumber:69,columnNumber:9},this),l.label]},void 0,!0,{fileName:Jt,lineNumber:62,columnNumber:7},this);if(!r)return(0,A.jsxDEV)(`span`,{className:u,title:l.hint,children:[(0,A.jsxDEV)(Mt,{status:e,kind:t},void 0,!1,{fileName:Jt,lineNumber:78,columnNumber:9},this),l.label]},void 0,!0,{fileName:Jt,lineNumber:77,columnNumber:7},this);let d=t===`review`?zt:Vt;return(0,A.jsxDEV)(`div`,{className:`pill-menu`,ref:c,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`${u} pill--interactive`,onClick:()=>s(e=>!e),disabled:a,title:l.hint,"aria-haspopup":`menu`,"aria-expanded":o,children:[(0,A.jsxDEV)(Mt,{status:e,kind:t},void 0,!1,{fileName:Jt,lineNumber:99,columnNumber:9},this),l.label,(0,A.jsxDEV)(`svg`,{className:`pill__caret`,viewBox:`0 0 10 10`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M2.5 4 5 6.5 7.5 4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:Jt,lineNumber:102,columnNumber:11},this)},void 0,!1,{fileName:Jt,lineNumber:101,columnNumber:9},this)]},void 0,!0,{fileName:Jt,lineNumber:90,columnNumber:7},this),o&&(0,A.jsxDEV)(`div`,{className:`pill-menu__list`,role:`menu`,children:[d.map(i=>{let a=i===`review`,o=Ft({kind:t,status:i},n).label;return(0,A.jsxDEV)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":i===e,"aria-disabled":a||void 0,title:a?"`Review` is set by writing a review, and cleared by planning its changes or publishing them.":void 0,className:`pill-menu__item${i===e?` is-active`:``}${a?` is-locked`:``}`,onClick:()=>{a||(s(!1),i!==e&&r(i))},children:[(0,A.jsxDEV)(Mt,{status:i,kind:t},void 0,!1,{fileName:Jt,lineNumber:129,columnNumber:17},this),o,a&&(0,A.jsxDEV)(`span`,{className:`pill-menu__lock`,"aria-hidden":`true`,title:"`Review` is set by writing a review, and cleared by planning its changes or publishing them.",children:`🔒`},void 0,!1,{fileName:Jt,lineNumber:132,columnNumber:19},this)]},i,!0,{fileName:Jt,lineNumber:113,columnNumber:15},this)}),t===`review`&&(0,A.jsxDEV)(`p`,{className:`pill-menu__note`,children:"`Review` is set by writing a review, and cleared by planning its changes or publishing them."},void 0,!1,{fileName:Jt,lineNumber:140,columnNumber:33},this)]},void 0,!0,{fileName:Jt,lineNumber:108,columnNumber:9},this)]},void 0,!0,{fileName:Jt,lineNumber:89,columnNumber:5},this)}var Xt=[[60,1,`s`],[3600,60,`m`],[86400,3600,`h`],[2592e3,86400,`d`]];function Zt(e){let t=new Date(e).getTime();if(Number.isNaN(t))return`—`;let n=Math.max(0,Math.round((Date.now()-t)/1e3));if(n<10)return`just now`;for(let[e,t,r]of Xt)if(n<e)return`${Math.floor(n/t)}${r} ago`;return new Date(t).toLocaleDateString(void 0,{month:`short`,day:`numeric`})}function Qt(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString()}function $t(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function en(e,t){if(t.length===0)return 0;let n=e.toLowerCase(),r=t.toLowerCase(),i=0,a=0,o=0;for(let e of r){let t=n.indexOf(e,a);if(t===-1)return null;o=t===a?o+1:0,i+=10+o*6,(t===0||/[\s\-_/.]/.test(n[t-1]))&&(i+=8),i-=Math.min(t-a,12),a=t+1}return i-n.length*.05}async function tn(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function nn(e,t=46){if(e.length<=t)return e;let n=e.split(`/`),r=[],i=1;for(let e=n.length-1;e>=0;--e){let a=i+n[e].length+1;if(a>t&&r.length>0)break;r.unshift(n[e]),i=a}return`…/${r.join(`/`)}`}var rn=[`.xml`,`.md`];function an(e){let t=e.split(`/`).pop()??e,n=rn.find(e=>t.toLowerCase().endsWith(e));return n?t.slice(0,-n.length):t}function on(e,t,n){return e.filter(e=>(t===`all`||e.status===t)&&(n===`all`||e.severity===n))}function sn(e,t){let n=e.findIndex(e=>e.id===t);return(n===-1?e:[...e.slice(n+1),...e.slice(0,n)]).find(e=>e.id!==t&&e.status===`open`)}function cn(e,t){let n={},r=t.title.trim();return r!==e.title&&(n.title=r),t.body!==e.body&&(n.body=t.body),t.severity!==e.severity&&(n.severity=t.severity),t.category!==e.category&&(n.category=t.category),n}function ln(e){if(e.total===0)return{kind:`empty`,label:`This review has no comments.`};if(e.open>0)return{kind:`blocked`,openCount:e.open,label:`${e.open} still need${e.open===1?`s`:``} a decision`};let t=`Ready · ${e.staged} staged · ${e.discarded} discarded`;return e.staged===0?{kind:`ready`,action:`close`,label:t}:{kind:`ready`,action:`plan`,label:t}}function un(e,t,n,r){if(!(e===`none`||!t))return`${e}://file/${t}/${n}:${r??1}`}function dn(e,t){if(e.reviewFile){let n=an(e.reviewFile),r=t.find(e=>e.slug===n);if(r)return r}return t.find(t=>t.sessionId===e.id)}function fn(e,t){return dn(e,t)?.counts}function pn(e,t=[]){let n=new Map;for(let r of e)n.set(r.id,{session:r,review:dn(r,t),children:[],contextOnly:!1});let r=[],i=[],a=[];for(let t of e){let e=n.get(t.id);if(t.kind!==`review`){r.push(e);continue}if(!t.parent){i.push(e);continue}let o=n.get(t.parent);if(o){o.children.push(e);continue}a.push(e)}return{roots:r,standalone:i,orphaned:a}}function mn(e,t){let n=e=>{let n=e.children.filter(e=>t.has(e.session.id)),r=t.has(e.session.id);if(!(!r&&n.length===0))return{...e,contextOnly:!r,children:r?e.children:n}};return{roots:e.roots.map(n).filter(hn),standalone:e.standalone.map(n).filter(hn),orphaned:e.orphaned.map(n).filter(hn)}}function hn(e){return e!==void 0}function gn(e,t){let n=[];for(let r of e.roots){let e=r.children.length,i=e>0,a=i&&!t.has(r.session.id);if(n.push({kind:`session`,node:r,depth:0,hasChildren:i,expanded:a,childCount:e}),a)for(let e of r.children)n.push({kind:`session`,node:e,depth:1,hasChildren:!1,expanded:!1,childCount:0})}for(let t of[{id:`standalone`,nodes:e.standalone},{id:`orphaned`,nodes:e.orphaned}])if(t.nodes.length!==0){n.push({kind:`group`,id:t.id,count:t.nodes.length});for(let e of t.nodes)n.push({kind:`session`,node:e,depth:1,hasChildren:!1,expanded:!1,childCount:0})}return n}var _n=new Set;function vn(e,t,n,r){let i=pn(e,n);return t?gn(mn(i,t),_n):gn(i,r)}function yn(e){return e.filter(e=>e.kind===`session`).map(e=>e.node.session)}var bn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/SessionTree.tsx`;function xn({sessions:e,allSessions:t,reviews:n,focusedId:r,onFocus:i,onOpen:a,onStatusChange:o,filter:s,collapsed:c,onToggleCollapsed:l,selection:u}){let d=(0,k.useRef)(null),f=s.trim().length>0,p=(0,k.useMemo)(()=>f?new Set(e.map(e=>e.id)):void 0,[f,e]),m=(0,k.useMemo)(()=>vn(t,p,n,c),[t,p,n,c]);(0,k.useEffect)(()=>{d.current?.scrollIntoView({block:`nearest`})},[r]);let h=(0,k.useCallback)(e=>l(e),[l]),g=(0,k.useMemo)(()=>{let e=pn(t,n);return new Set(e.roots.filter(e=>e.children.length>0).map(e=>e.session.id))},[t,n]);return(0,k.useEffect)(()=>{let e=e=>{if(!r||!g.has(r))return;let t=e.target;if(t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`)||e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)return;let n=!c.has(r);(e.key===`ArrowRight`&&!n||e.key===`ArrowLeft`&&n)&&(e.preventDefault(),h(r))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[r,g,c,h]),m.length===0?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Nothing matches this filter.`},void 0,!1,{fileName:bn,lineNumber:104,columnNumber:12},this):(0,A.jsxDEV)(`div`,{className:`list${u.count>0?` is-selecting`:``}`,children:(0,A.jsxDEV)(`table`,{className:`list__table tree`,role:`treegrid`,"aria-label":`Sessions and their reviews`,children:[(0,A.jsxDEV)(`thead`,{children:(0,A.jsxDEV)(`tr`,{children:[(0,A.jsxDEV)(`th`,{scope:`col`,className:`list__select`,children:(0,A.jsxDEV)(At,{state:u.headerState,label:`Select every session on screen`,onChange:e=>e?u.selectAll():u.clear()},void 0,!1,{fileName:bn,lineNumber:113,columnNumber:15},this)},void 0,!1,{fileName:bn,lineNumber:112,columnNumber:13},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Session`},void 0,!1,{fileName:bn,lineNumber:119,columnNumber:13},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Stage`},void 0,!1,{fileName:bn,lineNumber:120,columnNumber:13},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Updated`},void 0,!1,{fileName:bn,lineNumber:121,columnNumber:13},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Size`},void 0,!1,{fileName:bn,lineNumber:122,columnNumber:13},this)]},void 0,!0,{fileName:bn,lineNumber:111,columnNumber:11},this)},void 0,!1,{fileName:bn,lineNumber:110,columnNumber:9},this),(0,A.jsxDEV)(`tbody`,{children:m.map(e=>{if(e.kind===`group`){let t=e.id===`standalone`;return(0,A.jsxDEV)(`tr`,{className:`tree__group tree__group--${e.id}`,children:(0,A.jsxDEV)(`td`,{colSpan:5,children:[(0,A.jsxDEV)(`span`,{className:`tree__group-title`,children:[t?`Standalone reviews`:`Orphaned reviews`,` (`,e.count,`)`]},void 0,!0,{fileName:bn,lineNumber:132,columnNumber:21},this),(0,A.jsxDEV)(`span`,{className:`tree__group-hint`,children:t?`Reviews of a branch on its own — deliberately tied to no session.`:`The session these reviewed is gone. Open one to link it to another.`},void 0,!1,{fileName:bn,lineNumber:135,columnNumber:21},this)]},void 0,!0,{fileName:bn,lineNumber:131,columnNumber:19},this)},e.id,!1,{fileName:bn,lineNumber:130,columnNumber:17},this)}let{node:t,depth:n,hasChildren:s,expanded:c,childCount:l}=e,f=t.session,p=u.isSelected(f.id),m=f.kind===`review`&&f.status===`executed`;return(0,A.jsxDEV)(`tr`,{ref:f.id===r?d:void 0,role:`row`,"aria-level":n+1,"aria-expanded":s?c:void 0,className:[n===1?`tree__row--child`:`tree__row--root`,f.kind===`review`?`tree__row--review`:``,m?`is-settled`:``,t.contextOnly?`is-context`:``,f.id===r?`is-focused`:``,p?`is-selected`:``].filter(Boolean).join(` `),"aria-selected":p,onClick:()=>{i(f.id),a(f.id)},children:[(0,A.jsxDEV)(`td`,{className:`list__select`,onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)(kt,{checked:p,label:`Select ${f.title}`,onChange:(e,t)=>{i(f.id),u.toggle(f.id,t)}},void 0,!1,{fileName:bn,lineNumber:173,columnNumber:19},this)},void 0,!1,{fileName:bn,lineNumber:172,columnNumber:17},this),(0,A.jsxDEV)(`td`,{children:(0,A.jsxDEV)(`div`,{className:`tree__cell`,children:[n===0?(0,A.jsxDEV)(`button`,{type:`button`,className:`tree__twisty${s?``:` is-empty`}`,"aria-label":c?`Collapse`:`Expand`,tabIndex:s?0:-1,onClick:e=>{e.stopPropagation(),s&&h(f.id)},children:s?c?`▾`:`▸`:``},void 0,!1,{fileName:bn,lineNumber:188,columnNumber:23},this):(0,A.jsxDEV)(`span`,{className:`tree__elbow`,"aria-hidden":`true`,children:`└─`},void 0,!1,{fileName:bn,lineNumber:201,columnNumber:23},this),(0,A.jsxDEV)(`div`,{className:`tree__identity`,children:[(0,A.jsxDEV)(`div`,{className:`list__title`,children:[f.kind===`review`&&(0,A.jsxDEV)(`span`,{className:`tree__kicker`,children:[`Review`,f.branch&&(0,A.jsxDEV)(`span`,{className:`tree__branch`,children:f.branch},void 0,!1,{fileName:bn,lineNumber:209,columnNumber:48},this)]},void 0,!0,{fileName:bn,lineNumber:207,columnNumber:27},this),f.title,s&&!c&&(0,A.jsxDEV)(`span`,{className:`tree__child-count`,title:`Show the reviews of this session`,children:[l,` review`,l===1?``:`s`]},void 0,!0,{fileName:bn,lineNumber:217,columnNumber:27},this)]},void 0,!0,{fileName:bn,lineNumber:205,columnNumber:23},this),f.excerpt.length>0&&!f.excerpt.startsWith(f.title.replace(/…$/,``).trim())&&(0,A.jsxDEV)(`div`,{className:`list__excerpt`,children:f.excerpt},void 0,!1,{fileName:bn,lineNumber:227,columnNumber:27},this)]},void 0,!0,{fileName:bn,lineNumber:204,columnNumber:21},this)]},void 0,!0,{fileName:bn,lineNumber:186,columnNumber:19},this)},void 0,!1,{fileName:bn,lineNumber:185,columnNumber:17},this),(0,A.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)(Yt,{status:f.status,kind:f.kind,review:t.review,onChange:e=>o(f.id,e),onTriage:()=>{i(f.id),a(f.id)}},void 0,!1,{fileName:bn,lineNumber:233,columnNumber:19},this)},void 0,!1,{fileName:bn,lineNumber:232,columnNumber:17},this),(0,A.jsxDEV)(`td`,{className:`list__meta`,title:f.updated,children:Zt(f.updated)},void 0,!1,{fileName:bn,lineNumber:241,columnNumber:17},this),(0,A.jsxDEV)(`td`,{className:`list__meta`,children:$t(f.sizeBytes)},void 0,!1,{fileName:bn,lineNumber:242,columnNumber:17},this)]},f.id,!0,{fileName:bn,lineNumber:153,columnNumber:15},this)})},void 0,!1,{fileName:bn,lineNumber:125,columnNumber:9},this)]},void 0,!0,{fileName:bn,lineNumber:109,columnNumber:7},this)},void 0,!1,{fileName:bn,lineNumber:108,columnNumber:5},this)}var Sn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/BulkBar.tsx`;function Cn({count:e,hiddenCount:t,noun:n,busy:r,onClear:i,children:a}){return(0,A.jsxDEV)(`div`,{className:`bulkbar`,role:`region`,"aria-label":`Bulk actions`,children:[(0,A.jsxDEV)(`div`,{className:`bulkbar__summary`,children:[(0,A.jsxDEV)(`span`,{className:`bulkbar__count`,"aria-live":`polite`,children:[(0,A.jsxDEV)(`strong`,{children:e},void 0,!1,{fileName:Sn,lineNumber:27,columnNumber:11},this),` `,n,e===1?``:`s`,` selected`]},void 0,!0,{fileName:Sn,lineNumber:26,columnNumber:9},this),t>0&&(0,A.jsxDEV)(`span`,{className:`bulkbar__hint`,title:`These stay selected — the filter is only hiding them.`,children:[t,` hidden by filter`]},void 0,!0,{fileName:Sn,lineNumber:31,columnNumber:11},this)]},void 0,!0,{fileName:Sn,lineNumber:25,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`bulkbar__actions`,children:a},void 0,!1,{fileName:Sn,lineNumber:40,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,disabled:r,onClick:i,children:[`Clear `,(0,A.jsxDEV)(`kbd`,{className:`bulkbar__key`,children:`esc`},void 0,!1,{fileName:Sn,lineNumber:43,columnNumber:15},this)]},void 0,!0,{fileName:Sn,lineNumber:42,columnNumber:7},this)]},void 0,!0,{fileName:Sn,lineNumber:24,columnNumber:5},this)}var wn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/ConfirmDialog.tsx`;function Tn({title:e,body:t,confirmLabel:n=`Discard`,cancelLabel:r=`Cancel`,tone:i=`danger`,onConfirm:a,onCancel:o}){let s=(0,k.useRef)(null),c=(0,k.useId)(),l=(0,k.useId)();return(0,k.useEffect)(()=>{s.current?.focus()},[]),(0,A.jsxDEV)(`div`,{className:`modal__confirm`,role:`alertdialog`,"aria-modal":`true`,"aria-labelledby":c,"aria-describedby":l,onKeyDown:e=>{e.key===`Escape`&&(e.stopPropagation(),e.preventDefault(),o())},children:(0,A.jsxDEV)(`div`,{className:`modal__confirm-card`,children:[(0,A.jsxDEV)(`h3`,{id:c,className:`modal__confirm-title`,children:e},void 0,!1,{fileName:wn,lineNumber:60,columnNumber:9},this),(0,A.jsxDEV)(`p`,{id:l,className:`modal__text`,children:t},void 0,!1,{fileName:wn,lineNumber:61,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`modal__confirm-actions`,children:[(0,A.jsxDEV)(`button`,{ref:s,type:`button`,className:`button button--ghost`,onClick:o,children:r},void 0,!1,{fileName:wn,lineNumber:63,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--${i}`,onClick:a,children:n},void 0,!1,{fileName:wn,lineNumber:66,columnNumber:11},this)]},void 0,!0,{fileName:wn,lineNumber:62,columnNumber:9},this)]},void 0,!0,{fileName:wn,lineNumber:59,columnNumber:7},this)},void 0,!1,{fileName:wn,lineNumber:44,columnNumber:5},this)}var En=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Modal.tsx`,Dn=(0,k.createContext)(void 0);function On(){let e=(0,k.useContext)(Dn);if(!e)throw Error(`useModalClose must be used inside a <Modal>`);return e}var kn=`a[href], button, input, select, textarea, [tabindex]`;function An(e){return Array.from(e.querySelectorAll(kn)).filter(e=>e.hasAttribute(`disabled`)||e.getAttribute(`aria-hidden`)===`true`||e.getAttribute(`tabindex`)===`-1`?!1:!(e instanceof HTMLInputElement&&e.type===`hidden`))}function jn(e){let t=e.querySelector(`[data-autofocus]`);if(t)return t;let n=e.querySelector(`.modal__body`);return(n?An(n)[0]:void 0)??e}function Mn({title:e,onClose:t,children:n,footer:r,width:i=560,dirty:a=!1,confirmClose:o,closeOnOverlayClick:s=!0}){let c=(0,k.useRef)(null),[l,u]=(0,k.useState)(!1),d=(0,k.useId)(),f=(0,k.useRef)(t),p=(0,k.useRef)(a),m=(0,k.useRef)(l);(0,k.useEffect)(()=>{f.current=t,p.current=a,m.current=l});let h=(0,k.useRef)(null),g=(0,k.useRef)(!1),_=(0,k.useCallback)(e=>{if(!p.current){f.current();return}e!==`overlay`&&u(!0)},[]);(0,k.useEffect)(()=>{let e=c.current;if(!e)return;let t=document.activeElement instanceof HTMLElement?document.activeElement:null,n=jn(e);n.focus(),h.current=n;let r=e=>{if(e.key===`Escape`){if(e.stopPropagation(),m.current){u(!1);return}_(`escape`)}},i=t=>{let n=t.target instanceof HTMLElement?t.target:null;if(n&&e.contains(n)){n.closest(`.modal__confirm`)||(h.current=n);return}g.current||(t.relatedTarget===null||n===document.body)&&(g.current=!0,(h.current?.isConnected?h.current:jn(e)).focus(),g.current=!1)},a=()=>{document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)||(h.current?.isConnected?h.current:jn(e)).focus()};return document.addEventListener(`keydown`,r),document.addEventListener(`focusin`,i),window.addEventListener(`focus`,a),()=>{document.removeEventListener(`keydown`,r),document.removeEventListener(`focusin`,i),window.removeEventListener(`focus`,a),t?.isConnected&&t.focus()}},[_]);let v=e=>{if(e.key!==`Tab`||!c.current)return;let t=An(c.current);if(t.length===0)return;let n=t[0],r=t[t.length-1],i=document.activeElement;if(e.shiftKey&&(i===n||i===c.current)){e.preventDefault(),r.focus();return}!e.shiftKey&&i===r&&(e.preventDefault(),n.focus())},y=()=>{u(!1),h.current?.isConnected&&h.current.focus()},b=(0,k.useCallback)(()=>_(`button`),[_]);return(0,A.jsxDEV)(Dn.Provider,{value:b,children:(0,A.jsxDEV)(`div`,{className:`overlay`,onMouseDown:e=>{e.target===e.currentTarget&&s&&_(`overlay`)},children:(0,A.jsxDEV)(`div`,{className:`modal`,style:{maxWidth:i},role:`dialog`,"aria-modal":`true`,"aria-labelledby":d,tabIndex:-1,ref:c,onKeyDown:v,children:[(0,A.jsxDEV)(`header`,{className:`modal__header`,children:[(0,A.jsxDEV)(`h2`,{className:`modal__title`,id:d,children:e},void 0,!1,{fileName:En,lineNumber:235,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:b,"aria-label":`Close`,children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 14 14`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M3.5 3.5l7 7M10.5 3.5l-7 7`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`},void 0,!1,{fileName:En,lineNumber:238,columnNumber:17},this)},void 0,!1,{fileName:En,lineNumber:237,columnNumber:15},this)},void 0,!1,{fileName:En,lineNumber:236,columnNumber:13},this)]},void 0,!0,{fileName:En,lineNumber:234,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`modal__body`,children:n},void 0,!1,{fileName:En,lineNumber:242,columnNumber:11},this),r&&(0,A.jsxDEV)(`footer`,{className:`modal__footer`,children:r},void 0,!1,{fileName:En,lineNumber:243,columnNumber:22},this),l&&(0,A.jsxDEV)(Tn,{title:o?.title??`Discard what you typed?`,body:o?.body??`This dialog holds text that has not been submitted. Closing it loses that text.`,confirmLabel:o?.confirmLabel??`Discard`,cancelLabel:o?.cancelLabel??`Keep editing`,onConfirm:()=>{u(!1),f.current()},onCancel:y},void 0,!1,{fileName:En,lineNumber:246,columnNumber:13},this)]},void 0,!0,{fileName:En,lineNumber:224,columnNumber:9},this)},void 0,!1,{fileName:En,lineNumber:216,columnNumber:7},this)},void 0,!1,{fileName:En,lineNumber:215,columnNumber:5},this)}var Nn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Toasts.tsx`,Pn=(0,k.createContext)(()=>void 0);function Fn(){return(0,k.useContext)(Pn)}var In=3400;function Ln({children:e}){let[t,n]=(0,k.useState)([]),r=(0,k.useCallback)((e,t=`info`)=>{let r=Date.now()+Math.random();n(n=>[...n,{id:r,message:e,tone:t}]),setTimeout(()=>n(e=>e.filter(e=>e.id!==r)),In)},[]),i=(0,k.useMemo)(()=>r,[r]);return(0,A.jsxDEV)(Pn.Provider,{value:i,children:[e,(0,A.jsxDEV)(`div`,{className:`toasts`,role:`status`,"aria-live":`polite`,children:t.map(e=>(0,A.jsxDEV)(`div`,{className:`toast toast--${e.tone}`,children:e.message},e.id,!1,{fileName:Nn,lineNumber:35,columnNumber:11},this))},void 0,!1,{fileName:Nn,lineNumber:33,columnNumber:7},this)]},void 0,!0,{fileName:Nn,lineNumber:31,columnNumber:5},this)}function Rn(){if(typeof document>`u`)return``;let e=document.querySelector(`meta[name="invariant-ui-token"]`)?.content??``;return e.startsWith(`__`)?``:e}var zn=Rn(),Bn=class extends Error{status;code;detail;constructor(e,t,n,r={code:t,message:n}){super(n),this.status=e,this.code=t,this.detail=r,this.name=`ApiError`}get isConflict(){return this.status===409&&this.code.endsWith(`CONFLICT`)}get isMergeConflict(){return this.code===`SESSION_MERGE_CONFLICT`}get isNotTriaged(){return this.code===`REVIEW_NOT_TRIAGED`}get transcript(){return this.detail.transcript}get commandLine(){return this.detail.commandLine}get openCount(){return this.detail.openCount??0}};async function Vn(e,t={}){let n=await fetch(e,{...t,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${zn}`,...t.headers??{}}});if(!n.ok){let e=await n.json().catch(()=>void 0);throw new Bn(n.status,e?.error.code??`UNKNOWN`,e?.error.message??`Request failed with ${n.status}.`,e?.error)}if(n.status!==204)return await n.json()}function Hn(e){return{...e,tags:e.tags??[],issues:e.issues??[],reviewSessionIds:e.reviewSessionIds??[]}}function Un(e){let t=(t,n={})=>Vn(`/api/p/${encodeURIComponent(e)}${t.replace(/^\/api/,``)}`,n);return{projectId:e,project:()=>t(`/api/project`),listSessions:async()=>{let e=await t(`/api/sessions`);return{...e,sessions:(e.sessions??[]).map(Hn)}},getSession:async e=>Hn(await t(`/api/sessions/${e}`)),saveSession:async e=>{let n=await t(`/api/sessions/${e.sessionId}`,{method:`PUT`,headers:e.force?{}:{"If-Match":e.etag},body:JSON.stringify({body:e.body,baseBody:e.baseBody,force:e.force===!0})});return{session:Hn(n.session),merged:n.merged}},stashSessionBody:e=>t(`/api/sessions/${e.sessionId}/stash`,{method:`POST`,body:JSON.stringify({body:e.body})}),setStatus:async e=>Hn(await t(`/api/sessions/${e.sessionId}/status`,{method:`PATCH`,body:JSON.stringify({status:e.status,summary:e.summary})})),createSession:async e=>{let n=await t(`/api/sessions`,{method:`POST`,body:JSON.stringify(e)});return{...n,session:Hn(n.session)}},linkReviewParent:async e=>Hn(await t(`/api/sessions/${e.sessionId}/parent`,{method:`PATCH`,body:JSON.stringify({parentSessionId:e.parentSessionId})})),archiveSession:e=>t(`/api/sessions/${e}`,{method:`DELETE`}),migrateHeader:async e=>({migrated:((await t(e?`/api/sessions/${e}/migrate-header`:`/api/sessions/migrate-header`,{method:`POST`})).migrated??[]).map(Hn)}),git:()=>t(`/api/git`),listReviews:()=>t(`/api/reviews`),getReview:e=>t(`/api/reviews/${e}`),archiveReview:e=>t(`/api/reviews/${e}`,{method:`DELETE`}),requestReview:async e=>{let n=await t(`sessionId`in e?`/api/sessions/${e.sessionId}/review`:`/api/reviews`,{method:`POST`,body:JSON.stringify(`sessionId`in e?{base:e.base}:{standalone:!0,base:e.base})});return{...n,session:Hn(n.session)}},updateComment:e=>t(`/api/reviews/${e.slug}/comments/${e.commentId}`,{method:`PATCH`,headers:{"If-Match":e.etag},body:JSON.stringify({status:e.status,expectedStatus:e.expectedStatus,severity:e.severity,category:e.category,title:e.title,body:e.body})}),bulkUpdateComments:e=>t(`/api/reviews/${e.slug}/comments/bulk`,{method:`POST`,headers:{"If-Match":e.etag},body:JSON.stringify({ids:e.ids,status:e.status,expectedStatus:e.expectedStatus})}),planReviewChanges:async e=>{let n=await t(`/api/reviews/${e}/plan-changes`,{method:`POST`});return{...n,session:Hn(n.session)}},publishPreflight:(e,n)=>{let r=n?`?mergeRequestIid=${n}`:``;return t(`/api/reviews/${e}/publish/preflight${r}`)},publishReview:async e=>await t(`/api/reviews/${e.slug}/publish`,{method:`POST`,body:JSON.stringify({mergeRequestIid:e.mergeRequestIid,dryRun:e.dryRun,only:e.only})}),publisherSettings:()=>t(`/api/settings/publisher`),savePublisherSettings:e=>t(`/api/settings/publisher`,{method:`PUT`,body:JSON.stringify(e)}),removePublisherSettings:()=>t(`/api/settings/publisher`,{method:`DELETE`}),testPublisherSettings:()=>t(`/api/settings/publisher/test`,{method:`POST`}),source:e=>{let n=new URLSearchParams({path:e.path});return e.line!==void 0&&n.set(`line`,String(e.line)),e.radius!==void 0&&n.set(`radius`,String(e.radius)),t(`/api/source?${n.toString()}`)},packages:()=>t(`/api/packages`),package:e=>t(`/api/packages/${Gn(e)}`),registryPackages:()=>t(`/api/registry/packages`),skillCatalog:(e,n)=>t(`/api/skills?view=${e}&page=${n}`),searchSkills:(e,n)=>{let r=new URLSearchParams({q:e});return n&&r.set(`owner`,n),t(`/api/skills/search?${r.toString()}`)},skillDetail:e=>t(`/api/skills/${encodeURIComponent(e.owner)}/${encodeURIComponent(e.repo)}/${encodeURIComponent(e.slug)}`),installPackage:e=>t(`/api/packages`,{method:`POST`,body:JSON.stringify(e)}),uninstallPackage:e=>t(`/api/packages/${Gn(e)}`,{method:`DELETE`}),applyPackageItems:e=>t(`/api/packages/${Gn(e.packageName)}/items`,{method:`POST`,body:JSON.stringify({add:e.add,remove:e.remove,all:e.all,sync:e.sync})}),sync:(e={})=>t(`/api/sync`,{method:`POST`,body:JSON.stringify(e)})}}var Wn={projects:()=>Vn(`/api/projects`),project:(e,t={})=>Vn(`/api/projects/${encodeURIComponent(e)}${t.includeGit?`?include=git`:``}`),addProject:e=>Vn(`/api/projects`,{method:`POST`,body:JSON.stringify({path:e})}),updateProject:(e,t)=>Vn(`/api/projects/${encodeURIComponent(e)}`,{method:`PATCH`,body:JSON.stringify(t)}),removeProject:e=>Vn(`/api/projects/${encodeURIComponent(e)}`,{method:`DELETE`}),markOpened:e=>Vn(`/api/projects/${encodeURIComponent(e)}/open`,{method:`POST`}),instance:()=>Vn(`/api/instance`),shutdown:()=>Vn(`/api/shutdown`,{method:`POST`}),eventsUrl:(e=[])=>{let t=new URLSearchParams({token:zn});return e.length>0&&t.set(`projects`,e.join(`,`)),`/api/events?${t.toString()}`}};function Gn(e){return encodeURIComponent(e)}var Kn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/lib/project-context.tsx`,qn=(0,k.createContext)(void 0);function Jn({projectId:e,card:t,children:n}){let r=(0,k.useMemo)(()=>({projectId:e,card:t,api:Un(e)}),[e,t]);return(0,A.jsxDEV)(qn.Provider,{value:r,children:n},void 0,!1,{fileName:Kn,lineNumber:38,columnNumber:10},this)}function Yn(){let e=(0,k.useContext)(qn);if(!e)throw Error(`This component must be rendered inside a ProjectProvider.`);return e}function j(){return Yn().api}function Xn(){return Yn().projectId}var Zn={projects:[`projects`],project:e=>[`projects`,e],instance:[`instance`]};function Qn(e){let t=[`p`,e];return{root:t,project:[...t,`project`],sessions:[...t,`sessions`],session:e=>[...t,`session`,e],git:[...t,`git`],reviews:[...t,`reviews`],review:e=>[...t,`review`,e],packages:[...t,`packages`],package:e=>[...t,`package`,e],registry:[...t,`registry`],skillCatalog:(e,n)=>[...t,`skills`,e,n],skillSearch:(e,n)=>[...t,`skills`,`search`,e,n??``],skillDetail:(e,n,r)=>[...t,`skills`,`detail`,e,n,r],publisherSettings:[...t,`settings`,`publisher`],publishPreflight:(e,n)=>[...t,`publish-preflight`,e,n??0]}}function $n(){let e=Xn();return(0,k.useMemo)(()=>Qn(e),[e])}function er(){let e=j();return _t({queryKey:$n().project,queryFn:e.project,staleTime:6e4})}function tr(){let e=j();return _t({queryKey:$n().sessions,queryFn:e.listSessions})}function nr(e){let t=j();return _t({queryKey:$n().session(e??``),queryFn:()=>t.getSession(e),enabled:e!==void 0})}function rr(){let e=j(),t=$n(),n=nt();return vt({mutationFn:e.setStatus,onSuccess:e=>{n.setQueryData(t.session(e.id),e),n.invalidateQueries({queryKey:t.sessions})}})}function ir(){let e=j(),t=$n(),n=nt();return vt({mutationFn:e.saveSession,onSuccess:({session:e})=>{n.setQueryData(t.session(e.id),e),n.invalidateQueries({queryKey:t.sessions})}})}function ar(){return vt({mutationFn:j().stashSessionBody})}function or(){let e=j(),t=$n(),n=nt();return vt({mutationFn:e.createSession,onSuccess:()=>n.invalidateQueries({queryKey:t.sessions})})}function sr(){let e=j(),t=$n(),n=nt();return vt({mutationFn:e.linkReviewParent,onSuccess:e=>{n.setQueryData(t.session(e.id),e),n.invalidateQueries({queryKey:t.sessions})}})}function cr(){let e=j(),t=$n(),n=nt();return vt({mutationFn:e.archiveSession,onSuccess:()=>n.invalidateQueries({queryKey:t.sessions})})}function lr(){let e=j(),t=$n(),n=nt();return vt({mutationFn:e.archiveReview,onSuccess:()=>{n.invalidateQueries({queryKey:t.reviews}),n.invalidateQueries({queryKey:t.sessions})}})}function ur(){let e=j(),t=$n(),n=nt();return vt({mutationFn:t=>e.migrateHeader(t),onSuccess:()=>n.invalidateQueries({queryKey:t.sessions})})}function dr(){let e=j();return _t({queryKey:$n().git,queryFn:e.git,staleTime:15e3})}function fr(){let e=j();return _t({queryKey:$n().reviews,queryFn:e.listReviews})}function pr(e){let t=j();return _t({queryKey:$n().review(e??``),queryFn:()=>t.getReview(e),enabled:e!==void 0})}function mr(e,t,n){e.setQueryData(t.review(n.slug),n),e.invalidateQueries({queryKey:t.reviews}),n.sessionId&&e.invalidateQueries({queryKey:t.session(n.sessionId)})}function hr(){let e=j(),t=$n(),n=nt();return vt({mutationFn:e.updateComment,onSuccess:e=>mr(n,t,e)})}function gr(){let e=j(),t=$n(),n=nt();return vt({mutationFn:t=>e.bulkUpdateComments(t),onSuccess:e=>mr(n,t,e)})}function _r(){let e=j(),t=$n(),n=nt();return vt({mutationFn:e.requestReview,onSuccess:()=>{n.invalidateQueries({queryKey:t.sessions}),n.invalidateQueries({queryKey:t.reviews})}})}function vr(){let e=j(),t=$n(),n=nt();return vt({mutationFn:t=>e.planReviewChanges(t),onSuccess:e=>{mr(n,t,e.review),n.setQueryData(t.session(e.session.id),e.session),n.invalidateQueries({queryKey:t.sessions})}})}function yr(e,t,n=!0){let r=j();return _t({queryKey:$n().publishPreflight(e??``,t),queryFn:()=>r.publishPreflight(e,t),enabled:n&&e!==void 0,retry:!1,gcTime:0,staleTime:0})}function br(){let e=j(),t=$n(),n=nt();return vt({mutationFn:e.publishReview,onSuccess:e=>{e.dryRun||(mr(n,t,e.review),e.session&&(n.setQueryData(t.session(e.session.id),e.session),n.invalidateQueries({queryKey:t.sessions})))}})}function xr(){let e=j();return _t({queryKey:$n().publisherSettings,queryFn:e.publisherSettings})}function Sr(){let e=j(),t=$n(),n=nt();return vt({mutationFn:e.savePublisherSettings,onSuccess:e=>n.setQueryData(t.publisherSettings,e)})}function Cr(){let e=j(),t=$n(),n=nt();return vt({mutationFn:e.removePublisherSettings,onSuccess:e=>n.setQueryData(t.publisherSettings,e)})}function wr(){return vt({mutationFn:j().testPublisherSettings})}function Tr(){let e=j();return _t({queryKey:$n().packages,queryFn:e.packages})}function Er(e,t,n=!0){let r=j();return _t({queryKey:$n().skillCatalog(e,t),queryFn:()=>r.skillCatalog(e,t),enabled:n,retry:!1,staleTime:3e5})}function Dr(e,t){let n=j(),r=$n(),i=e.trim();return _t({queryKey:r.skillSearch(i,t),queryFn:()=>n.searchSkills(i,t),enabled:i.length>=2,retry:!1,staleTime:6e4})}function Or(e){let t=j();return _t({queryKey:$n().skillDetail(e?.owner??``,e?.repo??``,e?.slug??``),queryFn:()=>t.skillDetail(e),enabled:e!==void 0,retry:!1,staleTime:6e5})}function kr(e,t,n){e.invalidateQueries({queryKey:t.packages}),n&&e.invalidateQueries({queryKey:t.package(n)}),e.invalidateQueries({queryKey:t.project})}function Ar(){let e=j(),t=$n(),n=nt();return vt({mutationFn:e.installPackage,onSuccess:e=>kr(n,t,e.package?.name)})}function jr(){let e=j(),t=$n(),n=nt();return vt({mutationFn:t=>e.uninstallPackage(t),onSuccess:()=>kr(n,t)})}function Mr(){let e=j(),t=$n(),n=nt();return vt({mutationFn:t=>e.applyPackageItems(t),onSuccess:e=>{n.setQueryData(t.package(e.package.name),e.package),kr(n,t,e.package.name)}})}function Nr(){let e=j(),t=$n(),n=nt();return vt({mutationFn:t=>e.sync(t),onSuccess:e=>{e.checked||n.invalidateQueries({queryKey:t.packages})}})}function Pr(){let e=Xn(),t=$n(),n=nt(),[r,i]=(0,k.useState)(`connecting`);return(0,k.useEffect)(()=>{let r=new EventSource(Wn.eventsUrl([e])),a=t=>{try{let n=JSON.parse(t.data);return n.projectId&&n.projectId!==e?void 0:n}catch{return{}}},o=e=>{let r=a(e);r&&(n.invalidateQueries({queryKey:t.sessions}),r.sessionId&&n.invalidateQueries({queryKey:t.session(r.sessionId)}))},s=e=>{let r=a(e);r&&(n.invalidateQueries({queryKey:t.reviews}),n.invalidateQueries({queryKey:t.sessions}),r.slug&&n.invalidateQueries({queryKey:t.review(r.slug)}))};r.onopen=()=>i(`live`),r.onerror=()=>i(`offline`);for(let e of[`session.created`,`session.updated`,`session.deleted`])r.addEventListener(e,o);for(let e of[`review.created`,`review.updated`,`review.deleted`])r.addEventListener(e,s);r.addEventListener(`packages.changed`,e=>{a(e)&&(n.invalidateQueries({queryKey:t.packages}),n.invalidateQueries({queryKey:t.project}),n.invalidateQueries({queryKey:[...t.root,`package`]}))}),r.addEventListener(`projects.changed`,()=>{n.invalidateQueries({queryKey:Zn.projects})});let c=()=>{n.invalidateQueries({queryKey:t.sessions}),n.invalidateQueries({queryKey:t.reviews}),n.invalidateQueries({queryKey:t.packages})};return window.addEventListener(`focus`,c),()=>{r.close(),window.removeEventListener(`focus`,c)}},[n,t,e]),r}function Fr(e={}){return _t({queryKey:Zn.projects,queryFn:Wn.projects,staleTime:3e3,refetchInterval:e.poll!==!1&&15e3})}function Ir(){return _t({queryKey:Zn.instance,queryFn:Wn.instance,staleTime:3e4})}function Lr(){let e=nt();return vt({mutationFn:e=>Wn.addProject(e),onSuccess:()=>e.invalidateQueries({queryKey:Zn.projects})})}function Rr(){let e=nt();return vt({mutationFn:e=>Wn.removeProject(e),onSuccess:(t,n)=>{e.invalidateQueries({queryKey:Zn.projects}),e.removeQueries({queryKey:[`p`,n]})}})}var zr=3e4;function Br(){let e=nt();return(0,k.useCallback)((t,n)=>{Wn.markOpened(t).catch(()=>void 0),!(!n||n===t)&&(e.cancelQueries({queryKey:[`p`,n]}),window.setTimeout(()=>{e.removeQueries({queryKey:[`p`,n]})},zr))},[e])}async function Vr(e,t,n={}){let r=Math.max(1,n.concurrency??4),i={ok:[],failed:[]},a=0;return await Promise.all(Array.from({length:Math.min(r,e.length)},async()=>{for(;a<e.length;){let n=e[a++];try{i.ok.push({id:n,value:await t(n)})}catch(e){i.failed.push({id:n,error:e instanceof Error?e:Error(String(e))})}}})),i}function Hr(e,t){let n=e.ok.length+e.failed.length,r=`${t.noun}${n===1?``:`s`}`;if(e.failed.length===0)return{message:`${t.done} ${n} ${r}`,tone:`success`};let i=e.failed[0].error.message;if(e.ok.length===0){let e=n===1?`the ${r}`:`any of the ${n} ${r}`;return{message:`Could not ${t.doing} ${e} — ${i}`,tone:`danger`}}return{message:`${t.done} ${e.ok.length} of ${n} — ${e.failed.length} failed: ${i}`,tone:`danger`}}function Ur(e,t){let n={eligible:[],locked:[],unchanged:[]};for(let r of e)r.status===`review`?n.locked.push(r):r.status===t?n.unchanged.push(r):n.eligible.push(r);return n}function Wr(e){let t=new Set(e.map(e=>e.id));return e.filter(e=>e.kind===`plan`).reduce((e,n)=>e+n.reviewSessionIds.filter(e=>!t.has(e)).length,0)}var Gr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/SessionBulkBar.tsx`;function Kr({sessions:e,count:t,hiddenCount:n,onClear:r,onNarrow:i,pendingStatus:a,onPendingStatusHandled:o,archiveRequested:s,onArchiveRequestHandled:c}){let l=Fn(),u=rr(),d=cr(),[f,p]=(0,k.useState)(!1),[m,h]=(0,k.useState)(!1),[g,_]=(0,k.useState)(!1),v=(0,k.useRef)(null),y=e.filter(e=>e.status!==`review`).length,b=Wr(e);(0,k.useEffect)(()=>{if(!f)return;let e=e=>{v.current?.contains(e.target)||p(!1)},t=e=>{e.key===`Escape`&&(e.stopPropagation(),p(!1))};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[f]);let x=async n=>{p(!1);let a=Ur(e,n),o=Ft({kind:`plan`,status:n}).label;if(a.eligible.length===0){l(a.locked.length>0?`Nothing to change — ${a.locked.length===t?`every`:`the rest of the`} selected session is in Review. ${Ht}`:`Already ${o.toLowerCase()}.`,`info`);return}_(!0);let s=await Vr(a.eligible.map(e=>e.id),e=>u.mutateAsync({sessionId:e,status:n}));if(s.failed.length===0){let e=a.locked.length;l(`Moved ${s.ok.length} to ${o}`+(e>0?` · ${e} left in Review`:``),e>0?`info`:`success`),r()}else{let{message:e,tone:t}=Hr(s,{done:`Moved`,doing:`move`,noun:`session`});l(e,t),i(s.failed.map(e=>e.id))}_(!1)},ee=async()=>{h(!1),_(!0);let t=await Vr(e.map(e=>e.id),e=>d.mutateAsync(e)),{message:n,tone:a}=Hr(t,{done:`Archived`,doing:`archive`,noun:`session`});l(n,a),t.failed.length===0?r():i(t.failed.map(e=>e.id)),_(!1)},te=(0,k.useRef)(x);return te.current=x,(0,k.useEffect)(()=>{a&&(o(),te.current(a))},[a,o]),(0,k.useEffect)(()=>{s&&(c(),h(!0))},[s,c]),(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(Cn,{count:t,hiddenCount:n,noun:`session`,busy:g,onClear:r,children:[(0,A.jsxDEV)(`div`,{className:`pill-menu bulkbar__menu`,ref:v,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:g||y===0,title:y===0?Ht:void 0,"aria-haspopup":`menu`,"aria-expanded":f,onClick:()=>p(e=>!e),children:g?`Moving…`:`Set status`},void 0,!1,{fileName:Gr,lineNumber:159,columnNumber:11},this),f&&(0,A.jsxDEV)(`div`,{className:`pill-menu__list pill-menu__list--up`,role:`menu`,children:[Vt.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`menuitem`,className:`pill-menu__item`,onClick:()=>void x(e),children:[(0,A.jsxDEV)(Mt,{status:e},void 0,!1,{fileName:Gr,lineNumber:181,columnNumber:19},this),Ft({kind:`plan`,status:e}).label]},e,!0,{fileName:Gr,lineNumber:174,columnNumber:17},this)),y<t&&(0,A.jsxDEV)(`p`,{className:`pill-menu__note`,children:[t-y,` of these sit in Review. `,"`Review` is set by writing a review, and cleared by planning its changes or publishing them."]},void 0,!0,{fileName:Gr,lineNumber:186,columnNumber:17},this)]},void 0,!0,{fileName:Gr,lineNumber:172,columnNumber:13},this)]},void 0,!0,{fileName:Gr,lineNumber:158,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,disabled:g||t===0,onClick:()=>h(!0),children:g?`Working…`:`Archive`},void 0,!1,{fileName:Gr,lineNumber:194,columnNumber:9},this)]},void 0,!0,{fileName:Gr,lineNumber:157,columnNumber:7},this),m&&(0,A.jsxDEV)(Mn,{title:`Archive ${t} session${t===1?``:`s`}?`,onClose:()=>h(!1),footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>h(!1),children:`Cancel`},void 0,!1,{fileName:Gr,lineNumber:210,columnNumber:15},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,onClick:()=>void ee(),children:`Archive`},void 0,!1,{fileName:Gr,lineNumber:217,columnNumber:15},this)]},void 0,!0,{fileName:Gr,lineNumber:209,columnNumber:13},this),children:[(0,A.jsxDEV)(`p`,{className:`modal__text`,children:[`The files move to `,(0,A.jsxDEV)(`code`,{children:`.invariant/sessions/.archive/`},void 0,!1,{fileName:Gr,lineNumber:224,columnNumber:31},this),` and stay readable on disk.`]},void 0,!0,{fileName:Gr,lineNumber:223,columnNumber:11},this),b>0&&(0,A.jsxDEV)(`p`,{className:`modal__text modal__text--muted`,children:[b,` review`,b===1?``:`s`,` of this work `,b===1?`is`:`are`,` `,`not in the selection, and will be left orphaned on the Reviews page.`]},void 0,!0,{fileName:Gr,lineNumber:227,columnNumber:13},this)]},void 0,!0,{fileName:Gr,lineNumber:205,columnNumber:9},this)]},void 0,!0,{fileName:Gr,lineNumber:156,columnNumber:5},this)}var qr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ConflictBanner.tsx`;function Jr({conflictCount:e,onOpenMerge:t,onKeepMine:n,onTakeTheirs:r}){return(0,A.jsxDEV)(`div`,{className:`banner banner--warning`,role:`alert`,children:[(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:`The agent changed the same lines you did.`},void 0,!1,{fileName:qr,lineNumber:33,columnNumber:9},this),` `,e===1?`1 spot needs`:`${e} spots need`,` your call — everything else was merged.`]},void 0,!0,{fileName:qr,lineNumber:32,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`banner__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:t,children:`Open the merge`},void 0,!1,{fileName:qr,lineNumber:38,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:n,children:`Keep mine`},void 0,!1,{fileName:qr,lineNumber:41,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>{window.confirm(`Discard your edits and take the version on disk?`)&&r()},children:`Take theirs`},void 0,!1,{fileName:qr,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:qr,lineNumber:37,columnNumber:7},this)]},void 0,!0,{fileName:qr,lineNumber:31,columnNumber:5},this)}var Yr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ReviewPanel.tsx`;function Xr({session:e,onOpenSession:t,onToast:n}){let{data:r}=dr(),{data:i}=tr(),{data:a}=fr(),o=_r(),s=(i?.sessions??[]).filter(t=>t.parent===e.id),c=a?.reviews??[];if(s.length>0){let e=s.reduce((e,t)=>e+(fn(t,c)?.open??0),0);return(0,A.jsxDEV)(`div`,{className:`banner banner--review`,children:(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:e>0?`${e} comment${e===1?``:`s`} waiting on you.`:`Reviewed.`},void 0,!1,{fileName:Yr,lineNumber:44,columnNumber:11},this),` `,s.length===1?`One review session points at this work.`:`${s.length} review sessions point at this work.`,(0,A.jsxDEV)(`ul`,{className:`review-links`,children:s.map(e=>(0,A.jsxDEV)(`li`,{className:`review-links__item`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>t(e.id),children:e.branch??e.title},void 0,!1,{fileName:Yr,lineNumber:56,columnNumber:17},this),(0,A.jsxDEV)(Yt,{status:e.status,kind:e.kind,review:dn(e,c)},void 0,!1,{fileName:Yr,lineNumber:63,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`review-links__time`,title:e.updated,children:Zt(e.updated)},void 0,!1,{fileName:Yr,lineNumber:68,columnNumber:17},this)]},e.id,!0,{fileName:Yr,lineNumber:55,columnNumber:15},this))},void 0,!1,{fileName:Yr,lineNumber:53,columnNumber:11},this)]},void 0,!0,{fileName:Yr,lineNumber:43,columnNumber:9},this)},void 0,!1,{fileName:Yr,lineNumber:42,columnNumber:7},this)}let l=r!==void 0&&!r.canReview;return(0,A.jsxDEV)(`div`,{className:`banner banner--review`,children:[(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:`No review yet.`},void 0,!1,{fileName:Yr,lineNumber:84,columnNumber:9},this),` `,l?r?.reason:r?.branch?`A fresh agent can read the ${r.changedFileCount}-file diff on ${r.branch} without seeing this plan.`:`A fresh agent can read the diff without seeing this plan.`]},void 0,!0,{fileName:Yr,lineNumber:83,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`banner__actions`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:l||o.isPending,title:l?r?.reason:void 0,onClick:()=>o.mutate({sessionId:e.id},{onSuccess:async e=>{await tn(e.executeLine),n(e.guidance,`success`),t(e.session.id)},onError:e=>n(e instanceof Error?e.message:`Could not create the review.`,`danger`)}),children:o.isPending?`Creating…`:`Request review`},void 0,!1,{fileName:Yr,lineNumber:92,columnNumber:9},this)},void 0,!1,{fileName:Yr,lineNumber:91,columnNumber:7},this)]},void 0,!0,{fileName:Yr,lineNumber:82,columnNumber:5},this)}var Zr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ReviewStageStrip.tsx`;function Qr({status:e,review:t,onTriage:n,onCopyExecuteLine:r}){let i=Ft({kind:`review`,status:e},t),a=t?.counts,o=i.step??`reviewing`;return(0,A.jsxDEV)(`div`,{className:`stage`,children:[(0,A.jsxDEV)(`ol`,{className:`stage__steps`,children:Nt.map((e,t)=>{let n=Rt(e,o);return(0,A.jsxDEV)(`li`,{className:`stage__step${n===0?` is-current`:n<0?` is-done`:``}`,"aria-current":n===0?`step`:void 0,children:[(0,A.jsxDEV)(`span`,{className:`stage__index`,"aria-hidden":`true`,children:t+1},void 0,!1,{fileName:Zr,lineNumber:46,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`stage__label`,children:[Pt[e],e===`triage`&&a&&a.open>0&&(0,A.jsxDEV)(`span`,{className:`stage__badge`,children:a.open},void 0,!1,{fileName:Zr,lineNumber:50,columnNumber:19},this)]},void 0,!0,{fileName:Zr,lineNumber:47,columnNumber:15},this)]},e,!0,{fileName:Zr,lineNumber:41,columnNumber:13},this)})},void 0,!1,{fileName:Zr,lineNumber:37,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`stage__hint`,children:[(0,A.jsxDEV)(`span`,{className:`stage__holder stage__holder--${i.holder}`,children:i.holder===`you`?`Waiting on you`:`Agent working`},void 0,!1,{fileName:Zr,lineNumber:59,columnNumber:9},this),i.hint]},void 0,!0,{fileName:Zr,lineNumber:58,columnNumber:7},this),i.action.kind===`triage`&&n&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:n,children:i.action.openCount===0?`Open the comments`:`Triage ${i.action.openCount} comment${i.action.openCount===1?``:`s`}`},void 0,!1,{fileName:Zr,lineNumber:66,columnNumber:9},this),i.action.kind===`copy-execute`&&r&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:r,children:`Copy execute line`},void 0,!1,{fileName:Zr,lineNumber:76,columnNumber:9},this)]},void 0,!0,{fileName:Zr,lineNumber:36,columnNumber:5},this)}var $r=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/LinkParentModal.tsx`;function ei({review:e,candidates:t,busy:n,onClose:r,onLink:i}){let[a,o]=(0,k.useState)(``),[s,c]=(0,k.useState)(),l=(0,k.useMemo)(()=>{let e=a.trim().toLowerCase(),n=t.filter(e=>e.kind!==`review`);return e.length===0?n:n.filter(t=>`${t.title} ${t.excerpt} ${t.tags.join(` `)}`.toLowerCase().includes(e))},[t,a]);return(0,A.jsxDEV)(Mn,{title:`Link this review to a session`,onClose:r,dirty:s!==void 0,confirmClose:{title:`Discard this pick?`,body:`You chose a session but have not linked it yet. Closing forgets the choice.`},footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:e.branch??e.title},void 0,!1,{fileName:$r,lineNumber:48,columnNumber:11},this),(0,A.jsxDEV)(ti,{},void 0,!1,{fileName:$r,lineNumber:49,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:!s||n,onClick:()=>{s&&i(s)},children:n?`Linking…`:`Link`},void 0,!1,{fileName:$r,lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:$r,lineNumber:47,columnNumber:9},this),children:[(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`A review is a verdict on a session's work. Pick the session this one judges — it moves under it in the tree, and its `,(0,A.jsxDEV)(`code`,{children:`<parent>`},void 0,!1,{fileName:$r,lineNumber:63,columnNumber:30},this),` is written into the file.`]},void 0,!0,{fileName:$r,lineNumber:61,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`field`,children:[(0,A.jsxDEV)(`label`,{className:`field__label`,htmlFor:`link-parent-filter`,children:`Find a session`},void 0,!1,{fileName:$r,lineNumber:67,columnNumber:9},this),(0,A.jsxDEV)(`input`,{id:`link-parent-filter`,className:`field__input`,"data-autofocus":!0,value:a,placeholder:`Filter by title…`,onChange:e=>o(e.target.value)},void 0,!1,{fileName:$r,lineNumber:68,columnNumber:9},this)]},void 0,!0,{fileName:$r,lineNumber:66,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`picker`,children:l.length===0?(0,A.jsxDEV)(`p`,{className:`panel__empty`,children:`No session matches.`},void 0,!1,{fileName:$r,lineNumber:80,columnNumber:11},this):l.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,className:`picker__item${s===e.id?` is-active`:``}`,onClick:()=>c(e.id),children:[(0,A.jsxDEV)(`span`,{className:`picker__title`,children:e.title},void 0,!1,{fileName:$r,lineNumber:89,columnNumber:15},this),(0,A.jsxDEV)(Yt,{status:e.status,kind:e.kind},void 0,!1,{fileName:$r,lineNumber:90,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`picker__meta`,children:Zt(e.updated)},void 0,!1,{fileName:$r,lineNumber:91,columnNumber:15},this)]},e.id,!0,{fileName:$r,lineNumber:83,columnNumber:13},this))},void 0,!1,{fileName:$r,lineNumber:78,columnNumber:7},this)]},void 0,!0,{fileName:$r,lineNumber:38,columnNumber:5},this)}function ti(){let e=On();return(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:e,children:`Cancel`},void 0,!1,{fileName:$r,lineNumber:104,columnNumber:5},this)}var ni=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/SourcePeek.tsx`,ri=12;function ii({file:e,line:t,endLine:n}){let r=j(),{data:i,isLoading:a,error:o}=_t({queryKey:[`p`,r.projectId,`source`,e,t??0],queryFn:()=>r.source({path:e,line:t,radius:ri}),staleTime:3e4});if(a)return(0,A.jsxDEV)(`div`,{className:`peek peek--state`,children:`Loading…`},void 0,!1,{fileName:ni,lineNumber:29,columnNumber:25},this);if(o||!i)return(0,A.jsxDEV)(`div`,{className:`peek peek--state`,children:`This file is not readable from here — it may have moved since the review was written.`},void 0,!1,{fileName:ni,lineNumber:32,columnNumber:7},this);let s=t??i.startLine,c=n??s;return(0,A.jsxDEV)(`div`,{className:`peek`,children:[(0,A.jsxDEV)(`div`,{className:`peek__head`,children:[i.path,` · lines `,i.startLine,`–`,i.endLine,` of `,i.totalLines]},void 0,!0,{fileName:ni,lineNumber:43,columnNumber:7},this),(0,A.jsxDEV)(`pre`,{className:`peek__code`,children:i.lines.map((e,t)=>{let n=i.startLine+t;return(0,A.jsxDEV)(`div`,{className:`peek__line${n>=s&&n<=c?` is-highlighted`:``}`,children:[(0,A.jsxDEV)(`span`,{className:`peek__number`,children:n},void 0,!1,{fileName:ni,lineNumber:52,columnNumber:15},this),(0,A.jsxDEV)(`code`,{children:e.length>0?e:` `},void 0,!1,{fileName:ni,lineNumber:53,columnNumber:15},this)]},n,!0,{fileName:ni,lineNumber:51,columnNumber:13},this)})},void 0,!1,{fileName:ni,lineNumber:46,columnNumber:7},this)]},void 0,!0,{fileName:ni,lineNumber:42,columnNumber:5},this)}var ai=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/CommentEditor.tsx`;function oi({title:e,body:t,severity:n,category:r,busy:i,onCancel:a,onSave:o}){let[s,c]=(0,k.useState)(e),[l,u]=(0,k.useState)(t),[d,f]=(0,k.useState)(n),[p,m]=(0,k.useState)(r),h={title:s.trim(),body:l,severity:d,category:p},g=h.title.length>0;return(0,A.jsxDEV)(`div`,{className:`comment-editor`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Title`},void 0,!1,{fileName:ai,lineNumber:57,columnNumber:9},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:s,maxLength:120,autoFocus:!0,onChange:e=>c(e.target.value),onKeyDown:e=>{e.key===`Escape`&&a()}},void 0,!1,{fileName:ai,lineNumber:58,columnNumber:9},this)]},void 0,!0,{fileName:ai,lineNumber:56,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`comment-editor__classification`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Severity`},void 0,!1,{fileName:ai,lineNumber:72,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`select select--${d}`,value:d,onChange:e=>f(e.target.value),onKeyDown:e=>{e.key===`Escape`&&a()},children:Ut.map(e=>(0,A.jsxDEV)(`option`,{value:e,children:Wt[e]},e,!1,{fileName:ai,lineNumber:80,columnNumber:15},this))},void 0,!1,{fileName:ai,lineNumber:73,columnNumber:11},this)]},void 0,!0,{fileName:ai,lineNumber:71,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Category`},void 0,!1,{fileName:ai,lineNumber:86,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`select`,value:p,onChange:e=>m(e.target.value),onKeyDown:e=>{e.key===`Escape`&&a()},children:Gt.map(e=>(0,A.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:ai,lineNumber:94,columnNumber:15},this))},void 0,!1,{fileName:ai,lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:ai,lineNumber:85,columnNumber:9},this)]},void 0,!0,{fileName:ai,lineNumber:70,columnNumber:7},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Detail`},void 0,!1,{fileName:ai,lineNumber:101,columnNumber:9},this),(0,A.jsxDEV)(`textarea`,{className:`field__input field__input--area`,value:l,rows:6,onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`Escape`&&a()}},void 0,!1,{fileName:ai,lineNumber:102,columnNumber:9},this)]},void 0,!0,{fileName:ai,lineNumber:100,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`comment-editor__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:a,children:`Cancel`},void 0,!1,{fileName:ai,lineNumber:112,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:i||!g,onClick:()=>o(h,!1),children:`Save`},void 0,!1,{fileName:ai,lineNumber:113,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:i||!g,onClick:()=>o(h,!0),children:`Save & stage`},void 0,!1,{fileName:ai,lineNumber:121,columnNumber:9},this)]},void 0,!0,{fileName:ai,lineNumber:111,columnNumber:7},this)]},void 0,!0,{fileName:ai,lineNumber:55,columnNumber:5},this)}var si=`modulepreload`,ci=function(e){return`/`+e},li={},ui=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=ci(t,n),t=s(t),t in li)return;li[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:si,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},di=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Markdown.tsx`,fi=(0,k.lazy)(()=>ui(()=>import(`./MarkdownBody-uzyy16ip.js`).then(e=>({default:e.MarkdownBody})),[]));function pi({source:e,compact:t=!1}){if(e.trim().length===0)return null;let n=`markdown${t?` markdown--compact`:``}`;return(0,A.jsxDEV)(k.Suspense,{fallback:(0,A.jsxDEV)(`div`,{className:`${n} markdown--pending`,children:e},void 0,!1,{fileName:di,lineNumber:29,columnNumber:25},this),children:(0,A.jsxDEV)(fi,{source:e,className:n},void 0,!1,{fileName:di,lineNumber:30,columnNumber:7},this)},void 0,!1,{fileName:di,lineNumber:29,columnNumber:5},this)}function mi(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}function hi(e){let t=[],n=!1;for(let r of e.split(`
|
|
245
|
-
`)){if(r.trimStart().startsWith("```")){n=!n;continue}if(n)continue;let e=r.match(/^(#{1,3})\s+(.+?)\s*$/);if(!e)continue;let i=e[2].replace(/[*_`]/g,``);t.push({level:e[1].length,text:i,slug:mi(i)})}return t}function gi(e,t){let n=[...e.matchAll(/`+/g)].reduce((e,t)=>Math.max(e,t[0].length),0),r="`".repeat(Math.max(3,n+1));return`${r}${t??``}\n${e}\n${r}`}var M=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/CommentCard.tsx`,_i={open:`○`,staged:`✓`,discarded:`✗`};function vi(e){let{comment:t}=e,[n,r]=(0,k.useState)(!1),[i,a]=(0,k.useState)(!1),o=t.status!==`open`;return(0,A.jsxDEV)(`article`,{className:`comment comment--${t.status} comment--${t.severity}${e.focused?` is-focused`:``}`,"aria-label":`${t.severity} — ${t.title}`,onClick:e.onFocus,children:[(0,A.jsxDEV)(`header`,{className:`comment__head`,onClick:e.onToggle,role:`button`,tabIndex:-1,children:[(0,A.jsxDEV)(`span`,{className:`comment__glyph`,"aria-hidden":`true`,children:_i[t.status]},void 0,!1,{fileName:M,lineNumber:56,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`comment__severity comment__severity--${t.severity}`,children:Wt[t.severity]},void 0,!1,{fileName:M,lineNumber:57,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`comment__category`,children:t.category},void 0,!1,{fileName:M,lineNumber:60,columnNumber:9},this),t.location&&(0,A.jsxDEV)(`span`,{className:`comment__location`,children:t.location},void 0,!1,{fileName:M,lineNumber:61,columnNumber:30},this),(0,A.jsxDEV)(`h3`,{className:`comment__title`,children:t.title},void 0,!1,{fileName:M,lineNumber:62,columnNumber:9},this),t.edited&&(0,A.jsxDEV)(`span`,{className:`chip`,title:`Edited ${t.edited}`,children:`edited`},void 0,!1,{fileName:M,lineNumber:63,columnNumber:28},this)]},void 0,!0,{fileName:M,lineNumber:55,columnNumber:7},this),e.expanded&&(0,A.jsxDEV)(`div`,{className:`comment__body`,children:n?(0,A.jsxDEV)(oi,{title:t.title,body:t.body,severity:t.severity,category:t.category,busy:e.busy,onCancel:()=>r(!1),onSave:(t,n)=>{r(!1),e.onEdit(t,n)}},void 0,!1,{fileName:M,lineNumber:69,columnNumber:13},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`div`,{className:`comment__prose`,children:(0,A.jsxDEV)(pi,{source:t.body,compact:!0},void 0,!1,{fileName:M,lineNumber:86,columnNumber:17},this)},void 0,!1,{fileName:M,lineNumber:85,columnNumber:15},this),t.discussion&&(0,A.jsxDEV)(`div`,{className:`comment__discussion`,children:(0,A.jsxDEV)(pi,{source:t.discussion,compact:!0},void 0,!1,{fileName:M,lineNumber:91,columnNumber:19},this)},void 0,!1,{fileName:M,lineNumber:90,columnNumber:17},this),t.suggestion&&(0,A.jsxDEV)(`div`,{className:`comment__suggestion`,children:[(0,A.jsxDEV)(`div`,{className:`comment__suggestion-head`,children:[(0,A.jsxDEV)(`span`,{className:`comment__suggestion-label`,children:[`Suggestion`,t.suggestionLang?` · ${t.suggestionLang}`:``]},void 0,!0,{fileName:M,lineNumber:98,columnNumber:21},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{let n=await tn(t.suggestion);e.onToast(n?`Suggestion copied`:`Could not copy`,`success`)},children:`Copy`},void 0,!1,{fileName:M,lineNumber:101,columnNumber:21},this)]},void 0,!0,{fileName:M,lineNumber:97,columnNumber:19},this),(0,A.jsxDEV)(pi,{source:gi(t.suggestion,t.suggestionLang),compact:!0},void 0,!1,{fileName:M,lineNumber:112,columnNumber:19},this)]},void 0,!0,{fileName:M,lineNumber:96,columnNumber:17},this),t.file&&(0,A.jsxDEV)(`div`,{className:`comment__location-row`,children:[(0,A.jsxDEV)(`span`,{className:`comment__path`,children:t.location},void 0,!1,{fileName:M,lineNumber:121,columnNumber:19},this),un(e.editorScheme,e.projectDirectory,t.file,t.line)&&(0,A.jsxDEV)(`a`,{className:`link-button`,href:un(e.editorScheme,e.projectDirectory,t.file,t.line),children:`Open in editor`},void 0,!1,{fileName:M,lineNumber:123,columnNumber:21},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{let n=await tn(t.location);e.onToast(n?`Location copied`:`Could not copy`,`success`)},children:`Copy`},void 0,!1,{fileName:M,lineNumber:135,columnNumber:19},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>a(e=>!e),children:i?`Hide code`:`Peek`},void 0,!1,{fileName:M,lineNumber:145,columnNumber:19},this)]},void 0,!0,{fileName:M,lineNumber:120,columnNumber:17},this),i&&t.file&&(0,A.jsxDEV)(ii,{file:t.file,line:t.line,endLine:t.endLine},void 0,!1,{fileName:M,lineNumber:156,columnNumber:17},this)]},void 0,!0,{fileName:M,lineNumber:82,columnNumber:13},this)},void 0,!1,{fileName:M,lineNumber:67,columnNumber:9},this),e.expanded&&!n&&(0,A.jsxDEV)(`footer`,{className:`comment__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost${t.status===`discarded`?` is-active`:``}`,disabled:e.busy,onClick:()=>e.onDecide(`discarded`),children:`Discard`},void 0,!1,{fileName:M,lineNumber:165,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:e.busy,onClick:()=>r(!0),children:`Edit`},void 0,!1,{fileName:M,lineNumber:173,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid${t.status===`staged`?` is-active`:``}`,disabled:e.busy,onClick:()=>e.onDecide(`staged`),children:`Stage`},void 0,!1,{fileName:M,lineNumber:181,columnNumber:11},this),o&&(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,disabled:e.busy,onClick:()=>e.onDecide(`open`),children:`Undo`},void 0,!1,{fileName:M,lineNumber:190,columnNumber:13},this)]},void 0,!0,{fileName:M,lineNumber:164,columnNumber:9},this)]},void 0,!0,{fileName:M,lineNumber:48,columnNumber:5},this)}var yi=`plan-changes`;function bi(e){return`invariant.ui.review-cta:${e??`unknown`}`}function xi(e){try{return window.localStorage.getItem(bi(e))===`publish`?`publish`:yi}catch{return yi}}function Si(e,t){try{window.localStorage.setItem(bi(t),e)}catch{}}function Ci(e,t){let{counts:n}=t,r=n.open===0,i=n.staged===0;if(e===`plan-changes`){let e=r&&i?`Close review`:`Plan changes →`;return r?t.sessionId?{label:e,enabled:!0}:{label:e,enabled:!1,hint:`This review is tied to no session, so there is nothing to plan into.`}:{label:e,enabled:!1,hint:`Stage or discard every comment first.`}}let a=`Publish to ${t.publisherName}…`;return r?i?{label:a,enabled:!1,hint:`Every comment was discarded — there is nothing to publish.`}:t.canPublish?t.publisherConfigured?{label:a,enabled:!0,hint:`${n.staged} staged comment(s) will be sent as drafts.`}:{label:a,enabled:!0,needsSetup:!0,hint:`Needs a ${t.publisherName} token for this project.`}:{label:a,enabled:!1,hint:`This review is missing the commit shas a discussion needs to anchor to.`}:{label:a,enabled:!1,hint:`Stage or discard every comment first.`}}var wi=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewActions.tsx`,Ti=[{mode:`plan-changes`,label:`Plan changes`,detail:`Staged comments become the session’s Plan`},{mode:`publish`,label:`Publish to GitLab`,detail:`Staged comments become draft comments on the merge request`}];function Ei({review:e,projectDirectory:t,publisherConfigured:n,publisherName:r,busy:i,onPlanChanges:a,onPublish:o,onOpenSettings:s}){let[c,l]=(0,k.useState)(yi),[u,d]=(0,k.useState)(!1),f=(0,k.useRef)(null);(0,k.useEffect)(()=>l(xi(t)),[t]),(0,k.useEffect)(()=>{if(!u)return;let e=e=>{f.current?.contains(e.target)||d(!1)},t=e=>{e.key===`Escape`&&d(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[u]);let p=Ci(c,{counts:e.counts,canPublish:e.canPublish,sessionId:e.sessionId,publisherConfigured:n,publisherName:r}),m=e=>{l(e),Si(e,t),d(!1)};return(0,A.jsxDEV)(`div`,{className:`split`,ref:f,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid split__main`,disabled:i||!p.enabled,title:p.hint,onClick:()=>{if(p.needsSetup){s();return}c===`publish`?o():a()},children:p.label},void 0,!1,{fileName:wi,lineNumber:103,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid split__toggle`,"aria-haspopup":`menu`,"aria-expanded":u,"aria-label":`Choose what this button does`,onClick:()=>d(e=>!e),children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 12 12`,"aria-hidden":`true`,width:`12`,height:`12`,children:(0,A.jsxDEV)(`path`,{d:`M2.5 4.5 6 8l3.5-3.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:wi,lineNumber:122,columnNumber:11},this)},void 0,!1,{fileName:wi,lineNumber:121,columnNumber:9},this)},void 0,!1,{fileName:wi,lineNumber:113,columnNumber:7},this),u&&(0,A.jsxDEV)(`div`,{className:`split__menu`,role:`menu`,children:Ti.map(t=>{let i=Ci(t.mode,{counts:e.counts,canPublish:e.canPublish,sessionId:e.sessionId,publisherConfigured:n,publisherName:r});return(0,A.jsxDEV)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":c===t.mode,className:`split__item${c===t.mode?` is-active`:``}`,onClick:()=>m(t.mode),children:[(0,A.jsxDEV)(`span`,{className:`split__check`,"aria-hidden":`true`,children:c===t.mode?`✓`:``},void 0,!1,{fileName:wi,lineNumber:146,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`split__body`,children:[(0,A.jsxDEV)(`span`,{className:`split__label`,children:t.label},void 0,!1,{fileName:wi,lineNumber:148,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`split__detail`,children:i.needsSetup?`Needs a ${r} token`:t.detail},void 0,!1,{fileName:wi,lineNumber:149,columnNumber:19},this)]},void 0,!0,{fileName:wi,lineNumber:147,columnNumber:17},this)]},t.mode,!0,{fileName:wi,lineNumber:138,columnNumber:15},this)})},void 0,!1,{fileName:wi,lineNumber:128,columnNumber:9},this)]},void 0,!0,{fileName:wi,lineNumber:102,columnNumber:5},this)}var N=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/PublishModal.tsx`,Di={exact:`on its line`,snapped:`snapped to the nearest changed line`,file:`on the whole file`,general:`as a general comment`};function Oi({review:e,onClose:t,onOpenSettings:n}){let r=Fn(),[i,a]=(0,k.useState)(),[o,s]=(0,k.useState)(!1),[c,l]=(0,k.useState)(),u=yr(e.slug,i,c===void 0),d=br(),f=c?.failures.map(e=>e.commentId)??[],p=t=>{d.mutate({slug:e.slug,mergeRequestIid:i,only:t},{onSuccess:e=>{l(e),e.failures.length===0&&r(`${e.created.length+e.updated.length} draft comment(s) created`,`success`)},onError:e=>r(Mi(e),`danger`)})};return c?(0,A.jsxDEV)(Mn,{title:`Published as drafts`,width:640,onClose:t,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`Nobody is notified until you press `,(0,A.jsxDEV)(`strong`,{children:`Submit review`},void 0,!1,{fileName:N,lineNumber:65,columnNumber:50},this),` in GitLab.`]},void 0,!0,{fileName:N,lineNumber:64,columnNumber:13},this),f.length>0&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:d.isPending,onClick:()=>p(f),children:[`Retry `,f.length,` failed`]},void 0,!0,{fileName:N,lineNumber:68,columnNumber:15},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:t,children:`Done`},void 0,!1,{fileName:N,lineNumber:77,columnNumber:13},this)]},void 0,!0,{fileName:N,lineNumber:63,columnNumber:11},this),children:(0,A.jsxDEV)(Ai,{result:c},void 0,!1,{fileName:N,lineNumber:81,columnNumber:9},this)},void 0,!1,{fileName:N,lineNumber:58,columnNumber:7},this):(0,A.jsxDEV)(Mn,{title:`Publish to GitLab`,width:640,onClose:t,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`These are created as `,(0,A.jsxDEV)(`strong`,{children:`pending`},void 0,!1,{fileName:N,lineNumber:94,columnNumber:34},this),` comments. You submit the review yourself.`]},void 0,!0,{fileName:N,lineNumber:93,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:t,children:`Cancel`},void 0,!1,{fileName:N,lineNumber:96,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:d.isPending||u.isLoading||u.data===void 0,onClick:()=>p(),children:d.isPending?`Creating…`:`Create ${u.data?.targets.length??e.counts.staged} draft comment(s)`},void 0,!1,{fileName:N,lineNumber:97,columnNumber:11},this)]},void 0,!0,{fileName:N,lineNumber:92,columnNumber:9},this),children:[u.isLoading&&(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Resolving the merge request…`},void 0,!1,{fileName:N,lineNumber:110,columnNumber:31},this),u.error&&(0,A.jsxDEV)(ji,{error:u.error,onOpenSettings:n},void 0,!1,{fileName:N,lineNumber:112,columnNumber:27},this),u.data&&(0,A.jsxDEV)(`div`,{className:`publish`,children:[(0,A.jsxDEV)(`dl`,{className:`publish__facts`,children:[(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Project`},void 0,!1,{fileName:N,lineNumber:118,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{children:[(0,A.jsxDEV)(`a`,{href:u.data.projectUrl,target:`_blank`,rel:`noreferrer`,children:u.data.projectPath},void 0,!1,{fileName:N,lineNumber:120,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`publish__source`,children:u.data.projectPathSource===`origin`?`from origin`:`overridden`},void 0,!1,{fileName:N,lineNumber:123,columnNumber:17},this)]},void 0,!0,{fileName:N,lineNumber:119,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:117,columnNumber:13},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Merge request`},void 0,!1,{fileName:N,lineNumber:129,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`a`,{href:u.data.mergeRequest.url,target:`_blank`,rel:`noreferrer`,children:[`!`,u.data.mergeRequest.iid,` `,u.data.mergeRequest.title]},void 0,!0,{fileName:N,lineNumber:131,columnNumber:17},this)},void 0,!1,{fileName:N,lineNumber:130,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:128,columnNumber:13},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Diff`},void 0,!1,{fileName:N,lineNumber:137,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{children:[u.data.changedFileCount,` file(s) · head`,` `,(0,A.jsxDEV)(`code`,{children:u.data.mergeRequest.headSha.slice(0,7)},void 0,!1,{fileName:N,lineNumber:140,columnNumber:17},this)]},void 0,!0,{fileName:N,lineNumber:138,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:136,columnNumber:13},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Sending`},void 0,!1,{fileName:N,lineNumber:144,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{children:[u.data.targets.length,` staged comment(s)`,u.data.alreadyPublished>0&&` · ${u.data.alreadyPublished} already on GitLab (they will be updated)`]},void 0,!0,{fileName:N,lineNumber:145,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:143,columnNumber:13},this),u.data.username&&(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Acting as`},void 0,!1,{fileName:N,lineNumber:153,columnNumber:17},this),(0,A.jsxDEV)(`dd`,{children:[`@`,u.data.username]},void 0,!0,{fileName:N,lineNumber:154,columnNumber:17},this)]},void 0,!0,{fileName:N,lineNumber:152,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:116,columnNumber:11},this),u.data.originProjectPath&&(0,A.jsxDEV)(`p`,{className:`publish__warning`,children:[`Publishing to `,(0,A.jsxDEV)(`strong`,{children:u.data.projectPath},void 0,!1,{fileName:N,lineNumber:161,columnNumber:29},this),`, which is not this repository’s origin (`,u.data.originProjectPath,`).`]},void 0,!0,{fileName:N,lineNumber:160,columnNumber:13},this),u.data.drift&&(0,A.jsxDEV)(`p`,{className:`publish__warning`,children:[`This review was written against`,` `,(0,A.jsxDEV)(`code`,{children:u.data.drift.reviewHeadSha.slice(0,7)},void 0,!1,{fileName:N,lineNumber:169,columnNumber:15},this),`; the merge request is now at`,` `,(0,A.jsxDEV)(`code`,{children:u.data.drift.mergeRequestHeadSha.slice(0,7)},void 0,!1,{fileName:N,lineNumber:170,columnNumber:15},this),` — line numbers may have moved.`]},void 0,!0,{fileName:N,lineNumber:167,columnNumber:13},this),u.data.candidates.length>1&&(0,A.jsxDEV)(`label`,{className:`publish__picker`,children:[(0,A.jsxDEV)(`span`,{children:`Merge request`},void 0,!1,{fileName:N,lineNumber:177,columnNumber:15},this),(0,A.jsxDEV)(`select`,{className:`select`,value:i??u.data.mergeRequest.iid,onChange:e=>a(Number(e.target.value)),children:u.data.candidates.map(e=>(0,A.jsxDEV)(`option`,{value:e.iid,children:[`!`,e.iid,` — `,e.title]},e.iid,!0,{fileName:N,lineNumber:184,columnNumber:19},this))},void 0,!1,{fileName:N,lineNumber:178,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:176,columnNumber:13},this),(0,A.jsxDEV)(ki,{targets:u.data.targets},void 0,!1,{fileName:N,lineNumber:192,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>s(e=>!e),children:o?`▾ hide every target`:`▸ show every target`},void 0,!1,{fileName:N,lineNumber:194,columnNumber:11},this),o&&(0,A.jsxDEV)(`ul`,{className:`publish__targets`,children:u.data.targets.map(e=>(0,A.jsxDEV)(`li`,{className:`publish__target is-${e.kind}`,children:[(0,A.jsxDEV)(`span`,{className:`comment__severity comment__severity--${e.severity}`,children:e.severity},void 0,!1,{fileName:N,lineNumber:206,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`publish__target-title`,title:e.title,children:e.title},void 0,!1,{fileName:N,lineNumber:209,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`publish__target-where`,title:e.detail,children:[e.file?`${e.file}${e.line?`:${e.line}`:``}`:`general`,` — `,Di[e.kind]]},void 0,!0,{fileName:N,lineNumber:210,columnNumber:19},this)]},e.commentId,!0,{fileName:N,lineNumber:205,columnNumber:17},this))},void 0,!1,{fileName:N,lineNumber:203,columnNumber:13},this)]},void 0,!0,{fileName:N,lineNumber:115,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:87,columnNumber:5},this)}function ki({targets:e}){let t=t=>e.filter(e=>e.kind===t).length,n=[t(`exact`)>0&&`${t(`exact`)} exact`,t(`snapped`)>0&&`${t(`snapped`)} snapped`,t(`file`)>0&&`${t(`file`)} file-level`,t(`general`)>0&&`${t(`general`)} general`].filter(Boolean);return(0,A.jsxDEV)(`p`,{className:`publish__summary`,children:n.join(` · `)||`Nothing to send.`},void 0,!1,{fileName:N,lineNumber:235,columnNumber:10},this)}function Ai({result:e}){let t=Fn(),n=e.created.length+e.updated.length;return(0,A.jsxDEV)(`div`,{className:`publish`,children:[(0,A.jsxDEV)(`p`,{className:`publish__result`,children:[(0,A.jsxDEV)(`strong`,{children:n},void 0,!1,{fileName:N,lineNumber:245,columnNumber:9},this),` draft comment(s) on`,` `,(0,A.jsxDEV)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,children:[`!`,e.mergeRequestIid]},void 0,!0,{fileName:N,lineNumber:246,columnNumber:9},this),e.skipped.length>0&&` · ${e.skipped.length} already submitted, left alone`]},void 0,!0,{fileName:N,lineNumber:244,columnNumber:7},this),e.session&&(0,A.jsxDEV)(`p`,{className:`publish__closed`,children:[`This review is closed — its session moved to `,(0,A.jsxDEV)(`strong`,{children:`Done`},void 0,!1,{fileName:N,lineNumber:255,columnNumber:56},this),`.`]},void 0,!0,{fileName:N,lineNumber:254,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`publish__links`,children:[(0,A.jsxDEV)(`a`,{className:`button button--subtle`,href:e.url,target:`_blank`,rel:`noreferrer`,children:`Open merge request ↗`},void 0,!1,{fileName:N,lineNumber:260,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`icon-button`,title:`Copy the merge request link`,"aria-label":`Copy the merge request link`,onClick:async()=>{t(await tn(e.url)?`Link copied`:`Could not copy`,`success`)},children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`rect`,{x:`5.5`,y:`5.5`,width:`8`,height:`8`,rx:`2`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.4`},void 0,!1,{fileName:N,lineNumber:273,columnNumber:13},this),(0,A.jsxDEV)(`path`,{d:`M10.5 5.5v-1a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h1`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`},void 0,!1,{fileName:N,lineNumber:275,columnNumber:13},this)]},void 0,!0,{fileName:N,lineNumber:272,columnNumber:11},this)},void 0,!1,{fileName:N,lineNumber:263,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:259,columnNumber:7},this),e.failures.length>0&&(0,A.jsxDEV)(`ul`,{className:`publish__failures`,children:e.failures.map(e=>(0,A.jsxDEV)(`li`,{children:[(0,A.jsxDEV)(`code`,{children:e.commentId},void 0,!1,{fileName:N,lineNumber:285,columnNumber:15},this),` — `,e.message]},e.commentId,!0,{fileName:N,lineNumber:284,columnNumber:13},this))},void 0,!1,{fileName:N,lineNumber:282,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:243,columnNumber:5},this)}function ji({error:e,onOpenSettings:t}){let n=e instanceof Bn?e.code:``,r=n===`PUBLISHER_NOT_CONFIGURED`||n===`PUBLISHER_PROJECT_MISMATCH`;return(0,A.jsxDEV)(`div`,{className:`publish__error`,children:[(0,A.jsxDEV)(`p`,{children:Mi(e)},void 0,!1,{fileName:N,lineNumber:304,columnNumber:7},this),r&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:t,children:`Open publishing settings`},void 0,!1,{fileName:N,lineNumber:306,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:303,columnNumber:5},this)}function Mi(e){return e instanceof Bn||e instanceof Error?e.message:`That did not work.`}var Ni=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewPane.tsx`,Pi=[`all`,`open`,`staged`,`discarded`];function Fi({review:e,projectDirectory:t,editorScheme:n=`vscode`,onPlanned:r,onOpenSettings:i}){let a=Fn(),o=hr(),s=gr(),c=vr(),{data:l}=xr(),[u,d]=(0,k.useState)(!1),[f,p]=(0,k.useState)(`all`),[m,h]=(0,k.useState)(`all`),[g,_]=(0,k.useState)(),[v,y]=(0,k.useState)(),b=(0,k.useMemo)(()=>e.runs.flatMap(e=>e.comments),[e]),x=(0,k.useMemo)(()=>on(b,f,m),[b,f,m]);(0,k.useEffect)(()=>{if(x.length===0){_(void 0);return}(!g||!x.some(e=>e.id===g))&&_(x[0].id)},[x,g]);let ee=o.isPending||s.isPending,te=(t,n)=>{o.mutate({slug:e.slug,commentId:t.id,etag:e.etag,expectedStatus:t.status,status:n},{onError:e=>Li(e,a),onSuccess:()=>{if(n===`open`)return;let e=sn(x,t.id);e&&(_(e.id),y(e.id))}})},S=(t,n,r)=>{let i=cn(t,n);Object.keys(i).length===0&&!r||o.mutate({slug:e.slug,commentId:t.id,etag:e.etag,expectedStatus:t.status,...i,status:r?`staged`:void 0},{onError:e=>Li(e,a),onSuccess:()=>{i.severity&&m!==`all`&&i.severity!==m&&a(`Reclassified as ${Wt[i.severity].toLowerCase()} — hidden by the current filter.`,`info`)}})},ne=()=>{let t=x.filter(e=>e.status!==`staged`).map(e=>e.id);t.length!==0&&s.mutate({slug:e.slug,ids:t,status:`staged`,etag:e.etag,expectedStatus:`open`},{onSuccess:()=>a(`Staged ${t.length} comment(s)`,`success`),onError:e=>Li(e,a)})};Ri({enabled:!ee,comments:x,focusedId:g,onFocus:_,onToggle:e=>y(t=>t===e?void 0:e),onDecide:(e,t)=>{let n=x.find(t=>t.id===e);n&&te(n,t)},onExpand:y,onStageAll:ne});let re=e.counts,ie=ln(re);return(0,A.jsxDEV)(`div`,{className:`review`,children:[(0,A.jsxDEV)(`div`,{className:`review__scroll`,children:[(0,A.jsxDEV)(`div`,{className:`review__summary`,children:e.runs.map((t,n)=>(0,A.jsxDEV)(`section`,{className:`review__run`,children:[(0,A.jsxDEV)(`header`,{className:`review__run-head`,children:[(0,A.jsxDEV)(`span`,{className:`review__run-label`,children:e.runs.length>1?`Run ${n+1}`:`Summary`},void 0,!1,{fileName:Ni,lineNumber:193,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`chip`,title:t.headSha,children:t.headSha.slice(0,7)},void 0,!1,{fileName:Ni,lineNumber:196,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`review__run-counts`,children:[t.counts.total,` comment`,t.counts.total===1?``:`s`]},void 0,!0,{fileName:Ni,lineNumber:197,columnNumber:17},this),t.status===`published`&&(0,A.jsxDEV)(`span`,{className:`chip`,title:`Every staged comment in this run reached the code host`,children:`published`},void 0,!1,{fileName:Ni,lineNumber:201,columnNumber:19},this)]},void 0,!0,{fileName:Ni,lineNumber:192,columnNumber:15},this),(0,A.jsxDEV)(pi,{source:t.summary,compact:!0},void 0,!1,{fileName:Ni,lineNumber:208,columnNumber:15},this)]},t.id,!0,{fileName:Ni,lineNumber:191,columnNumber:13},this))},void 0,!1,{fileName:Ni,lineNumber:189,columnNumber:9},this),(0,A.jsxDEV)(`header`,{className:`review__toolbar`,children:[(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Filter by decision`,children:Pi.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":f===e,className:`segmented__item${f===e?` is-active`:``}`,onClick:()=>p(e),children:e===`all`?`All ${re.total}`:`${Ii(e)} ${re[e]}`},e,!1,{fileName:Ni,lineNumber:216,columnNumber:15},this))},void 0,!1,{fileName:Ni,lineNumber:214,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`select`,value:m,"aria-label":`Filter by severity`,onChange:e=>h(e.target.value),children:[(0,A.jsxDEV)(`option`,{value:`all`,children:`Any severity`},void 0,!1,{fileName:Ni,lineNumber:235,columnNumber:13},this),Ut.map(e=>(0,A.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:Ni,lineNumber:237,columnNumber:15},this))]},void 0,!0,{fileName:Ni,lineNumber:229,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:ee||x.every(e=>e.status===`staged`),onClick:ne,title:`Stage every comment matching the current filter (⇧S)`,children:`Stage all shown`},void 0,!1,{fileName:Ni,lineNumber:241,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{a(await tn(e.path)?`Path copied`:`Could not copy`,`success`)},children:e.path},void 0,!1,{fileName:Ni,lineNumber:251,columnNumber:11},this)]},void 0,!0,{fileName:Ni,lineNumber:213,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`review__list`,children:x.length===0?(0,A.jsxDEV)(`p`,{className:`panel__empty`,children:`Nothing matches this filter.`},void 0,!1,{fileName:Ni,lineNumber:264,columnNumber:13},this):x.map(e=>(0,A.jsxDEV)(vi,{comment:e,projectDirectory:t,editorScheme:n,focused:e.id===g,expanded:e.id===v,busy:ee,onFocus:()=>_(e.id),onToggle:()=>y(t=>t===e.id?void 0:e.id),onDecide:t=>te(e,t),onEdit:(t,n)=>S(e,t,n),onToast:a},e.id,!1,{fileName:Ni,lineNumber:267,columnNumber:15},this))},void 0,!1,{fileName:Ni,lineNumber:262,columnNumber:9},this)]},void 0,!0,{fileName:Ni,lineNumber:188,columnNumber:7},this),(0,A.jsxDEV)(`footer`,{className:`review__foot`,children:[(0,A.jsxDEV)(`span`,{className:`review__gate${ie.kind===`ready`?` is-ready`:``}`,children:ie.label},void 0,!1,{fileName:Ni,lineNumber:287,columnNumber:9},this),(0,A.jsxDEV)(Ei,{review:e,projectDirectory:t,publisherConfigured:l?.configured??!1,publisherName:`GitLab`,busy:c.isPending,onOpenSettings:()=>i?.(),onPublish:()=>d(!0),onPlanChanges:()=>c.mutate(e.slug,{onSuccess:e=>{a(e.guidance,`success`),tn(e.executeLine),r?.(e.session.id)},onError:e=>Li(e,a)})},void 0,!1,{fileName:Ni,lineNumber:294,columnNumber:9},this)]},void 0,!0,{fileName:Ni,lineNumber:286,columnNumber:7},this),u&&(0,A.jsxDEV)(Oi,{review:e,onClose:()=>d(!1),onOpenSettings:()=>{d(!1),i?.()}},void 0,!1,{fileName:Ni,lineNumber:316,columnNumber:9},this)]},void 0,!0,{fileName:Ni,lineNumber:180,columnNumber:5},this)}function Ii(e){return e[0].toUpperCase()+e.slice(1)}function Li(e,t){if(e instanceof Bn&&e.isNotTriaged){t(`${e.openCount} comment(s) still need a decision.`,`danger`);return}if(e instanceof Bn&&e.isConflict){t(`That comment changed on disk — reload before deciding on it again.`,`danger`);return}t(e instanceof Error?e.message:`That did not work.`,`danger`)}function Ri(e){(0,k.useEffect)(()=>{let t=t=>{if(!e.enabled)return;let n=t.target;if(n&&(n.tagName===`INPUT`||n.tagName===`TEXTAREA`||n.isContentEditable))return;let r=e.comments.findIndex(t=>t.id===e.focusedId),i=t=>{if(e.comments.length===0)return;let n=Math.min(Math.max(r+t,0),e.comments.length-1);e.onFocus(e.comments[n].id)};if(t.shiftKey&&t.key.toLowerCase()===`s`){t.preventDefault(),e.onStageAll();return}if(!(t.metaKey||t.ctrlKey||t.altKey))switch(t.key){case`j`:i(1);return;case`k`:i(-1);return;case`Enter`:e.focusedId&&(t.preventDefault(),e.onToggle(e.focusedId));return;case`s`:e.focusedId&&(t.preventDefault(),e.onDecide(e.focusedId,`staged`));return;case`d`:e.focusedId&&(t.preventDefault(),e.onDecide(e.focusedId,`discarded`));return;case`e`:e.focusedId&&(t.preventDefault(),e.onExpand(e.focusedId));return}};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])}var P=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/SessionPage.tsx`,zi=(0,k.lazy)(()=>ui(()=>import(`./Editor-Dp4QGalH.js`).then(e=>({default:e.Editor})),[])),Bi=(0,k.lazy)(()=>ui(()=>import(`./Preview-CnZqPbLm.js`).then(e=>({default:e.Preview})),[])),Vi=1200,Hi=/^<{7} yours\r?$/m;function Ui({sessionId:e,mode:t,onModeChange:n,onBack:r,onArchived:i,onOpenSession:a,onOpenSettings:o}){let s=Fn(),{data:c,isLoading:l,error:u}=nr(e),{data:d}=er(),{data:f}=tr(),p=ir(),m=rr(),h=cr(),g=ur(),_=sr(),v=ar(),{data:y}=pr((0,k.useMemo)(()=>c?.reviewFile?an(c.reviewFile):void 0,[c?.reviewFile])),[b,x]=(0,k.useState)(`review`),[ee,te]=(0,k.useState)(!1),[S,ne]=(0,k.useState)(),[re,ie]=(0,k.useState)(),C=(0,k.useRef)(``),ae=(0,k.useRef)(``),w=(0,k.useRef)(null),T=S!==void 0&&S!==ae.current;(0,k.useEffect)(()=>{c&&C.current!==c.etag&&(S===void 0||S===ae.current)&&(C.current=c.etag,ae.current=c.body,ne(c.body),ie(void 0))},[c,S]);let oe=(0,k.useCallback)((t,n=!1)=>{c&&p.mutate({sessionId:e,body:t,etag:C.current,baseBody:ae.current,force:n},{onSuccess:({session:e,merged:t})=>{C.current=e.etag,ae.current=e.body,ne(e.body),ie(void 0),t&&s(`Merged the agent’s changes into yours.`,`info`)},onError:e=>{if(e instanceof Bn&&e.isMergeConflict){ie({merged:e.detail.mergedPreview??``,theirs:e.detail.currentContent??``,etag:e.detail.actualEtag??``,count:e.detail.conflictCount??1});return}s(e instanceof Error?e.message:`Could not save.`,`danger`)}})},[p,c,e,s]),E=(0,k.useCallback)((e,t,n)=>{C.current=e,ae.current=t,ne(n),ie(void 0)},[]),se=(0,k.useCallback)(()=>{S!==void 0&&T&&oe(S)},[S,T,oe]);(0,k.useEffect)(()=>{if(!(!T||S===void 0||re)&&!Hi.test(S))return w.current&&clearTimeout(w.current),w.current=setTimeout(()=>oe(S),Vi),()=>{w.current&&clearTimeout(w.current)}},[S,T,re,oe]);let ce=(0,k.useMemo)(()=>f?.sessions??[],[f]),le=(0,k.useMemo)(()=>c?.parent?ce.find(e=>e.id===c.parent):void 0,[ce,c?.parent]),ue=(0,k.useMemo)(()=>c?`execute instructions from ${c.path}`:``,[c]);if((0,k.useEffect)(()=>{!c||c.kind!==`review`||x(c.status===`review`?`review`:`plan`)},[c?.id,c?.status,c?.kind]),l)return(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading session…`},void 0,!1,{fileName:P,lineNumber:211,columnNumber:25},this);if(u||!c)return(0,A.jsxDEV)(`div`,{className:`page-state`,children:[(0,A.jsxDEV)(`p`,{children:`This session could not be loaded.`},void 0,!1,{fileName:P,lineNumber:215,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:r,children:`Back to sessions`},void 0,!1,{fileName:P,lineNumber:216,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:214,columnNumber:7},this);let de=S??c.body,fe=c.kind===`review`,pe=!fe||b===`plan`;return(0,A.jsxDEV)(`div`,{className:`session`,children:[(0,A.jsxDEV)(`header`,{className:`session__head`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:r,title:`Back (Esc)`,"aria-label":`Back`,children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M9.5 3.5 5 8l4.5 4.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:P,lineNumber:230,columnNumber:13},this)},void 0,!1,{fileName:P,lineNumber:229,columnNumber:11},this)},void 0,!1,{fileName:P,lineNumber:228,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`session__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`session__title`,children:c.title},void 0,!1,{fileName:P,lineNumber:236,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`session__meta`,children:[(0,A.jsxDEV)(`span`,{className:`session__stamp session__stamp--created`,title:Qt(c.created),children:[`created `,Zt(c.created)]},void 0,!0,{fileName:P,lineNumber:238,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`session__stamp session__stamp--created`,"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:P,lineNumber:241,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`session__stamp`,title:Qt(c.updated),children:[`updated `,Zt(c.updated)]},void 0,!0,{fileName:P,lineNumber:242,columnNumber:13},this),T&&(0,A.jsxDEV)(`span`,{className:`session__dirty`,children:S!==void 0&&Hi.test(S)?`unsaved — resolve the conflict markers`:`unsaved`},void 0,!1,{fileName:P,lineNumber:246,columnNumber:15},this),p.isPending&&(0,A.jsxDEV)(`span`,{className:`session__saving`,children:`saving…`},void 0,!1,{fileName:P,lineNumber:252,columnNumber:32},this)]},void 0,!0,{fileName:P,lineNumber:237,columnNumber:11},this),fe&&(0,A.jsxDEV)(`div`,{className:`session__lineage`,children:[(0,A.jsxDEV)(`span`,{className:`session__kicker`,children:`Review`},void 0,!1,{fileName:P,lineNumber:257,columnNumber:15},this),c.branch&&(0,A.jsxDEV)(`span`,{className:`session__branch`,children:c.branch},void 0,!1,{fileName:P,lineNumber:258,columnNumber:34},this),le?(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>a(le.id),title:`Open the session under review`,children:[`↳ `,le.title]},void 0,!0,{fileName:P,lineNumber:260,columnNumber:17},this):c.parent?(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button link-button--danger`,onClick:()=>te(!0),children:`↳ unlinked — the session this reviewed is gone`},void 0,!1,{fileName:P,lineNumber:271,columnNumber:17},this):(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>te(!0),children:`↳ standalone — link to a session`},void 0,!1,{fileName:P,lineNumber:279,columnNumber:17},this)]},void 0,!0,{fileName:P,lineNumber:256,columnNumber:13},this)]},void 0,!0,{fileName:P,lineNumber:235,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`session__controls`,children:[(0,A.jsxDEV)(Yt,{status:c.status,kind:c.kind,review:y,onTriage:()=>x(`review`),onChange:t=>m.mutate({sessionId:e,status:t},{onError:()=>s(`Could not change the status.`,`danger`)})},void 0,!1,{fileName:P,lineNumber:288,columnNumber:11},this),fe&&(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Session view`,children:[`review`,`plan`].map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":b===e,className:`segmented__item${b===e?` is-active`:``}`,onClick:()=>x(e),children:[e===`review`?`Comments`:`Fix plan`,e===`review`&&y&&y.counts.open>0&&(0,A.jsxDEV)(`span`,{className:`segmented__badge`,children:y.counts.open},void 0,!1,{fileName:P,lineNumber:314,columnNumber:21},this)]},e,!0,{fileName:P,lineNumber:304,columnNumber:17},this))},void 0,!1,{fileName:P,lineNumber:302,columnNumber:13},this),pe&&(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`View mode`,children:[`preview`,`edit`,`split`].map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":t===e,className:`segmented__item${t===e?` is-active`:``}`,onClick:()=>n(e),title:e===`preview`?`Preview (⇧⌘V)`:e===`edit`?`Edit (⇧⌘V)`:`Split`,children:e[0].toUpperCase()+e.slice(1)},e,!1,{fileName:P,lineNumber:324,columnNumber:17},this))},void 0,!1,{fileName:P,lineNumber:322,columnNumber:13},this),(0,A.jsxDEV)(`div`,{className:`session__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:async()=>{s(await tn(ue)?`Execute line copied`:`Could not copy`,`success`)},children:`Copy execute line`},void 0,!1,{fileName:P,lineNumber:340,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>{window.confirm(`Archive this session? The file moves to .invariant/sessions/.archive/`)&&h.mutate(e,{onSuccess:()=>{s(`Session archived`,`success`),i()},onError:()=>s(`Could not archive the session.`,`danger`)})},children:`Archive`},void 0,!1,{fileName:P,lineNumber:349,columnNumber:13},this)]},void 0,!0,{fileName:P,lineNumber:339,columnNumber:11},this)]},void 0,!0,{fileName:P,lineNumber:287,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:227,columnNumber:7},this),fe&&(0,A.jsxDEV)(Qr,{status:c.status,review:y,onTriage:()=>x(`review`),onCopyExecuteLine:async()=>{s(await tn(ue)?`Execute line copied`:`Could not copy`,`success`)}},void 0,!1,{fileName:P,lineNumber:367,columnNumber:9},this),re&&(0,A.jsxDEV)(Jr,{conflictCount:re.count,onOpenMerge:()=>{E(re.etag,re.theirs,re.merged)},onKeepMine:()=>{S!==void 0&&oe(S,!0)},onTakeTheirs:async()=>{S!==void 0&&await v.mutateAsync({sessionId:e,body:S}),E(re.etag,re.theirs,re.theirs),s(`Your version was parked in .invariant/sessions/.conflicts/`,`info`)}},void 0,!1,{fileName:P,lineNumber:378,columnNumber:9},this),c.needsMigration&&(0,A.jsxDEV)(`div`,{className:`banner banner--warning`,children:[(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:`This session has no canonical header.`},void 0,!1,{fileName:P,lineNumber:402,columnNumber:13},this),` `,c.issues[0]]},void 0,!0,{fileName:P,lineNumber:401,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`banner__actions`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>g.mutate(e,{onSuccess:()=>s(`Header migrated`,`success`),onError:()=>s(`Could not migrate the header.`,`danger`)}),children:`Fix header`},void 0,!1,{fileName:P,lineNumber:405,columnNumber:13},this)},void 0,!1,{fileName:P,lineNumber:404,columnNumber:11},this)]},void 0,!0,{fileName:P,lineNumber:400,columnNumber:9},this),!fe&&c.status===`executed`&&(0,A.jsxDEV)(Xr,{session:c,onOpenSession:a,onToast:s},void 0,!1,{fileName:P,lineNumber:422,columnNumber:9},this),fe&&b===`review`?y?(0,A.jsxDEV)(Fi,{review:y,projectDirectory:d?.directory,onPlanned:()=>x(`plan`),onOpenSettings:o},void 0,!1,{fileName:P,lineNumber:431,columnNumber:11},this):(0,A.jsxDEV)(`div`,{className:`page-state`,children:`The review document has not been written yet. Paste the execute line into a new agent conversation, and the comments will appear here as soon as it saves them.`},void 0,!1,{fileName:P,lineNumber:438,columnNumber:11},this):(0,A.jsxDEV)(`div`,{className:`session__body session__body--${t}`,children:(0,A.jsxDEV)(k.Suspense,{fallback:(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading…`},void 0,!1,{fileName:P,lineNumber:445,columnNumber:31},this),children:[t!==`preview`&&(0,A.jsxDEV)(zi,{value:de,onChange:ne,onSave:se},void 0,!1,{fileName:P,lineNumber:446,columnNumber:36},this),t!==`edit`&&(0,A.jsxDEV)(Bi,{body:de,withToc:t===`preview`},void 0,!1,{fileName:P,lineNumber:447,columnNumber:33},this)]},void 0,!0,{fileName:P,lineNumber:445,columnNumber:11},this)},void 0,!1,{fileName:P,lineNumber:444,columnNumber:9},this),ee&&(0,A.jsxDEV)(ei,{review:c,candidates:ce,busy:_.isPending,onClose:()=>te(!1),onLink:t=>_.mutate({sessionId:e,parentSessionId:t},{onSuccess:()=>{te(!1),s(`Review linked`,`success`)},onError:e=>s(e instanceof Error?e.message:`Could not link the review.`,`danger`)})},void 0,!1,{fileName:P,lineNumber:453,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:226,columnNumber:5},this)}var Wi={prompt:``,context:``,full:!1};function Gi(e){return`invariant.ui.session-draft:${e??`unknown`}`}function Ki(e){return e.prompt.trim().length===0&&e.context.trim().length===0&&!e.full}function qi(e){try{let t=window.localStorage.getItem(Gi(e));if(!t)return Wi;let n=JSON.parse(t);if(typeof n!=`object`||!n)return Wi;let r=n;return{prompt:typeof r.prompt==`string`?r.prompt:``,context:typeof r.context==`string`?r.context:``,full:r.full===!0}}catch{return Wi}}function Ji(e,t){try{if(Ki(e)){window.localStorage.removeItem(Gi(t));return}window.localStorage.setItem(Gi(t),JSON.stringify(e))}catch{}}function Yi(e){try{window.localStorage.removeItem(Gi(e))}catch{}}var Xi=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/NewSessionModal.tsx`;function Zi({busy:e,projectDirectory:t,onClose:n,onSubmit:r}){let[i]=(0,k.useState)(()=>qi(t)),[a,o]=(0,k.useState)(i.prompt),[s,c]=(0,k.useState)(i.context),[l,u]=(0,k.useState)(i.full),d=(0,k.useRef)(!Ki(i)),f=!Ki({prompt:a,context:s,full:l});(0,k.useEffect)(()=>{let e=window.setTimeout(()=>Ji({prompt:a,context:s,full:l},t),300);return()=>window.clearTimeout(e)},[a,s,l,t]);let p=()=>{let n=a.trim();n.length===0||e||(Yi(t),r({prompt:n,context:s.trim()||void 0,full:l||void 0}))};return(0,A.jsxDEV)(Mn,{title:`New session`,onClose:()=>{Yi(t),n()},width:620,dirty:f,confirmClose:{title:`Discard this session?`,body:"Your task description has not been sent to `invariant plan`. Closing loses what you typed.",confirmLabel:`Discard`,cancelLabel:`Keep editing`},footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:d.current?`Restored your last draft`:(0,A.jsxDEV)(A.Fragment,{children:[`Runs `,(0,A.jsxDEV)(`code`,{children:`invariant plan`},void 0,!1,{fileName:Xi,lineNumber:64,columnNumber:72},this),` in this project`]},void 0,!0,{fileName:Xi,lineNumber:64,columnNumber:65},this)},void 0,!1,{fileName:Xi,lineNumber:63,columnNumber:11},this),(0,A.jsxDEV)(Qi,{},void 0,!1,{fileName:Xi,lineNumber:66,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:p,disabled:e||a.trim().length===0,children:e?`Creating…`:`Create session ⌘↵`},void 0,!1,{fileName:Xi,lineNumber:67,columnNumber:11},this)]},void 0,!0,{fileName:Xi,lineNumber:62,columnNumber:9},this),children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Task`},void 0,!1,{fileName:Xi,lineNumber:74,columnNumber:9},this),(0,A.jsxDEV)(`textarea`,{className:`field__input field__input--area`,"data-autofocus":!0,rows:6,value:a,placeholder:`Describe what should be planned and built…`,onChange:e=>o(e.target.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),p())}},void 0,!1,{fileName:Xi,lineNumber:75,columnNumber:9},this)]},void 0,!0,{fileName:Xi,lineNumber:73,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`field-row`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Context `,(0,A.jsxDEV)(`span`,{className:`field__optional`,children:`optional`},void 0,!1,{fileName:Xi,lineNumber:90,columnNumber:50},this)]},void 0,!0,{fileName:Xi,lineNumber:90,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:s,placeholder:`package/context-name`,onChange:e=>c(e.target.value)},void 0,!1,{fileName:Xi,lineNumber:91,columnNumber:11},this)]},void 0,!0,{fileName:Xi,lineNumber:89,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:l,onChange:e=>u(e.target.checked)},void 0,!1,{fileName:Xi,lineNumber:100,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Inline full instructions (`,(0,A.jsxDEV)(`code`,{children:`--full`},void 0,!1,{fileName:Xi,lineNumber:101,columnNumber:43},this),`)`]},void 0,!0,{fileName:Xi,lineNumber:101,columnNumber:11},this)]},void 0,!0,{fileName:Xi,lineNumber:99,columnNumber:9},this)]},void 0,!0,{fileName:Xi,lineNumber:88,columnNumber:7},this)]},void 0,!0,{fileName:Xi,lineNumber:46,columnNumber:5},this)}function Qi(){let e=On();return(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:e,children:`Cancel`},void 0,!1,{fileName:Xi,lineNumber:112,columnNumber:5},this)}function $i(e){let t={slugs:[],sessionIds:[],skipped:0};for(let n of e)n.document&&n.slug?t.slugs.push(n.slug):n.reviewSession?t.sessionIds.push(n.reviewSession.id):t.skipped+=1;return t}function ea(e){return e.slugs.length+e.sessionIds.length}function ta(e){let t=[];return e.slugs.length>0&&t.push(`${e.slugs.length} document${e.slugs.length===1?``:`s`} move to the review directory’s .archive/, along with the review sessions that wrote them`),e.sessionIds.length>0&&t.push(`${e.sessionIds.length} review${e.sessionIds.length===1?``:`s`} not written yet move to .invariant/sessions/.archive/`),`${t.length>0?`${t.join(`. `)}.`:`Nothing to move.`} The sessions under review are not touched.`}var na=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewBulkBar.tsx`;function ra({entries:e,count:t,hiddenCount:n,onClear:r,onNarrow:i}){let a=Fn(),o=lr(),s=cr(),[c,l]=(0,k.useState)(!1),[u,d]=(0,k.useState)(!1),f=$i(e),p=async()=>{d(!0),l(!1);let[t,n]=await Promise.all([Vr(f.slugs,e=>o.mutateAsync(e)),Vr(f.sessionIds,e=>s.mutateAsync(e))]),c={ok:[...t.ok,...n.ok],failed:[...t.failed,...n.failed]},{message:u,tone:p}=Hr(c,{done:`Archived`,doing:`archive`,noun:`review`});if(a(u,p),c.failed.length===0)r();else{let t=new Set(c.failed.map(e=>e.id));i(e.filter(e=>e.slug!==void 0&&t.has(e.slug)||e.reviewSession!==void 0&&t.has(e.reviewSession.id)).map(e=>e.key))}d(!1)};return(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(Cn,{count:t,hiddenCount:n,noun:`review`,busy:u,onClear:r,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,disabled:u||ea(f)===0,title:ea(f)===0?`Nothing in this selection can be archived.`:void 0,onClick:()=>l(!0),children:u?`Archiving…`:`Archive`},void 0,!1,{fileName:na,lineNumber:80,columnNumber:9},this)},void 0,!1,{fileName:na,lineNumber:79,columnNumber:7},this),c&&(0,A.jsxDEV)(Mn,{title:`Archive ${ea(f)} review${ea(f)===1?``:`s`}?`,onClose:()=>l(!1),footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>l(!1),children:`Cancel`},void 0,!1,{fileName:na,lineNumber:97,columnNumber:15},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,onClick:()=>void p(),children:`Archive`},void 0,!1,{fileName:na,lineNumber:104,columnNumber:15},this)]},void 0,!0,{fileName:na,lineNumber:96,columnNumber:13},this),children:[(0,A.jsxDEV)(`p`,{className:`modal__text`,children:ta(f)},void 0,!1,{fileName:na,lineNumber:110,columnNumber:11},this),(0,A.jsxDEV)(`p`,{className:`modal__text modal__text--muted`,children:`Nothing is deleted — every file stays readable on disk.`},void 0,!1,{fileName:na,lineNumber:111,columnNumber:11},this)]},void 0,!0,{fileName:na,lineNumber:92,columnNumber:9},this)]},void 0,!0,{fileName:na,lineNumber:78,columnNumber:5},this)}function ia(e,t){let n=new Map(t.map(e=>[e.id,e])),r=t.filter(e=>e.kind===`review`),i=new Map;for(let e of r){if(!e.reviewFile)continue;let t=an(e.reviewFile);i.set(t,[...i.get(t)??[],e])}let a=new Set,o=[];for(let t of e){let e=i.get(t.slug)??[],r=t.sessionId?n.get(t.sessionId):void 0,s=r??oa(e);for(let t of e)a.add(t.id);r&&a.add(r.id);let c=s?.parent?n.get(s.parent):void 0;o.push({key:t.slug,slug:t.slug,branch:t.branch,path:t.path,document:t,reviewSession:s,subject:c,link:aa(s,c),state:t.counts.open>0?`triage`:`settled`,updated:sa(t.updated,s?.updated)})}for(let e of r){if(a.has(e.id))continue;let t=e.parent?n.get(e.parent):void 0;o.push({key:e.id,slug:e.reviewFile?an(e.reviewFile):void 0,branch:e.branch??e.title,path:e.reviewFile,reviewSession:e,subject:t,link:aa(e,t),state:`pending`,updated:e.updated})}return o.sort((e,t)=>e.state===`triage`==(t.state===`triage`)?t.updated.localeCompare(e.updated):e.state===`triage`?-1:1)}function aa(e,t){return e?t?`attached`:e.parent?`orphaned`:`standalone`:`unowned`}function oa(e){return e.reduce((e,t)=>!e||t.updated.localeCompare(e.updated)>0?t:e,void 0)}function sa(e,t){return t&&t.localeCompare(e)>0?t:e}var ca={selected:new Set};function la(e,t,n,r={}){let i=new Set(e.selected);if(r.range&&e.anchor!==void 0){let r=t.indexOf(e.anchor),a=t.indexOf(n);if(r!==-1&&a!==-1){let[n,o]=r<=a?[r,a]:[a,r];for(let e of t.slice(n,o+1))i.add(e);return{selected:i,anchor:e.anchor}}}return i.has(n)?i.delete(n):i.add(n),{selected:i,anchor:n}}function ua(e,t){return{selected:new Set([...e.selected,...t]),anchor:e.anchor}}function da(e,t){if(e.selected.size===0)return e;let n=[...e.selected].filter(e=>t.has(e));return n.length===e.selected.size?e:{selected:new Set(n),anchor:e.anchor!==void 0&&t.has(e.anchor)?e.anchor:void 0}}function fa(e,t){let n=ma(e,t);return t.length>0&&n===t.length?`all`:n>0?`some`:`none`}function pa(e,t){return e.size-ma(e,t)}function ma(e,t){return t.reduce((t,n)=>e.has(n)?t+1:t,0)}function ha(e,t=e){let[n,r]=(0,k.useState)(ca),i=(0,k.useRef)(e);i.current=e;let a=(0,k.useMemo)(()=>new Set(t),[t]);(0,k.useEffect)(()=>{r(e=>da(e,a))},[a]);let o=(0,k.useCallback)((e,t)=>{r(n=>la(n,i.current,e,t))},[]),s=(0,k.useCallback)(()=>{r(e=>ua(e,i.current))},[]),c=(0,k.useCallback)(()=>r(ca),[]),l=(0,k.useCallback)(e=>{r({selected:new Set(e)})},[]),{selected:u}=n;return{selected:u,count:u.size,isSelected:(0,k.useCallback)(e=>u.has(e),[u]),toggle:o,selectAll:s,clear:c,replace:l,headerState:fa(u,e),hiddenCount:pa(u,e)}}var F=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewsPage.tsx`;function I({onOpen:e,onOpenSession:t,onReviewBranch:n}){let{data:r,isLoading:i}=fr(),{data:a}=er(),{data:o,isLoading:s}=tr(),c=(0,k.useMemo)(()=>ia(r?.reviews??[],o?.sessions??[]),[r,o]),l=c.filter(e=>e.state===`pending`).length,u=ha((0,k.useMemo)(()=>c.map(e=>e.key),[c])),d=(0,k.useMemo)(()=>c.filter(e=>u.isSelected(e.key)),[c,u]);return(0,k.useEffect)(()=>{let e=e=>{let t=e.target;if(!(t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`))){if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`a`){e.preventDefault(),u.selectAll();return}e.key===`Escape`&&u.count>0&&(e.stopPropagation(),u.clear())}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[u]),i||s?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading reviews…`},void 0,!1,{fileName:F,lineNumber:68,columnNumber:44},this):c.length===0?(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`No reviews yet`},void 0,!1,{fileName:F,lineNumber:73,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`A review is an XML file in `,(0,A.jsxDEV)(`code`,{children:r?.directory??`doc/review`},void 0,!1,{fileName:F,lineNumber:75,columnNumber:38},this),` holding one pass over a branch, read by a fresh agent that has not seen the plan. There are two ways in: finish a session and use `,(0,A.jsxDEV)(`strong`,{children:`Request review`},void 0,!1,{fileName:F,lineNumber:77,columnNumber:36},this),` there, or review the branch you are on right now — for work no session of yours covers.`]},void 0,!0,{fileName:F,lineNumber:74,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:n,children:`Review a branch`},void 0,!1,{fileName:F,lineNumber:80,columnNumber:9},this)]},void 0,!0,{fileName:F,lineNumber:72,columnNumber:7},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:`Reviews`},void 0,!1,{fileName:F,lineNumber:91,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`topbar__path`,children:a?.name??r?.directory},void 0,!1,{fileName:F,lineNumber:92,columnNumber:11},this)]},void 0,!0,{fileName:F,lineNumber:90,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__counts`,children:[(0,A.jsxDEV)(`span`,{className:`count count--review`,title:`Awaiting triage`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:r?.awaitingTriage??0},void 0,!1,{fileName:F,lineNumber:97,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:`Awaiting triage`},void 0,!1,{fileName:F,lineNumber:98,columnNumber:15},this)]},void 0,!0,{fileName:F,lineNumber:96,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`count count--planning`,title:`Reviews an agent is still writing`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:l},void 0,!1,{fileName:F,lineNumber:101,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:`In flight`},void 0,!1,{fileName:F,lineNumber:102,columnNumber:15},this)]},void 0,!0,{fileName:F,lineNumber:100,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`count count--planned`,title:`Staged`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:r?.counts.staged??0},void 0,!1,{fileName:F,lineNumber:105,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:`Staged`},void 0,!1,{fileName:F,lineNumber:106,columnNumber:15},this)]},void 0,!0,{fileName:F,lineNumber:104,columnNumber:13},this)]},void 0,!0,{fileName:F,lineNumber:95,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:n,children:`Review a branch`},void 0,!1,{fileName:F,lineNumber:110,columnNumber:11},this)]},void 0,!0,{fileName:F,lineNumber:94,columnNumber:9},this)]},void 0,!0,{fileName:F,lineNumber:89,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`list${u.count>0?` is-selecting`:``}`,children:(0,A.jsxDEV)(`table`,{className:`list__table list__table--reviews`,children:[(0,A.jsxDEV)(`colgroup`,{children:[(0,A.jsxDEV)(`col`,{className:`col--select`},void 0,!1,{fileName:F,lineNumber:124,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--branch`},void 0,!1,{fileName:F,lineNumber:125,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--work`},void 0,!1,{fileName:F,lineNumber:126,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--triage`},void 0,!1,{fileName:F,lineNumber:127,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--runs`},void 0,!1,{fileName:F,lineNumber:128,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--updated`},void 0,!1,{fileName:F,lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:F,lineNumber:123,columnNumber:11},this),(0,A.jsxDEV)(`thead`,{children:(0,A.jsxDEV)(`tr`,{children:[(0,A.jsxDEV)(`th`,{scope:`col`,className:`list__select`,children:(0,A.jsxDEV)(At,{state:u.headerState,label:`Select every review`,onChange:e=>e?u.selectAll():u.clear()},void 0,!1,{fileName:F,lineNumber:134,columnNumber:17},this)},void 0,!1,{fileName:F,lineNumber:133,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Branch`},void 0,!1,{fileName:F,lineNumber:140,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Work under review`},void 0,!1,{fileName:F,lineNumber:141,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Triage`},void 0,!1,{fileName:F,lineNumber:142,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Runs`},void 0,!1,{fileName:F,lineNumber:143,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Updated`},void 0,!1,{fileName:F,lineNumber:144,columnNumber:15},this)]},void 0,!0,{fileName:F,lineNumber:132,columnNumber:13},this)},void 0,!1,{fileName:F,lineNumber:131,columnNumber:11},this),(0,A.jsxDEV)(`tbody`,{children:c.map(n=>{let r=n.state===`pending`,i=u.isSelected(n.key);return(0,A.jsxDEV)(`tr`,{className:[r?`reviews__row--pending`:``,i?`is-selected`:``].filter(Boolean).join(` `)||void 0,"aria-selected":i,onClick:()=>n.slug&&n.document?e(n.slug):n.reviewSession&&t(n.reviewSession.id),children:[(0,A.jsxDEV)(`td`,{className:`list__select`,onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)(kt,{checked:i,label:`Select the review of ${n.branch}`,onChange:(e,t)=>u.toggle(n.key,t)},void 0,!1,{fileName:F,lineNumber:167,columnNumber:21},this)},void 0,!1,{fileName:F,lineNumber:166,columnNumber:19},this),(0,A.jsxDEV)(`td`,{children:[(0,A.jsxDEV)(`div`,{className:`list__title cell-clip`,title:n.branch,children:n.branch},void 0,!1,{fileName:F,lineNumber:174,columnNumber:21},this),(0,A.jsxDEV)(`div`,{className:`list__excerpt cell-clip`,title:r?`Not written yet — the agent writes it to ${n.path??`the review directory`}`:n.path,children:n.path??`—`},void 0,!1,{fileName:F,lineNumber:175,columnNumber:21},this)]},void 0,!0,{fileName:F,lineNumber:173,columnNumber:19},this),(0,A.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)(ga,{entry:n,onOpenSession:t},void 0,!1,{fileName:F,lineNumber:187,columnNumber:21},this)},void 0,!1,{fileName:F,lineNumber:186,columnNumber:19},this),(0,A.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)(_a,{entry:n},void 0,!1,{fileName:F,lineNumber:190,columnNumber:21},this)},void 0,!1,{fileName:F,lineNumber:189,columnNumber:19},this),(0,A.jsxDEV)(`td`,{className:`list__meta`,children:n.document?.runCount??`—`},void 0,!1,{fileName:F,lineNumber:192,columnNumber:19},this),(0,A.jsxDEV)(`td`,{className:`list__meta`,title:n.updated,children:Zt(n.updated)},void 0,!1,{fileName:F,lineNumber:193,columnNumber:19},this)]},n.key,!0,{fileName:F,lineNumber:152,columnNumber:17},this)})},void 0,!1,{fileName:F,lineNumber:147,columnNumber:11},this)]},void 0,!0,{fileName:F,lineNumber:117,columnNumber:9},this)},void 0,!1,{fileName:F,lineNumber:116,columnNumber:7},this),u.count>0&&(0,A.jsxDEV)(ra,{entries:d,count:u.count,hiddenCount:u.hiddenCount,onClear:u.clear,onNarrow:u.replace},void 0,!1,{fileName:F,lineNumber:202,columnNumber:9},this)]},void 0,!0,{fileName:F,lineNumber:88,columnNumber:5},this)}function ga({entry:e,onOpenSession:t}){return e.subject?(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button cell-clip`,title:e.subject.title,onClick:()=>t(e.subject?.id),children:e.subject.title},void 0,!1,{fileName:F,lineNumber:230,columnNumber:7},this):e.link===`unowned`?(0,A.jsxDEV)(`span`,{className:`reviews__standalone`,title:`No review session in this project owns this file`,children:`—`},void 0,!1,{fileName:F,lineNumber:243,columnNumber:7},this):(0,A.jsxDEV)(`span`,{className:`reviews__standalone`,title:e.link===`orphaned`?`The session this reviewed is no longer listed`:`This review covers a branch on its own`,children:e.link},void 0,!1,{fileName:F,lineNumber:250,columnNumber:5},this)}function _a({entry:e}){if(!e.document){let t=e.reviewSession?Ft(e.reviewSession):void 0;return(0,A.jsxDEV)(`span`,{className:`pill pill--pending`,title:t?.hint??`No review document yet.`,children:t?.label??`Not written yet`},void 0,!1,{fileName:F,lineNumber:271,columnNumber:7},this)}return(0,A.jsxDEV)(va,{review:e.document},void 0,!1,{fileName:F,lineNumber:276,columnNumber:10},this)}function va({review:e}){return e.counts.open>0?(0,A.jsxDEV)(`span`,{className:`pill pill--review`,title:`${e.counts.total} comment(s) in this review`,children:[e.counts.open,` of `,e.counts.total,` awaiting`]},void 0,!0,{fileName:F,lineNumber:282,columnNumber:7},this):e.status===`published`?(0,A.jsxDEV)(`span`,{className:`pill pill--executed`,title:`Staged comments were sent to the code host`,children:[`Published · `,e.counts.staged,` sent`]},void 0,!0,{fileName:F,lineNumber:291,columnNumber:7},this):(0,A.jsxDEV)(`span`,{className:`pill pill--executed`,children:[e.counts.staged,` staged · `,e.counts.discarded,` discarded`]},void 0,!0,{fileName:F,lineNumber:297,columnNumber:5},this)}var ya=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewPage.tsx`;function ba({slug:e,onBack:t,onOpenSession:n,onOpenSettings:r}){let{data:i,isLoading:a,error:o}=pr(e),{data:s}=er();return a?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading review…`},void 0,!1,{fileName:ya,lineNumber:22,columnNumber:25},this):o||!i?(0,A.jsxDEV)(`div`,{className:`page-state`,children:[(0,A.jsxDEV)(`p`,{children:`This review could not be loaded.`},void 0,!1,{fileName:ya,lineNumber:26,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:t,children:`Back to reviews`},void 0,!1,{fileName:ya,lineNumber:27,columnNumber:9},this)]},void 0,!0,{fileName:ya,lineNumber:25,columnNumber:7},this):(0,A.jsxDEV)(`div`,{className:`session`,children:[(0,A.jsxDEV)(`header`,{className:`session__head`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:t,title:`Back (Esc)`,"aria-label":`Back`,children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M9.5 3.5 5 8l4.5 4.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:ya,lineNumber:37,columnNumber:13},this)},void 0,!1,{fileName:ya,lineNumber:36,columnNumber:11},this)},void 0,!1,{fileName:ya,lineNumber:35,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`session__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`session__title`,children:i.branch},void 0,!1,{fileName:ya,lineNumber:43,columnNumber:11},this),(0,A.jsxDEV)(xa,{review:i,project:s},void 0,!1,{fileName:ya,lineNumber:44,columnNumber:11},this)]},void 0,!0,{fileName:ya,lineNumber:42,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`session__controls`,children:i.sessionId&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>n(i.sessionId),children:`Open session`},void 0,!1,{fileName:ya,lineNumber:49,columnNumber:13},this)},void 0,!1,{fileName:ya,lineNumber:47,columnNumber:9},this)]},void 0,!0,{fileName:ya,lineNumber:34,columnNumber:7},this),(0,A.jsxDEV)(Fi,{review:i,projectDirectory:s?.directory,onPlanned:n,onOpenSettings:r},void 0,!1,{fileName:ya,lineNumber:60,columnNumber:7},this)]},void 0,!0,{fileName:ya,lineNumber:33,columnNumber:5},this)}function xa({review:e,project:t}){return(0,A.jsxDEV)(`div`,{className:`session__meta`,children:[(0,A.jsxDEV)(`span`,{children:[`base `,e.base]},void 0,!0,{fileName:ya,lineNumber:79,columnNumber:7},this),(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:ya,lineNumber:80,columnNumber:7},this),(0,A.jsxDEV)(`span`,{title:e.scope.baseSha,children:e.scope.baseSha.slice(0,7)},void 0,!1,{fileName:ya,lineNumber:81,columnNumber:7},this),(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`→`},void 0,!1,{fileName:ya,lineNumber:82,columnNumber:7},this),(0,A.jsxDEV)(`span`,{title:e.scope.headSha,children:e.scope.headSha.slice(0,7)},void 0,!1,{fileName:ya,lineNumber:83,columnNumber:7},this),e.runCount>1&&(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:ya,lineNumber:86,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[e.runCount,` runs`]},void 0,!0,{fileName:ya,lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:ya,lineNumber:85,columnNumber:9},this),t&&(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:ya,lineNumber:92,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:t.name},void 0,!1,{fileName:ya,lineNumber:93,columnNumber:11},this)]},void 0,!0,{fileName:ya,lineNumber:91,columnNumber:9},this)]},void 0,!0,{fileName:ya,lineNumber:78,columnNumber:5},this)}var Sa=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewBranchModal.tsx`;function Ca({busy:e,onClose:t,onSubmit:n}){let{data:r,isLoading:i}=dr(),[a,o]=(0,k.useState)(``),[s,c]=(0,k.useState)(!1);(0,k.useEffect)(()=>{s||!r?.baseBranch||o(r.baseBranch)},[r?.baseBranch,s]);let l=r!==void 0&&!r.canReview,u=a.trim();return(0,A.jsxDEV)(Mn,{title:`Review a branch`,onClose:t,dirty:s&&u!==(r?.baseBranch??``),confirmClose:{title:`Discard this base ref?`,body:`You changed the ref the diff is measured from. Closing goes back to the project default.`},footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:`This review will not be tied to any session.`},void 0,!1,{fileName:Sa,lineNumber:48,columnNumber:11},this),(0,A.jsxDEV)(wa,{},void 0,!1,{fileName:Sa,lineNumber:49,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:e||l||i,title:l?r?.reason:void 0,onClick:()=>n({base:u.length>0&&u!==r?.baseBranch?u:void 0}),children:e?`Creating…`:`Create review session`},void 0,!1,{fileName:Sa,lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:Sa,lineNumber:47,columnNumber:9},this),children:[(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`A fresh agent reads this branch's diff and writes its findings into`,` `,(0,A.jsxDEV)(`code`,{children:`doc/review/<branch>.xml`},void 0,!1,{fileName:Sa,lineNumber:70,columnNumber:9},this),`. Use this for work no session of yours covers — a branch you pulled from someone else.`]},void 0,!0,{fileName:Sa,lineNumber:68,columnNumber:7},this),i?(0,A.jsxDEV)(`p`,{className:`panel__empty`,children:`Reading the branch…`},void 0,!1,{fileName:Sa,lineNumber:75,columnNumber:9},this):l?(0,A.jsxDEV)(`div`,{className:`banner banner--warning`,children:(0,A.jsxDEV)(`div`,{className:`banner__text`,children:r?.reason},void 0,!1,{fileName:Sa,lineNumber:78,columnNumber:11},this)},void 0,!1,{fileName:Sa,lineNumber:77,columnNumber:9},this):(0,A.jsxDEV)(`dl`,{className:`scope`,children:[(0,A.jsxDEV)(`div`,{className:`scope__row`,children:[(0,A.jsxDEV)(`dt`,{className:`scope__term`,children:`Branch`},void 0,!1,{fileName:Sa,lineNumber:83,columnNumber:13},this),(0,A.jsxDEV)(`dd`,{className:`scope__value`,children:r?.branch},void 0,!1,{fileName:Sa,lineNumber:84,columnNumber:13},this)]},void 0,!0,{fileName:Sa,lineNumber:82,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`scope__row`,children:[(0,A.jsxDEV)(`dt`,{className:`scope__term`,children:`Diff`},void 0,!1,{fileName:Sa,lineNumber:87,columnNumber:13},this),(0,A.jsxDEV)(`dd`,{className:`scope__value`,children:[r?.changedFileCount,` file`,r?.changedFileCount===1?``:`s`,r?.hasStagedChanges?` · staged changes included`:` · nothing staged`]},void 0,!0,{fileName:Sa,lineNumber:88,columnNumber:13},this)]},void 0,!0,{fileName:Sa,lineNumber:86,columnNumber:11},this),r?.headSha&&(0,A.jsxDEV)(`div`,{className:`scope__row`,children:[(0,A.jsxDEV)(`dt`,{className:`scope__term`,children:`Head`},void 0,!1,{fileName:Sa,lineNumber:95,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{className:`scope__value scope__value--mono`,title:r.headSha,children:r.headSha.slice(0,7)},void 0,!1,{fileName:Sa,lineNumber:96,columnNumber:15},this)]},void 0,!0,{fileName:Sa,lineNumber:94,columnNumber:13},this)]},void 0,!0,{fileName:Sa,lineNumber:81,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`field`,children:[(0,A.jsxDEV)(`label`,{className:`field__label`,htmlFor:`review-base`,children:[`Base ref `,(0,A.jsxDEV)(`span`,{className:`field__optional`,children:`— what the diff is measured from`},void 0,!1,{fileName:Sa,lineNumber:106,columnNumber:20},this)]},void 0,!0,{fileName:Sa,lineNumber:105,columnNumber:9},this),(0,A.jsxDEV)(`input`,{id:`review-base`,className:`field__input`,"data-autofocus":!0,value:a,placeholder:`origin/main`,onChange:e=>{c(!0),o(e.target.value)}},void 0,!1,{fileName:Sa,lineNumber:108,columnNumber:9},this)]},void 0,!0,{fileName:Sa,lineNumber:104,columnNumber:7},this)]},void 0,!0,{fileName:Sa,lineNumber:38,columnNumber:5},this)}function wa(){let e=On();return(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:e,children:`Cancel`},void 0,!1,{fileName:Sa,lineNumber:125,columnNumber:5},this)}var Ta=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/PackageList.tsx`;function Ea({packages:e,selected:t,filter:n,onFilter:r,onSelect:i,dirty:a}){let o=n.trim().toLowerCase(),s=e.filter(e=>o.length===0||e.name.toLowerCase().includes(o)).sort((e,t)=>e.activeCount>0==t.activeCount>0?e.name.localeCompare(t.name):e.activeCount>0?-1:1);return(0,A.jsxDEV)(`div`,{className:`packages__list`,children:[(0,A.jsxDEV)(`div`,{className:`packages__filter`,children:(0,A.jsxDEV)(`input`,{className:`filter__input`,value:n,placeholder:`Filter packages…`,"aria-label":`Filter packages`,spellCheck:!1,onChange:e=>r(e.target.value)},void 0,!1,{fileName:Ta,lineNumber:38,columnNumber:9},this)},void 0,!1,{fileName:Ta,lineNumber:37,columnNumber:7},this),s.length===0?(0,A.jsxDEV)(`p`,{className:`packages__list-empty`,children:[`No package matches “`,n,`”.`]},void 0,!0,{fileName:Ta,lineNumber:49,columnNumber:9},this):(0,A.jsxDEV)(`ul`,{className:`packages__rows`,children:s.map(e=>(0,A.jsxDEV)(`li`,{children:(0,A.jsxDEV)(`button`,{type:`button`,className:`packages__row${e.name===t?` is-selected`:``}`,onClick:()=>i(e.name),"aria-current":e.name===t?`true`:void 0,children:[(0,A.jsxDEV)(`span`,{className:`packages__dot packages__dot--${e.activeCount>0?`on`:`off`}`},void 0,!1,{fileName:Ta,lineNumber:60,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`packages__row-body`,children:[(0,A.jsxDEV)(`span`,{className:`packages__row-name`,children:[e.name,a.has(e.name)&&(0,A.jsxDEV)(`span`,{className:`packages__row-dirty`,title:`Unapplied changes`,children:`•`},void 0,!1,{fileName:Ta,lineNumber:65,columnNumber:23},this)]},void 0,!0,{fileName:Ta,lineNumber:62,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`packages__row-meta`,children:[(0,A.jsxDEV)(`span`,{className:`chip`,children:e.source},void 0,!1,{fileName:Ta,lineNumber:71,columnNumber:21},this),(0,A.jsxDEV)(Da,{pkg:e},void 0,!1,{fileName:Ta,lineNumber:72,columnNumber:21},this)]},void 0,!0,{fileName:Ta,lineNumber:70,columnNumber:19},this)]},void 0,!0,{fileName:Ta,lineNumber:61,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`packages__row-count`,children:[e.activeCount,`/`,e.totalCount]},void 0,!0,{fileName:Ta,lineNumber:75,columnNumber:17},this)]},void 0,!0,{fileName:Ta,lineNumber:54,columnNumber:15},this)},e.name,!1,{fileName:Ta,lineNumber:53,columnNumber:13},this))},void 0,!1,{fileName:Ta,lineNumber:51,columnNumber:9},this)]},void 0,!0,{fileName:Ta,lineNumber:36,columnNumber:5},this)}function Da({pkg:e}){return e.presence===`cached-only`?(0,A.jsxDEV)(`span`,{className:`chip`,title:`Installed in the cache but not listed in invariant.json`,children:`not declared`},void 0,!1,{fileName:Ta,lineNumber:94,columnNumber:7},this):e.presence===`declared-only`?(0,A.jsxDEV)(`span`,{className:`chip chip--warning`,title:`Listed in invariant.json but not installed here`,children:`not installed`},void 0,!1,{fileName:Ta,lineNumber:101,columnNumber:7},this):null}var Oa={add:[],remove:[]};function ka(e){return`${e.type}/${e.name}`}function Aa(e,t){let n=ka(t);return e.filter(e=>ka(e)!==n)}function ja(e,t){let n=ka(t);return e.some(e=>ka(e)===n)}function Ma(e,t,n){let r={type:t.type,name:t.name},i={add:Aa(e.add,r),remove:Aa(e.remove,r)};return n===t.active?i:n?{...i,add:[...i.add,r]}:{...i,remove:[...i.remove,r]}}function Na(e,t,n,r){return t.filter(e=>e.type===n).reduce((e,t)=>Ma(e,t,r),e)}function Pa(e,t,n){return t.reduce((e,t)=>Ma(e,t,n),e)}function Fa(e,t){let n={type:t.type,name:t.name};return ja(e.add,n)?`adding`:ja(e.remove,n)?`removing`:`unchanged`}function Ia(e,t){let n=Fa(e,t);return n===`adding`||n!==`removing`&&t.active}function La(e,t,n){let r=t.filter(e=>e.type===n);if(r.length===0)return`none`;let i=r.filter(t=>Ia(e,t)).length;return i===0?`none`:i===r.length?`all`:`some`}function Ra(e){return e.add.length+e.remove.length}function za(e){return Ra(e)===0}function Ba(e){return Kt.filter(t=>e.some(e=>e.type===t))}var Va={agents:`agent`,skills:`skill`,commands:`command`,rules:`rule`,contexts:`context`,instructions:`instruction`};function Ha(e,t){return`${Va[t.type]}:${e}/${t.name}`}function Ua(e,t,n={}){let r=[];return t.remove.length>0&&r.push(`invariant remove ${t.remove.map(t=>Ha(e,t)).join(` `)}`),t.add.length>0&&r.push(`invariant add ${t.add.map(t=>Ha(e,t)).join(` `)}`),n.sync&&r.length>0&&r.push(`invariant sync`),r}function Wa(e,t={}){return`invariant install ${[Ga(e),...[t.activate===!1?`--no-add`:void 0,t.sync?`--sync`:void 0].filter(Boolean)].join(` `)}`}function Ga(e){if(e.kind===`github`)return`github:${e.owner}/${e.repo}${e.ref?`#${e.ref}`:``}`;if(e.kind===`skills`){let t=e.slug?`/${e.slug}`:``;return`skills:${e.owner}/${e.repo}${t}${e.ref?`#${e.ref}`:``}`}return`${e.name}${e.version?`@${e.version}`:``}`}function Ka(e){let[t,n,r]=e.trim().replace(/^https?:\/\/(www\.)?skills\.sh\//i,``).replace(/^skills:/i,``).replace(/[?#].*$/,``).replace(/^\/+|\/+$/g,``).split(`/`);return{owner:t||void 0,repo:n||void 0,slug:r||void 0}}function qa(e){let[t,n]=e.trim().replace(/^https?:\/\/(www\.)?github\.com\//i,``).replace(/^git@github\.com:/i,``).replace(/\.git$/i,``).replace(/^\/+|\/+$/g,``).split(`/`);return{owner:t||void 0,repo:n||void 0}}function Ja(e){if(e.source===`skills`&&e.sourceUrl){let{owner:t,repo:n}=Ka(e.sourceUrl);if(t&&n)return{kind:`skills`,owner:t,repo:n}}if(e.source===`github`&&e.sourceUrl){let{owner:t,repo:n}=qa(e.sourceUrl);if(t&&n)return{kind:`github`,owner:t,repo:n}}return{kind:`registry`,name:e.name}}var Ya=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/ItemTypeGroup.tsx`,Xa="invariant.json activates this whole type at once. `invariant remove` cannot undo that entry, so edit invariant.json to change it.";function Za({type:e,items:t,pending:n,locked:r,disabled:i,onToggleItem:a,onToggleType:o}){let s=t.filter(t=>t.type===e),c=La(n,t,e),l=s.filter(e=>Ia(n,e)).length;return(0,A.jsxDEV)(`section`,{className:`packages__group`,children:[(0,A.jsxDEV)(`header`,{className:`packages__group-head`,children:[(0,A.jsxDEV)(`label`,{className:`packages__group-toggle`,children:[(0,A.jsxDEV)(At,{state:c,disabled:i||r,onChange:t=>o(e,t),label:`All ${e}`},void 0,!1,{fileName:Ya,lineNumber:37,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`packages__group-name`,children:e},void 0,!1,{fileName:Ya,lineNumber:43,columnNumber:11},this)]},void 0,!0,{fileName:Ya,lineNumber:36,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`packages__group-count`,children:[l,`/`,s.length]},void 0,!0,{fileName:Ya,lineNumber:46,columnNumber:9},this),r&&(0,A.jsxDEV)(`span`,{className:`chip chip--warning`,title:Xa,children:`declared type-wide`},void 0,!1,{fileName:Ya,lineNumber:51,columnNumber:11},this)]},void 0,!0,{fileName:Ya,lineNumber:35,columnNumber:7},this),(0,A.jsxDEV)(`ul`,{className:`packages__items`,children:s.map(e=>{let t=Fa(n,e);return(0,A.jsxDEV)(`li`,{className:`packages__item${t===`unchanged`?``:` is-staged-${t===`adding`?`add`:`remove`}`}`,children:[(0,A.jsxDEV)(`label`,{className:`packages__item-label`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:Ia(n,e),disabled:i||r,onChange:t=>a(e,t.target.checked),title:r?Xa:void 0},void 0,!1,{fileName:Ya,lineNumber:66,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`packages__item-name`,title:e.canonicalPath,children:e.name},void 0,!1,{fileName:Ya,lineNumber:73,columnNumber:17},this),e.qualifiedName!==e.name&&(0,A.jsxDEV)(`span`,{className:`packages__item-installed`,title:e.canonicalPath,children:e.qualifiedName},void 0,!1,{fileName:Ya,lineNumber:79,columnNumber:19},this)]},void 0,!0,{fileName:Ya,lineNumber:65,columnNumber:15},this),t!==`unchanged`&&(0,A.jsxDEV)(`span`,{className:`packages__item-flag`,children:t===`adding`?`will add`:`will remove`},void 0,!1,{fileName:Ya,lineNumber:85,columnNumber:17},this)]},e.name,!0,{fileName:Ya,lineNumber:61,columnNumber:13},this)})},void 0,!1,{fileName:Ya,lineNumber:57,columnNumber:7},this)]},void 0,!0,{fileName:Ya,lineNumber:34,columnNumber:5},this)}var Qa=/\u001b\[[0-9;]*m/g;function $a(e){return e.replace(Qa,``)}var eo=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/Transcript.tsx`;function to({output:e,commandLine:t}){let n=$a(e).trim();return n.length===0&&!t?null:(0,A.jsxDEV)(`div`,{className:`transcript`,children:[t&&(0,A.jsxDEV)(`div`,{className:`transcript__command`,children:[`$ `,t]},void 0,!0,{fileName:eo,lineNumber:22,columnNumber:23},this),n.length>0&&(0,A.jsxDEV)(`pre`,{className:`transcript__body`,children:n},void 0,!1,{fileName:eo,lineNumber:23,columnNumber:27},this)]},void 0,!0,{fileName:eo,lineNumber:21,columnNumber:5},this)}var no=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/PackageDetail.tsx`;function ro({pkg:e,pending:t,busy:n,failure:r,onToggleItem:i,onToggleType:a,onStageAll:o,onUninstall:s,onInstallMissing:c,onDismissFailure:l}){let u=Ba(e.items),d=new Set(e.typeWideActive);return(0,A.jsxDEV)(`section`,{className:`packages__detail`,"aria-label":`${e.name} contents`,children:[(0,A.jsxDEV)(`header`,{className:`packages__detail-head`,children:[(0,A.jsxDEV)(`div`,{className:`packages__identity`,children:[(0,A.jsxDEV)(`h2`,{className:`packages__title`,children:[e.name,(0,A.jsxDEV)(`span`,{className:`packages__version`,children:[`@`,e.version]},void 0,!0,{fileName:no,lineNumber:48,columnNumber:13},this)]},void 0,!0,{fileName:no,lineNumber:46,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`packages__meta`,children:[(0,A.jsxDEV)(io,{pkg:e},void 0,!1,{fileName:no,lineNumber:51,columnNumber:13},this),e.author&&(0,A.jsxDEV)(`span`,{className:`packages__author`,children:e.author},void 0,!1,{fileName:no,lineNumber:52,columnNumber:28},this)]},void 0,!0,{fileName:no,lineNumber:50,columnNumber:11},this),e.description&&(0,A.jsxDEV)(`p`,{className:`packages__description`,children:e.description},void 0,!1,{fileName:no,lineNumber:54,columnNumber:31},this)]},void 0,!0,{fileName:no,lineNumber:45,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`packages__detail-actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:n||e.totalCount===0||e.activeCount===e.totalCount,onClick:()=>o(!0),children:`Add all`},void 0,!1,{fileName:no,lineNumber:58,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:n||e.activeCount===0,onClick:()=>o(!1),children:`Remove all`},void 0,!1,{fileName:no,lineNumber:66,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,disabled:n,onClick:s,children:`Uninstall`},void 0,!1,{fileName:no,lineNumber:74,columnNumber:11},this)]},void 0,!0,{fileName:no,lineNumber:57,columnNumber:9},this)]},void 0,!0,{fileName:no,lineNumber:44,columnNumber:7},this),r&&(0,A.jsxDEV)(`div`,{className:`packages__failure`,role:`alert`,children:[(0,A.jsxDEV)(`div`,{className:`packages__failure-head`,children:[(0,A.jsxDEV)(`strong`,{children:r.message},void 0,!1,{fileName:no,lineNumber:83,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:l,children:`Dismiss`},void 0,!1,{fileName:no,lineNumber:84,columnNumber:13},this)]},void 0,!0,{fileName:no,lineNumber:82,columnNumber:11},this),(0,A.jsxDEV)(to,{output:r.transcript??``,commandLine:r.commandLine},void 0,!1,{fileName:no,lineNumber:88,columnNumber:11},this)]},void 0,!0,{fileName:no,lineNumber:81,columnNumber:9},this),e.presence===`declared-only`?(0,A.jsxDEV)(`div`,{className:`packages__notice`,children:[(0,A.jsxDEV)(`p`,{children:[(0,A.jsxDEV)(`strong`,{children:e.name},void 0,!1,{fileName:no,lineNumber:95,columnNumber:13},this),` is declared in `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:no,lineNumber:95,columnNumber:56},this),` but is not installed in this checkout — the usual cause is a colleague adding it and this working copy never fetching it.`]},void 0,!0,{fileName:no,lineNumber:94,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:n,onClick:c,children:`Install it`},void 0,!1,{fileName:no,lineNumber:99,columnNumber:11},this)]},void 0,!0,{fileName:no,lineNumber:93,columnNumber:9},this):e.totalCount===0?(0,A.jsxDEV)(`p`,{className:`packages__empty-note`,children:`This package ships no items.`},void 0,!1,{fileName:no,lineNumber:104,columnNumber:9},this):(0,A.jsxDEV)(`div`,{className:`packages__tree`,children:u.map(r=>(0,A.jsxDEV)(Za,{type:r,items:e.items,pending:t,locked:d.has(r),disabled:n,onToggleItem:i,onToggleType:a},r,!1,{fileName:no,lineNumber:108,columnNumber:13},this))},void 0,!1,{fileName:no,lineNumber:106,columnNumber:9},this)]},void 0,!0,{fileName:no,lineNumber:43,columnNumber:5},this)}function io({pkg:e}){let t=e.source===`github`?`github`:e.source===`skills`?`skills.sh`:`registry`;return e.sourceUrl?(0,A.jsxDEV)(`a`,{className:`chip chip--link`,href:e.sourceUrl,target:`_blank`,rel:`noreferrer`,children:[t,` ↗`]},void 0,!0,{fileName:no,lineNumber:131,columnNumber:7},this):(0,A.jsxDEV)(`span`,{className:`chip`,children:t},void 0,!1,{fileName:no,lineNumber:136,columnNumber:10},this)}var ao=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/PendingChangesBar.tsx`;function oo({packageName:e,pending:t,sync:n,busy:r,running:i,onSyncChange:a,onDiscard:o,onApply:s}){let c=Ua(e,t,{sync:n});return(0,A.jsxDEV)(`div`,{className:`packages__bar`,role:`region`,"aria-live":`polite`,"aria-label":`Pending changes`,children:[(0,A.jsxDEV)(`div`,{className:`packages__bar-summary`,children:[(0,A.jsxDEV)(`span`,{className:`packages__bar-counts`,children:[t.add.length>0&&(0,A.jsxDEV)(`strong`,{children:[t.add.length,` to add`]},void 0,!0,{fileName:ao,lineNumber:39,columnNumber:38},this),t.add.length>0&&t.remove.length>0&&` · `,t.remove.length>0&&(0,A.jsxDEV)(`strong`,{children:[t.remove.length,` to remove`]},void 0,!0,{fileName:ao,lineNumber:41,columnNumber:41},this)]},void 0,!0,{fileName:ao,lineNumber:38,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__bar-preview`,title:c.join(`
|
|
246
|
-
`),children:i??c.join(` · `)},void 0,!1,{fileName:ao,lineNumber:43,columnNumber:9},this)]},void 0,!0,{fileName:ao,lineNumber:37,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`packages__bar-actions`,children:[(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:n,disabled:r,onChange:e=>a(e.target.checked)},void 0,!1,{fileName:ao,lineNumber:50,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Run `,(0,A.jsxDEV)(`code`,{children:`sync`},void 0,!1,{fileName:ao,lineNumber:57,columnNumber:17},this),` after`]},void 0,!0,{fileName:ao,lineNumber:56,columnNumber:11},this)]},void 0,!0,{fileName:ao,lineNumber:49,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,disabled:r,onClick:o,children:`Discard`},void 0,!1,{fileName:ao,lineNumber:60,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:r,onClick:s,children:r?`Applying…`:`Apply`},void 0,!1,{fileName:ao,lineNumber:63,columnNumber:9},this)]},void 0,!0,{fileName:ao,lineNumber:48,columnNumber:7},this)]},void 0,!0,{fileName:ao,lineNumber:36,columnNumber:5},this)}function so(e){return e.toLowerCase().replace(/[^a-z0-9._-]/g,`-`).replace(/-+/g,`-`).replace(/^[-.]+|[-.]+$/g,``)}function co(e){return e.replace(/^@/,``).replace(/\//g,`-`).toLowerCase().replace(/[^a-z0-9._-]/g,`-`).replace(/-+/g,`-`).replace(/^[-.]+|[-.]+$/g,``)}function lo(e,t){let n=co(e);return!n||t===n||t.startsWith(`${n}-`)?t:`${n}-${t}`}function uo(e,t){return`@${so(e)}/${so(t)}`}function fo(e,t,n,r=`.agents`){return`${r}/skills/${lo(uo(e,t),so(n))}`}function po(e,t,n,r=`.claude`){return`${r}/skills/${lo(uo(e,t),so(n))}`}function mo(e){return!Number.isFinite(e)||e<=0?`0`:e>=1e6?`${ho(e/1e6)}M`:e>=1e3?`${ho(e/1e3)}K`:String(Math.round(e))}function ho(e){return e.toFixed(1).replace(/\.0$/,``)}function go(e){return`${new Intl.NumberFormat(`en-US`).format(Math.max(0,Math.round(e)))} installs`}function _o(e){return e<1024?`${e} B`:e<1048576?`${ho(e/1024)} KB`:`${ho(e/1048576)} MB`}function vo(e){if(!e)return;let t=Date.parse(e);if(Number.isNaN(t))return;let n=Math.floor((Date.now()-t)/864e5);return n<=0?`today`:n===1?`yesterday`:n<30?`${n}d ago`:n<365?`${Math.floor(n/30)}mo ago`:`${Math.floor(n/365)}y ago`}var L=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/InstallPackageModal.tsx`;function yo({busy:e,error:t,onClose:n,onSubmit:r,onBrowseSkills:i}){let[a,o]=(0,k.useState)(`github`),[s,c]=(0,k.useState)(``),[l,u]=(0,k.useState)(``),[d,f]=(0,k.useState)(``),[p,m]=(0,k.useState)(!0),[h,g]=(0,k.useState)(!1),_=(0,k.useMemo)(()=>Ka(d),[d]),v=a===`skills`&&!_.repo?d:``,y=Dr(v),b=(0,k.useMemo)(()=>{if(a===`github`){let{owner:e,repo:t}=qa(s);return!e||!t?void 0:{kind:`github`,owner:e,repo:t,ref:l.trim()||void 0}}let{owner:e,repo:t,slug:n}=_;if(!(!e||!t))return{kind:`skills`,owner:e,repo:t,slug:n}},[a,s,l,_]),x=b?.kind===`skills`&&b.slug?po(b.owner,b.repo,b.slug):void 0,ee=()=>{!b||e||r({source:b,activate:p,sync:h})},te=e=>{e.key===`Enter`&&(e.preventDefault(),ee())};return(0,A.jsxDEV)(Mn,{title:`Install package`,onClose:n,width:640,dirty:[s,l,d].some(e=>e.trim().length>0),confirmClose:{title:`Discard this package?`,body:`Nothing has been installed yet. Closing loses what you typed.`},footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`Runs in `,a===`github`?`GitHub`:`Skills.sh`,` mode`]},void 0,!0,{fileName:L,lineNumber:96,columnNumber:11},this),(0,A.jsxDEV)(xo,{},void 0,!1,{fileName:L,lineNumber:97,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:e||!b,onClick:ee,children:e?`Installing…`:`Install`},void 0,!1,{fileName:L,lineNumber:98,columnNumber:11},this)]},void 0,!0,{fileName:L,lineNumber:95,columnNumber:9},this),children:[(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Package source`,children:[`github`,`skills`].map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":a===e,className:`segmented__item${a===e?` is-active`:``}`,onClick:()=>o(e),children:e===`github`?`GitHub`:`Skills.sh`},e,!1,{fileName:L,lineNumber:111,columnNumber:11},this))},void 0,!1,{fileName:L,lineNumber:109,columnNumber:7},this),a===`github`?(0,A.jsxDEV)(`div`,{className:`field-row`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Repository`},void 0,!1,{fileName:L,lineNumber:127,columnNumber:13},this),(0,A.jsxDEV)(`input`,{className:`field__input`,"data-autofocus":!0,value:s,placeholder:`owner/repo`,onChange:e=>c(e.target.value),onKeyDown:te},void 0,!1,{fileName:L,lineNumber:128,columnNumber:13},this)]},void 0,!0,{fileName:L,lineNumber:126,columnNumber:11},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Ref `,(0,A.jsxDEV)(`span`,{className:`field__optional`,children:`optional`},void 0,!1,{fileName:L,lineNumber:139,columnNumber:19},this)]},void 0,!0,{fileName:L,lineNumber:138,columnNumber:13},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:l,placeholder:`branch, tag or commit`,onChange:e=>u(e.target.value),onKeyDown:te},void 0,!1,{fileName:L,lineNumber:141,columnNumber:13},this)]},void 0,!0,{fileName:L,lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:L,lineNumber:125,columnNumber:9},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Skill`},void 0,!1,{fileName:L,lineNumber:153,columnNumber:13},this),(0,A.jsxDEV)(`input`,{className:`field__input`,"data-autofocus":!0,value:d,placeholder:`search, or paste owner/repo/skill`,spellCheck:!1,onChange:e=>f(e.target.value),onKeyDown:te},void 0,!1,{fileName:L,lineNumber:154,columnNumber:13},this)]},void 0,!0,{fileName:L,lineNumber:152,columnNumber:11},this),(0,A.jsxDEV)(bo,{loading:y.isLoading&&v.length>=2,unavailable:y.isError||y.data?.unavailable===!0,query:v,skills:y.data?.skills??[],selected:b?.kind===`skills`?`${b.owner}/${b.repo}/${b.slug??``}`:``,onPick:e=>{f(`${e.owner}/${e.repo}/${e.slug}`)}},void 0,!1,{fileName:L,lineNumber:165,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:i,children:`Browse all skills →`},void 0,!1,{fileName:L,lineNumber:174,columnNumber:11},this)]},void 0,!0,{fileName:L,lineNumber:151,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`packages__install-options`,children:[(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:p,onChange:e=>m(e.target.checked)},void 0,!1,{fileName:L,lineNumber:182,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:a===`skills`?`Activate now`:`Activate all items now`},void 0,!1,{fileName:L,lineNumber:183,columnNumber:11},this)]},void 0,!0,{fileName:L,lineNumber:181,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:h,onChange:e=>g(e.target.checked)},void 0,!1,{fileName:L,lineNumber:186,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Run `,(0,A.jsxDEV)(`code`,{children:`sync`},void 0,!1,{fileName:L,lineNumber:188,columnNumber:17},this),` after`]},void 0,!0,{fileName:L,lineNumber:187,columnNumber:11},this)]},void 0,!0,{fileName:L,lineNumber:185,columnNumber:9},this)]},void 0,!0,{fileName:L,lineNumber:180,columnNumber:7},this),x&&(0,A.jsxDEV)(`div`,{className:`packages__preview`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Installs as`},void 0,!1,{fileName:L,lineNumber:195,columnNumber:11},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:x},void 0,!1,{fileName:L,lineNumber:196,columnNumber:11},this)]},void 0,!0,{fileName:L,lineNumber:194,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`packages__preview`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Command`},void 0,!1,{fileName:L,lineNumber:201,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:b?Wa(b,{activate:p,sync:h}):`invariant install …`},void 0,!1,{fileName:L,lineNumber:202,columnNumber:9},this)]},void 0,!0,{fileName:L,lineNumber:200,columnNumber:7},this),t&&(0,A.jsxDEV)(`p`,{className:`packages__inline-error`,role:`alert`,children:t},void 0,!1,{fileName:L,lineNumber:208,columnNumber:9},this)]},void 0,!0,{fileName:L,lineNumber:85,columnNumber:5},this)}function bo({loading:e,unavailable:t,query:n,skills:r,selected:i,onPick:a}){return n.length<2?(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:[`Type two characters to search skills.sh, or paste `,(0,A.jsxDEV)(`code`,{children:`owner/repo/skill`},void 0,!1,{fileName:L,lineNumber:240,columnNumber:59},this),`.`]},void 0,!0,{fileName:L,lineNumber:239,columnNumber:7},this):e?(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:`Searching skills.sh…`},void 0,!1,{fileName:L,lineNumber:244,columnNumber:23},this):t?(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:[`skills.sh is unreachable — paste `,(0,A.jsxDEV)(`code`,{children:`owner/repo/skill`},void 0,!1,{fileName:L,lineNumber:248,columnNumber:42},this),` to install anyway.`]},void 0,!0,{fileName:L,lineNumber:247,columnNumber:7},this):r.length===0?(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:[`No skill matches “`,n,`”.`]},void 0,!0,{fileName:L,lineNumber:253,columnNumber:12},this):(0,A.jsxDEV)(`ul`,{className:`packages__picker`,children:r.slice(0,20).map(e=>{let t=`${e.owner}/${e.repo}/${e.slug}`;return(0,A.jsxDEV)(`li`,{children:(0,A.jsxDEV)(`button`,{type:`button`,className:`packages__picker-item${i===t?` is-selected`:``}`,onClick:()=>a(e),children:[(0,A.jsxDEV)(`span`,{className:`packages__picker-name`,children:[e.name,e.isOfficial&&(0,A.jsxDEV)(`span`,{className:`chip chip--official`,children:`official`},void 0,!1,{fileName:L,lineNumber:269,columnNumber:38},this)]},void 0,!0,{fileName:L,lineNumber:267,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`packages__picker-text`,children:[e.source,(0,A.jsxDEV)(`span`,{className:`skills__installs`,title:go(e.installs),children:[mo(e.installs),` installs`]},void 0,!0,{fileName:L,lineNumber:273,columnNumber:17},this)]},void 0,!0,{fileName:L,lineNumber:271,columnNumber:15},this)]},void 0,!0,{fileName:L,lineNumber:262,columnNumber:13},this)},t,!1,{fileName:L,lineNumber:261,columnNumber:11},this)})},void 0,!1,{fileName:L,lineNumber:257,columnNumber:5},this)}function xo(){let e=On();return(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:e,children:`Cancel`},void 0,!1,{fileName:L,lineNumber:289,columnNumber:5},this)}var So=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/UninstallConfirm.tsx`;function Co({packageName:e,busy:t,onClose:n,onConfirm:r}){return(0,A.jsxDEV)(Mn,{title:`Uninstall ${e}?`,onClose:n,width:520,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`Runs `,(0,A.jsxDEV)(`code`,{children:[`invariant uninstall `,e]},void 0,!0,{fileName:So,lineNumber:19,columnNumber:18},this)]},void 0,!0,{fileName:So,lineNumber:18,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:n,children:`Cancel`},void 0,!1,{fileName:So,lineNumber:21,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,disabled:t,onClick:r,children:t?`Uninstalling…`:`Uninstall`},void 0,!1,{fileName:So,lineNumber:24,columnNumber:11},this)]},void 0,!0,{fileName:So,lineNumber:17,columnNumber:9},this),children:[(0,A.jsxDEV)(`p`,{className:`modal__text`,children:[`This removes the cached package, its entry in `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:So,lineNumber:31,columnNumber:55},this),`, and every item it added to your target folders.`]},void 0,!0,{fileName:So,lineNumber:30,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`modal__text modal__text--muted`,children:`Reinstalling brings it all back. Files you wrote yourself are not touched.`},void 0,!1,{fileName:So,lineNumber:34,columnNumber:7},this)]},void 0,!0,{fileName:So,lineNumber:12,columnNumber:5},this)}var wo=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/SyncPanel.tsx`;function To({busy:e,result:t,error:n,targets:r,onClose:i,onRun:a}){let[o,s]=(0,k.useState)(``),[c,l]=(0,k.useState)(!1),u=e=>a({target:o===``?void 0:o,check:e,force:c||void 0}),d=qt.filter(e=>r.includes(e));return(0,A.jsxDEV)(Mn,{title:`Sync`,onClose:i,width:680,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:`Regenerates target folders from the active items`},void 0,!1,{fileName:wo,lineNumber:40,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:e,onClick:()=>u(!0),children:`Check only`},void 0,!1,{fileName:wo,lineNumber:41,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:e,onClick:()=>u(!1),children:e?`Syncing…`:`Sync`},void 0,!1,{fileName:wo,lineNumber:44,columnNumber:11},this)]},void 0,!0,{fileName:wo,lineNumber:39,columnNumber:9},this),children:[(0,A.jsxDEV)(`div`,{className:`field-row`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Target `,(0,A.jsxDEV)(`span`,{className:`field__optional`,children:`all configured`},void 0,!1,{fileName:wo,lineNumber:53,columnNumber:20},this)]},void 0,!0,{fileName:wo,lineNumber:52,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`field__input`,value:o,disabled:e||d.length===0,onChange:e=>s(e.target.value),children:[(0,A.jsxDEV)(`option`,{value:``,children:`Every configured target`},void 0,!1,{fileName:wo,lineNumber:61,columnNumber:13},this),d.map(e=>(0,A.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:wo,lineNumber:63,columnNumber:15},this))]},void 0,!0,{fileName:wo,lineNumber:55,columnNumber:11},this)]},void 0,!0,{fileName:wo,lineNumber:51,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:c,disabled:e,onChange:e=>l(e.target.checked)},void 0,!1,{fileName:wo,lineNumber:71,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Replace hand-edited files (`,(0,A.jsxDEV)(`code`,{children:`--force`},void 0,!1,{fileName:wo,lineNumber:78,columnNumber:40},this),`)`]},void 0,!0,{fileName:wo,lineNumber:77,columnNumber:11},this)]},void 0,!0,{fileName:wo,lineNumber:70,columnNumber:9},this)]},void 0,!0,{fileName:wo,lineNumber:50,columnNumber:7},this),n?(0,A.jsxDEV)(`div`,{className:`packages__result packages__result--danger`,role:`alert`,children:[(0,A.jsxDEV)(`strong`,{children:n.message},void 0,!1,{fileName:wo,lineNumber:85,columnNumber:11},this),(0,A.jsxDEV)(to,{output:n.transcript??``,commandLine:n.commandLine},void 0,!1,{fileName:wo,lineNumber:86,columnNumber:11},this)]},void 0,!0,{fileName:wo,lineNumber:84,columnNumber:9},this):t?(0,A.jsxDEV)(`div`,{className:`packages__result packages__result--${Do(t)}`,role:`status`,children:[(0,A.jsxDEV)(`strong`,{children:Eo(t)},void 0,!1,{fileName:wo,lineNumber:90,columnNumber:11},this),t.checked&&t.drift&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid packages__result-action`,disabled:e,onClick:()=>u(!1),children:`Sync now`},void 0,!1,{fileName:wo,lineNumber:92,columnNumber:13},this),(0,A.jsxDEV)(to,{output:t.run.output,commandLine:t.run.commandLine},void 0,!1,{fileName:wo,lineNumber:101,columnNumber:11},this)]},void 0,!0,{fileName:wo,lineNumber:89,columnNumber:9},this):(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:[(0,A.jsxDEV)(`strong`,{children:`Check only`},void 0,!1,{fileName:wo,lineNumber:105,columnNumber:11},this),` reports drift without writing anything — the same thing CI runs.`]},void 0,!0,{fileName:wo,lineNumber:104,columnNumber:9},this)]},void 0,!0,{fileName:wo,lineNumber:34,columnNumber:5},this)}function Eo(e){return e.checked?e.drift?`Out of sync`:`Everything is in sync`:e.ok?`Synced`:`Sync failed`}function Do(e){return e.checked?e.drift?`warning`:`success`:e.ok?`success`:`danger`}var R=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/PackagesPage.tsx`;function Oo({installOpen:e,syncOpen:t,onInstallOpenChange:n,onSyncOpenChange:r,onBrowseSkills:i}){let a=Fn(),{data:o,isLoading:s}=Tr(),[c,l]=(0,k.useState)(),[u,d]=(0,k.useState)(``),[f,p]=(0,k.useState)(Oa),[m,h]=(0,k.useState)(!1),[g,_]=(0,k.useState)(),[v,y]=(0,k.useState)(!1),[b,x]=(0,k.useState)(),[ee,te]=(0,k.useState)(),[S,ne]=(0,k.useState)(),re=Ar(),ie=jr(),C=Mr(),ae=Nr(),w=(0,k.useMemo)(()=>o?.packages??[],[o]),T=(0,k.useMemo)(()=>w.find(e=>e.name===c),[w,c]);(0,k.useEffect)(()=>{if(w.length===0){l(void 0);return}(!c||!w.some(e=>e.name===c))&&l(w[0].name)},[w,c]);let oe=e=>{e!==c&&(l(e),p(Oa),_(void 0))},E=C.isPending||ie.isPending||re.isPending,se=async()=>{if(!(!T||za(f))){_(void 0);try{let e=await C.mutateAsync({packageName:T.name,add:f.add,remove:f.remove,sync:m||void 0});p(Oa),a(`Applied ${e.runs.length} command${e.runs.length===1?``:`s`}`,`success`)}catch(e){_(ko(e))}}},ce=e=>{T&&p(t=>Pa(t,T.items,e))},le=async()=>{if(T)try{await ie.mutateAsync(T.name),y(!1),p(Oa),a(`Uninstalled ${T.name}`,`success`)}catch(e){y(!1),_(ko(e))}},ue=async e=>{ne(void 0);try{let t=await re.mutateAsync(e);n(!1),t.package?(l(t.package.name),p(Oa),a(`Installed ${t.package.name}@${t.package.version}`,`success`)):a(`Installed`,`success`)}catch(e){ne(ko(e).message)}},de=async e=>{te(void 0),x(void 0);try{x(await ae.mutateAsync(e))}catch(e){te(ko(e))}},fe=e&&(0,A.jsxDEV)(yo,{busy:re.isPending,error:S,onClose:()=>{n(!1),ne(void 0)},onSubmit:e=>void ue(e),onBrowseSkills:()=>{n(!1),i()}},void 0,!1,{fileName:R,lineNumber:177,columnNumber:5},this),pe=t&&(0,A.jsxDEV)(To,{busy:ae.isPending,result:b,error:ee,targets:o?.targets??[],onClose:()=>{r(!1),x(void 0),te(void 0)},onRun:e=>void de(e)},void 0,!1,{fileName:R,lineNumber:193,columnNumber:5},this);return s?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading packages…`},void 0,!1,{fileName:R,lineNumber:207,columnNumber:25},this):o&&!o.initialized?(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`This directory is not an Invariant project`},void 0,!1,{fileName:R,lineNumber:212,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`Packages live in `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:R,lineNumber:214,columnNumber:28},this),`, and there is none in`,` `,(0,A.jsxDEV)(`code`,{children:o.directory},void 0,!1,{fileName:R,lineNumber:215,columnNumber:11},this),` yet. Initializing picks which assistants to sync to, so it is a terminal step rather than a button here:`]},void 0,!0,{fileName:R,lineNumber:213,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:`invariant init claude`},void 0,!1,{fileName:R,lineNumber:218,columnNumber:9},this)]},void 0,!0,{fileName:R,lineNumber:211,columnNumber:7},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:`Packages`},void 0,!1,{fileName:R,lineNumber:227,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`topbar__path`,title:o?.directory,children:o?.name??o?.directory},void 0,!1,{fileName:R,lineNumber:228,columnNumber:11},this)]},void 0,!0,{fileName:R,lineNumber:226,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__counts`,children:[(0,A.jsxDEV)(`span`,{className:`count`,title:`Installed packages`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:o?.totals.packages??0},void 0,!1,{fileName:R,lineNumber:236,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:`Packages`},void 0,!1,{fileName:R,lineNumber:237,columnNumber:15},this)]},void 0,!0,{fileName:R,lineNumber:235,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`count count--in-progress`,title:`Active items across every package`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:o?.totals.activeItems??0},void 0,!1,{fileName:R,lineNumber:240,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:[`of `,o?.totals.totalItems??0,` items active`]},void 0,!0,{fileName:R,lineNumber:241,columnNumber:15},this)]},void 0,!0,{fileName:R,lineNumber:239,columnNumber:13},this)]},void 0,!0,{fileName:R,lineNumber:234,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:i,children:`Browse skills`},void 0,!1,{fileName:R,lineNumber:245,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>r(!0),children:`Sync`},void 0,!1,{fileName:R,lineNumber:248,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>n(!0),children:`Install package`},void 0,!1,{fileName:R,lineNumber:251,columnNumber:11},this)]},void 0,!0,{fileName:R,lineNumber:233,columnNumber:9},this)]},void 0,!0,{fileName:R,lineNumber:225,columnNumber:7},this),w.length===0?(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`No packages yet`},void 0,!1,{fileName:R,lineNumber:259,columnNumber:11},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:`A package bundles agents, skills, commands, rules, contexts and instructions that this project can activate. Install one from a GitHub repository, or browse the skills.sh catalogue, then choose which of its items your assistants actually see.`},void 0,!1,{fileName:R,lineNumber:260,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`empty__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>n(!0),children:`Install package`},void 0,!1,{fileName:R,lineNumber:266,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:i,children:`Browse skills`},void 0,!1,{fileName:R,lineNumber:269,columnNumber:13},this)]},void 0,!0,{fileName:R,lineNumber:265,columnNumber:11},this)]},void 0,!0,{fileName:R,lineNumber:258,columnNumber:9},this):(0,A.jsxDEV)(`div`,{className:`packages`,children:[(0,A.jsxDEV)(Ea,{packages:w,selected:c,filter:u,onFilter:d,onSelect:oe,dirty:new Set(c&&!za(f)?[c]:[])},void 0,!1,{fileName:R,lineNumber:276,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`packages__pane`,children:T?(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(ro,{pkg:T,pending:f,busy:E,failure:g,onToggleItem:(e,t)=>p(n=>Ma(n,e,t)),onToggleType:(e,t)=>p(n=>Na(n,T.items,e,t)),onStageAll:ce,onUninstall:()=>y(!0),onInstallMissing:()=>void ue({source:Ja(T)}),onDismissFailure:()=>_(void 0)},void 0,!1,{fileName:R,lineNumber:288,columnNumber:17},this),!za(f)&&(0,A.jsxDEV)(oo,{packageName:T.name,pending:f,sync:m,busy:C.isPending,running:C.isPending?Ua(T.name,f,{sync:m})[0]:void 0,onSyncChange:h,onDiscard:()=>p(Oa),onApply:()=>void se()},void 0,!1,{fileName:R,lineNumber:306,columnNumber:19},this)]},void 0,!0,{fileName:R,lineNumber:287,columnNumber:15},this):(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Select a package.`},void 0,!1,{fileName:R,lineNumber:323,columnNumber:15},this)},void 0,!1,{fileName:R,lineNumber:285,columnNumber:11},this)]},void 0,!0,{fileName:R,lineNumber:275,columnNumber:9},this),v&&T&&(0,A.jsxDEV)(Co,{packageName:T.name,busy:ie.isPending,onClose:()=>y(!1),onConfirm:()=>void le()},void 0,!1,{fileName:R,lineNumber:330,columnNumber:9},this),fe,pe]},void 0,!0,{fileName:R,lineNumber:224,columnNumber:5},this)}function ko(e){return e instanceof Bn?{message:e.message,commandLine:e.commandLine,transcript:e.transcript}:{message:e instanceof Error?e.message:String(e)}}var Ao=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/skills/Sparkline.tsx`;function jo({values:e,title:t}){if(e.length<2)return null;let n=Math.max(...e),r=Math.min(...e),i=n-r,a=e.map((t,n)=>{let a=n/(e.length-1)*46+1,o=i===0?7:13-(t-r)/i*12;return`${a.toFixed(1)},${o.toFixed(1)}`});return(0,A.jsxDEV)(`svg`,{className:`skills__sparkline`,viewBox:`0 0 48 14`,width:48,height:14,"aria-hidden":`true`,focusable:`false`,children:[t&&(0,A.jsxDEV)(`title`,{children:t},void 0,!1,{fileName:Ao,lineNumber:40,columnNumber:17},this),(0,A.jsxDEV)(`polyline`,{points:a.join(` `),fill:`none`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:Ao,lineNumber:41,columnNumber:7},this)]},void 0,!0,{fileName:Ao,lineNumber:32,columnNumber:5},this)}var Mo=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/skills/SkillList.tsx`;function No(e){return`${e.owner}/${e.repo}/${e.slug}`}function Po({skills:e,selected:t,installedSources:n,onSelect:r}){return(0,A.jsxDEV)(`ul`,{className:`skills__rows`,role:`listbox`,"aria-label":`Skills`,children:e.map(e=>{let i=No(e),a=i===t;return(0,A.jsxDEV)(`li`,{children:(0,A.jsxDEV)(`button`,{type:`button`,role:`option`,"aria-selected":a,className:`skills__row${a?` is-selected`:``}`,onClick:()=>r(e),children:[(0,A.jsxDEV)(`span`,{className:`skills__row-body`,children:[(0,A.jsxDEV)(`span`,{className:`skills__row-name`,children:[(0,A.jsxDEV)(`span`,{className:`skills__row-label`,children:e.name},void 0,!1,{fileName:Mo,lineNumber:43,columnNumber:19},this),e.isOfficial&&(0,A.jsxDEV)(`span`,{className:`chip chip--official`,children:`official`},void 0,!1,{fileName:Mo,lineNumber:44,columnNumber:40},this),n.has(e.source)&&(0,A.jsxDEV)(`span`,{className:`chip`,children:`installed`},void 0,!1,{fileName:Mo,lineNumber:45,columnNumber:58},this)]},void 0,!0,{fileName:Mo,lineNumber:42,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`skills__row-source`,children:e.source},void 0,!1,{fileName:Mo,lineNumber:47,columnNumber:17},this)]},void 0,!0,{fileName:Mo,lineNumber:41,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`skills__row-meta`,children:[(0,A.jsxDEV)(`span`,{className:`skills__installs`,title:go(e.installs),children:mo(e.installs)},void 0,!1,{fileName:Mo,lineNumber:51,columnNumber:17},this),e.installsYesterday!==void 0&&(0,A.jsxDEV)(`span`,{className:`skills__delta`,title:`Installs yesterday`,children:[`+`,mo(e.installsYesterday),`/d`]},void 0,!0,{fileName:Mo,lineNumber:55,columnNumber:19},this),(0,A.jsxDEV)(jo,{values:e.weeklyInstalls,title:e.weeklyInstalls.join(` · `)},void 0,!1,{fileName:Mo,lineNumber:59,columnNumber:17},this)]},void 0,!0,{fileName:Mo,lineNumber:50,columnNumber:15},this)]},void 0,!0,{fileName:Mo,lineNumber:34,columnNumber:13},this)},i,!1,{fileName:Mo,lineNumber:33,columnNumber:11},this)})},void 0,!1,{fileName:Mo,lineNumber:27,columnNumber:5},this)}var z=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/skills/SkillPreview.tsx`;function Fo({listing:e,detail:t,loading:n,failed:r,installed:i,busy:a,onInstall:o}){let[s,c]=(0,k.useState)(!0),[l,u]=(0,k.useState)(!1),d=fo(e.owner,e.repo,e.slug),f=po(e.owner,e.repo,e.slug),p=Wa({kind:`skills`,owner:e.owner,repo:e.repo,slug:e.slug},{activate:s,sync:l});return(0,A.jsxDEV)(`section`,{className:`skills__preview`,children:[(0,A.jsxDEV)(`header`,{className:`skills__preview-head`,children:[(0,A.jsxDEV)(`h2`,{className:`skills__preview-title`,children:[e.name,e.isOfficial&&(0,A.jsxDEV)(`span`,{className:`chip chip--official`,children:`official`},void 0,!1,{fileName:z,lineNumber:55,columnNumber:34},this),i&&(0,A.jsxDEV)(`span`,{className:`chip`,children:`installed`},void 0,!1,{fileName:z,lineNumber:56,columnNumber:25},this)]},void 0,!0,{fileName:z,lineNumber:53,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`skills__preview-source`,children:e.source},void 0,!1,{fileName:z,lineNumber:58,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`skills__preview-links`,children:[(0,A.jsxDEV)(`a`,{className:`chip chip--link`,href:t?.catalogUrl??`https://www.skills.sh/${e.source}/${e.slug}`,target:`_blank`,rel:`noreferrer`,children:`skills.sh ↗`},void 0,!1,{fileName:z,lineNumber:61,columnNumber:11},this),(0,A.jsxDEV)(`a`,{className:`chip chip--link`,href:t?.repository.url??`https://github.com/${e.source}`,target:`_blank`,rel:`noreferrer`,children:`GitHub ↗`},void 0,!1,{fileName:z,lineNumber:69,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:52,columnNumber:7},this),(0,A.jsxDEV)(`dl`,{className:`skills__stats`,children:[(0,A.jsxDEV)(Io,{label:`Installs`,value:mo(e.installs),title:go(e.installs)},void 0,!1,{fileName:z,lineNumber:81,columnNumber:9},this),(0,A.jsxDEV)(Io,{label:`This week`,value:Lo(e)},void 0,!1,{fileName:z,lineNumber:82,columnNumber:9},this),(0,A.jsxDEV)(Io,{label:`Stars`,value:t?.repository.stars===void 0?`—`:mo(t.repository.stars)},void 0,!1,{fileName:z,lineNumber:83,columnNumber:9},this),(0,A.jsxDEV)(Io,{label:`License`,value:t?.repository.license??`—`},void 0,!1,{fileName:z,lineNumber:84,columnNumber:9},this),(0,A.jsxDEV)(Io,{label:`Pushed`,value:vo(t?.repository.pushedAt)??`—`},void 0,!1,{fileName:z,lineNumber:85,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:80,columnNumber:7},this),r?(0,A.jsxDEV)(`p`,{className:`skills__note`,children:`skills.sh could not describe this skill. Installing still works — the files come from GitHub.`},void 0,!1,{fileName:z,lineNumber:89,columnNumber:9},this):n?(0,A.jsxDEV)(`p`,{className:`skills__note`,children:`Loading the skill…`},void 0,!1,{fileName:z,lineNumber:94,columnNumber:9},this):(0,A.jsxDEV)(A.Fragment,{children:[t?.description&&(0,A.jsxDEV)(`p`,{className:`skills__description`,children:t.description},void 0,!1,{fileName:z,lineNumber:97,columnNumber:35},this),(0,A.jsxDEV)(`div`,{className:`skills__files`,children:[(0,A.jsxDEV)(`p`,{className:`field__label`,children:[`Files (`,t?.files.length??0,`)`]},void 0,!0,{fileName:z,lineNumber:100,columnNumber:13},this),(0,A.jsxDEV)(`ul`,{className:`skills__file-list`,children:t?.files.map(e=>(0,A.jsxDEV)(`li`,{children:[(0,A.jsxDEV)(`code`,{children:e.path},void 0,!1,{fileName:z,lineNumber:104,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`skills__file-size`,children:_o(e.bytes)},void 0,!1,{fileName:z,lineNumber:105,columnNumber:19},this)]},e.path,!0,{fileName:z,lineNumber:103,columnNumber:17},this))},void 0,!1,{fileName:z,lineNumber:101,columnNumber:13},this)]},void 0,!0,{fileName:z,lineNumber:99,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:96,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`skills__install-as`,children:[(0,A.jsxDEV)(`p`,{className:`field__label`,children:`Installs as`},void 0,!1,{fileName:z,lineNumber:114,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:d},void 0,!1,{fileName:z,lineNumber:115,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:f},void 0,!1,{fileName:z,lineNumber:116,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`skills__note`,children:[`The whole `,(0,A.jsxDEV)(`code`,{children:e.source},void 0,!1,{fileName:z,lineNumber:118,columnNumber:21},this),` repository is cached as one package`,t&&(0,A.jsxDEV)(A.Fragment,{children:[` (`,(0,A.jsxDEV)(`code`,{children:t.install.packageName},void 0,!1,{fileName:z,lineNumber:119,columnNumber:26},this),`)`]},void 0,!0,{fileName:z,lineNumber:119,columnNumber:22},this),`; only this skill is activated. The name carries its package, which is why it is not just`,` `,(0,A.jsxDEV)(`code`,{children:e.slug},void 0,!1,{fileName:z,lineNumber:121,columnNumber:11},this),`.`]},void 0,!0,{fileName:z,lineNumber:117,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:113,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`skills__note`,children:[`Installing copies files into `,(0,A.jsxDEV)(`code`,{children:`.invariant/cache`},void 0,!1,{fileName:z,lineNumber:126,columnNumber:38},this),`. Nothing runs. Security audits live on`,` `,(0,A.jsxDEV)(`a`,{href:t?.catalogUrl??`https://www.skills.sh`,target:`_blank`,rel:`noreferrer`,children:`skills.sh ↗`},void 0,!1,{fileName:z,lineNumber:128,columnNumber:9},this),`.`]},void 0,!0,{fileName:z,lineNumber:125,columnNumber:7},this),t?.skillMarkdown&&(0,A.jsxDEV)(`details`,{className:`skills__skill-md`,children:[(0,A.jsxDEV)(`summary`,{children:`SKILL.md`},void 0,!1,{fileName:z,lineNumber:136,columnNumber:11},this),(0,A.jsxDEV)(pi,{source:t.skillMarkdown,compact:!0},void 0,!1,{fileName:z,lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:135,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`skills__actions`,children:[(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:s,onChange:e=>c(e.target.checked)},void 0,!1,{fileName:z,lineNumber:143,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:`Activate now`},void 0,!1,{fileName:z,lineNumber:144,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:142,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:l,onChange:e=>u(e.target.checked)},void 0,!1,{fileName:z,lineNumber:147,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Run `,(0,A.jsxDEV)(`code`,{children:`sync`},void 0,!1,{fileName:z,lineNumber:149,columnNumber:17},this),` after`]},void 0,!0,{fileName:z,lineNumber:148,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:146,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:141,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`packages__preview`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Command`},void 0,!1,{fileName:z,lineNumber:155,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:p},void 0,!1,{fileName:z,lineNumber:156,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:154,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:a,onClick:()=>o({activate:s,sync:l}),children:a?`Installing…`:i?`Reinstall skill`:`Install skill`},void 0,!1,{fileName:z,lineNumber:159,columnNumber:7},this)]},void 0,!0,{fileName:z,lineNumber:51,columnNumber:5},this)}function Io({label:e,value:t,title:n}){return(0,A.jsxDEV)(`div`,{className:`skills__stat`,children:[(0,A.jsxDEV)(`dt`,{className:`skills__stat-label`,children:e},void 0,!1,{fileName:z,lineNumber:174,columnNumber:7},this),(0,A.jsxDEV)(`dd`,{className:`skills__stat-value`,title:n,children:t},void 0,!1,{fileName:z,lineNumber:175,columnNumber:7},this)]},void 0,!0,{fileName:z,lineNumber:173,columnNumber:5},this)}function Lo(e){let t=e.weeklyInstalls[e.weeklyInstalls.length-1];return t===void 0?`—`:mo(t)}var Ro=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/skills/SkillsBrowserPage.tsx`,zo=[{value:`all-time`,label:`Popular`},{value:`trending`,label:`Trending`},{value:`hot`,label:`Hot`}];function Bo({onBack:e}){let t=Fn(),[n,r]=(0,k.useState)(()=>Vo()),[i,a]=(0,k.useState)(0),[o,s]=(0,k.useState)(``),[c,l]=(0,k.useState)(``),[u,d]=(0,k.useState)(),[f,p]=(0,k.useState)([]),m=(0,k.useRef)(null),h=Er(n,i),g=Dr(c),_=Tr(),v=Ar(),y=Or(u?{owner:u.owner,repo:u.repo,slug:u.slug}:void 0);(0,k.useEffect)(()=>{let e=setTimeout(()=>l(o.trim()),200);return()=>clearTimeout(e)},[o]),(0,k.useEffect)(()=>{localStorage.setItem(`invariant.skills.view`,n),a(0),p([])},[n]),(0,k.useEffect)(()=>{h.data&&p(e=>h.data.page===0?h.data.skills:[...e,...h.data.skills])},[h.data]);let b=c.length>=2,x=b?g.data?.skills??[]:f,ee=(0,k.useMemo)(()=>{let e=new Set;for(let t of _.data?.packages??[]){let n=t.sourceUrl?.match(/^(?:skills|github):([^/#]+)\/([^/#]+)/);n&&e.add(`${n[1]}/${n[2]}`)}return e},[_.data]);(0,k.useEffect)(()=>{let t=t=>{let r=t.target instanceof HTMLElement&&[`INPUT`,`TEXTAREA`].includes(t.target.tagName);if(t.key===`/`&&!r){t.preventDefault(),m.current?.focus();return}r||(t.key===`ArrowDown`||t.key===`j`?n(1):t.key===`ArrowUp`||t.key===`k`?n(-1):t.key===`Escape`&&e())},n=e=>{if(x.length===0)return;let t=u?x.findIndex(e=>No(e)===No(u)):-1,n=Math.min(Math.max(t+e,0),x.length-1);d(x[n])};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[x,u,e]);let te=b?g.isError||g.data?.unavailable===!0:h.isError||h.data?.unavailable===!0,S=async e=>{if(u)try{let n=await v.mutateAsync({source:{kind:`skills`,owner:u.owner,repo:u.repo,slug:u.slug},activate:e.activate,sync:e.sync});t(`Installed ${n.package?.name??u.name}`,`success`)}catch(e){t(e instanceof Bn?e.message:String(e),`danger`)}};return(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:`Browse skills`},void 0,!1,{fileName:Ro,lineNumber:144,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`topbar__path`,children:[`skills.sh`,h.data&&h.data.total>0&&(0,A.jsxDEV)(A.Fragment,{children:[` · `,new Intl.NumberFormat(`en-US`).format(h.data.total),` indexed`]},void 0,!0,{fileName:Ro,lineNumber:148,columnNumber:15},this)]},void 0,!0,{fileName:Ro,lineNumber:145,columnNumber:11},this)]},void 0,!0,{fileName:Ro,lineNumber:143,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:e,children:`Back to packages`},void 0,!1,{fileName:Ro,lineNumber:154,columnNumber:11},this)},void 0,!1,{fileName:Ro,lineNumber:153,columnNumber:9},this)]},void 0,!0,{fileName:Ro,lineNumber:142,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`skills`,children:[(0,A.jsxDEV)(`div`,{className:`skills__list`,children:[(0,A.jsxDEV)(`div`,{className:`skills__filters`,children:[(0,A.jsxDEV)(`input`,{ref:m,className:`filter__input`,value:o,placeholder:`Search skills… ( / )`,"aria-label":`Search skills`,spellCheck:!1,onChange:e=>s(e.target.value)},void 0,!1,{fileName:Ro,lineNumber:163,columnNumber:13},this),(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Ranking`,children:zo.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":n===e.value,className:`segmented__item${n===e.value?` is-active`:``}`,disabled:b,onClick:()=>r(e.value),children:e.label},e.value,!1,{fileName:Ro,lineNumber:175,columnNumber:17},this))},void 0,!1,{fileName:Ro,lineNumber:173,columnNumber:13},this)]},void 0,!0,{fileName:Ro,lineNumber:162,columnNumber:11},this),te?(0,A.jsxDEV)(`div`,{className:`skills__empty`,children:[(0,A.jsxDEV)(`p`,{className:`skills__note`,children:`skills.sh is unreachable. Installing by identifier still works:`},void 0,!1,{fileName:Ro,lineNumber:192,columnNumber:15},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:`invariant install skills:owner/repo/skill`},void 0,!1,{fileName:Ro,lineNumber:195,columnNumber:15},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>b?g.refetch():h.refetch(),children:`Retry`},void 0,!1,{fileName:Ro,lineNumber:198,columnNumber:15},this)]},void 0,!0,{fileName:Ro,lineNumber:191,columnNumber:13},this):x.length===0?(0,A.jsxDEV)(`p`,{className:`skills__note`,children:h.isLoading||g.isLoading?`Loading the catalogue…`:`No skill matches “${c}”.`},void 0,!1,{fileName:Ro,lineNumber:207,columnNumber:13},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(Po,{skills:x,selected:u?No(u):void 0,installedSources:ee,onSelect:d},void 0,!1,{fileName:Ro,lineNumber:214,columnNumber:15},this),!b&&h.data?.hasMore&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle skills__more`,disabled:h.isFetching,onClick:()=>a(e=>e+1),children:h.isFetching?`Loading…`:`Load more`},void 0,!1,{fileName:Ro,lineNumber:222,columnNumber:17},this)]},void 0,!0,{fileName:Ro,lineNumber:213,columnNumber:13},this)]},void 0,!0,{fileName:Ro,lineNumber:161,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`skills__pane`,children:u?(0,A.jsxDEV)(Fo,{listing:u,detail:y.data,loading:y.isLoading,failed:y.isError,installed:ee.has(u.source),busy:v.isPending,onInstall:e=>void S(e)},void 0,!1,{fileName:Ro,lineNumber:237,columnNumber:13},this):(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Select a skill.`},void 0,!1,{fileName:Ro,lineNumber:247,columnNumber:13},this)},void 0,!1,{fileName:Ro,lineNumber:235,columnNumber:9},this)]},void 0,!0,{fileName:Ro,lineNumber:160,columnNumber:7},this)]},void 0,!0,{fileName:Ro,lineNumber:141,columnNumber:5},this)}function Vo(){let e=localStorage.getItem(`invariant.skills.view`);return e===`trending`||e===`hot`?e:`all-time`}var B=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/PublisherSettings.tsx`;function Ho(){let e=Fn(),{data:t,isLoading:n}=xr(),r=Sr(),i=Cr(),a=wr(),[o,s]=(0,k.useState)(``),[c,l]=(0,k.useState)(``),[u,d]=(0,k.useState)(``),[f,p]=(0,k.useState)();if((0,k.useEffect)(()=>{t&&(s(e=>e||t.host||``),l(e=>e||t.projectPath||``))},[t]),n||!t)return(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Loading settings…`},void 0,!1,{fileName:B,lineNumber:40,columnNumber:38},this);let m=t.remote?.projectPath,h=c.length>0&&m!==void 0&&c!==m;return(0,A.jsxDEV)(`section`,{className:`settings__section`,children:[(0,A.jsxDEV)(`header`,{className:`settings__head`,children:[(0,A.jsxDEV)(`h2`,{className:`settings__title`,children:`Publishing`},void 0,!1,{fileName:B,lineNumber:48,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`settings__lede`,children:[`Push a triaged review to GitLab as `,(0,A.jsxDEV)(`strong`,{children:`draft`},void 0,!1,{fileName:B,lineNumber:50,columnNumber:46},this),` merge-request comments. Nothing is submitted for you — you press `,(0,A.jsxDEV)(`em`,{children:`Submit review`},void 0,!1,{fileName:B,lineNumber:51,columnNumber:41},this),` in GitLab yourself.`]},void 0,!0,{fileName:B,lineNumber:49,columnNumber:9},this)]},void 0,!0,{fileName:B,lineNumber:47,columnNumber:7},this),(0,A.jsxDEV)(`dl`,{className:`settings__facts`,children:[(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`This UI is pinned to`},void 0,!1,{fileName:B,lineNumber:57,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`code`,{children:t.directory},void 0,!1,{fileName:B,lineNumber:58,columnNumber:15},this)},void 0,!1,{fileName:B,lineNumber:58,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:56,columnNumber:9},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Origin remote`},void 0,!1,{fileName:B,lineNumber:61,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:t.remote?.url?(0,A.jsxDEV)(`code`,{children:t.remote.url},void 0,!1,{fileName:B,lineNumber:62,columnNumber:39},this):`none — this project has no origin`},void 0,!1,{fileName:B,lineNumber:62,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:B,lineNumber:55,columnNumber:7},this),t.mismatch&&(0,A.jsxDEV)(`p`,{className:`settings__warning`,children:[`These settings were saved for `,(0,A.jsxDEV)(`code`,{children:t.mismatch.storedRemote},void 0,!1,{fileName:B,lineNumber:68,columnNumber:41},this),`, but this project’s origin is now `,(0,A.jsxDEV)(`code`,{children:t.mismatch.currentRemote},void 0,!1,{fileName:B,lineNumber:69,columnNumber:35},this),`. Publishing is refused until you save again.`]},void 0,!0,{fileName:B,lineNumber:67,columnNumber:9},this),t.source===`environment`&&(0,A.jsxDEV)(`p`,{className:`settings__note`,children:[`Using `,(0,A.jsxDEV)(`code`,{children:`GITLAB_TOKEN`},void 0,!1,{fileName:B,lineNumber:76,columnNumber:17},this),` from the environment this daemon was started in. Saving a token here replaces it for this project.`]},void 0,!0,{fileName:B,lineNumber:75,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`settings__form`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`GitLab host`},void 0,!1,{fileName:B,lineNumber:83,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:o,placeholder:`https://gitlab.com`,onChange:e=>s(e.target.value)},void 0,!1,{fileName:B,lineNumber:84,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:82,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Project path`,(0,A.jsxDEV)(`span`,{className:`field__badge`,children:h?`overridden`:`from origin`},void 0,!1,{fileName:B,lineNumber:95,columnNumber:13},this)]},void 0,!0,{fileName:B,lineNumber:93,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:c,placeholder:`group/project`,onChange:e=>l(e.target.value)},void 0,!1,{fileName:B,lineNumber:97,columnNumber:11},this),h&&(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`This is not `,(0,A.jsxDEV)(`code`,{children:m},void 0,!1,{fileName:B,lineNumber:105,columnNumber:27},this),`, which is what origin says. Every publish will say so.`]},void 0,!0,{fileName:B,lineNumber:104,columnNumber:13},this)]},void 0,!0,{fileName:B,lineNumber:92,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Personal access token`,t.tokenHint&&(0,A.jsxDEV)(`span`,{className:`field__badge`,children:[`stored ····`,t.tokenHint]},void 0,!0,{fileName:B,lineNumber:113,columnNumber:36},this)]},void 0,!0,{fileName:B,lineNumber:111,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,type:`password`,autoComplete:`off`,value:u,placeholder:t.tokenHint?`Leave empty to keep the stored token`:`glpat-…`,onChange:e=>d(e.target.value)},void 0,!1,{fileName:B,lineNumber:115,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`Needs the `,(0,A.jsxDEV)(`code`,{children:`api`},void 0,!1,{fileName:B,lineNumber:124,columnNumber:23},this),` scope — `,(0,A.jsxDEV)(`code`,{children:`read_api`},void 0,!1,{fileName:B,lineNumber:124,columnNumber:48},this),` cannot write a comment. Stored in`,` `,(0,A.jsxDEV)(`code`,{children:t.storedAt},void 0,!1,{fileName:B,lineNumber:125,columnNumber:13},this),` (0600), for this project only. It is never sent to this page and never written to the repository.`,!t.gitignored&&t.configured&&(0,A.jsxDEV)(`strong`,{children:` This folder is not git-ignored — check before you commit.`},void 0,!1,{fileName:B,lineNumber:128,columnNumber:15},this)]},void 0,!0,{fileName:B,lineNumber:123,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:110,columnNumber:9},this)]},void 0,!0,{fileName:B,lineNumber:81,columnNumber:7},this),f&&(0,A.jsxDEV)(`p`,{className:`settings__verdict${f.ok?` is-ok`:` is-bad`}`,children:f.ok?`Connected as @${f.username} · ${f.projectPath}`:f.message},void 0,!1,{fileName:B,lineNumber:135,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`settings__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:a.isPending||!t.configured,title:t.configured?void 0:`Save a token first.`,onClick:()=>a.mutate(void 0,{onSuccess:p,onError:e=>p({publisher:`gitlab`,ok:!1,message:e instanceof Error?e.message:`That did not work.`})}),children:a.isPending?`Testing…`:`Test connection`},void 0,!1,{fileName:B,lineNumber:143,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,disabled:i.isPending||t.source!==`stored`,onClick:()=>i.mutate(void 0,{onSuccess:()=>{d(``),p(void 0),e(`Publishing settings removed`,`success`)}}),children:`Remove`},void 0,!1,{fileName:B,lineNumber:163,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:r.isPending||!t.configured&&u.trim().length===0,onClick:()=>r.mutate({host:o.trim()||void 0,projectPath:c.trim()||void 0,token:u.trim()||void 0},{onSuccess:()=>{d(``),p(void 0),e(`Publishing settings saved`,`success`)},onError:t=>e(t instanceof Error?t.message:`That did not work.`,`danger`)}),children:r.isPending?`Saving…`:`Save`},void 0,!1,{fileName:B,lineNumber:180,columnNumber:9},this)]},void 0,!0,{fileName:B,lineNumber:142,columnNumber:7},this)]},void 0,!0,{fileName:B,lineNumber:46,columnNumber:5},this)}var Uo=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/SettingsPage.tsx`;function Wo(){let{data:e}=er();return(0,A.jsxDEV)(`div`,{className:`settings`,children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:`Settings`},void 0,!1,{fileName:Uo,lineNumber:19,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`topbar__path`,title:e?.directory,children:e?.directory??``},void 0,!1,{fileName:Uo,lineNumber:20,columnNumber:11},this)]},void 0,!0,{fileName:Uo,lineNumber:18,columnNumber:9},this)},void 0,!1,{fileName:Uo,lineNumber:17,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`settings__scroll`,children:(0,A.jsxDEV)(Ho,{},void 0,!1,{fileName:Uo,lineNumber:25,columnNumber:9},this)},void 0,!1,{fileName:Uo,lineNumber:24,columnNumber:7},this)]},void 0,!0,{fileName:Uo,lineNumber:16,columnNumber:5},this)}var Go=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/palette/CommandPalette.tsx`,Ko=40,qo={root:`Search sessions and commands…`,projects:`Switch to a project…`},Jo={root:``,projects:`Project`};function Yo({actions:e,initialScope:t=`root`,onClose:n}){let[r,i]=(0,k.useState)(t),[a,o]=(0,k.useState)(``),[s,c]=(0,k.useState)(0),l=(0,k.useRef)(null),u=(0,k.useMemo)(()=>e.filter(e=>(e.scopedTo??`root`)===r),[e,r]),d=(0,k.useMemo)(()=>a.trim().length===0?u.slice(0,Ko):u.map(e=>({action:e,score:en(`${e.title} ${e.group} ${e.keywords??``}`,a.trim())})).filter(e=>e.score!==null).sort((e,t)=>t.score-e.score).slice(0,Ko).map(e=>e.action),[u,a]);(0,k.useEffect)(()=>{c(0)},[a,r]),(0,k.useEffect)(()=>{let e=l.current?.querySelector(`[data-active="true"]`);e instanceof HTMLElement&&e.scrollIntoView?.({block:`nearest`})},[s,d]);let f=e=>{if(e.scope){i(e.scope),o(``);return}n(),e.run()},p=e=>{if(e.key===`ArrowDown`||e.key===`n`&&e.ctrlKey){e.preventDefault(),c(e=>(e+1)%Math.max(d.length,1));return}if(e.key===`ArrowUp`||e.key===`p`&&e.ctrlKey){e.preventDefault(),c(e=>(e-1+Math.max(d.length,1))%Math.max(d.length,1));return}if(e.key===`Enter`){e.preventDefault();let t=d[s];t&&f(t);return}if(e.key===`Backspace`&&a.length===0&&r!==`root`){e.preventDefault(),i(`root`);return}if(e.key===`Escape`){if(e.preventDefault(),r!==`root`){i(`root`);return}n()}},m=``;return(0,A.jsxDEV)(`div`,{className:`overlay overlay--top`,onMouseDown:e=>{e.target===e.currentTarget&&n()},children:(0,A.jsxDEV)(`div`,{className:`palette`,role:`dialog`,"aria-modal":`true`,"aria-label":`Command palette`,children:[(0,A.jsxDEV)(`div`,{className:`palette__field`,children:[r!==`root`&&(0,A.jsxDEV)(`span`,{className:`palette__scope`,children:Jo[r]},void 0,!1,{fileName:Go,lineNumber:136,columnNumber:32},this),(0,A.jsxDEV)(`input`,{className:`palette__input`,autoFocus:!0,value:a,placeholder:qo[r],onChange:e=>o(e.target.value),onKeyDown:p,"aria-label":qo[r]},void 0,!1,{fileName:Go,lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:Go,lineNumber:135,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`palette__list`,ref:l,role:`listbox`,children:[d.length===0&&(0,A.jsxDEV)(`p`,{className:`palette__empty`,children:`No matches`},void 0,!1,{fileName:Go,lineNumber:149,columnNumber:36},this),d.map((e,t)=>{let n=e.group===m?void 0:e.group;return m=e.group,(0,A.jsxDEV)(`div`,{children:[n&&(0,A.jsxDEV)(`div`,{className:`palette__group`,children:n},void 0,!1,{fileName:Go,lineNumber:157,columnNumber:28},this),(0,A.jsxDEV)(`button`,{type:`button`,role:`option`,"aria-selected":t===s,"data-active":t===s,className:`palette__item${t===s?` is-active`:``}`,onMouseMove:()=>c(t),onClick:()=>f(e),children:[e.status&&(0,A.jsxDEV)(Mt,{status:e.status},void 0,!1,{fileName:Go,lineNumber:167,columnNumber:37},this),(0,A.jsxDEV)(`span`,{className:`palette__title`,children:e.title},void 0,!1,{fileName:Go,lineNumber:168,columnNumber:19},this),e.hint&&(0,A.jsxDEV)(`span`,{className:`palette__hint`,children:e.hint},void 0,!1,{fileName:Go,lineNumber:169,columnNumber:35},this),e.shortcut&&(0,A.jsxDEV)(`kbd`,{className:`palette__shortcut`,children:e.shortcut},void 0,!1,{fileName:Go,lineNumber:170,columnNumber:39},this)]},void 0,!0,{fileName:Go,lineNumber:158,columnNumber:17},this)]},e.id,!0,{fileName:Go,lineNumber:156,columnNumber:15},this)})]},void 0,!0,{fileName:Go,lineNumber:148,columnNumber:9},this),(0,A.jsxDEV)(`footer`,{className:`palette__foot`,children:[(0,A.jsxDEV)(`kbd`,{children:`↑`},void 0,!1,{fileName:Go,lineNumber:178,columnNumber:11},this),(0,A.jsxDEV)(`kbd`,{children:`↓`},void 0,!1,{fileName:Go,lineNumber:178,columnNumber:23},this),` navigate `,(0,A.jsxDEV)(`kbd`,{children:`↵`},void 0,!1,{fileName:Go,lineNumber:178,columnNumber:45},this),` run`,` `,r===`root`?(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`kbd`,{children:`esc`},void 0,!1,{fileName:Go,lineNumber:179,columnNumber:33},this),` close`]},void 0,!0,{fileName:Go,lineNumber:179,columnNumber:31},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`kbd`,{children:`⌫`},void 0,!1,{fileName:Go,lineNumber:179,columnNumber:61},this),` back`]},void 0,!0,{fileName:Go,lineNumber:179,columnNumber:59},this)]},void 0,!0,{fileName:Go,lineNumber:177,columnNumber:9},this)]},void 0,!0,{fileName:Go,lineNumber:134,columnNumber:7},this)},void 0,!1,{fileName:Go,lineNumber:133,columnNumber:5},this)}var Xo=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/palette/ShortcutSheet.tsx`,Zo=[{title:`Projects`,rows:[[`⌘P`,`Switch project`],[`⇧⌘H`,`All projects`],[`⌫`,`Leave the project list, back to the full palette`]]},{title:`Global`,rows:[[`⌘K`,`Command palette`],[`N`,`New session`],[`/`,`Focus the filter`],[`⇧⌘R`,`Copy the execute line of the session in front of you`],[`?`,`This sheet`]]},{title:`Dashboard`,rows:[[`J / K`,`Move between sessions`],[`← / →`,`Collapse / expand a session's reviews`],[`↵`,`Open the focused session`],[`1 – 5`,`Set status: Review is machine-set, so it is not one of the five`]]},{title:`Selection`,rows:[[`X`,`Tick the focused row`],[`⇧X`,`Tick it and everything back to the last one you ticked`],[`⌘A`,`Tick every row on screen`],[`1 – 5`,`Send the whole selection to that status`],[`⌘⌫`,`Archive the selection`],[`Esc`,`Let the selection go`]]},{title:`Review triage`,rows:[[`J / K`,`Move between comments`],[`↵`,`Expand the focused comment`],[`S`,`Stage it`],[`D`,`Discard it`],[`E`,`Edit its wording`],[`⇧S`,`Stage everything matching the filter`]]},{title:`Session`,rows:[[`⇧⌘V`,`Toggle preview / edit`],[`S`,`Split view`],[`⌘S`,`Save now`],[`Esc`,`Back to the dashboard`]]}];function Qo({onClose:e}){return(0,A.jsxDEV)(Mn,{title:`Keyboard shortcuts`,onClose:e,width:520,children:(0,A.jsxDEV)(`div`,{className:`shortcuts`,children:Zo.map(e=>(0,A.jsxDEV)(`section`,{className:`shortcuts__group`,children:[(0,A.jsxDEV)(`h3`,{className:`shortcuts__title`,children:e.title},void 0,!1,{fileName:Xo,lineNumber:70,columnNumber:13},this),e.rows.map(([e,t])=>(0,A.jsxDEV)(`div`,{className:`shortcuts__row`,children:[(0,A.jsxDEV)(`kbd`,{children:e},void 0,!1,{fileName:Xo,lineNumber:73,columnNumber:17},this),(0,A.jsxDEV)(`span`,{children:t},void 0,!1,{fileName:Xo,lineNumber:74,columnNumber:17},this)]},e,!0,{fileName:Xo,lineNumber:72,columnNumber:15},this))]},e.title,!0,{fileName:Xo,lineNumber:69,columnNumber:11},this))},void 0,!1,{fileName:Xo,lineNumber:67,columnNumber:7},this)},void 0,!1,{fileName:Xo,lineNumber:66,columnNumber:5},this)}var V=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ProjectApp.tsx`;function $o({projectId:e,route:t,navigate:n,projects:r,card:i,onOpenHub:a,onSwitchProject:o}){let s=Fn(),c=Pr(),{data:l}=er(),{data:u,isLoading:d}=tr(),f=rr(),p=or(),m=ur(),h=_r(),{data:g}=fr(),{data:_}=dr(),[v,y]=(0,k.useState)(_n),[b,x]=(0,k.useState)(`preview`),[ee,te]=(0,k.useState)(``),[S,ne]=(0,k.useState)(),[re,ie]=(0,k.useState)(),[C,ae]=(0,k.useState)(!1),[w,T]=(0,k.useState)(!1),[oe,E]=(0,k.useState)(!1),[se,ce]=(0,k.useState)(!1),[le,ue]=(0,k.useState)(!1),de=(0,k.useCallback)(()=>ae(!1),[]),fe=(0,k.useCallback)(()=>T(!1),[]),pe=(0,k.useCallback)(()=>ie(void 0),[]),me=(0,k.useCallback)(()=>ue(!1),[]),[he,ge]=(0,k.useState)(),[_e,ve]=(0,k.useState)(!1),ye=(0,k.useMemo)(()=>u?.sessions??[],[u]),be=(0,k.useMemo)(()=>{let e=ee.trim();return e.length===0?ye:ye.map(t=>({session:t,score:en(`${t.title} ${t.excerpt} ${t.tags.join(` `)}`,e)})).filter(e=>e.score!==null).sort((e,t)=>t.score-e.score).map(e=>e.session)},[ye,ee]),xe=(0,k.useMemo)(()=>yn(vn(ye,ee.trim().length>0?new Set(be.map(e=>e.id)):void 0,g?.reviews??[],v)),[ye,be,ee,g,v]),Se=ha((0,k.useMemo)(()=>xe.map(e=>e.id),[xe]),(0,k.useMemo)(()=>ye.map(e=>e.id),[ye])),Ce=(0,k.useMemo)(()=>ye.filter(e=>Se.isSelected(e.id)),[ye,Se]),D=Se.clear;(0,k.useEffect)(()=>{t.name!==`sessions`&&D()},[t.name,D]);let we=(0,k.useCallback)(e=>{y(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),Te=(0,k.useCallback)(e=>{let t=ye.find(t=>t.id===e);if(!(!t||!l))return`execute instructions from ${l.sessionsDirectory}/${t.file}`},[ye,l]),Ee=(0,k.useCallback)(()=>{let e=t.name===`session`?t.sessionId:S,n=e?Te(e):void 0;if(!n){s(`No session in focus — open one, or pick one from the list.`,`info`);return}tn(n).then(e=>s(e?`Execute line copied`:`Could not copy`,e?`success`:`danger`))},[t,S,Te,s]),De=(0,k.useCallback)(t=>{ne(t),n({name:`session`,projectId:e,sessionId:t})},[n]),O=(0,k.useCallback)(t=>n({name:`review`,projectId:e,slug:t}),[n]),Oe=(0,k.useCallback)(e=>{h.mutate(e,{onSuccess:async e=>{T(!1),await tn(e.executeLine),s(e.guidance,`success`),De(e.session.id)},onError:e=>s(e instanceof Error?e.message:`Could not create the review.`,`danger`)})},[h,De,s]),ke=(0,k.useCallback)(e=>Oe({sessionId:e}),[Oe]),Ae=(0,k.useCallback)((e,t)=>{f.mutate({sessionId:e,status:t},{onError:()=>s(`Could not change the status.`,`danger`),onSuccess:e=>{e.status===`executed`&&e.kind!==`review`&&(e.reviewSessionIds.length>0||_&&!_.canReview||s(`Marked done — request a review from the session page.`,`info`))}})},[f,s,_]),je=(0,k.useCallback)(e=>{p.mutate(e,{onSuccess:async e=>{ae(!1),await tn(e.executeLine),s(`Session created — execute line copied`,`success`),x(`edit`),De(e.session.id)},onError:e=>s(e instanceof Error?e.message:`Could not create the session.`,`danger`)})},[p,De,s]),Me=ts({sessions:ye,route:t,project:l?.directory,projects:r,currentProjectId:e,onSwitchProject:o,onOpenHub:a,onOpenSession:De,onChangeStatus:Ae,onNew:()=>ae(!0),onSetMode:x,onShortcuts:()=>ue(!0),onMigrateAll:()=>m.mutate(void 0,{onSuccess:e=>s(`Migrated ${e.migrated.length} session(s)`,`success`),onError:()=>s(`Could not migrate headers.`,`danger`)}),onGoToSessions:()=>n({name:`sessions`,projectId:e}),onGoToReviews:()=>n({name:`reviews`,projectId:e}),onGoToPackages:()=>n({name:`packages`,projectId:e}),onGoToSettings:()=>n({name:`settings`,projectId:e}),onInstallPackage:()=>{n({name:`packages`,projectId:e}),E(!0)},onSyncProject:()=>{n({name:`packages`,projectId:e}),ce(!0)},onBrowseSkills:()=>n({name:`skills`,projectId:e}),onReviewBranch:()=>T(!0),onCopyExecuteLine:Ee,onOpenReview:O,onRequestReview:ke,reviews:g?.reviews??[],canReview:_?.canReview??!1,onStop:async()=>{window.confirm(`Stop this UI server? The page will stop responding.`)&&(await Wn.shutdown().catch(()=>void 0),s(`UI stopping…`,`info`))},toast:s});return rs({enabled:!C&&!le&&!w,paletteOpen:re!==void 0,onPalette:()=>ie(e=>e===void 0?`root`:void 0),onSwitcher:()=>ie(`projects`),onHub:a,onNew:()=>ae(!0),onShortcuts:()=>ue(!0),onCopyExecuteLine:Ee,onFilter:()=>document.querySelector(`.filter__input`)?.focus(),onTogglePreview:()=>x(e=>e===`edit`?`preview`:`edit`),onSplit:()=>x(`split`),onEscape:()=>{if(Se.count>0){Se.clear();return}t.name===`session`?n({name:`sessions`,projectId:e}):t.name===`review`&&n({name:`reviews`,projectId:e})},onMove:e=>{if(t.name!==`sessions`||xe.length===0)return;let n=xe.findIndex(e=>e.id===S),r=n===-1?0:Math.min(Math.max(n+e,0),xe.length-1);ne(xe[r].id)},onOpenFocused:()=>{t.name===`sessions`&&S&&De(S)},onStatusDigit:e=>{let n=Vt[e];if(!n)return;if(t.name===`sessions`&&Se.count>0){ge(n);return}let r=t.name===`session`?t.sessionId:S;r&&Ae(r,n)},onToggleSelect:e=>{t.name!==`sessions`||!S||Se.toggle(S,{range:e})},onSelectAll:()=>{t.name===`sessions`&&Se.selectAll()},onArchiveSelected:()=>{t.name===`sessions`&&Se.count>0&&ve(!0)},hasSelection:Se.count>0,isSessionRoute:t.name===`session`}),(0,A.jsxDEV)(`div`,{className:`app app--project app--${i?.color??`indigo`}`,children:[(0,A.jsxDEV)(Dt,{route:t,projectId:e,card:i,onNavigate:n,onOpenPalette:()=>ie(`root`),onOpenHub:a,onSwitchProject:()=>ie(`projects`),live:c},void 0,!1,{fileName:V,lineNumber:374,columnNumber:7},this),(0,A.jsxDEV)(`main`,{className:`main`,children:t.name===`session`?(0,A.jsxDEV)(Ui,{sessionId:t.sessionId,mode:b,onModeChange:x,onBack:()=>n({name:`sessions`,projectId:e}),onArchived:()=>n({name:`sessions`,projectId:e}),onOpenSession:De,onOpenSettings:()=>n({name:`settings`,projectId:e})},void 0,!1,{fileName:V,lineNumber:387,columnNumber:11},this):t.name===`reviews`?(0,A.jsxDEV)(I,{onOpen:O,onOpenSession:De,onReviewBranch:()=>T(!0)},void 0,!1,{fileName:V,lineNumber:397,columnNumber:11},this):t.name===`review`?(0,A.jsxDEV)(ba,{slug:t.slug,onBack:()=>n({name:`reviews`,projectId:e}),onOpenSession:De,onOpenSettings:()=>n({name:`settings`,projectId:e})},void 0,!1,{fileName:V,lineNumber:403,columnNumber:11},this):t.name===`settings`?(0,A.jsxDEV)(Wo,{},void 0,!1,{fileName:V,lineNumber:410,columnNumber:11},this):t.name===`packages`?(0,A.jsxDEV)(Oo,{installOpen:oe,syncOpen:se,onInstallOpenChange:E,onSyncOpenChange:ce,onBrowseSkills:()=>n({name:`skills`,projectId:e})},void 0,!1,{fileName:V,lineNumber:412,columnNumber:11},this):t.name===`skills`?(0,A.jsxDEV)(Bo,{onBack:()=>n({name:`packages`,projectId:e})},void 0,!1,{fileName:V,lineNumber:420,columnNumber:11},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`nav`,{className:`crumbs`,"aria-label":`Breadcrumb`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`crumbs__link`,onClick:a,children:`Projects`},void 0,!1,{fileName:V,lineNumber:426,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`crumbs__sep`,children:`/`},void 0,!1,{fileName:V,lineNumber:429,columnNumber:19},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`crumbs__link`,onClick:()=>ie(`projects`),children:i?.name??l?.name??`Project`},void 0,!1,{fileName:V,lineNumber:432,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`crumbs__sep`,children:`/`},void 0,!1,{fileName:V,lineNumber:439,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`crumbs__here`,children:`Sessions`},void 0,!1,{fileName:V,lineNumber:440,columnNumber:19},this)]},void 0,!0,{fileName:V,lineNumber:425,columnNumber:17},this),(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:l?.name??`Sessions`},void 0,!1,{fileName:V,lineNumber:442,columnNumber:17},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`topbar__path`,title:l?`${l.directory} — click to copy`:void 0,onClick:async()=>{l&&s(await tn(l.directory)?`Path copied`:`Could not copy`,`success`)},children:l?nn(l.directory):``},void 0,!1,{fileName:V,lineNumber:443,columnNumber:17},this)]},void 0,!0,{fileName:V,lineNumber:424,columnNumber:15},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__counts`,children:zt.map(e=>(0,A.jsxDEV)(`span`,{className:`count count--${e}`,title:Bt[e],children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:u?.counts[e]??0},void 0,!1,{fileName:V,lineNumber:461,columnNumber:23},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:Bt[e]},void 0,!1,{fileName:V,lineNumber:462,columnNumber:23},this)]},e,!0,{fileName:V,lineNumber:460,columnNumber:21},this))},void 0,!1,{fileName:V,lineNumber:458,columnNumber:17},this),(0,A.jsxDEV)(`div`,{className:`filter filter--compact`,children:(0,A.jsxDEV)(`input`,{className:`filter__input`,value:ee,placeholder:`Filter… /`,onChange:e=>te(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(te(``),e.currentTarget.blur())},"aria-label":`Filter sessions`},void 0,!1,{fileName:V,lineNumber:470,columnNumber:19},this)},void 0,!1,{fileName:V,lineNumber:469,columnNumber:17},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>ae(!0),children:`New session`},void 0,!1,{fileName:V,lineNumber:480,columnNumber:17},this)]},void 0,!0,{fileName:V,lineNumber:457,columnNumber:15},this)]},void 0,!0,{fileName:V,lineNumber:423,columnNumber:13},this),u&&u.needingMigration>0&&(0,A.jsxDEV)(`div`,{className:`banner banner--warning`,children:[(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:[u.needingMigration,` session(s)`]},void 0,!0,{fileName:V,lineNumber:489,columnNumber:19},this),` have no canonical `,(0,A.jsxDEV)(`code`,{children:`<session-meta>`},void 0,!1,{fileName:V,lineNumber:489,columnNumber:89},this),` header.`]},void 0,!0,{fileName:V,lineNumber:488,columnNumber:17},this),(0,A.jsxDEV)(`div`,{className:`banner__actions`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>m.mutate(void 0,{onSuccess:e=>s(`Migrated ${e.migrated.length} session(s)`,`success`),onError:()=>s(`Could not migrate headers.`,`danger`)}),children:`Migrate all`},void 0,!1,{fileName:V,lineNumber:492,columnNumber:19},this)},void 0,!1,{fileName:V,lineNumber:491,columnNumber:17},this)]},void 0,!0,{fileName:V,lineNumber:487,columnNumber:15},this),d?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading sessions…`},void 0,!1,{fileName:V,lineNumber:509,columnNumber:15},this):ye.length===0?(0,A.jsxDEV)(es,{onNew:()=>ae(!0)},void 0,!1,{fileName:V,lineNumber:511,columnNumber:15},this):(0,A.jsxDEV)(xn,{sessions:be,allSessions:ye,reviews:g?.reviews??[],filter:ee,focusedId:S,onFocus:ne,onOpen:De,onStatusChange:Ae,collapsed:v,onToggleCollapsed:we,selection:Se},void 0,!1,{fileName:V,lineNumber:513,columnNumber:15},this),Se.count>0&&(0,A.jsxDEV)(Kr,{sessions:Ce,count:Se.count,hiddenCount:Se.hiddenCount,onClear:Se.clear,onNarrow:Se.replace,pendingStatus:he,onPendingStatusHandled:()=>ge(void 0),archiveRequested:_e,onArchiveRequestHandled:()=>ve(!1)},void 0,!1,{fileName:V,lineNumber:529,columnNumber:15},this)]},void 0,!0,{fileName:V,lineNumber:422,columnNumber:11},this)},void 0,!1,{fileName:V,lineNumber:385,columnNumber:7},this),re&&(0,A.jsxDEV)(Yo,{actions:Me,initialScope:re,onClose:pe},void 0,!1,{fileName:V,lineNumber:546,columnNumber:9},this),C&&(0,A.jsxDEV)(Zi,{busy:p.isPending,projectDirectory:l?.directory,onClose:de,onSubmit:je},void 0,!1,{fileName:V,lineNumber:549,columnNumber:9},this),w&&(0,A.jsxDEV)(Ca,{busy:h.isPending,onClose:fe,onSubmit:({base:e})=>Oe({standalone:!0,base:e})},void 0,!1,{fileName:V,lineNumber:557,columnNumber:9},this),le&&(0,A.jsxDEV)(Qo,{onClose:me},void 0,!1,{fileName:V,lineNumber:563,columnNumber:25},this)]},void 0,!0,{fileName:V,lineNumber:373,columnNumber:5},this)}function es({onNew:e}){return(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`No sessions yet`},void 0,!1,{fileName:V,lineNumber:571,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`A session is a markdown file in `,(0,A.jsxDEV)(`code`,{children:`.invariant/sessions`},void 0,!1,{fileName:V,lineNumber:573,columnNumber:41},this),` holding one task, its plan, and its status. Create one here, then paste its execute line into your agent.`]},void 0,!0,{fileName:V,lineNumber:572,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:e,children:`New session`},void 0,!1,{fileName:V,lineNumber:576,columnNumber:7},this)]},void 0,!0,{fileName:V,lineNumber:570,columnNumber:5},this)}function ts(e){return(0,k.useMemo)(()=>{let t=e.route,n=t.name===`session`?e.sessions.find(e=>e.id===t.sessionId):void 0,r=[{id:`new`,group:`Actions`,title:`New session…`,shortcut:`N`,run:e.onNew},{id:`switch-project`,group:`Actions`,title:`Switch project…`,shortcut:`⌘P`,keywords:`project switch change repository workspace`,scope:`projects`,run:()=>void 0},{id:`go-hub`,group:`Actions`,title:`All projects`,shortcut:`⇧⌘H`,keywords:`hub projects home overview`,run:e.onOpenHub},{id:`go-sessions`,group:`Actions`,title:`Go to sessions`,keywords:`dashboard home`,run:e.onGoToSessions},{id:`go-reviews`,group:`Actions`,title:`Go to reviews`,keywords:`review comments triage`,run:e.onGoToReviews},{id:`go-packages`,group:`Actions`,title:`Go to packages`,keywords:`package install add remove inspect`,run:e.onGoToPackages},{id:`go-settings`,group:`Actions`,title:`Publishing settings`,hint:`GitLab token for this project`,keywords:`settings gitlab token publish credentials merge request`,run:e.onGoToSettings},{id:`install-package`,group:`Packages`,title:`Install package…`,keywords:`github skills.sh registry add dependency`,run:e.onInstallPackage},{id:`browse-skills`,group:`Packages`,title:`Browse skills…`,hint:`The skills.sh catalogue`,keywords:`skills.sh catalogue browse search install skill agent`,run:e.onBrowseSkills},{id:`sync-project`,group:`Packages`,title:`Sync…`,hint:`Regenerate target folders`,keywords:`sync regenerate claude cursor drift check`,run:e.onSyncProject},{id:`review-branch`,group:`Actions`,title:`Review a branch…`,hint:`Tied to no session`,keywords:`standalone review branch diff someone else`,run:e.onReviewBranch},{id:`copy-execute-line`,group:`Actions`,title:`Copy the execute line`,shortcut:`⇧⌘R`,keywords:`paste agent run session`,run:e.onCopyExecuteLine},{id:`migrate`,group:`Actions`,title:`Migrate all session headers`,keywords:`fix header meta`,run:e.onMigrateAll},{id:`shortcuts`,group:`Actions`,title:`Keyboard shortcuts`,shortcut:`?`,run:e.onShortcuts},{id:`stop`,group:`Actions`,title:`Stop this UI server`,keywords:`quit shutdown exit`,run:e.onStop}];if(e.project&&r.push({id:`copy-project`,group:`Actions`,title:`Copy project path`,hint:e.project,run:async()=>{e.toast(await tn(e.project)?`Path copied`:`Could not copy`,`success`)}}),n){r.push({id:`mode-preview`,group:`This session`,title:`Preview`,shortcut:`⇧⌘V`,run:()=>e.onSetMode(`preview`)},{id:`mode-edit`,group:`This session`,title:`Edit`,shortcut:`⇧⌘V`,run:()=>e.onSetMode(`edit`)},{id:`mode-split`,group:`This session`,title:`Split`,shortcut:`S`,run:()=>e.onSetMode(`split`)}),n.kind===`plan`&&n.status===`executed`&&e.canReview&&r.push({id:`request-review`,group:`This session`,title:`Request review`,keywords:`diff branch code review`,run:()=>e.onRequestReview(n.id)}),n.reviewFile&&r.push({id:`open-review-file`,group:`This session`,title:`Open the review document`,hint:n.reviewFile,run:()=>e.onOpenReview(an(n.reviewFile))});for(let t of Vt)t!==n.status&&r.push({id:`status-${t}`,group:`This session`,title:`Set status: ${Ft({kind:n.kind,status:t}).label}`,status:t,run:()=>e.onChangeStatus(n.id,t)});n.status===`review`&&r.push({id:`status-locked`,group:`This session`,title:`Why can I not change this status?`,hint:Ht,keywords:`review status locked triage`,run:()=>e.toast(Ht,`info`)})}for(let t of e.projects){let n=t.attention?.awaitingDecision??0,i=t.attention?.openReviewComments??0;r.push({id:`switch-to-${t.id}`,group:`Switch project`,scopedTo:`projects`,title:t.name,hint:t.id===e.currentProjectId?`current`:[n>0?`${n} awaiting you`:``,i>0?`${i} comments`:``].filter(e=>e.length>0).join(` · `)||nn(t.directory),keywords:`${t.directory} project switch`,run:()=>e.onSwitchProject(t.id)})}for(let t of e.reviews)r.push({id:`open-review-${t.slug}`,group:`Go to review`,title:t.branch,hint:t.counts.open>0?`${t.counts.open} awaiting triage`:`${t.counts.staged} staged`,keywords:`${t.path} review comments`,run:()=>e.onOpenReview(t.slug)});for(let t of e.sessions){let n=Ft(t,dn(t,e.reviews));r.push({id:`open-${t.id}`,group:t.kind===`review`?`Go to review session`:`Go to session`,title:t.title,hint:t.kind===`review`?`${n.label} · ${t.branch??``}`.trim():n.label,status:t.status,keywords:`${t.excerpt} ${t.tags.join(` `)} ${t.branch??``}`,run:()=>e.onOpenSession(t.id)})}return r},[e])}function ns(e){let t=e;return t?t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable||t.closest(`.cm-editor`)!==null:!1}function rs(e){(0,k.useEffect)(()=>{let t=t=>{let n=t.metaKey||t.ctrlKey;if(n&&t.key.toLowerCase()===`k`){t.preventDefault(),e.onPalette();return}if(n&&!t.shiftKey&&t.key.toLowerCase()===`p`){t.preventDefault(),e.onSwitcher();return}if(n&&t.shiftKey&&t.key.toLowerCase()===`h`){t.preventDefault(),e.onHub();return}if(n&&t.shiftKey&&t.key.toLowerCase()===`v`){t.preventDefault(),e.onTogglePreview();return}if(n&&t.shiftKey&&t.key.toLowerCase()===`r`){t.preventDefault(),e.onCopyExecuteLine();return}if(!(!e.enabled||e.paletteOpen)){if(t.key===`Escape`&&!ns(t.target)){e.onEscape();return}if(!ns(t.target)){if(n&&t.key.toLowerCase()===`a`&&!e.isSessionRoute){t.preventDefault(),e.onSelectAll();return}if(n&&t.key===`Backspace`&&e.hasSelection){t.preventDefault(),e.onArchiveSelected();return}switch(t.key){case`x`:case`X`:t.preventDefault(),e.onToggleSelect(t.shiftKey);return;case`n`:t.preventDefault(),e.onNew();return;case`/`:t.preventDefault(),e.onFilter();return;case`?`:t.preventDefault(),e.onShortcuts();return;case`j`:e.onMove(1);return;case`k`:e.onMove(-1);return;case`ArrowDown`:e.isSessionRoute||(t.preventDefault(),e.onMove(1));return;case`ArrowUp`:e.isSessionRoute||(t.preventDefault(),e.onMove(-1));return;case`Enter`:e.isSessionRoute||e.onOpenFocused();return;case`e`:e.isSessionRoute&&e.onTogglePreview();return;case`p`:e.isSessionRoute&&e.onTogglePreview();return;case`s`:e.isSessionRoute&&e.onSplit();return;case`1`:case`2`:case`3`:case`4`:case`5`:e.onStatusDigit(Number(t.key)-1);return}}}};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])}var is=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/hub/ProjectCardView.tsx`;function as({card:e,focused:t,onOpen:n,onFocus:r,onRemove:i,onCopyPath:a,onInitialize:o}){let s=e.state!==`ok`,c=St(e.lastActivityAt);return(0,A.jsxDEV)(`article`,{className:`project-card project-card--${e.color}${t?` is-focused`:``}${s?` is-unavailable`:``}`,"data-project-id":e.id,onMouseEnter:r,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`project-card__open`,onClick:n,disabled:s,"aria-label":`Open ${e.name}`,children:[(0,A.jsxDEV)(`header`,{className:`project-card__head`,children:[(0,A.jsxDEV)(`span`,{className:`project-card__monogram`,children:bt(e.name)},void 0,!1,{fileName:is,lineNumber:51,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`project-card__name`,children:e.name},void 0,!1,{fileName:is,lineNumber:52,columnNumber:11},this),s&&(0,A.jsxDEV)(`span`,{className:`project-card__state`,children:os(e.state)},void 0,!1,{fileName:is,lineNumber:53,columnNumber:27},this)]},void 0,!0,{fileName:is,lineNumber:50,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`project-card__path`,title:e.directory,children:nn(e.directory)},void 0,!1,{fileName:is,lineNumber:56,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`project-card__attention${s?` is-problem`:``}`,children:xt(e)},void 0,!1,{fileName:is,lineNumber:60,columnNumber:9},this),(0,A.jsxDEV)(`footer`,{className:`project-card__foot`,children:[e.git?.branch&&(0,A.jsxDEV)(`span`,{className:`chip chip--branch`,children:e.git.branch},void 0,!1,{fileName:is,lineNumber:65,columnNumber:32},this),e.packages&&e.packages.installed>0&&(0,A.jsxDEV)(`span`,{className:`project-card__meta`,children:[e.packages.installed,` package`,e.packages.installed===1?``:`s`]},void 0,!0,{fileName:is,lineNumber:67,columnNumber:13},this),c&&(0,A.jsxDEV)(`span`,{className:`project-card__meta`,children:c},void 0,!1,{fileName:is,lineNumber:71,columnNumber:24},this)]},void 0,!0,{fileName:is,lineNumber:64,columnNumber:9},this)]},void 0,!0,{fileName:is,lineNumber:43,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`project-card__actions`,children:[e.state===`uninitialized`&&(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:o,children:`How to fix`},void 0,!1,{fileName:is,lineNumber:77,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:a,children:`Copy path`},void 0,!1,{fileName:is,lineNumber:81,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:i,children:`Remove`},void 0,!1,{fileName:is,lineNumber:86,columnNumber:9},this)]},void 0,!0,{fileName:is,lineNumber:75,columnNumber:7},this)]},void 0,!0,{fileName:is,lineNumber:36,columnNumber:5},this)}function os(e){switch(e){case`missing`:return`missing`;case`uninitialized`:return`not initialized`;case`unreadable`:return`unreadable`;default:return``}}var ss=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/hub/AddProjectModal.tsx`;function cs({busy:e,onClose:t,onSubmit:n,error:r}){let[i,a]=(0,k.useState)(``),o=i.trim();return(0,A.jsxDEV)(Mn,{title:`Add project`,onClose:t,children:(0,A.jsxDEV)(`form`,{className:`form`,onSubmit:t=>{t.preventDefault(),o.length>0&&!e&&n(o)},children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Project folder`},void 0,!1,{fileName:ss,lineNumber:34,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,autoFocus:!0,value:i,placeholder:`~/dev/my-project`,spellCheck:!1,onChange:e=>a(e.target.value)},void 0,!1,{fileName:ss,lineNumber:35,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`The folder holding `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:ss,lineNumber:44,columnNumber:32},this),`. `,(0,A.jsxDEV)(`code`,{children:`~`},void 0,!1,{fileName:ss,lineNumber:44,columnNumber:61},this),` works.`]},void 0,!0,{fileName:ss,lineNumber:43,columnNumber:11},this)]},void 0,!0,{fileName:ss,lineNumber:33,columnNumber:9},this),r!==void 0&&(0,A.jsxDEV)(ls,{error:r},void 0,!1,{fileName:ss,lineNumber:48,columnNumber:33},this),(0,A.jsxDEV)(`div`,{className:`form__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:t,children:`Cancel`},void 0,!1,{fileName:ss,lineNumber:51,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`submit`,className:`button button--solid`,disabled:e||o.length===0,children:e?`Adding…`:`Add project`},void 0,!1,{fileName:ss,lineNumber:54,columnNumber:11},this)]},void 0,!0,{fileName:ss,lineNumber:50,columnNumber:9},this)]},void 0,!0,{fileName:ss,lineNumber:26,columnNumber:7},this)},void 0,!1,{fileName:ss,lineNumber:25,columnNumber:5},this)}function ls({error:e}){return e instanceof Bn&&e.code===`PROJECT_NOT_INITIALIZED`?(0,A.jsxDEV)(`p`,{className:`form__error`,children:[`That folder is not an Invariant project yet. Run `,(0,A.jsxDEV)(`code`,{children:`invariant init`},void 0,!1,{fileName:ss,lineNumber:71,columnNumber:58},this),` there, then add it.`]},void 0,!0,{fileName:ss,lineNumber:70,columnNumber:7},this):e instanceof Bn&&e.code===`PROJECT_ALREADY_REGISTERED`?(0,A.jsxDEV)(`p`,{className:`form__error`,children:e.message},void 0,!1,{fileName:ss,lineNumber:76,columnNumber:12},this):e instanceof Bn&&e.code===`PROJECT_PATH_MISSING`?(0,A.jsxDEV)(`p`,{className:`form__error`,children:`No such folder. Check the path and try again.`},void 0,!1,{fileName:ss,lineNumber:79,columnNumber:12},this):(0,A.jsxDEV)(`p`,{className:`form__error`,children:e instanceof Error?e.message:`That project could not be added.`},void 0,!1,{fileName:ss,lineNumber:82,columnNumber:5},this)}var us=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/hub/HubPage.tsx`;function ds({onOpenProject:e}){let t=Fn(),{data:n,isLoading:r}=Fr(),{data:i}=Ir(),a=Lr(),o=Rr(),[s,c]=(0,k.useState)(``),[l,u]=(0,k.useState)(!1),[d,f]=(0,k.useState)(),[p,m]=(0,k.useState)(),h=(0,k.useMemo)(()=>n?.projects??[],[n]),g=(0,k.useMemo)(()=>{let e=s.trim();return e.length===0?h:h.map(t=>({project:t,score:en(`${t.name} ${t.directory}`,e)})).filter(e=>e.score!==null).sort((e,t)=>t.score-e.score).map(e=>e.project)},[h,s]),_=(0,k.useCallback)(t=>e(t),[e]),v=(0,k.useCallback)(async e=>{t(await tn(e)?`Path copied`:`Could not copy`,`success`)},[t]);return(0,k.useEffect)(()=>{let e=e=>{let t=e.target;if(t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`)||l||d)return;let n=e=>{if(g.length===0)return;let t=g.findIndex(e=>e.id===p),n=t===-1?0:Math.min(Math.max(t+e,0),g.length-1);m(g[n].id)};if(e.key===`j`||e.key===`ArrowDown`){e.preventDefault(),n(1);return}if(e.key===`k`||e.key===`ArrowUp`){e.preventDefault(),n(-1);return}if(e.key===`/`){e.preventDefault(),document.querySelector(`.filter__input`)?.focus();return}if(e.key===`Enter`&&p){let e=g.find(e=>e.id===p);e&&e.state===`ok`&&_(e.id)}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[g,p,_,l,d]),(0,A.jsxDEV)(`div`,{className:`hub`,children:[(0,A.jsxDEV)(`header`,{className:`hub__head`,children:[(0,A.jsxDEV)(`div`,{className:`hub__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`hub__title`,children:`Projects`},void 0,!1,{fileName:us,lineNumber:100,columnNumber:11},this),(0,A.jsxDEV)(`p`,{className:`hub__subtitle`,children:h.length===0?`None yet`:`${h.length} project${h.length===1?``:`s`} on this machine`},void 0,!1,{fileName:us,lineNumber:101,columnNumber:11},this)]},void 0,!0,{fileName:us,lineNumber:99,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`hub__controls`,children:[(0,A.jsxDEV)(`div`,{className:`filter filter--compact`,children:(0,A.jsxDEV)(`input`,{className:`filter__input`,value:s,placeholder:`Filter… /`,onChange:e=>c(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(c(``),e.currentTarget.blur())},"aria-label":`Filter projects`},void 0,!1,{fileName:us,lineNumber:110,columnNumber:13},this)},void 0,!1,{fileName:us,lineNumber:109,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>u(!0),children:`Add project`},void 0,!1,{fileName:us,lineNumber:121,columnNumber:11},this)]},void 0,!0,{fileName:us,lineNumber:108,columnNumber:9},this)]},void 0,!0,{fileName:us,lineNumber:98,columnNumber:7},this),r?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading projects…`},void 0,!1,{fileName:us,lineNumber:128,columnNumber:9},this):h.length===0?(0,A.jsxDEV)(fs,{registryPath:n?.registryPath,onAdd:()=>u(!0)},void 0,!1,{fileName:us,lineNumber:130,columnNumber:9},this):g.length===0?(0,A.jsxDEV)(`div`,{className:`page-state`,children:[`No project matches “`,s,`”.`]},void 0,!0,{fileName:us,lineNumber:132,columnNumber:9},this):(0,A.jsxDEV)(`div`,{className:`hub__grid`,children:g.map(e=>(0,A.jsxDEV)(as,{card:e,focused:e.id===p,onFocus:()=>m(e.id),onOpen:()=>_(e.id),onCopyPath:()=>void v(e.directory),onRemove:()=>f(e),onInitialize:()=>t(`Run \`invariant init\` in ${e.directory}, then reload.`,`info`)},e.id,!1,{fileName:us,lineNumber:136,columnNumber:13},this))},void 0,!1,{fileName:us,lineNumber:134,columnNumber:9},this),i&&(0,A.jsxDEV)(`footer`,{className:`hub__foot`,children:[(0,A.jsxDEV)(`span`,{children:[`invariant ui v`,i.version,` · port `,i.port,` · pid `,i.pid]},void 0,!0,{fileName:us,lineNumber:154,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`hub__registry`,title:i.registryPath,children:i.registryPath},void 0,!1,{fileName:us,lineNumber:157,columnNumber:11},this)]},void 0,!0,{fileName:us,lineNumber:153,columnNumber:9},this),l&&(0,A.jsxDEV)(cs,{busy:a.isPending,error:a.error??void 0,onClose:()=>{a.reset(),u(!1)},onSubmit:e=>a.mutate(e,{onSuccess:e=>{u(!1),a.reset(),t(`Added ${e.name}`,`success`)}})},void 0,!1,{fileName:us,lineNumber:164,columnNumber:9},this),d&&(0,A.jsxDEV)(Tn,{title:`Remove ${d.name}?`,body:`This only removes it from this list. Nothing in ${d.directory} is touched, and adding the path again restores everything.`,confirmLabel:`Remove`,cancelLabel:`Keep`,onCancel:()=>f(void 0),onConfirm:()=>{let e=d;f(void 0),o.mutate(e.id,{onSuccess:()=>t(`Removed ${e.name} from the list`,`success`),onError:()=>t(`Could not remove that project.`,`danger`)})}},void 0,!1,{fileName:us,lineNumber:184,columnNumber:9},this)]},void 0,!0,{fileName:us,lineNumber:97,columnNumber:5},this)}function fs({registryPath:e,onAdd:t}){return(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`No projects yet`},void 0,!1,{fileName:us,lineNumber:208,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`Add the folder of a project you have run `,(0,A.jsxDEV)(`code`,{children:`invariant init`},void 0,!1,{fileName:us,lineNumber:210,columnNumber:50},this),` in. The UI serves them all from here — one server, one tab, however many repositories you work in.`]},void 0,!0,{fileName:us,lineNumber:209,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:t,children:`Add project`},void 0,!1,{fileName:us,lineNumber:213,columnNumber:7},this),e&&(0,A.jsxDEV)(`p`,{className:`empty__footnote`,children:[`The list lives in `,(0,A.jsxDEV)(`code`,{children:e},void 0,!1,{fileName:us,lineNumber:216,columnNumber:29},this),`.`]},void 0,!0,{fileName:us,lineNumber:215,columnNumber:9},this)]},void 0,!0,{fileName:us,lineNumber:207,columnNumber:5},this)}var ps=/^\/p\/([^/]+)(\/.*)?$/;function ms(e){return e.name!==`hub`&&e.name!==`not-found`}function hs(e){if(e===`/`||e===``||e===`/projects`)return{name:`hub`};let t=e.match(ps);if(!t)return{name:`not-found`,path:e};let n=decodeURIComponent(t[1]),r=t[2]??`/`;if(r===`/`||r===`/sessions`)return{name:`sessions`,projectId:n};let i=r.match(/^\/sessions\/([^/]+)$/);if(i)return{name:`session`,projectId:n,sessionId:decodeURIComponent(i[1])};if(r===`/reviews`)return{name:`reviews`,projectId:n};let a=r.match(/^\/reviews\/([^/]+)$/);return a?{name:`review`,projectId:n,slug:decodeURIComponent(a[1])}:r===`/packages`?{name:`packages`,projectId:n}:r===`/packages/skills`?{name:`skills`,projectId:n}:r===`/settings`?{name:`settings`,projectId:n}:{name:`not-found`,path:e}}function gs(e){if(e.name===`hub`||e.name===`not-found`)return`/`;let t=`/p/${encodeURIComponent(e.projectId)}`;switch(e.name){case`sessions`:return`${t}/sessions`;case`session`:return`${t}/sessions/${encodeURIComponent(e.sessionId)}`;case`reviews`:return`${t}/reviews`;case`review`:return`${t}/reviews/${encodeURIComponent(e.slug)}`;case`packages`:return`${t}/packages`;case`skills`:return`${t}/packages/skills`;case`settings`:return`${t}/settings`;default:return`/`}}function _s(e,t){if(e.startsWith(`/p/`))return;let n=hs(`/p/${encodeURIComponent(t)}${e}`);return n.name===`not-found`?void 0:n}function vs(){let[e,t]=(0,k.useState)(()=>hs(window.location.pathname));return(0,k.useEffect)(()=>{let e=()=>t(hs(window.location.pathname));return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),{route:e,navigate:(0,k.useCallback)(e=>{let n=gs(e);n!==window.location.pathname&&window.history.pushState({},``,n),t(e)},[]),back:(0,k.useCallback)(()=>window.history.back(),[])}}var ys=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/App.tsx`;function bs(){let{route:e,navigate:t}=vs(),{data:n}=Fr({poll:e.name===`hub`}),r=Br(),i=(0,k.useMemo)(()=>n?.projects??[],[n]),a=ms(e)?e.projectId:void 0,o=i.find(e=>e.id===a),s=(0,k.useRef)(void 0);(0,k.useEffect)(()=>{a&&s.current!==a&&(r(a,s.current),s.current=a),a||(s.current=void 0)},[a,r]);let c=(0,k.useCallback)(e=>t({name:`sessions`,projectId:e}),[t]);(0,k.useEffect)(()=>{if(e.name!==`not-found`||!n)return;let r=n.lastActiveProjectId??i[0]?.id;if(!r)return;let a=_s(e.path,r);a&&(window.history.replaceState({},``,gs(a)),t(a))},[e,n,i,t]);let[l,u]=(0,k.useState)(),d=(0,k.useCallback)(e=>{e!==a&&c(e)},[a,c]);return(0,k.useEffect)(()=>{if(ms(e))return;let t=e=>{(e.metaKey||e.ctrlKey)&&(e.key.toLowerCase()===`p`||e.key.toLowerCase()===`k`)&&(e.preventDefault(),u(`projects`))};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e]),ms(e)?(0,A.jsxDEV)(Jn,{projectId:e.projectId,card:o,children:(0,A.jsxDEV)($o,{projectId:e.projectId,route:e,navigate:t,projects:i,card:o,onOpenHub:()=>t({name:`hub`}),onSwitchProject:d},e.projectId,!1,{fileName:ys,lineNumber:89,columnNumber:9},this)},e.projectId,!1,{fileName:ys,lineNumber:88,columnNumber:7},this):(0,A.jsxDEV)(`div`,{className:`app app--hub`,children:[(0,A.jsxDEV)(`main`,{className:`main`,children:(0,A.jsxDEV)(ds,{onOpenProject:c},void 0,!1,{fileName:ys,lineNumber:106,columnNumber:9},this)},void 0,!1,{fileName:ys,lineNumber:105,columnNumber:7},this),l&&(0,A.jsxDEV)(Yo,{actions:xs(i,d,a),initialScope:l,onClose:()=>u(void 0)},void 0,!1,{fileName:ys,lineNumber:110,columnNumber:9},this)]},void 0,!0,{fileName:ys,lineNumber:104,columnNumber:5},this)}function xs(e,t,n){return e.map(e=>({id:`switch-to-${e.id}`,group:`Switch project`,scopedTo:`projects`,title:e.name,hint:e.id===n?`current`:nn(e.directory),keywords:`${e.directory} project switch`,run:()=>t(e.id)}))}var Ss=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/main.tsx`,Cs=new Ze({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,staleTime:5e3}}});(0,yt.createRoot)(document.getElementById(`root`)).render((0,A.jsxDEV)(k.StrictMode,{children:(0,A.jsxDEV)(rt,{client:Cs,children:(0,A.jsxDEV)(Ln,{children:(0,A.jsxDEV)(bs,{},void 0,!1,{fileName:Ss,lineNumber:26,columnNumber:9},void 0)},void 0,!1,{fileName:Ss,lineNumber:25,columnNumber:7},void 0)},void 0,!1,{fileName:Ss,lineNumber:24,columnNumber:5},void 0)},void 0,!1,{fileName:Ss,lineNumber:23,columnNumber:3},void 0));export{d as a,l as c,wt as i,mi as n,o,pi as r,s,hi as t};
|