@weaverclub/render 0.0.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/.github/workflows/publish.yml +44 -0
- package/biome.json +42 -0
- package/build.ts +62 -0
- package/bun.lock +733 -0
- package/bunfig.toml +3 -0
- package/dist/entrypoint.exe +0 -0
- package/dist/index.d.mts +86 -0
- package/dist/index.mjs +134 -0
- package/dist/index.mjs.map +1 -0
- package/dist/ui/chunk-6phcrrx7.css +1 -0
- package/dist/ui/chunk-9bkatxct.js +265 -0
- package/dist/ui/chunk-9bkatxct.js.map +272 -0
- package/dist/ui/index.html +12 -0
- package/ideas.md +11 -0
- package/package.json +60 -0
- package/publish.ts +62 -0
- package/src/cli/command/renderCommand.ts +112 -0
- package/src/cli/entrypoint.ts +25 -0
- package/src/core/bundler.ts +180 -0
- package/src/core/control/arrayControl.ts +15 -0
- package/src/core/control/booleanControl.ts +15 -0
- package/src/core/control/control.ts +7 -0
- package/src/core/control/controlBuilder.ts +87 -0
- package/src/core/control/numberControl.ts +15 -0
- package/src/core/control/stringControl.ts +15 -0
- package/src/core/control/variantControl.ts +18 -0
- package/src/core/css/css.ts +50 -0
- package/src/core/css/tailwind.ts +172 -0
- package/src/core/html.ts +63 -0
- package/src/core/pkg.ts +92 -0
- package/src/core/story.ts +52 -0
- package/src/core/tsconfig.ts +46 -0
- package/src/react/react.ts +2 -0
- package/src/react/reactControlBuilder.ts +130 -0
- package/src/react/reactStory.ts +36 -0
- package/src/server/api/getStories.ts +44 -0
- package/src/server/api/renderIframe.ts +66 -0
- package/src/server/backend.ts +104 -0
- package/src/server/streaming.ts +16 -0
- package/src/ui/api.ts +16 -0
- package/src/ui/app.tsx +23 -0
- package/src/ui/cn.ts +6 -0
- package/src/ui/components/appSidebar.tsx +76 -0
- package/src/ui/components/button.stories.tsx +32 -0
- package/src/ui/components/button.tsx +55 -0
- package/src/ui/components/command.tsx +187 -0
- package/src/ui/components/contextMenu.tsx +261 -0
- package/src/ui/components/dialog.tsx +153 -0
- package/src/ui/components/input.tsx +23 -0
- package/src/ui/components/inputGroup.tsx +157 -0
- package/src/ui/components/kdb.tsx +26 -0
- package/src/ui/components/searchCommand.tsx +5 -0
- package/src/ui/components/separator.tsx +22 -0
- package/src/ui/components/sheet.tsx +131 -0
- package/src/ui/components/sidebar.tsx +725 -0
- package/src/ui/components/skeleton.tsx +13 -0
- package/src/ui/components/spinner.tsx +15 -0
- package/src/ui/components/tabButton.tsx +80 -0
- package/src/ui/components/tabContent.tsx +20 -0
- package/src/ui/components/tabList.tsx +53 -0
- package/src/ui/components/textarea.tsx +17 -0
- package/src/ui/components/tooltip.tsx +67 -0
- package/src/ui/frontend.tsx +68 -0
- package/src/ui/hooks/useMobile.ts +23 -0
- package/src/ui/index.html +12 -0
- package/src/ui/routeTree.gen.ts +35 -0
- package/src/ui/routes/__root.tsx +9 -0
- package/src/ui/styles.css +123 -0
- package/src/ui/tabs.tsx +89 -0
- package/tsconfig.json +25 -0
- package/tsr.config.json +6 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
var HP=Object.create;var{getPrototypeOf:_P,defineProperty:pH,getOwnPropertyNames:qP}=Object;var BP=Object.prototype.hasOwnProperty;var c=(J,X,Y)=>{Y=J!=null?HP(_P(J)):{};let W=X||!J||!J.__esModule?pH(Y,"default",{value:J,enumerable:!0}):Y;for(let K of qP(J))if(!BP.call(W,K))pH(W,K,{get:()=>J[K],enumerable:!0});return W};var f8=(J,X)=>()=>(X||J((X={exports:{}}).exports,X),X.exports);var qz=(J,X)=>{for(var Y in X)pH(J,Y,{get:X[Y],enumerable:!0,configurable:!0,set:(W)=>X[Y]=()=>W})};var cA=f8((LP)=>{(function(){function J(){if(b=!1,S){var r=LP.unstable_now();w0=r;var e=!0;try{w:{x=!1,I&&(I=!1,m(p),p=-1),v=!0;var o=h;try{z:{U(r);for(M=Y(k);M!==null&&!(M.expirationTime>r&&_());){var g=M.callback;if(typeof g==="function"){M.callback=null,h=M.priorityLevel;var X0=g(M.expirationTime<=r);if(r=LP.unstable_now(),typeof X0==="function"){M.callback=X0,U(r),e=!0;break z}M===Y(k)&&W(k),U(r)}else W(k);M=Y(k)}if(M!==null)e=!0;else{var P=Y(A);P!==null&&L(q,P.startTime-r),e=!1}}break w}finally{M=null,h=o,v=!1}e=void 0}}finally{e?t():S=!1}}}function X(r,e){var o=r.length;r.push(e);w:for(;0<o;){var g=o-1>>>1,X0=r[g];if(0<K(X0,e))r[g]=e,r[o]=X0,o=g;else break w}}function Y(r){return r.length===0?null:r[0]}function W(r){if(r.length===0)return null;var e=r[0],o=r.pop();if(o!==e){r[0]=o;w:for(var g=0,X0=r.length,P=X0>>>1;g<P;){var z0=2*(g+1)-1,U0=r[z0],J0=z0+1,L0=r[J0];if(0>K(U0,o))J0<X0&&0>K(L0,U0)?(r[g]=L0,r[J0]=o,g=J0):(r[g]=U0,r[z0]=o,g=z0);else if(J0<X0&&0>K(L0,o))r[g]=L0,r[J0]=o,g=J0;else break w}}return e}function K(r,e){var o=r.sortIndex-e.sortIndex;return o!==0?o:r.id-e.id}function U(r){for(var e=Y(A);e!==null;){if(e.callback===null)W(A);else if(e.startTime<=r)W(A),e.sortIndex=e.expirationTime,X(k,e);else break;e=Y(A)}}function q(r){if(I=!1,U(r),!x)if(Y(k)!==null)x=!0,S||(S=!0,t());else{var e=Y(A);e!==null&&L(q,e.startTime-r)}}function _(){return b?!0:LP.unstable_now()-w0<d?!1:!0}function L(r,e){p=E(function(){r(LP.unstable_now())},e)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),LP.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var F=performance;LP.unstable_now=function(){return F.now()}}else{var N=Date,V=N.now();LP.unstable_now=function(){return N.now()-V}}var k=[],A=[],D=1,M=null,h=3,v=!1,x=!1,I=!1,b=!1,E=typeof setTimeout==="function"?setTimeout:null,m=typeof clearTimeout==="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null,S=!1,p=-1,d=5,w0=-1;if(typeof R==="function")var t=function(){R(J)};else if(typeof MessageChannel<"u"){var u=new MessageChannel,Q0=u.port2;u.port1.onmessage=J,t=function(){Q0.postMessage(null)}}else t=function(){E(J,0)};LP.unstable_IdlePriority=5,LP.unstable_ImmediatePriority=1,LP.unstable_LowPriority=4,LP.unstable_NormalPriority=3,LP.unstable_Profiling=null,LP.unstable_UserBlockingPriority=2,LP.unstable_cancelCallback=function(r){r.callback=null},LP.unstable_forceFrameRate=function(r){0>r||125<r?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):d=0<r?Math.floor(1000/r):5},LP.unstable_getCurrentPriorityLevel=function(){return h},LP.unstable_next=function(r){switch(h){case 1:case 2:case 3:var e=3;break;default:e=h}var o=h;h=e;try{return r()}finally{h=o}},LP.unstable_requestPaint=function(){b=!0},LP.unstable_runWithPriority=function(r,e){switch(r){case 1:case 2:case 3:case 4:case 5:break;default:r=3}var o=h;h=r;try{return e()}finally{h=o}},LP.unstable_scheduleCallback=function(r,e,o){var g=LP.unstable_now();switch(typeof o==="object"&&o!==null?(o=o.delay,o=typeof o==="number"&&0<o?g+o:g):o=g,r){case 1:var X0=-1;break;case 2:X0=250;break;case 5:X0=1073741823;break;case 4:X0=1e4;break;default:X0=5000}return X0=o+X0,r={id:D++,callback:e,priorityLevel:r,startTime:o,expirationTime:X0,sortIndex:-1},o>g?(r.sortIndex=o,X(A,r),Y(k)===null&&r===Y(A)&&(I?(m(p),p=-1):I=!0,L(q,o-g))):(r.sortIndex=X0,X(k,r),x||v||(x=!0,S||(S=!0,t()))),r},LP.unstable_shouldYield=_,LP.unstable_wrapCallback=function(r){var e=h;return function(){var o=h;h=e;try{return r.apply(this,arguments)}finally{h=o}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var G0=f8((VP,MY)=>{(function(){function J(T,s){Object.defineProperty(W.prototype,T,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",s[0],s[1])}})}function X(T){if(T===null||typeof T!=="object")return null;return T=n0&&T[n0]||T["@@iterator"],typeof T==="function"?T:null}function Y(T,s){T=(T=T.constructor)&&(T.displayName||T.name)||"ReactClass";var K0=T+"."+s;n[K0]||(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.",s,T),n[K0]=!0)}function W(T,s,K0){this.props=T,this.context=s,this.refs=j1,this.updater=K0||R0}function K(){}function U(T,s,K0){this.props=T,this.context=s,this.refs=j1,this.updater=K0||R0}function q(){}function _(T){return""+T}function L(T){try{_(T);var s=!1}catch(T0){s=!0}if(s){s=console;var K0=s.error,N0=typeof Symbol==="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object";return K0.call(s,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N0),_(T)}}function F(T){if(T==null)return null;if(typeof T==="function")return T.$$typeof===O0?null:T.displayName||T.name||null;if(typeof T==="string")return T;switch(T){case X0:return"Fragment";case z0:return"Profiler";case P:return"StrictMode";case S0:return"Suspense";case V0:return"SuspenseList";case r0:return"Activity"}if(typeof T==="object")switch(typeof T.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),T.$$typeof){case g:return"Portal";case J0:return T.displayName||"Context";case U0:return(T._context.displayName||"Context")+".Consumer";case L0:var s=T.render;return T=T.displayName,T||(T=s.displayName||s.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case H0:return s=T.displayName||null,s!==null?s:F(T.type)||"Memo";case j0:s=T._payload,T=T._init;try{return F(T(s))}catch(K0){}}return null}function N(T){if(T===X0)return"<>";if(typeof T==="object"&&T!==null&&T.$$typeof===j0)return"<...>";try{var s=F(T);return s?"<"+s+">":"<...>"}catch(K0){return"<...>"}}function V(){var T=A0.A;return T===null?null:T.getOwner()}function k(){return Error("react-stack-top-frame")}function A(T){if(c0.call(T,"key")){var s=Object.getOwnPropertyDescriptor(T,"key").get;if(s&&s.isReactWarning)return!1}return T.key!==void 0}function D(T,s){function K0(){E0||(E0=!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)",s))}K0.isReactWarning=!0,Object.defineProperty(T,"key",{get:K0,configurable:!0})}function M(){var T=F(this.type);return x0[T]||(x0[T]=!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.")),T=this.props.ref,T!==void 0?T:null}function h(T,s,K0,N0,T0,a0){var u0=K0.ref;return T={$$typeof:o,type:T,key:s,props:K0,_owner:N0},(u0!==void 0?u0:null)!==null?Object.defineProperty(T,"ref",{enumerable:!1,get:M}):Object.defineProperty(T,"ref",{enumerable:!1,value:null}),T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(T,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(T,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:T0}),Object.defineProperty(T,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a0}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T}function v(T,s){return s=h(T.type,s,T.props,T._owner,T._debugStack,T._debugTask),T._store&&(s._store.validated=T._store.validated),s}function x(T){I(T)?T._store&&(T._store.validated=1):typeof T==="object"&&T!==null&&T.$$typeof===j0&&(T._payload.status==="fulfilled"?I(T._payload.value)&&T._payload.value._store&&(T._payload.value._store.validated=1):T._store&&(T._store.validated=1))}function I(T){return typeof T==="object"&&T!==null&&T.$$typeof===o}function b(T){var s={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(K0){return s[K0]})}function E(T,s){return typeof T==="object"&&T!==null&&T.key!=null?(L(T.key),b(""+T.key)):s.toString(36)}function m(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status==="string"?T.then(q,q):(T.status="pending",T.then(function(s){T.status==="pending"&&(T.status="fulfilled",T.value=s)},function(s){T.status==="pending"&&(T.status="rejected",T.reason=s)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function R(T,s,K0,N0,T0){var a0=typeof T;if(a0==="undefined"||a0==="boolean")T=null;var u0=!1;if(T===null)u0=!0;else switch(a0){case"bigint":case"string":case"number":u0=!0;break;case"object":switch(T.$$typeof){case o:case g:u0=!0;break;case j0:return u0=T._init,R(u0(T._payload),s,K0,N0,T0)}}if(u0){u0=T,T0=T0(u0);var $1=N0===""?"."+E(u0,0):N0;return _0(T0)?(K0="",$1!=null&&(K0=$1.replace(D1,"$&/")+"/"),R(T0,s,K0,"",function(Ew){return Ew})):T0!=null&&(I(T0)&&(T0.key!=null&&(u0&&u0.key===T0.key||L(T0.key)),K0=v(T0,K0+(T0.key==null||u0&&u0.key===T0.key?"":(""+T0.key).replace(D1,"$&/")+"/")+$1),N0!==""&&u0!=null&&I(u0)&&u0.key==null&&u0._store&&!u0._store.validated&&(K0._store.validated=2),T0=K0),s.push(T0)),1}if(u0=0,$1=N0===""?".":N0+":",_0(T))for(var d0=0;d0<T.length;d0++)N0=T[d0],a0=$1+E(N0,d0),u0+=R(N0,s,K0,a0,T0);else if(d0=X(T),typeof d0==="function")for(d0===T.entries&&(q1||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),q1=!0),T=d0.call(T),d0=0;!(N0=T.next()).done;)N0=N0.value,a0=$1+E(N0,d0++),u0+=R(N0,s,K0,a0,T0);else if(a0==="object"){if(typeof T.then==="function")return R(m(T),s,K0,N0,T0);throw s=String(T),Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}return u0}function S(T,s,K0){if(T==null)return T;var N0=[],T0=0;return R(T,N0,"","",function(a0){return s.call(K0,a0,T0++)}),N0}function p(T){if(T._status===-1){var s=T._ioInfo;s!=null&&(s.start=s.end=performance.now()),s=T._result;var K0=s();if(K0.then(function(T0){if(T._status===0||T._status===-1){T._status=1,T._result=T0;var a0=T._ioInfo;a0!=null&&(a0.end=performance.now()),K0.status===void 0&&(K0.status="fulfilled",K0.value=T0)}},function(T0){if(T._status===0||T._status===-1){T._status=2,T._result=T0;var a0=T._ioInfo;a0!=null&&(a0.end=performance.now()),K0.status===void 0&&(K0.status="rejected",K0.reason=T0)}}),s=T._ioInfo,s!=null){s.value=K0;var N0=K0.displayName;typeof N0==="string"&&(s.name=N0)}T._status===-1&&(T._status=0,T._result=K0)}if(T._status===1)return s=T._result,s===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?`,s),"default"in s||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'))`,s),s.default;throw T._result}function d(){var T=A0.H;return T===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.`),T}function w0(){A0.asyncTransitions--}function t(T){if(zw===null)try{var s=("require"+Math.random()).slice(0,7);zw=(MY&&MY[s]).call(MY,"timers").setImmediate}catch(K0){zw=function(N0){Gw===!1&&(Gw=!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 T0=new MessageChannel;T0.port1.onmessage=N0,T0.port2.postMessage(void 0)}}return zw(T)}function u(T){return 1<T.length&&typeof AggregateError==="function"?AggregateError(T):T[0]}function Q0(T,s){s!==Lw-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. "),Lw=s}function r(T,s,K0){var N0=A0.actQueue;if(N0!==null)if(N0.length!==0)try{e(N0),t(function(){return r(T,s,K0)});return}catch(T0){A0.thrownErrors.push(T0)}else A0.actQueue=null;0<A0.thrownErrors.length?(N0=u(A0.thrownErrors),A0.thrownErrors.length=0,K0(N0)):s(T)}function e(T){if(!hw){hw=!0;var s=0;try{for(;s<T.length;s++){var K0=T[s];do{A0.didUsePromise=!1;var N0=K0(!1);if(N0!==null){if(A0.didUsePromise){T[s]=K0,T.splice(0,s);return}K0=N0}else break}while(1)}T.length=0}catch(T0){T.splice(0,s+1),A0.thrownErrors.push(T0)}finally{hw=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),X0=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),z0=Symbol.for("react.profiler"),U0=Symbol.for("react.consumer"),J0=Symbol.for("react.context"),L0=Symbol.for("react.forward_ref"),S0=Symbol.for("react.suspense"),V0=Symbol.for("react.suspense_list"),H0=Symbol.for("react.memo"),j0=Symbol.for("react.lazy"),r0=Symbol.for("react.activity"),n0=Symbol.iterator,n={},R0={isMounted:function(){return!1},enqueueForceUpdate:function(T){Y(T,"forceUpdate")},enqueueReplaceState:function(T){Y(T,"replaceState")},enqueueSetState:function(T){Y(T,"setState")}},I0=Object.assign,j1={};Object.freeze(j1),W.prototype.isReactComponent={},W.prototype.setState=function(T,s){if(typeof T!=="object"&&typeof T!=="function"&&T!=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,T,s,"setState")},W.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};var b0={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(N1 in b0)b0.hasOwnProperty(N1)&&J(N1,b0[N1]);K.prototype=W.prototype,b0=U.prototype=new K,b0.constructor=U,I0(b0,W.prototype),b0.isPureReactComponent=!0;var _0=Array.isArray,O0=Symbol.for("react.client.reference"),A0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},c0=Object.prototype.hasOwnProperty,C0=console.createTask?console.createTask:function(){return null};b0={react_stack_bottom_frame:function(T){return T()}};var E0,o0,x0={},l0=b0.react_stack_bottom_frame.bind(b0,k)(),y0=C0(N(k)),q1=!1,D1=/\/+/g,W1=typeof reportError==="function"?reportError:function(T){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T==="object"&&T!==null&&typeof T.message==="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(s))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",T);return}console.error(T)},Gw=!1,zw=null,Lw=0,Uw=!1,hw=!1,J1=typeof queueMicrotask==="function"?function(T){queueMicrotask(function(){return queueMicrotask(T)})}:t;b0=Object.freeze({__proto__:null,c:function(T){return d().useMemoCache(T)}});var N1={map:S,forEach:function(T,s,K0){S(T,function(){s.apply(this,arguments)},K0)},count:function(T){var s=0;return S(T,function(){s++}),s},toArray:function(T){return S(T,function(s){return s})||[]},only:function(T){if(!I(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};VP.Activity=r0,VP.Children=N1,VP.Component=W,VP.Fragment=X0,VP.Profiler=z0,VP.PureComponent=U,VP.StrictMode=P,VP.Suspense=S0,VP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A0,VP.__COMPILER_RUNTIME=b0,VP.act=function(T){var s=A0.actQueue,K0=Lw;Lw++;var N0=A0.actQueue=s!==null?s:[],T0=!1;try{var a0=T()}catch(d0){A0.thrownErrors.push(d0)}if(0<A0.thrownErrors.length)throw Q0(s,K0),T=u(A0.thrownErrors),A0.thrownErrors.length=0,T;if(a0!==null&&typeof a0==="object"&&typeof a0.then==="function"){var u0=a0;return J1(function(){T0||Uw||(Uw=!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(d0,Ew){T0=!0,u0.then(function(Q2){if(Q0(s,K0),K0===0){try{e(N0),t(function(){return r(Q2,d0,Ew)})}catch(a4){A0.thrownErrors.push(a4)}if(0<A0.thrownErrors.length){var K8=u(A0.thrownErrors);A0.thrownErrors.length=0,Ew(K8)}}else d0(Q2)},function(Q2){Q0(s,K0),0<A0.thrownErrors.length?(Q2=u(A0.thrownErrors),A0.thrownErrors.length=0,Ew(Q2)):Ew(Q2)})}}}var $1=a0;if(Q0(s,K0),K0===0&&(e(N0),N0.length!==0&&J1(function(){T0||Uw||(Uw=!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(() => ...)"))}),A0.actQueue=null),0<A0.thrownErrors.length)throw T=u(A0.thrownErrors),A0.thrownErrors.length=0,T;return{then:function(d0,Ew){T0=!0,K0===0?(A0.actQueue=N0,t(function(){return r($1,d0,Ew)})):d0($1)}}},VP.cache=function(T){return function(){return T.apply(null,arguments)}},VP.cacheSignal=function(){return null},VP.captureOwnerStack=function(){var T=A0.getCurrentStack;return T===null?null:T()},VP.cloneElement=function(T,s,K0){if(T===null||T===void 0)throw Error("The argument must be a React element, but you passed "+T+".");var N0=I0({},T.props),T0=T.key,a0=T._owner;if(s!=null){var u0;w:{if(c0.call(s,"ref")&&(u0=Object.getOwnPropertyDescriptor(s,"ref").get)&&u0.isReactWarning){u0=!1;break w}u0=s.ref!==void 0}u0&&(a0=V()),A(s)&&(L(s.key),T0=""+s.key);for($1 in s)!c0.call(s,$1)||$1==="key"||$1==="__self"||$1==="__source"||$1==="ref"&&s.ref===void 0||(N0[$1]=s[$1])}var $1=arguments.length-2;if($1===1)N0.children=K0;else if(1<$1){u0=Array($1);for(var d0=0;d0<$1;d0++)u0[d0]=arguments[d0+2];N0.children=u0}N0=h(T.type,T0,N0,a0,T._debugStack,T._debugTask);for(T0=2;T0<arguments.length;T0++)x(arguments[T0]);return N0},VP.createContext=function(T){return T={$$typeof:J0,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:U0,_context:T},T._currentRenderer=null,T._currentRenderer2=null,T},VP.createElement=function(T,s,K0){for(var N0=2;N0<arguments.length;N0++)x(arguments[N0]);N0={};var T0=null;if(s!=null)for(d0 in o0||!("__self"in s)||"key"in s||(o0=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),A(s)&&(L(s.key),T0=""+s.key),s)c0.call(s,d0)&&d0!=="key"&&d0!=="__self"&&d0!=="__source"&&(N0[d0]=s[d0]);var a0=arguments.length-2;if(a0===1)N0.children=K0;else if(1<a0){for(var u0=Array(a0),$1=0;$1<a0;$1++)u0[$1]=arguments[$1+2];Object.freeze&&Object.freeze(u0),N0.children=u0}if(T&&T.defaultProps)for(d0 in a0=T.defaultProps,a0)N0[d0]===void 0&&(N0[d0]=a0[d0]);T0&&D(N0,typeof T==="function"?T.displayName||T.name||"Unknown":T);var d0=1e4>A0.recentlyCreatedOwnerStacks++;return h(T,T0,N0,V(),d0?Error("react-stack-top-frame"):l0,d0?C0(N(T)):y0)},VP.createRef=function(){var T={current:null};return Object.seal(T),T},VP.forwardRef=function(T){T!=null&&T.$$typeof===H0?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof T!=="function"?console.error("forwardRef requires a render function but was given %s.",T===null?"null":typeof T):T.length!==0&&T.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",T.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),T!=null&&T.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var s={$$typeof:L0,render:T},K0;return Object.defineProperty(s,"displayName",{enumerable:!1,configurable:!0,get:function(){return K0},set:function(N0){K0=N0,T.name||T.displayName||(Object.defineProperty(T,"name",{value:N0}),T.displayName=N0)}}),s},VP.isValidElement=I,VP.lazy=function(T){T={_status:-1,_result:T};var s={$$typeof:j0,_payload:T,_init:p},K0={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return T._ioInfo=K0,s._debugInfo=[{awaited:K0}],s},VP.memo=function(T,s){T==null&&console.error("memo: The first argument must be a component. Instead received: %s",T===null?"null":typeof T),s={$$typeof:H0,type:T,compare:s===void 0?null:s};var K0;return Object.defineProperty(s,"displayName",{enumerable:!1,configurable:!0,get:function(){return K0},set:function(N0){K0=N0,T.name||T.displayName||(Object.defineProperty(T,"name",{value:N0}),T.displayName=N0)}}),s},VP.startTransition=function(T){var s=A0.T,K0={};K0._updatedFibers=new Set,A0.T=K0;try{var N0=T(),T0=A0.S;T0!==null&&T0(K0,N0),typeof N0==="object"&&N0!==null&&typeof N0.then==="function"&&(A0.asyncTransitions++,N0.then(w0,w0),N0.then(q,W1))}catch(a0){W1(a0)}finally{s===null&&K0._updatedFibers&&(T=K0._updatedFibers.size,K0._updatedFibers.clear(),10<T&&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.")),s!==null&&K0.types!==null&&(s.types!==null&&s.types!==K0.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."),s.types=K0.types),A0.T=s}},VP.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},VP.use=function(T){return d().use(T)},VP.useActionState=function(T,s,K0){return d().useActionState(T,s,K0)},VP.useCallback=function(T,s){return d().useCallback(T,s)},VP.useContext=function(T){var s=d();return T.$$typeof===U0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),s.useContext(T)},VP.useDebugValue=function(T,s){return d().useDebugValue(T,s)},VP.useDeferredValue=function(T,s){return d().useDeferredValue(T,s)},VP.useEffect=function(T,s){return T==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(T,s)},VP.useEffectEvent=function(T){return d().useEffectEvent(T)},VP.useId=function(){return d().useId()},VP.useImperativeHandle=function(T,s,K0){return d().useImperativeHandle(T,s,K0)},VP.useInsertionEffect=function(T,s){return T==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(T,s)},VP.useLayoutEffect=function(T,s){return T==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(T,s)},VP.useMemo=function(T,s){return d().useMemo(T,s)},VP.useOptimistic=function(T,s){return d().useOptimistic(T,s)},VP.useReducer=function(T,s,K0){return d().useReducer(T,s,K0)},VP.useRef=function(T){return d().useRef(T)},VP.useState=function(T){return d().useState(T)},VP.useSyncExternalStore=function(T,s,K0){return d().useSyncExternalStore(T,s,K0)},VP.useTransition=function(){return d().useTransition()},VP.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var lA=f8((FP)=>{var cH=c(G0());(function(){function J(){}function X(N){return""+N}function Y(N,V,k){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{X(A);var D=!1}catch(M){D=!0}return D&&(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&&A[Symbol.toStringTag]||A.constructor.name||"Object"),X(A)),{$$typeof:L,key:A==null?null:""+A,children:N,containerInfo:V,implementation:k}}function W(N,V){if(N==="font")return"";if(typeof V==="string")return V==="use-credentials"?V:""}function K(N){return N===null?"`null`":N===void 0?"`undefined`":N===""?"an empty string":'something with type "'+typeof N+'"'}function U(N){return N===null?"`null`":N===void 0?"`undefined`":N===""?"an empty string":typeof N==="string"?JSON.stringify(N):typeof N==="number"?"`"+N+"`":'something with type "'+typeof N+'"'}function q(){var N=F.H;return N===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.`),N}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var _={d:{f:J,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:J,C:J,L:J,m:J,X:J,S:J,M:J},p:0,findDOMNode:null},L=Symbol.for("react.portal"),F=cH.__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"),FP.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,FP.createPortal=function(N,V){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!V||V.nodeType!==1&&V.nodeType!==9&&V.nodeType!==11)throw Error("Target container is not a DOM element.");return Y(N,V,null,k)},FP.flushSync=function(N){var V=F.T,k=_.p;try{if(F.T=null,_.p=2,N)return N()}finally{F.T=V,_.p=k,_.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.")}},FP.preconnect=function(N,V){typeof N==="string"&&N?V!=null&&typeof V!=="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.",U(V)):V!=null&&typeof V.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.",K(V.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",K(N)),typeof N==="string"&&(V?(V=V.crossOrigin,V=typeof V==="string"?V==="use-credentials"?V:"":void 0):V=null,_.d.C(N,V))},FP.prefetchDNS=function(N){if(typeof N!=="string"||!N)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",K(N));else if(1<arguments.length){var V=arguments[1];typeof V==="object"&&V.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`.",U(V)):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`.",U(V))}typeof N==="string"&&_.d.D(N)},FP.preinit=function(N,V){if(typeof N==="string"&&N?V==null||typeof V!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",U(V)):V.as!=="style"&&V.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".',U(V.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",K(N)),typeof N==="string"&&V&&typeof V.as==="string"){var k=V.as,A=W(k,V.crossOrigin),D=typeof V.integrity==="string"?V.integrity:void 0,M=typeof V.fetchPriority==="string"?V.fetchPriority:void 0;k==="style"?_.d.S(N,typeof V.precedence==="string"?V.precedence:void 0,{crossOrigin:A,integrity:D,fetchPriority:M}):k==="script"&&_.d.X(N,{crossOrigin:A,integrity:D,fetchPriority:M,nonce:typeof V.nonce==="string"?V.nonce:void 0})}},FP.preinitModule=function(N,V){var k="";if(typeof N==="string"&&N||(k+=" The `href` argument encountered was "+K(N)+"."),V!==void 0&&typeof V!=="object"?k+=" The `options` argument encountered was "+K(V)+".":V&&("as"in V)&&V.as!=="script"&&(k+=" The `as` option encountered was "+U(V.as)+"."),k)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",k);else switch(k=V&&typeof V.as==="string"?V.as:"script",k){case"script":break;default:k=U(k),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)',k,N)}if(typeof N==="string")if(typeof V==="object"&&V!==null){if(V.as==null||V.as==="script")k=W(V.as,V.crossOrigin),_.d.M(N,{crossOrigin:k,integrity:typeof V.integrity==="string"?V.integrity:void 0,nonce:typeof V.nonce==="string"?V.nonce:void 0})}else V==null&&_.d.M(N)},FP.preload=function(N,V){var k="";if(typeof N==="string"&&N||(k+=" The `href` argument encountered was "+K(N)+"."),V==null||typeof V!=="object"?k+=" The `options` argument encountered was "+K(V)+".":typeof V.as==="string"&&V.as||(k+=" The `as` option encountered was "+K(V.as)+"."),k&&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',k),typeof N==="string"&&typeof V==="object"&&V!==null&&typeof V.as==="string"){k=V.as;var A=W(k,V.crossOrigin);_.d.L(N,k,{crossOrigin:A,integrity:typeof V.integrity==="string"?V.integrity:void 0,nonce:typeof V.nonce==="string"?V.nonce:void 0,type:typeof V.type==="string"?V.type:void 0,fetchPriority:typeof V.fetchPriority==="string"?V.fetchPriority:void 0,referrerPolicy:typeof V.referrerPolicy==="string"?V.referrerPolicy:void 0,imageSrcSet:typeof V.imageSrcSet==="string"?V.imageSrcSet:void 0,imageSizes:typeof V.imageSizes==="string"?V.imageSizes:void 0,media:typeof V.media==="string"?V.media:void 0})}},FP.preloadModule=function(N,V){var k="";typeof N==="string"&&N||(k+=" The `href` argument encountered was "+K(N)+"."),V!==void 0&&typeof V!=="object"?k+=" The `options` argument encountered was "+K(V)+".":V&&("as"in V)&&typeof V.as!=="string"&&(k+=" The `as` option encountered was "+K(V.as)+"."),k&&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',k),typeof N==="string"&&(V?(k=W(V.as,V.crossOrigin),_.d.m(N,{as:typeof V.as==="string"&&V.as!=="script"?V.as:void 0,crossOrigin:k,integrity:typeof V.integrity==="string"?V.integrity:void 0})):_.d.m(N))},FP.requestFormReset=function(N){_.d.r(N)},FP.unstable_batchedUpdates=function(N,V){return N(V)},FP.useFormState=function(N,V,k){return q().useFormState(N,V,k)},FP.useFormStatus=function(){return q().useHostTransitionStatus()},FP.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var m8=f8((kg,iA)=>{iA.exports=lA()});var rA=f8((NP)=>{var T1=c(cA()),Bz=c(G0()),lH=c(m8());(function(){function J(w,z){for(w=w.memoizedState;w!==null&&0<z;)w=w.next,z--;return w}function X(w,z,Z,$){if(Z>=z.length)return $;var G=z[Z],Q=Pw(w)?w.slice():H1({},w);return Q[G]=X(w[G],z,Z+1,$),Q}function Y(w,z,Z){if(z.length!==Z.length)console.warn("copyWithRename() expects paths of the same length");else{for(var $=0;$<Z.length-1;$++)if(z[$]!==Z[$]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return W(w,z,Z,0)}}function W(w,z,Z,$){var G=z[$],Q=Pw(w)?w.slice():H1({},w);return $+1===z.length?(Q[Z[$]]=Q[G],Pw(Q)?Q.splice(G,1):delete Q[G]):Q[G]=W(w[G],z,Z,$+1),Q}function K(w,z,Z){var $=z[Z],G=Pw(w)?w.slice():H1({},w);if(Z+1===z.length)return Pw(G)?G.splice($,1):delete G[$],G;return G[$]=K(w[$],z,Z+1),G}function U(){return!1}function q(){return null}function _(){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 F(){}function N(){}function V(w){var z=[];return w.forEach(function(Z){z.push(Z)}),z.sort().join(", ")}function k(w,z,Z,$){return new zv(w,z,Z,$)}function A(w,z){w.context===Q4&&(WU(w.current,2,z,w,null,null),D9())}function D(w,z){if(_5!==null){var Z=z.staleFamilies;z=z.updatedFamilies,cZ(),oB(w.current,z,Z),D9()}}function M(w){_5=w}function h(w){return!(!w||w.nodeType!==1&&w.nodeType!==9&&w.nodeType!==11)}function v(w){var z=w,Z=w;if(w.alternate)for(;z.return;)z=z.return;else{w=z;do z=w,(z.flags&4098)!==0&&(Z=z.return),w=z.return;while(w)}return z.tag===3?Z:null}function x(w){if(w.tag===13){var z=w.memoizedState;if(z===null&&(w=w.alternate,w!==null&&(z=w.memoizedState)),z!==null)return z.dehydrated}return null}function I(w){if(w.tag===31){var z=w.memoizedState;if(z===null&&(w=w.alternate,w!==null&&(z=w.memoizedState)),z!==null)return z.dehydrated}return null}function b(w){if(v(w)!==w)throw Error("Unable to find node on an unmounted component.")}function E(w){var z=w.alternate;if(!z){if(z=v(w),z===null)throw Error("Unable to find node on an unmounted component.");return z!==w?null:w}for(var Z=w,$=z;;){var G=Z.return;if(G===null)break;var Q=G.alternate;if(Q===null){if($=G.return,$!==null){Z=$;continue}break}if(G.child===Q.child){for(Q=G.child;Q;){if(Q===Z)return b(G),w;if(Q===$)return b(G),z;Q=Q.sibling}throw Error("Unable to find node on an unmounted component.")}if(Z.return!==$.return)Z=G,$=Q;else{for(var H=!1,B=G.child;B;){if(B===Z){H=!0,Z=G,$=Q;break}if(B===$){H=!0,$=G,Z=Q;break}B=B.sibling}if(!H){for(B=Q.child;B;){if(B===Z){H=!0,Z=Q,$=G;break}if(B===$){H=!0,$=Q,Z=G;break}B=B.sibling}if(!H)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(Z.alternate!==$)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(Z.tag!==3)throw Error("Unable to find node on an unmounted component.");return Z.stateNode.current===Z?w:z}function m(w){var z=w.tag;if(z===5||z===26||z===27||z===6)return w;for(w=w.child;w!==null;){if(z=m(w),z!==null)return z;w=w.sibling}return null}function R(w){if(w===null||typeof w!=="object")return null;return w=JN&&w[JN]||w["@@iterator"],typeof w==="function"?w:null}function S(w){if(w==null)return null;if(typeof w==="function")return w.$$typeof===jh?null:w.displayName||w.name||null;if(typeof w==="string")return w;switch(w){case I9:return"Fragment";case BU:return"Profiler";case V3:return"StrictMode";case VU:return"Suspense";case FU:return"SuspenseList";case NU:return"Activity"}if(typeof w==="object")switch(typeof w.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case P9:return"Portal";case v8:return w.displayName||"Context";case LU:return(w._context.displayName||"Context")+".Consumer";case wJ:var z=w.render;return w=w.displayName,w||(w=z.displayName||z.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case F3:return z=w.displayName||null,z!==null?z:S(w.type)||"Memo";case c2:z=w._payload,w=w._init;try{return S(w(z))}catch(Z){}}return null}function p(w){return typeof w.tag==="number"?d(w):typeof w.name==="string"?w.name:null}function d(w){var z=w.type;switch(w.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(z._context.displayName||"Context")+".Consumer";case 10:return z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return w=z.render,w=w.displayName||w.name||"",z.displayName||(w!==""?"ForwardRef("+w+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return S(z);case 8:return z===V3?"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 z==="function")return z.displayName||z.name||null;if(typeof z==="string")return z;break;case 29:if(z=w._debugInfo,z!=null){for(var Z=z.length-1;0<=Z;Z--)if(typeof z[Z].name==="string")return z[Z].name}if(w.return!==null)return d(w.return)}return null}function w0(w){return{current:w}}function t(w,z){0>G6?console.error("Unexpected pop."):(z!==AU[G6]&&console.error("Unexpected Fiber popped."),w.current=kU[G6],kU[G6]=null,AU[G6]=null,G6--)}function u(w,z,Z){G6++,kU[G6]=w.current,AU[G6]=Z,w.current=z}function Q0(w){return w===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),w}function r(w,z){u(Z4,z,w),u(zJ,w,w),u(z4,null,w);var Z=z.nodeType;switch(Z){case 9:case 11:Z=Z===9?"#document":"#fragment",z=(z=z.documentElement)?(z=z.namespaceURI)?xF(z):A6:A6;break;default:if(Z=z.tagName,z=z.namespaceURI)z=xF(z),z=vF(z,Z);else switch(Z){case"svg":z=Hz;break;case"math":z=LY;break;default:z=A6}}Z=Z.toLowerCase(),Z=AB(null,Z),Z={context:z,ancestorInfo:Z},t(z4,w),u(z4,Z,w)}function e(w){t(z4,w),t(zJ,w),t(Z4,w)}function o(){return Q0(z4.current)}function g(w){w.memoizedState!==null&&u(N3,w,w);var z=Q0(z4.current),Z=w.type,$=vF(z.context,Z);Z=AB(z.ancestorInfo,Z),$={context:$,ancestorInfo:Z},z!==$&&(u(zJ,w,w),u(z4,$,w))}function X0(w){zJ.current===w&&(t(z4,w),t(zJ,w)),N3.current===w&&(t(N3,w),iJ._currentValue=b7)}function P(){}function z0(){if(ZJ===0){XN=console.log,$N=console.info,YN=console.warn,GN=console.error,QN=console.group,WN=console.groupCollapsed,KN=console.groupEnd;var w={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}ZJ++}function U0(){if(ZJ--,ZJ===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H1({},w,{value:XN}),info:H1({},w,{value:$N}),warn:H1({},w,{value:YN}),error:H1({},w,{value:GN}),group:H1({},w,{value:QN}),groupCollapsed:H1({},w,{value:WN}),groupEnd:H1({},w,{value:KN})})}0>ZJ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function J0(w){var z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,w=w.stack,Error.prepareStackTrace=z,w.startsWith(`Error: react-stack-top-frame
|
|
18
|
+
`)&&(w=w.slice(29)),z=w.indexOf(`
|
|
19
|
+
`),z!==-1&&(w=w.slice(z+1)),z=w.indexOf("react_stack_bottom_frame"),z!==-1&&(z=w.lastIndexOf(`
|
|
20
|
+
`,z)),z!==-1)w=w.slice(0,z);else return"";return w}function L0(w){if(jU===void 0)try{throw Error()}catch(Z){var z=Z.stack.trim().match(/\n( *(at )?)/);jU=z&&z[1]||"",UN=-1<Z.stack.indexOf(`
|
|
21
|
+
at`)?" (<anonymous>)":-1<Z.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
+
`+jU+w+UN}function S0(w,z){if(!w||MU)return"";var Z=OU.get(w);if(Z!==void 0)return Z;MU=!0,Z=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var $=null;$=Y0.H,Y0.H=null,z0();try{var G={DetermineComponentFrameRoot:function(){try{if(z){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(M0){var Z0=M0}Reflect.construct(w,[],y)}else{try{y.call()}catch(M0){Z0=M0}w.call(y.prototype)}}else{try{throw Error()}catch(M0){Z0=M0}(y=w())&&typeof y.catch==="function"&&y.catch(function(){})}}catch(M0){if(M0&&Z0&&typeof M0.stack==="string")return[M0.stack,Z0.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Q=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");Q&&Q.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var H=G.DetermineComponentFrameRoot(),B=H[0],j=H[1];if(B&&j){var O=B.split(`
|
|
23
|
+
`),i=j.split(`
|
|
24
|
+
`);for(H=Q=0;Q<O.length&&!O[Q].includes("DetermineComponentFrameRoot");)Q++;for(;H<i.length&&!i[H].includes("DetermineComponentFrameRoot");)H++;if(Q===O.length||H===i.length)for(Q=O.length-1,H=i.length-1;1<=Q&&0<=H&&O[Q]!==i[H];)H--;for(;1<=Q&&0<=H;Q--,H--)if(O[Q]!==i[H]){if(Q!==1||H!==1)do if(Q--,H--,0>H||O[Q]!==i[H]){var a=`
|
|
25
|
+
`+O[Q].replace(" at new "," at ");return w.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",w.displayName)),typeof w==="function"&&OU.set(w,a),a}while(1<=Q&&0<=H);break}}}finally{MU=!1,Y0.H=$,U0(),Error.prepareStackTrace=Z}return O=(O=w?w.displayName||w.name:"")?L0(O):"",typeof w==="function"&&OU.set(w,O),O}function V0(w,z){switch(w.tag){case 26:case 27:case 5:return L0(w.type);case 16:return L0("Lazy");case 13:return w.child!==z&&z!==null?L0("Suspense Fallback"):L0("Suspense");case 19:return L0("SuspenseList");case 0:case 15:return S0(w.type,!1);case 11:return S0(w.type.render,!1);case 1:return S0(w.type,!0);case 31:return L0("Activity");default:return""}}function H0(w){try{var z="",Z=null;do{z+=V0(w,Z);var $=w._debugInfo;if($)for(var G=$.length-1;0<=G;G--){var Q=$[G];if(typeof Q.name==="string"){var H=z;w:{var{name:B,env:j,debugLocation:O}=Q;if(O!=null){var i=J0(O),a=i.lastIndexOf(`
|
|
26
|
+
`),y=a===-1?i:i.slice(a+1);if(y.indexOf(B)!==-1){var Z0=`
|
|
27
|
+
`+y;break w}}Z0=L0(B+(j?" ["+j+"]":""))}z=H+Z0}}Z=w,w=w.return}while(w);return z}catch(M0){return`
|
|
28
|
+
Error generating stack: `+M0.message+`
|
|
29
|
+
`+M0.stack}}function j0(w){return(w=w?w.displayName||w.name:"")?L0(w):""}function r0(){if(l2===null)return null;var w=l2._debugOwner;return w!=null?p(w):null}function n0(){if(l2===null)return"";var w=l2;try{var z="";switch(w.tag===6&&(w=w.return),w.tag){case 26:case 27:case 5:z+=L0(w.type);break;case 13:z+=L0("Suspense");break;case 19:z+=L0("SuspenseList");break;case 31:z+=L0("Activity");break;case 30:case 0:case 15:case 1:w._debugOwner||z!==""||(z+=j0(w.type));break;case 11:w._debugOwner||z!==""||(z+=j0(w.type.render))}for(;w;)if(typeof w.tag==="number"){var Z=w;w=Z._debugOwner;var $=Z._debugStack;if(w&&$){var G=J0($);G!==""&&(z+=`
|
|
30
|
+
`+G)}}else if(w.debugStack!=null){var Q=w.debugStack;(w=w.owner)&&Q&&(z+=`
|
|
31
|
+
`+J0(Q))}else break;var H=z}catch(B){H=`
|
|
32
|
+
Error generating stack: `+B.message+`
|
|
33
|
+
`+B.stack}return H}function n(w,z,Z,$,G,Q,H){var B=l2;R0(w);try{return w!==null&&w._debugTask?w._debugTask.run(z.bind(null,Z,$,G,Q,H)):z(Z,$,G,Q,H)}finally{R0(B)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function R0(w){Y0.getCurrentStack=w===null?null:n0,h8=!1,l2=w}function I0(w){return typeof Symbol==="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"}function j1(w){try{return b0(w),!1}catch(z){return!0}}function b0(w){return""+w}function _0(w,z){if(j1(w))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",z,I0(w)),b0(w)}function O0(w,z){if(j1(w))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.",z,I0(w)),b0(w)}function A0(w){if(j1(w))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.",I0(w)),b0(w)}function c0(w){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var z=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(z.isDisabled)return!0;if(!z.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{S9=z.inject(w),z2=z}catch(Z){console.error("React instrumentation encountered an error: %o.",Z)}return z.checkDCE?!0:!1}function C0(w){if(typeof hh==="function"&&Eh(w),z2&&typeof z2.setStrictMode==="function")try{z2.setStrictMode(S9,w)}catch(z){E8||(E8=!0,console.error("React instrumentation encountered an error: %o",z))}}function E0(w){return w>>>=0,w===0?32:31-(Ph(w)/Ih|0)|0}function o0(w){var z=w&42;if(z!==0)return z;switch(w&-w){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 w&261888;case 262144:case 524288:case 1048576:case 2097152:return w&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return w&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."),w}}function x0(w,z,Z){var $=w.pendingLanes;if($===0)return 0;var G=0,Q=w.suspendedLanes,H=w.pingedLanes;w=w.warmLanes;var B=$&134217727;return B!==0?($=B&~Q,$!==0?G=o0($):(H&=B,H!==0?G=o0(H):Z||(Z=B&~w,Z!==0&&(G=o0(Z))))):(B=$&~Q,B!==0?G=o0(B):H!==0?G=o0(H):Z||(Z=$&~w,Z!==0&&(G=o0(Z)))),G===0?0:z!==0&&z!==G&&(z&Q)===0&&(Q=G&-G,Z=z&-z,Q>=Z||Q===32&&(Z&4194048)!==0)?z:G}function l0(w,z){return(w.pendingLanes&~(w.suspendedLanes&~w.pingedLanes)&z)===0}function y0(w,z){switch(w){case 1:case 2:case 4:case 8:case 64:return z+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 z+5000;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 q1(){var w=j3;return j3<<=1,(j3&62914560)===0&&(j3=4194304),w}function D1(w){for(var z=[],Z=0;31>Z;Z++)z.push(w);return z}function W1(w,z){w.pendingLanes|=z,z!==268435456&&(w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0)}function Gw(w,z,Z,$,G,Q){var H=w.pendingLanes;w.pendingLanes=Z,w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0,w.expiredLanes&=Z,w.entangledLanes&=Z,w.errorRecoveryDisabledLanes&=Z,w.shellSuspendCounter=0;var{entanglements:B,expirationTimes:j,hiddenUpdates:O}=w;for(Z=H&~Z;0<Z;){var i=31-K2(Z),a=1<<i;B[i]=0,j[i]=-1;var y=O[i];if(y!==null)for(O[i]=null,i=0;i<y.length;i++){var Z0=y[i];Z0!==null&&(Z0.lane&=-536870913)}Z&=~a}$!==0&&zw(w,$,0),Q!==0&&G===0&&w.tag!==0&&(w.suspendedLanes|=Q&~(H&~z))}function zw(w,z,Z){w.pendingLanes|=z,w.suspendedLanes&=~z;var $=31-K2(z);w.entangledLanes|=z,w.entanglements[$]=w.entanglements[$]|1073741824|Z&261930}function Lw(w,z){var Z=w.entangledLanes|=z;for(w=w.entanglements;Z;){var $=31-K2(Z),G=1<<$;G&z|w[$]&z&&(w[$]|=z),Z&=~G}}function Uw(w,z){var Z=z&-z;return Z=(Z&42)!==0?1:hw(Z),(Z&(w.suspendedLanes|z))!==0?0:Z}function hw(w){switch(w){case 2:w=1;break;case 8:w=4;break;case 32:w=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:w=128;break;case 268435456:w=134217728;break;default:w=0}return w}function J1(w,z,Z){if(P8)for(w=w.pendingUpdatersLaneMap;0<Z;){var $=31-K2(Z),G=1<<$;w[$].add(z),Z&=~G}}function N1(w,z){if(P8)for(var{pendingUpdatersLaneMap:Z,memoizedUpdaters:$}=w;0<z;){var G=31-K2(z);w=1<<G,G=Z[G],0<G.size&&(G.forEach(function(Q){var H=Q.alternate;H!==null&&$.has(H)||$.add(Q)}),G.clear()),z&=~w}}function T(w){return w&=-w,i2!==0&&i2<w?p5!==0&&p5<w?(w&134217727)!==0?I8:M3:p5:i2}function s(){var w=I1.p;if(w!==0)return w;return w=window.event,w===void 0?I8:oF(w.type)}function K0(w,z){var Z=I1.p;try{return I1.p=w,z()}finally{I1.p=Z}}function N0(w){delete w[sw],delete w[U2],delete w[hU],delete w[bh],delete w[Sh]}function T0(w){var z=w[sw];if(z)return z;for(var Z=w.parentNode;Z;){if(z=Z[X4]||Z[sw]){if(Z=z.alternate,z.child!==null||Z!==null&&Z.child!==null)for(w=yF(w);w!==null;){if(Z=w[sw])return Z;w=yF(w)}return z}w=Z,Z=w.parentNode}return null}function a0(w){if(w=w[sw]||w[X4]){var z=w.tag;if(z===5||z===6||z===13||z===31||z===26||z===27||z===3)return w}return null}function u0(w){var z=w.tag;if(z===5||z===26||z===27||z===6)return w.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function $1(w){var z=w[HN];return z||(z=w[HN]={hoistableStyles:new Map,hoistableScripts:new Map}),z}function d0(w){w[JJ]=!0}function Ew(w,z){Q2(w,z),Q2(w+"Capture",z)}function Q2(w,z){U7[w]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",w),U7[w]=z;var Z=w.toLowerCase();EU[Z]=w,w==="onDoubleClick"&&(EU.ondblclick=w);for(w=0;w<z.length;w++)_N.add(z[w])}function K8(w,z){Ch[z.type]||z.onChange||z.onInput||z.readOnly||z.disabled||z.value==null||(w==="select"?console.error("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`."):console.error("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`.")),z.onChange||z.readOnly||z.disabled||z.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 a4(w){if(u5.call(BN,w))return!0;if(u5.call(qN,w))return!1;if(yh.test(w))return BN[w]=!0;return qN[w]=!0,console.error("Invalid attribute name: `%s`",w),!1}function W$(w,z,Z){if(a4(z)){if(!w.hasAttribute(z)){switch(typeof Z){case"symbol":case"object":return Z;case"function":return Z;case"boolean":if(Z===!1)return Z}return Z===void 0?void 0:null}if(w=w.getAttribute(z),w===""&&Z===!0)return!0;return _0(Z,z),w===""+Z?Z:w}}function d6(w,z,Z){if(a4(z))if(Z===null)w.removeAttribute(z);else{switch(typeof Z){case"undefined":case"function":case"symbol":w.removeAttribute(z);return;case"boolean":var $=z.toLowerCase().slice(0,5);if($!=="data-"&&$!=="aria-"){w.removeAttribute(z);return}}_0(Z,z),w.setAttribute(z,""+Z)}}function s4(w,z,Z){if(Z===null)w.removeAttribute(z);else{switch(typeof Z){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute(z);return}_0(Z,z),w.setAttribute(z,""+Z)}}function g5(w,z,Z,$){if($===null)w.removeAttribute(Z);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute(Z);return}_0($,Z),w.setAttributeNS(z,Z,""+$)}}function A2(w){switch(typeof w){case"bigint":case"boolean":case"number":case"string":case"undefined":return w;case"object":return A0(w),w;default:return""}}function u6(w){var z=w.type;return(w=w.nodeName)&&w.toLowerCase()==="input"&&(z==="checkbox"||z==="radio")}function KW(w,z,Z){var $=Object.getOwnPropertyDescriptor(w.constructor.prototype,z);if(!w.hasOwnProperty(z)&&typeof $<"u"&&typeof $.get==="function"&&typeof $.set==="function"){var{get:G,set:Q}=$;return Object.defineProperty(w,z,{configurable:!0,get:function(){return G.call(this)},set:function(H){A0(H),Z=""+H,Q.call(this,H)}}),Object.defineProperty(w,z,{enumerable:$.enumerable}),{getValue:function(){return Z},setValue:function(H){A0(H),Z=""+H},stopTracking:function(){w._valueTracker=null,delete w[z]}}}}function FZ(w){if(!w._valueTracker){var z=u6(w)?"checked":"value";w._valueTracker=KW(w,z,""+w[z])}}function K$(w){if(!w)return!1;var z=w._valueTracker;if(!z)return!0;var Z=z.getValue(),$="";return w&&($=u6(w)?w.checked?"true":"false":w.value),w=$,w!==Z?(z.setValue(w),!0):!1}function U$(w){if(w=w||(typeof document<"u"?document:void 0),typeof w>"u")return null;try{return w.activeElement||w.body}catch(z){return w.body}}function W5(w){return w.replace(Rh,function(z){return"\\"+z.charCodeAt(0).toString(16)+" "})}function WB(w,z){z.checked===void 0||z.defaultChecked===void 0||VN||(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",r0()||"A component",z.type),VN=!0),z.value===void 0||z.defaultValue===void 0||LN||(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",r0()||"A component",z.type),LN=!0)}function UW(w,z,Z,$,G,Q,H,B){if(w.name="",H!=null&&typeof H!=="function"&&typeof H!=="symbol"&&typeof H!=="boolean"?(_0(H,"type"),w.type=H):w.removeAttribute("type"),z!=null)if(H==="number"){if(z===0&&w.value===""||w.value!=z)w.value=""+A2(z)}else w.value!==""+A2(z)&&(w.value=""+A2(z));else H!=="submit"&&H!=="reset"||w.removeAttribute("value");z!=null?HW(w,H,A2(z)):Z!=null?HW(w,H,A2(Z)):$!=null&&w.removeAttribute("value"),G==null&&Q!=null&&(w.defaultChecked=!!Q),G!=null&&(w.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"?(_0(B,"name"),w.name=""+A2(B)):w.removeAttribute("name")}function KB(w,z,Z,$,G,Q,H,B){if(Q!=null&&typeof Q!=="function"&&typeof Q!=="symbol"&&typeof Q!=="boolean"&&(_0(Q,"type"),w.type=Q),z!=null||Z!=null){if(!(Q!=="submit"&&Q!=="reset"||z!==void 0&&z!==null)){FZ(w);return}Z=Z!=null?""+A2(Z):"",z=z!=null?""+A2(z):Z,B||z===w.value||(w.value=z),w.defaultValue=z}$=$!=null?$:G,$=typeof $!=="function"&&typeof $!=="symbol"&&!!$,w.checked=B?w.checked:!!$,w.defaultChecked=!!$,H!=null&&typeof H!=="function"&&typeof H!=="symbol"&&typeof H!=="boolean"&&(_0(H,"name"),w.name=H),FZ(w)}function HW(w,z,Z){z==="number"&&U$(w.ownerDocument)===w||w.defaultValue===""+Z||(w.defaultValue=""+Z)}function UB(w,z){z.value==null&&(typeof z.children==="object"&&z.children!==null?Bz.Children.forEach(z.children,function(Z){Z==null||typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint"||NN||(NN=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):z.dangerouslySetInnerHTML==null||kN||(kN=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),z.selected==null||FN||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),FN=!0)}function HB(){var w=r0();return w?`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+w+"`.":""}function _9(w,z,Z,$){if(w=w.options,z){z={};for(var G=0;G<Z.length;G++)z["$"+Z[G]]=!0;for(Z=0;Z<w.length;Z++)G=z.hasOwnProperty("$"+w[Z].value),w[Z].selected!==G&&(w[Z].selected=G),G&&$&&(w[Z].defaultSelected=!0)}else{Z=""+A2(Z),z=null;for(G=0;G<w.length;G++){if(w[G].value===Z){w[G].selected=!0,$&&(w[G].defaultSelected=!0);return}z!==null||w[G].disabled||(z=w[G])}z!==null&&(z.selected=!0)}}function _B(w,z){for(w=0;w<jN.length;w++){var Z=jN[w];if(z[Z]!=null){var $=Pw(z[Z]);z.multiple&&!$?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",Z,HB()):!z.multiple&&$&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",Z,HB())}}z.value===void 0||z.defaultValue===void 0||AN||(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"),AN=!0)}function qB(w,z){z.value===void 0||z.defaultValue===void 0||MN||(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",r0()||"A component"),MN=!0),z.children!=null&&z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function BB(w,z,Z){if(z!=null&&(z=""+A2(z),z!==w.value&&(w.value=z),Z==null)){w.defaultValue!==z&&(w.defaultValue=z);return}w.defaultValue=Z!=null?""+A2(Z):""}function LB(w,z,Z,$){if(z==null){if($!=null){if(Z!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Pw($)){if(1<$.length)throw Error("<textarea> can only have at most one child.");$=$[0]}Z=$}Z==null&&(Z=""),z=Z}Z=A2(z),w.defaultValue=Z,$=w.textContent,$===Z&&$!==""&&$!==null&&(w.value=$),FZ(w)}function VB(w,z){return w.serverProps===void 0&&w.serverTail.length===0&&w.children.length===1&&3<w.distanceFromLeaf&&w.distanceFromLeaf>15-z?VB(w.children[0],z):w}function y2(w){return" "+" ".repeat(w)}function q9(w){return"+ "+" ".repeat(w)}function o4(w){return"- "+" ".repeat(w)}function FB(w){switch(w.tag){case 26:case 27:case 5:return w.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return w=w.type,w.displayName||w.name||null;case 11:return w=w.type.render,w.displayName||w.name||null;case 1:return w=w.type,w.displayName||w.name||null;default:return null}}function NZ(w,z){return ON.test(w)?(w=JSON.stringify(w),w.length>z-2?8>z?'{"..."}':"{"+w.slice(0,z-7)+'..."}':"{"+w+"}"):w.length>z?5>z?'{"..."}':w.slice(0,z-3)+"...":w}function H$(w,z,Z){var $=120-2*Z;if(z===null)return q9(Z)+NZ(w,$)+`
|
|
36
|
+
`;if(typeof z==="string"){for(var G=0;G<z.length&&G<w.length&&z.charCodeAt(G)===w.charCodeAt(G);G++);return G>$-8&&10<G&&(w="..."+w.slice(G-8),z="..."+z.slice(G-8)),q9(Z)+NZ(w,$)+`
|
|
37
|
+
`+o4(Z)+NZ(z,$)+`
|
|
38
|
+
`}return y2(Z)+NZ(w,$)+`
|
|
39
|
+
`}function _W(w){return Object.prototype.toString.call(w).replace(/^\[object (.*)\]$/,function(z,Z){return Z})}function kZ(w,z){switch(typeof w){case"string":return w=JSON.stringify(w),w.length>z?5>z?'"..."':w.slice(0,z-4)+'..."':w;case"object":if(w===null)return"null";if(Pw(w))return"[...]";if(w.$$typeof===x8)return(z=S(w.type))?"<"+z+">":"<...>";var Z=_W(w);if(Z==="Object"){Z="",z-=2;for(var $ in w)if(w.hasOwnProperty($)){var G=JSON.stringify($);if(G!=='"'+$+'"'&&($=G),z-=$.length-2,G=kZ(w[$],15>z?z:15),z-=G.length,0>z){Z+=Z===""?"...":", ...";break}Z+=(Z===""?"":",")+$+":"+G}return"{"+Z+"}"}return Z;case"function":return(z=w.displayName||w.name)?"function "+z:"function";default:return String(w)}}function B9(w,z){return typeof w!=="string"||ON.test(w)?"{"+kZ(w,z-2)+"}":w.length>z-2?5>z?'"..."':'"'+w.slice(0,z-5)+'..."':'"'+w+'"'}function qW(w,z,Z){var $=120-Z.length-w.length,G=[],Q;for(Q in z)if(z.hasOwnProperty(Q)&&Q!=="children"){var H=B9(z[Q],120-Z.length-Q.length-1);$-=Q.length+H.length+2,G.push(Q+"="+H)}return G.length===0?Z+"<"+w+`>
|
|
40
|
+
`:0<$?Z+"<"+w+" "+G.join(" ")+`>
|
|
41
|
+
`:Z+"<"+w+`
|
|
42
|
+
`+Z+" "+G.join(`
|
|
43
|
+
`+Z+" ")+`
|
|
44
|
+
`+Z+`>
|
|
45
|
+
`}function bx(w,z,Z){var $="",G=H1({},z),Q;for(Q in w)if(w.hasOwnProperty(Q)){delete G[Q];var H=120-2*Z-Q.length-2,B=kZ(w[Q],H);z.hasOwnProperty(Q)?(H=kZ(z[Q],H),$+=q9(Z)+Q+": "+B+`
|
|
46
|
+
`,$+=o4(Z)+Q+": "+H+`
|
|
47
|
+
`):$+=q9(Z)+Q+": "+B+`
|
|
48
|
+
`}for(var j in G)G.hasOwnProperty(j)&&(w=kZ(G[j],120-2*Z-j.length-2),$+=o4(Z)+j+": "+w+`
|
|
49
|
+
`);return $}function Sx(w,z,Z,$){var G="",Q=new Map;for(O in Z)Z.hasOwnProperty(O)&&Q.set(O.toLowerCase(),O);if(Q.size===1&&Q.has("children"))G+=qW(w,z,y2($));else{for(var H in z)if(z.hasOwnProperty(H)&&H!=="children"){var B=120-2*($+1)-H.length-1,j=Q.get(H.toLowerCase());if(j!==void 0){Q.delete(H.toLowerCase());var O=z[H];j=Z[j];var i=B9(O,B);B=B9(j,B),typeof O==="object"&&O!==null&&typeof j==="object"&&j!==null&&_W(O)==="Object"&&_W(j)==="Object"&&(2<Object.keys(O).length||2<Object.keys(j).length||-1<i.indexOf("...")||-1<B.indexOf("..."))?G+=y2($+1)+H+`={{
|
|
50
|
+
`+bx(O,j,$+2)+y2($+1)+`}}
|
|
51
|
+
`:(G+=q9($+1)+H+"="+i+`
|
|
52
|
+
`,G+=o4($+1)+H+"="+B+`
|
|
53
|
+
`)}else G+=y2($+1)+H+"="+B9(z[H],B)+`
|
|
54
|
+
`}Q.forEach(function(a){if(a!=="children"){var y=120-2*($+1)-a.length-1;G+=o4($+1)+a+"="+B9(Z[a],y)+`
|
|
55
|
+
`}}),G=G===""?y2($)+"<"+w+`>
|
|
56
|
+
`:y2($)+"<"+w+`
|
|
57
|
+
`+G+y2($)+`>
|
|
58
|
+
`}if(w=Z.children,z=z.children,typeof w==="string"||typeof w==="number"||typeof w==="bigint"){if(Q="",typeof z==="string"||typeof z==="number"||typeof z==="bigint")Q=""+z;G+=H$(Q,""+w,$+1)}else if(typeof z==="string"||typeof z==="number"||typeof z==="bigint")G=w==null?G+H$(""+z,null,$+1):G+H$(""+z,void 0,$+1);return G}function NB(w,z){var Z=FB(w);if(Z===null){Z="";for(w=w.child;w;)Z+=NB(w,z),w=w.sibling;return Z}return y2(z)+"<"+Z+`>
|
|
59
|
+
`}function BW(w,z){var Z=VB(w,z);if(Z!==w&&(w.children.length!==1||w.children[0]!==Z))return y2(z)+`...
|
|
60
|
+
`+BW(Z,z+1);Z="";var $=w.fiber._debugInfo;if($)for(var G=0;G<$.length;G++){var Q=$[G].name;typeof Q==="string"&&(Z+=y2(z)+"<"+Q+`>
|
|
61
|
+
`,z++)}if($="",G=w.fiber.pendingProps,w.fiber.tag===6)$=H$(G,w.serverProps,z),z++;else if(Q=FB(w.fiber),Q!==null)if(w.serverProps===void 0){$=z;var H=120-2*$-Q.length-2,B="";for(O in G)if(G.hasOwnProperty(O)&&O!=="children"){var j=B9(G[O],15);if(H-=O.length+j.length+2,0>H){B+=" ...";break}B+=" "+O+"="+j}$=y2($)+"<"+Q+B+`>
|
|
62
|
+
`,z++}else w.serverProps===null?($=qW(Q,G,q9(z)),z++):typeof w.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):($=Sx(Q,G,w.serverProps,z),z++);var O="";G=w.fiber.child;for(Q=0;G&&Q<w.children.length;)H=w.children[Q],H.fiber===G?(O+=BW(H,z),Q++):O+=NB(G,z),G=G.sibling;G&&0<w.children.length&&(O+=y2(z)+`...
|
|
63
|
+
`),G=w.serverTail,w.serverProps===null&&z--;for(w=0;w<G.length;w++)Q=G[w],O=typeof Q==="string"?O+(o4(z)+NZ(Q,120-2*z)+`
|
|
64
|
+
`):O+qW(Q.type,Q.props,o4(z));return Z+$+O}function LW(w){try{return`
|
|
65
|
+
|
|
66
|
+
`+BW(w,0)}catch(z){return""}}function kB(w,z,Z){for(var $=z,G=null,Q=0;$;)$===w&&(Q=0),G={fiber:$,children:G!==null?[G]:[],serverProps:$===z?Z:$===w?null:void 0,serverTail:[],distanceFromLeaf:Q},Q++,$=$.return;return G!==null?LW(G).replaceAll(/^[+-]/gm,">"):""}function AB(w,z){var Z=H1({},w||TN),$={tag:z};if(DN.indexOf(z)!==-1&&(Z.aTagInScope=null,Z.buttonTagInScope=null,Z.nobrTagInScope=null),fh.indexOf(z)!==-1&&(Z.pTagInButtonScope=null),gh.indexOf(z)!==-1&&z!=="address"&&z!=="div"&&z!=="p"&&(Z.listItemTagAutoclosing=null,Z.dlItemTagAutoclosing=null),Z.current=$,z==="form"&&(Z.formTag=$),z==="a"&&(Z.aTagInScope=$),z==="button"&&(Z.buttonTagInScope=$),z==="nobr"&&(Z.nobrTagInScope=$),z==="p"&&(Z.pTagInButtonScope=$),z==="li"&&(Z.listItemTagAutoclosing=$),z==="dd"||z==="dt")Z.dlItemTagAutoclosing=$;return z==="#document"||z==="html"?Z.containerTagInScope=null:Z.containerTagInScope||(Z.containerTagInScope=$),w!==null||z!=="#document"&&z!=="html"&&z!=="body"?Z.implicitRootScope===!0&&(Z.implicitRootScope=!1):Z.implicitRootScope=!0,Z}function jB(w,z,Z){switch(z){case"select":return w==="hr"||w==="option"||w==="optgroup"||w==="script"||w==="template"||w==="#text";case"optgroup":return w==="option"||w==="#text";case"option":return w==="#text";case"tr":return w==="th"||w==="td"||w==="style"||w==="script"||w==="template";case"tbody":case"thead":case"tfoot":return w==="tr"||w==="style"||w==="script"||w==="template";case"colgroup":return w==="col"||w==="template";case"table":return w==="caption"||w==="colgroup"||w==="tbody"||w==="tfoot"||w==="thead"||w==="style"||w==="script"||w==="template";case"head":return w==="base"||w==="basefont"||w==="bgsound"||w==="link"||w==="meta"||w==="title"||w==="noscript"||w==="noframes"||w==="style"||w==="script"||w==="template";case"html":if(Z)break;return w==="head"||w==="body"||w==="frameset";case"frameset":return w==="frame";case"#document":if(!Z)return w==="html"}switch(w){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return z!=="h1"&&z!=="h2"&&z!=="h3"&&z!=="h4"&&z!=="h5"&&z!=="h6";case"rp":case"rt":return mh.indexOf(z)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return z==null;case"head":return Z||z===null;case"html":return Z&&z==="#document"||z===null;case"body":return Z&&(z==="#document"||z==="html")||z===null}return!0}function Cx(w,z){switch(w){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 z.pTagInButtonScope;case"form":return z.formTag||z.pTagInButtonScope;case"li":return z.listItemTagAutoclosing;case"dd":case"dt":return z.dlItemTagAutoclosing;case"button":return z.buttonTagInScope;case"a":return z.aTagInScope;case"nobr":return z.nobrTagInScope}return null}function MB(w,z){for(;w;){switch(w.tag){case 5:case 26:case 27:if(w.type===z)return w}w=w.return}return null}function VW(w,z){z=z||TN;var Z=z.current;if(z=(Z=jB(w,Z&&Z.tag,z.implicitRootScope)?null:Z)?null:Cx(w,z),z=Z||z,!z)return!0;var $=z.tag;if(z=String(!!Z)+"|"+w+"|"+$,O3[z])return!1;O3[z]=!0;var G=(z=l2)?MB(z.return,$):null,Q=z!==null&&G!==null?kB(G,z,null):"",H="<"+w+">";return Z?(Z="",$==="table"&&w==="tr"&&(Z+=" 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`,H,$,Z,Q)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
+
This will cause a hydration error.%s`,H,$,Q),z&&(w=z.return,G===null||w===null||G===w&&w._debugOwner===z._debugOwner||n(G,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
+
See this log for the ancestor stack trace.`,$,H)})),!1}function _$(w,z,Z){if(Z||jB("#text",z,!1))return!0;if(Z="#text|"+z,O3[Z])return!1;O3[Z]=!0;var $=(Z=l2)?MB(Z,z):null;return Z=Z!==null&&$!==null?kB($,Z,Z.tag!==6?{children:null}:null):"",/\S/.test(w)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
|
+
This will cause a hydration error.%s`,z,Z):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`,z,Z),!1}function AZ(w,z){if(z){var Z=w.firstChild;if(Z&&Z===w.lastChild&&Z.nodeType===3){Z.nodeValue=z;return}}w.textContent=z}function yx(w){return w.replace(ph,function(z,Z){return Z.toUpperCase()})}function OB(w,z,Z){var $=z.indexOf("--")===0;$||(-1<z.indexOf("-")?C9.hasOwnProperty(z)&&C9[z]||(C9[z]=!0,console.error("Unsupported style property %s. Did you mean %s?",z,yx(z.replace(uh,"ms-")))):dh.test(z)?C9.hasOwnProperty(z)&&C9[z]||(C9[z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",z,z.charAt(0).toUpperCase()+z.slice(1))):!hN.test(Z)||IU.hasOwnProperty(Z)&&IU[Z]||(IU[Z]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,z,Z.replace(hN,""))),typeof Z==="number"&&(isNaN(Z)?EN||(EN=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",z)):isFinite(Z)||PN||(PN=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",z)))),Z==null||typeof Z==="boolean"||Z===""?$?w.setProperty(z,""):z==="float"?w.cssFloat="":w[z]="":$?w.setProperty(z,Z):typeof Z!=="number"||Z===0||IN.has(z)?z==="float"?w.cssFloat=Z:(O0(Z,z),w[z]=(""+Z).trim()):w[z]=Z+"px"}function DB(w,z,Z){if(z!=null&&typeof z!=="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(z&&Object.freeze(z),w=w.style,Z!=null){if(z){var $={};if(Z){for(var G in Z)if(Z.hasOwnProperty(G)&&!z.hasOwnProperty(G))for(var Q=PU[G]||[G],H=0;H<Q.length;H++)$[Q[H]]=G}for(var B in z)if(z.hasOwnProperty(B)&&(!Z||Z[B]!==z[B]))for(G=PU[B]||[B],Q=0;Q<G.length;Q++)$[G[Q]]=B;B={};for(var j in z)for(G=PU[j]||[j],Q=0;Q<G.length;Q++)B[G[Q]]=j;j={};for(var O in $)if(G=$[O],(Q=B[O])&&G!==Q&&(H=G+","+Q,!j[H])){j[H]=!0,H=console;var i=z[G];H.error.call(H,"%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.",i==null||typeof i==="boolean"||i===""?"Removing":"Updating",G,Q)}}for(var a in Z)!Z.hasOwnProperty(a)||z!=null&&z.hasOwnProperty(a)||(a.indexOf("--")===0?w.setProperty(a,""):a==="float"?w.cssFloat="":w[a]="");for(var y in z)O=z[y],z.hasOwnProperty(y)&&Z[y]!==O&&OB(w,y,O)}else for($ in z)z.hasOwnProperty($)&&OB(w,$,z[$])}function jZ(w){if(w.indexOf("-")===-1)return!1;switch(w){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 TB(w){return ch.get(w)||w}function Rx(w,z){if(u5.call(R9,z)&&R9[z])return!0;if(ih.test(z)){if(w="aria-"+z.slice(4).toLowerCase(),w=bN.hasOwnProperty(w)?w:null,w==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",z),R9[z]=!0;if(z!==w)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",z,w),R9[z]=!0}if(lh.test(z)){if(w=z.toLowerCase(),w=bN.hasOwnProperty(w)?w:null,w==null)return R9[z]=!0,!1;z!==w&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",z,w),R9[z]=!0)}return!0}function gx(w,z){var Z=[],$;for($ in z)Rx(w,$)||Z.push($);z=Z.map(function(G){return"`"+G+"`"}).join(", "),Z.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",z,w):1<Z.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",z,w)}function fx(w,z,Z,$){if(u5.call(H2,z)&&H2[z])return!0;var G=z.toLowerCase();if(G==="onfocusin"||G==="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."),H2[z]=!0;if(typeof Z==="function"&&(w==="form"&&z==="action"||w==="input"&&z==="formAction"||w==="button"&&z==="formAction"))return!0;if($!=null){if(w=$.possibleRegistrationNames,$.registrationNameDependencies.hasOwnProperty(z))return!0;if($=w.hasOwnProperty(G)?w[G]:null,$!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",z,$),H2[z]=!0;if(CN.test(z))return console.error("Unknown event handler property `%s`. It will be ignored.",z),H2[z]=!0}else if(CN.test(z))return rh.test(z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",z),H2[z]=!0;if(ah.test(z)||sh.test(z))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),H2[z]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),H2[z]=!0;if(G==="is"&&Z!==null&&Z!==void 0&&typeof Z!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof Z),H2[z]=!0;if(typeof Z==="number"&&isNaN(Z))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",z),H2[z]=!0;if(T3.hasOwnProperty(G)){if(G=T3[G],G!==z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",z,G),H2[z]=!0}else if(z!==G)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.",z,G),H2[z]=!0;switch(z){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 Z){case"boolean":switch(z){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:if(G=z.toLowerCase().slice(0,5),G==="data-"||G==="aria-")return!0;return Z?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()}.',Z,z,z,Z,z):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',Z,z,z,Z,z,z,z),H2[z]=!0}case"function":case"symbol":return H2[z]=!0,!1;case"string":if(Z==="false"||Z==="true"){switch(z){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}?",Z,z,Z==="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".',z,Z),H2[z]=!0}}return!0}function mx(w,z,Z){var $=[],G;for(G in z)fx(w,G,z[G],Z)||$.push(G);z=$.map(function(Q){return"`"+Q+"`"}).join(", "),$.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 ",z,w):1<$.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 ",z,w)}function MZ(w){return oh.test(""+w)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":w}function e8(){}function FW(w){return w=w.target||w.srcElement||window,w.correspondingUseElement&&(w=w.correspondingUseElement),w.nodeType===3?w.parentNode:w}function xB(w){var z=a0(w);if(z&&(w=z.stateNode)){var Z=w[U2]||null;w:switch(w=z.stateNode,z.type){case"input":if(UW(w,Z.value,Z.defaultValue,Z.defaultValue,Z.checked,Z.defaultChecked,Z.type,Z.name),z=Z.name,Z.type==="radio"&&z!=null){for(Z=w;Z.parentNode;)Z=Z.parentNode;_0(z,"name"),Z=Z.querySelectorAll('input[name="'+W5(""+z)+'"][type="radio"]');for(z=0;z<Z.length;z++){var $=Z[z];if($!==w&&$.form===w.form){var G=$[U2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");UW($,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name)}}for(z=0;z<Z.length;z++)$=Z[z],$.form===w.form&&K$($)}break w;case"textarea":BB(w,Z.value,Z.defaultValue);break w;case"select":z=Z.value,z!=null&&_9(w,!!Z.multiple,z,!1)}}}function vB(w,z,Z){if(bU)return w(z,Z);bU=!0;try{var $=w(z);return $}finally{if(bU=!1,g9!==null||f9!==null){if(D9(),g9&&(z=g9,w=f9,f9=g9=null,xB(z),w))for(z=0;z<w.length;z++)xB(w[z])}}}function OZ(w,z){var Z=w.stateNode;if(Z===null)return null;var $=Z[U2]||null;if($===null)return null;Z=$[z];w:switch(z){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":($=!$.disabled)||(w=w.type,$=!(w==="button"||w==="input"||w==="select"||w==="textarea")),w=!$;break w;default:w=!1}if(w)return null;if(Z&&typeof Z!=="function")throw Error("Expected `"+z+"` listener to be a function, instead got a value of `"+typeof Z+"` type.");return Z}function hB(){if(x3)return x3;var w,z=CU,Z=z.length,$,G="value"in $4?$4.value:$4.textContent,Q=G.length;for(w=0;w<Z&&z[w]===G[w];w++);var H=Z-w;for($=1;$<=H&&z[Z-$]===G[Q-$];$++);return x3=G.slice(w,1<$?1-$:void 0)}function q$(w){var z=w.keyCode;return"charCode"in w?(w=w.charCode,w===0&&z===13&&(w=13)):w=z,w===10&&(w=13),32<=w||w===13?w:0}function B$(){return!0}function EB(){return!1}function j2(w){function z(Z,$,G,Q,H){this._reactName=Z,this._targetInst=G,this.type=$,this.nativeEvent=Q,this.target=H,this.currentTarget=null;for(var B in w)w.hasOwnProperty(B)&&(Z=w[B],this[B]=Z?Z(Q):Q[B]);return this.isDefaultPrevented=(Q.defaultPrevented!=null?Q.defaultPrevented:Q.returnValue===!1)?B$:EB,this.isPropagationStopped=EB,this}return H1(z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Z=this.nativeEvent;Z&&(Z.preventDefault?Z.preventDefault():typeof Z.returnValue!=="unknown"&&(Z.returnValue=!1),this.isDefaultPrevented=B$)},stopPropagation:function(){var Z=this.nativeEvent;Z&&(Z.stopPropagation?Z.stopPropagation():typeof Z.cancelBubble!=="unknown"&&(Z.cancelBubble=!0),this.isPropagationStopped=B$)},persist:function(){},isPersistent:B$}),z}function dx(w){var z=this.nativeEvent;return z.getModifierState?z.getModifierState(w):(w=WE[w])?!!z[w]:!1}function NW(){return dx}function PB(w,z){switch(w){case"keyup":return AE.indexOf(z.keyCode)!==-1;case"keydown":return z.keyCode!==fN;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function IB(w){return w=w.detail,typeof w==="object"&&"data"in w?w.data:null}function ux(w,z){switch(w){case"compositionend":return IB(z);case"keypress":if(z.which!==dN)return null;return pN=!0,uN;case"textInput":return w=z.data,w===uN&&pN?null:w;default:return null}}function px(w,z){if(m9)return w==="compositionend"||!fU&&PB(w,z)?(w=hB(),x3=CU=$4=null,m9=!1,w):null;switch(w){case"paste":return null;case"keypress":if(!(z.ctrlKey||z.altKey||z.metaKey)||z.ctrlKey&&z.altKey){if(z.char&&1<z.char.length)return z.char;if(z.which)return String.fromCharCode(z.which)}return null;case"compositionend":return mN&&z.locale!=="ko"?null:z.data;default:return null}}function bB(w){var z=w&&w.nodeName&&w.nodeName.toLowerCase();return z==="input"?!!ME[w.type]:z==="textarea"?!0:!1}function cx(w){if(!b8)return!1;w="on"+w;var z=w in document;return z||(z=document.createElement("div"),z.setAttribute(w,"return;"),z=typeof z[w]==="function"),z}function SB(w,z,Z,$){g9?f9?f9.push($):f9=[$]:g9=$,z=G3(z,"onChange"),0<z.length&&(Z=new v3("onChange","change",null,Z,$),w.push({event:Z,listeners:z}))}function lx(w){LF(w,0)}function L$(w){var z=u0(w);if(K$(z))return w}function CB(w,z){if(w==="change")return z}function yB(){WJ&&(WJ.detachEvent("onpropertychange",RB),KJ=WJ=null)}function RB(w){if(w.propertyName==="value"&&L$(KJ)){var z=[];SB(z,KJ,w,FW(w)),vB(lx,z)}}function ix(w,z,Z){w==="focusin"?(yB(),WJ=z,KJ=Z,WJ.attachEvent("onpropertychange",RB)):w==="focusout"&&yB()}function rx(w){if(w==="selectionchange"||w==="keyup"||w==="keydown")return L$(KJ)}function ax(w,z){if(w==="click")return L$(z)}function sx(w,z){if(w==="input"||w==="change")return L$(z)}function ox(w,z){return w===z&&(w!==0||1/w===1/z)||w!==w&&z!==z}function DZ(w,z){if(_2(w,z))return!0;if(typeof w!=="object"||w===null||typeof z!=="object"||z===null)return!1;var Z=Object.keys(w),$=Object.keys(z);if(Z.length!==$.length)return!1;for($=0;$<Z.length;$++){var G=Z[$];if(!u5.call(z,G)||!_2(w[G],z[G]))return!1}return!0}function gB(w){for(;w&&w.firstChild;)w=w.firstChild;return w}function fB(w,z){var Z=gB(w);w=0;for(var $;Z;){if(Z.nodeType===3){if($=w+Z.textContent.length,w<=z&&$>=z)return{node:Z,offset:z-w};w=$}w:{for(;Z;){if(Z.nextSibling){Z=Z.nextSibling;break w}Z=Z.parentNode}Z=void 0}Z=gB(Z)}}function mB(w,z){return w&&z?w===z?!0:w&&w.nodeType===3?!1:z&&z.nodeType===3?mB(w,z.parentNode):("contains"in w)?w.contains(z):w.compareDocumentPosition?!!(w.compareDocumentPosition(z)&16):!1:!1}function dB(w){w=w!=null&&w.ownerDocument!=null&&w.ownerDocument.defaultView!=null?w.ownerDocument.defaultView:window;for(var z=U$(w.document);z instanceof w.HTMLIFrameElement;){try{var Z=typeof z.contentWindow.location.href==="string"}catch($){Z=!1}if(Z)w=z.contentWindow;else break;z=U$(w.document)}return z}function kW(w){var z=w&&w.nodeName&&w.nodeName.toLowerCase();return z&&(z==="input"&&(w.type==="text"||w.type==="search"||w.type==="tel"||w.type==="url"||w.type==="password")||z==="textarea"||w.contentEditable==="true")}function uB(w,z,Z){var $=Z.window===Z?Z.document:Z.nodeType===9?Z:Z.ownerDocument;dU||d9==null||d9!==U$($)||($=d9,("selectionStart"in $)&&kW($)?$={start:$.selectionStart,end:$.selectionEnd}:($=($.ownerDocument&&$.ownerDocument.defaultView||window).getSelection(),$={anchorNode:$.anchorNode,anchorOffset:$.anchorOffset,focusNode:$.focusNode,focusOffset:$.focusOffset}),UJ&&DZ(UJ,$)||(UJ=$,$=G3(mU,"onSelect"),0<$.length&&(z=new v3("onSelect","select",null,z,Z),w.push({event:z,listeners:$}),z.target=d9)))}function n4(w,z){var Z={};return Z[w.toLowerCase()]=z.toLowerCase(),Z["Webkit"+w]="webkit"+z,Z["Moz"+w]="moz"+z,Z}function t4(w){if(uU[w])return uU[w];if(!u9[w])return w;var z=u9[w],Z;for(Z in z)if(z.hasOwnProperty(Z)&&Z in lN)return uU[w]=z[Z];return w}function f5(w,z){oN.set(w,z),Ew(z,[w])}function nx(w){for(var z=E3,Z=0;Z<w.length;Z++){var $=w[Z];if(typeof $==="object"&&$!==null)if(Pw($)&&$.length===2&&typeof $[0]==="string"){if(z!==E3&&z!==rU)return lU;z=rU}else return lU;else{if(typeof $==="function"||typeof $==="string"&&50<$.length||z!==E3&&z!==iU)return lU;z=iU}}return z}function AW(w,z,Z,$){for(var G in w)u5.call(w,G)&&G[0]!=="_"&&U8(G,w[G],z,Z,$)}function U8(w,z,Z,$,G){switch(typeof z){case"object":if(z===null){z="null";break}else{if(z.$$typeof===x8){var Q=S(z.type)||"…",H=z.key;z=z.props;var B=Object.keys(z),j=B.length;if(H==null&&j===0){z="<"+Q+" />";break}if(3>$||j===1&&B[0]==="children"&&H==null){z="<"+Q+" … />";break}Z.push([G+" ".repeat($)+w,"<"+Q]),H!==null&&U8("key",H,Z,$+1,G),w=!1;for(var O in z)O==="children"?z.children!=null&&(!Pw(z.children)||0<z.children.length)&&(w=!0):u5.call(z,O)&&O[0]!=="_"&&U8(O,z[O],Z,$+1,G);Z.push(["",w?">…</"+Q+">":"/>"]);return}if(Q=Object.prototype.toString.call(z),Q=Q.slice(8,Q.length-1),Q==="Array"){if(O=nx(z),O===iU||O===E3){z=JSON.stringify(z);break}else if(O===rU){Z.push([G+" ".repeat($)+w,""]);for(w=0;w<z.length;w++)Q=z[w],U8(Q[0],Q[1],Z,$+1,G);return}}if(Q==="Promise"){if(z.status==="fulfilled"){if(Q=Z.length,U8(w,z.value,Z,$,G),Z.length>Q){Z=Z[Q],Z[1]="Promise<"+(Z[1]||"Object")+">";return}}else if(z.status==="rejected"&&(Q=Z.length,U8(w,z.reason,Z,$,G),Z.length>Q)){Z=Z[Q],Z[1]="Rejected Promise<"+Z[1]+">";return}Z.push([" ".repeat($)+w,"Promise"]);return}Q==="Object"&&(O=Object.getPrototypeOf(z))&&typeof O.constructor==="function"&&(Q=O.constructor.name),Z.push([G+" ".repeat($)+w,Q==="Object"?3>$?"":"…":Q]),3>$&&AW(z,Z,$+1,G);return}case"function":z=z.name===""?"() => {}":z.name+"() {}";break;case"string":z=z===EE?"…":JSON.stringify(z);break;case"undefined":z="undefined";break;case"boolean":z=z?"true":"false";break;default:z=String(z)}Z.push([G+" ".repeat($)+w,z])}function pB(w,z,Z,$){var G=!0;for(H in w)H in z||(Z.push([P3+" ".repeat($)+H,"…"]),G=!1);for(var Q in z)if(Q in w){var H=w[Q],B=z[Q];if(H!==B){if($===0&&Q==="children")G=" ".repeat($)+Q,Z.push([P3+G,"…"],[I3+G,"…"]);else{if(!(3<=$)){if(typeof H==="object"&&typeof B==="object"&&H!==null&&B!==null&&H.$$typeof===B.$$typeof)if(B.$$typeof===x8){if(H.type===B.type&&H.key===B.key){H=S(B.type)||"…",G=" ".repeat($)+Q,H="<"+H+" … />",Z.push([P3+G,H],[I3+G,H]),G=!1;continue}}else{var j=Object.prototype.toString.call(H),O=Object.prototype.toString.call(B);if(j===O&&(O==="[object Object]"||O==="[object Array]")){j=[eN+" ".repeat($)+Q,O==="[object Array]"?"Array":""],Z.push(j),O=Z.length,pB(H,B,Z,$+1)?O===Z.length&&(j[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof H==="function"&&typeof B==="function"&&H.name===B.name&&H.length===B.length&&(j=Function.prototype.toString.call(H),O=Function.prototype.toString.call(B),j===O)){H=B.name===""?"() => {}":B.name+"() {}",Z.push([eN+" ".repeat($)+Q,H+" Referentially unequal function closure. Consider memoization."]);continue}}U8(Q,H,Z,$,P3),U8(Q,B,Z,$,I3)}G=!1}}else Z.push([I3+" ".repeat($)+Q,"…"]),G=!1;return G}function R2(w){B1=w&63?"Blocking":w&64?"Gesture":w&4194176?"Transition":w&62914560?"Suspense":w&2080374784?"Idle":"Other"}function H8(w,z,Z,$){c1&&(G4.start=z,G4.end=Z,Q6.color="warning",Q6.tooltipText=$,Q6.properties=null,(w=w._debugTask)?w.run(performance.measure.bind(performance,$,G4)):performance.measure($,G4))}function V$(w,z,Z){H8(w,z,Z,"Reconnect")}function F$(w,z,Z,$,G){var Q=d(w);if(Q!==null&&c1){var{alternate:H,actualDuration:B}=w;if(H===null||H.child!==w.child)for(var j=w.child;j!==null;j=j.sibling)B-=j.actualDuration;$=0.5>B?$?"tertiary-light":"primary-light":10>B?$?"tertiary":"primary":100>B?$?"tertiary-dark":"primary-dark":"error";var O=w.memoizedProps;B=w._debugTask,O!==null&&H!==null&&H.memoizedProps!==O?(j=[PE],O=pB(H.memoizedProps,O,j,0),1<j.length&&(O&&!Y4&&(H.lanes&G)===0&&100<w.actualDuration?(Y4=!0,j[0]=IE,Q6.color="warning",Q6.tooltipText=wk):(Q6.color=$,Q6.tooltipText=Q),Q6.properties=j,G4.start=z,G4.end=Z,B!=null?B.run(performance.measure.bind(performance,""+Q,G4)):performance.measure(""+Q,G4))):B!=null?B.run(console.timeStamp.bind(console,Q,z,Z,U5,void 0,$)):console.timeStamp(Q,z,Z,U5,void 0,$)}}function jW(w,z,Z,$){if(c1){var G=d(w);if(G!==null){for(var Q=null,H=[],B=0;B<$.length;B++){var j=$[B];Q==null&&j.source!==null&&(Q=j.source._debugTask),j=j.value,H.push(["Error",typeof j==="object"&&j!==null&&typeof j.message==="string"?String(j.message):String(j)])}w.key!==null&&U8("key",w.key,H,0,""),w.memoizedProps!==null&&AW(w.memoizedProps,H,0,""),Q==null&&(Q=w._debugTask),w={start:z,end:Z,detail:{devtools:{color:"error",track:U5,tooltipText:w.tag===13?"Hydration failed":"Error boundary caught an error",properties:H}}},Q?Q.run(performance.measure.bind(performance,""+G,w)):performance.measure(""+G,w)}}}function _8(w,z,Z,$,G){if(G!==null){if(c1){var Q=d(w);if(Q!==null){$=[];for(var H=0;H<G.length;H++){var B=G[H].value;$.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}w.key!==null&&U8("key",w.key,$,0,""),w.memoizedProps!==null&&AW(w.memoizedProps,$,0,""),z={start:z,end:Z,detail:{devtools:{color:"error",track:U5,tooltipText:"A lifecycle or effect errored",properties:$}}},(w=w._debugTask)?w.run(performance.measure.bind(performance,""+Q,z)):performance.measure(""+Q,z)}}}else Q=d(w),Q!==null&&c1&&(G=1>$?"secondary-light":100>$?"secondary":500>$?"secondary-dark":"error",(w=w._debugTask)?w.run(console.timeStamp.bind(console,Q,z,Z,U5,void 0,G)):console.timeStamp(Q,z,Z,U5,void 0,G))}function tx(w,z,Z,$){if(c1&&!(z<=w)){var G=(Z&738197653)===Z?"tertiary-dark":"primary-dark";Z=(Z&536870912)===Z?"Prepared":(Z&201326741)===Z?"Hydrated":"Render",$?$.run(console.timeStamp.bind(console,Z,w,z,B1,_1,G)):console.timeStamp(Z,w,z,B1,_1,G)}}function cB(w,z,Z,$){!c1||z<=w||(Z=(Z&738197653)===Z?"tertiary-dark":"primary-dark",$?$.run(console.timeStamp.bind(console,"Prewarm",w,z,B1,_1,Z)):console.timeStamp("Prewarm",w,z,B1,_1,Z))}function lB(w,z,Z,$){!c1||z<=w||(Z=(Z&738197653)===Z?"tertiary-dark":"primary-dark",$?$.run(console.timeStamp.bind(console,"Suspended",w,z,B1,_1,Z)):console.timeStamp("Suspended",w,z,B1,_1,Z))}function ex(w,z,Z,$,G,Q){if(c1&&!(z<=w)){Z=[];for(var H=0;H<$.length;H++){var B=$[H].value;Z.push(["Recoverable Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}w={start:w,end:z,detail:{devtools:{color:"primary-dark",track:B1,trackGroup:_1,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:Z}}},Q?Q.run(performance.measure.bind(performance,"Recovered",w)):performance.measure("Recovered",w)}}function MW(w,z,Z,$){!c1||z<=w||($?$.run(console.timeStamp.bind(console,"Errored",w,z,B1,_1,"error")):console.timeStamp("Errored",w,z,B1,_1,"error"))}function wv(w,z,Z,$){!c1||z<=w||($?$.run(console.timeStamp.bind(console,Z,w,z,B1,_1,"secondary-light")):console.timeStamp(Z,w,z,B1,_1,"secondary-light"))}function iB(w,z,Z,$,G){if(c1&&!(z<=w)){for(var Q=[],H=0;H<Z.length;H++){var B=Z[H].value;Q.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}w={start:w,end:z,detail:{devtools:{color:"error",track:B1,trackGroup:_1,tooltipText:$?"Remaining Effects Errored":"Commit Errored",properties:Q}}},G?G.run(performance.measure.bind(performance,"Errored",w)):performance.measure("Errored",w)}}function TZ(w,z,Z){!c1||z<=w||(Z?Z.run(console.timeStamp.bind(console,"Animating",w,z,B1,_1,"secondary-dark")):console.timeStamp("Animating",w,z,B1,_1,"secondary-dark"))}function N$(){for(var w=p9,z=aU=p9=0;z<w;){var Z=H5[z];H5[z++]=null;var $=H5[z];H5[z++]=null;var G=H5[z];H5[z++]=null;var Q=H5[z];if(H5[z++]=null,$!==null&&G!==null){var H=$.pending;H===null?G.next=G:(G.next=H.next,H.next=G),$.pending=G}Q!==0&&rB(Z,G,Q)}}function k$(w,z,Z,$){H5[p9++]=w,H5[p9++]=z,H5[p9++]=Z,H5[p9++]=$,aU|=$,w.lanes|=$,w=w.alternate,w!==null&&(w.lanes|=$)}function OW(w,z,Z,$){return k$(w,z,Z,$),A$(w)}function w2(w,z){return k$(w,null,null,z),A$(w)}function rB(w,z,Z){w.lanes|=Z;var $=w.alternate;$!==null&&($.lanes|=Z);for(var G=!1,Q=w.return;Q!==null;)Q.childLanes|=Z,$=Q.alternate,$!==null&&($.childLanes|=Z),Q.tag===22&&(w=Q.stateNode,w===null||w._visibility&HJ||(G=!0)),w=Q,Q=Q.return;return w.tag===3?(Q=w.stateNode,G&&z!==null&&(G=31-K2(Z),w=Q.hiddenUpdates,$=w[G],$===null?w[G]=[z]:$.push(z),z.lane=Z|536870912),Q):null}function A$(w){if(fJ>rE)throw x7=fJ=0,mJ=xH=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.");x7>aE&&(x7=0,mJ=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.")),w.alternate===null&&(w.flags&4098)!==0&&WF(w);for(var z=w,Z=z.return;Z!==null;)z.alternate===null&&(z.flags&4098)!==0&&WF(w),z=Z,Z=z.return;return z.tag===3?z.stateNode:null}function e4(w){if(_5===null)return w;var z=_5(w);return z===void 0?w:z.current}function DW(w){if(_5===null)return w;var z=_5(w);return z===void 0?w!==null&&w!==void 0&&typeof w.render==="function"&&(z=e4(w.render),w.render!==z)?(z={$$typeof:wJ,render:z},w.displayName!==void 0&&(z.displayName=w.displayName),z):w:z.current}function aB(w,z){if(_5===null)return!1;var Z=w.elementType;z=z.type;var $=!1,G=typeof z==="object"&&z!==null?z.$$typeof:null;switch(w.tag){case 1:typeof z==="function"&&($=!0);break;case 0:typeof z==="function"?$=!0:G===c2&&($=!0);break;case 11:G===wJ?$=!0:G===c2&&($=!0);break;case 14:case 15:G===F3?$=!0:G===c2&&($=!0);break;default:return!1}return $&&(w=_5(Z),w!==void 0&&w===_5(z))?!0:!1}function sB(w){_5!==null&&typeof WeakSet==="function"&&(c9===null&&(c9=new WeakSet),c9.add(w))}function oB(w,z,Z){do{var $=w,G=$.alternate,Q=$.child,H=$.sibling,B=$.tag;$=$.type;var j=null;switch(B){case 0:case 15:case 1:j=$;break;case 11:j=$.render}if(_5===null)throw Error("Expected resolveFamily to be set during hot reload.");var O=!1;if($=!1,j!==null&&(j=_5(j),j!==void 0&&(Z.has(j)?$=!0:z.has(j)&&(B===1?$=!0:O=!0))),c9!==null&&(c9.has(w)||G!==null&&c9.has(G))&&($=!0),$&&(w._debugNeedsRemount=!0),$||O)G=w2(w,2),G!==null&&Zw(G,w,2);if(Q===null||$||oB(Q,z,Z),H===null)break;w=H}while(1)}function zv(w,z,Z,$){this.tag=w,this.key=Z,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=$,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,zk||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function TW(w){return w=w.prototype,!(!w||!w.isReactComponent)}function w6(w,z){var Z=w.alternate;switch(Z===null?(Z=k(w.tag,z,w.key,w.mode),Z.elementType=w.elementType,Z.type=w.type,Z.stateNode=w.stateNode,Z._debugOwner=w._debugOwner,Z._debugStack=w._debugStack,Z._debugTask=w._debugTask,Z._debugHookTypes=w._debugHookTypes,Z.alternate=w,w.alternate=Z):(Z.pendingProps=z,Z.type=w.type,Z.flags=0,Z.subtreeFlags=0,Z.deletions=null,Z.actualDuration=-0,Z.actualStartTime=-1.1),Z.flags=w.flags&65011712,Z.childLanes=w.childLanes,Z.lanes=w.lanes,Z.child=w.child,Z.memoizedProps=w.memoizedProps,Z.memoizedState=w.memoizedState,Z.updateQueue=w.updateQueue,z=w.dependencies,Z.dependencies=z===null?null:{lanes:z.lanes,firstContext:z.firstContext,_debugThenableState:z._debugThenableState},Z.sibling=w.sibling,Z.index=w.index,Z.ref=w.ref,Z.refCleanup=w.refCleanup,Z.selfBaseDuration=w.selfBaseDuration,Z.treeBaseDuration=w.treeBaseDuration,Z._debugInfo=w._debugInfo,Z._debugNeedsRemount=w._debugNeedsRemount,Z.tag){case 0:case 15:Z.type=e4(w.type);break;case 1:Z.type=e4(w.type);break;case 11:Z.type=DW(w.type)}return Z}function nB(w,z){w.flags&=65011714;var Z=w.alternate;return Z===null?(w.childLanes=0,w.lanes=z,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null,w.selfBaseDuration=0,w.treeBaseDuration=0):(w.childLanes=Z.childLanes,w.lanes=Z.lanes,w.child=Z.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=Z.memoizedProps,w.memoizedState=Z.memoizedState,w.updateQueue=Z.updateQueue,w.type=Z.type,z=Z.dependencies,w.dependencies=z===null?null:{lanes:z.lanes,firstContext:z.firstContext,_debugThenableState:z._debugThenableState},w.selfBaseDuration=Z.selfBaseDuration,w.treeBaseDuration=Z.treeBaseDuration),w}function xW(w,z,Z,$,G,Q){var H=0,B=w;if(typeof w==="function")TW(w)&&(H=1),B=e4(B);else if(typeof w==="string")H=o(),H=Kh(w,Z,H)?26:w==="html"||w==="head"||w==="body"?27:5;else w:switch(w){case NU:return z=k(31,Z,z,G),z.elementType=NU,z.lanes=Q,z;case I9:return w7(Z.children,G,Q,z);case V3:H=8,G|=Z2,G|=c5;break;case BU:return w=Z,$=G,typeof w.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof w.id),z=k(12,w,z,$|Y1),z.elementType=BU,z.lanes=Q,z.stateNode={effectDuration:0,passiveEffectDuration:0},z;case VU:return z=k(13,Z,z,G),z.elementType=VU,z.lanes=Q,z;case FU:return z=k(19,Z,z,G),z.elementType=FU,z.lanes=Q,z;default:if(typeof w==="object"&&w!==null)switch(w.$$typeof){case v8:H=10;break w;case LU:H=9;break w;case wJ:H=11,B=DW(B);break w;case F3:H=14;break w;case c2:H=16,B=null;break w}if(B="",w===void 0||typeof w==="object"&&w!==null&&Object.keys(w).length===0)B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";w===null?Z="null":Pw(w)?Z="array":w!==void 0&&w.$$typeof===x8?(Z="<"+(S(w.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof w,(H=$?p($):null)&&(B+=`
|
|
72
|
+
|
|
73
|
+
Check the render method of \``+H+"`."),H=29,Z=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(Z+"."+B)),B=null}return z=k(H,Z,z,G),z.elementType=w,z.type=B,z.lanes=Q,z._debugOwner=$,z}function j$(w,z,Z){return z=xW(w.type,w.key,w.props,w._owner,z,Z),z._debugOwner=w._owner,z._debugStack=w._debugStack,z._debugTask=w._debugTask,z}function w7(w,z,Z,$){return w=k(7,w,$,z),w.lanes=Z,w}function vW(w,z,Z){return w=k(6,w,null,z),w.lanes=Z,w}function tB(w){var z=k(18,null,null,w1);return z.stateNode=w,z}function hW(w,z,Z){return z=k(4,w.children!==null?w.children:[],w.key,z),z.lanes=Z,z.stateNode={containerInfo:w.containerInfo,pendingChildren:null,implementation:w.implementation},z}function g2(w,z){if(typeof w==="object"&&w!==null){var Z=sU.get(w);if(Z!==void 0)return Z;return z={value:w,source:z,stack:H0(z)},sU.set(w,z),z}return{value:w,source:z,stack:H0(z)}}function z6(w,z){p6(),l9[i9++]=_J,l9[i9++]=b3,b3=w,_J=z}function eB(w,z,Z){p6(),q5[B5++]=K6,q5[B5++]=U6,q5[B5++]=_7,_7=w;var $=K6;w=U6;var G=32-K2($)-1;$&=~(1<<G),Z+=1;var Q=32-K2(z)+G;if(30<Q){var H=G-G%5;Q=($&(1<<H)-1).toString(32),$>>=H,G-=H,K6=1<<32-K2(z)+G|Z<<G|$,U6=Q+w}else K6=1<<Q|Z<<G|$,U6=w}function EW(w){p6(),w.return!==null&&(z6(w,1),eB(w,1,0))}function PW(w){for(;w===b3;)b3=l9[--i9],l9[i9]=null,_J=l9[--i9],l9[i9]=null;for(;w===_7;)_7=q5[--B5],q5[B5]=null,U6=q5[--B5],q5[B5]=null,K6=q5[--B5],q5[B5]=null}function wL(){return p6(),_7!==null?{id:K6,overflow:U6}:null}function zL(w,z){p6(),q5[B5++]=K6,q5[B5++]=U6,q5[B5++]=_7,K6=z.id,U6=z.overflow,_7=w}function p6(){F1||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function z7(w,z){if(w.return===null){if(r2===null)r2={fiber:w,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:z};else{if(r2.fiber!==w)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");r2.distanceFromLeaf>z&&(r2.distanceFromLeaf=z)}return r2}var Z=z7(w.return,z+1).children;if(0<Z.length&&Z[Z.length-1].fiber===w)return Z=Z[Z.length-1],Z.distanceFromLeaf>z&&(Z.distanceFromLeaf=z),Z;return z={fiber:w,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:z},Z.push(z),z}function ZL(){F1&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function M$(w,z){S8||(w=z7(w,0),w.serverProps=null,z!==null&&(z=SF(z),w.serverTail.push(z)))}function c6(w){var z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,Z="",$=r2;throw $!==null&&(r2=null,Z=LW($)),xZ(g2(Error("Hydration failed because the server rendered "+(z?"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:
|
|
74
|
+
|
|
75
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
76
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
77
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
78
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
79
|
+
- Invalid HTML tag nesting.
|
|
80
|
+
|
|
81
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
82
|
+
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+Z),w)),oU}function JL(w){var{stateNode:z,type:Z,memoizedProps:$}=w;switch(z[sw]=w,z[U2]=$,nK(Z,$),Z){case"dialog":k1("cancel",z),k1("close",z);break;case"iframe":case"object":case"embed":k1("load",z);break;case"video":case"audio":for(Z=0;Z<dJ.length;Z++)k1(dJ[Z],z);break;case"source":k1("error",z);break;case"img":case"image":case"link":k1("error",z),k1("load",z);break;case"details":k1("toggle",z);break;case"input":K8("input",$),k1("invalid",z),WB(z,$),KB(z,$.value,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name,!0);break;case"option":UB(z,$);break;case"select":K8("select",$),k1("invalid",z),_B(z,$);break;case"textarea":K8("textarea",$),k1("invalid",z),qB(z,$),LB(z,$.value,$.defaultValue,$.children)}Z=$.children,typeof Z!=="string"&&typeof Z!=="number"&&typeof Z!=="bigint"||z.textContent===""+Z||$.suppressHydrationWarning===!0||kF(z.textContent,Z)?($.popover!=null&&(k1("beforetoggle",z),k1("toggle",z)),$.onScroll!=null&&k1("scroll",z),$.onScrollEnd!=null&&k1("scrollend",z),$.onClick!=null&&(z.onclick=e8),z=!0):z=!1,z||c6(w,!0)}function XL(w){for(ow=w.return;ow;)switch(ow.tag){case 5:case 31:case 13:L5=!1;return;case 27:case 3:L5=!0;return;default:ow=ow.return}}function L9(w){if(w!==ow)return!1;if(!F1)return XL(w),F1=!0,!1;var z=w.tag,Z;if(Z=z!==3&&z!==27){if(Z=z===5)Z=w.type,Z=!(Z!=="form"&&Z!=="button")||ZU(w.type,w.memoizedProps);Z=!Z}if(Z&&l1){for(Z=l1;Z;){var $=z7(w,0),G=SF(Z);$.serverTail.push(G),Z=G.type==="Suspense"?YU(Z):p2(Z.nextSibling)}c6(w)}if(XL(w),z===13){if(w=w.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");l1=YU(w)}else if(z===31){if(w=w.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");l1=YU(w)}else z===27?(z=l1,w4(w.type)?(w=fH,fH=null,l1=w):l1=z):l1=ow?p2(w.stateNode.nextSibling):null;return!0}function Z7(){l1=ow=null,S8=F1=!1}function IW(){var w=W4;return w!==null&&(V2===null?V2=w:V2.push.apply(V2,w),W4=null),w}function xZ(w){W4===null?W4=[w]:W4.push(w)}function bW(){var w=r2;if(w!==null){r2=null;for(var z=LW(w);0<w.children.length;)w=w.children[0];n(w.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:
|
|
84
|
+
|
|
85
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
86
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
87
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
88
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
89
|
+
- Invalid HTML tag nesting.
|
|
90
|
+
|
|
91
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
92
|
+
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",z)})}}function O$(){r9=S3=null,a9=!1}function l6(w,z,Z){u(nU,z._currentValue,w),z._currentValue=Z,u(tU,z._currentRenderer,w),z._currentRenderer!==void 0&&z._currentRenderer!==null&&z._currentRenderer!==Jk&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),z._currentRenderer=Jk}function Z6(w,z){w._currentValue=nU.current;var Z=tU.current;t(tU,z),w._currentRenderer=Z,t(nU,z)}function SW(w,z,Z){for(;w!==null;){var $=w.alternate;if((w.childLanes&z)!==z?(w.childLanes|=z,$!==null&&($.childLanes|=z)):$!==null&&($.childLanes&z)!==z&&($.childLanes|=z),w===Z)break;w=w.return}w!==Z&&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 CW(w,z,Z,$){var G=w.child;G!==null&&(G.return=w);for(;G!==null;){var Q=G.dependencies;if(Q!==null){var H=G.child;Q=Q.firstContext;w:for(;Q!==null;){var B=Q;Q=G;for(var j=0;j<z.length;j++)if(B.context===z[j]){Q.lanes|=Z,B=Q.alternate,B!==null&&(B.lanes|=Z),SW(Q.return,Z,w),$||(H=null);break w}Q=B.next}}else if(G.tag===18){if(H=G.return,H===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");H.lanes|=Z,Q=H.alternate,Q!==null&&(Q.lanes|=Z),SW(H,Z,w),H=null}else H=G.child;if(H!==null)H.return=G;else for(H=G;H!==null;){if(H===w){H=null;break}if(G=H.sibling,G!==null){G.return=H.return,H=G;break}H=H.return}G=H}}function V9(w,z,Z,$){w=null;for(var G=z,Q=!1;G!==null;){if(!Q){if((G.flags&524288)!==0)Q=!0;else if((G.flags&262144)!==0)break}if(G.tag===10){var H=G.alternate;if(H===null)throw Error("Should have a current fiber. This is a bug in React.");if(H=H.memoizedProps,H!==null){var B=G.type;_2(G.pendingProps.value,H.value)||(w!==null?w.push(B):w=[B])}}else if(G===N3.current){if(H=G.alternate,H===null)throw Error("Should have a current fiber. This is a bug in React.");H.memoizedState.memoizedState!==G.memoizedState.memoizedState&&(w!==null?w.push(iJ):w=[iJ])}G=G.return}w!==null&&CW(z,w,Z,$),z.flags|=262144}function D$(w){for(w=w.firstContext;w!==null;){if(!_2(w.context._currentValue,w.memoizedValue))return!0;w=w.next}return!1}function J7(w){S3=w,r9=null,w=w.dependencies,w!==null&&(w.firstContext=null)}function s1(w){return a9&&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()."),$L(S3,w)}function T$(w,z){return S3===null&&J7(w),$L(w,z)}function $L(w,z){var Z=z._currentValue;if(z={context:z,memoizedValue:Z,next:null},r9===null){if(w===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().");r9=z,w.dependencies={lanes:0,firstContext:z,_debugThenableState:null},w.flags|=524288}else r9=r9.next=z;return Z}function yW(){return{controller:new CE,data:new Map,refCount:0}}function X7(w){w.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),w.refCount++}function vZ(w){w.refCount--,0>w.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),w.refCount===0&&yE(RE,function(){w.controller.abort()})}function q8(w,z,Z){if((w&127)!==0)0>C8&&(C8=Fw(),BJ=C3(z),eU=z,Z!=null&&(wH=d(Z)),(M1&(bw|o2))!==dw&&(Jw=!0,H4=qJ),w=sZ(),z=aZ(),w!==s9||z!==LJ?s9=-1.1:z!==null&&(H4=qJ),B7=w,LJ=z);else if((w&4194048)!==0&&0>V5&&(V5=Fw(),VJ=C3(z),Xk=z,Z!=null&&($k=d(Z)),0>q6)){if(w=sZ(),z=aZ(),w!==q4||z!==L7)q4=-1.1;_4=w,L7=z}}function Zv(w){if(0>C8){C8=Fw(),BJ=w._debugTask!=null?w._debugTask:null,(M1&(bw|o2))!==dw&&(H4=qJ);var z=sZ(),Z=aZ();z!==s9||Z!==LJ?s9=-1.1:Z!==null&&(H4=qJ),B7=z,LJ=Z}if(0>V5&&(V5=Fw(),VJ=w._debugTask!=null?w._debugTask:null,0>q6)){if(w=sZ(),z=aZ(),w!==q4||z!==L7)q4=-1.1;_4=w,L7=z}}function J6(){var w=q7;return q7=0,w}function x$(w){var z=q7;return q7=w,z}function hZ(w){var z=q7;return q7+=w,z}function v$(){e0=s0=-1.1}function f2(){var w=s0;return s0=-1.1,w}function m2(w){0<=w&&(s0=w)}function B8(){var w=t1;return t1=-0,w}function L8(w){0<=w&&(t1=w)}function V8(){var w=o1;return o1=null,w}function F8(){var w=Jw;return Jw=!1,w}function RW(w){q2=Fw(),0>w.actualStartTime&&(w.actualStartTime=q2)}function gW(w){if(0<=q2){var z=Fw()-q2;w.actualDuration+=z,w.selfBaseDuration=z,q2=-1}}function YL(w){if(0<=q2){var z=Fw()-q2;w.actualDuration+=z,q2=-1}}function N8(){if(0<=q2){var w=Fw(),z=w-q2;q2=-1,q7+=z,t1+=z,e0=w}}function GL(w){o1===null&&(o1=[]),o1.push(w),_6===null&&(_6=[]),_6.push(w)}function k8(){q2=Fw(),0>s0&&(s0=q2)}function EZ(w){for(var z=w.child;z;)w.actualDuration+=z.actualDuration,z=z.sibling}function Jv(w,z){if(NJ===null){var Z=NJ=[];ZH=0,V7=rK(),o9={status:"pending",value:void 0,then:function($){Z.push($)}}}return ZH++,z.then(QL,QL),z}function QL(){if(--ZH===0&&(-1<V5||(q6=-1.1),NJ!==null)){o9!==null&&(o9.status="fulfilled");var w=NJ;NJ=null,V7=0,o9=null;for(var z=0;z<w.length;z++)(0,w[z])()}}function Xv(w,z){var Z=[],$={status:"pending",value:null,reason:null,then:function(G){Z.push(G)}};return w.then(function(){$.status="fulfilled",$.value=z;for(var G=0;G<Z.length;G++)(0,Z[G])(z)},function(G){$.status="rejected",$.reason=G;for(G=0;G<Z.length;G++)(0,Z[G])(void 0)}),$}function fW(){var w=F7.current;return w!==null?w:g1.pooledCache}function h$(w,z){z===null?u(F7,F7.current,w):u(F7,z.pool,w)}function WL(){var w=fW();return w===null?null:{parent:Vw._currentValue,pool:w}}function KL(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function UL(w){return w=w.status,w==="fulfilled"||w==="rejected"}function HL(w,z,Z){Y0.actQueue!==null&&(Y0.didUsePromise=!0);var $=w.thenables;if(Z=$[Z],Z===void 0?$.push(z):Z!==z&&(w.didWarnAboutUncachedPromise||(w.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.")),z.then(e8,e8),z=Z),z._debugInfo===void 0){w=performance.now(),$=z.displayName;var G={name:typeof $==="string"?$:"Promise",start:w,end:w,value:z};z._debugInfo=[{awaited:G}],z.status!=="fulfilled"&&z.status!=="rejected"&&(w=function(){G.end=performance.now()},z.then(w,w))}switch(z.status){case"fulfilled":return z.value;case"rejected":throw w=z.reason,qL(w),w;default:if(typeof z.status==="string")z.then(e8,e8);else{if(w=g1,w!==null&&100<w.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.");w=z,w.status="pending",w.then(function(Q){if(z.status==="pending"){var H=z;H.status="fulfilled",H.value=Q}},function(Q){if(z.status==="pending"){var H=z;H.status="rejected",H.reason=Q}})}switch(z.status){case"fulfilled":return z.value;case"rejected":throw w=z.reason,qL(w),w}throw k7=z,TJ=!0,n9}}function i6(w){try{return dE(w)}catch(z){if(z!==null&&typeof z==="object"&&typeof z.then==="function")throw k7=z,TJ=!0,n9;throw z}}function _L(){if(k7===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var w=k7;return k7=null,TJ=!1,w}function qL(w){if(w===n9||w===p3)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 iw(w){var z=G1;return w!=null&&(G1=z===null?w:z.concat(w)),z}function mW(){var w=G1;if(w!=null){for(var z=w.length-1;0<=z;z--)if(w[z].name!=null){var Z=w[z].debugTask;if(Z!=null)return Z}}return null}function E$(w,z,Z){for(var $=Object.keys(w.props),G=0;G<$.length;G++){var Q=$[G];if(Q!=="children"&&Q!=="key"){z===null&&(z=j$(w,Z.mode,0),z._debugInfo=G1,z.return=Z),n(z,function(H){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",H)},Q);break}}}function P$(w){var z=xJ;return xJ+=1,t9===null&&(t9=KL()),HL(t9,w,z)}function PZ(w,z){z=z.props.ref,w.ref=z!==void 0?z:null}function BL(w,z){if(z.$$typeof===kh)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
94
|
+
- Multiple copies of the "react" package is used.
|
|
95
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
96
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`);throw w=Object.prototype.toString.call(z),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}function I$(w,z){var Z=mW();Z!==null?Z.run(BL.bind(null,w,z)):BL(w,z)}function LL(w,z){var Z=d(w)||"Component";Dk[Z]||(Dk[Z]=!0,z=z.displayName||z.name||"Component",w.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.
|
|
97
|
+
root.render(%s)`,z,z,z):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.
|
|
98
|
+
<%s>{%s}</%s>`,z,z,Z,z,Z))}function b$(w,z){var Z=mW();Z!==null?Z.run(LL.bind(null,w,z)):LL(w,z)}function VL(w,z){var Z=d(w)||"Component";Tk[Z]||(Tk[Z]=!0,z=String(z),w.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
|
+
root.render(%s)`,z):console.error(`Symbols are not valid as a React child.
|
|
100
|
+
<%s>%s</%s>`,Z,z,Z))}function S$(w,z){var Z=mW();Z!==null?Z.run(VL.bind(null,w,z)):VL(w,z)}function FL(w){function z(C,f){if(w){var l=C.deletions;l===null?(C.deletions=[f],C.flags|=16):l.push(f)}}function Z(C,f){if(!w)return null;for(;f!==null;)z(C,f),f=f.sibling;return null}function $(C){for(var f=new Map;C!==null;)C.key!==null?f.set(C.key,C):f.set(C.index,C),C=C.sibling;return f}function G(C,f){return C=w6(C,f),C.index=0,C.sibling=null,C}function Q(C,f,l){if(C.index=l,!w)return C.flags|=1048576,f;if(l=C.alternate,l!==null)return l=l.index,l<f?(C.flags|=67108866,f):l;return C.flags|=67108866,f}function H(C){return w&&C.alternate===null&&(C.flags|=67108866),C}function B(C,f,l,W0){if(f===null||f.tag!==6)return f=vW(l,C.mode,W0),f.return=C,f._debugOwner=C,f._debugTask=C._debugTask,f._debugInfo=G1,f;return f=G(f,l),f.return=C,f._debugInfo=G1,f}function j(C,f,l,W0){var D0=l.type;if(D0===I9)return f=i(C,f,l.props.children,W0,l.key),E$(l,f,C),f;if(f!==null&&(f.elementType===D0||aB(f,l)||typeof D0==="object"&&D0!==null&&D0.$$typeof===c2&&i6(D0)===f.type))return f=G(f,l.props),PZ(f,l),f.return=C,f._debugOwner=l._owner,f._debugInfo=G1,f;return f=j$(l,C.mode,W0),PZ(f,l),f.return=C,f._debugInfo=G1,f}function O(C,f,l,W0){if(f===null||f.tag!==4||f.stateNode.containerInfo!==l.containerInfo||f.stateNode.implementation!==l.implementation)return f=hW(l,C.mode,W0),f.return=C,f._debugInfo=G1,f;return f=G(f,l.children||[]),f.return=C,f._debugInfo=G1,f}function i(C,f,l,W0,D0){if(f===null||f.tag!==7)return f=w7(l,C.mode,W0,D0),f.return=C,f._debugOwner=C,f._debugTask=C._debugTask,f._debugInfo=G1,f;return f=G(f,l),f.return=C,f._debugInfo=G1,f}function a(C,f,l){if(typeof f==="string"&&f!==""||typeof f==="number"||typeof f==="bigint")return f=vW(""+f,C.mode,l),f.return=C,f._debugOwner=C,f._debugTask=C._debugTask,f._debugInfo=G1,f;if(typeof f==="object"&&f!==null){switch(f.$$typeof){case x8:return l=j$(f,C.mode,l),PZ(l,f),l.return=C,C=iw(f._debugInfo),l._debugInfo=G1,G1=C,l;case P9:return f=hW(f,C.mode,l),f.return=C,f._debugInfo=G1,f;case c2:var W0=iw(f._debugInfo);return f=i6(f),C=a(C,f,l),G1=W0,C}if(Pw(f)||R(f))return l=w7(f,C.mode,l,null),l.return=C,l._debugOwner=C,l._debugTask=C._debugTask,C=iw(f._debugInfo),l._debugInfo=G1,G1=C,l;if(typeof f.then==="function")return W0=iw(f._debugInfo),C=a(C,P$(f),l),G1=W0,C;if(f.$$typeof===v8)return a(C,T$(C,f),l);I$(C,f)}return typeof f==="function"&&b$(C,f),typeof f==="symbol"&&S$(C,f),null}function y(C,f,l,W0){var D0=f!==null?f.key:null;if(typeof l==="string"&&l!==""||typeof l==="number"||typeof l==="bigint")return D0!==null?null:B(C,f,""+l,W0);if(typeof l==="object"&&l!==null){switch(l.$$typeof){case x8:return l.key===D0?(D0=iw(l._debugInfo),C=j(C,f,l,W0),G1=D0,C):null;case P9:return l.key===D0?O(C,f,l,W0):null;case c2:return D0=iw(l._debugInfo),l=i6(l),C=y(C,f,l,W0),G1=D0,C}if(Pw(l)||R(l)){if(D0!==null)return null;return D0=iw(l._debugInfo),C=i(C,f,l,W0,null),G1=D0,C}if(typeof l.then==="function")return D0=iw(l._debugInfo),C=y(C,f,P$(l),W0),G1=D0,C;if(l.$$typeof===v8)return y(C,f,T$(C,l),W0);I$(C,l)}return typeof l==="function"&&b$(C,l),typeof l==="symbol"&&S$(C,l),null}function Z0(C,f,l,W0,D0){if(typeof W0==="string"&&W0!==""||typeof W0==="number"||typeof W0==="bigint")return C=C.get(l)||null,B(f,C,""+W0,D0);if(typeof W0==="object"&&W0!==null){switch(W0.$$typeof){case x8:return l=C.get(W0.key===null?l:W0.key)||null,C=iw(W0._debugInfo),f=j(f,l,W0,D0),G1=C,f;case P9:return C=C.get(W0.key===null?l:W0.key)||null,O(f,C,W0,D0);case c2:var Z1=iw(W0._debugInfo);return W0=i6(W0),f=Z0(C,f,l,W0,D0),G1=Z1,f}if(Pw(W0)||R(W0))return l=C.get(l)||null,C=iw(W0._debugInfo),f=i(f,l,W0,D0,null),G1=C,f;if(typeof W0.then==="function")return Z1=iw(W0._debugInfo),f=Z0(C,f,l,P$(W0),D0),G1=Z1,f;if(W0.$$typeof===v8)return Z0(C,f,l,T$(f,W0),D0);I$(f,W0)}return typeof W0==="function"&&b$(f,W0),typeof W0==="symbol"&&S$(f,W0),null}function M0(C,f,l,W0){if(typeof l!=="object"||l===null)return W0;switch(l.$$typeof){case x8:case P9:N(C,f,l);var D0=l.key;if(typeof D0!=="string")break;if(W0===null){W0=new Set,W0.add(D0);break}if(!W0.has(D0)){W0.add(D0);break}n(f,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.",D0)});break;case c2:l=i6(l),M0(C,f,l,W0)}return W0}function v0(C,f,l,W0){for(var D0=null,Z1=null,i0=null,m0=f,X1=f=0,i1=null;m0!==null&&X1<l.length;X1++){m0.index>X1?(i1=m0,m0=null):i1=m0.sibling;var _w=y(C,m0,l[X1],W0);if(_w===null){m0===null&&(m0=i1);break}D0=M0(C,_w,l[X1],D0),w&&m0&&_w.alternate===null&&z(C,m0),f=Q(_w,f,X1),i0===null?Z1=_w:i0.sibling=_w,i0=_w,m0=i1}if(X1===l.length)return Z(C,m0),F1&&z6(C,X1),Z1;if(m0===null){for(;X1<l.length;X1++)m0=a(C,l[X1],W0),m0!==null&&(D0=M0(C,m0,l[X1],D0),f=Q(m0,f,X1),i0===null?Z1=m0:i0.sibling=m0,i0=m0);return F1&&z6(C,X1),Z1}for(m0=$(m0);X1<l.length;X1++)i1=Z0(m0,C,X1,l[X1],W0),i1!==null&&(D0=M0(C,i1,l[X1],D0),w&&i1.alternate!==null&&m0.delete(i1.key===null?X1:i1.key),f=Q(i1,f,X1),i0===null?Z1=i1:i0.sibling=i1,i0=i1);return w&&m0.forEach(function(M6){return z(C,M6)}),F1&&z6(C,X1),Z1}function d1(C,f,l,W0){if(l==null)throw Error("An iterable object provided no iterator.");for(var D0=null,Z1=null,i0=f,m0=f=0,X1=null,i1=null,_w=l.next();i0!==null&&!_w.done;m0++,_w=l.next()){i0.index>m0?(X1=i0,i0=null):X1=i0.sibling;var M6=y(C,i0,_w.value,W0);if(M6===null){i0===null&&(i0=X1);break}i1=M0(C,M6,_w.value,i1),w&&i0&&M6.alternate===null&&z(C,i0),f=Q(M6,f,m0),Z1===null?D0=M6:Z1.sibling=M6,Z1=M6,i0=X1}if(_w.done)return Z(C,i0),F1&&z6(C,m0),D0;if(i0===null){for(;!_w.done;m0++,_w=l.next())i0=a(C,_w.value,W0),i0!==null&&(i1=M0(C,i0,_w.value,i1),f=Q(i0,f,m0),Z1===null?D0=i0:Z1.sibling=i0,Z1=i0);return F1&&z6(C,m0),D0}for(i0=$(i0);!_w.done;m0++,_w=l.next())X1=Z0(i0,C,m0,_w.value,W0),X1!==null&&(i1=M0(C,X1,_w.value,i1),w&&X1.alternate!==null&&i0.delete(X1.key===null?m0:X1.key),f=Q(X1,f,m0),Z1===null?D0=X1:Z1.sibling=X1,Z1=X1);return w&&i0.forEach(function(UP){return z(C,UP)}),F1&&z6(C,m0),D0}function A1(C,f,l,W0){if(typeof l==="object"&&l!==null&&l.type===I9&&l.key===null&&(E$(l,null,C),l=l.props.children),typeof l==="object"&&l!==null){switch(l.$$typeof){case x8:var D0=iw(l._debugInfo);w:{for(var Z1=l.key;f!==null;){if(f.key===Z1){if(Z1=l.type,Z1===I9){if(f.tag===7){Z(C,f.sibling),W0=G(f,l.props.children),W0.return=C,W0._debugOwner=l._owner,W0._debugInfo=G1,E$(l,W0,C),C=W0;break w}}else if(f.elementType===Z1||aB(f,l)||typeof Z1==="object"&&Z1!==null&&Z1.$$typeof===c2&&i6(Z1)===f.type){Z(C,f.sibling),W0=G(f,l.props),PZ(W0,l),W0.return=C,W0._debugOwner=l._owner,W0._debugInfo=G1,C=W0;break w}Z(C,f);break}else z(C,f);f=f.sibling}l.type===I9?(W0=w7(l.props.children,C.mode,W0,l.key),W0.return=C,W0._debugOwner=C,W0._debugTask=C._debugTask,W0._debugInfo=G1,E$(l,W0,C),C=W0):(W0=j$(l,C.mode,W0),PZ(W0,l),W0.return=C,W0._debugInfo=G1,C=W0)}return C=H(C),G1=D0,C;case P9:w:{D0=l;for(l=D0.key;f!==null;){if(f.key===l)if(f.tag===4&&f.stateNode.containerInfo===D0.containerInfo&&f.stateNode.implementation===D0.implementation){Z(C,f.sibling),W0=G(f,D0.children||[]),W0.return=C,C=W0;break w}else{Z(C,f);break}else z(C,f);f=f.sibling}W0=hW(D0,C.mode,W0),W0.return=C,C=W0}return H(C);case c2:return D0=iw(l._debugInfo),l=i6(l),C=A1(C,f,l,W0),G1=D0,C}if(Pw(l))return D0=iw(l._debugInfo),C=v0(C,f,l,W0),G1=D0,C;if(R(l)){if(D0=iw(l._debugInfo),Z1=R(l),typeof Z1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var i0=Z1.call(l);if(i0===l){if(C.tag!==0||Object.prototype.toString.call(C.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(i0)!=="[object Generator]")Mk||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."),Mk=!0}else l.entries!==Z1||YH||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),YH=!0);return C=d1(C,f,i0,W0),G1=D0,C}if(typeof l.then==="function")return D0=iw(l._debugInfo),C=A1(C,f,P$(l),W0),G1=D0,C;if(l.$$typeof===v8)return A1(C,f,T$(C,l),W0);I$(C,l)}if(typeof l==="string"&&l!==""||typeof l==="number"||typeof l==="bigint")return D0=""+l,f!==null&&f.tag===6?(Z(C,f.sibling),W0=G(f,D0),W0.return=C,C=W0):(Z(C,f),W0=vW(D0,C.mode,W0),W0.return=C,W0._debugOwner=C,W0._debugTask=C._debugTask,W0._debugInfo=G1,C=W0),H(C);return typeof l==="function"&&b$(C,l),typeof l==="symbol"&&S$(C,l),Z(C,f)}return function(C,f,l,W0){var D0=G1;G1=null;try{xJ=0;var Z1=A1(C,f,l,W0);return t9=null,Z1}catch(i1){if(i1===n9||i1===p3)throw i1;var i0=k(29,i1,null,C.mode);i0.lanes=W0,i0.return=C;var m0=i0._debugInfo=G1;if(i0._debugOwner=C._debugOwner,i0._debugTask=C._debugTask,m0!=null){for(var X1=m0.length-1;0<=X1;X1--)if(typeof m0[X1].stack==="string"){i0._debugOwner=m0[X1],i0._debugTask=m0[X1].debugTask;break}}return i0}finally{G1=D0}}}function NL(w,z){var Z=Pw(w);return w=!Z&&typeof R(w)==="function",Z||w?(Z=Z?"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>",Z,z,Z),!1):!0}function dW(w){w.updateQueue={baseState:w.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uW(w,z){w=w.updateQueue,z.updateQueue===w&&(z.updateQueue={baseState:w.baseState,firstBaseUpdate:w.firstBaseUpdate,lastBaseUpdate:w.lastBaseUpdate,shared:w.shared,callbacks:null})}function r6(w){return{lane:w,tag:vk,payload:null,callback:null,next:null}}function a6(w,z,Z){var $=w.updateQueue;if($===null)return null;if($=$.shared,QH===$&&!Pk){var G=d(w);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.
|
|
101
|
+
|
|
102
|
+
Please update the following component: %s`,G),Pk=!0}if((M1&bw)!==dw)return G=$.pending,G===null?z.next=z:(z.next=G.next,G.next=z),$.pending=z,z=A$(w),rB(w,null,Z),z;return k$(w,$,z,Z),A$(w)}function IZ(w,z,Z){if(z=z.updateQueue,z!==null&&(z=z.shared,(Z&4194048)!==0)){var $=z.lanes;$&=w.pendingLanes,Z|=$,z.lanes=Z,Lw(w,Z)}}function C$(w,z){var{updateQueue:Z,alternate:$}=w;if($!==null&&($=$.updateQueue,Z===$)){var G=null,Q=null;if(Z=Z.firstBaseUpdate,Z!==null){do{var H={lane:Z.lane,tag:Z.tag,payload:Z.payload,callback:null,next:null};Q===null?G=Q=H:Q=Q.next=H,Z=Z.next}while(Z!==null);Q===null?G=Q=z:Q=Q.next=z}else G=Q=z;Z={baseState:$.baseState,firstBaseUpdate:G,lastBaseUpdate:Q,shared:$.shared,callbacks:$.callbacks},w.updateQueue=Z;return}w=Z.lastBaseUpdate,w===null?Z.firstBaseUpdate=z:w.next=z,Z.lastBaseUpdate=z}function bZ(){if(WH){var w=o9;if(w!==null)throw w}}function SZ(w,z,Z,$){WH=!1;var G=w.updateQueue;B4=!1,QH=G.shared;var{firstBaseUpdate:Q,lastBaseUpdate:H}=G,B=G.shared.pending;if(B!==null){G.shared.pending=null;var j=B,O=j.next;j.next=null,H===null?Q=O:H.next=O,H=j;var i=w.alternate;i!==null&&(i=i.updateQueue,B=i.lastBaseUpdate,B!==H&&(B===null?i.firstBaseUpdate=O:B.next=O,i.lastBaseUpdate=j))}if(Q!==null){var a=G.baseState;H=0,i=O=j=null,B=Q;do{var y=B.lane&-536870913,Z0=y!==B.lane;if(Z0?(Q1&y)===y:($&y)===y){y!==0&&y===V7&&(WH=!0),i!==null&&(i=i.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});w:{y=w;var M0=B,v0=z,d1=Z;switch(M0.tag){case hk:if(M0=M0.payload,typeof M0==="function"){a9=!0;var A1=M0.call(d1,a,v0);if(y.mode&Z2){C0(!0);try{M0.call(d1,a,v0)}finally{C0(!1)}}a9=!1,a=A1;break w}a=M0;break w;case GH:y.flags=y.flags&-65537|128;case vk:if(A1=M0.payload,typeof A1==="function"){if(a9=!0,M0=A1.call(d1,a,v0),y.mode&Z2){C0(!0);try{A1.call(d1,a,v0)}finally{C0(!1)}}a9=!1}else M0=A1;if(M0===null||M0===void 0)break w;a=H1({},a,M0);break w;case Ek:B4=!0}}y=B.callback,y!==null&&(w.flags|=64,Z0&&(w.flags|=8192),Z0=G.callbacks,Z0===null?G.callbacks=[y]:Z0.push(y))}else Z0={lane:y,tag:B.tag,payload:B.payload,callback:B.callback,next:null},i===null?(O=i=Z0,j=a):i=i.next=Z0,H|=y;if(B=B.next,B===null)if(B=G.shared.pending,B===null)break;else Z0=B,B=Z0.next,Z0.next=null,G.lastBaseUpdate=Z0,G.shared.pending=null}while(1);i===null&&(j=a),G.baseState=j,G.firstBaseUpdate=O,G.lastBaseUpdate=i,Q===null&&(G.shared.lanes=0),F4|=H,w.lanes=H,w.memoizedState=a}QH=null}function kL(w,z){if(typeof w!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+w);w.call(z)}function $v(w,z){var Z=w.shared.hiddenCallbacks;if(Z!==null)for(w.shared.hiddenCallbacks=null,w=0;w<Z.length;w++)kL(Z[w],z)}function AL(w,z){var Z=w.callbacks;if(Z!==null)for(w.callbacks=null,w=0;w<Z.length;w++)kL(Z[w],z)}function jL(w,z){var Z=g8;u(l3,Z,w),u(e9,z,w),g8=Z|z.baseLanes}function pW(w){u(l3,g8,w),u(e9,e9.current,w)}function cW(w){g8=l3.current,t(e9,w),t(l3,w)}function s6(w){var z=w.alternate;u(Hw,Hw.current&wz,w),u(a2,w,w),F5===null&&(z===null||e9.current!==null?F5=w:z.memoizedState!==null&&(F5=w))}function lW(w){u(Hw,Hw.current,w),u(a2,w,w),F5===null&&(F5=w)}function ML(w){w.tag===22?(u(Hw,Hw.current,w),u(a2,w,w),F5===null&&(F5=w)):o6(w)}function o6(w){u(Hw,Hw.current,w),u(a2,a2.current,w)}function d2(w){t(a2,w),F5===w&&(F5=null),t(Hw,w)}function y$(w){for(var z=w;z!==null;){if(z.tag===13){var Z=z.memoizedState;if(Z!==null&&(Z=Z.dehydrated,Z===null||XU(Z)||$U(Z)))return z}else if(z.tag===19&&(z.memoizedProps.revealOrder==="forwards"||z.memoizedProps.revealOrder==="backwards"||z.memoizedProps.revealOrder==="unstable_legacy-backwards"||z.memoizedProps.revealOrder==="together")){if((z.flags&128)!==0)return z}else if(z.child!==null){z.child.return=z,z=z.child;continue}if(z===w)break;for(;z.sibling===null;){if(z.return===null||z.return===w)return null;z=z.return}z.sibling.return=z.return,z=z.sibling}return null}function U1(){var w=$0;k5===null?k5=[w]:k5.push(w)}function q0(){var w=$0;if(k5!==null&&(F6++,k5[F6]!==w)){var z=d(z1);if(!Ik.has(z)&&(Ik.add(z),k5!==null)){for(var Z="",$=0;$<=F6;$++){var G=k5[$],Q=$===F6?w:G;for(G=$+1+". "+G;30>G.length;)G+=" ";G+=Q+`
|
|
103
|
+
`,Z+=G}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
|
|
104
|
+
|
|
105
|
+
Previous render Next render
|
|
106
|
+
------------------------------------------------------
|
|
107
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
108
|
+
`,z,Z)}}}function F9(w){w===void 0||w===null||Pw(w)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",$0,typeof w)}function R$(){var w=d(z1);Sk.has(w)||(Sk.add(w),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",w))}function Qw(){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:
|
|
109
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
110
|
+
2. You might be breaking the Rules of Hooks
|
|
111
|
+
3. You might have more than one copy of React in the same app
|
|
112
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function iW(w,z){if(EJ)return!1;if(z===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.",$0),!1;w.length!==z.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
113
|
+
|
|
114
|
+
Previous: %s
|
|
115
|
+
Incoming: %s`,$0,"["+z.join(", ")+"]","["+w.join(", ")+"]");for(var Z=0;Z<z.length&&Z<w.length;Z++)if(!_2(w[Z],z[Z]))return!1;return!0}function rW(w,z,Z,$,G,Q){if(L6=Q,z1=z,k5=w!==null?w._debugHookTypes:null,F6=-1,EJ=w!==null&&w.type!==z.type,Object.prototype.toString.call(Z)==="[object AsyncFunction]"||Object.prototype.toString.call(Z)==="[object AsyncGeneratorFunction]")Q=d(z1),KH.has(Q)||(KH.add(Q),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.",Q===null?"An unknown Component":"<"+Q+">"));z.memoizedState=null,z.updateQueue=null,z.lanes=0,Y0.H=w!==null&&w.memoizedState!==null?HH:k5!==null?Ck:UH,j7=Q=(z.mode&Z2)!==w1;var H=JH(Z,$,G);if(j7=!1,Zz&&(H=aW(z,Z,$,G)),Q){C0(!0);try{H=aW(z,Z,$,G)}finally{C0(!1)}}return OL(w,z),H}function OL(w,z){z._debugHookTypes=k5,z.dependencies===null?V6!==null&&(z.dependencies={lanes:0,firstContext:null,_debugThenableState:V6}):z.dependencies._debugThenableState=V6,Y0.H=PJ;var Z=R1!==null&&R1.next!==null;if(L6=0,k5=$0=Nw=R1=z1=null,F6=-1,w!==null&&(w.flags&65011712)!==(z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),r3=!1,hJ=0,V6=null,Z)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");w===null||kw||(w=w.dependencies,w!==null&&D$(w)&&(kw=!0)),TJ?(TJ=!1,w=!0):w=!1,w&&(z=d(z)||"Unknown",bk.has(z)||KH.has(z)||(bk.add(z),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 aW(w,z,Z,$){z1=w;var G=0;do{if(Zz&&(V6=null),hJ=0,Zz=!1,G>=pE)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,EJ=!1,Nw=R1=null,w.updateQueue!=null){var Q=w.updateQueue;Q.lastEffect=null,Q.events=null,Q.stores=null,Q.memoCache!=null&&(Q.memoCache.index=0)}F6=-1,Y0.H=yk,Q=JH(z,Z,$)}while(Zz);return Q}function Yv(){var w=Y0.H,z=w.useState()[0];return z=typeof z.then==="function"?CZ(z):z,w=w.useState()[0],(R1!==null?R1.memoizedState:null)!==w&&(z1.flags|=1024),z}function sW(){var w=a3!==0;return a3=0,w}function oW(w,z,Z){z.updateQueue=w.updateQueue,z.flags=(z.mode&c5)!==w1?z.flags&-402655237:z.flags&-2053,w.lanes&=~Z}function nW(w){if(r3){for(w=w.memoizedState;w!==null;){var z=w.queue;z!==null&&(z.pending=null),w=w.next}r3=!1}L6=0,k5=Nw=R1=z1=null,F6=-1,$0=null,Zz=!1,hJ=a3=0,V6=null}function W2(){var w={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nw===null?z1.memoizedState=Nw=w:Nw=Nw.next=w,Nw}function b1(){if(R1===null){var w=z1.alternate;w=w!==null?w.memoizedState:null}else w=R1.next;var z=Nw===null?z1.memoizedState:Nw.next;if(z!==null)Nw=z,R1=w;else{if(w===null){if(z1.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}R1=w,w={memoizedState:R1.memoizedState,baseState:R1.baseState,baseQueue:R1.baseQueue,queue:R1.queue,next:null},Nw===null?z1.memoizedState=Nw=w:Nw=Nw.next=w}return Nw}function g$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function CZ(w){var z=hJ;return hJ+=1,V6===null&&(V6=KL()),w=HL(V6,w,z),z=z1,(Nw===null?z.memoizedState:Nw.next)===null&&(z=z.alternate,Y0.H=z!==null&&z.memoizedState!==null?HH:UH),w}function n6(w){if(w!==null&&typeof w==="object"){if(typeof w.then==="function")return CZ(w);if(w.$$typeof===v8)return s1(w)}throw Error("An unsupported type was passed to use(): "+String(w))}function $7(w){var z=null,Z=z1.updateQueue;if(Z!==null&&(z=Z.memoCache),z==null){var $=z1.alternate;$!==null&&($=$.updateQueue,$!==null&&($=$.memoCache,$!=null&&(z={data:$.data.map(function(G){return G.slice()}),index:0})))}if(z==null&&(z={data:[],index:0}),Z===null&&(Z=g$(),z1.updateQueue=Z),Z.memoCache=z,Z=z.data[z.index],Z===void 0||EJ)for(Z=z.data[z.index]=Array(w),$=0;$<w;$++)Z[$]=Ah;else Z.length!==w&&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.",Z.length,w);return z.index++,Z}function m5(w,z){return typeof z==="function"?z(w):z}function tW(w,z,Z){var $=W2();if(Z!==void 0){var G=Z(z);if(j7){C0(!0);try{Z(z)}finally{C0(!1)}}}else G=z;return $.memoizedState=$.baseState=G,w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:w,lastRenderedState:G},$.queue=w,w=w.dispatch=Uv.bind(null,z1,w),[$.memoizedState,w]}function N9(w){var z=b1();return eW(z,R1,w)}function eW(w,z,Z){var $=w.queue;if($===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");$.lastRenderedReducer=Z;var G=w.baseQueue,Q=$.pending;if(Q!==null){if(G!==null){var H=G.next;G.next=Q.next,Q.next=H}z.baseQueue!==G&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),z.baseQueue=G=Q,$.pending=null}if(Q=w.baseState,G===null)w.memoizedState=Q;else{z=G.next;var B=H=null,j=null,O=z,i=!1;do{var a=O.lane&-536870913;if(a!==O.lane?(Q1&a)===a:(L6&a)===a){var y=O.revertLane;if(y===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),a===V7&&(i=!0);else if((L6&y)===y){O=O.next,y===V7&&(i=!0);continue}else a={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},j===null?(B=j=a,H=Q):j=j.next=a,z1.lanes|=y,F4|=y;a=O.action,j7&&Z(Q,a),Q=O.hasEagerState?O.eagerState:Z(Q,a)}else y={lane:a,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},j===null?(B=j=y,H=Q):j=j.next=y,z1.lanes|=a,F4|=a;O=O.next}while(O!==null&&O!==z);if(j===null?H=Q:j.next=B,!_2(Q,w.memoizedState)&&(kw=!0,i&&(Z=o9,Z!==null)))throw Z;w.memoizedState=Q,w.baseState=H,w.baseQueue=j,$.lastRenderedState=Q}return G===null&&($.lanes=0),[w.memoizedState,$.dispatch]}function yZ(w){var z=b1(),Z=z.queue;if(Z===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Z.lastRenderedReducer=w;var{dispatch:$,pending:G}=Z,Q=z.memoizedState;if(G!==null){Z.pending=null;var H=G=G.next;do Q=w(Q,H.action),H=H.next;while(H!==G);_2(Q,z.memoizedState)||(kw=!0),z.memoizedState=Q,z.baseQueue===null&&(z.baseState=Q),Z.lastRenderedState=Q}return[Q,$]}function wK(w,z,Z){var $=z1,G=W2();if(F1){if(Z===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var Q=Z();zz||Q===Z()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),zz=!0)}else{if(Q=z(),zz||(Z=z(),_2(Q,Z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),zz=!0)),g1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Q1&127)!==0||DL($,z,Q)}return G.memoizedState=Q,Z={value:Q,getSnapshot:z},G.queue=Z,u$(xL.bind(null,$,Z,w),[w]),$.flags|=2048,A9(N5|L2,{destroy:void 0},TL.bind(null,$,Z,Q,z),null),Q}function f$(w,z,Z){var $=z1,G=b1(),Q=F1;if(Q){if(Z===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");Z=Z()}else if(Z=z(),!zz){var H=z();_2(Z,H)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),zz=!0)}if(H=!_2((R1||G).memoizedState,Z))G.memoizedState=Z,kw=!0;G=G.queue;var B=xL.bind(null,$,G,w);if(M2(2048,L2,B,[w]),G.getSnapshot!==z||H||Nw!==null&&Nw.memoizedState.tag&N5){if($.flags|=2048,A9(N5|L2,{destroy:void 0},TL.bind(null,$,G,Z,z),null),g1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Q||(L6&127)!==0||DL($,z,Z)}return Z}function DL(w,z,Z){w.flags|=16384,w={getSnapshot:z,value:Z},z=z1.updateQueue,z===null?(z=g$(),z1.updateQueue=z,z.stores=[w]):(Z=z.stores,Z===null?z.stores=[w]:Z.push(w))}function TL(w,z,Z,$){z.value=Z,z.getSnapshot=$,vL(z)&&hL(w)}function xL(w,z,Z){return Z(function(){vL(z)&&(q8(2,"updateSyncExternalStore()",w),hL(w))})}function vL(w){var z=w.getSnapshot;w=w.value;try{var Z=z();return!_2(w,Z)}catch($){return!0}}function hL(w){var z=w2(w,2);z!==null&&Zw(z,w,2)}function zK(w){var z=W2();if(typeof w==="function"){var Z=w;if(w=Z(),j7){C0(!0);try{Z()}finally{C0(!1)}}}return z.memoizedState=z.baseState=w,z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:m5,lastRenderedState:w},z}function ZK(w){w=zK(w);var z=w.queue,Z=aL.bind(null,z1,z);return z.dispatch=Z,[w.memoizedState,Z]}function JK(w){var z=W2();z.memoizedState=z.baseState=w;var Z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return z.queue=Z,z=VK.bind(null,z1,!0,Z),Z.dispatch=z,[w,z]}function EL(w,z){var Z=b1();return PL(Z,R1,w,z)}function PL(w,z,Z,$){return w.baseState=Z,eW(w,R1,typeof $==="function"?$:m5)}function IL(w,z){var Z=b1();if(R1!==null)return PL(Z,R1,w,z);return Z.baseState=w,[w,Z.queue.dispatch]}function Gv(w,z,Z,$,G){if(a$(w))throw Error("Cannot update form state while rendering.");if(w=z.action,w!==null){var Q={payload:G,action:w,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(H){Q.listeners.push(H)}};Y0.T!==null?Z(!0):Q.isTransition=!1,$(Q),Z=z.pending,Z===null?(Q.next=z.pending=Q,bL(z,Q)):(Q.next=Z.next,z.pending=Z.next=Q)}}function bL(w,z){var{action:Z,payload:$}=z,G=w.state;if(z.isTransition){var Q=Y0.T,H={};H._updatedFibers=new Set,Y0.T=H;try{var B=Z(G,$),j=Y0.S;j!==null&&j(H,B),SL(w,z,B)}catch(O){XK(w,z,O)}finally{Q!==null&&H.types!==null&&(Q.types!==null&&Q.types!==H.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."),Q.types=H.types),Y0.T=Q,Q===null&&H._updatedFibers&&(w=H._updatedFibers.size,H._updatedFibers.clear(),10<w&&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{H=Z(G,$),SL(w,z,H)}catch(O){XK(w,z,O)}}function SL(w,z,Z){Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?(Y0.asyncTransitions++,Z.then(r$,r$),Z.then(function($){CL(w,z,$)},function($){return XK(w,z,$)}),z.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.")):CL(w,z,Z)}function CL(w,z,Z){z.status="fulfilled",z.value=Z,yL(z),w.state=Z,z=w.pending,z!==null&&(Z=z.next,Z===z?w.pending=null:(Z=Z.next,z.next=Z,bL(w,Z)))}function XK(w,z,Z){var $=w.pending;if(w.pending=null,$!==null){$=$.next;do z.status="rejected",z.reason=Z,yL(z),z=z.next;while(z!==$)}w.action=null}function yL(w){w=w.listeners;for(var z=0;z<w.length;z++)(0,w[z])()}function RL(w,z){return z}function k9(w,z){if(F1){var Z=g1.formState;if(Z!==null){w:{var $=z1;if(F1){if(l1){z:{var G=l1;for(var Q=L5;G.nodeType!==8;){if(!Q){G=null;break z}if(G=p2(G.nextSibling),G===null){G=null;break z}}Q=G.data,G=Q===CH||Q===AA?G:null}if(G){l1=p2(G.nextSibling),$=G.data===CH;break w}}c6($)}$=!1}$&&(z=Z[0])}}return Z=W2(),Z.memoizedState=Z.baseState=z,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:RL,lastRenderedState:z},Z.queue=$,Z=aL.bind(null,z1,$),$.dispatch=Z,$=zK(!1),Q=VK.bind(null,z1,!1,$.queue),$=W2(),G={state:z,dispatch:null,action:w,pending:null},$.queue=G,Z=Gv.bind(null,z1,G,Q,Z),G.dispatch=Z,$.memoizedState=w,[z,Z,!1]}function m$(w){var z=b1();return gL(z,R1,w)}function gL(w,z,Z){if(z=eW(w,z,RL)[0],w=N9(m5)[0],typeof z==="object"&&z!==null&&typeof z.then==="function")try{var $=CZ(z)}catch(H){if(H===n9)throw p3;throw H}else $=z;z=b1();var G=z.queue,Q=G.dispatch;return Z!==z.memoizedState&&(z1.flags|=2048,A9(N5|L2,{destroy:void 0},Qv.bind(null,G,Z),null)),[$,Q,w]}function Qv(w,z){w.action=z}function d$(w){var z=b1(),Z=R1;if(Z!==null)return gL(z,Z,w);b1(),z=z.memoizedState,Z=b1();var $=Z.queue.dispatch;return Z.memoizedState=w,[z,$,!1]}function A9(w,z,Z,$){return w={tag:w,create:Z,deps:$,inst:z,next:null},z=z1.updateQueue,z===null&&(z=g$(),z1.updateQueue=z),Z=z.lastEffect,Z===null?z.lastEffect=w.next=w:($=Z.next,Z.next=w,w.next=$,z.lastEffect=w),w}function $K(w){var z=W2();return w={current:w},z.memoizedState=w}function Y7(w,z,Z,$){var G=W2();z1.flags|=w,G.memoizedState=A9(N5|z,{destroy:void 0},Z,$===void 0?null:$)}function M2(w,z,Z,$){var G=b1();$=$===void 0?null:$;var Q=G.memoizedState.inst;R1!==null&&$!==null&&iW($,R1.memoizedState.deps)?G.memoizedState=A9(z,Q,Z,$):(z1.flags|=w,G.memoizedState=A9(N5|z,Q,Z,$))}function u$(w,z){(z1.mode&c5)!==w1?Y7(276826112,L2,w,z):Y7(8390656,L2,w,z)}function Wv(w){z1.flags|=4;var z=z1.updateQueue;if(z===null)z=g$(),z1.updateQueue=z,z.events=[w];else{var Z=z.events;Z===null?z.events=[w]:Z.push(w)}}function YK(w){var z=W2(),Z={impl:w};return z.memoizedState=Z,function(){if((M1&bw)!==dw)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function p$(w){var z=b1().memoizedState;return Wv({ref:z,nextImpl:w}),function(){if((M1&bw)!==dw)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return z.impl.apply(void 0,arguments)}}function GK(w,z){var Z=4194308;return(z1.mode&c5)!==w1&&(Z|=134217728),Y7(Z,s2,w,z)}function fL(w,z){if(typeof z==="function"){w=w();var Z=z(w);return function(){typeof Z==="function"?Z():z(null)}}if(z!==null&&z!==void 0)return z.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(z).join(", ")+"}"),w=w(),z.current=w,function(){z.current=null}}function QK(w,z,Z){typeof z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",z!==null?typeof z:"null"),Z=Z!==null&&Z!==void 0?Z.concat([w]):null;var $=4194308;(z1.mode&c5)!==w1&&($|=134217728),Y7($,s2,fL.bind(null,z,w),Z)}function c$(w,z,Z){typeof z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",z!==null?typeof z:"null"),Z=Z!==null&&Z!==void 0?Z.concat([w]):null,M2(4,s2,fL.bind(null,z,w),Z)}function WK(w,z){return W2().memoizedState=[w,z===void 0?null:z],w}function l$(w,z){var Z=b1();z=z===void 0?null:z;var $=Z.memoizedState;if(z!==null&&iW(z,$[1]))return $[0];return Z.memoizedState=[w,z],w}function KK(w,z){var Z=W2();z=z===void 0?null:z;var $=w();if(j7){C0(!0);try{w()}finally{C0(!1)}}return Z.memoizedState=[$,z],$}function i$(w,z){var Z=b1();z=z===void 0?null:z;var $=Z.memoizedState;if(z!==null&&iW(z,$[1]))return $[0];if($=w(),j7){C0(!0);try{w()}finally{C0(!1)}}return Z.memoizedState=[$,z],$}function UK(w,z){var Z=W2();return HK(Z,w,z)}function mL(w,z){var Z=b1();return uL(Z,R1.memoizedState,w,z)}function dL(w,z){var Z=b1();return R1===null?HK(Z,w,z):uL(Z,R1.memoizedState,w,z)}function HK(w,z,Z){if(Z===void 0||(L6&1073741824)!==0&&(Q1&261930)===0)return w.memoizedState=z;return w.memoizedState=Z,w=pV(),z1.lanes|=w,F4|=w,Z}function uL(w,z,Z,$){if(_2(Z,z))return Z;if(e9.current!==null)return w=HK(w,Z,$),_2(w,z)||(kw=!0),w;if((L6&42)===0||(L6&1073741824)!==0&&(Q1&261930)===0)return kw=!0,w.memoizedState=Z;return w=pV(),z1.lanes|=w,F4|=w,z}function r$(){Y0.asyncTransitions--}function pL(w,z,Z,$,G){var Q=I1.p;I1.p=Q!==0&&Q<p5?Q:p5;var H=Y0.T,B={};B._updatedFibers=new Set,Y0.T=B,VK(w,!1,z,Z);try{var j=G(),O=Y0.S;if(O!==null&&O(B,j),j!==null&&typeof j==="object"&&typeof j.then==="function"){Y0.asyncTransitions++,j.then(r$,r$);var i=Xv(j,$);RZ(w,z,i,u2(w))}else RZ(w,z,$,u2(w))}catch(a){RZ(w,z,{then:function(){},status:"rejected",reason:a},u2(w))}finally{I1.p=Q,H!==null&&B.types!==null&&(H.types!==null&&H.types!==B.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."),H.types=B.types),Y0.T=H,H===null&&B._updatedFibers&&(w=B._updatedFibers.size,B._updatedFibers.clear(),10<w&&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 _K(w,z,Z,$){if(w.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var G=cL(w).queue;Zv(w),pL(w,G,z,b7,Z===null?F:function(){return lL(w),Z($)})}function cL(w){var z=w.memoizedState;if(z!==null)return z;z={memoizedState:b7,baseState:b7,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:m5,lastRenderedState:b7},next:null};var Z={};return z.next={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:m5,lastRenderedState:Z},next:null},w.memoizedState=z,w=w.alternate,w!==null&&(w.memoizedState=z),z}function lL(w){Y0.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var z=cL(w);z.next===null&&(z=w.alternate.memoizedState),RZ(w,z.next.queue,{},u2(w))}function qK(){var w=zK(!1);return w=pL.bind(null,z1,w.queue,!0,!1),W2().memoizedState=w,[!1,w]}function iL(){var w=N9(m5)[0],z=b1().memoizedState;return[typeof w==="boolean"?w:CZ(w),z]}function rL(){var w=yZ(m5)[0],z=b1().memoizedState;return[typeof w==="boolean"?w:CZ(w),z]}function G7(){return s1(iJ)}function BK(){var w=W2(),z=g1.identifierPrefix;if(F1){var Z=U6,$=K6;Z=($&~(1<<32-K2($)-1)).toString(32)+Z,z="_"+z+"R_"+Z,Z=a3++,0<Z&&(z+="H"+Z.toString(32)),z+="_"}else Z=uE++,z="_"+z+"r_"+Z.toString(32)+"_";return w.memoizedState=z}function LK(){return W2().memoizedState=Kv.bind(null,z1)}function Kv(w,z){for(var Z=w.return;Z!==null;){switch(Z.tag){case 24:case 3:var $=u2(Z),G=r6($),Q=a6(Z,G,$);Q!==null&&(q8($,"refresh()",w),Zw(Q,Z,$),IZ(Q,Z,$)),w=yW(),z!==null&&z!==void 0&&Q!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:w};return}Z=Z.return}}function Uv(w,z,Z){var $=arguments;typeof $[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()."),$=u2(w);var G={lane:$,revertLane:0,gesture:null,action:Z,hasEagerState:!1,eagerState:null,next:null};a$(w)?sL(z,G):(G=OW(w,z,G,$),G!==null&&(q8($,"dispatch()",w),Zw(G,w,$),oL(G,z,$)))}function aL(w,z,Z){var $=arguments;typeof $[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()."),$=u2(w),RZ(w,z,Z,$)&&q8($,"setState()",w)}function RZ(w,z,Z,$){var G={lane:$,revertLane:0,gesture:null,action:Z,hasEagerState:!1,eagerState:null,next:null};if(a$(w))sL(z,G);else{var Q=w.alternate;if(w.lanes===0&&(Q===null||Q.lanes===0)&&(Q=z.lastRenderedReducer,Q!==null)){var H=Y0.H;Y0.H=i5;try{var B=z.lastRenderedState,j=Q(B,Z);if(G.hasEagerState=!0,G.eagerState=j,_2(j,B))return k$(w,z,G,0),g1===null&&N$(),!1}catch(O){}finally{Y0.H=H}}if(Z=OW(w,z,G,$),Z!==null)return Zw(Z,w,$),oL(Z,z,$),!0}return!1}function VK(w,z,Z,$){if(Y0.T===null&&V7===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."),$={lane:2,revertLane:rK(),gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null},a$(w)){if(z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else z=OW(w,Z,$,2),z!==null&&(q8(2,"setOptimistic()",w),Zw(z,w,2))}function a$(w){var z=w.alternate;return w===z1||z!==null&&z===z1}function sL(w,z){Zz=r3=!0;var Z=w.pending;Z===null?z.next=z:(z.next=Z.next,Z.next=z),w.pending=z}function oL(w,z,Z){if((Z&4194048)!==0){var $=z.lanes;$&=w.pendingLanes,Z|=$,z.lanes=Z,Lw(w,Z)}}function FK(w){if(w!==null&&typeof w!=="function"){var z=String(w);rk.has(z)||(rk.add(z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",w))}}function NK(w,z,Z,$){var G=w.memoizedState,Q=Z($,G);if(w.mode&Z2){C0(!0);try{Q=Z($,G)}finally{C0(!1)}}Q===void 0&&(z=S(z)||"Component",pk.has(z)||(pk.add(z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",z))),G=Q===null||Q===void 0?G:H1({},G,Q),w.memoizedState=G,w.lanes===0&&(w.updateQueue.baseState=G)}function nL(w,z,Z,$,G,Q,H){var B=w.stateNode;if(typeof B.shouldComponentUpdate==="function"){if(Z=B.shouldComponentUpdate($,Q,H),w.mode&Z2){C0(!0);try{Z=B.shouldComponentUpdate($,Q,H)}finally{C0(!1)}}return Z===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",S(z)||"Component"),Z}return z.prototype&&z.prototype.isPureReactComponent?!DZ(Z,$)||!DZ(G,Q):!0}function tL(w,z,Z,$){var G=z.state;typeof z.componentWillReceiveProps==="function"&&z.componentWillReceiveProps(Z,$),typeof z.UNSAFE_componentWillReceiveProps==="function"&&z.UNSAFE_componentWillReceiveProps(Z,$),z.state!==G&&(w=d(w)||"Component",gk.has(w)||(gk.add(w),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",w)),_H.enqueueReplaceState(z,z.state,null))}function Q7(w,z){var Z=z;if("ref"in z){Z={};for(var $ in z)$!=="ref"&&(Z[$]=z[$])}if(w=w.defaultProps){Z===z&&(Z=H1({},Z));for(var G in w)Z[G]===void 0&&(Z[G]=w[G])}return Z}function eL(w){cU(w),console.warn(`%s
|
|
116
|
+
|
|
117
|
+
%s
|
|
118
|
+
`,Jz?"An error occurred in the <"+Jz+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
119
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function wV(w){var z=Jz?"The above error occurred in the <"+Jz+"> component.":"The above error occurred in one of your React components.",Z="React will try to recreate this component tree from scratch using the error boundary you provided, "+((qH||"Anonymous")+".");if(typeof w==="object"&&w!==null&&typeof w.environmentName==="string"){var $=w.environmentName;w=[`%o
|
|
120
|
+
|
|
121
|
+
%s
|
|
122
|
+
|
|
123
|
+
%s
|
|
124
|
+
`,w,z,Z].slice(0),typeof w[0]==="string"?w.splice(0,1,hA+" "+w[0],EA,NY+$+NY,PA):w.splice(0,0,hA,EA,NY+$+NY,PA),w.unshift(console),$=WP.apply(console.error,w),$()}else console.error(`%o
|
|
125
|
+
|
|
126
|
+
%s
|
|
127
|
+
|
|
128
|
+
%s
|
|
129
|
+
`,w,z,Z)}function zV(w){cU(w)}function s$(w,z){try{Jz=z.source?d(z.source):null,qH=null;var Z=z.value;if(Y0.actQueue!==null)Y0.thrownErrors.push(Z);else{var $=w.onUncaughtError;$(Z,{componentStack:z.stack})}}catch(G){setTimeout(function(){throw G})}}function ZV(w,z,Z){try{Jz=Z.source?d(Z.source):null,qH=d(z);var $=w.onCaughtError;$(Z.value,{componentStack:Z.stack,errorBoundary:z.tag===1?z.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function kK(w,z,Z){return Z=r6(Z),Z.tag=GH,Z.payload={element:null},Z.callback=function(){n(z.source,s$,w,z)},Z}function AK(w){return w=r6(w),w.tag=GH,w}function jK(w,z,Z,$){var G=Z.type.getDerivedStateFromError;if(typeof G==="function"){var Q=$.value;w.payload=function(){return G(Q)},w.callback=function(){sB(Z),n($.source,ZV,z,Z,$)}}var H=Z.stateNode;H!==null&&typeof H.componentDidCatch==="function"&&(w.callback=function(){sB(Z),n($.source,ZV,z,Z,$),typeof G!=="function"&&(k4===null?k4=new Set([this]):k4.add(this)),gE(this,$),typeof G==="function"||(Z.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",d(Z)||"Unknown")})}function Hv(w,z,Z,$,G){if(Z.flags|=32768,P8&&lZ(w,G),$!==null&&typeof $==="object"&&typeof $.then==="function"){if(z=Z.alternate,z!==null&&V9(z,Z,G,!0),F1&&(S8=!0),Z=a2.current,Z!==null){switch(Z.tag){case 31:case 13:return F5===null?X3():Z.alternate===null&&e1===k6&&(e1=n3),Z.flags&=-257,Z.flags|=65536,Z.lanes=G,$===c3?Z.flags|=16384:(z=Z.updateQueue,z===null?Z.updateQueue=new Set([$]):z.add($),pK(w,$,G)),!1;case 22:return Z.flags|=65536,$===c3?Z.flags|=16384:(z=Z.updateQueue,z===null?(z={transitions:null,markerInstances:null,retryQueue:new Set([$])},Z.updateQueue=z):(Z=z.retryQueue,Z===null?z.retryQueue=new Set([$]):Z.add($)),pK(w,$,G)),!1}throw Error("Unexpected Suspense handler tag ("+Z.tag+"). This is a bug in React.")}return pK(w,$,G),X3(),!1}if(F1)return S8=!0,z=a2.current,z!==null?((z.flags&65536)===0&&(z.flags|=256),z.flags|=65536,z.lanes=G,$!==oU&&xZ(g2(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:$}),Z))):($!==oU&&xZ(g2(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:$}),Z)),w=w.current.alternate,w.flags|=65536,G&=-G,w.lanes|=G,$=g2($,Z),G=kK(w.stateNode,$,G),C$(w,G),e1!==L4&&(e1=M7)),!1;var Q=g2(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:$}),Z);if(RJ===null?RJ=[Q]:RJ.push(Q),e1!==L4&&(e1=M7),z===null)return!0;$=g2($,Z),Z=z;do{switch(Z.tag){case 3:return Z.flags|=65536,w=G&-G,Z.lanes|=w,w=kK(Z.stateNode,$,w),C$(Z,w),!1;case 1:if(z=Z.type,Q=Z.stateNode,(Z.flags&128)===0&&(typeof z.getDerivedStateFromError==="function"||Q!==null&&typeof Q.componentDidCatch==="function"&&(k4===null||!k4.has(Q))))return Z.flags|=65536,G&=-G,Z.lanes|=G,G=AK(G),jK(G,w,Z,$),C$(Z,G),!1}Z=Z.return}while(Z!==null);return!1}function rw(w,z,Z,$){z.child=w===null?xk(z,null,Z,$):A7(z,w.child,Z,$)}function JV(w,z,Z,$,G){Z=Z.render;var Q=z.ref;if("ref"in $){var H={};for(var B in $)B!=="ref"&&(H[B]=$[B])}else H=$;if(J7(z),$=rW(w,z,Z,H,Q,G),B=sW(),w!==null&&!kw)return oW(w,z,G),X6(w,z,G);return F1&&B&&EW(z),z.flags|=1,rw(w,z,$,G),z.child}function XV(w,z,Z,$,G){if(w===null){var Q=Z.type;if(typeof Q==="function"&&!TW(Q)&&Q.defaultProps===void 0&&Z.compare===null)return Z=e4(Q),z.tag=15,z.type=Z,OK(z,Q),$V(w,z,Z,$,G);return w=xW(Z.type,null,$,z,z.mode,G),w.ref=z.ref,w.return=z,z.child=w}if(Q=w.child,!EK(w,G)){var H=Q.memoizedProps;if(Z=Z.compare,Z=Z!==null?Z:DZ,Z(H,$)&&w.ref===z.ref)return X6(w,z,G)}return z.flags|=1,w=w6(Q,$),w.ref=z.ref,w.return=z,z.child=w}function $V(w,z,Z,$,G){if(w!==null){var Q=w.memoizedProps;if(DZ(Q,$)&&w.ref===z.ref&&z.type===w.type)if(kw=!1,z.pendingProps=$=Q,EK(w,G))(w.flags&131072)!==0&&(kw=!0);else return z.lanes=w.lanes,X6(w,z,G)}return MK(w,z,Z,$,G)}function YV(w,z,Z,$){var G=$.children,Q=w!==null?w.memoizedState:null;if(w===null&&z.stateNode===null&&(z.stateNode={_visibility:HJ,_pendingMarkers:null,_retryCache:null,_transitions:null}),$.mode==="hidden"){if((z.flags&128)!==0){if(Q=Q!==null?Q.baseLanes|Z:Z,w!==null){$=z.child=w.child;for(G=0;$!==null;)G=G|$.lanes|$.childLanes,$=$.sibling;$=G&~Q}else $=0,z.child=null;return GV(w,z,Q,Z,$)}if((Z&536870912)!==0)z.memoizedState={baseLanes:0,cachePool:null},w!==null&&h$(z,Q!==null?Q.cachePool:null),Q!==null?jL(z,Q):pW(z),ML(z);else return $=z.lanes=536870912,GV(w,z,Q!==null?Q.baseLanes|Z:Z,Z,$)}else Q!==null?(h$(z,Q.cachePool),jL(z,Q),o6(z),z.memoizedState=null):(w!==null&&h$(z,null),pW(z),o6(z));return rw(w,z,G,Z),z.child}function gZ(w,z){return w!==null&&w.tag===22||z.stateNode!==null||(z.stateNode={_visibility:HJ,_pendingMarkers:null,_retryCache:null,_transitions:null}),z.sibling}function GV(w,z,Z,$,G){var Q=fW();return Q=Q===null?null:{parent:Vw._currentValue,pool:Q},z.memoizedState={baseLanes:Z,cachePool:Q},w!==null&&h$(z,null),pW(z),ML(z),w!==null&&V9(w,z,$,!0),z.childLanes=G,null}function o$(w,z){var Z=z.hidden;return Z!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
130
|
+
- <Activity %s>
|
|
131
|
+
+ <Activity %s>`,Z===!0?"hidden":Z===!1?"hidden={false}":"hidden={...}",Z?'mode="hidden"':'mode="visible"'),z=t$({mode:z.mode,children:z.children},w.mode),z.ref=w.ref,w.child=z,z.return=w,z}function QV(w,z,Z){return A7(z,w.child,null,Z),w=o$(z,z.pendingProps),w.flags|=2,d2(z),z.memoizedState=null,w}function _v(w,z,Z){var $=z.pendingProps,G=(z.flags&128)!==0;if(z.flags&=-129,w===null){if(F1){if($.mode==="hidden")return w=o$(z,$),z.lanes=536870912,gZ(null,w);if(lW(z),(w=l1)?(Z=bF(w,L5),Z=Z!==null&&Z.data===h7?Z:null,Z!==null&&($={dehydrated:Z,treeContext:wL(),retryLane:536870912,hydrationErrors:null},z.memoizedState=$,$=tB(Z),$.return=z,z.child=$,ow=z,l1=null)):Z=null,Z===null)throw M$(z,w),c6(z);return z.lanes=536870912,null}return o$(z,$)}var Q=w.memoizedState;if(Q!==null){var H=Q.dehydrated;if(lW(z),G)if(z.flags&256)z.flags&=-257,z=QV(w,z,Z);else if(z.memoizedState!==null)z.child=w.child,z.flags|=128,z=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(ZL(),(Z&536870912)!==0&&J3(z),kw||V9(w,z,Z,!1),G=(Z&w.childLanes)!==0,kw||G){if($=g1,$!==null&&(H=Uw($,Z),H!==0&&H!==Q.retryLane))throw Q.retryLane=H,w2(w,H),Zw($,w,H),BH;X3(),z=QV(w,z,Z)}else w=Q.treeContext,l1=p2(H.nextSibling),ow=z,F1=!0,W4=null,S8=!1,r2=null,L5=!1,w!==null&&zL(z,w),z=o$(z,$),z.flags|=4096;return z}return Q=w.child,$={mode:$.mode,children:$.children},(Z&536870912)!==0&&(Z&w.lanes)!==0&&J3(z),w=w6(Q,$),w.ref=z.ref,z.child=w,w.return=z,w}function n$(w,z){var Z=z.ref;if(Z===null)w!==null&&w.ref!==null&&(z.flags|=4194816);else{if(typeof Z!=="function"&&typeof Z!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(w===null||w.ref!==Z)z.flags|=4194816}}function MK(w,z,Z,$,G){if(Z.prototype&&typeof Z.prototype.render==="function"){var Q=S(Z)||"Unknown";ak[Q]||(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.",Q,Q),ak[Q]=!0)}if(z.mode&Z2&&l5.recordLegacyContextWarning(z,null),w===null&&(OK(z,z.type),Z.contextTypes&&(Q=S(Z)||"Unknown",ok[Q]||(ok[Q]=!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)",Q)))),J7(z),Z=rW(w,z,Z,$,void 0,G),$=sW(),w!==null&&!kw)return oW(w,z,G),X6(w,z,G);return F1&&$&&EW(z),z.flags|=1,rw(w,z,Z,G),z.child}function WV(w,z,Z,$,G,Q){if(J7(z),F6=-1,EJ=w!==null&&w.type!==z.type,z.updateQueue=null,Z=aW(z,$,Z,G),OL(w,z),$=sW(),w!==null&&!kw)return oW(w,z,Q),X6(w,z,Q);return F1&&$&&EW(z),z.flags|=1,rw(w,z,Z,Q),z.child}function KV(w,z,Z,$,G){switch(q(z)){case!1:var Q=z.stateNode,H=new z.type(z.memoizedProps,Q.context).state;Q.updater.enqueueSetState(Q,H,null);break;case!0:z.flags|=128,z.flags|=65536,Q=Error("Simulated error coming from DevTools");var B=G&-G;if(z.lanes|=B,H=g1,H===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B=AK(B),jK(B,H,z,g2(Q,z)),C$(z,B)}if(J7(z),z.stateNode===null){if(H=Q4,Q=Z.contextType,"contextType"in Z&&Q!==null&&(Q===void 0||Q.$$typeof!==v8)&&!ik.has(Z)&&(ik.add(Z),B=Q===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 Q!=="object"?" However, it is set to a "+typeof Q+".":Q.$$typeof===LU?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(Q).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",S(Z)||"Component",B)),typeof Q==="object"&&Q!==null&&(H=s1(Q)),Q=new Z($,H),z.mode&Z2){C0(!0);try{Q=new Z($,H)}finally{C0(!1)}}if(H=z.memoizedState=Q.state!==null&&Q.state!==void 0?Q.state:null,Q.updater=_H,z.stateNode=Q,Q._reactInternals=z,Q._reactInternalInstance=Rk,typeof Z.getDerivedStateFromProps==="function"&&H===null&&(H=S(Z)||"Component",fk.has(H)||(fk.add(H),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.",H,Q.state===null?"null":"undefined",H))),typeof Z.getDerivedStateFromProps==="function"||typeof Q.getSnapshotBeforeUpdate==="function"){var j=B=H=null;if(typeof Q.componentWillMount==="function"&&Q.componentWillMount.__suppressDeprecationWarning!==!0?H="componentWillMount":typeof Q.UNSAFE_componentWillMount==="function"&&(H="UNSAFE_componentWillMount"),typeof Q.componentWillReceiveProps==="function"&&Q.componentWillReceiveProps.__suppressDeprecationWarning!==!0?B="componentWillReceiveProps":typeof Q.UNSAFE_componentWillReceiveProps==="function"&&(B="UNSAFE_componentWillReceiveProps"),typeof Q.componentWillUpdate==="function"&&Q.componentWillUpdate.__suppressDeprecationWarning!==!0?j="componentWillUpdate":typeof Q.UNSAFE_componentWillUpdate==="function"&&(j="UNSAFE_componentWillUpdate"),H!==null||B!==null||j!==null){Q=S(Z)||"Component";var O=typeof Z.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";dk.has(Q)||(dk.add(Q),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
132
|
+
|
|
133
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
134
|
+
|
|
135
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
136
|
+
https://react.dev/link/unsafe-component-lifecycles`,Q,O,H!==null?`
|
|
137
|
+
`+H:"",B!==null?`
|
|
138
|
+
`+B:"",j!==null?`
|
|
139
|
+
`+j:""))}}Q=z.stateNode,H=S(Z)||"Component",Q.render||(Z.prototype&&typeof Z.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",H):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",H)),!Q.getInitialState||Q.getInitialState.isReactClassApproved||Q.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?",H),Q.getDefaultProps&&!Q.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.",H),Q.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",H),Z.childContextTypes&&!lk.has(Z)&&(lk.add(Z),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",H)),Z.contextTypes&&!ck.has(Z)&&(ck.add(Z),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)",H)),typeof Q.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.",H),Z.prototype&&Z.prototype.isPureReactComponent&&typeof Q.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",S(Z)||"A pure component"),typeof Q.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",H),typeof Q.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().",H),typeof Q.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",H),typeof Q.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",H),B=Q.props!==$,Q.props!==void 0&&B&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",H),Q.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.",H,H),typeof Q.getSnapshotBeforeUpdate!=="function"||typeof Q.componentDidUpdate==="function"||mk.has(Z)||(mk.add(Z),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",S(Z))),typeof Q.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",H),typeof Q.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",H),typeof Z.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",H),(B=Q.state)&&(typeof B!=="object"||Pw(B))&&console.error("%s.state: must be set to an object or null",H),typeof Q.getChildContext==="function"&&typeof Z.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",H),Q=z.stateNode,Q.props=$,Q.state=z.memoizedState,Q.refs={},dW(z),H=Z.contextType,Q.context=typeof H==="object"&&H!==null?s1(H):Q4,Q.state===$&&(H=S(Z)||"Component",uk.has(H)||(uk.add(H),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.",H))),z.mode&Z2&&l5.recordLegacyContextWarning(z,Q),l5.recordUnsafeLifecycleWarnings(z,Q),Q.state=z.memoizedState,H=Z.getDerivedStateFromProps,typeof H==="function"&&(NK(z,Z,H,$),Q.state=z.memoizedState),typeof Z.getDerivedStateFromProps==="function"||typeof Q.getSnapshotBeforeUpdate==="function"||typeof Q.UNSAFE_componentWillMount!=="function"&&typeof Q.componentWillMount!=="function"||(H=Q.state,typeof Q.componentWillMount==="function"&&Q.componentWillMount(),typeof Q.UNSAFE_componentWillMount==="function"&&Q.UNSAFE_componentWillMount(),H!==Q.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d(z)||"Component"),_H.enqueueReplaceState(Q,Q.state,null)),SZ(z,$,Q,G),bZ(),Q.state=z.memoizedState),typeof Q.componentDidMount==="function"&&(z.flags|=4194308),(z.mode&c5)!==w1&&(z.flags|=134217728),Q=!0}else if(w===null){Q=z.stateNode;var i=z.memoizedProps;B=Q7(Z,i),Q.props=B;var a=Q.context;j=Z.contextType,H=Q4,typeof j==="object"&&j!==null&&(H=s1(j)),O=Z.getDerivedStateFromProps,j=typeof O==="function"||typeof Q.getSnapshotBeforeUpdate==="function",i=z.pendingProps!==i,j||typeof Q.UNSAFE_componentWillReceiveProps!=="function"&&typeof Q.componentWillReceiveProps!=="function"||(i||a!==H)&&tL(z,Q,$,H),B4=!1;var y=z.memoizedState;Q.state=y,SZ(z,$,Q,G),bZ(),a=z.memoizedState,i||y!==a||B4?(typeof O==="function"&&(NK(z,Z,O,$),a=z.memoizedState),(B=B4||nL(z,Z,B,$,y,a,H))?(j||typeof Q.UNSAFE_componentWillMount!=="function"&&typeof Q.componentWillMount!=="function"||(typeof Q.componentWillMount==="function"&&Q.componentWillMount(),typeof Q.UNSAFE_componentWillMount==="function"&&Q.UNSAFE_componentWillMount()),typeof Q.componentDidMount==="function"&&(z.flags|=4194308),(z.mode&c5)!==w1&&(z.flags|=134217728)):(typeof Q.componentDidMount==="function"&&(z.flags|=4194308),(z.mode&c5)!==w1&&(z.flags|=134217728),z.memoizedProps=$,z.memoizedState=a),Q.props=$,Q.state=a,Q.context=H,Q=B):(typeof Q.componentDidMount==="function"&&(z.flags|=4194308),(z.mode&c5)!==w1&&(z.flags|=134217728),Q=!1)}else{Q=z.stateNode,uW(w,z),H=z.memoizedProps,j=Q7(Z,H),Q.props=j,O=z.pendingProps,y=Q.context,a=Z.contextType,B=Q4,typeof a==="object"&&a!==null&&(B=s1(a)),i=Z.getDerivedStateFromProps,(a=typeof i==="function"||typeof Q.getSnapshotBeforeUpdate==="function")||typeof Q.UNSAFE_componentWillReceiveProps!=="function"&&typeof Q.componentWillReceiveProps!=="function"||(H!==O||y!==B)&&tL(z,Q,$,B),B4=!1,y=z.memoizedState,Q.state=y,SZ(z,$,Q,G),bZ();var Z0=z.memoizedState;H!==O||y!==Z0||B4||w!==null&&w.dependencies!==null&&D$(w.dependencies)?(typeof i==="function"&&(NK(z,Z,i,$),Z0=z.memoizedState),(j=B4||nL(z,Z,j,$,y,Z0,B)||w!==null&&w.dependencies!==null&&D$(w.dependencies))?(a||typeof Q.UNSAFE_componentWillUpdate!=="function"&&typeof Q.componentWillUpdate!=="function"||(typeof Q.componentWillUpdate==="function"&&Q.componentWillUpdate($,Z0,B),typeof Q.UNSAFE_componentWillUpdate==="function"&&Q.UNSAFE_componentWillUpdate($,Z0,B)),typeof Q.componentDidUpdate==="function"&&(z.flags|=4),typeof Q.getSnapshotBeforeUpdate==="function"&&(z.flags|=1024)):(typeof Q.componentDidUpdate!=="function"||H===w.memoizedProps&&y===w.memoizedState||(z.flags|=4),typeof Q.getSnapshotBeforeUpdate!=="function"||H===w.memoizedProps&&y===w.memoizedState||(z.flags|=1024),z.memoizedProps=$,z.memoizedState=Z0),Q.props=$,Q.state=Z0,Q.context=B,Q=j):(typeof Q.componentDidUpdate!=="function"||H===w.memoizedProps&&y===w.memoizedState||(z.flags|=4),typeof Q.getSnapshotBeforeUpdate!=="function"||H===w.memoizedProps&&y===w.memoizedState||(z.flags|=1024),Q=!1)}if(B=Q,n$(w,z),H=(z.flags&128)!==0,B||H){if(B=z.stateNode,R0(z),H&&typeof Z.getDerivedStateFromError!=="function")Z=null,q2=-1;else if(Z=_k(B),z.mode&Z2){C0(!0);try{_k(B)}finally{C0(!1)}}z.flags|=1,w!==null&&H?(z.child=A7(z,w.child,null,G),z.child=A7(z,null,Z,G)):rw(w,z,Z,G),z.memoizedState=B.state,w=z.child}else w=X6(w,z,G);return G=z.stateNode,Q&&G.props!==$&&(Xz||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",d(z)||"a component"),Xz=!0),w}function UV(w,z,Z,$){return Z7(),z.flags|=256,rw(w,z,Z,$),z.child}function OK(w,z){z&&z.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
140
|
+
%s.childContextTypes = ...`,z.displayName||z.name||"Component"),typeof z.getDerivedStateFromProps==="function"&&(w=S(z)||"Unknown",nk[w]||(console.error("%s: Function components do not support getDerivedStateFromProps.",w),nk[w]=!0)),typeof z.contextType==="object"&&z.contextType!==null&&(z=S(z)||"Unknown",sk[z]||(console.error("%s: Function components do not support contextType.",z),sk[z]=!0))}function DK(w){return{baseLanes:w,cachePool:WL()}}function TK(w,z,Z){return w=w!==null?w.childLanes&~Z:0,z&&(w|=v2),w}function HV(w,z,Z){var $,G=z.pendingProps;U(z)&&(z.flags|=128);var Q=!1,H=(z.flags&128)!==0;if(($=H)||($=w!==null&&w.memoizedState===null?!1:(Hw.current&vJ)!==0),$&&(Q=!0,z.flags&=-129),$=(z.flags&32)!==0,z.flags&=-33,w===null){if(F1){if(Q?s6(z):o6(z),(w=l1)?(Z=bF(w,L5),Z=Z!==null&&Z.data!==h7?Z:null,Z!==null&&($={dehydrated:Z,treeContext:wL(),retryLane:536870912,hydrationErrors:null},z.memoizedState=$,$=tB(Z),$.return=z,z.child=$,ow=z,l1=null)):Z=null,Z===null)throw M$(z,w),c6(z);return $U(Z)?z.lanes=32:z.lanes=536870912,null}var B=G.children;if(G=G.fallback,Q){o6(z);var j=z.mode;return B=t$({mode:"hidden",children:B},j),G=w7(G,j,Z,null),B.return=z,G.return=z,B.sibling=G,z.child=B,G=z.child,G.memoizedState=DK(Z),G.childLanes=TK(w,$,Z),z.memoizedState=LH,gZ(null,G)}return s6(z),xK(z,B)}var O=w.memoizedState;if(O!==null){var i=O.dehydrated;if(i!==null){if(H)z.flags&256?(s6(z),z.flags&=-257,z=vK(w,z,Z)):z.memoizedState!==null?(o6(z),z.child=w.child,z.flags|=128,z=null):(o6(z),B=G.fallback,j=z.mode,G=t$({mode:"visible",children:G.children},j),B=w7(B,j,Z,null),B.flags|=2,G.return=z,B.return=z,G.sibling=B,z.child=G,A7(z,w.child,null,Z),G=z.child,G.memoizedState=DK(Z),G.childLanes=TK(w,$,Z),z.memoizedState=LH,z=gZ(null,G));else if(s6(z),ZL(),(Z&536870912)!==0&&J3(z),$U(i)){if($=i.nextSibling&&i.nextSibling.dataset,$){B=$.dgst;var a=$.msg;j=$.stck;var y=$.cstck}Q=a,$=B,G=j,i=y,B=Q,j=i,B=B?Error(B):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),B.stack=G||"",B.digest=$,$=j===void 0?null:j,G={value:B,source:null,stack:$},typeof $==="string"&&sU.set(B,G),xZ(G),z=vK(w,z,Z)}else if(kw||V9(w,z,Z,!1),$=(Z&w.childLanes)!==0,kw||$){if($=g1,$!==null&&(G=Uw($,Z),G!==0&&G!==O.retryLane))throw O.retryLane=G,w2(w,G),Zw($,w,G),BH;XU(i)||X3(),z=vK(w,z,Z)}else XU(i)?(z.flags|=192,z.child=w.child,z=null):(w=O.treeContext,l1=p2(i.nextSibling),ow=z,F1=!0,W4=null,S8=!1,r2=null,L5=!1,w!==null&&zL(z,w),z=xK(z,G.children),z.flags|=4096);return z}}if(Q)return o6(z),B=G.fallback,j=z.mode,y=w.child,i=y.sibling,G=w6(y,{mode:"hidden",children:G.children}),G.subtreeFlags=y.subtreeFlags&65011712,i!==null?B=w6(i,B):(B=w7(B,j,Z,null),B.flags|=2),B.return=z,G.return=z,G.sibling=B,z.child=G,gZ(null,G),G=z.child,B=w.child.memoizedState,B===null?B=DK(Z):(j=B.cachePool,j!==null?(y=Vw._currentValue,j=j.parent!==y?{parent:y,pool:y}:j):j=WL(),B={baseLanes:B.baseLanes|Z,cachePool:j}),G.memoizedState=B,G.childLanes=TK(w,$,Z),z.memoizedState=LH,gZ(w.child,G);return O!==null&&(Z&62914560)===Z&&(Z&w.lanes)!==0&&J3(z),s6(z),Z=w.child,w=Z.sibling,Z=w6(Z,{mode:"visible",children:G.children}),Z.return=z,Z.sibling=null,w!==null&&($=z.deletions,$===null?(z.deletions=[w],z.flags|=16):$.push(w)),z.child=Z,z.memoizedState=null,Z}function xK(w,z){return z=t$({mode:"visible",children:z},w.mode),z.return=w,w.child=z}function t$(w,z){return w=k(22,w,null,z),w.lanes=0,w}function vK(w,z,Z){return A7(z,w.child,null,Z),w=xK(z,z.pendingProps.children),w.flags|=2,z.memoizedState=null,w}function _V(w,z,Z){w.lanes|=z;var $=w.alternate;$!==null&&($.lanes|=z),SW(w.return,z,Z)}function hK(w,z,Z,$,G,Q){var H=w.memoizedState;H===null?w.memoizedState={isBackwards:z,rendering:null,renderingStartTime:0,last:$,tail:Z,tailMode:G,treeForkCount:Q}:(H.isBackwards=z,H.rendering=null,H.renderingStartTime=0,H.last=$,H.tail=Z,H.tailMode=G,H.treeForkCount=Q)}function qV(w,z,Z){var $=z.pendingProps,G=$.revealOrder,Q=$.tail,H=$.children,B=Hw.current;if(($=(B&vJ)!==0)?(B=B&wz|vJ,z.flags|=128):B&=wz,u(Hw,B,z),B=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!tk[B])if(tk[B]=!0,G==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(G==="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 G==="string")switch(G.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.',G,G.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.',G,G.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G);if(B=Q==null?"null":Q,!o3[B])if(Q==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")o3[B]=!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".')}else Q!=="visible"&&Q!=="collapsed"&&Q!=="hidden"?(o3[B]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',Q)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(o3[B]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',Q));w:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&H!==void 0&&H!==null&&H!==!1)if(Pw(H)){for(B=0;B<H.length;B++)if(!NL(H[B],B))break w}else if(B=R(H),typeof B==="function"){if(B=B.call(H))for(var j=B.next(),O=0;!j.done;j=B.next()){if(!NL(j.value,O))break w;O++}}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?',G);if(rw(w,z,H,Z),F1?(p6(),H=_J):H=0,!$&&w!==null&&(w.flags&128)!==0)w:for(w=z.child;w!==null;){if(w.tag===13)w.memoizedState!==null&&_V(w,Z,z);else if(w.tag===19)_V(w,Z,z);else if(w.child!==null){w.child.return=w,w=w.child;continue}if(w===z)break w;for(;w.sibling===null;){if(w.return===null||w.return===z)break w;w=w.return}w.sibling.return=w.return,w=w.sibling}switch(G){case"forwards":Z=z.child;for(G=null;Z!==null;)w=Z.alternate,w!==null&&y$(w)===null&&(G=Z),Z=Z.sibling;Z=G,Z===null?(G=z.child,z.child=null):(G=Z.sibling,Z.sibling=null),hK(z,!1,G,Z,Q,H);break;case"backwards":case"unstable_legacy-backwards":Z=null,G=z.child;for(z.child=null;G!==null;){if(w=G.alternate,w!==null&&y$(w)===null){z.child=G;break}w=G.sibling,G.sibling=Z,Z=G,G=w}hK(z,!0,Z,null,Q,H);break;case"together":hK(z,!1,null,null,void 0,H);break;default:z.memoizedState=null}return z.child}function X6(w,z,Z){if(w!==null&&(z.dependencies=w.dependencies),q2=-1,F4|=z.lanes,(Z&z.childLanes)===0)if(w!==null){if(V9(w,z,Z,!1),(Z&z.childLanes)===0)return null}else return null;if(w!==null&&z.child!==w.child)throw Error("Resuming work not yet implemented.");if(z.child!==null){w=z.child,Z=w6(w,w.pendingProps),z.child=Z;for(Z.return=z;w.sibling!==null;)w=w.sibling,Z=Z.sibling=w6(w,w.pendingProps),Z.return=z;Z.sibling=null}return z.child}function EK(w,z){if((w.lanes&z)!==0)return!0;return w=w.dependencies,w!==null&&D$(w)?!0:!1}function qv(w,z,Z){switch(z.tag){case 3:r(z,z.stateNode.containerInfo),l6(z,Vw,w.memoizedState.cache),Z7();break;case 27:case 5:g(z);break;case 4:r(z,z.stateNode.containerInfo);break;case 10:l6(z,z.type,z.memoizedProps.value);break;case 12:(Z&z.childLanes)!==0&&(z.flags|=4),z.flags|=2048;var $=z.stateNode;$.effectDuration=-0,$.passiveEffectDuration=-0;break;case 31:if(z.memoizedState!==null)return z.flags|=128,lW(z),null;break;case 13:if($=z.memoizedState,$!==null){if($.dehydrated!==null)return s6(z),z.flags|=128,null;if((Z&z.child.childLanes)!==0)return HV(w,z,Z);return s6(z),w=X6(w,z,Z),w!==null?w.sibling:null}s6(z);break;case 19:var G=(w.flags&128)!==0;if($=(Z&z.childLanes)!==0,$||(V9(w,z,Z,!1),$=(Z&z.childLanes)!==0),G){if($)return qV(w,z,Z);z.flags|=128}if(G=z.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),u(Hw,Hw.current,z),$)break;else return null;case 22:return z.lanes=0,YV(w,z,Z,z.pendingProps);case 24:l6(z,Vw,w.memoizedState.cache)}return X6(w,z,Z)}function PK(w,z,Z){if(z._debugNeedsRemount&&w!==null){Z=xW(z.type,z.key,z.pendingProps,z._debugOwner||null,z.mode,z.lanes),Z._debugStack=z._debugStack,Z._debugTask=z._debugTask;var $=z.return;if($===null)throw Error("Cannot swap the root fiber.");if(w.alternate=null,z.alternate=null,Z.index=z.index,Z.sibling=z.sibling,Z.return=z.return,Z.ref=z.ref,Z._debugInfo=z._debugInfo,z===$.child)$.child=Z;else{var G=$.child;if(G===null)throw Error("Expected parent to have a child.");for(;G.sibling!==z;)if(G=G.sibling,G===null)throw Error("Expected to find the previous sibling.");G.sibling=Z}return z=$.deletions,z===null?($.deletions=[w],$.flags|=16):z.push(w),Z.flags|=2,Z}if(w!==null)if(w.memoizedProps!==z.pendingProps||z.type!==w.type)kw=!0;else{if(!EK(w,Z)&&(z.flags&128)===0)return kw=!1,qv(w,z,Z);kw=(w.flags&131072)!==0?!0:!1}else{if(kw=!1,$=F1)p6(),$=(z.flags&1048576)!==0;$&&($=z.index,p6(),eB(z,_J,$))}switch(z.lanes=0,z.tag){case 16:w:if($=z.pendingProps,w=i6(z.elementType),z.type=w,typeof w==="function")TW(w)?($=Q7(w,$),z.tag=1,z.type=w=e4(w),z=KV(null,z,w,$,Z)):(z.tag=0,OK(z,w),z.type=w=e4(w),z=MK(null,z,w,$,Z));else{if(w!==void 0&&w!==null){if(G=w.$$typeof,G===wJ){z.tag=11,z.type=w=DW(w),z=JV(null,z,w,$,Z);break w}else if(G===F3){z.tag=14,z=XV(null,z,w,$,Z);break w}}throw z="",w!==null&&typeof w==="object"&&w.$$typeof===c2&&(z=" Did you wrap a component in React.lazy() more than once?"),Z=S(w)||w,Error("Element type is invalid. Received a promise that resolves to: "+Z+". Lazy element type must resolve to a class or function."+z)}return z;case 0:return MK(w,z,z.type,z.pendingProps,Z);case 1:return $=z.type,G=Q7($,z.pendingProps),KV(w,z,$,G,Z);case 3:w:{if(r(z,z.stateNode.containerInfo),w===null)throw Error("Should have a current fiber. This is a bug in React.");$=z.pendingProps;var Q=z.memoizedState;G=Q.element,uW(w,z),SZ(z,$,null,Z);var H=z.memoizedState;if($=H.cache,l6(z,Vw,$),$!==Q.cache&&CW(z,[Vw],Z,!0),bZ(),$=H.element,Q.isDehydrated)if(Q={element:$,isDehydrated:!1,cache:H.cache},z.updateQueue.baseState=Q,z.memoizedState=Q,z.flags&256){z=UV(w,z,$,Z);break w}else if($!==G){G=g2(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),z),xZ(G),z=UV(w,z,$,Z);break w}else{switch(w=z.stateNode.containerInfo,w.nodeType){case 9:w=w.body;break;default:w=w.nodeName==="HTML"?w.ownerDocument.body:w}l1=p2(w.firstChild),ow=z,F1=!0,W4=null,S8=!1,r2=null,L5=!0,Z=xk(z,null,$,Z);for(z.child=Z;Z;)Z.flags=Z.flags&-3|4096,Z=Z.sibling}else{if(Z7(),$===G){z=X6(w,z,Z);break w}rw(w,z,$,Z)}z=z.child}return z;case 26:return n$(w,z),w===null?(Z=fF(z.type,null,z.pendingProps,null))?z.memoizedState=Z:F1||(Z=z.type,w=z.pendingProps,$=Q0(Z4.current),$=Q3($).createElement(Z),$[sw]=z,$[U2]=w,aw($,Z,w),d0($),z.stateNode=$):z.memoizedState=fF(z.type,w.memoizedProps,z.pendingProps,w.memoizedState),null;case 27:return g(z),w===null&&F1&&($=Q0(Z4.current),G=o(),$=z.stateNode=RF(z.type,z.pendingProps,$,G,!1),S8||(G=DF($,z.type,z.pendingProps,G),G!==null&&(z7(z,0).serverProps=G)),ow=z,L5=!0,G=l1,w4(z.type)?(fH=G,l1=p2($.firstChild)):l1=G),rw(w,z,z.pendingProps.children,Z),n$(w,z),w===null&&(z.flags|=4194304),z.child;case 5:return w===null&&F1&&(Q=o(),$=VW(z.type,Q.ancestorInfo),G=l1,(H=!G)||(H=Zh(G,z.type,z.pendingProps,L5),H!==null?(z.stateNode=H,S8||(Q=DF(H,z.type,z.pendingProps,Q),Q!==null&&(z7(z,0).serverProps=Q)),ow=z,l1=p2(H.firstChild),L5=!1,Q=!0):Q=!1,H=!Q),H&&($&&M$(z,G),c6(z))),g(z),G=z.type,Q=z.pendingProps,H=w!==null?w.memoizedProps:null,$=Q.children,ZU(G,Q)?$=null:H!==null&&ZU(G,H)&&(z.flags|=32),z.memoizedState!==null&&(G=rW(w,z,Yv,null,null,Z),iJ._currentValue=G),n$(w,z),rw(w,z,$,Z),z.child;case 6:return w===null&&F1&&(Z=z.pendingProps,w=o(),$=w.ancestorInfo.current,Z=$!=null?_$(Z,$.tag,w.ancestorInfo.implicitRootScope):!0,w=l1,($=!w)||($=Jh(w,z.pendingProps,L5),$!==null?(z.stateNode=$,ow=z,l1=null,$=!0):$=!1,$=!$),$&&(Z&&M$(z,w),c6(z))),null;case 13:return HV(w,z,Z);case 4:return r(z,z.stateNode.containerInfo),$=z.pendingProps,w===null?z.child=A7(z,null,$,Z):rw(w,z,$,Z),z.child;case 11:return JV(w,z,z.type,z.pendingProps,Z);case 7:return rw(w,z,z.pendingProps,Z),z.child;case 8:return rw(w,z,z.pendingProps.children,Z),z.child;case 12:return z.flags|=4,z.flags|=2048,$=z.stateNode,$.effectDuration=-0,$.passiveEffectDuration=-0,rw(w,z,z.pendingProps.children,Z),z.child;case 10:return $=z.type,G=z.pendingProps,Q=G.value,"value"in G||ek||(ek=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),l6(z,$,Q),rw(w,z,G.children,Z),z.child;case 9:return G=z.type._context,$=z.pendingProps.children,typeof $!=="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."),J7(z),G=s1(G),$=JH($,G,void 0),z.flags|=1,rw(w,z,$,Z),z.child;case 14:return XV(w,z,z.type,z.pendingProps,Z);case 15:return $V(w,z,z.type,z.pendingProps,Z);case 19:return qV(w,z,Z);case 31:return _v(w,z,Z);case 22:return YV(w,z,Z,z.pendingProps);case 24:return J7(z),$=s1(Vw),w===null?(G=fW(),G===null&&(G=g1,Q=yW(),G.pooledCache=Q,X7(Q),Q!==null&&(G.pooledCacheLanes|=Z),G=Q),z.memoizedState={parent:$,cache:G},dW(z),l6(z,Vw,G)):((w.lanes&Z)!==0&&(uW(w,z),SZ(z,null,null,Z),bZ()),G=w.memoizedState,Q=z.memoizedState,G.parent!==$?(G={parent:$,cache:$},z.memoizedState=G,z.lanes===0&&(z.memoizedState=z.updateQueue.baseState=G),l6(z,Vw,$)):($=Q.cache,l6(z,Vw,$),$!==G.cache&&CW(z,[Vw],Z,!0))),rw(w,z,z.pendingProps.children,Z),z.child;case 29:throw z.pendingProps}throw Error("Unknown unit of work tag ("+z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function $6(w){w.flags|=4}function IK(w,z,Z,$,G){if(z=(w.mode&SE)!==w1)z=!1;if(z){if(w.flags|=16777216,(G&335544128)===G)if(w.stateNode.complete)w.flags|=8192;else if(rV())w.flags|=8192;else throw k7=c3,$H}else w.flags&=-16777217}function BV(w,z){if(z.type!=="stylesheet"||(z.state.loading&A5)!==I7)w.flags&=-16777217;else if(w.flags|=16777216,!cF(z))if(rV())w.flags|=8192;else throw k7=c3,$H}function e$(w,z){z!==null&&(w.flags|=4),w.flags&16384&&(z=w.tag!==22?q1():536870912,w.lanes|=z,T7|=z)}function fZ(w,z){if(!F1)switch(w.tailMode){case"hidden":z=w.tail;for(var Z=null;z!==null;)z.alternate!==null&&(Z=z),z=z.sibling;Z===null?w.tail=null:Z.sibling=null;break;case"collapsed":Z=w.tail;for(var $=null;Z!==null;)Z.alternate!==null&&($=Z),Z=Z.sibling;$===null?z||w.tail===null?w.tail=null:w.tail.sibling=null:$.sibling=null}}function m1(w){var z=w.alternate!==null&&w.alternate.child===w.child,Z=0,$=0;if(z)if((w.mode&Y1)!==w1){for(var{selfBaseDuration:G,child:Q}=w;Q!==null;)Z|=Q.lanes|Q.childLanes,$|=Q.subtreeFlags&65011712,$|=Q.flags&65011712,G+=Q.treeBaseDuration,Q=Q.sibling;w.treeBaseDuration=G}else for(G=w.child;G!==null;)Z|=G.lanes|G.childLanes,$|=G.subtreeFlags&65011712,$|=G.flags&65011712,G.return=w,G=G.sibling;else if((w.mode&Y1)!==w1){G=w.actualDuration,Q=w.selfBaseDuration;for(var H=w.child;H!==null;)Z|=H.lanes|H.childLanes,$|=H.subtreeFlags,$|=H.flags,G+=H.actualDuration,Q+=H.treeBaseDuration,H=H.sibling;w.actualDuration=G,w.treeBaseDuration=Q}else for(G=w.child;G!==null;)Z|=G.lanes|G.childLanes,$|=G.subtreeFlags,$|=G.flags,G.return=w,G=G.sibling;return w.subtreeFlags|=$,w.childLanes=Z,z}function Bv(w,z,Z){var $=z.pendingProps;switch(PW(z),z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return m1(z),null;case 1:return m1(z),null;case 3:if(Z=z.stateNode,$=null,w!==null&&($=w.memoizedState.cache),z.memoizedState.cache!==$&&(z.flags|=2048),Z6(Vw,z),e(z),Z.pendingContext&&(Z.context=Z.pendingContext,Z.pendingContext=null),w===null||w.child===null)L9(z)?(bW(),$6(z)):w===null||w.memoizedState.isDehydrated&&(z.flags&256)===0||(z.flags|=1024,IW());return m1(z),null;case 26:var{type:G,memoizedState:Q}=z;return w===null?($6(z),Q!==null?(m1(z),BV(z,Q)):(m1(z),IK(z,G,null,$,Z))):Q?Q!==w.memoizedState?($6(z),m1(z),BV(z,Q)):(m1(z),z.flags&=-16777217):(w=w.memoizedProps,w!==$&&$6(z),m1(z),IK(z,G,w,$,Z)),null;case 27:if(X0(z),Z=Q0(Z4.current),G=z.type,w!==null&&z.stateNode!=null)w.memoizedProps!==$&&$6(z);else{if(!$){if(z.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 m1(z),null}w=o(),L9(z)?JL(z,w):(w=RF(G,$,Z,w,!0),z.stateNode=w,$6(z))}return m1(z),null;case 5:if(X0(z),G=z.type,w!==null&&z.stateNode!=null)w.memoizedProps!==$&&$6(z);else{if(!$){if(z.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 m1(z),null}var H=o();if(L9(z))JL(z,H);else{switch(Q=Q0(Z4.current),VW(G,H.ancestorInfo),H=H.context,Q=Q3(Q),H){case Hz:Q=Q.createElementNS(y9,G);break;case LY:Q=Q.createElementNS(D3,G);break;default:switch(G){case"svg":Q=Q.createElementNS(y9,G);break;case"math":Q=Q.createElementNS(D3,G);break;case"script":Q=Q.createElement("div"),Q.innerHTML="<script></script>",Q=Q.removeChild(Q.firstChild);break;case"select":Q=typeof $.is==="string"?Q.createElement("select",{is:$.is}):Q.createElement("select"),$.multiple?Q.multiple=!0:$.size&&(Q.size=$.size);break;default:Q=typeof $.is==="string"?Q.createElement(G,{is:$.is}):Q.createElement(G),G.indexOf("-")===-1&&(G!==G.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",G),Object.prototype.toString.call(Q)!=="[object HTMLUnknownElement]"||u5.call(MA,G)||(MA[G]=!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.",G)))}}Q[sw]=z,Q[U2]=$;w:for(H=z.child;H!==null;){if(H.tag===5||H.tag===6)Q.appendChild(H.stateNode);else if(H.tag!==4&&H.tag!==27&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===z)break w;for(;H.sibling===null;){if(H.return===null||H.return===z)break w;H=H.return}H.sibling.return=H.return,H=H.sibling}z.stateNode=Q;w:switch(aw(Q,G,$),G){case"button":case"input":case"select":case"textarea":$=!!$.autoFocus;break w;case"img":$=!0;break w;default:$=!1}$&&$6(z)}}return m1(z),IK(z,z.type,w===null?null:w.memoizedProps,z.pendingProps,Z),null;case 6:if(w&&z.stateNode!=null)w.memoizedProps!==$&&$6(z);else{if(typeof $!=="string"&&z.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(w=Q0(Z4.current),Z=o(),L9(z)){if(w=z.stateNode,Z=z.memoizedProps,G=!S8,$=null,Q=ow,Q!==null)switch(Q.tag){case 3:G&&(G=CF(w,Z,$),G!==null&&(z7(z,0).serverProps=G));break;case 27:case 5:$=Q.memoizedProps,G&&(G=CF(w,Z,$),G!==null&&(z7(z,0).serverProps=G))}w[sw]=z,w=w.nodeValue===Z||$!==null&&$.suppressHydrationWarning===!0||kF(w.nodeValue,Z)?!0:!1,w||c6(z,!0)}else G=Z.ancestorInfo.current,G!=null&&_$($,G.tag,Z.ancestorInfo.implicitRootScope),w=Q3(w).createTextNode($),w[sw]=z,z.stateNode=w}return m1(z),null;case 31:if(Z=z.memoizedState,w===null||w.memoizedState!==null){if($=L9(z),Z!==null){if(w===null){if(!$)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(w=z.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");w[sw]=z,m1(z),(z.mode&Y1)!==w1&&Z!==null&&(w=z.child,w!==null&&(z.treeBaseDuration-=w.treeBaseDuration))}else bW(),Z7(),(z.flags&128)===0&&(Z=z.memoizedState=null),z.flags|=4,m1(z),(z.mode&Y1)!==w1&&Z!==null&&(w=z.child,w!==null&&(z.treeBaseDuration-=w.treeBaseDuration));w=!1}else Z=IW(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=Z),w=!0;if(!w){if(z.flags&256)return d2(z),z;return d2(z),null}if((z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return m1(z),null;case 13:if($=z.memoizedState,w===null||w.memoizedState!==null&&w.memoizedState.dehydrated!==null){if(G=$,Q=L9(z),G!==null&&G.dehydrated!==null){if(w===null){if(!Q)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(Q=z.memoizedState,Q=Q!==null?Q.dehydrated:null,!Q)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Q[sw]=z,m1(z),(z.mode&Y1)!==w1&&G!==null&&(G=z.child,G!==null&&(z.treeBaseDuration-=G.treeBaseDuration))}else bW(),Z7(),(z.flags&128)===0&&(G=z.memoizedState=null),z.flags|=4,m1(z),(z.mode&Y1)!==w1&&G!==null&&(G=z.child,G!==null&&(z.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=IW(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=G),G=!0;if(!G){if(z.flags&256)return d2(z),z;return d2(z),null}}if(d2(z),(z.flags&128)!==0)return z.lanes=Z,(z.mode&Y1)!==w1&&EZ(z),z;return Z=$!==null,w=w!==null&&w.memoizedState!==null,Z&&($=z.child,G=null,$.alternate!==null&&$.alternate.memoizedState!==null&&$.alternate.memoizedState.cachePool!==null&&(G=$.alternate.memoizedState.cachePool.pool),Q=null,$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Q=$.memoizedState.cachePool.pool),Q!==G&&($.flags|=2048)),Z!==w&&Z&&(z.child.flags|=8192),e$(z,z.updateQueue),m1(z),(z.mode&Y1)!==w1&&Z&&(w=z.child,w!==null&&(z.treeBaseDuration-=w.treeBaseDuration)),null;case 4:return e(z),w===null&&sK(z.stateNode.containerInfo),m1(z),null;case 10:return Z6(z.type,z),m1(z),null;case 19:if(t(Hw,z),$=z.memoizedState,$===null)return m1(z),null;if(G=(z.flags&128)!==0,Q=$.rendering,Q===null)if(G)fZ($,!1);else{if(e1!==k6||w!==null&&(w.flags&128)!==0)for(w=z.child;w!==null;){if(Q=y$(w),Q!==null){z.flags|=128,fZ($,!1),w=Q.updateQueue,z.updateQueue=w,e$(z,w),z.subtreeFlags=0,w=Z;for(Z=z.child;Z!==null;)nB(Z,w),Z=Z.sibling;return u(Hw,Hw.current&wz|vJ,z),F1&&z6(z,$.treeForkCount),z.child}w=w.sibling}$.tail!==null&&gw()>JY&&(z.flags|=128,G=!0,fZ($,!1),z.lanes=4194304)}else{if(!G)if(w=y$(Q),w!==null){if(z.flags|=128,G=!0,w=w.updateQueue,z.updateQueue=w,e$(z,w),fZ($,!0),$.tail===null&&$.tailMode==="hidden"&&!Q.alternate&&!F1)return m1(z),null}else 2*gw()-$.renderingStartTime>JY&&Z!==536870912&&(z.flags|=128,G=!0,fZ($,!1),z.lanes=4194304);$.isBackwards?(Q.sibling=z.child,z.child=Q):(w=$.last,w!==null?w.sibling=Q:z.child=Q,$.last=Q)}if($.tail!==null)return w=$.tail,$.rendering=w,$.tail=w.sibling,$.renderingStartTime=gw(),w.sibling=null,Z=Hw.current,Z=G?Z&wz|vJ:Z&wz,u(Hw,Z,z),F1&&z6(z,$.treeForkCount),w;return m1(z),null;case 22:case 23:return d2(z),cW(z),$=z.memoizedState!==null,w!==null?w.memoizedState!==null!==$&&(z.flags|=8192):$&&(z.flags|=8192),$?(Z&536870912)!==0&&(z.flags&128)===0&&(m1(z),z.subtreeFlags&6&&(z.flags|=8192)):m1(z),Z=z.updateQueue,Z!==null&&e$(z,Z.retryQueue),Z=null,w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(Z=w.memoizedState.cachePool.pool),$=null,z.memoizedState!==null&&z.memoizedState.cachePool!==null&&($=z.memoizedState.cachePool.pool),$!==Z&&(z.flags|=2048),w!==null&&t(F7,z),null;case 24:return Z=null,w!==null&&(Z=w.memoizedState.cache),z.memoizedState.cache!==Z&&(z.flags|=2048),Z6(Vw,z),m1(z),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Lv(w,z){switch(PW(z),z.tag){case 1:return w=z.flags,w&65536?(z.flags=w&-65537|128,(z.mode&Y1)!==w1&&EZ(z),z):null;case 3:return Z6(Vw,z),e(z),w=z.flags,(w&65536)!==0&&(w&128)===0?(z.flags=w&-65537|128,z):null;case 26:case 27:case 5:return X0(z),null;case 31:if(z.memoizedState!==null){if(d2(z),z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Z7()}return w=z.flags,w&65536?(z.flags=w&-65537|128,(z.mode&Y1)!==w1&&EZ(z),z):null;case 13:if(d2(z),w=z.memoizedState,w!==null&&w.dehydrated!==null){if(z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Z7()}return w=z.flags,w&65536?(z.flags=w&-65537|128,(z.mode&Y1)!==w1&&EZ(z),z):null;case 19:return t(Hw,z),null;case 4:return e(z),null;case 10:return Z6(z.type,z),null;case 22:case 23:return d2(z),cW(z),w!==null&&t(F7,z),w=z.flags,w&65536?(z.flags=w&-65537|128,(z.mode&Y1)!==w1&&EZ(z),z):null;case 24:return Z6(Vw,z),null;case 25:return null;default:return null}}function LV(w,z){switch(PW(z),z.tag){case 3:Z6(Vw,z),e(z);break;case 26:case 27:case 5:X0(z);break;case 4:e(z);break;case 31:z.memoizedState!==null&&d2(z);break;case 13:d2(z);break;case 19:t(Hw,z);break;case 10:Z6(z.type,z);break;case 22:case 23:d2(z),cW(z),w!==null&&t(F7,z);break;case 24:Z6(Vw,z)}}function A8(w){return(w.mode&Y1)!==w1}function VV(w,z){A8(w)?(k8(),mZ(z,w),N8()):mZ(z,w)}function bK(w,z,Z){A8(w)?(k8(),j9(Z,w,z),N8()):j9(Z,w,z)}function mZ(w,z){try{var Z=z.updateQueue,$=Z!==null?Z.lastEffect:null;if($!==null){var G=$.next;Z=G;do{if((Z.tag&w)===w&&($=void 0,(w&B2)!==i3&&(Wz=!0),$=n(z,fE,Z),(w&B2)!==i3&&(Wz=!1),$!==void 0&&typeof $!=="function")){var Q=void 0;Q=(Z.tag&s2)!==0?"useLayoutEffect":(Z.tag&B2)!==0?"useInsertionEffect":"useEffect";var H=void 0;H=$===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof $.then==="function"?`
|
|
141
|
+
|
|
142
|
+
It looks like you wrote `+Q+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
143
|
+
|
|
144
|
+
`+Q+`(() => {
|
|
145
|
+
async function fetchData() {
|
|
146
|
+
// You can await here
|
|
147
|
+
const response = await MyAPI.getData(someId);
|
|
148
|
+
// ...
|
|
149
|
+
}
|
|
150
|
+
fetchData();
|
|
151
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
152
|
+
|
|
153
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+$,n(z,function(B,j){console.error("%s must not return anything besides a function, which is used for clean-up.%s",B,j)},Q,H)}Z=Z.next}while(Z!==G)}}catch(B){P1(z,z.return,B)}}function j9(w,z,Z){try{var $=z.updateQueue,G=$!==null?$.lastEffect:null;if(G!==null){var Q=G.next;$=Q;do{if(($.tag&w)===w){var H=$.inst,B=H.destroy;B!==void 0&&(H.destroy=void 0,(w&B2)!==i3&&(Wz=!0),G=z,n(G,mE,G,Z,B),(w&B2)!==i3&&(Wz=!1))}$=$.next}while($!==Q)}}catch(j){P1(z,z.return,j)}}function FV(w,z){A8(w)?(k8(),mZ(z,w),N8()):mZ(z,w)}function SK(w,z,Z){A8(w)?(k8(),j9(Z,w,z),N8()):j9(Z,w,z)}function NV(w){var z=w.updateQueue;if(z!==null){var Z=w.stateNode;w.type.defaultProps||"ref"in w.memoizedProps||Xz||(Z.props!==w.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.",d(w)||"instance"),Z.state!==w.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.",d(w)||"instance"));try{n(w,AL,z,Z)}catch($){P1(w,w.return,$)}}}function Vv(w,z,Z){return w.getSnapshotBeforeUpdate(z,Z)}function Fv(w,z){var{memoizedProps:Z,memoizedState:$}=z;z=w.stateNode,w.type.defaultProps||"ref"in w.memoizedProps||Xz||(z.props!==w.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.",d(w)||"instance"),z.state!==w.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.",d(w)||"instance"));try{var G=Q7(w.type,Z),Q=n(w,Vv,z,G,$);Z=wA,Q!==void 0||Z.has(w.type)||(Z.add(w.type),n(w,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d(w))})),z.__reactInternalSnapshotBeforeUpdate=Q}catch(H){P1(w,w.return,H)}}function kV(w,z,Z){Z.props=Q7(w.type,w.memoizedProps),Z.state=w.memoizedState,A8(w)?(k8(),n(w,Nk,w,z,Z),N8()):n(w,Nk,w,z,Z)}function Nv(w){var z=w.ref;if(z!==null){switch(w.tag){case 26:case 27:case 5:var Z=w.stateNode;break;case 30:Z=w.stateNode;break;default:Z=w.stateNode}if(typeof z==="function")if(A8(w))try{k8(),w.refCleanup=z(Z)}finally{N8()}else w.refCleanup=z(Z);else typeof z==="string"?console.error("String refs are no longer supported."):z.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",d(w)),z.current=Z}}function dZ(w,z){try{n(w,Nv,w)}catch(Z){P1(w,z,Z)}}function j8(w,z){var{ref:Z,refCleanup:$}=w;if(Z!==null)if(typeof $==="function")try{if(A8(w))try{k8(),n(w,$)}finally{N8(w)}else n(w,$)}catch(G){P1(w,z,G)}finally{w.refCleanup=null,w=w.alternate,w!=null&&(w.refCleanup=null)}else if(typeof Z==="function")try{if(A8(w))try{k8(),n(w,Z,null)}finally{N8(w)}else n(w,Z,null)}catch(G){P1(w,z,G)}else Z.current=null}function AV(w,z,Z,$){var G=w.memoizedProps,Q=G.id,H=G.onCommit;G=G.onRender,z=z===null?"mount":"update",m3&&(z="nested-update"),typeof G==="function"&&G(Q,z,w.actualDuration,w.treeBaseDuration,w.actualStartTime,Z),typeof H==="function"&&H(Q,z,$,Z)}function kv(w,z,Z,$){var G=w.memoizedProps;w=G.id,G=G.onPostCommit,z=z===null?"mount":"update",m3&&(z="nested-update"),typeof G==="function"&&G(w,z,$,Z)}function jV(w){var{type:z,memoizedProps:Z,stateNode:$}=w;try{n(w,cv,$,z,Z,w)}catch(G){P1(w,w.return,G)}}function CK(w,z,Z){try{n(w,iv,w.stateNode,w.type,Z,z,w)}catch($){P1(w,w.return,$)}}function MV(w){return w.tag===5||w.tag===3||w.tag===26||w.tag===27&&w4(w.type)||w.tag===4}function yK(w){w:for(;;){for(;w.sibling===null;){if(w.return===null||MV(w.return))return null;w=w.return}w.sibling.return=w.return;for(w=w.sibling;w.tag!==5&&w.tag!==6&&w.tag!==18;){if(w.tag===27&&w4(w.type))continue w;if(w.flags&2)continue w;if(w.child===null||w.tag===4)continue w;else w.child.return=w,w=w.child}if(!(w.flags&2))return w.stateNode}}function RK(w,z,Z){var $=w.tag;if($===5||$===6)w=w.stateNode,z?(EF(Z),(Z.nodeType===9?Z.body:Z.nodeName==="HTML"?Z.ownerDocument.body:Z).insertBefore(w,z)):(EF(Z),z=Z.nodeType===9?Z.body:Z.nodeName==="HTML"?Z.ownerDocument.body:Z,z.appendChild(w),Z=Z._reactRootContainer,Z!==null&&Z!==void 0||z.onclick!==null||(z.onclick=e8));else if($!==4&&($===27&&w4(w.type)&&(Z=w.stateNode,z=null),w=w.child,w!==null))for(RK(w,z,Z),w=w.sibling;w!==null;)RK(w,z,Z),w=w.sibling}function w3(w,z,Z){var $=w.tag;if($===5||$===6)w=w.stateNode,z?Z.insertBefore(w,z):Z.appendChild(w);else if($!==4&&($===27&&w4(w.type)&&(Z=w.stateNode),w=w.child,w!==null))for(w3(w,z,Z),w=w.sibling;w!==null;)w3(w,z,Z),w=w.sibling}function Av(w){for(var z,Z=w.return;Z!==null;){if(MV(Z)){z=Z;break}Z=Z.return}if(z==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(z.tag){case 27:z=z.stateNode,Z=yK(w),w3(w,Z,z);break;case 5:Z=z.stateNode,z.flags&32&&(hF(Z),z.flags&=-33),z=yK(w),w3(w,z,Z);break;case 3:case 4:z=z.stateNode.containerInfo,Z=yK(w),RK(w,Z,z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function OV(w){var{stateNode:z,memoizedProps:Z}=w;try{n(w,Qh,w.type,Z,z,w)}catch($){P1(w,w.return,$)}}function DV(w,z){return z.tag===31?(z=z.memoizedState,w.memoizedState!==null&&z===null):z.tag===13?(w=w.memoizedState,z=z.memoizedState,w!==null&&w.dehydrated!==null&&(z===null||z.dehydrated===null)):z.tag===3?w.memoizedState.isDehydrated&&(z.flags&256)===0:!1}function jv(w,z){if(w=w.containerInfo,yH=kY,w=dB(w),kW(w)){if("selectionStart"in w)var Z={start:w.selectionStart,end:w.selectionEnd};else w:{Z=(Z=w.ownerDocument)&&Z.defaultView||window;var $=Z.getSelection&&Z.getSelection();if($&&$.rangeCount!==0){Z=$.anchorNode;var{anchorOffset:G,focusNode:Q}=$;$=$.focusOffset;try{Z.nodeType,Q.nodeType}catch(M0){Z=null;break w}var H=0,B=-1,j=-1,O=0,i=0,a=w,y=null;z:for(;;){for(var Z0;;){if(a!==Z||G!==0&&a.nodeType!==3||(B=H+G),a!==Q||$!==0&&a.nodeType!==3||(j=H+$),a.nodeType===3&&(H+=a.nodeValue.length),(Z0=a.firstChild)===null)break;y=a,a=Z0}for(;;){if(a===w)break z;if(y===Z&&++O===G&&(B=H),y===Q&&++i===$&&(j=H),(Z0=a.nextSibling)!==null)break;a=y,y=a.parentNode}a=Z0}Z=B===-1||j===-1?null:{start:B,end:j}}else Z=null}Z=Z||{start:0,end:0}}else Z=null;RH={focusedElem:w,selectionRange:Z},kY=!1;for(mw=z;mw!==null;)if(z=mw,w=z.child,(z.subtreeFlags&1028)!==0&&w!==null)w.return=z,mw=w;else for(;mw!==null;){switch(w=z=mw,Z=w.alternate,G=w.flags,w.tag){case 0:if((G&4)!==0&&(w=w.updateQueue,w=w!==null?w.events:null,w!==null))for(Z=0;Z<w.length;Z++)G=w[Z],G.ref.impl=G.nextImpl;break;case 11:case 15:break;case 1:(G&1024)!==0&&Z!==null&&Fv(w,Z);break;case 3:if((G&1024)!==0){if(w=w.stateNode.containerInfo,Z=w.nodeType,Z===9)JU(w);else if(Z===1)switch(w.nodeName){case"HEAD":case"HTML":case"BODY":JU(w);break;default:w.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((G&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(w=z.sibling,w!==null){w.return=z.return,mw=w;break}mw=z.return}}function TV(w,z,Z){var $=f2(),G=B8(),Q=V8(),H=F8(),B=Z.flags;switch(Z.tag){case 0:case 11:case 15:M8(w,Z),B&4&&VV(Z,s2|N5);break;case 1:if(M8(w,Z),B&4)if(w=Z.stateNode,z===null)Z.type.defaultProps||"ref"in Z.memoizedProps||Xz||(w.props!==Z.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.",d(Z)||"instance"),w.state!==Z.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.",d(Z)||"instance")),A8(Z)?(k8(),n(Z,XH,Z,w),N8()):n(Z,XH,Z,w);else{var j=Q7(Z.type,z.memoizedProps);z=z.memoizedState,Z.type.defaultProps||"ref"in Z.memoizedProps||Xz||(w.props!==Z.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.",d(Z)||"instance"),w.state!==Z.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.",d(Z)||"instance")),A8(Z)?(k8(),n(Z,Lk,Z,w,j,z,w.__reactInternalSnapshotBeforeUpdate),N8()):n(Z,Lk,Z,w,j,z,w.__reactInternalSnapshotBeforeUpdate)}B&64&&NV(Z),B&512&&dZ(Z,Z.return);break;case 3:if(z=J6(),M8(w,Z),B&64&&(B=Z.updateQueue,B!==null)){if(j=null,Z.child!==null)switch(Z.child.tag){case 27:case 5:j=Z.child.stateNode;break;case 1:j=Z.child.stateNode}try{n(Z,AL,B,j)}catch(i){P1(Z,Z.return,i)}}w.effectDuration+=x$(z);break;case 27:z===null&&B&4&&OV(Z);case 26:case 5:if(M8(w,Z),z===null){if(B&4)jV(Z);else if(B&64){w=Z.type,z=Z.memoizedProps,j=Z.stateNode;try{n(Z,lv,j,w,z,Z)}catch(i){P1(Z,Z.return,i)}}}B&512&&dZ(Z,Z.return);break;case 12:if(B&4){B=J6(),M8(w,Z),w=Z.stateNode,w.effectDuration+=hZ(B);try{n(Z,AV,Z,z,K4,w.effectDuration)}catch(i){P1(Z,Z.return,i)}}else M8(w,Z);break;case 31:M8(w,Z),B&4&&hV(w,Z);break;case 13:M8(w,Z),B&4&&EV(w,Z),B&64&&(w=Z.memoizedState,w!==null&&(w=w.dehydrated,w!==null&&(B=Pv.bind(null,Z),Xh(w,B))));break;case 22:if(B=Z.memoizedState!==null||N6,!B){z=z!==null&&z.memoizedState!==null||Aw,j=N6;var O=Aw;N6=B,(Aw=z)&&!O?(O8(w,Z,(Z.subtreeFlags&8772)!==0),(Z.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&V$(Z,s0,e0)):M8(w,Z),N6=j,Aw=O}break;case 30:break;default:M8(w,Z)}(Z.mode&Y1)!==w1&&0<=s0&&0<=e0&&((Jw||0.05<t1)&&_8(Z,s0,e0,t1,o1),Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null&&0.05<e0-s0&&(DV(Z.return.alternate,Z.return)||H8(Z,s0,e0,"Mount"))),m2($),L8(G),o1=Q,Jw=H}function xV(w){var z=w.alternate;z!==null&&(w.alternate=null,xV(z)),w.child=null,w.deletions=null,w.sibling=null,w.tag===5&&(z=w.stateNode,z!==null&&N0(z)),w.stateNode=null,w._debugOwner=null,w.return=null,w.dependencies=null,w.memoizedProps=null,w.memoizedState=null,w.pendingProps=null,w.stateNode=null,w.updateQueue=null}function Y6(w,z,Z){for(Z=Z.child;Z!==null;)vV(w,z,Z),Z=Z.sibling}function vV(w,z,Z){if(z2&&typeof z2.onCommitFiberUnmount==="function")try{z2.onCommitFiberUnmount(S9,Z)}catch(O){E8||(E8=!0,console.error("React instrumentation encountered an error: %o",O))}var $=f2(),G=B8(),Q=V8(),H=F8();switch(Z.tag){case 26:Aw||j8(Z,z),Y6(w,z,Z),Z.memoizedState?Z.memoizedState.count--:Z.stateNode&&(w=Z.stateNode,w.parentNode.removeChild(w));break;case 27:Aw||j8(Z,z);var B=jw,j=T2;w4(Z.type)&&(jw=Z.stateNode,T2=!1),Y6(w,z,Z),n(Z,oZ,Z.stateNode),jw=B,T2=j;break;case 5:Aw||j8(Z,z);case 6:if(B=jw,j=T2,jw=null,Y6(w,z,Z),jw=B,T2=j,jw!==null)if(T2)try{n(Z,sv,jw,Z.stateNode)}catch(O){P1(Z,z,O)}else try{n(Z,av,jw,Z.stateNode)}catch(O){P1(Z,z,O)}break;case 18:jw!==null&&(T2?(w=jw,PF(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w,Z.stateNode),E9(w)):PF(jw,Z.stateNode));break;case 4:B=jw,j=T2,jw=Z.stateNode.containerInfo,T2=!0,Y6(w,z,Z),jw=B,T2=j;break;case 0:case 11:case 14:case 15:j9(B2,Z,z),Aw||bK(Z,z,s2),Y6(w,z,Z);break;case 1:Aw||(j8(Z,z),B=Z.stateNode,typeof B.componentWillUnmount==="function"&&kV(Z,z,B)),Y6(w,z,Z);break;case 21:Y6(w,z,Z);break;case 22:Aw=(B=Aw)||Z.memoizedState!==null,Y6(w,z,Z),Aw=B;break;default:Y6(w,z,Z)}(Z.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&_8(Z,s0,e0,t1,o1),m2($),L8(G),o1=Q,Jw=H}function hV(w,z){if(z.memoizedState===null&&(w=z.alternate,w!==null&&(w=w.memoizedState,w!==null))){w=w.dehydrated;try{n(z,Yh,w)}catch(Z){P1(z,z.return,Z)}}}function EV(w,z){if(z.memoizedState===null&&(w=z.alternate,w!==null&&(w=w.memoizedState,w!==null&&(w=w.dehydrated,w!==null))))try{n(z,Gh,w)}catch(Z){P1(z,z.return,Z)}}function Mv(w){switch(w.tag){case 31:case 13:case 19:var z=w.stateNode;return z===null&&(z=w.stateNode=new zA),z;case 22:return w=w.stateNode,z=w._retryCache,z===null&&(z=w._retryCache=new zA),z;default:throw Error("Unexpected Suspense handler tag ("+w.tag+"). This is a bug in React.")}}function z3(w,z){var Z=Mv(w);z.forEach(function($){if(!Z.has($)){if(Z.add($),P8)if($z!==null&&Yz!==null)lZ(Yz,$z);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=Iv.bind(null,w,$);$.then(G,G)}})}function O2(w,z){var Z=z.deletions;if(Z!==null)for(var $=0;$<Z.length;$++){var G=w,Q=z,H=Z[$],B=f2(),j=Q;w:for(;j!==null;){switch(j.tag){case 27:if(w4(j.type)){jw=j.stateNode,T2=!1;break w}break;case 5:jw=j.stateNode,T2=!1;break w;case 3:case 4:jw=j.stateNode.containerInfo,T2=!0;break w}j=j.return}if(jw===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");vV(G,Q,H),jw=null,T2=!1,(H.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&H8(H,s0,e0,"Unmount"),m2(B),G=H,Q=G.alternate,Q!==null&&(Q.return=null),G.return=null}if(z.subtreeFlags&13886)for(z=z.child;z!==null;)PV(z,w),z=z.sibling}function PV(w,z){var Z=f2(),$=B8(),G=V8(),Q=F8(),H=w.alternate,B=w.flags;switch(w.tag){case 0:case 11:case 14:case 15:O2(z,w),D2(w),B&4&&(j9(B2|N5,w,w.return),mZ(B2|N5,w),bK(w,w.return,s2|N5));break;case 1:if(O2(z,w),D2(w),B&512&&(Aw||H===null||j8(H,H.return)),B&64&&N6&&(B=w.updateQueue,B!==null&&(H=B.callbacks,H!==null))){var j=B.shared.hiddenCallbacks;B.shared.hiddenCallbacks=j===null?H:j.concat(H)}break;case 26:if(j=r5,O2(z,w),D2(w),B&512&&(Aw||H===null||j8(H,H.return)),B&4){var O=H!==null?H.memoizedState:null;if(B=w.memoizedState,H===null)if(B===null)if(w.stateNode===null){w:{B=w.type,H=w.memoizedProps,j=j.ownerDocument||j;z:switch(B){case"title":if(O=j.getElementsByTagName("title")[0],!O||O[JJ]||O[sw]||O.namespaceURI===y9||O.hasAttribute("itemprop"))O=j.createElement(B),j.head.insertBefore(O,j.querySelector("head > title"));aw(O,B,H),O[sw]=w,d0(O),B=O;break w;case"link":var i=uF("link","href",j).get(B+(H.href||""));if(i){for(var a=0;a<i.length;a++)if(O=i[a],O.getAttribute("href")===(H.href==null||H.href===""?null:H.href)&&O.getAttribute("rel")===(H.rel==null?null:H.rel)&&O.getAttribute("title")===(H.title==null?null:H.title)&&O.getAttribute("crossorigin")===(H.crossOrigin==null?null:H.crossOrigin)){i.splice(a,1);break z}}O=j.createElement(B),aw(O,B,H),j.head.appendChild(O);break;case"meta":if(i=uF("meta","content",j).get(B+(H.content||""))){for(a=0;a<i.length;a++)if(O=i[a],_0(H.content,"content"),O.getAttribute("content")===(H.content==null?null:""+H.content)&&O.getAttribute("name")===(H.name==null?null:H.name)&&O.getAttribute("property")===(H.property==null?null:H.property)&&O.getAttribute("http-equiv")===(H.httpEquiv==null?null:H.httpEquiv)&&O.getAttribute("charset")===(H.charSet==null?null:H.charSet)){i.splice(a,1);break z}}O=j.createElement(B),aw(O,B,H),j.head.appendChild(O);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+B+'". This is a bug in React.')}O[sw]=w,d0(O),B=O}w.stateNode=B}else pF(j,w.type,w.stateNode);else w.stateNode=dF(j,B,w.memoizedProps);else O!==B?(O===null?H.stateNode!==null&&(H=H.stateNode,H.parentNode.removeChild(H)):O.count--,B===null?pF(j,w.type,w.stateNode):dF(j,B,w.memoizedProps)):B===null&&w.stateNode!==null&&CK(w,w.memoizedProps,H.memoizedProps)}break;case 27:O2(z,w),D2(w),B&512&&(Aw||H===null||j8(H,H.return)),H!==null&&B&4&&CK(w,w.memoizedProps,H.memoizedProps);break;case 5:if(O2(z,w),D2(w),B&512&&(Aw||H===null||j8(H,H.return)),w.flags&32){j=w.stateNode;try{n(w,hF,j)}catch(v0){P1(w,w.return,v0)}}B&4&&w.stateNode!=null&&(j=w.memoizedProps,CK(w,j,H!==null?H.memoizedProps:j)),B&1024&&(VH=!0,w.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(O2(z,w),D2(w),B&4){if(w.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.");B=w.memoizedProps,H=H!==null?H.memoizedProps:B,j=w.stateNode;try{n(w,rv,j,H,B)}catch(v0){P1(w,w.return,v0)}}break;case 3:if(j=J6(),VY=null,O=r5,r5=W3(z.containerInfo),O2(z,w),r5=O,D2(w),B&4&&H!==null&&H.memoizedState.isDehydrated)try{n(w,$h,z.containerInfo)}catch(v0){P1(w,w.return,v0)}VH&&(VH=!1,IV(w)),z.effectDuration+=x$(j);break;case 4:B=r5,r5=W3(w.stateNode.containerInfo),O2(z,w),D2(w),r5=B;break;case 12:B=J6(),O2(z,w),D2(w),w.stateNode.effectDuration+=hZ(B);break;case 31:O2(z,w),D2(w),B&4&&(B=w.updateQueue,B!==null&&(w.updateQueue=null,z3(w,B)));break;case 13:O2(z,w),D2(w),w.child.flags&8192&&w.memoizedState!==null!==(H!==null&&H.memoizedState!==null)&&(ZY=gw()),B&4&&(B=w.updateQueue,B!==null&&(w.updateQueue=null,z3(w,B)));break;case 22:j=w.memoizedState!==null;var y=H!==null&&H.memoizedState!==null,Z0=N6,M0=Aw;if(N6=Z0||j,Aw=M0||y,O2(z,w),Aw=M0,N6=Z0,y&&!j&&!Z0&&!M0&&(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&V$(w,s0,e0),D2(w),B&8192)w:for(z=w.stateNode,z._visibility=j?z._visibility&~HJ:z._visibility|HJ,!j||H===null||y||N6||Aw||(W7(w),(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&H8(w,s0,e0,"Disconnect")),H=null,z=w;;){if(z.tag===5||z.tag===26){if(H===null){y=H=z;try{O=y.stateNode,j?n(y,nv,O):n(y,wh,y.stateNode,y.memoizedProps)}catch(v0){P1(y,y.return,v0)}}}else if(z.tag===6){if(H===null){y=z;try{i=y.stateNode,j?n(y,tv,i):n(y,zh,i,y.memoizedProps)}catch(v0){P1(y,y.return,v0)}}}else if(z.tag===18){if(H===null){y=z;try{a=y.stateNode,j?n(y,ov,a):n(y,ev,y.stateNode)}catch(v0){P1(y,y.return,v0)}}}else if((z.tag!==22&&z.tag!==23||z.memoizedState===null||z===w)&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===w)break w;for(;z.sibling===null;){if(z.return===null||z.return===w)break w;H===z&&(H=null),z=z.return}H===z&&(H=null),z.sibling.return=z.return,z=z.sibling}B&4&&(B=w.updateQueue,B!==null&&(H=B.retryQueue,H!==null&&(B.retryQueue=null,z3(w,H))));break;case 19:O2(z,w),D2(w),B&4&&(B=w.updateQueue,B!==null&&(w.updateQueue=null,z3(w,B)));break;case 30:break;case 21:break;default:O2(z,w),D2(w)}(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&((Jw||0.05<t1)&&_8(w,s0,e0,t1,o1),w.alternate===null&&w.return!==null&&w.return.alternate!==null&&0.05<e0-s0&&(DV(w.return.alternate,w.return)||H8(w,s0,e0,"Mount"))),m2(Z),L8($),o1=G,Jw=Q}function D2(w){var z=w.flags;if(z&2){try{n(w,Av,w)}catch(Z){P1(w,w.return,Z)}w.flags&=-3}z&4096&&(w.flags&=-4097)}function IV(w){if(w.subtreeFlags&1024)for(w=w.child;w!==null;){var z=w;IV(z),z.tag===5&&z.flags&1024&&z.stateNode.reset(),w=w.sibling}}function M8(w,z){if(z.subtreeFlags&8772)for(z=z.child;z!==null;)TV(w,z.alternate,z),z=z.sibling}function bV(w){var z=f2(),Z=B8(),$=V8(),G=F8();switch(w.tag){case 0:case 11:case 14:case 15:bK(w,w.return,s2),W7(w);break;case 1:j8(w,w.return);var Q=w.stateNode;typeof Q.componentWillUnmount==="function"&&kV(w,w.return,Q),W7(w);break;case 27:n(w,oZ,w.stateNode);case 26:case 5:j8(w,w.return),W7(w);break;case 22:w.memoizedState===null&&W7(w);break;case 30:W7(w);break;default:W7(w)}(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&_8(w,s0,e0,t1,o1),m2(z),L8(Z),o1=$,Jw=G}function W7(w){for(w=w.child;w!==null;)bV(w),w=w.sibling}function SV(w,z,Z,$){var G=f2(),Q=B8(),H=V8(),B=F8(),j=Z.flags;switch(Z.tag){case 0:case 11:case 15:O8(w,Z,$),VV(Z,s2);break;case 1:if(O8(w,Z,$),z=Z.stateNode,typeof z.componentDidMount==="function"&&n(Z,XH,Z,z),z=Z.updateQueue,z!==null){w=Z.stateNode;try{n(Z,$v,z,w)}catch(O){P1(Z,Z.return,O)}}$&&j&64&&NV(Z),dZ(Z,Z.return);break;case 27:OV(Z);case 26:case 5:O8(w,Z,$),$&&z===null&&j&4&&jV(Z),dZ(Z,Z.return);break;case 12:if($&&j&4){j=J6(),O8(w,Z,$),$=Z.stateNode,$.effectDuration+=hZ(j);try{n(Z,AV,Z,z,K4,$.effectDuration)}catch(O){P1(Z,Z.return,O)}}else O8(w,Z,$);break;case 31:O8(w,Z,$),$&&j&4&&hV(w,Z);break;case 13:O8(w,Z,$),$&&j&4&&EV(w,Z);break;case 22:Z.memoizedState===null&&O8(w,Z,$),dZ(Z,Z.return);break;case 30:break;default:O8(w,Z,$)}(Z.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&_8(Z,s0,e0,t1,o1),m2(G),L8(Q),o1=H,Jw=B}function O8(w,z,Z){Z=Z&&(z.subtreeFlags&8772)!==0;for(z=z.child;z!==null;)SV(w,z.alternate,z,Z),z=z.sibling}function gK(w,z){var Z=null;w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(Z=w.memoizedState.cachePool.pool),w=null,z.memoizedState!==null&&z.memoizedState.cachePool!==null&&(w=z.memoizedState.cachePool.pool),w!==Z&&(w!=null&&X7(w),Z!=null&&vZ(Z))}function fK(w,z){w=null,z.alternate!==null&&(w=z.alternate.memoizedState.cache),z=z.memoizedState.cache,z!==w&&(X7(z),w!=null&&vZ(w))}function d5(w,z,Z,$,G){if(z.subtreeFlags&10256||z.actualDuration!==0&&(z.alternate===null||z.alternate.child!==z.child))for(z=z.child;z!==null;){var Q=z.sibling;CV(w,z,Z,$,Q!==null?Q.actualStartTime:G),z=Q}}function CV(w,z,Z,$,G){var Q=f2(),H=B8(),B=V8(),j=F8(),O=Y4,i=z.flags;switch(z.tag){case 0:case 11:case 15:(z.mode&Y1)!==w1&&0<z.actualStartTime&&(z.flags&1)!==0&&F$(z,z.actualStartTime,G,Iw,Z),d5(w,z,Z,$,G),i&2048&&FV(z,L2|N5);break;case 1:(z.mode&Y1)!==w1&&0<z.actualStartTime&&((z.flags&128)!==0?jW(z,z.actualStartTime,G,[]):(z.flags&1)!==0&&F$(z,z.actualStartTime,G,Iw,Z)),d5(w,z,Z,$,G);break;case 3:var a=J6(),y=Iw;Iw=z.alternate!==null&&z.alternate.memoizedState.isDehydrated&&(z.flags&256)===0,d5(w,z,Z,$,G),Iw=y,i&2048&&(Z=null,z.alternate!==null&&(Z=z.alternate.memoizedState.cache),$=z.memoizedState.cache,$!==Z&&(X7($),Z!=null&&vZ(Z))),w.passiveEffectDuration+=x$(a);break;case 12:if(i&2048){i=J6(),d5(w,z,Z,$,G),w=z.stateNode,w.passiveEffectDuration+=hZ(i);try{n(z,kv,z,z.alternate,K4,w.passiveEffectDuration)}catch(Z0){P1(z,z.return,Z0)}}else d5(w,z,Z,$,G);break;case 31:i=Iw,a=z.alternate!==null?z.alternate.memoizedState:null,y=z.memoizedState,a!==null&&y===null?(y=z.deletions,y!==null&&0<y.length&&y[0].tag===18?(Iw=!1,a=a.hydrationErrors,a!==null&&jW(z,z.actualStartTime,G,a)):Iw=!0):Iw=!1,d5(w,z,Z,$,G),Iw=i;break;case 13:i=Iw,a=z.alternate!==null?z.alternate.memoizedState:null,y=z.memoizedState,a===null||a.dehydrated===null||y!==null&&y.dehydrated!==null?Iw=!1:(y=z.deletions,y!==null&&0<y.length&&y[0].tag===18?(Iw=!1,a=a.hydrationErrors,a!==null&&jW(z,z.actualStartTime,G,a)):Iw=!0),d5(w,z,Z,$,G),Iw=i;break;case 23:break;case 22:y=z.stateNode,a=z.alternate,z.memoizedState!==null?y._visibility&W6?d5(w,z,Z,$,G):uZ(w,z,Z,$,G):y._visibility&W6?d5(w,z,Z,$,G):(y._visibility|=W6,M9(w,z,Z,$,(z.subtreeFlags&10256)!==0||z.actualDuration!==0&&(z.alternate===null||z.alternate.child!==z.child),G),(z.mode&Y1)===w1||Iw||(w=z.actualStartTime,0<=w&&0.05<G-w&&V$(z,w,G),0<=s0&&0<=e0&&0.05<e0-s0&&V$(z,s0,e0))),i&2048&&gK(a,z);break;case 24:d5(w,z,Z,$,G),i&2048&&fK(z.alternate,z);break;default:d5(w,z,Z,$,G)}if((z.mode&Y1)!==w1){if(w=!Iw&&z.alternate===null&&z.return!==null&&z.return.alternate!==null)Z=z.actualStartTime,0<=Z&&0.05<G-Z&&H8(z,Z,G,"Mount");0<=s0&&0<=e0&&((Jw||0.05<t1)&&_8(z,s0,e0,t1,o1),w&&0.05<e0-s0&&H8(z,s0,e0,"Mount"))}m2(Q),L8(H),o1=B,Jw=j,Y4=O}function M9(w,z,Z,$,G,Q){G=G&&((z.subtreeFlags&10256)!==0||z.actualDuration!==0&&(z.alternate===null||z.alternate.child!==z.child));for(z=z.child;z!==null;){var H=z.sibling;yV(w,z,Z,$,G,H!==null?H.actualStartTime:Q),z=H}}function yV(w,z,Z,$,G,Q){var H=f2(),B=B8(),j=V8(),O=F8(),i=Y4;G&&(z.mode&Y1)!==w1&&0<z.actualStartTime&&(z.flags&1)!==0&&F$(z,z.actualStartTime,Q,Iw,Z);var a=z.flags;switch(z.tag){case 0:case 11:case 15:M9(w,z,Z,$,G,Q),FV(z,L2);break;case 23:break;case 22:var y=z.stateNode;z.memoizedState!==null?y._visibility&W6?M9(w,z,Z,$,G,Q):uZ(w,z,Z,$,Q):(y._visibility|=W6,M9(w,z,Z,$,G,Q)),G&&a&2048&&gK(z.alternate,z);break;case 24:M9(w,z,Z,$,G,Q),G&&a&2048&&fK(z.alternate,z);break;default:M9(w,z,Z,$,G,Q)}(z.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&_8(z,s0,e0,t1,o1),m2(H),L8(B),o1=j,Jw=O,Y4=i}function uZ(w,z,Z,$,G){if(z.subtreeFlags&10256||z.actualDuration!==0&&(z.alternate===null||z.alternate.child!==z.child))for(var Q=z.child;Q!==null;){z=Q.sibling;var H=w,B=Z,j=$,O=z!==null?z.actualStartTime:G,i=Y4;(Q.mode&Y1)!==w1&&0<Q.actualStartTime&&(Q.flags&1)!==0&&F$(Q,Q.actualStartTime,O,Iw,B);var a=Q.flags;switch(Q.tag){case 22:uZ(H,Q,B,j,O),a&2048&&gK(Q.alternate,Q);break;case 24:uZ(H,Q,B,j,O),a&2048&&fK(Q.alternate,Q);break;default:uZ(H,Q,B,j,O)}Y4=i,Q=z}}function O9(w,z,Z){if(w.subtreeFlags&IJ)for(w=w.child;w!==null;)RV(w,z,Z),w=w.sibling}function RV(w,z,Z){switch(w.tag){case 26:O9(w,z,Z),w.flags&IJ&&w.memoizedState!==null&&Uh(Z,r5,w.memoizedState,w.memoizedProps);break;case 5:O9(w,z,Z);break;case 3:case 4:var $=r5;r5=W3(w.stateNode.containerInfo),O9(w,z,Z),r5=$;break;case 22:w.memoizedState===null&&($=w.alternate,$!==null&&$.memoizedState!==null?($=IJ,IJ=16777216,O9(w,z,Z),IJ=$):O9(w,z,Z));break;default:O9(w,z,Z)}}function gV(w){var z=w.alternate;if(z!==null&&(w=z.child,w!==null)){z.child=null;do z=w.sibling,w.sibling=null,w=z;while(w!==null)}}function pZ(w){var z=w.deletions;if((w.flags&16)!==0){if(z!==null)for(var Z=0;Z<z.length;Z++){var $=z[Z],G=f2();mw=$,dV($,w),($.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&H8($,s0,e0,"Unmount"),m2(G)}gV(w)}if(w.subtreeFlags&10256)for(w=w.child;w!==null;)fV(w),w=w.sibling}function fV(w){var z=f2(),Z=B8(),$=V8(),G=F8();switch(w.tag){case 0:case 11:case 15:pZ(w),w.flags&2048&&SK(w,w.return,L2|N5);break;case 3:var Q=J6();pZ(w),w.stateNode.passiveEffectDuration+=x$(Q);break;case 12:Q=J6(),pZ(w),w.stateNode.passiveEffectDuration+=hZ(Q);break;case 22:Q=w.stateNode,w.memoizedState!==null&&Q._visibility&W6&&(w.return===null||w.return.tag!==13)?(Q._visibility&=~W6,Z3(w),(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&H8(w,s0,e0,"Disconnect")):pZ(w);break;default:pZ(w)}(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&_8(w,s0,e0,t1,o1),m2(z),L8(Z),Jw=G,o1=$}function Z3(w){var z=w.deletions;if((w.flags&16)!==0){if(z!==null)for(var Z=0;Z<z.length;Z++){var $=z[Z],G=f2();mw=$,dV($,w),($.mode&Y1)!==w1&&0<=s0&&0<=e0&&0.05<e0-s0&&H8($,s0,e0,"Unmount"),m2(G)}gV(w)}for(w=w.child;w!==null;)mV(w),w=w.sibling}function mV(w){var z=f2(),Z=B8(),$=V8(),G=F8();switch(w.tag){case 0:case 11:case 15:SK(w,w.return,L2),Z3(w);break;case 22:var Q=w.stateNode;Q._visibility&W6&&(Q._visibility&=~W6,Z3(w));break;default:Z3(w)}(w.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&_8(w,s0,e0,t1,o1),m2(z),L8(Z),Jw=G,o1=$}function dV(w,z){for(;mw!==null;){var Z=mw,$=Z,G=z,Q=f2(),H=B8(),B=V8(),j=F8();switch($.tag){case 0:case 11:case 15:SK($,G,L2);break;case 23:case 22:$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool,G!=null&&X7(G));break;case 24:vZ($.memoizedState.cache)}if(($.mode&Y1)!==w1&&0<=s0&&0<=e0&&(Jw||0.05<t1)&&_8($,s0,e0,t1,o1),m2(Q),L8(H),Jw=j,o1=B,$=Z.child,$!==null)$.return=Z,mw=$;else w:for(Z=w;mw!==null;){if($=mw,Q=$.sibling,H=$.return,xV($),$===Z){mw=null;break w}if(Q!==null){Q.return=H,mw=Q;break w}mw=H}}}function Ov(){lE.forEach(function(w){return w()})}function uV(){var w=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return w||Y0.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),w}function u2(w){if((M1&bw)!==dw&&Q1!==0)return Q1&-Q1;var z=Y0.T;return z!==null?(z._updatedFibers||(z._updatedFibers=new Set),z._updatedFibers.add(w),rK()):s()}function pV(){if(v2===0)if((Q1&536870912)===0||F1){var w=A3;A3<<=1,(A3&3932160)===0&&(A3=262144),v2=w}else v2=536870912;return w=a2.current,w!==null&&(w.flags|=32),v2}function Zw(w,z,Z){if(Wz&&console.error("useInsertionEffect must not schedule updates."),vH&&(YY=!0),w===g1&&(S1===O7||S1===D7)||w.cancelPendingCommit!==null)T9(w,0),t6(w,Q1,v2,!1);if(W1(w,Z),(M1&bw)!==dw&&w===g1){if(h8)switch(z.tag){case 0:case 11:case 15:w=K1&&d(K1)||"Unknown",LA.has(w)||(LA.add(w),z=d(z)||"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",z,w,w));break;case 1:BA||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),BA=!0)}}else P8&&J1(w,z,Z),Sv(z),w===g1&&((M1&bw)===dw&&(N4|=Z),e1===L4&&t6(w,Q1,v2,!1)),D8(w)}function cV(w,z,Z){if((M1&(bw|o2))!==dw)throw Error("Should not already be working.");if(Q1!==0&&K1!==null){var $=K1,G=gw();switch(Qk){case CJ:case O7:var Q=FJ;c1&&(($=$._debugTask)?$.run(console.timeStamp.bind(console,"Suspended",Q,G,U5,void 0,"primary-light")):console.timeStamp("Suspended",Q,G,U5,void 0,"primary-light"));break;case D7:Q=FJ,c1&&(($=$._debugTask)?$.run(console.timeStamp.bind(console,"Action",Q,G,U5,void 0,"primary-light")):console.timeStamp("Action",Q,G,U5,void 0,"primary-light"));break;default:c1&&($=G-FJ,3>$||console.timeStamp("Blocked",FJ,G,U5,void 0,5>$?"primary-light":10>$?"primary":100>$?"primary-dark":"error"))}}Q=(Z=!Z&&(z&127)===0&&(z&w.expiredLanes)===0||l0(w,z))?Tv(w,z):dK(w,z,!0);var H=Z;do{if(Q===k6){Gz&&!Z&&t6(w,z,0,!1),z=S1,FJ=Fw(),Qk=z;break}else{if($=gw(),G=w.current.alternate,H&&!Dv(G)){R2(z),G=fw,Q=$,!c1||Q<=G||(Ww?Ww.run(console.timeStamp.bind(console,"Teared Render",G,Q,B1,_1,"error")):console.timeStamp("Teared Render",G,Q,B1,_1,"error")),K7(z,$),Q=dK(w,z,!1),H=!1;continue}if(Q===M7){if(H=z,w.errorRecoveryDisabledLanes&H)var B=0;else B=w.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){R2(z),MW(fw,$,z,Ww),K7(z,$),z=B;w:{$=w,Q=H,H=RJ;var j=$.current.memoizedState.isDehydrated;if(j&&(T9($,B).flags|=256),B=dK($,B,!1),B!==M7){if(kH&&!j){$.errorRecoveryDisabledLanes|=Q,N4|=Q,Q=L4;break w}$=V2,V2=H,$!==null&&(V2===null?V2=$:V2.push.apply(V2,$))}Q=B}if(H=!1,Q!==M7)continue;else $=gw()}}if(Q===SJ){R2(z),MW(fw,$,z,Ww),K7(z,$),T9(w,0),t6(w,z,0,!0);break}w:{switch(Z=w,Q){case k6:case SJ:throw Error("Root did not complete. This is a bug in React.");case L4:if((z&4194048)!==z)break;case t3:R2(z),cB(fw,$,z,Ww),K7(z,$),G=z,(G&127)!==0?R3=$:(G&4194048)!==0&&(g3=$),t6(Z,z,v2,!V4);break w;case M7:V2=null;break;case n3:case ZA:break;default:throw Error("Unknown root exit status.")}if(Y0.actQueue!==null)uK(Z,G,z,V2,gJ,zY,v2,N4,T7,Q,null,null,fw,$);else{if((z&62914560)===z&&(H=ZY+$A-gw(),10<H)){if(t6(Z,z,v2,!V4),x0(Z,0,!0)!==0)break w;a5=z,Z.timeoutHandle=OA(lV.bind(null,Z,G,V2,gJ,zY,z,v2,N4,T7,V4,Q,"Throttled",fw,$),H);break w}lV(Z,G,V2,gJ,zY,z,v2,N4,T7,V4,Q,null,fw,$)}}}break}while(1);D8(w)}function lV(w,z,Z,$,G,Q,H,B,j,O,i,a,y,Z0){w.timeoutHandle=P7;var M0=z.subtreeFlags,v0=null;if(M0&8192||(M0&16785408)===16785408){if(v0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:e8},RV(z,Q,v0),M0=(Q&62914560)===Q?ZY-gw():(Q&4194048)===Q?XA-gw():0,M0=Hh(v0,M0),M0!==null){a5=Q,w.cancelPendingCommit=M0(uK.bind(null,w,z,Q,Z,$,G,H,B,j,i,v0,v0.waitingForViewTransition?"Waiting for the previous Animation":0<v0.count?0<v0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":v0.imgCount===1?"Suspended on an Image":0<v0.imgCount?"Suspended on Images":null,y,Z0)),t6(w,Q,H,!O);return}}uK(w,z,Q,Z,$,G,H,B,j,i,v0,a,y,Z0)}function Dv(w){for(var z=w;;){var Z=z.tag;if((Z===0||Z===11||Z===15)&&z.flags&16384&&(Z=z.updateQueue,Z!==null&&(Z=Z.stores,Z!==null)))for(var $=0;$<Z.length;$++){var G=Z[$],Q=G.getSnapshot;G=G.value;try{if(!_2(Q(),G))return!1}catch(H){return!1}}if(Z=z.child,z.subtreeFlags&16384&&Z!==null)Z.return=z,z=Z;else{if(z===w)break;for(;z.sibling===null;){if(z.return===null||z.return===w)return!0;z=z.return}z.sibling.return=z.return,z=z.sibling}}return!0}function t6(w,z,Z,$){z&=~AH,z&=~N4,w.suspendedLanes|=z,w.pingedLanes&=~z,$&&(w.warmLanes|=z),$=w.expirationTimes;for(var G=z;0<G;){var Q=31-K2(G),H=1<<Q;$[Q]=-1,G&=~H}Z!==0&&zw(w,Z,z)}function D9(){return(M1&(bw|o2))===dw?(iZ(0,!1),!1):!0}function mK(){if(K1!==null){if(S1===x2)var w=K1.return;else w=K1,O$(),nW(w),t9=null,xJ=0,w=K1;for(;w!==null;)LV(w.alternate,w),w=w.return;K1=null}}function K7(w,z){(w&127)!==0&&(U4=z),(w&4194048)!==0&&(y8=z),(w&62914560)!==0&&(Yk=z),(w&2080374784)!==0&&(Gk=z)}function T9(w,z){c1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",_1,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",_1,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",_1,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",_1,"primary-light"));var Z=fw;if(fw=Fw(),Q1!==0&&0<Z){if(R2(Q1),e1===n3||e1===L4)cB(Z,fw,z,Ww);else{var $=fw,G=Ww;if(c1&&!($<=Z)){var Q=(z&738197653)===z?"tertiary-dark":"primary-dark",H=(z&536870912)===z?"Prewarm":(z&201326741)===z?"Interrupted Hydration":"Interrupted Render";G?G.run(console.timeStamp.bind(console,H,Z,$,B1,_1,Q)):console.timeStamp(H,Z,$,B1,_1,Q)}}K7(Q1,fw)}if(Z=Ww,Ww=null,(z&127)!==0){Ww=BJ,G=0<=C8&&C8<U4?U4:C8,$=0<=B7&&B7<U4?U4:B7,Q=0<=$?$:0<=G?G:fw,0<=R3?(R2(2),lB(R3,Q,z,Z)):(f3&127)!==0&&(R2(2),TZ(U4,Q,B6)),Z=G;var B=$,j=LJ,O=0<s9,i=H4===qJ,a=H4===y3;if(G=fw,$=BJ,Q=eU,H=wH,c1){if(B1="Blocking",0<Z?Z>G&&(Z=G):Z=G,0<B?B>Z&&(B=Z):B=Z,j!==null&&Z>B){var y=O?"secondary-light":"warning";$?$.run(console.timeStamp.bind(console,O?"Consecutive":"Event: "+j,B,Z,B1,_1,y)):console.timeStamp(O?"Consecutive":"Event: "+j,B,Z,B1,_1,y)}G>Z&&(B=i?"error":(z&738197653)===z?"tertiary-light":"primary-light",i=a?"Promise Resolved":i?"Cascading Update":5<G-Z?"Update Blocked":"Update",a=[],H!=null&&a.push(["Component name",H]),Q!=null&&a.push(["Method name",Q]),Z={start:Z,end:G,detail:{devtools:{properties:a,track:B1,trackGroup:_1,color:B}}},$?$.run(performance.measure.bind(performance,i,Z)):performance.measure(i,Z))}C8=-1.1,H4=0,wH=eU=null,R3=-1.1,s9=B7,B7=-1.1,U4=Fw()}if((z&4194048)!==0&&(Ww=VJ,G=0<=q6&&q6<y8?y8:q6,Z=0<=V5&&V5<y8?y8:V5,$=0<=_4&&_4<y8?y8:_4,Q=0<=$?$:0<=Z?Z:fw,0<=g3?(R2(256),lB(g3,Q,z,Ww)):(f3&4194048)!==0&&(R2(256),TZ(y8,Q,B6)),a=$,B=L7,j=0<q4,O=zH===y3,Q=fw,$=VJ,H=Xk,i=$k,c1&&(B1="Transition",0<Z?Z>Q&&(Z=Q):Z=Q,0<G?G>Z&&(G=Z):G=Z,0<a?a>G&&(a=G):a=G,G>a&&B!==null&&(y=j?"secondary-light":"warning",$?$.run(console.timeStamp.bind(console,j?"Consecutive":"Event: "+B,a,G,B1,_1,y)):console.timeStamp(j?"Consecutive":"Event: "+B,a,G,B1,_1,y)),Z>G&&($?$.run(console.timeStamp.bind(console,"Action",G,Z,B1,_1,"primary-dark")):console.timeStamp("Action",G,Z,B1,_1,"primary-dark")),Q>Z&&(G=O?"Promise Resolved":5<Q-Z?"Update Blocked":"Update",a=[],i!=null&&a.push(["Component name",i]),H!=null&&a.push(["Method name",H]),Z={start:Z,end:Q,detail:{devtools:{properties:a,track:B1,trackGroup:_1,color:"primary-light"}}},$?$.run(performance.measure.bind(performance,G,Z)):performance.measure(G,Z))),V5=q6=-1.1,zH=0,g3=-1.1,q4=_4,_4=-1.1,y8=Fw()),(z&62914560)!==0&&(f3&62914560)!==0&&(R2(4194304),TZ(Yk,fw,B6)),(z&2080374784)!==0&&(f3&2080374784)!==0&&(R2(268435456),TZ(Gk,fw,B6)),Z=w.timeoutHandle,Z!==P7&&(w.timeoutHandle=P7,XP(Z)),Z=w.cancelPendingCommit,Z!==null&&(w.cancelPendingCommit=null,Z()),a5=0,mK(),g1=w,K1=Z=w6(w.current,null),Q1=z,S1=x2,n2=null,V4=!1,Gz=l0(w,z),kH=!1,e1=k6,T7=v2=AH=N4=F4=0,V2=RJ=null,zY=!1,(z&8)!==0&&(z|=z&32),$=w.entangledLanes,$!==0)for(w=w.entanglements,$&=z;0<$;)G=31-K2($),Q=1<<G,z|=w[G],$&=~Q;return g8=z,N$(),w=tN(),1000<w-nN&&(Y0.recentlyCreatedOwnerStacks=0,nN=w),l5.discardPendingWarnings(),Z}function iV(w,z){z1=null,Y0.H=PJ,Y0.getCurrentStack=null,h8=!1,l2=null,z===n9||z===p3?(z=_L(),S1=CJ):z===$H?(z=_L(),S1=JA):S1=z===BH?NH:z!==null&&typeof z==="object"&&typeof z.then==="function"?yJ:e3,n2=z;var Z=K1;Z===null?(e1=SJ,s$(w,g2(z,w.current))):Z.mode&Y1&&gW(Z)}function rV(){var w=a2.current;return w===null?!0:(Q1&4194048)===Q1?F5===null?!0:!1:(Q1&62914560)===Q1||(Q1&536870912)!==0?w===F5:!1}function aV(){var w=Y0.H;return Y0.H=PJ,w===null?PJ:w}function sV(){var w=Y0.A;return Y0.A=cE,w}function J3(w){Ww===null&&(Ww=w._debugTask==null?null:w._debugTask)}function X3(){e1=L4,V4||(Q1&4194048)!==Q1&&a2.current!==null||(Gz=!0),(F4&134217727)===0&&(N4&134217727)===0||g1===null||t6(g1,Q1,v2,!1)}function dK(w,z,Z){var $=M1;M1|=bw;var G=aV(),Q=sV();if(g1!==w||Q1!==z){if(P8){var H=w.memoizedUpdaters;0<H.size&&(lZ(w,Q1),H.clear()),N1(w,z)}gJ=null,T9(w,z)}z=!1,H=e1;w:do try{if(S1!==x2&&K1!==null){var B=K1,j=n2;switch(S1){case NH:mK(),H=t3;break w;case CJ:case O7:case D7:case yJ:a2.current===null&&(z=!0);var O=S1;if(S1=x2,n2=null,x9(w,B,j,O),Z&&Gz){H=k6;break w}break;default:O=S1,S1=x2,n2=null,x9(w,B,j,O)}}oV(),H=e1;break}catch(i){iV(w,i)}while(1);return z&&w.shellSuspendCounter++,O$(),M1=$,Y0.H=G,Y0.A=Q,K1===null&&(g1=null,Q1=0,N$()),H}function oV(){for(;K1!==null;)nV(K1)}function Tv(w,z){var Z=M1;M1|=bw;var $=aV(),G=sV();if(g1!==w||Q1!==z){if(P8){var Q=w.memoizedUpdaters;0<Q.size&&(lZ(w,Q1),Q.clear()),N1(w,z)}gJ=null,JY=gw()+YA,T9(w,z)}else Gz=l0(w,z);w:do try{if(S1!==x2&&K1!==null)z:switch(z=K1,Q=n2,S1){case e3:S1=x2,n2=null,x9(w,z,Q,e3);break;case O7:case D7:if(UL(Q)){S1=x2,n2=null,tV(z);break}z=function(){S1!==O7&&S1!==D7||g1!==w||(S1=wY),D8(w)},Q.then(z,z);break w;case CJ:S1=wY;break w;case JA:S1=FH;break w;case wY:UL(Q)?(S1=x2,n2=null,tV(z)):(S1=x2,n2=null,x9(w,z,Q,wY));break;case FH:var H=null;switch(K1.tag){case 26:H=K1.memoizedState;case 5:case 27:var B=K1;if(H?cF(H):B.stateNode.complete){S1=x2,n2=null;var j=B.sibling;if(j!==null)K1=j;else{var O=B.return;O!==null?(K1=O,$3(O)):K1=null}break z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}S1=x2,n2=null,x9(w,z,Q,FH);break;case yJ:S1=x2,n2=null,x9(w,z,Q,yJ);break;case NH:mK(),e1=t3;break w;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Y0.actQueue!==null?oV():xv();break}catch(i){iV(w,i)}while(1);if(O$(),Y0.H=$,Y0.A=G,M1=Z,K1!==null)return k6;return g1=null,Q1=0,N$(),e1}function xv(){for(;K1!==null&&!Dh();)nV(K1)}function nV(w){var z=w.alternate;(w.mode&Y1)!==w1?(RW(w),z=n(w,PK,z,w,g8),gW(w)):z=n(w,PK,z,w,g8),w.memoizedProps=w.pendingProps,z===null?$3(w):K1=z}function tV(w){var z=n(w,vv,w);w.memoizedProps=w.pendingProps,z===null?$3(w):K1=z}function vv(w){var z=w.alternate,Z=(w.mode&Y1)!==w1;switch(Z&&RW(w),w.tag){case 15:case 0:z=WV(z,w,w.pendingProps,w.type,void 0,Q1);break;case 11:z=WV(z,w,w.pendingProps,w.type.render,w.ref,Q1);break;case 5:nW(w);default:LV(z,w),w=K1=nB(w,g8),z=PK(z,w,g8)}return Z&&gW(w),z}function x9(w,z,Z,$){O$(),nW(z),t9=null,xJ=0;var G=z.return;try{if(Hv(w,G,z,Z,Q1)){e1=SJ,s$(w,g2(Z,w.current)),K1=null;return}}catch(Q){if(G!==null)throw K1=G,Q;e1=SJ,s$(w,g2(Z,w.current)),K1=null;return}if(z.flags&32768){if(F1||$===e3)w=!0;else if(Gz||(Q1&536870912)!==0)w=!1;else if(V4=w=!0,$===O7||$===D7||$===CJ||$===yJ)$=a2.current,$!==null&&$.tag===13&&($.flags|=16384);eV(z,w)}else $3(z)}function $3(w){var z=w;do{if((z.flags&32768)!==0){eV(z,V4);return}var Z=z.alternate;if(w=z.return,RW(z),Z=n(z,Bv,Z,z,g8),(z.mode&Y1)!==w1&&YL(z),Z!==null){K1=Z;return}if(z=z.sibling,z!==null){K1=z;return}K1=z=w}while(z!==null);e1===k6&&(e1=ZA)}function eV(w,z){do{var Z=Lv(w.alternate,w);if(Z!==null){Z.flags&=32767,K1=Z;return}if((w.mode&Y1)!==w1){YL(w),Z=w.actualDuration;for(var $=w.child;$!==null;)Z+=$.actualDuration,$=$.sibling;w.actualDuration=Z}if(Z=w.return,Z!==null&&(Z.flags|=32768,Z.subtreeFlags=0,Z.deletions=null),!z&&(w=w.sibling,w!==null)){K1=w;return}K1=w=Z}while(w!==null);e1=t3,K1=null}function uK(w,z,Z,$,G,Q,H,B,j,O,i,a,y,Z0){w.cancelPendingCommit=null;do cZ();while(Mw!==A4);if(l5.flushLegacyContextWarning(),l5.flushPendingUnsafeLifecycleWarnings(),(M1&(bw|o2))!==dw)throw Error("Should not already be working.");if(R2(Z),O===M7?MW(y,Z0,Z,Ww):$!==null?ex(y,Z0,Z,$,z!==null&&z.alternate!==null&&z.alternate.memoizedState.isDehydrated&&(z.flags&256)!==0,Ww):tx(y,Z0,Z,Ww),z!==null){if(Z===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),z===w.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(Q=z.lanes|z.childLanes,Q|=aU,Gw(w,Z,Q,H,B,j),w===g1&&(K1=g1=null,Q1=0),Qz=z,j4=w,a5=Z,OH=Q,TH=G,HA=$,DH=Z0,_A=a,s5=XY,qA=null,z.actualDuration!==0||(z.subtreeFlags&10256)!==0||(z.flags&10256)!==0?(w.callbackNode=null,w.callbackPriority=0,bv(b9,function(){return cJ=window.event,s5===XY&&(s5=MH),XF(),null})):(w.callbackNode=null,w.callbackPriority=0),_6=null,K4=Fw(),a!==null&&wv(Z0,K4,a,Ww),$=(z.flags&13878)!==0,(z.subtreeFlags&13878)!==0||$){$=Y0.T,Y0.T=null,G=I1.p,I1.p=i2,H=M1,M1|=o2;try{jv(w,z,Z)}finally{M1=H,I1.p=G,Y0.T=$}}Mw=QA,wF(),zF(),ZF()}}function wF(){if(Mw===QA){Mw=A4;var w=j4,z=Qz,Z=a5,$=(z.flags&13878)!==0;if((z.subtreeFlags&13878)!==0||$){$=Y0.T,Y0.T=null;var G=I1.p;I1.p=i2;var Q=M1;M1|=o2;try{$z=Z,Yz=w,v$(),PV(z,w),Yz=$z=null,Z=RH;var H=dB(w.containerInfo),B=Z.focusedElem,j=Z.selectionRange;if(H!==B&&B&&B.ownerDocument&&mB(B.ownerDocument.documentElement,B)){if(j!==null&&kW(B)){var{start:O,end:i}=j;if(i===void 0&&(i=O),"selectionStart"in B)B.selectionStart=O,B.selectionEnd=Math.min(i,B.value.length);else{var a=B.ownerDocument||document,y=a&&a.defaultView||window;if(y.getSelection){var Z0=y.getSelection(),M0=B.textContent.length,v0=Math.min(j.start,M0),d1=j.end===void 0?v0:Math.min(j.end,M0);!Z0.extend&&v0>d1&&(H=d1,d1=v0,v0=H);var A1=fB(B,v0),C=fB(B,d1);if(A1&&C&&(Z0.rangeCount!==1||Z0.anchorNode!==A1.node||Z0.anchorOffset!==A1.offset||Z0.focusNode!==C.node||Z0.focusOffset!==C.offset)){var f=a.createRange();f.setStart(A1.node,A1.offset),Z0.removeAllRanges(),v0>d1?(Z0.addRange(f),Z0.extend(C.node,C.offset)):(f.setEnd(C.node,C.offset),Z0.addRange(f))}}}}a=[];for(Z0=B;Z0=Z0.parentNode;)Z0.nodeType===1&&a.push({element:Z0,left:Z0.scrollLeft,top:Z0.scrollTop});typeof B.focus==="function"&&B.focus();for(B=0;B<a.length;B++){var l=a[B];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}kY=!!yH,RH=yH=null}finally{M1=Q,I1.p=G,Y0.T=$}}w.current=z,Mw=WA}}function zF(){if(Mw===WA){Mw=A4;var w=qA;if(w!==null){K4=Fw();var z=H6,Z=K4;!c1||Z<=z||(B6?B6.run(console.timeStamp.bind(console,w,z,Z,B1,_1,"secondary-light")):console.timeStamp(w,z,Z,B1,_1,"secondary-light"))}w=j4,z=Qz,Z=a5;var $=(z.flags&8772)!==0;if((z.subtreeFlags&8772)!==0||$){$=Y0.T,Y0.T=null;var G=I1.p;I1.p=i2;var Q=M1;M1|=o2;try{$z=Z,Yz=w,v$(),TV(w,z.alternate,z),Yz=$z=null}finally{M1=Q,I1.p=G,Y0.T=$}}w=DH,z=_A,H6=Fw(),w=z===null?w:K4,z=H6,Z=s5===jH,$=Ww,_6!==null?iB(w,z,_6,!1,$):!c1||z<=w||($?$.run(console.timeStamp.bind(console,Z?"Commit Interrupted View Transition":"Commit",w,z,B1,_1,Z?"error":"secondary-dark")):console.timeStamp(Z?"Commit Interrupted View Transition":"Commit",w,z,B1,_1,Z?"error":"secondary-dark")),Mw=KA}}function ZF(){if(Mw===UA||Mw===KA){if(Mw===UA){var w=H6;H6=Fw();var z=H6,Z=s5===jH;!c1||z<=w||(B6?B6.run(console.timeStamp.bind(console,Z?"Interrupted View Transition":"Starting Animation",w,z,B1,_1,Z?"error":"secondary-light")):console.timeStamp(Z?"Interrupted View Transition":"Starting Animation",w,z,B1,_1,Z?" error":"secondary-light")),s5!==jH&&(s5=GA)}Mw=A4,Th(),w=j4;var $=Qz;z=a5,Z=HA;var G=$.actualDuration!==0||($.subtreeFlags&10256)!==0||($.flags&10256)!==0;G?Mw=$Y:(Mw=A4,Qz=j4=null,JF(w,w.pendingLanes),x7=0,mJ=null);var Q=w.pendingLanes;if(Q===0&&(k4=null),G||QF(w),Q=T(z),$=$.stateNode,z2&&typeof z2.onCommitFiberRoot==="function")try{var H=($.current.flags&128)===128;switch(Q){case i2:var B=TU;break;case p5:B=xU;break;case I8:B=b9;break;case M3:B=vU;break;default:B=b9}z2.onCommitFiberRoot(S9,$,B,H)}catch(a){E8||(E8=!0,console.error("React instrumentation encountered an error: %o",a))}if(P8&&w.memoizedUpdaters.clear(),Ov(),Z!==null){H=Y0.T,B=I1.p,I1.p=i2,Y0.T=null;try{var j=w.onRecoverableError;for($=0;$<Z.length;$++){var O=Z[$],i=hv(O.stack);n(O.source,j,O.value,i)}}finally{Y0.T=H,I1.p=B}}(a5&3)!==0&&cZ(),D8(w),Q=w.pendingLanes,(z&261930)!==0&&(Q&42)!==0?(d3=!0,w===xH?fJ++:(fJ=0,xH=w)):fJ=0,G||K7(z,H6),iZ(0,!1)}}function hv(w){return w={componentStack:w},Object.defineProperty(w,"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.')}}),w}function JF(w,z){(w.pooledCacheLanes&=z)===0&&(z=w.pooledCache,z!=null&&(w.pooledCache=null,vZ(z)))}function cZ(){return wF(),zF(),ZF(),XF()}function XF(){if(Mw!==$Y)return!1;var w=j4,z=OH;OH=0;var Z=T(a5),$=I8===0||I8>Z?I8:Z;Z=Y0.T;var G=I1.p;try{I1.p=$,Y0.T=null;var Q=TH;TH=null,$=j4;var H=a5;if(Mw=A4,Qz=j4=null,a5=0,(M1&(bw|o2))!==dw)throw Error("Cannot flush passive effects while already rendering.");R2(H),vH=!0,YY=!1;var B=0;if(_6=null,B=gw(),s5===GA)TZ(H6,B,B6);else{var j=H6,O=B,i=s5===MH;!c1||O<=j||(Ww?Ww.run(console.timeStamp.bind(console,i?"Waiting for Paint":"Waiting",j,O,B1,_1,"secondary-light")):console.timeStamp(i?"Waiting for Paint":"Waiting",j,O,B1,_1,"secondary-light"))}j=M1,M1|=o2;var a=$.current;v$(),fV(a);var y=$.current;a=DH,v$(),CV($,y,H,Q,a),QF($),M1=j;var Z0=gw();if(y=B,a=Ww,_6!==null?iB(y,Z0,_6,!0,a):!c1||Z0<=y||(a?a.run(console.timeStamp.bind(console,"Remaining Effects",y,Z0,B1,_1,"secondary-dark")):console.timeStamp("Remaining Effects",y,Z0,B1,_1,"secondary-dark")),K7(H,Z0),iZ(0,!1),YY?$===mJ?x7++:(x7=0,mJ=$):x7=0,YY=vH=!1,z2&&typeof z2.onPostCommitFiberRoot==="function")try{z2.onPostCommitFiberRoot(S9,$)}catch(v0){E8||(E8=!0,console.error("React instrumentation encountered an error: %o",v0))}var M0=$.current.stateNode;return M0.effectDuration=0,M0.passiveEffectDuration=0,!0}finally{I1.p=G,Y0.T=Z,JF(w,z)}}function $F(w,z,Z){z=g2(Z,z),GL(z),z=kK(w.stateNode,z,2),w=a6(w,z,2),w!==null&&(W1(w,2),D8(w))}function P1(w,z,Z){if(Wz=!1,w.tag===3)$F(w,w,Z);else{for(;z!==null;){if(z.tag===3){$F(z,w,Z);return}if(z.tag===1){var $=z.stateNode;if(typeof z.type.getDerivedStateFromError==="function"||typeof $.componentDidCatch==="function"&&(k4===null||!k4.has($))){w=g2(Z,w),GL(w),Z=AK(2),$=a6(z,Z,2),$!==null&&(jK(Z,$,z,w),W1($,2),D8($));return}}z=z.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.
|
|
154
|
+
|
|
155
|
+
Error message:
|
|
156
|
+
|
|
157
|
+
%s`,Z)}}function pK(w,z,Z){var $=w.pingCache;if($===null){$=w.pingCache=new iE;var G=new Set;$.set(z,G)}else G=$.get(z),G===void 0&&(G=new Set,$.set(z,G));G.has(Z)||(kH=!0,G.add(Z),$=Ev.bind(null,w,z,Z),P8&&lZ(w,Z),z.then($,$))}function Ev(w,z,Z){var $=w.pingCache;$!==null&&$.delete(z),w.pingedLanes|=w.suspendedLanes&Z,w.warmLanes&=~Z,(Z&127)!==0?0>C8&&(U4=C8=Fw(),BJ=C3("Promise Resolved"),H4=y3):(Z&4194048)!==0&&0>V5&&(y8=V5=Fw(),VJ=C3("Promise Resolved"),zH=y3),uV()&&Y0.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
158
|
+
|
|
159
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
160
|
+
|
|
161
|
+
act(() => {
|
|
162
|
+
/* finish loading suspended data */
|
|
163
|
+
});
|
|
164
|
+
/* assert on the output */
|
|
165
|
+
|
|
166
|
+
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`),g1===w&&(Q1&Z)===Z&&(e1===L4||e1===n3&&(Q1&62914560)===Q1&&gw()-ZY<$A?(M1&bw)===dw&&T9(w,0):AH|=Z,T7===Q1&&(T7=0)),D8(w)}function YF(w,z){z===0&&(z=q1()),w=w2(w,z),w!==null&&(W1(w,z),D8(w))}function Pv(w){var z=w.memoizedState,Z=0;z!==null&&(Z=z.retryLane),YF(w,Z)}function Iv(w,z){var Z=0;switch(w.tag){case 31:case 13:var{stateNode:$,memoizedState:G}=w;G!==null&&(Z=G.retryLane);break;case 19:$=w.stateNode;break;case 22:$=w.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}$!==null&&$.delete(z),YF(w,Z)}function cK(w,z,Z){if((z.subtreeFlags&67117056)!==0)for(z=z.child;z!==null;){var $=w,G=z,Q=G.type===V3;Q=Z||Q,G.tag!==22?G.flags&67108864?Q&&n(G,GF,$,G):cK($,G,Q):G.memoizedState===null&&(Q&&G.flags&8192?n(G,GF,$,G):G.subtreeFlags&67108864&&n(G,cK,$,G,Q)),z=z.sibling}}function GF(w,z){C0(!0);try{bV(z),mV(z),SV(w,z.alternate,z,!1),yV(w,z,0,null,!1,0)}finally{C0(!1)}}function QF(w){var z=!0;w.current.mode&(Z2|c5)||(z=!1),cK(w,w.current,z)}function WF(w){if((M1&bw)===dw){var z=w.tag;if(z===3||z===1||z===0||z===11||z===14||z===15){if(z=d(w)||"ReactComponent",GY!==null){if(GY.has(z))return;GY.add(z)}else GY=new Set([z]);n(w,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 lZ(w,z){P8&&w.memoizedUpdaters.forEach(function(Z){J1(w,Z,z)})}function bv(w,z){var Z=Y0.actQueue;return Z!==null?(Z.push(z),sE):DU(w,z)}function Sv(w){uV()&&Y0.actQueue===null&&n(w,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
167
|
+
|
|
168
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
169
|
+
|
|
170
|
+
act(() => {
|
|
171
|
+
/* fire events that update state */
|
|
172
|
+
});
|
|
173
|
+
/* assert on the output */
|
|
174
|
+
|
|
175
|
+
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`,d(w))})}function D8(w){w!==Kz&&w.next===null&&(Kz===null?QY=Kz=w:Kz=Kz.next=w),WY=!0,Y0.actQueue!==null?EH||(EH=!0,_F()):hH||(hH=!0,_F())}function iZ(w,z){if(!PH&&WY){PH=!0;do{var Z=!1;for(var $=QY;$!==null;){if(!z)if(w!==0){var G=$.pendingLanes;if(G===0)var Q=0;else{var{suspendedLanes:H,pingedLanes:B}=$;Q=(1<<31-K2(42|w)+1)-1,Q&=G&~(H&~B),Q=Q&201326741?Q&201326741|1:Q?Q|2:0}Q!==0&&(Z=!0,HF($,Q))}else Q=Q1,Q=x0($,$===g1?Q:0,$.cancelPendingCommit!==null||$.timeoutHandle!==P7),(Q&3)===0||l0($,Q)||(Z=!0,HF($,Q));$=$.next}}while(Z);PH=!1}}function Cv(){cJ=window.event,lK()}function lK(){WY=EH=hH=!1;var w=0;M4!==0&&uv()&&(w=M4);for(var z=gw(),Z=null,$=QY;$!==null;){var G=$.next,Q=KF($,z);if(Q===0)$.next=null,Z===null?QY=G:Z.next=G,G===null&&(Kz=Z);else if(Z=$,w!==0||(Q&3)!==0)WY=!0;$=G}Mw!==A4&&Mw!==$Y||iZ(w,!1),M4!==0&&(M4=0)}function KF(w,z){for(var{suspendedLanes:Z,pingedLanes:$,expirationTimes:G}=w,Q=w.pendingLanes&-62914561;0<Q;){var H=31-K2(Q),B=1<<H,j=G[H];if(j===-1){if((B&Z)===0||(B&$)!==0)G[H]=y0(B,z)}else j<=z&&(w.expiredLanes|=B);Q&=~B}if(z=g1,Z=Q1,Z=x0(w,w===z?Z:0,w.cancelPendingCommit!==null||w.timeoutHandle!==P7),$=w.callbackNode,Z===0||w===z&&(S1===O7||S1===D7)||w.cancelPendingCommit!==null)return $!==null&&iK($),w.callbackNode=null,w.callbackPriority=0;if((Z&3)===0||l0(w,Z)){if(z=Z&-Z,z!==w.callbackPriority||Y0.actQueue!==null&&$!==IH)iK($);else return z;switch(T(Z)){case i2:case p5:Z=xU;break;case I8:Z=b9;break;case M3:Z=vU;break;default:Z=b9}return $=UF.bind(null,w),Y0.actQueue!==null?(Y0.actQueue.push($),Z=IH):Z=DU(Z,$),w.callbackPriority=z,w.callbackNode=Z,z}return $!==null&&iK($),w.callbackPriority=2,w.callbackNode=null,2}function UF(w,z){if(d3=m3=!1,cJ=window.event,Mw!==A4&&Mw!==$Y)return w.callbackNode=null,w.callbackPriority=0,null;var Z=w.callbackNode;if(s5===XY&&(s5=MH),cZ()&&w.callbackNode!==Z)return null;var $=Q1;if($=x0(w,w===g1?$:0,w.cancelPendingCommit!==null||w.timeoutHandle!==P7),$===0)return null;return cV(w,$,z),KF(w,gw()),w.callbackNode!=null&&w.callbackNode===Z?UF.bind(null,w):null}function HF(w,z){if(cZ())return null;m3=d3,d3=!1,cV(w,z,!0)}function iK(w){w!==IH&&w!==null&&Oh(w)}function _F(){Y0.actQueue!==null&&Y0.actQueue.push(function(){return lK(),null}),$P(function(){(M1&(bw|o2))!==dw?DU(TU,Cv):lK()})}function rK(){if(M4===0){var w=V7;w===0&&(w=k3,k3<<=1,(k3&261888)===0&&(k3=256)),M4=w}return M4}function qF(w){if(w==null||typeof w==="symbol"||typeof w==="boolean")return null;if(typeof w==="function")return w;return _0(w,"action"),MZ(""+w)}function BF(w,z){var Z=z.ownerDocument.createElement("input");return Z.name=z.name,Z.value=z.value,w.id&&Z.setAttribute("form",w.id),z.parentNode.insertBefore(Z,z),w=new FormData(w),Z.parentNode.removeChild(Z),w}function yv(w,z,Z,$,G){if(z==="submit"&&Z&&Z.stateNode===G){var Q=qF((G[U2]||null).action),H=$.submitter;H&&(z=(z=H[U2]||null)?qF(z.formAction):H.getAttribute("formAction"),z!==null&&(Q=z,H=null));var B=new v3("action","action",null,$,G);w.push({event:B,listeners:[{instance:null,listener:function(){if($.defaultPrevented){if(M4!==0){var j=H?BF(G,H):new FormData(G),O={pending:!0,data:j,method:G.method,action:Q};Object.freeze(O),_K(Z,O,null,j)}}else typeof Q==="function"&&(B.preventDefault(),j=H?BF(G,H):new FormData(G),O={pending:!0,data:j,method:G.method,action:Q},Object.freeze(O),_K(Z,O,Q,j))},currentTarget:G}]})}}function Y3(w,z,Z){w.currentTarget=Z;try{z(w)}catch($){cU($)}w.currentTarget=null}function LF(w,z){z=(z&4)!==0;for(var Z=0;Z<w.length;Z++){var $=w[Z];w:{var G=void 0,Q=$.event;if($=$.listeners,z)for(var H=$.length-1;0<=H;H--){var B=$[H],j=B.instance,O=B.currentTarget;if(B=B.listener,j!==G&&Q.isPropagationStopped())break w;j!==null?n(j,Y3,Q,B,O):Y3(Q,B,O),G=j}else for(H=0;H<$.length;H++){if(B=$[H],j=B.instance,O=B.currentTarget,B=B.listener,j!==G&&Q.isPropagationStopped())break w;j!==null?n(j,Y3,Q,B,O):Y3(Q,B,O),G=j}}}}function k1(w,z){bH.has(w)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',w);var Z=z[hU];Z===void 0&&(Z=z[hU]=new Set);var $=w+"__bubble";Z.has($)||(VF(z,w,2,!1),Z.add($))}function aK(w,z,Z){bH.has(w)&&!z&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',w);var $=0;z&&($|=4),VF(Z,w,$,z)}function sK(w){if(!w[KY]){w[KY]=!0,_N.forEach(function(Z){Z!=="selectionchange"&&(bH.has(Z)||aK(Z,!1,w),aK(Z,!0,w))});var z=w.nodeType===9?w:w.ownerDocument;z===null||z[KY]||(z[KY]=!0,aK("selectionchange",!1,z))}}function VF(w,z,Z,$){switch(oF(z)){case i2:var G=Lh;break;case p5:G=Vh;break;default:G=UU}Z=G.bind(null,z,Z,w),G=void 0,!SU||z!=="touchstart"&&z!=="touchmove"&&z!=="wheel"||(G=!0),$?G!==void 0?w.addEventListener(z,Z,{capture:!0,passive:G}):w.addEventListener(z,Z,!0):G!==void 0?w.addEventListener(z,Z,{passive:G}):w.addEventListener(z,Z,!1)}function oK(w,z,Z,$,G){var Q=$;if((z&1)===0&&(z&2)===0&&$!==null)w:for(;;){if($===null)return;var H=$.tag;if(H===3||H===4){var B=$.stateNode.containerInfo;if(B===G)break;if(H===4)for(H=$.return;H!==null;){var j=H.tag;if((j===3||j===4)&&H.stateNode.containerInfo===G)return;H=H.return}for(;B!==null;){if(H=T0(B),H===null)return;if(j=H.tag,j===5||j===6||j===26||j===27){$=Q=H;continue w}B=B.parentNode}}$=$.return}vB(function(){var O=Q,i=FW(Z),a=[];w:{var y=oN.get(w);if(y!==void 0){var Z0=v3,M0=w;switch(w){case"keypress":if(q$(Z)===0)break w;case"keydown":case"keyup":Z0=UE;break;case"focusin":M0="focus",Z0=gU;break;case"focusout":M0="blur",Z0=gU;break;case"beforeblur":case"afterblur":Z0=gU;break;case"click":if(Z.button===2)break w;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z0=yN;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z0=eh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z0=qE;break;case iN:case rN:case aN:Z0=ZE;break;case sN:Z0=LE;break;case"scroll":case"scrollend":Z0=nh;break;case"wheel":Z0=FE;break;case"copy":case"cut":case"paste":Z0=XE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z0=gN;break;case"toggle":case"beforetoggle":Z0=kE}var v0=(z&4)!==0,d1=!v0&&(w==="scroll"||w==="scrollend"),A1=v0?y!==null?y+"Capture":null:y;v0=[];for(var C=O,f;C!==null;){var l=C;if(f=l.stateNode,l=l.tag,l!==5&&l!==26&&l!==27||f===null||A1===null||(l=OZ(C,A1),l!=null&&v0.push(rZ(C,l,f))),d1)break;C=C.return}0<v0.length&&(y=new Z0(y,M0,null,Z,i),a.push({event:y,listeners:v0}))}}if((z&7)===0){w:{if(y=w==="mouseover"||w==="pointerover",Z0=w==="mouseout"||w==="pointerout",y&&Z!==XJ&&(M0=Z.relatedTarget||Z.fromElement)&&(T0(M0)||M0[X4]))break w;if(Z0||y){if(y=i.window===i?i:(y=i.ownerDocument)?y.defaultView||y.parentWindow:window,Z0){if(M0=Z.relatedTarget||Z.toElement,Z0=O,M0=M0?T0(M0):null,M0!==null&&(d1=v(M0),v0=M0.tag,M0!==d1||v0!==5&&v0!==27&&v0!==6))M0=null}else Z0=null,M0=O;if(Z0!==M0){if(v0=yN,l="onMouseLeave",A1="onMouseEnter",C="mouse",w==="pointerout"||w==="pointerover")v0=gN,l="onPointerLeave",A1="onPointerEnter",C="pointer";if(d1=Z0==null?y:u0(Z0),f=M0==null?y:u0(M0),y=new v0(l,C+"leave",Z0,Z,i),y.target=d1,y.relatedTarget=f,l=null,T0(i)===O&&(v0=new v0(A1,C+"enter",M0,Z,i),v0.target=f,v0.relatedTarget=d1,l=v0),d1=l,Z0&&M0)z:{v0=Rv,A1=Z0,C=M0,f=0;for(l=A1;l;l=v0(l))f++;l=0;for(var W0=C;W0;W0=v0(W0))l++;for(;0<f-l;)A1=v0(A1),f--;for(;0<l-f;)C=v0(C),l--;for(;f--;){if(A1===C||C!==null&&A1===C.alternate){v0=A1;break z}A1=v0(A1),C=v0(C)}v0=null}else v0=null;Z0!==null&&FF(a,y,Z0,v0,!1),M0!==null&&d1!==null&&FF(a,d1,M0,v0,!0)}}}w:{if(y=O?u0(O):window,Z0=y.nodeName&&y.nodeName.toLowerCase(),Z0==="select"||Z0==="input"&&y.type==="file")var D0=CB;else if(bB(y))if(cN)D0=sx;else{D0=rx;var Z1=ix}else Z0=y.nodeName,!Z0||Z0.toLowerCase()!=="input"||y.type!=="checkbox"&&y.type!=="radio"?O&&jZ(O.elementType)&&(D0=CB):D0=ax;if(D0&&(D0=D0(w,O))){SB(a,D0,Z,i);break w}Z1&&Z1(w,y,O),w==="focusout"&&O&&y.type==="number"&&O.memoizedProps.value!=null&&HW(y,"number",y.value)}switch(Z1=O?u0(O):window,w){case"focusin":if(bB(Z1)||Z1.contentEditable==="true")d9=Z1,mU=O,UJ=null;break;case"focusout":UJ=mU=d9=null;break;case"mousedown":dU=!0;break;case"contextmenu":case"mouseup":case"dragend":dU=!1,uB(a,Z,i);break;case"selectionchange":if(OE)break;case"keydown":case"keyup":uB(a,Z,i)}var i0;if(fU)w:{switch(w){case"compositionstart":var m0="onCompositionStart";break w;case"compositionend":m0="onCompositionEnd";break w;case"compositionupdate":m0="onCompositionUpdate";break w}m0=void 0}else m9?PB(w,Z)&&(m0="onCompositionEnd"):w==="keydown"&&Z.keyCode===fN&&(m0="onCompositionStart");if(m0&&(mN&&Z.locale!=="ko"&&(m9||m0!=="onCompositionStart"?m0==="onCompositionEnd"&&m9&&(i0=hB()):($4=i,CU=("value"in $4)?$4.value:$4.textContent,m9=!0)),Z1=G3(O,m0),0<Z1.length&&(m0=new RN(m0,w,null,Z,i),a.push({event:m0,listeners:Z1}),i0?m0.data=i0:(i0=IB(Z),i0!==null&&(m0.data=i0)))),i0=jE?ux(w,Z):px(w,Z))m0=G3(O,"onBeforeInput"),0<m0.length&&(Z1=new YE("onBeforeInput","beforeinput",null,Z,i),a.push({event:Z1,listeners:m0}),Z1.data=i0);yv(a,w,O,Z,i)}LF(a,z)})}function rZ(w,z,Z){return{instance:w,listener:z,currentTarget:Z}}function G3(w,z){for(var Z=z+"Capture",$=[];w!==null;){var G=w,Q=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||Q===null||(G=OZ(w,Z),G!=null&&$.unshift(rZ(w,G,Q)),G=OZ(w,z),G!=null&&$.push(rZ(w,G,Q))),w.tag===3)return $;w=w.return}return[]}function Rv(w){if(w===null)return null;do w=w.return;while(w&&w.tag!==5&&w.tag!==27);return w?w:null}function FF(w,z,Z,$,G){for(var Q=z._reactName,H=[];Z!==null&&Z!==$;){var B=Z,j=B.alternate,O=B.stateNode;if(B=B.tag,j!==null&&j===$)break;B!==5&&B!==26&&B!==27||O===null||(j=O,G?(O=OZ(Z,Q),O!=null&&H.unshift(rZ(Z,O,j))):G||(O=OZ(Z,Q),O!=null&&H.push(rZ(Z,O,j)))),Z=Z.return}H.length!==0&&w.push({event:z,listeners:H})}function nK(w,z){gx(w,z),w!=="input"&&w!=="textarea"&&w!=="select"||z==null||z.value!==null||SN||(SN=!0,w==="select"&&z.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.",w):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",w));var Z={registrationNameDependencies:U7,possibleRegistrationNames:EU};jZ(w)||typeof z.is==="string"||mx(w,z,Z),z.contentEditable&&!z.suppressContentEditableWarning&&z.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 Rw(w,z,Z,$){z!==Z&&(Z=e6(Z),e6(z)!==Z&&($[w]=z))}function gv(w,z,Z){z.forEach(function($){Z[AF($)]=$==="style"?eK(w):w.getAttribute($)})}function T8(w,z){z===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",w,w,w):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",w,typeof z)}function NF(w,z){return w=w.namespaceURI===D3||w.namespaceURI===y9?w.ownerDocument.createElementNS(w.namespaceURI,w.tagName):w.ownerDocument.createElement(w.tagName),w.innerHTML=z,w.innerHTML}function e6(w){return j1(w)&&(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.",I0(w)),b0(w)),(typeof w==="string"?w:""+w).replace(oE,`
|
|
176
|
+
`).replace(nE,"")}function kF(w,z){return z=e6(z),e6(w)===z?!0:!1}function y1(w,z,Z,$,G,Q){switch(Z){case"children":if(typeof $==="string")_$($,z,!1),z==="body"||z==="textarea"&&$===""||AZ(w,$);else if(typeof $==="number"||typeof $==="bigint")_$(""+$,z,!1),z!=="body"&&AZ(w,""+$);break;case"className":s4(w,"class",$);break;case"tabIndex":s4(w,"tabindex",$);break;case"dir":case"role":case"viewBox":case"width":case"height":s4(w,Z,$);break;case"style":DB(w,$,Q);break;case"data":if(z!=="object"){s4(w,"data",$);break}case"src":case"href":if($===""&&(z!=="a"||Z!=="href")){Z==="src"?console.error('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.',Z,Z):console.error('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.',Z,Z),w.removeAttribute(Z);break}if($==null||typeof $==="function"||typeof $==="symbol"||typeof $==="boolean"){w.removeAttribute(Z);break}_0($,Z),$=MZ(""+$),w.setAttribute(Z,$);break;case"action":case"formAction":if($!=null&&(z==="form"?Z==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof $==="function"&&(G.encType==null&&G.method==null||_Y||(_Y=!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.")),G.target==null||HY||(HY=!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."))):z==="input"||z==="button"?Z==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):z!=="input"||G.type==="submit"||G.type==="image"||UY?z!=="button"||G.type==null||G.type==="submit"||UY?typeof $==="function"&&(G.name==null||NA||(NA=!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.')),G.formEncType==null&&G.formMethod==null||_Y||(_Y=!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.")),G.formTarget==null||HY||(HY=!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."))):(UY=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(UY=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):Z==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof $==="function"){w.setAttribute(Z,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof Q==="function"&&(Z==="formAction"?(z!=="input"&&y1(w,z,"name",G.name,G,null),y1(w,z,"formEncType",G.formEncType,G,null),y1(w,z,"formMethod",G.formMethod,G,null),y1(w,z,"formTarget",G.formTarget,G,null)):(y1(w,z,"encType",G.encType,G,null),y1(w,z,"method",G.method,G,null),y1(w,z,"target",G.target,G,null)));if($==null||typeof $==="symbol"||typeof $==="boolean"){w.removeAttribute(Z);break}_0($,Z),$=MZ(""+$),w.setAttribute(Z,$);break;case"onClick":$!=null&&(typeof $!=="function"&&T8(Z,$),w.onclick=e8);break;case"onScroll":$!=null&&(typeof $!=="function"&&T8(Z,$),k1("scroll",w));break;case"onScrollEnd":$!=null&&(typeof $!=="function"&&T8(Z,$),k1("scrollend",w));break;case"dangerouslySetInnerHTML":if($!=null){if(typeof $!=="object"||!("__html"in $))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Z=$.__html,Z!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");w.innerHTML=Z}}break;case"multiple":w.multiple=$&&typeof $!=="function"&&typeof $!=="symbol";break;case"muted":w.muted=$&&typeof $!=="function"&&typeof $!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if($==null||typeof $==="function"||typeof $==="boolean"||typeof $==="symbol"){w.removeAttribute("xlink:href");break}_0($,Z),Z=MZ(""+$),w.setAttributeNS(v7,"xlink:href",Z);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":$!=null&&typeof $!=="function"&&typeof $!=="symbol"?(_0($,Z),w.setAttribute(Z,""+$)):w.removeAttribute(Z);break;case"inert":$!==""||qY[Z]||(qY[Z]=!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.",Z));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":$&&typeof $!=="function"&&typeof $!=="symbol"?w.setAttribute(Z,""):w.removeAttribute(Z);break;case"capture":case"download":$===!0?w.setAttribute(Z,""):$!==!1&&$!=null&&typeof $!=="function"&&typeof $!=="symbol"?(_0($,Z),w.setAttribute(Z,$)):w.removeAttribute(Z);break;case"cols":case"rows":case"size":case"span":$!=null&&typeof $!=="function"&&typeof $!=="symbol"&&!isNaN($)&&1<=$?(_0($,Z),w.setAttribute(Z,$)):w.removeAttribute(Z);break;case"rowSpan":case"start":$==null||typeof $==="function"||typeof $==="symbol"||isNaN($)?w.removeAttribute(Z):(_0($,Z),w.setAttribute(Z,$));break;case"popover":k1("beforetoggle",w),k1("toggle",w),d6(w,"popover",$);break;case"xlinkActuate":g5(w,v7,"xlink:actuate",$);break;case"xlinkArcrole":g5(w,v7,"xlink:arcrole",$);break;case"xlinkRole":g5(w,v7,"xlink:role",$);break;case"xlinkShow":g5(w,v7,"xlink:show",$);break;case"xlinkTitle":g5(w,v7,"xlink:title",$);break;case"xlinkType":g5(w,v7,"xlink:type",$);break;case"xmlBase":g5(w,SH,"xml:base",$);break;case"xmlLang":g5(w,SH,"xml:lang",$);break;case"xmlSpace":g5(w,SH,"xml:space",$);break;case"is":Q!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),d6(w,"is",$);break;case"innerText":case"textContent":break;case"popoverTarget":kA||$==null||typeof $!=="object"||(kA=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",$));default:!(2<Z.length)||Z[0]!=="o"&&Z[0]!=="O"||Z[1]!=="n"&&Z[1]!=="N"?(Z=TB(Z),d6(w,Z,$)):U7.hasOwnProperty(Z)&&$!=null&&typeof $!=="function"&&T8(Z,$)}}function tK(w,z,Z,$,G,Q){switch(Z){case"style":DB(w,$,Q);break;case"dangerouslySetInnerHTML":if($!=null){if(typeof $!=="object"||!("__html"in $))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Z=$.__html,Z!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");w.innerHTML=Z}}break;case"children":typeof $==="string"?AZ(w,$):(typeof $==="number"||typeof $==="bigint")&&AZ(w,""+$);break;case"onScroll":$!=null&&(typeof $!=="function"&&T8(Z,$),k1("scroll",w));break;case"onScrollEnd":$!=null&&(typeof $!=="function"&&T8(Z,$),k1("scrollend",w));break;case"onClick":$!=null&&(typeof $!=="function"&&T8(Z,$),w.onclick=e8);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(U7.hasOwnProperty(Z))$!=null&&typeof $!=="function"&&T8(Z,$);else w:{if(Z[0]==="o"&&Z[1]==="n"&&(G=Z.endsWith("Capture"),z=Z.slice(2,G?Z.length-7:void 0),Q=w[U2]||null,Q=Q!=null?Q[Z]:null,typeof Q==="function"&&w.removeEventListener(z,Q,G),typeof $==="function")){typeof Q!=="function"&&Q!==null&&(Z in w?w[Z]=null:w.hasAttribute(Z)&&w.removeAttribute(Z)),w.addEventListener(z,$,G);break w}Z in w?w[Z]=$:$===!0?w.setAttribute(Z,""):d6(w,Z,$)}}}function aw(w,z,Z){switch(nK(z,Z),z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":k1("error",w),k1("load",w);var $=!1,G=!1,Q;for(Q in Z)if(Z.hasOwnProperty(Q)){var H=Z[Q];if(H!=null)switch(Q){case"src":$=!0;break;case"srcSet":G=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:y1(w,z,Q,H,Z,null)}}G&&y1(w,z,"srcSet",Z.srcSet,Z,null),$&&y1(w,z,"src",Z.src,Z,null);return;case"input":K8("input",Z),k1("invalid",w);var B=Q=H=G=null,j=null,O=null;for($ in Z)if(Z.hasOwnProperty($)){var i=Z[$];if(i!=null)switch($){case"name":G=i;break;case"type":H=i;break;case"checked":j=i;break;case"defaultChecked":O=i;break;case"value":Q=i;break;case"defaultValue":B=i;break;case"children":case"dangerouslySetInnerHTML":if(i!=null)throw Error(z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:y1(w,z,$,i,Z,null)}}WB(w,Z),KB(w,Q,B,j,O,H,G,!1);return;case"select":K8("select",Z),k1("invalid",w),$=H=Q=null;for(G in Z)if(Z.hasOwnProperty(G)&&(B=Z[G],B!=null))switch(G){case"value":Q=B;break;case"defaultValue":H=B;break;case"multiple":$=B;default:y1(w,z,G,B,Z,null)}_B(w,Z),z=Q,Z=H,w.multiple=!!$,z!=null?_9(w,!!$,z,!1):Z!=null&&_9(w,!!$,Z,!0);return;case"textarea":K8("textarea",Z),k1("invalid",w),Q=G=$=null;for(H in Z)if(Z.hasOwnProperty(H)&&(B=Z[H],B!=null))switch(H){case"value":$=B;break;case"defaultValue":G=B;break;case"children":Q=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:y1(w,z,H,B,Z,null)}qB(w,Z),LB(w,$,G,Q);return;case"option":UB(w,Z);for(j in Z)if(Z.hasOwnProperty(j)&&($=Z[j],$!=null))switch(j){case"selected":w.selected=$&&typeof $!=="function"&&typeof $!=="symbol";break;default:y1(w,z,j,$,Z,null)}return;case"dialog":k1("beforetoggle",w),k1("toggle",w),k1("cancel",w),k1("close",w);break;case"iframe":case"object":k1("load",w);break;case"video":case"audio":for($=0;$<dJ.length;$++)k1(dJ[$],w);break;case"image":k1("error",w),k1("load",w);break;case"details":k1("toggle",w);break;case"embed":case"source":case"link":k1("error",w),k1("load",w);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in Z)if(Z.hasOwnProperty(O)&&($=Z[O],$!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:y1(w,z,O,$,Z,null)}return;default:if(jZ(z)){for(i in Z)Z.hasOwnProperty(i)&&($=Z[i],$!==void 0&&tK(w,z,i,$,Z,void 0));return}}for(B in Z)Z.hasOwnProperty(B)&&($=Z[B],$!=null&&y1(w,z,B,$,Z,null))}function fv(w,z,Z,$){switch(nK(z,$),z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var G=null,Q=null,H=null,B=null,j=null,O=null,i=null;for(Z0 in Z){var a=Z[Z0];if(Z.hasOwnProperty(Z0)&&a!=null)switch(Z0){case"checked":break;case"value":break;case"defaultValue":j=a;default:$.hasOwnProperty(Z0)||y1(w,z,Z0,null,$,a)}}for(var y in $){var Z0=$[y];if(a=Z[y],$.hasOwnProperty(y)&&(Z0!=null||a!=null))switch(y){case"type":Q=Z0;break;case"name":G=Z0;break;case"checked":O=Z0;break;case"defaultChecked":i=Z0;break;case"value":H=Z0;break;case"defaultValue":B=Z0;break;case"children":case"dangerouslySetInnerHTML":if(Z0!=null)throw Error(z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Z0!==a&&y1(w,z,y,Z0,$,a)}}z=Z.type==="checkbox"||Z.type==="radio"?Z.checked!=null:Z.value!=null,$=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,z||!$||FA||(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"),FA=!0),!z||$||VA||(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"),VA=!0),UW(w,H,B,j,O,i,Q,G);return;case"select":Z0=H=B=y=null;for(Q in Z)if(j=Z[Q],Z.hasOwnProperty(Q)&&j!=null)switch(Q){case"value":break;case"multiple":Z0=j;default:$.hasOwnProperty(Q)||y1(w,z,Q,null,$,j)}for(G in $)if(Q=$[G],j=Z[G],$.hasOwnProperty(G)&&(Q!=null||j!=null))switch(G){case"value":y=Q;break;case"defaultValue":B=Q;break;case"multiple":H=Q;default:Q!==j&&y1(w,z,G,Q,$,j)}$=B,z=H,Z=Z0,y!=null?_9(w,!!z,y,!1):!!Z!==!!z&&($!=null?_9(w,!!z,$,!0):_9(w,!!z,z?[]:"",!1));return;case"textarea":Z0=y=null;for(B in Z)if(G=Z[B],Z.hasOwnProperty(B)&&G!=null&&!$.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:y1(w,z,B,null,$,G)}for(H in $)if(G=$[H],Q=Z[H],$.hasOwnProperty(H)&&(G!=null||Q!=null))switch(H){case"value":y=G;break;case"defaultValue":Z0=G;break;case"children":break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:G!==Q&&y1(w,z,H,G,$,Q)}BB(w,y,Z0);return;case"option":for(var M0 in Z)if(y=Z[M0],Z.hasOwnProperty(M0)&&y!=null&&!$.hasOwnProperty(M0))switch(M0){case"selected":w.selected=!1;break;default:y1(w,z,M0,null,$,y)}for(j in $)if(y=$[j],Z0=Z[j],$.hasOwnProperty(j)&&y!==Z0&&(y!=null||Z0!=null))switch(j){case"selected":w.selected=y&&typeof y!=="function"&&typeof y!=="symbol";break;default:y1(w,z,j,y,$,Z0)}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 v0 in Z)y=Z[v0],Z.hasOwnProperty(v0)&&y!=null&&!$.hasOwnProperty(v0)&&y1(w,z,v0,null,$,y);for(O in $)if(y=$[O],Z0=Z[O],$.hasOwnProperty(O)&&y!==Z0&&(y!=null||Z0!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:y1(w,z,O,y,$,Z0)}return;default:if(jZ(z)){for(var d1 in Z)y=Z[d1],Z.hasOwnProperty(d1)&&y!==void 0&&!$.hasOwnProperty(d1)&&tK(w,z,d1,void 0,$,y);for(i in $)y=$[i],Z0=Z[i],!$.hasOwnProperty(i)||y===Z0||y===void 0&&Z0===void 0||tK(w,z,i,y,$,Z0);return}}for(var A1 in Z)y=Z[A1],Z.hasOwnProperty(A1)&&y!=null&&!$.hasOwnProperty(A1)&&y1(w,z,A1,null,$,y);for(a in $)y=$[a],Z0=Z[a],!$.hasOwnProperty(a)||y===Z0||y==null&&Z0==null||y1(w,z,a,y,$,Z0)}function AF(w){switch(w){case"class":return"className";case"for":return"htmlFor";default:return w}}function eK(w){var z={};w=w.style;for(var Z=0;Z<w.length;Z++){var $=w[Z];z[$]=w.getPropertyValue($)}return z}function jF(w,z,Z){if(z!=null&&typeof z!=="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 $,G=$="",Q;for(Q in z)if(z.hasOwnProperty(Q)){var H=z[Q];H!=null&&typeof H!=="boolean"&&H!==""&&(Q.indexOf("--")===0?(O0(H,Q),$+=G+Q+":"+(""+H).trim()):typeof H!=="number"||H===0||IN.has(Q)?(O0(H,Q),$+=G+Q.replace(xN,"-$1").toLowerCase().replace(vN,"-ms-")+":"+(""+H).trim()):$+=G+Q.replace(xN,"-$1").toLowerCase().replace(vN,"-ms-")+":"+H+"px",G=";")}$=$||null,z=w.getAttribute("style"),z!==$&&($=e6($),e6(z)!==$&&(Z.style=eK(w)))}}function K5(w,z,Z,$,G,Q){if(G.delete(Z),w=w.getAttribute(Z),w===null)switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":return}else if($!=null)switch(typeof $){case"function":case"symbol":case"boolean":break;default:if(_0($,z),w===""+$)return}Rw(z,w,$,Q)}function MF(w,z,Z,$,G,Q){if(G.delete(Z),w=w.getAttribute(Z),w===null){switch(typeof $){case"function":case"symbol":return}if(!$)return}else switch(typeof $){case"function":case"symbol":break;default:if($)return}Rw(z,w,$,Q)}function wU(w,z,Z,$,G,Q){if(G.delete(Z),w=w.getAttribute(Z),w===null)switch(typeof $){case"undefined":case"function":case"symbol":return}else if($!=null)switch(typeof $){case"function":case"symbol":break;default:if(_0($,Z),w===""+$)return}Rw(z,w,$,Q)}function OF(w,z,Z,$,G,Q){if(G.delete(Z),w=w.getAttribute(Z),w===null)switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN($))return}else if($!=null)switch(typeof $){case"function":case"symbol":case"boolean":break;default:if(!isNaN($)&&(_0($,z),w===""+$))return}Rw(z,w,$,Q)}function zU(w,z,Z,$,G,Q){if(G.delete(Z),w=w.getAttribute(Z),w===null)switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":return}else if($!=null)switch(typeof $){case"function":case"symbol":case"boolean":break;default:if(_0($,z),Z=MZ(""+$),w===Z)return}Rw(z,w,$,Q)}function DF(w,z,Z,$){for(var G={},Q=new Set,H=w.attributes,B=0;B<H.length;B++)switch(H[B].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:Q.add(H[B].name)}if(jZ(z)){for(var j in Z)if(Z.hasOwnProperty(j)){var O=Z[j];if(O!=null){if(U7.hasOwnProperty(j))typeof O!=="function"&&T8(j,O);else if(Z.suppressHydrationWarning!==!0)switch(j){case"children":typeof O!=="string"&&typeof O!=="number"||Rw("children",w.textContent,O,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":H=w.innerHTML,O=O?O.__html:void 0,O!=null&&(O=NF(w,O),Rw(j,H,O,G));continue;case"style":Q.delete(j),jF(w,O,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":Q.delete(j.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",j);continue;case"className":Q.delete("class"),H=W$(w,"class",O),Rw("className",H,O,G);continue;default:$.context===A6&&z!=="svg"&&z!=="math"?Q.delete(j.toLowerCase()):Q.delete(j),H=W$(w,j,O),Rw(j,H,O,G)}}}}else for(O in Z)if(Z.hasOwnProperty(O)&&(j=Z[O],j!=null)){if(U7.hasOwnProperty(O))typeof j!=="function"&&T8(O,j);else if(Z.suppressHydrationWarning!==!0)switch(O){case"children":typeof j!=="string"&&typeof j!=="number"||Rw("children",w.textContent,j,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":H=w.innerHTML,j=j?j.__html:void 0,j!=null&&(j=NF(w,j),H!==j&&(G[O]={__html:H}));continue;case"className":K5(w,O,"class",j,Q,G);continue;case"tabIndex":K5(w,O,"tabindex",j,Q,G);continue;case"style":Q.delete(O),jF(w,j,G);continue;case"multiple":Q.delete(O),Rw(O,w.multiple,j,G);continue;case"muted":Q.delete(O),Rw(O,w.muted,j,G);continue;case"autoFocus":Q.delete("autofocus"),Rw(O,w.autofocus,j,G);continue;case"data":if(z!=="object"){Q.delete(O),H=w.getAttribute("data"),Rw(O,H,j,G);continue}case"src":case"href":if(!(j!==""||z==="a"&&O==="href"||z==="object"&&O==="data")){O==="src"?console.error('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.',O,O):console.error('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.',O,O);continue}zU(w,O,O,j,Q,G);continue;case"action":case"formAction":if(H=w.getAttribute(O),typeof j==="function"){Q.delete(O.toLowerCase()),O==="formAction"?(Q.delete("name"),Q.delete("formenctype"),Q.delete("formmethod"),Q.delete("formtarget")):(Q.delete("enctype"),Q.delete("method"),Q.delete("target"));continue}else if(H===tE){Q.delete(O.toLowerCase()),Rw(O,"function",j,G);continue}zU(w,O,O.toLowerCase(),j,Q,G);continue;case"xlinkHref":zU(w,O,"xlink:href",j,Q,G);continue;case"contentEditable":wU(w,O,"contenteditable",j,Q,G);continue;case"spellCheck":wU(w,O,"spellcheck",j,Q,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":wU(w,O,O,j,Q,G);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":MF(w,O,O.toLowerCase(),j,Q,G);continue;case"capture":case"download":w:{B=w;var i=H=O,a=G;if(Q.delete(i),B=B.getAttribute(i),B===null)switch(typeof j){case"undefined":case"function":case"symbol":break w;default:if(j===!1)break w}else if(j!=null)switch(typeof j){case"function":case"symbol":break;case"boolean":if(j===!0&&B==="")break w;break;default:if(_0(j,H),B===""+j)break w}Rw(H,B,j,a)}continue;case"cols":case"rows":case"size":case"span":w:{if(B=w,i=H=O,a=G,Q.delete(i),B=B.getAttribute(i),B===null)switch(typeof j){case"undefined":case"function":case"symbol":case"boolean":break w;default:if(isNaN(j)||1>j)break w}else if(j!=null)switch(typeof j){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(j)||1>j)&&(_0(j,H),B===""+j))break w}Rw(H,B,j,a)}continue;case"rowSpan":OF(w,O,"rowspan",j,Q,G);continue;case"start":OF(w,O,O,j,Q,G);continue;case"xHeight":K5(w,O,"x-height",j,Q,G);continue;case"xlinkActuate":K5(w,O,"xlink:actuate",j,Q,G);continue;case"xlinkArcrole":K5(w,O,"xlink:arcrole",j,Q,G);continue;case"xlinkRole":K5(w,O,"xlink:role",j,Q,G);continue;case"xlinkShow":K5(w,O,"xlink:show",j,Q,G);continue;case"xlinkTitle":K5(w,O,"xlink:title",j,Q,G);continue;case"xlinkType":K5(w,O,"xlink:type",j,Q,G);continue;case"xmlBase":K5(w,O,"xml:base",j,Q,G);continue;case"xmlLang":K5(w,O,"xml:lang",j,Q,G);continue;case"xmlSpace":K5(w,O,"xml:space",j,Q,G);continue;case"inert":j!==""||qY[O]||(qY[O]=!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.",O)),MF(w,O,O,j,Q,G);continue;default:if(!(2<O.length)||O[0]!=="o"&&O[0]!=="O"||O[1]!=="n"&&O[1]!=="N"){B=TB(O),H=!1,$.context===A6&&z!=="svg"&&z!=="math"?Q.delete(B.toLowerCase()):(i=O.toLowerCase(),i=T3.hasOwnProperty(i)?T3[i]||null:null,i!==null&&i!==O&&(H=!0,Q.delete(i)),Q.delete(B));w:if(i=w,a=B,B=j,a4(a))if(i.hasAttribute(a))i=i.getAttribute(a),_0(B,a),B=i===""+B?B:i;else{switch(typeof B){case"function":case"symbol":break w;case"boolean":if(i=a.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-")break w}B=B===void 0?void 0:null}else B=void 0;H||Rw(O,B,j,G)}}}return 0<Q.size&&Z.suppressHydrationWarning!==!0&&gv(w,Q,G),Object.keys(G).length===0?null:G}function mv(w,z){switch(w.length){case 0:return"";case 1:return w[0];case 2:return w[0]+" "+z+" "+w[1];default:return w.slice(0,-1).join(", ")+", "+z+" "+w[w.length-1]}}function TF(w){switch(w){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dv(){if(typeof performance.getEntriesByType==="function"){for(var w=0,z=0,Z=performance.getEntriesByType("resource"),$=0;$<Z.length;$++){var G=Z[$],Q=G.transferSize,H=G.initiatorType,B=G.duration;if(Q&&B&&TF(H)){H=0,B=G.responseEnd;for($+=1;$<Z.length;$++){var j=Z[$],O=j.startTime;if(O>B)break;var{transferSize:i,initiatorType:a}=j;i&&TF(a)&&(j=j.responseEnd,H+=i*(j<B?1:(B-O)/(j-O)))}if(--$,z+=8*(Q+H)/(G.duration/1000),w++,10<w)break}}if(0<w)return z/w/1e6}return navigator.connection&&(w=navigator.connection.downlink,typeof w==="number")?w:5}function Q3(w){return w.nodeType===9?w:w.ownerDocument}function xF(w){switch(w){case y9:return Hz;case D3:return LY;default:return A6}}function vF(w,z){if(w===A6)switch(z){case"svg":return Hz;case"math":return LY;default:return A6}return w===Hz&&z==="foreignObject"?A6:w}function ZU(w,z){return w==="textarea"||w==="noscript"||typeof z.children==="string"||typeof z.children==="number"||typeof z.children==="bigint"||typeof z.dangerouslySetInnerHTML==="object"&&z.dangerouslySetInnerHTML!==null&&z.dangerouslySetInnerHTML.__html!=null}function uv(){var w=window.event;if(w&&w.type==="popstate"){if(w===gH)return!1;return gH=w,!0}return gH=null,!1}function aZ(){var w=window.event;return w&&w!==cJ?w.type:null}function sZ(){var w=window.event;return w&&w!==cJ?w.timeStamp:-1.1}function pv(w){setTimeout(function(){throw w})}function cv(w,z,Z){switch(z){case"button":case"input":case"select":case"textarea":Z.autoFocus&&w.focus();break;case"img":Z.src?w.src=Z.src:Z.srcSet&&(w.srcset=Z.srcSet)}}function lv(){}function iv(w,z,Z,$){fv(w,z,Z,$),w[U2]=$}function hF(w){AZ(w,"")}function rv(w,z,Z){w.nodeValue=Z}function EF(w){if(!w.__reactWarnedAboutChildrenConflict){var z=w[U2]||null;if(z!==null){var Z=a0(w);Z!==null&&(typeof z.children==="string"||typeof z.children==="number"?(w.__reactWarnedAboutChildrenConflict=!0,n(Z,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.')})):z.dangerouslySetInnerHTML!=null&&(w.__reactWarnedAboutChildrenConflict=!0,n(Z,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 w4(w){return w==="head"}function av(w,z){w.removeChild(z)}function sv(w,z){(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w).removeChild(z)}function PF(w,z){var Z=z,$=0;do{var G=Z.nextSibling;if(w.removeChild(Z),G&&G.nodeType===8)if(Z=G.data,Z===pJ||Z===BY){if($===0){w.removeChild(G),E9(z);return}$--}else if(Z===uJ||Z===O4||Z===E7||Z===Uz||Z===h7)$++;else if(Z===wP)oZ(w.ownerDocument.documentElement);else if(Z===ZP){Z=w.ownerDocument.head,oZ(Z);for(var Q=Z.firstChild;Q;){var{nextSibling:H,nodeName:B}=Q;Q[JJ]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&Q.rel.toLowerCase()==="stylesheet"||Z.removeChild(Q),Q=H}}else Z===zP&&oZ(w.ownerDocument.body);Z=G}while(Z);E9(z)}function IF(w,z){var Z=w;w=0;do{var $=Z.nextSibling;if(Z.nodeType===1?z?(Z._stashedDisplay=Z.style.display,Z.style.display="none"):(Z.style.display=Z._stashedDisplay||"",Z.getAttribute("style")===""&&Z.removeAttribute("style")):Z.nodeType===3&&(z?(Z._stashedText=Z.nodeValue,Z.nodeValue=""):Z.nodeValue=Z._stashedText||""),$&&$.nodeType===8)if(Z=$.data,Z===pJ)if(w===0)break;else w--;else Z!==uJ&&Z!==O4&&Z!==E7&&Z!==Uz||w++;Z=$}while(Z)}function ov(w){IF(w,!0)}function nv(w){w=w.style,typeof w.setProperty==="function"?w.setProperty("display","none","important"):w.display="none"}function tv(w){w.nodeValue=""}function ev(w){IF(w,!1)}function wh(w,z){z=z[JP],z=z!==void 0&&z!==null&&z.hasOwnProperty("display")?z.display:null,w.style.display=z==null||typeof z==="boolean"?"":(""+z).trim()}function zh(w,z){w.nodeValue=z}function JU(w){var z=w.firstChild;z&&z.nodeType===10&&(z=z.nextSibling);for(;z;){var Z=z;switch(z=z.nextSibling,Z.nodeName){case"HTML":case"HEAD":case"BODY":JU(Z),N0(Z);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(Z.rel.toLowerCase()==="stylesheet")continue}w.removeChild(Z)}}function Zh(w,z,Z,$){for(;w.nodeType===1;){var G=Z;if(w.nodeName.toLowerCase()!==z.toLowerCase()){if(!$&&(w.nodeName!=="INPUT"||w.type!=="hidden"))break}else if(!$)if(z==="input"&&w.type==="hidden"){_0(G.name,"name");var Q=G.name==null?null:""+G.name;if(G.type==="hidden"&&w.getAttribute("name")===Q)return w}else return w;else if(!w[JJ])switch(z){case"meta":if(!w.hasAttribute("itemprop"))break;return w;case"link":if(Q=w.getAttribute("rel"),Q==="stylesheet"&&w.hasAttribute("data-precedence"))break;else if(Q!==G.rel||w.getAttribute("href")!==(G.href==null||G.href===""?null:G.href)||w.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin)||w.getAttribute("title")!==(G.title==null?null:G.title))break;return w;case"style":if(w.hasAttribute("data-precedence"))break;return w;case"script":if(Q=w.getAttribute("src"),(Q!==(G.src==null?null:G.src)||w.getAttribute("type")!==(G.type==null?null:G.type)||w.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&Q&&w.hasAttribute("async")&&!w.hasAttribute("itemprop"))break;return w;default:return w}if(w=p2(w.nextSibling),w===null)break}return null}function Jh(w,z,Z){if(z==="")return null;for(;w.nodeType!==3;){if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!Z)return null;if(w=p2(w.nextSibling),w===null)return null}return w}function bF(w,z){for(;w.nodeType!==8;){if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!z)return null;if(w=p2(w.nextSibling),w===null)return null}return w}function XU(w){return w.data===O4||w.data===E7}function $U(w){return w.data===Uz||w.data===O4&&w.ownerDocument.readyState!==jA}function Xh(w,z){var Z=w.ownerDocument;if(w.data===E7)w._reactRetry=z;else if(w.data!==O4||Z.readyState!==jA)z();else{var $=function(){z(),Z.removeEventListener("DOMContentLoaded",$)};Z.addEventListener("DOMContentLoaded",$),w._reactRetry=$}}function p2(w){for(;w!=null;w=w.nextSibling){var z=w.nodeType;if(z===1||z===3)break;if(z===8){if(z=w.data,z===uJ||z===Uz||z===O4||z===E7||z===h7||z===CH||z===AA)break;if(z===pJ||z===BY)return null}}return w}function SF(w){if(w.nodeType===1){for(var z=w.nodeName.toLowerCase(),Z={},$=w.attributes,G=0;G<$.length;G++){var Q=$[G];Z[AF(Q.name)]=Q.name.toLowerCase()==="style"?eK(w):Q.value}return{type:z,props:Z}}return w.nodeType===8?w.data===h7?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:w.nodeValue}function CF(w,z,Z){return Z===null||Z[eE]!==!0?(w.nodeValue===z?w=null:(z=e6(z),w=e6(w.nodeValue)===z?null:w.nodeValue),w):null}function YU(w){w=w.nextSibling;for(var z=0;w;){if(w.nodeType===8){var Z=w.data;if(Z===pJ||Z===BY){if(z===0)return p2(w.nextSibling);z--}else Z!==uJ&&Z!==Uz&&Z!==O4&&Z!==E7&&Z!==h7||z++}w=w.nextSibling}return null}function yF(w){w=w.previousSibling;for(var z=0;w;){if(w.nodeType===8){var Z=w.data;if(Z===uJ||Z===Uz||Z===O4||Z===E7||Z===h7){if(z===0)return w;z--}else Z!==pJ&&Z!==BY||z++}w=w.previousSibling}return null}function $h(w){E9(w)}function Yh(w){E9(w)}function Gh(w){E9(w)}function RF(w,z,Z,$,G){switch(G&&VW(w,$.ancestorInfo),z=Q3(Z),w){case"html":if(w=z.documentElement,!w)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 w;case"head":if(w=z.head,!w)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 w;case"body":if(w=z.body,!w)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 w;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Qh(w,z,Z,$){if(!Z[X4]&&a0(Z)){var G=Z.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.",G,G,G)}switch(w){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(G=Z.attributes;G.length;)Z.removeAttributeNode(G[0]);aw(Z,w,z),Z[sw]=$,Z[U2]=z}function oZ(w){for(var z=w.attributes;z.length;)w.removeAttributeNode(z[0]);N0(w)}function W3(w){return typeof w.getRootNode==="function"?w.getRootNode():w.nodeType===9?w:w.ownerDocument}function gF(w,z,Z){var $=_z;if($&&typeof z==="string"&&z){var G=W5(z);G='link[rel="'+w+'"][href="'+G+'"]',typeof Z==="string"&&(G+='[crossorigin="'+Z+'"]'),vA.has(G)||(vA.add(G),w={rel:w,crossOrigin:Z,href:z},$.querySelector(G)===null&&(z=$.createElement("link"),aw(z,"link",w),d0(z),$.head.appendChild(z)))}}function fF(w,z,Z,$){var G=(G=Z4.current)?W3(G):null;if(!G)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(w){case"meta":case"title":return null;case"style":return typeof Z.precedence==="string"&&typeof Z.href==="string"?(Z=v9(Z.href),z=$1(G).hoistableStyles,$=z.get(Z),$||($={type:"style",instance:null,count:0,state:null},z.set(Z,$)),$):{type:"void",instance:null,count:0,state:null};case"link":if(Z.rel==="stylesheet"&&typeof Z.href==="string"&&typeof Z.precedence==="string"){w=v9(Z.href);var Q=$1(G).hoistableStyles,H=Q.get(w);if(!H&&(G=G.ownerDocument||G,H={type:"stylesheet",instance:null,count:0,state:{loading:I7,preload:null}},Q.set(w,H),(Q=G.querySelector(nZ(w)))&&!Q._p&&(H.instance=Q,H.state.loading=lJ|A5),!j5.has(w))){var B={rel:"preload",as:"style",href:Z.href,crossOrigin:Z.crossOrigin,integrity:Z.integrity,media:Z.media,hrefLang:Z.hrefLang,referrerPolicy:Z.referrerPolicy};j5.set(w,B),Q||Wh(G,w,B,H.state)}if(z&&$===null)throw Z=`
|
|
177
|
+
|
|
178
|
+
- `+K3(z)+`
|
|
179
|
+
+ `+K3(Z),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."+Z);return H}if(z&&$!==null)throw Z=`
|
|
180
|
+
|
|
181
|
+
- `+K3(z)+`
|
|
182
|
+
+ `+K3(Z),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."+Z);return null;case"script":return z=Z.async,Z=Z.src,typeof Z==="string"&&z&&typeof z!=="function"&&typeof z!=="symbol"?(Z=h9(Z),z=$1(G).hoistableScripts,$=z.get(Z),$||($={type:"script",instance:null,count:0,state:null},z.set(Z,$)),$):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+w+'". this is a bug in React.')}}function K3(w){var z=0,Z="<link";return typeof w.rel==="string"?(z++,Z+=' rel="'+w.rel+'"'):u5.call(w,"rel")&&(z++,Z+=' rel="'+(w.rel===null?"null":"invalid type "+typeof w.rel)+'"'),typeof w.href==="string"?(z++,Z+=' href="'+w.href+'"'):u5.call(w,"href")&&(z++,Z+=' href="'+(w.href===null?"null":"invalid type "+typeof w.href)+'"'),typeof w.precedence==="string"?(z++,Z+=' precedence="'+w.precedence+'"'):u5.call(w,"precedence")&&(z++,Z+=" precedence={"+(w.precedence===null?"null":"invalid type "+typeof w.precedence)+"}"),Object.getOwnPropertyNames(w).length>z&&(Z+=" ..."),Z+" />"}function v9(w){return'href="'+W5(w)+'"'}function nZ(w){return'link[rel="stylesheet"]['+w+"]"}function mF(w){return H1({},w,{"data-precedence":w.precedence,precedence:null})}function Wh(w,z,Z,$){w.querySelector('link[rel="preload"][as="style"]['+z+"]")?$.loading=lJ:(z=w.createElement("link"),$.preload=z,z.addEventListener("load",function(){return $.loading|=lJ}),z.addEventListener("error",function(){return $.loading|=TA}),aw(z,"link",Z),d0(z),w.head.appendChild(z))}function h9(w){return'[src="'+W5(w)+'"]'}function tZ(w){return"script[async]"+w}function dF(w,z,Z){if(z.count++,z.instance===null)switch(z.type){case"style":var $=w.querySelector('style[data-href~="'+W5(Z.href)+'"]');if($)return z.instance=$,d0($),$;var G=H1({},Z,{"data-href":Z.href,"data-precedence":Z.precedence,href:null,precedence:null});return $=(w.ownerDocument||w).createElement("style"),d0($),aw($,"style",G),U3($,Z.precedence,w),z.instance=$;case"stylesheet":G=v9(Z.href);var Q=w.querySelector(nZ(G));if(Q)return z.state.loading|=A5,z.instance=Q,d0(Q),Q;$=mF(Z),(G=j5.get(G))&&GU($,G),Q=(w.ownerDocument||w).createElement("link"),d0(Q);var H=Q;return H._p=new Promise(function(B,j){H.onload=B,H.onerror=j}),aw(Q,"link",$),z.state.loading|=A5,U3(Q,Z.precedence,w),z.instance=Q;case"script":if(Q=h9(Z.src),G=w.querySelector(tZ(Q)))return z.instance=G,d0(G),G;if($=Z,G=j5.get(Q))$=H1({},Z),QU($,G);return w=w.ownerDocument||w,G=w.createElement("script"),d0(G),aw(G,"link",$),w.head.appendChild(G),z.instance=G;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+z.type+'". this is a bug in React.')}else z.type==="stylesheet"&&(z.state.loading&A5)===I7&&($=z.instance,z.state.loading|=A5,U3($,Z.precedence,w));return z.instance}function U3(w,z,Z){for(var $=Z.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=$.length?$[$.length-1]:null,Q=G,H=0;H<$.length;H++){var B=$[H];if(B.dataset.precedence===z)Q=B;else if(Q!==G)break}Q?Q.parentNode.insertBefore(w,Q.nextSibling):(z=Z.nodeType===9?Z.head:Z,z.insertBefore(w,z.firstChild))}function GU(w,z){w.crossOrigin==null&&(w.crossOrigin=z.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=z.referrerPolicy),w.title==null&&(w.title=z.title)}function QU(w,z){w.crossOrigin==null&&(w.crossOrigin=z.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=z.referrerPolicy),w.integrity==null&&(w.integrity=z.integrity)}function uF(w,z,Z){if(VY===null){var $=new Map,G=VY=new Map;G.set(Z,$)}else G=VY,$=G.get(Z),$||($=new Map,G.set(Z,$));if($.has(w))return $;$.set(w,null),Z=Z.getElementsByTagName(w);for(G=0;G<Z.length;G++){var Q=Z[G];if(!(Q[JJ]||Q[sw]||w==="link"&&Q.getAttribute("rel")==="stylesheet")&&Q.namespaceURI!==y9){var H=Q.getAttribute(z)||"";H=w+H;var B=$.get(H);B?B.push(Q):$.set(H,[Q])}}return $}function pF(w,z,Z){w=w.ownerDocument||w,w.head.insertBefore(Z,z==="title"?w.querySelector("head > title"):null)}function Kh(w,z,Z){var $=!Z.ancestorInfo.containerTagInScope;if(Z.context===Hz||z.itemProp!=null)return!$||z.itemProp==null||w!=="meta"&&w!=="title"&&w!=="style"&&w!=="link"&&w!=="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.",w,w),!1;switch(w){case"meta":case"title":return!0;case"style":if(typeof z.precedence!=="string"||typeof z.href!=="string"||z.href===""){$&&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 z.rel!=="string"||typeof z.href!=="string"||z.href===""||z.onLoad||z.onError){if(z.rel==="stylesheet"&&typeof z.precedence==="string"){w=z.href;var{onError:G,disabled:Q}=z;Z=[],z.onLoad&&Z.push("`onLoad`"),G&&Z.push("`onError`"),Q!=null&&Z.push("`disabled`"),G=mv(Z,"and"),G+=Z.length===1?" prop":" props",Q=Z.length===1?"an "+G:"the "+G,Z.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.',w,Q,G)}$&&(typeof z.rel!=="string"||typeof z.href!=="string"||z.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"):(z.onError||z.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(z.rel){case"stylesheet":return w=z.precedence,z=z.disabled,typeof w!=="string"&&$&&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 w==="string"&&z==null;default:return!0}case"script":if(w=z.async&&typeof z.async!=="function"&&typeof z.async!=="symbol",!w||z.onLoad||z.onError||!z.src||typeof z.src!=="string"){$&&(w?z.onLoad||z.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":$&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",w)}return!1}function cF(w){return w.type==="stylesheet"&&(w.state.loading&xA)===I7?!1:!0}function Uh(w,z,Z,$){if(Z.type==="stylesheet"&&(typeof $.media!=="string"||matchMedia($.media).matches!==!1)&&(Z.state.loading&A5)===I7){if(Z.instance===null){var G=v9($.href),Q=z.querySelector(nZ(G));if(Q){z=Q._p,z!==null&&typeof z==="object"&&typeof z.then==="function"&&(w.count++,w=H3.bind(w),z.then(w,w)),Z.state.loading|=A5,Z.instance=Q,d0(Q);return}Q=z.ownerDocument||z,$=mF($),(G=j5.get(G))&&GU($,G),Q=Q.createElement("link"),d0(Q);var H=Q;H._p=new Promise(function(B,j){H.onload=B,H.onerror=j}),aw(Q,"link",$),Z.instance=Q}w.stylesheets===null&&(w.stylesheets=new Map),w.stylesheets.set(Z,z),(z=Z.state.preload)&&(Z.state.loading&xA)===I7&&(w.count++,Z=H3.bind(w),z.addEventListener("load",Z),z.addEventListener("error",Z))}}function Hh(w,z){return w.stylesheets&&w.count===0&&_3(w,w.stylesheets),0<w.count||0<w.imgCount?function(Z){var $=setTimeout(function(){if(w.stylesheets&&_3(w,w.stylesheets),w.unsuspend){var Q=w.unsuspend;w.unsuspend=null,Q()}},YP+z);0<w.imgBytes&&mH===0&&(mH=125*dv()*QP);var G=setTimeout(function(){if(w.waitingForImages=!1,w.count===0&&(w.stylesheets&&_3(w,w.stylesheets),w.unsuspend)){var Q=w.unsuspend;w.unsuspend=null,Q()}},(w.imgBytes>mH?50:GP)+z);return w.unsuspend=Z,function(){w.unsuspend=null,clearTimeout($),clearTimeout(G)}}:null}function H3(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_3(this,this.stylesheets);else if(this.unsuspend){var w=this.unsuspend;this.unsuspend=null,w()}}}function _3(w,z){w.stylesheets=null,w.unsuspend!==null&&(w.count++,FY=new Map,z.forEach(_h,w),FY=null,H3.call(w))}function _h(w,z){if(!(z.state.loading&A5)){var Z=FY.get(w);if(Z)var $=Z.get(dH);else{Z=new Map,FY.set(w,Z);for(var G=w.querySelectorAll("link[data-precedence],style[data-precedence]"),Q=0;Q<G.length;Q++){var H=G[Q];if(H.nodeName==="LINK"||H.getAttribute("media")!=="not all")Z.set(H.dataset.precedence,H),$=H}$&&Z.set(dH,$)}G=z.instance,H=G.getAttribute("data-precedence"),Q=Z.get(H)||$,Q===$&&Z.set(dH,G),Z.set(H,G),this.count++,$=H3.bind(this),G.addEventListener("load",$),G.addEventListener("error",$),Q?Q.parentNode.insertBefore(G,Q.nextSibling):(w=w.nodeType===9?w.head:w,w.insertBefore(G,w.firstChild)),z.state.loading|=A5}}function qh(w,z,Z,$,G,Q,H,B,j){this.tag=1,this.containerInfo=w,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=P7,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=D1(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=D1(0),this.hiddenUpdates=D1(null),this.identifierPrefix=$,this.onUncaughtError=G,this.onCaughtError=Q,this.onRecoverableError=H,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,w=this.pendingUpdatersLaneMap=[];for(z=0;31>z;z++)w.push(new Set);this._debugRootType=Z?"hydrateRoot()":"createRoot()"}function lF(w,z,Z,$,G,Q,H,B,j,O,i,a){return w=new qh(w,z,Z,H,j,O,i,a,B),z=bE,Q===!0&&(z|=Z2|c5),z|=Y1,Q=k(3,null,null,z),w.current=Q,Q.stateNode=w,z=yW(),X7(z),w.pooledCache=z,X7(z),Q.memoizedState={element:$,isDehydrated:Z,cache:z},dW(Q),w}function iF(w){if(!w)return Q4;return w=Q4,w}function WU(w,z,Z,$,G,Q){if(z2&&typeof z2.onScheduleFiberRoot==="function")try{z2.onScheduleFiberRoot(S9,$,Z)}catch(H){E8||(E8=!0,console.error("React instrumentation encountered an error: %o",H))}G=iF(G),$.context===null?$.context=G:$.pendingContext=G,h8&&l2!==null&&!IA&&(IA=!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.
|
|
183
|
+
|
|
184
|
+
Check the render method of %s.`,d(l2)||"Unknown")),$=r6(z),$.payload={element:Z},Q=Q===void 0?null:Q,Q!==null&&(typeof Q!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",Q),$.callback=Q),Z=a6(w,$,z),Z!==null&&(q8(z,"root.render()",null),Zw(Z,w,z),IZ(Z,w,z))}function rF(w,z){if(w=w.memoizedState,w!==null&&w.dehydrated!==null){var Z=w.retryLane;w.retryLane=Z!==0&&Z<z?Z:z}}function KU(w,z){rF(w,z),(w=w.alternate)&&rF(w,z)}function aF(w){if(w.tag===13||w.tag===31){var z=w2(w,67108864);z!==null&&Zw(z,w,67108864),KU(w,67108864)}}function sF(w){if(w.tag===13||w.tag===31){var z=u2(w);z=hw(z);var Z=w2(w,z);Z!==null&&Zw(Z,w,z),KU(w,z)}}function Bh(){return l2}function Lh(w,z,Z,$){var G=Y0.T;Y0.T=null;var Q=I1.p;try{I1.p=i2,UU(w,z,Z,$)}finally{I1.p=Q,Y0.T=G}}function Vh(w,z,Z,$){var G=Y0.T;Y0.T=null;var Q=I1.p;try{I1.p=p5,UU(w,z,Z,$)}finally{I1.p=Q,Y0.T=G}}function UU(w,z,Z,$){if(kY){var G=HU($);if(G===null)oK(w,z,$,AY,Z),nF(w,$);else if(Fh(G,w,z,Z,$))$.stopPropagation();else if(nF(w,$),z&4&&-1<KP.indexOf(w)){for(;G!==null;){var Q=a0(G);if(Q!==null)switch(Q.tag){case 3:if(Q=Q.stateNode,Q.current.memoizedState.isDehydrated){var H=o0(Q.pendingLanes);if(H!==0){var B=Q;B.pendingLanes|=2;for(B.entangledLanes|=2;H;){var j=1<<31-K2(H);B.entanglements[1]|=j,H&=~j}D8(Q),(M1&(bw|o2))===dw&&(JY=gw()+YA,iZ(0,!1))}}break;case 31:case 13:B=w2(Q,2),B!==null&&Zw(B,Q,2),D9(),KU(Q,2)}if(Q=HU($),Q===null&&oK(w,z,$,AY,Z),Q===G)break;G=Q}G!==null&&$.stopPropagation()}else oK(w,z,$,null,Z)}}function HU(w){return w=FW(w),_U(w)}function _U(w){if(AY=null,w=T0(w),w!==null){var z=v(w);if(z===null)w=null;else{var Z=z.tag;if(Z===13){if(w=x(z),w!==null)return w;w=null}else if(Z===31){if(w=I(z),w!==null)return w;w=null}else if(Z===3){if(z.stateNode.current.memoizedState.isDehydrated)return z.tag===3?z.stateNode.containerInfo:null;w=null}else z!==w&&(w=null)}}return AY=w,null}function oF(w){switch(w){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 i2;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 p5;case"message":switch(xh()){case TU:return i2;case xU:return p5;case b9:case vh:return I8;case vU:return M3;default:return I8}default:return I8}}function nF(w,z){switch(w){case"focusin":case"focusout":D4=null;break;case"dragenter":case"dragleave":T4=null;break;case"mouseover":case"mouseout":x4=null;break;case"pointerover":case"pointerout":rJ.delete(z.pointerId);break;case"gotpointercapture":case"lostpointercapture":aJ.delete(z.pointerId)}}function eZ(w,z,Z,$,G,Q){if(w===null||w.nativeEvent!==Q)return w={blockedOn:z,domEventName:Z,eventSystemFlags:$,nativeEvent:Q,targetContainers:[G]},z!==null&&(z=a0(z),z!==null&&aF(z)),w;return w.eventSystemFlags|=$,z=w.targetContainers,G!==null&&z.indexOf(G)===-1&&z.push(G),w}function Fh(w,z,Z,$,G){switch(z){case"focusin":return D4=eZ(D4,w,z,Z,$,G),!0;case"dragenter":return T4=eZ(T4,w,z,Z,$,G),!0;case"mouseover":return x4=eZ(x4,w,z,Z,$,G),!0;case"pointerover":var Q=G.pointerId;return rJ.set(Q,eZ(rJ.get(Q)||null,w,z,Z,$,G)),!0;case"gotpointercapture":return Q=G.pointerId,aJ.set(Q,eZ(aJ.get(Q)||null,w,z,Z,$,G)),!0}return!1}function tF(w){var z=T0(w.target);if(z!==null){var Z=v(z);if(Z!==null){if(z=Z.tag,z===13){if(z=x(Z),z!==null){w.blockedOn=z,K0(w.priority,function(){sF(Z)});return}}else if(z===31){if(z=I(Z),z!==null){w.blockedOn=z,K0(w.priority,function(){sF(Z)});return}}else if(z===3&&Z.stateNode.current.memoizedState.isDehydrated){w.blockedOn=Z.tag===3?Z.stateNode.containerInfo:null;return}}}w.blockedOn=null}function q3(w){if(w.blockedOn!==null)return!1;for(var z=w.targetContainers;0<z.length;){var Z=HU(w.nativeEvent);if(Z===null){Z=w.nativeEvent;var $=new Z.constructor(Z.type,Z),G=$;XJ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),XJ=G,Z.target.dispatchEvent($),XJ===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."),XJ=null}else return z=a0(Z),z!==null&&aF(z),w.blockedOn=Z,!1;z.shift()}return!0}function eF(w,z,Z){q3(w)&&Z.delete(z)}function Nh(){uH=!1,D4!==null&&q3(D4)&&(D4=null),T4!==null&&q3(T4)&&(T4=null),x4!==null&&q3(x4)&&(x4=null),rJ.forEach(eF),aJ.forEach(eF)}function B3(w,z){w.blockedOn===z&&(w.blockedOn=null,uH||(uH=!0,T1.unstable_scheduleCallback(T1.unstable_NormalPriority,Nh)))}function wN(w){jY!==w&&(jY=w,T1.unstable_scheduleCallback(T1.unstable_NormalPriority,function(){jY===w&&(jY=null);for(var z=0;z<w.length;z+=3){var Z=w[z],$=w[z+1],G=w[z+2];if(typeof $!=="function")if(_U($||Z)===null)continue;else break;var Q=a0(Z);Q!==null&&(w.splice(z,3),z-=3,Z={pending:!0,data:G,method:Z.method,action:$},Object.freeze(Z),_K(Q,Z,$,G))}}))}function E9(w){function z(j){return B3(j,w)}D4!==null&&B3(D4,w),T4!==null&&B3(T4,w),x4!==null&&B3(x4,w),rJ.forEach(z),aJ.forEach(z);for(var Z=0;Z<v4.length;Z++){var $=v4[Z];$.blockedOn===w&&($.blockedOn=null)}for(;0<v4.length&&(Z=v4[0],Z.blockedOn===null);)tF(Z),Z.blockedOn===null&&v4.shift();if(Z=(w.ownerDocument||w).$$reactFormReplay,Z!=null)for($=0;$<Z.length;$+=3){var G=Z[$],Q=Z[$+1],H=G[U2]||null;if(typeof Q==="function")H||wN(Z);else if(H){var B=null;if(Q&&Q.hasAttribute("formAction")){if(G=Q,H=Q[U2]||null)B=H.formAction;else if(_U(G)!==null)continue}else B=H.action;typeof B==="function"?Z[$+1]=B:(Z.splice($,3),$-=3),wN(Z)}}}function zN(){function w(Q){Q.canIntercept&&Q.info==="react-transition"&&Q.intercept({handler:function(){return new Promise(function(H){return G=H})},focusReset:"manual",scroll:"manual"})}function z(){G!==null&&(G(),G=null),$||setTimeout(Z,20)}function Z(){if(!$&&!navigation.transition){var Q=navigation.currentEntry;Q&&Q.url!=null&&navigation.navigate(Q.url,{state:Q.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var $=!1,G=null;return navigation.addEventListener("navigate",w),navigation.addEventListener("navigatesuccess",z),navigation.addEventListener("navigateerror",z),setTimeout(Z,100),function(){$=!0,navigation.removeEventListener("navigate",w),navigation.removeEventListener("navigatesuccess",z),navigation.removeEventListener("navigateerror",z),G!==null&&(G(),G=null)}}}function qU(w){this._internalRoot=w}function L3(w){this._internalRoot=w}function ZN(w){w[X4]&&(w._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 H1=Object.assign,kh=Symbol.for("react.element"),x8=Symbol.for("react.transitional.element"),P9=Symbol.for("react.portal"),I9=Symbol.for("react.fragment"),V3=Symbol.for("react.strict_mode"),BU=Symbol.for("react.profiler"),LU=Symbol.for("react.consumer"),v8=Symbol.for("react.context"),wJ=Symbol.for("react.forward_ref"),VU=Symbol.for("react.suspense"),FU=Symbol.for("react.suspense_list"),F3=Symbol.for("react.memo"),c2=Symbol.for("react.lazy"),NU=Symbol.for("react.activity"),Ah=Symbol.for("react.memo_cache_sentinel"),JN=Symbol.iterator,jh=Symbol.for("react.client.reference"),Pw=Array.isArray,Y0=Bz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I1=lH.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mh=Object.freeze({pending:!1,data:null,method:null,action:null}),kU=[],AU=[],G6=-1,z4=w0(null),zJ=w0(null),Z4=w0(null),N3=w0(null),ZJ=0,XN,$N,YN,GN,QN,WN,KN;P.__reactDisabledLog=!0;var jU,UN,MU=!1,OU=new(typeof WeakMap==="function"?WeakMap:Map),l2=null,h8=!1,u5=Object.prototype.hasOwnProperty,DU=T1.unstable_scheduleCallback,Oh=T1.unstable_cancelCallback,Dh=T1.unstable_shouldYield,Th=T1.unstable_requestPaint,gw=T1.unstable_now,xh=T1.unstable_getCurrentPriorityLevel,TU=T1.unstable_ImmediatePriority,xU=T1.unstable_UserBlockingPriority,b9=T1.unstable_NormalPriority,vh=T1.unstable_LowPriority,vU=T1.unstable_IdlePriority,hh=T1.log,Eh=T1.unstable_setDisableYieldValue,S9=null,z2=null,E8=!1,P8=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",K2=Math.clz32?Math.clz32:E0,Ph=Math.log,Ih=Math.LN2,k3=256,A3=262144,j3=4194304,i2=2,p5=8,I8=32,M3=268435456,J4=Math.random().toString(36).slice(2),sw="__reactFiber$"+J4,U2="__reactProps$"+J4,X4="__reactContainer$"+J4,hU="__reactEvents$"+J4,bh="__reactListeners$"+J4,Sh="__reactHandles$"+J4,HN="__reactResources$"+J4,JJ="__reactMarker$"+J4,_N=new Set,U7={},EU={},Ch={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},yh=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]*$"),qN={},BN={},Rh=/[\n"\\]/g,LN=!1,VN=!1,FN=!1,NN=!1,kN=!1,AN=!1,jN=["value","defaultValue"],MN=!1,ON=/["'&<>\n\t]|^\s|\s$/,gh="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(" "),DN="applet caption html table td th marquee object template foreignObject desc title".split(" "),fh=DN.concat(["button"]),mh="dd dt li option optgroup p rp rt".split(" "),TN={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},O3={},PU={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"]},xN=/([A-Z])/g,vN=/^ms-/,dh=/^(?:webkit|moz|o)[A-Z]/,uh=/^-ms-/,ph=/-(.)/g,hN=/;\s*$/,C9={},IU={},EN=!1,PN=!1,IN=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(" ")),D3="http://www.w3.org/1998/Math/MathML",y9="http://www.w3.org/2000/svg",ch=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"]]),T3={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"},bN={"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},R9={},lh=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]*$"),ih=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]*$"),SN=!1,H2={},CN=/^on./,rh=/^on[^A-Z]/,ah=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]*$"),sh=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]*$"),oh=/^[\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,XJ=null,g9=null,f9=null,bU=!1,b8=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),SU=!1;if(b8)try{var $J={};Object.defineProperty($J,"passive",{get:function(){SU=!0}}),window.addEventListener("test",$J,$J),window.removeEventListener("test",$J,$J)}catch(w){SU=!1}var $4=null,CU=null,x3=null,H7={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(w){return w.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},v3=j2(H7),YJ=H1({},H7,{view:0,detail:0}),nh=j2(YJ),yU,RU,GJ,h3=H1({},YJ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:NW,button:0,buttons:0,relatedTarget:function(w){return w.relatedTarget===void 0?w.fromElement===w.srcElement?w.toElement:w.fromElement:w.relatedTarget},movementX:function(w){if("movementX"in w)return w.movementX;return w!==GJ&&(GJ&&w.type==="mousemove"?(yU=w.screenX-GJ.screenX,RU=w.screenY-GJ.screenY):RU=yU=0,GJ=w),yU},movementY:function(w){return"movementY"in w?w.movementY:RU}}),yN=j2(h3),th=H1({},h3,{dataTransfer:0}),eh=j2(th),wE=H1({},YJ,{relatedTarget:0}),gU=j2(wE),zE=H1({},H7,{animationName:0,elapsedTime:0,pseudoElement:0}),ZE=j2(zE),JE=H1({},H7,{clipboardData:function(w){return"clipboardData"in w?w.clipboardData:window.clipboardData}}),XE=j2(JE),$E=H1({},H7,{data:0}),RN=j2($E),YE=RN,GE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QE={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"},WE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},KE=H1({},YJ,{key:function(w){if(w.key){var z=GE[w.key]||w.key;if(z!=="Unidentified")return z}return w.type==="keypress"?(w=q$(w),w===13?"Enter":String.fromCharCode(w)):w.type==="keydown"||w.type==="keyup"?QE[w.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:NW,charCode:function(w){return w.type==="keypress"?q$(w):0},keyCode:function(w){return w.type==="keydown"||w.type==="keyup"?w.keyCode:0},which:function(w){return w.type==="keypress"?q$(w):w.type==="keydown"||w.type==="keyup"?w.keyCode:0}}),UE=j2(KE),HE=H1({},h3,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gN=j2(HE),_E=H1({},YJ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:NW}),qE=j2(_E),BE=H1({},H7,{propertyName:0,elapsedTime:0,pseudoElement:0}),LE=j2(BE),VE=H1({},h3,{deltaX:function(w){return"deltaX"in w?w.deltaX:("wheelDeltaX"in w)?-w.wheelDeltaX:0},deltaY:function(w){return"deltaY"in w?w.deltaY:("wheelDeltaY"in w)?-w.wheelDeltaY:("wheelDelta"in w)?-w.wheelDelta:0},deltaZ:0,deltaMode:0}),FE=j2(VE),NE=H1({},H7,{newState:0,oldState:0}),kE=j2(NE),AE=[9,13,27,32],fN=229,fU=b8&&"CompositionEvent"in window,QJ=null;b8&&"documentMode"in document&&(QJ=document.documentMode);var jE=b8&&"TextEvent"in window&&!QJ,mN=b8&&(!fU||QJ&&8<QJ&&11>=QJ),dN=32,uN=String.fromCharCode(dN),pN=!1,m9=!1,ME={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},WJ=null,KJ=null,cN=!1;b8&&(cN=cx("input")&&(!document.documentMode||9<document.documentMode));var _2=typeof Object.is==="function"?Object.is:ox,OE=b8&&"documentMode"in document&&11>=document.documentMode,d9=null,mU=null,UJ=null,dU=!1,u9={animationend:n4("Animation","AnimationEnd"),animationiteration:n4("Animation","AnimationIteration"),animationstart:n4("Animation","AnimationStart"),transitionrun:n4("Transition","TransitionRun"),transitionstart:n4("Transition","TransitionStart"),transitioncancel:n4("Transition","TransitionCancel"),transitionend:n4("Transition","TransitionEnd")},uU={},lN={};b8&&(lN=document.createElement("div").style,("AnimationEvent"in window)||(delete u9.animationend.animation,delete u9.animationiteration.animation,delete u9.animationstart.animation),("TransitionEvent"in window)||delete u9.transitionend.transition);var iN=t4("animationend"),rN=t4("animationiteration"),aN=t4("animationstart"),DE=t4("transitionrun"),TE=t4("transitionstart"),xE=t4("transitioncancel"),sN=t4("transitionend"),oN=new Map,pU="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(" ");pU.push("scrollEnd");var nN=0;if(typeof performance==="object"&&typeof performance.now==="function")var vE=performance,tN=function(){return vE.now()};else{var hE=Date;tN=function(){return hE.now()}}var cU=typeof reportError==="function"?reportError:function(w){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",w);return}console.error(w)},EE="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.",E3=0,lU=1,iU=2,rU=3,P3="– ",I3="+ ",eN=" ",c1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",U5="Components ⚛",_1="Scheduler ⚛",B1="Blocking",Y4=!1,Q6={color:"primary",properties:null,tooltipText:"",track:U5},G4={start:-0,end:-0,detail:{devtools:Q6}},PE=["Changed Props",""],wk="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",IE=["Changed Props",wk],HJ=1,W6=2,H5=[],p9=0,aU=0,Q4={};Object.freeze(Q4);var _5=null,c9=null,w1=0,bE=1,Y1=2,Z2=8,c5=16,SE=32,zk=!1;try{var Zk=Object.preventExtensions({});}catch(w){zk=!0}var sU=new WeakMap,l9=[],i9=0,b3=null,_J=0,q5=[],B5=0,_7=null,K6=1,U6="",ow=null,l1=null,F1=!1,S8=!1,r2=null,W4=null,L5=!1,oU=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."),nU=w0(null),tU=w0(null),Jk={},S3=null,r9=null,a9=!1,CE=typeof AbortController<"u"?AbortController:function(){var w=[],z=this.signal={aborted:!1,addEventListener:function(Z,$){w.push($)}};this.abort=function(){z.aborted=!0,w.forEach(function(Z){return Z()})}},yE=T1.unstable_scheduleCallback,RE=T1.unstable_NormalPriority,Vw={$$typeof:v8,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Fw=T1.unstable_now,C3=console.createTask?console.createTask:function(){return null},qJ=1,y3=2,fw=-0,K4=-0,H6=-0,_6=null,q2=-1.1,q7=-0,t1=-0,s0=-1.1,e0=-1.1,o1=null,Jw=!1,U4=-0,C8=-1.1,BJ=null,H4=0,eU=null,wH=null,B7=-1.1,LJ=null,s9=-1.1,R3=-1.1,y8=-0,q6=-1.1,V5=-1.1,zH=0,VJ=null,Xk=null,$k=null,_4=-1.1,L7=null,q4=-1.1,g3=-1.1,Yk=-0,Gk=-0,f3=0,B6=null,Qk=0,FJ=-1.1,m3=!1,d3=!1,NJ=null,ZH=0,V7=0,o9=null,Wk=Y0.S;Y0.S=function(w,z){if(XA=gw(),typeof z==="object"&&z!==null&&typeof z.then==="function"){if(0>q6&&0>V5){q6=Fw();var Z=sZ(),$=aZ();if(Z!==q4||$!==L7)q4=-1.1;_4=Z,L7=$}Jv(w,z)}Wk!==null&&Wk(w,z)};var F7=w0(null),l5={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},kJ=[],AJ=[],jJ=[],MJ=[],OJ=[],DJ=[],N7=new Set;l5.recordUnsafeLifecycleWarnings=function(w,z){N7.has(w.type)||(typeof z.componentWillMount==="function"&&z.componentWillMount.__suppressDeprecationWarning!==!0&&kJ.push(w),w.mode&Z2&&typeof z.UNSAFE_componentWillMount==="function"&&AJ.push(w),typeof z.componentWillReceiveProps==="function"&&z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&jJ.push(w),w.mode&Z2&&typeof z.UNSAFE_componentWillReceiveProps==="function"&&MJ.push(w),typeof z.componentWillUpdate==="function"&&z.componentWillUpdate.__suppressDeprecationWarning!==!0&&OJ.push(w),w.mode&Z2&&typeof z.UNSAFE_componentWillUpdate==="function"&&DJ.push(w))},l5.flushPendingUnsafeLifecycleWarnings=function(){var w=new Set;0<kJ.length&&(kJ.forEach(function(B){w.add(d(B)||"Component"),N7.add(B.type)}),kJ=[]);var z=new Set;0<AJ.length&&(AJ.forEach(function(B){z.add(d(B)||"Component"),N7.add(B.type)}),AJ=[]);var Z=new Set;0<jJ.length&&(jJ.forEach(function(B){Z.add(d(B)||"Component"),N7.add(B.type)}),jJ=[]);var $=new Set;0<MJ.length&&(MJ.forEach(function(B){$.add(d(B)||"Component"),N7.add(B.type)}),MJ=[]);var G=new Set;0<OJ.length&&(OJ.forEach(function(B){G.add(d(B)||"Component"),N7.add(B.type)}),OJ=[]);var Q=new Set;if(0<DJ.length&&(DJ.forEach(function(B){Q.add(d(B)||"Component"),N7.add(B.type)}),DJ=[]),0<z.size){var H=V(z);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.
|
|
185
|
+
|
|
186
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
187
|
+
|
|
188
|
+
Please update the following components: %s`,H)}0<$.size&&(H=V($),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.
|
|
189
|
+
|
|
190
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
191
|
+
* 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
|
|
192
|
+
|
|
193
|
+
Please update the following components: %s`,H)),0<Q.size&&(H=V(Q),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.
|
|
194
|
+
|
|
195
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
|
+
|
|
197
|
+
Please update the following components: %s`,H)),0<w.size&&(H=V(w),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
198
|
+
|
|
199
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
200
|
+
* 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.
|
|
201
|
+
|
|
202
|
+
Please update the following components: %s`,H)),0<Z.size&&(H=V(Z),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
|
+
|
|
204
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
205
|
+
* 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
|
|
206
|
+
* 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.
|
|
207
|
+
|
|
208
|
+
Please update the following components: %s`,H)),0<G.size&&(H=V(G),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
209
|
+
|
|
210
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
211
|
+
* 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.
|
|
212
|
+
|
|
213
|
+
Please update the following components: %s`,H))};var u3=new Map,Kk=new Set;l5.recordLegacyContextWarning=function(w,z){var Z=null;for(var $=w;$!==null;)$.mode&Z2&&(Z=$),$=$.return;Z===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."):!Kk.has(w.type)&&($=u3.get(Z),w.type.contextTypes!=null||w.type.childContextTypes!=null||z!==null&&typeof z.getChildContext==="function")&&($===void 0&&($=[],u3.set(Z,$)),$.push(w))},l5.flushLegacyContextWarning=function(){u3.forEach(function(w){if(w.length!==0){var z=w[0],Z=new Set;w.forEach(function(G){Z.add(d(G)||"Component"),Kk.add(G.type)});var $=V(Z);n(z,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
214
|
+
|
|
215
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
216
|
+
|
|
217
|
+
Please update the following components: %s
|
|
218
|
+
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,$)})}})},l5.discardPendingWarnings=function(){kJ=[],AJ=[],jJ=[],MJ=[],OJ=[],DJ=[],u3=new Map};var Uk={react_stack_bottom_frame:function(w,z,Z){var $=h8;h8=!0;try{return w(z,Z)}finally{h8=$}}},JH=Uk.react_stack_bottom_frame.bind(Uk),Hk={react_stack_bottom_frame:function(w){var z=h8;h8=!0;try{return w.render()}finally{h8=z}}},_k=Hk.react_stack_bottom_frame.bind(Hk),qk={react_stack_bottom_frame:function(w,z){try{z.componentDidMount()}catch(Z){P1(w,w.return,Z)}}},XH=qk.react_stack_bottom_frame.bind(qk),Bk={react_stack_bottom_frame:function(w,z,Z,$,G){try{z.componentDidUpdate(Z,$,G)}catch(Q){P1(w,w.return,Q)}}},Lk=Bk.react_stack_bottom_frame.bind(Bk),Vk={react_stack_bottom_frame:function(w,z){var Z=z.stack;w.componentDidCatch(z.value,{componentStack:Z!==null?Z:""})}},gE=Vk.react_stack_bottom_frame.bind(Vk),Fk={react_stack_bottom_frame:function(w,z,Z){try{Z.componentWillUnmount()}catch($){P1(w,z,$)}}},Nk=Fk.react_stack_bottom_frame.bind(Fk),kk={react_stack_bottom_frame:function(w){var z=w.create;return w=w.inst,z=z(),w.destroy=z}},fE=kk.react_stack_bottom_frame.bind(kk),Ak={react_stack_bottom_frame:function(w,z,Z){try{Z()}catch($){P1(w,z,$)}}},mE=Ak.react_stack_bottom_frame.bind(Ak),jk={react_stack_bottom_frame:function(w){var z=w._init;return z(w._payload)}},dE=jk.react_stack_bottom_frame.bind(jk),n9=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`."),$H=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."),p3=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."),c3={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.')}},k7=null,TJ=!1,t9=null,xJ=0,G1=null,YH,Mk=YH=!1,Ok={},Dk={},Tk={};N=function(w,z,Z){if(Z!==null&&typeof Z==="object"&&Z._store&&(!Z._store.validated&&Z.key==null||Z._store.validated===2)){if(typeof Z._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.");Z._store.validated=1;var $=d(w),G=$||"null";if(!Ok[G]){Ok[G]=!0,Z=Z._owner,w=w._debugOwner;var Q="";w&&typeof w.tag==="number"&&(G=d(w))&&(Q=`
|
|
220
|
+
|
|
221
|
+
Check the render method of \``+G+"`."),Q||$&&(Q=`
|
|
222
|
+
|
|
223
|
+
Check the top-level render call using <`+$+">.");var H="";Z!=null&&w!==Z&&($=null,typeof Z.tag==="number"?$=d(Z):typeof Z.name==="string"&&($=Z.name),$&&(H=" It was passed a child from "+$+".")),n(z,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.',Q,H)})}}};var A7=FL(!0),xk=FL(!1),vk=0,hk=1,Ek=2,GH=3,B4=!1,Pk=!1,QH=null,WH=!1,e9=w0(null),l3=w0(0),a2=w0(null),F5=null,wz=1,vJ=2,Hw=w0(0),i3=0,N5=1,B2=2,s2=4,L2=8,zz,Ik=new Set,bk=new Set,KH=new Set,Sk=new Set,L6=0,z1=null,R1=null,Nw=null,r3=!1,Zz=!1,j7=!1,a3=0,hJ=0,V6=null,uE=0,pE=25,$0=null,k5=null,F6=-1,EJ=!1,PJ={readContext:s1,use:n6,useCallback:Qw,useContext:Qw,useEffect:Qw,useImperativeHandle:Qw,useLayoutEffect:Qw,useInsertionEffect:Qw,useMemo:Qw,useReducer:Qw,useRef:Qw,useState:Qw,useDebugValue:Qw,useDeferredValue:Qw,useTransition:Qw,useSyncExternalStore:Qw,useId:Qw,useHostTransitionStatus:Qw,useFormState:Qw,useActionState:Qw,useOptimistic:Qw,useMemoCache:Qw,useCacheRefresh:Qw};PJ.useEffectEvent=Qw;var UH=null,Ck=null,HH=null,yk=null,R8=null,i5=null,s3=null;UH={readContext:function(w){return s1(w)},use:n6,useCallback:function(w,z){return $0="useCallback",U1(),F9(z),WK(w,z)},useContext:function(w){return $0="useContext",U1(),s1(w)},useEffect:function(w,z){return $0="useEffect",U1(),F9(z),u$(w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",U1(),F9(Z),QK(w,z,Z)},useInsertionEffect:function(w,z){$0="useInsertionEffect",U1(),F9(z),Y7(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",U1(),F9(z),GK(w,z)},useMemo:function(w,z){$0="useMemo",U1(),F9(z);var Z=Y0.H;Y0.H=R8;try{return KK(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",U1();var $=Y0.H;Y0.H=R8;try{return tW(w,z,Z)}finally{Y0.H=$}},useRef:function(w){return $0="useRef",U1(),$K(w)},useState:function(w){$0="useState",U1();var z=Y0.H;Y0.H=R8;try{return ZK(w)}finally{Y0.H=z}},useDebugValue:function(){$0="useDebugValue",U1()},useDeferredValue:function(w,z){return $0="useDeferredValue",U1(),UK(w,z)},useTransition:function(){return $0="useTransition",U1(),qK()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",U1(),wK(w,z,Z)},useId:function(){return $0="useId",U1(),BK()},useFormState:function(w,z){return $0="useFormState",U1(),R$(),k9(w,z)},useActionState:function(w,z){return $0="useActionState",U1(),k9(w,z)},useOptimistic:function(w){return $0="useOptimistic",U1(),JK(w)},useHostTransitionStatus:G7,useMemoCache:$7,useCacheRefresh:function(){return $0="useCacheRefresh",U1(),LK()},useEffectEvent:function(w){return $0="useEffectEvent",U1(),YK(w)}},Ck={readContext:function(w){return s1(w)},use:n6,useCallback:function(w,z){return $0="useCallback",q0(),WK(w,z)},useContext:function(w){return $0="useContext",q0(),s1(w)},useEffect:function(w,z){return $0="useEffect",q0(),u$(w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",q0(),QK(w,z,Z)},useInsertionEffect:function(w,z){$0="useInsertionEffect",q0(),Y7(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",q0(),GK(w,z)},useMemo:function(w,z){$0="useMemo",q0();var Z=Y0.H;Y0.H=R8;try{return KK(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",q0();var $=Y0.H;Y0.H=R8;try{return tW(w,z,Z)}finally{Y0.H=$}},useRef:function(w){return $0="useRef",q0(),$K(w)},useState:function(w){$0="useState",q0();var z=Y0.H;Y0.H=R8;try{return ZK(w)}finally{Y0.H=z}},useDebugValue:function(){$0="useDebugValue",q0()},useDeferredValue:function(w,z){return $0="useDeferredValue",q0(),UK(w,z)},useTransition:function(){return $0="useTransition",q0(),qK()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",q0(),wK(w,z,Z)},useId:function(){return $0="useId",q0(),BK()},useActionState:function(w,z){return $0="useActionState",q0(),k9(w,z)},useFormState:function(w,z){return $0="useFormState",q0(),R$(),k9(w,z)},useOptimistic:function(w){return $0="useOptimistic",q0(),JK(w)},useHostTransitionStatus:G7,useMemoCache:$7,useCacheRefresh:function(){return $0="useCacheRefresh",q0(),LK()},useEffectEvent:function(w){return $0="useEffectEvent",q0(),YK(w)}},HH={readContext:function(w){return s1(w)},use:n6,useCallback:function(w,z){return $0="useCallback",q0(),l$(w,z)},useContext:function(w){return $0="useContext",q0(),s1(w)},useEffect:function(w,z){$0="useEffect",q0(),M2(2048,L2,w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",q0(),c$(w,z,Z)},useInsertionEffect:function(w,z){return $0="useInsertionEffect",q0(),M2(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",q0(),M2(4,s2,w,z)},useMemo:function(w,z){$0="useMemo",q0();var Z=Y0.H;Y0.H=i5;try{return i$(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",q0();var $=Y0.H;Y0.H=i5;try{return N9(w,z,Z)}finally{Y0.H=$}},useRef:function(){return $0="useRef",q0(),b1().memoizedState},useState:function(){$0="useState",q0();var w=Y0.H;Y0.H=i5;try{return N9(m5)}finally{Y0.H=w}},useDebugValue:function(){$0="useDebugValue",q0()},useDeferredValue:function(w,z){return $0="useDeferredValue",q0(),mL(w,z)},useTransition:function(){return $0="useTransition",q0(),iL()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",q0(),f$(w,z,Z)},useId:function(){return $0="useId",q0(),b1().memoizedState},useFormState:function(w){return $0="useFormState",q0(),R$(),m$(w)},useActionState:function(w){return $0="useActionState",q0(),m$(w)},useOptimistic:function(w,z){return $0="useOptimistic",q0(),EL(w,z)},useHostTransitionStatus:G7,useMemoCache:$7,useCacheRefresh:function(){return $0="useCacheRefresh",q0(),b1().memoizedState},useEffectEvent:function(w){return $0="useEffectEvent",q0(),p$(w)}},yk={readContext:function(w){return s1(w)},use:n6,useCallback:function(w,z){return $0="useCallback",q0(),l$(w,z)},useContext:function(w){return $0="useContext",q0(),s1(w)},useEffect:function(w,z){$0="useEffect",q0(),M2(2048,L2,w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",q0(),c$(w,z,Z)},useInsertionEffect:function(w,z){return $0="useInsertionEffect",q0(),M2(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",q0(),M2(4,s2,w,z)},useMemo:function(w,z){$0="useMemo",q0();var Z=Y0.H;Y0.H=s3;try{return i$(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",q0();var $=Y0.H;Y0.H=s3;try{return yZ(w,z,Z)}finally{Y0.H=$}},useRef:function(){return $0="useRef",q0(),b1().memoizedState},useState:function(){$0="useState",q0();var w=Y0.H;Y0.H=s3;try{return yZ(m5)}finally{Y0.H=w}},useDebugValue:function(){$0="useDebugValue",q0()},useDeferredValue:function(w,z){return $0="useDeferredValue",q0(),dL(w,z)},useTransition:function(){return $0="useTransition",q0(),rL()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",q0(),f$(w,z,Z)},useId:function(){return $0="useId",q0(),b1().memoizedState},useFormState:function(w){return $0="useFormState",q0(),R$(),d$(w)},useActionState:function(w){return $0="useActionState",q0(),d$(w)},useOptimistic:function(w,z){return $0="useOptimistic",q0(),IL(w,z)},useHostTransitionStatus:G7,useMemoCache:$7,useCacheRefresh:function(){return $0="useCacheRefresh",q0(),b1().memoizedState},useEffectEvent:function(w){return $0="useEffectEvent",q0(),p$(w)}},R8={readContext:function(w){return L(),s1(w)},use:function(w){return _(),n6(w)},useCallback:function(w,z){return $0="useCallback",_(),U1(),WK(w,z)},useContext:function(w){return $0="useContext",_(),U1(),s1(w)},useEffect:function(w,z){return $0="useEffect",_(),U1(),u$(w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",_(),U1(),QK(w,z,Z)},useInsertionEffect:function(w,z){$0="useInsertionEffect",_(),U1(),Y7(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",_(),U1(),GK(w,z)},useMemo:function(w,z){$0="useMemo",_(),U1();var Z=Y0.H;Y0.H=R8;try{return KK(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",_(),U1();var $=Y0.H;Y0.H=R8;try{return tW(w,z,Z)}finally{Y0.H=$}},useRef:function(w){return $0="useRef",_(),U1(),$K(w)},useState:function(w){$0="useState",_(),U1();var z=Y0.H;Y0.H=R8;try{return ZK(w)}finally{Y0.H=z}},useDebugValue:function(){$0="useDebugValue",_(),U1()},useDeferredValue:function(w,z){return $0="useDeferredValue",_(),U1(),UK(w,z)},useTransition:function(){return $0="useTransition",_(),U1(),qK()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",_(),U1(),wK(w,z,Z)},useId:function(){return $0="useId",_(),U1(),BK()},useFormState:function(w,z){return $0="useFormState",_(),U1(),k9(w,z)},useActionState:function(w,z){return $0="useActionState",_(),U1(),k9(w,z)},useOptimistic:function(w){return $0="useOptimistic",_(),U1(),JK(w)},useMemoCache:function(w){return _(),$7(w)},useHostTransitionStatus:G7,useCacheRefresh:function(){return $0="useCacheRefresh",U1(),LK()},useEffectEvent:function(w){return $0="useEffectEvent",_(),U1(),YK(w)}},i5={readContext:function(w){return L(),s1(w)},use:function(w){return _(),n6(w)},useCallback:function(w,z){return $0="useCallback",_(),q0(),l$(w,z)},useContext:function(w){return $0="useContext",_(),q0(),s1(w)},useEffect:function(w,z){$0="useEffect",_(),q0(),M2(2048,L2,w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",_(),q0(),c$(w,z,Z)},useInsertionEffect:function(w,z){return $0="useInsertionEffect",_(),q0(),M2(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",_(),q0(),M2(4,s2,w,z)},useMemo:function(w,z){$0="useMemo",_(),q0();var Z=Y0.H;Y0.H=i5;try{return i$(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",_(),q0();var $=Y0.H;Y0.H=i5;try{return N9(w,z,Z)}finally{Y0.H=$}},useRef:function(){return $0="useRef",_(),q0(),b1().memoizedState},useState:function(){$0="useState",_(),q0();var w=Y0.H;Y0.H=i5;try{return N9(m5)}finally{Y0.H=w}},useDebugValue:function(){$0="useDebugValue",_(),q0()},useDeferredValue:function(w,z){return $0="useDeferredValue",_(),q0(),mL(w,z)},useTransition:function(){return $0="useTransition",_(),q0(),iL()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",_(),q0(),f$(w,z,Z)},useId:function(){return $0="useId",_(),q0(),b1().memoizedState},useFormState:function(w){return $0="useFormState",_(),q0(),m$(w)},useActionState:function(w){return $0="useActionState",_(),q0(),m$(w)},useOptimistic:function(w,z){return $0="useOptimistic",_(),q0(),EL(w,z)},useMemoCache:function(w){return _(),$7(w)},useHostTransitionStatus:G7,useCacheRefresh:function(){return $0="useCacheRefresh",q0(),b1().memoizedState},useEffectEvent:function(w){return $0="useEffectEvent",_(),q0(),p$(w)}},s3={readContext:function(w){return L(),s1(w)},use:function(w){return _(),n6(w)},useCallback:function(w,z){return $0="useCallback",_(),q0(),l$(w,z)},useContext:function(w){return $0="useContext",_(),q0(),s1(w)},useEffect:function(w,z){$0="useEffect",_(),q0(),M2(2048,L2,w,z)},useImperativeHandle:function(w,z,Z){return $0="useImperativeHandle",_(),q0(),c$(w,z,Z)},useInsertionEffect:function(w,z){return $0="useInsertionEffect",_(),q0(),M2(4,B2,w,z)},useLayoutEffect:function(w,z){return $0="useLayoutEffect",_(),q0(),M2(4,s2,w,z)},useMemo:function(w,z){$0="useMemo",_(),q0();var Z=Y0.H;Y0.H=i5;try{return i$(w,z)}finally{Y0.H=Z}},useReducer:function(w,z,Z){$0="useReducer",_(),q0();var $=Y0.H;Y0.H=i5;try{return yZ(w,z,Z)}finally{Y0.H=$}},useRef:function(){return $0="useRef",_(),q0(),b1().memoizedState},useState:function(){$0="useState",_(),q0();var w=Y0.H;Y0.H=i5;try{return yZ(m5)}finally{Y0.H=w}},useDebugValue:function(){$0="useDebugValue",_(),q0()},useDeferredValue:function(w,z){return $0="useDeferredValue",_(),q0(),dL(w,z)},useTransition:function(){return $0="useTransition",_(),q0(),rL()},useSyncExternalStore:function(w,z,Z){return $0="useSyncExternalStore",_(),q0(),f$(w,z,Z)},useId:function(){return $0="useId",_(),q0(),b1().memoizedState},useFormState:function(w){return $0="useFormState",_(),q0(),d$(w)},useActionState:function(w){return $0="useActionState",_(),q0(),d$(w)},useOptimistic:function(w,z){return $0="useOptimistic",_(),q0(),IL(w,z)},useMemoCache:function(w){return _(),$7(w)},useHostTransitionStatus:G7,useCacheRefresh:function(){return $0="useCacheRefresh",q0(),b1().memoizedState},useEffectEvent:function(w){return $0="useEffectEvent",_(),q0(),p$(w)}};var Rk={},gk=new Set,fk=new Set,mk=new Set,dk=new Set,uk=new Set,pk=new Set,ck=new Set,lk=new Set,ik=new Set,rk=new Set;Object.freeze(Rk);var _H={enqueueSetState:function(w,z,Z){w=w._reactInternals;var $=u2(w),G=r6($);G.payload=z,Z!==void 0&&Z!==null&&(FK(Z),G.callback=Z),z=a6(w,G,$),z!==null&&(q8($,"this.setState()",w),Zw(z,w,$),IZ(z,w,$))},enqueueReplaceState:function(w,z,Z){w=w._reactInternals;var $=u2(w),G=r6($);G.tag=hk,G.payload=z,Z!==void 0&&Z!==null&&(FK(Z),G.callback=Z),z=a6(w,G,$),z!==null&&(q8($,"this.replaceState()",w),Zw(z,w,$),IZ(z,w,$))},enqueueForceUpdate:function(w,z){w=w._reactInternals;var Z=u2(w),$=r6(Z);$.tag=Ek,z!==void 0&&z!==null&&(FK(z),$.callback=z),z=a6(w,$,Z),z!==null&&(q8(Z,"this.forceUpdate()",w),Zw(z,w,Z),IZ(z,w,Z))}},Jz=null,qH=null,BH=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."),kw=!1,ak={},sk={},ok={},nk={},Xz=!1,tk={},o3={},LH={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},ek=!1,wA=null;wA=new Set;var N6=!1,Aw=!1,VH=!1,zA=typeof WeakSet==="function"?WeakSet:Set,mw=null,$z=null,Yz=null,jw=null,T2=!1,r5=null,Iw=!1,IJ=8192,cE={getCacheForType:function(w){var z=s1(Vw),Z=z.data.get(w);return Z===void 0&&(Z=w(),z.data.set(w,Z)),Z},cacheSignal:function(){return s1(Vw).controller.signal},getOwner:function(){return l2}};if(typeof Symbol==="function"&&Symbol.for){var bJ=Symbol.for;bJ("selector.component"),bJ("selector.has_pseudo_class"),bJ("selector.role"),bJ("selector.test_id"),bJ("selector.text")}var lE=[],iE=typeof WeakMap==="function"?WeakMap:Map,dw=0,bw=2,o2=4,k6=0,SJ=1,M7=2,n3=3,L4=4,t3=6,ZA=5,M1=dw,g1=null,K1=null,Q1=0,x2=0,e3=1,O7=2,CJ=3,JA=4,FH=5,yJ=6,wY=7,NH=8,D7=9,S1=x2,n2=null,V4=!1,Gz=!1,kH=!1,g8=0,e1=k6,F4=0,N4=0,AH=0,v2=0,T7=0,RJ=null,V2=null,zY=!1,ZY=0,XA=0,$A=300,JY=1/0,YA=500,gJ=null,Ww=null,k4=null,XY=0,jH=1,MH=2,GA=3,A4=0,QA=1,WA=2,KA=3,UA=4,$Y=5,Mw=0,j4=null,Qz=null,a5=0,OH=0,DH=-0,TH=null,HA=null,_A=null,s5=XY,qA=null,rE=50,fJ=0,xH=null,vH=!1,YY=!1,aE=50,x7=0,mJ=null,Wz=!1,GY=null,BA=!1,LA=new Set,sE={},QY=null,Kz=null,hH=!1,EH=!1,WY=!1,PH=!1,M4=0,IH={};(function(){for(var w=0;w<pU.length;w++){var z=pU[w],Z=z.toLowerCase();z=z[0].toUpperCase()+z.slice(1),f5(Z,"on"+z)}f5(iN,"onAnimationEnd"),f5(rN,"onAnimationIteration"),f5(aN,"onAnimationStart"),f5("dblclick","onDoubleClick"),f5("focusin","onFocus"),f5("focusout","onBlur"),f5(DE,"onTransitionRun"),f5(TE,"onTransitionStart"),f5(xE,"onTransitionCancel"),f5(sN,"onTransitionEnd")})(),Q2("onMouseEnter",["mouseout","mouseover"]),Q2("onMouseLeave",["mouseout","mouseover"]),Q2("onPointerEnter",["pointerout","pointerover"]),Q2("onPointerLeave",["pointerout","pointerover"]),Ew("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ew("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ew("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ew("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ew("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ew("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dJ="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(" "),bH=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dJ)),KY="_reactListening"+Math.random().toString(36).slice(2),VA=!1,FA=!1,UY=!1,NA=!1,HY=!1,_Y=!1,kA=!1,qY={},oE=/\r\n?/g,nE=/\u0000|\uFFFD/g,v7="http://www.w3.org/1999/xlink",SH="http://www.w3.org/XML/1998/namespace",tE="javascript:throw new Error('React form unexpectedly submitted.')",eE="suppressHydrationWarning",h7="&",BY="/&",uJ="$",pJ="/$",O4="$?",E7="$~",Uz="$!",wP="html",zP="body",ZP="head",CH="F!",AA="F",jA="loading",JP="style",A6=0,Hz=1,LY=2,yH=null,RH=null,MA={dialog:!0,webview:!0},gH=null,cJ=void 0,OA=typeof setTimeout==="function"?setTimeout:void 0,XP=typeof clearTimeout==="function"?clearTimeout:void 0,P7=-1,DA=typeof Promise==="function"?Promise:void 0,$P=typeof queueMicrotask==="function"?queueMicrotask:typeof DA<"u"?function(w){return DA.resolve(null).then(w).catch(pv)}:OA,fH=null,I7=0,lJ=1,TA=2,xA=3,A5=4,j5=new Map,vA=new Set,j6=I1.d;I1.d={f:function(){var w=j6.f(),z=D9();return w||z},r:function(w){var z=a0(w);z!==null&&z.tag===5&&z.type==="form"?lL(z):j6.r(w)},D:function(w){j6.D(w),gF("dns-prefetch",w,null)},C:function(w,z){j6.C(w,z),gF("preconnect",w,z)},L:function(w,z,Z){j6.L(w,z,Z);var $=_z;if($&&w&&z){var G='link[rel="preload"][as="'+W5(z)+'"]';z==="image"?Z&&Z.imageSrcSet?(G+='[imagesrcset="'+W5(Z.imageSrcSet)+'"]',typeof Z.imageSizes==="string"&&(G+='[imagesizes="'+W5(Z.imageSizes)+'"]')):G+='[href="'+W5(w)+'"]':G+='[href="'+W5(w)+'"]';var Q=G;switch(z){case"style":Q=v9(w);break;case"script":Q=h9(w)}j5.has(Q)||(w=H1({rel:"preload",href:z==="image"&&Z&&Z.imageSrcSet?void 0:w,as:z},Z),j5.set(Q,w),$.querySelector(G)!==null||z==="style"&&$.querySelector(nZ(Q))||z==="script"&&$.querySelector(tZ(Q))||(z=$.createElement("link"),aw(z,"link",w),d0(z),$.head.appendChild(z)))}},m:function(w,z){j6.m(w,z);var Z=_z;if(Z&&w){var $=z&&typeof z.as==="string"?z.as:"script",G='link[rel="modulepreload"][as="'+W5($)+'"][href="'+W5(w)+'"]',Q=G;switch($){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":Q=h9(w)}if(!j5.has(Q)&&(w=H1({rel:"modulepreload",href:w},z),j5.set(Q,w),Z.querySelector(G)===null)){switch($){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(Z.querySelector(tZ(Q)))return}$=Z.createElement("link"),aw($,"link",w),d0($),Z.head.appendChild($)}}},X:function(w,z){j6.X(w,z);var Z=_z;if(Z&&w){var $=$1(Z).hoistableScripts,G=h9(w),Q=$.get(G);Q||(Q=Z.querySelector(tZ(G)),Q||(w=H1({src:w,async:!0},z),(z=j5.get(G))&&QU(w,z),Q=Z.createElement("script"),d0(Q),aw(Q,"link",w),Z.head.appendChild(Q)),Q={type:"script",instance:Q,count:1,state:null},$.set(G,Q))}},S:function(w,z,Z){j6.S(w,z,Z);var $=_z;if($&&w){var G=$1($).hoistableStyles,Q=v9(w);z=z||"default";var H=G.get(Q);if(!H){var B={loading:I7,preload:null};if(H=$.querySelector(nZ(Q)))B.loading=lJ|A5;else{w=H1({rel:"stylesheet",href:w,"data-precedence":z},Z),(Z=j5.get(Q))&&GU(w,Z);var j=H=$.createElement("link");d0(j),aw(j,"link",w),j._p=new Promise(function(O,i){j.onload=O,j.onerror=i}),j.addEventListener("load",function(){B.loading|=lJ}),j.addEventListener("error",function(){B.loading|=TA}),B.loading|=A5,U3(H,z,$)}H={type:"stylesheet",instance:H,count:1,state:B},G.set(Q,H)}}},M:function(w,z){j6.M(w,z);var Z=_z;if(Z&&w){var $=$1(Z).hoistableScripts,G=h9(w),Q=$.get(G);Q||(Q=Z.querySelector(tZ(G)),Q||(w=H1({src:w,async:!0,type:"module"},z),(z=j5.get(G))&&QU(w,z),Q=Z.createElement("script"),d0(Q),aw(Q,"link",w),Z.head.appendChild(Q)),Q={type:"script",instance:Q,count:1,state:null},$.set(G,Q))}}};var _z=typeof document>"u"?null:document,VY=null,YP=60000,GP=800,QP=500,mH=0,dH=null,FY=null,b7=Mh,iJ={$$typeof:v8,Provider:null,Consumer:null,_currentValue:b7,_currentValue2:b7,_threadCount:0},hA="%c%s%c",EA="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",PA="",NY=" ",WP=Function.prototype.bind,IA=!1,bA=null,SA=null,CA=null,yA=null,RA=null,gA=null,fA=null,mA=null,dA=null,uA=null;bA=function(w,z,Z,$){z=J(w,z),z!==null&&(Z=X(z.memoizedState,Z,0,$),z.memoizedState=Z,z.baseState=Z,w.memoizedProps=H1({},w.memoizedProps),Z=w2(w,2),Z!==null&&Zw(Z,w,2))},SA=function(w,z,Z){z=J(w,z),z!==null&&(Z=K(z.memoizedState,Z,0),z.memoizedState=Z,z.baseState=Z,w.memoizedProps=H1({},w.memoizedProps),Z=w2(w,2),Z!==null&&Zw(Z,w,2))},CA=function(w,z,Z,$){z=J(w,z),z!==null&&(Z=Y(z.memoizedState,Z,$),z.memoizedState=Z,z.baseState=Z,w.memoizedProps=H1({},w.memoizedProps),Z=w2(w,2),Z!==null&&Zw(Z,w,2))},yA=function(w,z,Z){w.pendingProps=X(w.memoizedProps,z,0,Z),w.alternate&&(w.alternate.pendingProps=w.pendingProps),z=w2(w,2),z!==null&&Zw(z,w,2)},RA=function(w,z){w.pendingProps=K(w.memoizedProps,z,0),w.alternate&&(w.alternate.pendingProps=w.pendingProps),z=w2(w,2),z!==null&&Zw(z,w,2)},gA=function(w,z,Z){w.pendingProps=Y(w.memoizedProps,z,Z),w.alternate&&(w.alternate.pendingProps=w.pendingProps),z=w2(w,2),z!==null&&Zw(z,w,2)},fA=function(w){var z=w2(w,2);z!==null&&Zw(z,w,2)},mA=function(w){var z=q1(),Z=w2(w,z);Z!==null&&Zw(Z,w,z)},dA=function(w){q=w},uA=function(w){U=w};var kY=!0,AY=null,uH=!1,D4=null,T4=null,x4=null,rJ=new Map,aJ=new Map,v4=[],KP="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(" "),jY=null;if(L3.prototype.render=qU.prototype.render=function(w){var z=this._internalRoot;if(z===null)throw Error("Cannot update an unmounted root.");var Z=arguments;typeof Z[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()."):h(Z[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof Z[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),Z=w;var $=z.current,G=u2($);WU($,G,Z,z,null,null)},L3.prototype.unmount=qU.prototype.unmount=function(){var w=arguments;if(typeof w[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()."),w=this._internalRoot,w!==null){this._internalRoot=null;var z=w.containerInfo;(M1&(bw|o2))!==dw&&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."),WU(w.current,2,null,w,null,null),D9(),z[X4]=null}},L3.prototype.unstable_scheduleHydration=function(w){if(w){var z=s();w={blockedOn:null,target:w,priority:z};for(var Z=0;Z<v4.length&&z!==0&&z<v4[Z].priority;Z++);v4.splice(Z,0,w),Z===0&&tF(w)}},function(){var w=Bz.version;if(w!=="19.2.3")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
224
|
+
- react: `+(w+`
|
|
225
|
+
- react-dom: 19.2.3
|
|
226
|
+
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"),I1.findDOMNode=function(w){var z=w._reactInternals;if(z===void 0){if(typeof w.render==="function")throw Error("Unable to find node on an unmounted component.");throw w=Object.keys(w).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+w)}return w=E(z),w=w!==null?m(w):null,w=w===null?null:w.stateNode,w},!function(){var w={bundleType:1,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:Y0,reconcilerVersion:"19.2.3"};return w.overrideHookState=bA,w.overrideHookStateDeletePath=SA,w.overrideHookStateRenamePath=CA,w.overrideProps=yA,w.overridePropsDeletePath=RA,w.overridePropsRenamePath=gA,w.scheduleUpdate=fA,w.scheduleRetry=mA,w.setErrorHandler=dA,w.setSuspenseHandler=uA,w.scheduleRefresh=D,w.scheduleRoot=A,w.setRefreshHandler=M,w.getCurrentFiber=Bh,c0(w)}()&&b8&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var pA=window.location.protocol;/^(https?|file):$/.test(pA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(pA==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}NP.createRoot=function(w,z){if(!h(w))throw Error("Target container is not a DOM element.");ZN(w);var Z=!1,$="",G=eL,Q=wV,H=zV;return z!==null&&z!==void 0&&(z.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof z==="object"&&z!==null&&z.$$typeof===x8&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
228
|
+
|
|
229
|
+
let root = createRoot(domContainer);
|
|
230
|
+
root.render(<App />);`),z.unstable_strictMode===!0&&(Z=!0),z.identifierPrefix!==void 0&&($=z.identifierPrefix),z.onUncaughtError!==void 0&&(G=z.onUncaughtError),z.onCaughtError!==void 0&&(Q=z.onCaughtError),z.onRecoverableError!==void 0&&(H=z.onRecoverableError)),z=lF(w,1,!1,null,null,Z,$,null,G,Q,H,zN),w[X4]=z.current,sK(w),new qU(z)},NP.hydrateRoot=function(w,z,Z){if(!h(w))throw Error("Target container is not a DOM element.");ZN(w),z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var $=!1,G="",Q=eL,H=wV,B=zV,j=null;return Z!==null&&Z!==void 0&&(Z.unstable_strictMode===!0&&($=!0),Z.identifierPrefix!==void 0&&(G=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(Q=Z.onUncaughtError),Z.onCaughtError!==void 0&&(H=Z.onCaughtError),Z.onRecoverableError!==void 0&&(B=Z.onRecoverableError),Z.formState!==void 0&&(j=Z.formState)),z=lF(w,1,!0,z,Z!=null?Z:null,$,G,j,Q,H,B,zN),z.context=iF(null),Z=z.current,$=u2(Z),$=hw($),G=r6($),G.callback=null,a6(Z,G,$),q8($,"hydrateRoot()",null),Z=$,z.current.lanes=Z,W1(z,Z),D8(z),w[X4]=z.current,sK(w),new L3(z)},NP.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var sA=f8((vg,aA)=>{aA.exports=rA()});var x1=f8((OP)=>{var C7=c(G0());(function(){function J(P){if(P==null)return null;if(typeof P==="function")return P.$$typeof===d?null:P.displayName||P.name||null;if(typeof P==="string")return P;switch(P){case M:return"Fragment";case v:return"Profiler";case h:return"StrictMode";case E:return"Suspense";case m:return"SuspenseList";case p:return"Activity"}if(typeof P==="object")switch(typeof P.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case D:return"Portal";case I:return P.displayName||"Context";case x:return(P._context.displayName||"Context")+".Consumer";case b:var z0=P.render;return P=P.displayName,P||(P=z0.displayName||z0.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case R:return z0=P.displayName||null,z0!==null?z0:J(P.type)||"Memo";case S:z0=P._payload,P=P._init;try{return J(P(z0))}catch(U0){}}return null}function X(P){return""+P}function Y(P){try{X(P);var z0=!1}catch(L0){z0=!0}if(z0){z0=console;var U0=z0.error,J0=typeof Symbol==="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return U0.call(z0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",J0),X(P)}}function W(P){if(P===M)return"<>";if(typeof P==="object"&&P!==null&&P.$$typeof===S)return"<...>";try{var z0=J(P);return z0?"<"+z0+">":"<...>"}catch(U0){return"<...>"}}function K(){var P=w0.A;return P===null?null:P.getOwner()}function U(){return Error("react-stack-top-frame")}function q(P){if(t.call(P,"key")){var z0=Object.getOwnPropertyDescriptor(P,"key").get;if(z0&&z0.isReactWarning)return!1}return P.key!==void 0}function _(P,z0){function U0(){r||(r=!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)",z0))}U0.isReactWarning=!0,Object.defineProperty(P,"key",{get:U0,configurable:!0})}function L(){var P=J(this.type);return e[P]||(e[P]=!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.")),P=this.props.ref,P!==void 0?P:null}function F(P,z0,U0,J0,L0,S0){var V0=U0.ref;return P={$$typeof:A,type:P,key:z0,props:U0,_owner:J0},(V0!==void 0?V0:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:L}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:L0}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S0}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function N(P,z0,U0,J0,L0,S0){var V0=z0.children;if(V0!==void 0)if(J0)if(u(V0)){for(J0=0;J0<V0.length;J0++)V(V0[J0]);Object.freeze&&Object.freeze(V0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else V(V0);if(t.call(z0,"key")){V0=J(P);var H0=Object.keys(z0).filter(function(r0){return r0!=="key"});J0=0<H0.length?"{key: someKey, "+H0.join(": ..., ")+": ...}":"{key: someKey}",X0[V0+J0]||(H0=0<H0.length?"{"+H0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
231
|
+
let props = %s;
|
|
232
|
+
<%s {...props} />
|
|
233
|
+
React keys must be passed directly to JSX without using spread:
|
|
234
|
+
let props = %s;
|
|
235
|
+
<%s key={someKey} {...props} />`,J0,V0,H0,V0),X0[V0+J0]=!0)}if(V0=null,U0!==void 0&&(Y(U0),V0=""+U0),q(z0)&&(Y(z0.key),V0=""+z0.key),"key"in z0){U0={};for(var j0 in z0)j0!=="key"&&(U0[j0]=z0[j0])}else U0=z0;return V0&&_(U0,typeof P==="function"?P.displayName||P.name||"Unknown":P),F(P,V0,U0,K(),L0,S0)}function V(P){k(P)?P._store&&(P._store.validated=1):typeof P==="object"&&P!==null&&P.$$typeof===S&&(P._payload.status==="fulfilled"?k(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function k(P){return typeof P==="object"&&P!==null&&P.$$typeof===A}var A=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),I=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),w0=C7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,t=Object.prototype.hasOwnProperty,u=Array.isArray,Q0=console.createTask?console.createTask:function(){return null};C7={react_stack_bottom_frame:function(P){return P()}};var r,e={},o=C7.react_stack_bottom_frame.bind(C7,U)(),g=Q0(W(U)),X0={};OP.Fragment=M,OP.jsx=function(P,z0,U0){var J0=1e4>w0.recentlyCreatedOwnerStacks++;return N(P,z0,U0,!1,J0?Error("react-stack-top-frame"):o,J0?Q0(W(P)):g)},OP.jsxs=function(P,z0,U0){var J0=1e4>w0.recentlyCreatedOwnerStacks++;return N(P,z0,U0,!0,J0?Error("react-stack-top-frame"):o,J0?Q0(W(P)):g)}})()});var u_=f8((WS)=>{var X5=c(G0());(function(){function J(k,A){return k===A&&(k!==0||1/k===1/A)||k!==k&&A!==A}function X(k,A){F||X5.startTransition===void 0||(F=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var D=A();if(!N){var M=A();K(D,M)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),N=!0)}M=U({inst:{value:D,getSnapshot:A}});var h=M[0].inst,v=M[1];return _(function(){h.value=D,h.getSnapshot=A,Y(h)&&v({inst:h})},[k,D,A]),q(function(){return Y(h)&&v({inst:h}),k(function(){Y(h)&&v({inst:h})})},[k]),L(D),D}function Y(k){var A=k.getSnapshot;k=k.value;try{var D=A();return!K(k,D)}catch(M){return!0}}function W(k,A){return A()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var K=typeof Object.is==="function"?Object.is:J,U=X5.useState,q=X5.useEffect,_=X5.useLayoutEffect,L=X5.useDebugValue,F=!1,N=!1,V=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?W:X;WS.useSyncExternalStore=X5.useSyncExternalStore!==void 0?X5.useSyncExternalStore:V,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var $O=f8((KS)=>{var h6=c(G0());(function(){function J(L,F){return L===F&&(L!==0||1/L===1/F)||L!==L&&F!==F}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var X=u_(),Y=typeof Object.is==="function"?Object.is:J,W=X.useSyncExternalStore,K=h6.useRef,U=h6.useEffect,q=h6.useMemo,_=h6.useDebugValue;KS.useSyncExternalStoreWithSelector=function(L,F,N,V,k){var A=K(null);if(A.current===null){var D={hasValue:!1,value:null};A.current=D}else D=A.current;A=q(function(){function h(E){if(!v){if(v=!0,x=E,E=V(E),k!==void 0&&D.hasValue){var m=D.value;if(k(m,E))return I=m}return I=E}if(m=I,Y(x,E))return m;var R=V(E);if(k!==void 0&&k(m,R))return x=E,m;return x=E,I=R}var v=!1,x,I,b=N===void 0?null:N;return[function(){return h(F())},b===null?void 0:function(){return h(b())}]},[F,N,V,k]);var M=W(L,A[0],A[1]);return U(function(){D.hasValue=!0,D.value=M},[M]),_(M),M},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var E1=f8((zy)=>{var Q9=c(G0());(function(){function J(P){if(P==null)return null;if(typeof P==="function")return P.$$typeof===d?null:P.displayName||P.name||null;if(typeof P==="string")return P;switch(P){case M:return"Fragment";case v:return"Profiler";case h:return"StrictMode";case E:return"Suspense";case m:return"SuspenseList";case p:return"Activity"}if(typeof P==="object")switch(typeof P.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case D:return"Portal";case I:return P.displayName||"Context";case x:return(P._context.displayName||"Context")+".Consumer";case b:var z0=P.render;return P=P.displayName,P||(P=z0.displayName||z0.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case R:return z0=P.displayName||null,z0!==null?z0:J(P.type)||"Memo";case S:z0=P._payload,P=P._init;try{return J(P(z0))}catch(U0){}}return null}function X(P){return""+P}function Y(P){try{X(P);var z0=!1}catch(L0){z0=!0}if(z0){z0=console;var U0=z0.error,J0=typeof Symbol==="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return U0.call(z0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",J0),X(P)}}function W(P){if(P===M)return"<>";if(typeof P==="object"&&P!==null&&P.$$typeof===S)return"<...>";try{var z0=J(P);return z0?"<"+z0+">":"<...>"}catch(U0){return"<...>"}}function K(){var P=w0.A;return P===null?null:P.getOwner()}function U(){return Error("react-stack-top-frame")}function q(P){if(t.call(P,"key")){var z0=Object.getOwnPropertyDescriptor(P,"key").get;if(z0&&z0.isReactWarning)return!1}return P.key!==void 0}function _(P,z0){function U0(){r||(r=!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)",z0))}U0.isReactWarning=!0,Object.defineProperty(P,"key",{get:U0,configurable:!0})}function L(){var P=J(this.type);return e[P]||(e[P]=!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.")),P=this.props.ref,P!==void 0?P:null}function F(P,z0,U0,J0,L0,S0){var V0=U0.ref;return P={$$typeof:A,type:P,key:z0,props:U0,_owner:J0},(V0!==void 0?V0:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:L}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:L0}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S0}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function N(P,z0,U0,J0,L0,S0){var V0=z0.children;if(V0!==void 0)if(J0)if(u(V0)){for(J0=0;J0<V0.length;J0++)V(V0[J0]);Object.freeze&&Object.freeze(V0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else V(V0);if(t.call(z0,"key")){V0=J(P);var H0=Object.keys(z0).filter(function(r0){return r0!=="key"});J0=0<H0.length?"{key: someKey, "+H0.join(": ..., ")+": ...}":"{key: someKey}",X0[V0+J0]||(H0=0<H0.length?"{"+H0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
236
|
+
let props = %s;
|
|
237
|
+
<%s {...props} />
|
|
238
|
+
React keys must be passed directly to JSX without using spread:
|
|
239
|
+
let props = %s;
|
|
240
|
+
<%s key={someKey} {...props} />`,J0,V0,H0,V0),X0[V0+J0]=!0)}if(V0=null,U0!==void 0&&(Y(U0),V0=""+U0),q(z0)&&(Y(z0.key),V0=""+z0.key),"key"in z0){U0={};for(var j0 in z0)j0!=="key"&&(U0[j0]=z0[j0])}else U0=z0;return V0&&_(U0,typeof P==="function"?P.displayName||P.name||"Unknown":P),F(P,V0,U0,K(),L0,S0)}function V(P){k(P)?P._store&&(P._store.validated=1):typeof P==="object"&&P!==null&&P.$$typeof===S&&(P._payload.status==="fulfilled"?k(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function k(P){return typeof P==="object"&&P!==null&&P.$$typeof===A}var A=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),I=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),w0=Q9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,t=Object.prototype.hasOwnProperty,u=Array.isArray,Q0=console.createTask?console.createTask:function(){return null};Q9={react_stack_bottom_frame:function(P){return P()}};var r,e={},o=Q9.react_stack_bottom_frame.bind(Q9,U)(),g=Q0(W(U)),X0={};zy.Fragment=M,zy.jsxDEV=function(P,z0,U0,J0){var L0=1e4>w0.recentlyCreatedOwnerStacks++;return N(P,z0,U0,J0,L0?Error("react-stack-top-frame"):o,L0?Q0(W(P)):g)}})()});var Ex=c(sA(),1);var d8=c(G0(),1);function Lz({controlled:J,default:X,name:Y,state:W="value"}){let{current:K}=d8.useRef(J!==void 0),[U,q]=d8.useState(X),_=K?J:U;{d8.useEffect(()=>{if(K!==(J!==void 0))console.error([`Base UI: A component is changing the ${K?"":"un"}controlled ${W} state of ${Y} to be ${K?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${Y} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
241
|
+
`))},[W,Y,J]);let{current:F}=d8.useRef(X);d8.useEffect(()=>{if(!K&&JSON.stringify(F)!==JSON.stringify(X))console.error([`Base UI: A component is changing the default ${W} state of an uncontrolled ${Y} after being initialized. To suppress this warning opt to use a controlled ${Y}.`].join(`
|
|
242
|
+
`))},[JSON.stringify(X)])}let L=d8.useCallback((F)=>{if(!K)q(F)},[]);return[_,L]}var rH=c(G0(),1);var nA=c(G0(),1),oA={};function r1(J,X){let Y=nA.useRef(oA);if(Y.current===oA)Y.current=J(X);return Y}var iH=rH[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],kP=iH&&iH!==rH.useLayoutEffect?iH:(J)=>J();function F0(J){let X=r1(AP).current;return X.next=J,kP(X.effect),X.trampoline}function AP(){let J={next:void 0,callback:jP,trampoline:(...X)=>J.callback?.(...X),effect:()=>{J.callback=J.next}};return J}function jP(){throw Error("Base UI: Cannot call an event handler while rendering.")}var tA=c(G0(),1),MP=()=>{},k0=typeof document<"u"?tA.useLayoutEffect:MP;var h4=c(G0(),1);var OY=c(G0(),1),DY=OY.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>{return()=>{}},elementsRef:{current:[]},nextIndexRef:{current:0}});DY.displayName="CompositeListContext";function eA(){return OY.useContext(DY)}var wj=c(x1(),1);function Vz(J){let{children:X,elementsRef:Y,labelsRef:W,onMapChange:K}=J,U=F0(K),q=h4.useRef(0),_=r1(TP).current,L=r1(DP).current,[F,N]=h4.useState(0),V=h4.useRef(F),k=F0((v,x)=>{L.set(v,x??null),V.current+=1,N(V.current)}),A=F0((v)=>{L.delete(v),V.current+=1,N(V.current)}),D=h4.useMemo(()=>{vP(F);let v=new Map;return Array.from(L.keys()).filter((I)=>I.isConnected).sort(xP).forEach((I,b)=>{let E=L.get(I)??{};v.set(I,{...E,index:b})}),v},[L,F]);k0(()=>{if(typeof MutationObserver!=="function"||D.size===0)return;let v=new MutationObserver((x)=>{let I=new Set,b=(E)=>I.has(E)?I.delete(E):I.add(E);if(x.forEach((E)=>{E.removedNodes.forEach(b),E.addedNodes.forEach(b)}),I.size===0)V.current+=1,N(V.current)});return D.forEach((x,I)=>{if(I.parentElement)v.observe(I.parentElement,{childList:!0})}),()=>{v.disconnect()}},[D]),k0(()=>{if(V.current===F){if(Y.current.length!==D.size)Y.current.length=D.size;if(W&&W.current.length!==D.size)W.current.length=D.size;q.current=D.size}U(D)},[U,D,Y,W,F]),k0(()=>{return()=>{Y.current=[]}},[Y]),k0(()=>{return()=>{if(W)W.current=[]}},[W]);let M=F0((v)=>{return _.add(v),()=>{_.delete(v)}});k0(()=>{_.forEach((v)=>v(D))},[_,D]);let h=h4.useMemo(()=>({register:k,unregister:A,subscribeMapChange:M,elementsRef:Y,labelsRef:W,nextIndexRef:q}),[k,A,M,Y,W,q]);return wj.jsx(DY.Provider,{value:h,children:X})}function DP(){return new Map}function TP(){return new Set}function xP(J,X){let Y=J.compareDocumentPosition(X);if(Y&Node.DOCUMENT_POSITION_FOLLOWING||Y&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(Y&Node.DOCUMENT_POSITION_PRECEDING||Y&Node.DOCUMENT_POSITION_CONTAINS)return 1;return 0}function vP(J){}var TY=c(G0(),1),zj=TY.createContext(void 0);zj.displayName="DirectionContext";function M5(){return TY.useContext(zj)?.direction??"ltr"}var PY=c(G0(),1);function O5(J,X,Y,W){let K=r1(Jj).current;if(hP(K,J,X,Y,W))Xj(K,[J,X,Y,W]);return K.callback}function Zj(J){let X=r1(Jj).current;if(EP(X,J))Xj(X,J);return X.callback}function Jj(){return{callback:null,cleanup:null,refs:[]}}function hP(J,X,Y,W,K){return J.refs[0]!==X||J.refs[1]!==Y||J.refs[2]!==W||J.refs[3]!==K}function EP(J,X){return J.refs.length!==X.length||J.refs.some((Y,W)=>Y!==X[W])}function Xj(J,X){if(J.refs=X,X.every((Y)=>Y==null)){J.callback=null;return}J.callback=(Y)=>{if(J.cleanup)J.cleanup(),J.cleanup=null;if(Y!=null){let W=Array(X.length).fill(null);for(let K=0;K<X.length;K+=1){let U=X[K];if(U==null)continue;switch(typeof U){case"function":{let q=U(Y);if(typeof q==="function")W[K]=q;break}case"object":{U.current=Y;break}default:}}J.cleanup=()=>{for(let K=0;K<X.length;K+=1){let U=X[K];if(U==null)continue;switch(typeof U){case"function":{let q=W[K];if(typeof q==="function")q();else U(null);break}case"object":{U.current=null;break}default:}}}}}}var Yj=c(G0(),1);var $j=c(G0(),1),PP=parseInt($j.version,10);function Fz(J){return PP>=J}function aH(J){if(!Yj.isValidElement(J))return null;let X=J,Y=X.props;return(Fz(19)?Y?.ref:X.ref)??null}function sJ(J,X){if(J&&!X)return J;if(!J&&X)return X;if(J||X)return{...J,...X};return}function Gj(J,X){let Y={};for(let W in J){let K=J[W];if(X?.hasOwnProperty(W)){let U=X[W](K);if(U!=null)Object.assign(Y,U);continue}if(K===!0)Y[`data-${W.toLowerCase()}`]="";else if(K)Y[`data-${W.toLowerCase()}`]=K.toString()}return Y}function Qj(J,X){return typeof J==="function"?J(X):J}function Wj(J,X){return typeof J==="function"?J(X):J}var nJ={};function D5(J,X,Y,W,K){let U={...sH(J,nJ)};if(X)U=oJ(U,X);if(Y)U=oJ(U,Y);if(W)U=oJ(U,W);if(K)U=oJ(U,K);return U}function Kj(J){if(J.length===0)return nJ;if(J.length===1)return sH(J[0],nJ);let X={...sH(J[0],nJ)};for(let Y=1;Y<J.length;Y+=1)X=oJ(X,J[Y]);return X}function oJ(J,X){if(Uj(X))return X(J);return IP(J,X)}function IP(J,X){if(!X)return J;for(let Y in X){let W=X[Y];switch(Y){case"style":{J[Y]=sJ(J.style,W);break}case"className":{J[Y]=oH(J.className,W);break}default:if(bP(Y,W))J[Y]=SP(J[Y],W);else J[Y]=W}}return J}function bP(J,X){let Y=J.charCodeAt(0),W=J.charCodeAt(1),K=J.charCodeAt(2);return Y===111&&W===110&&K>=65&&K<=90&&(typeof X==="function"||typeof X>"u")}function Uj(J){return typeof J==="function"}function sH(J,X){if(Uj(J))return J(X);return J??nJ}function SP(J,X){if(!X)return J;if(!J)return X;return(Y)=>{if(CP(Y)){let K=Y;xY(K);let U=X(K);if(!K.baseUIHandlerPrevented)J?.(K);return U}let W=X(Y);return J?.(Y),W}}function xY(J){return J.preventBaseUIHandler=()=>{J.baseUIHandlerPrevented=!0},J}function oH(J,X){if(X){if(J)return X+" "+J;return X}return J}function CP(J){return J!=null&&typeof J==="object"&&"nativeEvent"in J}function vY(){}var t2=Object.freeze([]),v1=Object.freeze({});var Hj=500,_j=500,qj={style:{transition:"none"}},hY="data-base-ui-click-trigger",Bj={fallbackAxisSide:"none"},EY={fallbackAxisSide:"end"},Lj={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var nH=c(G0(),1);function h0(J,X,Y={}){let W=X.render,K=yP(X,Y);if(Y.enabled===!1)return null;let U=Y.state??v1;return RP(J,W,K,U)}function yP(J,X={}){let{className:Y,style:W,render:K}=J,{state:U=v1,ref:q,props:_,stateAttributesMapping:L,enabled:F=!0}=X,N=F?Qj(Y,U):void 0,V=F?Wj(W,U):void 0,k=F?Gj(U,L):v1,A=F?sJ(k,Array.isArray(_)?Kj(_):_)??v1:v1;if(typeof document<"u")if(!F)O5(null,null);else if(Array.isArray(q))A.ref=Zj([A.ref,aH(K),...q]);else A.ref=O5(A.ref,aH(K),q);if(!F)return v1;if(N!==void 0)A.className=oH(A.className,N);if(V!==void 0)A.style=sJ(A.style,V);return A}function RP(J,X,Y,W){if(X){if(typeof X==="function")return X(Y,W);let K=D5(Y,X.props);return K.ref=Y.ref,PY.cloneElement(X,K)}if(J){if(typeof J==="string")return gP(J,Y)}throw Error("Base UI: Render element or function are not defined.")}function gP(J,X){if(J==="button")return nH.createElement("button",{type:"button",...X,key:X.key});if(J==="img")return nH.createElement("img",{alt:"",...X,key:X.key});return PY.createElement(J,X)}var B0={};qz(B0,{windowResize:()=>qI,wheel:()=>QI,triggerPress:()=>mP,triggerHover:()=>dP,triggerFocus:()=>uP,trackPress:()=>sP,siblingOpen:()=>UI,scrub:()=>WI,pointer:()=>YI,outsidePress:()=>pP,none:()=>fP,listNavigation:()=>XI,linkPress:()=>iP,keyboard:()=>$I,itemPress:()=>cP,inputPaste:()=>zI,inputClear:()=>eP,inputChange:()=>tP,inputBlur:()=>wI,incrementPress:()=>oP,imperativeAction:()=>_I,focusOut:()=>ZI,escapeKey:()=>JI,drag:()=>GI,disabled:()=>HI,decrementPress:()=>nP,closePress:()=>lP,clearPress:()=>rP,chipRemovePress:()=>aP,cancelOpen:()=>KI});var fP="none",mP="trigger-press",dP="trigger-hover",uP="trigger-focus",pP="outside-press",cP="item-press",lP="close-press",iP="link-press",rP="clear-press",aP="chip-remove-press",sP="track-press",oP="increment-press",nP="decrement-press",tP="input-change",eP="input-clear",wI="input-blur",zI="input-paste",ZI="focus-out",JI="escape-key",XI="list-navigation",$I="keyboard",YI="pointer",GI="drag",QI="wheel",WI="scrub",KI="cancel-open",UI="sibling-open",HI="disabled",_I="imperative-action",qI="window-resize";function P0(J,X,Y,W){let K=!1,U=!1,q=W??v1;return{reason:J,event:X??new Event("base-ui"),cancel(){K=!0},allowPropagation(){U=!0},get isCanceled(){return K},get isPropagationAllowed(){return U},trigger:Y,...q}}var IY=c(G0(),1);var BI=c(G0(),1),Vj={...BI};var Fj=0;function LI(J,X="mui"){let[Y,W]=IY.useState(J),K=J||Y;return IY.useEffect(()=>{if(Y==null)Fj+=1,W(`${X}-${Fj}`)},[Y,X]),K}var Nj=Vj.useId;function J2(J,X){if(Nj!==void 0){let Y=Nj();return J??(X?`${X}-${Y}`:Y)}return LI(J,X)}function ww(J){return J2(J,"base-ui")}var tH=c(m8(),1);var kj=c(G0(),1),VI=[];function Nz(J){kj.useEffect(J,VI)}var bY=null,vf=globalThis.requestAnimationFrame;class Aj{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=(J)=>{this.isScheduled=!1;let X=this.callbacks,Y=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,Y>0)for(let W=0;W<X.length;W+=1)X[W]?.(J)};request(J){let X=this.nextId;this.nextId+=1,this.callbacks.push(J),this.callbacksCount+=1;let Y=!1;if(!this.isScheduled||Y)requestAnimationFrame(this.tick),this.isScheduled=!0;return X}cancel(J){let X=J-this.startId;if(X<0||X>=this.callbacks.length)return;this.callbacks[X]=null,this.callbacksCount-=1}}var SY=new Aj;class T5{static create(){return new T5}static request(J){return SY.request(J)}static cancel(J){return SY.cancel(J)}currentId=bY;request(J){this.cancel(),this.currentId=SY.request(()=>{this.currentId=bY,J()})}cancel=()=>{if(this.currentId!==bY)SY.cancel(this.currentId),this.currentId=bY};disposeEffect=()=>{return this.cancel}}function x5(){let J=r1(T5.create).current;return Nz(J.disposeEffect),J}function O6(J){if(J==null)return J;return"current"in J?J.current:J}function kz(J,X=!1,Y=!0){let W=x5();return F0((K,U=null)=>{W.cancel();let q=O6(J);if(q==null)return;if(typeof q.getAnimations!=="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)K();else W.request(()=>{function _(){if(!q)return;Promise.all(q.getAnimations().map((L)=>L.finished)).then(()=>{if(U!=null&&U.aborted)return;tH.flushSync(K)}).catch(()=>{if(Y){if(U!=null&&U.aborted)return;tH.flushSync(K)}else if(q.getAnimations().length>0&&q.getAnimations().some((L)=>L.pending||L.playState!=="finished"))_()})}if(X)W.request(_);else _()})})}var tJ=c(G0(),1);function Az(J,X=!1,Y=!1){let[W,K]=tJ.useState(J&&X?"idle":void 0),[U,q]=tJ.useState(J);if(J&&!U)q(!0),K("starting");if(!J&&U&&W!=="ending"&&!Y)K("ending");if(!J&&!U&&W==="ending")K(void 0);return k0(()=>{if(!J&&U&&W!=="ending"&&Y){let _=T5.request(()=>{K("ending")});return()=>{T5.cancel(_)}}return},[J,U,W,Y]),k0(()=>{if(!J||X)return;let _=T5.request(()=>{K(void 0)});return()=>{T5.cancel(_)}},[X,J]),k0(()=>{if(!J||!X)return;if(J&&U&&W!=="idle")K("starting");let _=T5.request(()=>{K("idle")});return()=>{T5.cancel(_)}},[X,J,U,K,W]),tJ.useMemo(()=>({mounted:U,setMounted:q,transitionStatus:W}),[U,W])}var D6=c(G0(),1);var FI=function(J){return J[J.None=0]="None",J[J.GuessFromOrder=1]="GuessFromOrder",J}({});function v5(J={}){let{label:X,metadata:Y,textRef:W,indexGuessBehavior:K,index:U}=J,{register:q,unregister:_,subscribeMapChange:L,elementsRef:F,labelsRef:N,nextIndexRef:V}=eA(),k=D6.useRef(-1),[A,D]=D6.useState(U??(K===FI.GuessFromOrder?()=>{if(k.current===-1){let v=V.current;V.current+=1,k.current=v}return k.current}:-1)),M=D6.useRef(null),h=D6.useCallback((v)=>{if(M.current=v,A!==-1&&v!==null){if(F.current[A]=v,N){let x=X!==void 0;N.current[A]=x?X:W?.current?.textContent??v.textContent}}},[A,F,N,X,W]);return k0(()=>{if(U!=null)return;let v=M.current;if(v)return q(v,Y),()=>{_(v)};return},[U,q,_,Y]),k0(()=>{if(U!=null)return;return L((v)=>{let x=M.current?v.get(M.current)?.index:null;if(x!=null)D(x)})},[U,L,D]),D6.useMemo(()=>({ref:h,index:A}),[A,h])}var eJ=function(J){return J.startingStyle="data-starting-style",J.endingStyle="data-ending-style",J}({}),NI={[eJ.startingStyle]:""},kI={[eJ.endingStyle]:""},h2={transitionStatus(J){if(J==="starting")return NI;if(J==="ending")return kI;return null}};function jj(J){return J==null||J.hasAttribute("disabled")||J.getAttribute("aria-disabled")==="true"}var y7=c(G0(),1);function yY(){return typeof window<"u"}function o5(J){if(RY(J))return(J.nodeName||"").toLowerCase();return"#document"}function u1(J){var X;return(J==null||(X=J.ownerDocument)==null?void 0:X.defaultView)||window}function n5(J){var X;return(X=(RY(J)?J.ownerDocument:J.document)||window.document)==null?void 0:X.documentElement}function RY(J){if(!yY())return!1;return J instanceof Node||J instanceof u1(J).Node}function L1(J){if(!yY())return!1;return J instanceof Element||J instanceof u1(J).Element}function O1(J){if(!yY())return!1;return J instanceof HTMLElement||J instanceof u1(J).HTMLElement}function CY(J){if(!yY()||typeof ShadowRoot>"u")return!1;return J instanceof ShadowRoot||J instanceof u1(J).ShadowRoot}var AI=new Set(["inline","contents"]);function T6(J){let{overflow:X,overflowX:Y,overflowY:W,display:K}=uw(J);return/auto|scroll|overlay|hidden|clip/.test(X+W+Y)&&!AI.has(K)}var jI=new Set(["table","td","th"]);function Mj(J){return jI.has(o5(J))}var MI=[":popover-open",":modal"];function wX(J){return MI.some((X)=>{try{return J.matches(X)}catch(Y){return!1}})}var OI=["transform","translate","scale","rotate","perspective"],DI=["transform","translate","scale","rotate","perspective","filter"],TI=["paint","layout","strict","content"];function gY(J){let X=jz(),Y=L1(J)?uw(J):J;return OI.some((W)=>Y[W]?Y[W]!=="none":!1)||(Y.containerType?Y.containerType!=="normal":!1)||!X&&(Y.backdropFilter?Y.backdropFilter!=="none":!1)||!X&&(Y.filter?Y.filter!=="none":!1)||DI.some((W)=>(Y.willChange||"").includes(W))||TI.some((W)=>(Y.contain||"").includes(W))}function Oj(J){let X=e2(J);while(O1(X)&&!z5(X)){if(gY(X))return X;else if(wX(X))return null;X=e2(X)}return null}function jz(){if(typeof CSS>"u"||!CSS.supports)return!1;return CSS.supports("-webkit-backdrop-filter","none")}var xI=new Set(["html","body","#document"]);function z5(J){return xI.has(o5(J))}function uw(J){return u1(J).getComputedStyle(J)}function zX(J){if(L1(J))return{scrollLeft:J.scrollLeft,scrollTop:J.scrollTop};return{scrollLeft:J.scrollX,scrollTop:J.scrollY}}function e2(J){if(o5(J)==="html")return J;let X=J.assignedSlot||J.parentNode||CY(J)&&J.host||n5(J);return CY(X)?X.host:X}function Dj(J){let X=e2(J);if(z5(X))return J.ownerDocument?J.ownerDocument.body:J.body;if(O1(X)&&T6(X))return X;return Dj(X)}function w5(J,X,Y){var W;if(X===void 0)X=[];if(Y===void 0)Y=!0;let K=Dj(J),U=K===((W=J.ownerDocument)==null?void 0:W.body),q=u1(K);if(U){let _=fY(q);return X.concat(q,q.visualViewport||[],T6(K)?K:[],_&&Y?w5(_):[])}return X.concat(K,w5(K,[],Y))}function fY(J){return J.parent&&Object.getPrototypeOf(J.parent)?J.frameElement:null}var eH;eH=new Set;function w_(...J){{let X=J.join(" ");if(!eH.has(X))eH.add(X),console.error(`Base UI: ${X}`)}}var mY=c(G0(),1),dY=mY.createContext(void 0);dY.displayName="CompositeRootContext";function Mz(J=!1){let X=mY.useContext(dY);if(X===void 0&&!J)throw Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return X}var Tj=c(G0(),1);function xj(J){let{focusableWhenDisabled:X,disabled:Y,composite:W=!1,tabIndex:K=0,isNativeButton:U}=J,q=W&&X!==!1,_=W&&X===!1;return{props:Tj.useMemo(()=>{let F={onKeyDown(N){if(Y&&X&&N.key!=="Tab")N.preventDefault()}};if(!W){if(F.tabIndex=K,!U&&Y)F.tabIndex=X?K:-1}if(U&&(X||q)||!U&&Y)F["aria-disabled"]=Y;if(U&&(!X||_))F.disabled=Y;return F},[W,Y,X,q,_,U,K])}}function Z5(J={}){let{disabled:X=!1,focusableWhenDisabled:Y,tabIndex:W=0,native:K=!0}=J,U=y7.useRef(null),q=Mz(!0)!==void 0,_=F0(()=>{let k=U.current;return Boolean(k?.tagName==="A"&&k?.href)}),{props:L}=xj({focusableWhenDisabled:Y,disabled:X,composite:q,tabIndex:W,isNativeButton:K});y7.useEffect(()=>{if(!U.current)return;let k=U.current.tagName==="BUTTON";if(K){if(!k)w_("A component that acts as a button was not rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is a real <button>, or set the `nativeButton` prop on the component to `false`.")}else if(k)w_("A component that acts as a button was rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is not a real <button>, or set the `nativeButton` prop on the component to `true`.")},[K]);let F=y7.useCallback(()=>{let k=U.current;if(!vI(k))return;if(q&&X&&L.disabled===void 0&&k.disabled)k.disabled=!1},[X,L.disabled,q]);k0(F,[F]);let N=y7.useCallback((k={})=>{let{onClick:A,onMouseDown:D,onKeyUp:M,onKeyDown:h,onPointerDown:v,...x}=k;return D5({type:K?"button":void 0,onClick(b){if(X){b.preventDefault();return}A?.(b)},onMouseDown(b){if(!X)D?.(b)},onKeyDown(b){if(!X)xY(b),h?.(b);if(b.baseUIHandlerPrevented)return;let E=b.target===b.currentTarget&&!K&&!_()&&!X,m=b.key==="Enter",R=b.key===" ";if(E){if(R||m)b.preventDefault();if(m)A?.(b)}},onKeyUp(b){if(!X)xY(b),M?.(b);if(b.baseUIHandlerPrevented)return;if(b.target===b.currentTarget&&!K&&!X&&b.key===" ")A?.(b)},onPointerDown(b){if(X){b.preventDefault();return}v?.(b)}},!K?{role:"button"}:void 0,L,x)},[X,L,K,_]),V=F0((k)=>{U.current=k,F()});return{getButtonProps:N,buttonRef:V}}function vI(J){return O1(J)&&J.tagName==="BUTTON"}var E4=typeof navigator<"u",z_=hI(),vj=PI(),uY=EI(),hj=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),Ej=z_.platform==="MacIntel"&&z_.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(z_.platform),Xm=E4&&/firefox/i.test(uY),pY=E4&&/apple/i.test(navigator.vendor),$m=E4&&/Edg/i.test(uY),cY=E4&&/android/i.test(vj)||/android/i.test(uY),Pj=E4&&vj.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,lY=uY.includes("jsdom/");function hI(){if(!E4)return{platform:"",maxTouchPoints:-1};let J=navigator.userAgentData;if(J?.platform)return{platform:J.platform,maxTouchPoints:navigator.maxTouchPoints};return{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function EI(){if(!E4)return"";let J=navigator.userAgentData;if(J&&Array.isArray(J.brands))return J.brands.map(({brand:X,version:Y})=>`${X}/${Y}`).join(" ");return navigator.userAgent}function PI(){if(!E4)return"";let J=navigator.userAgentData;if(J?.platform)return J.platform;return navigator.platform??""}var ZX="data-base-ui-focusable",Z_="active",J_="selected",Oz="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",u8="ArrowLeft",p8="ArrowRight",JX="ArrowUp",R7="ArrowDown";function X2(J){let X=J.activeElement;while(X?.shadowRoot?.activeElement!=null)X=X.shadowRoot.activeElement;return X}function t0(J,X){if(!J||!X)return!1;let Y=X.getRootNode?.();if(J.contains(X))return!0;if(Y&&CY(Y)){let W=X;while(W){if(J===W)return!0;W=W.parentNode||W.host}}return!1}function f1(J){if("composedPath"in J)return J.composedPath()[0];return J.target}function h5(J,X){if(X==null)return!1;if("composedPath"in J)return J.composedPath().includes(X);let Y=J;return Y.target!=null&&X.contains(Y.target)}function Ij(J){return J.matches("html,body")}function C1(J){return J?.ownerDocument||document}function XX(J){return O1(J)&&J.matches(Oz)}function $X(J){if(!J)return!1;return J.getAttribute("role")==="combobox"&&XX(J)}function bj(J){if(!J||lY)return!0;try{return J.matches(":focus-visible")}catch(X){return!0}}function g7(J){if(!J)return null;return J.hasAttribute(ZX)?J:J.querySelector(`[${ZX}]`)||J}function c8(J,X,Y=!0){return J.filter((K)=>K.parentId===X&&(!Y||K.context?.open)).flatMap((K)=>[K,...c8(J,K.id,Y)])}function X_(J,X){let Y=[],W=J.find((K)=>K.id===X)?.parentId;while(W){let K=J.find((U)=>U.id===W);if(W=K?.parentId,K)Y=Y.concat(K)}return Y}function Xw(J){J.preventDefault(),J.stopPropagation()}function Sj(J){return"nativeEvent"in J}function iY(J){if(J.mozInputSource===0&&J.isTrusted)return!0;if(cY&&J.pointerType)return J.type==="click"&&J.buttons===1;return J.detail===0&&!J.pointerType}function rY(J){if(lY)return!1;return!cY&&J.width===0&&J.height===0||cY&&J.width===1&&J.height===1&&J.pressure===0&&J.detail===0&&J.pointerType==="mouse"||J.width<1&&J.height<1&&J.pressure===0&&J.detail===0&&J.pointerType==="touch"}function E5(J,X){let Y=["mouse","pen"];if(!X)Y.push("",void 0);return Y.includes(J)}function aY(J){let X=J.type;return X==="click"||X==="mousedown"||X==="keydown"||X==="keyup"}var Rj=["top","right","bottom","left"];var{min:P4,max:F2,round:I4,floor:b4}=Math,t5=(J)=>({x:J,y:J}),II={left:"right",right:"left",bottom:"top",top:"bottom"},bI={start:"end",end:"start"};function GX(J,X,Y){return F2(J,P4(X,Y))}function e5(J,X){return typeof J==="function"?J(X):J}function nw(J){return J.split("-")[0]}function w8(J){return J.split("-")[1]}function oY(J){return J==="x"?"y":"x"}function QX(J){return J==="y"?"height":"width"}var SI=new Set(["top","bottom"]);function E2(J){return SI.has(nw(J))?"y":"x"}function WX(J){return oY(E2(J))}function gj(J,X,Y){if(Y===void 0)Y=!1;let W=w8(J),K=WX(J),U=QX(K),q=K==="x"?W===(Y?"end":"start")?"right":"left":W==="start"?"bottom":"top";if(X.reference[U]>X.floating[U])q=YX(q);return[q,YX(q)]}function fj(J){let X=YX(J);return[sY(J),X,sY(X)]}function sY(J){return J.replace(/start|end/g,(X)=>bI[X])}var Cj=["left","right"],yj=["right","left"],CI=["top","bottom"],yI=["bottom","top"];function RI(J,X,Y){switch(J){case"top":case"bottom":if(Y)return X?yj:Cj;return X?Cj:yj;case"left":case"right":return X?CI:yI;default:return[]}}function mj(J,X,Y,W){let K=w8(J),U=RI(nw(J),Y==="start",W);if(K){if(U=U.map((q)=>q+"-"+K),X)U=U.concat(U.map(sY))}return U}function YX(J){return J.replace(/left|right|bottom|top/g,(X)=>II[X])}function gI(J){return{top:0,right:0,bottom:0,left:0,...J}}function nY(J){return typeof J!=="number"?gI(J):{top:J,right:J,bottom:J,left:J}}function f7(J){let{x:X,y:Y,width:W,height:K}=J;return{width:W,height:K,top:Y,left:X,right:X+W,bottom:Y+K,x:X,y:Y}}function tY(J,X,Y){return Math.floor(J/X)!==Y}function x6(J,X){return X<0||X>=J.current.length}function m7(J,X){return Ow(J,{disabledIndices:X})}function Dz(J,X){return Ow(J,{decrement:!0,startingIndex:J.current.length,disabledIndices:X})}function Ow(J,{startingIndex:X=-1,decrement:Y=!1,disabledIndices:W,amount:K=1}={}){let U=X;do U+=Y?-K:K;while(U>=0&&U<=J.current.length-1&&z8(J,U,W));return U}function KX(J,{event:X,orientation:Y,loopFocus:W,rtl:K,cols:U,disabledIndices:q,minIndex:_,maxIndex:L,prevIndex:F,stopEvent:N=!1}){let V=F,k=[],A={},D=!1;{let v=null,x=-1;J.current.forEach((I,b)=>{if(I==null)return;let E=I.closest('[role="row"]');if(E)D=!0;if(E!==v||x===-1)v=E,x+=1,k[x]=[];k[x].push(b),A[b]=x})}let M=D&&k.length>0&&k.some((v)=>v.length!==U);function h(v){if(!M||F===-1)return;let x=A[F];if(x==null)return;let I=k[x].indexOf(F),b=v==="up"?x-1:x+1;if(W){if(b<0)b=k.length-1;else if(b>=k.length)b=0}let E=new Set;while(b>=0&&b<k.length&&!E.has(b)){E.add(b);let m=k[b];if(m.length===0){b=v==="up"?b-1:b+1;continue}let R=Math.min(I,m.length-1);for(let S=R;S>=0;S-=1){let p=m[S];if(!z8(J,p,q))return p}if(b=v==="up"?b-1:b+1,W){if(b<0)b=k.length-1;else if(b>=k.length)b=0}}return}if(X.key===JX){let v=h("up");if(v!==void 0){if(N)Xw(X);V=v}else{if(N)Xw(X);if(F===-1)V=L;else if(V=Ow(J,{startingIndex:V,amount:U,decrement:!0,disabledIndices:q}),W&&(F-U<_||V<0)){let x=F%U,I=L%U,b=L-(I-x);if(I===x)V=L;else V=I>x?b:b-U}if(x6(J,V))V=F}}if(X.key===R7){let v=h("down");if(v!==void 0){if(N)Xw(X);V=v}else{if(N)Xw(X);if(F===-1)V=_;else if(V=Ow(J,{startingIndex:F,amount:U,disabledIndices:q}),W&&F+U>L)V=Ow(J,{startingIndex:F%U-U,amount:U,disabledIndices:q});if(x6(J,V))V=F}}if(Y==="both"){let v=b4(F/U);if(X.key===(K?u8:p8)){if(N)Xw(X);if(F%U!==U-1){if(V=Ow(J,{startingIndex:F,disabledIndices:q}),W&&tY(V,U,v))V=Ow(J,{startingIndex:F-F%U-1,disabledIndices:q})}else if(W)V=Ow(J,{startingIndex:F-F%U-1,disabledIndices:q});if(tY(V,U,v))V=F}if(X.key===(K?p8:u8)){if(N)Xw(X);if(F%U!==0){if(V=Ow(J,{startingIndex:F,decrement:!0,disabledIndices:q}),W&&tY(V,U,v))V=Ow(J,{startingIndex:F+(U-F%U),decrement:!0,disabledIndices:q})}else if(W)V=Ow(J,{startingIndex:F+(U-F%U),decrement:!0,disabledIndices:q});if(tY(V,U,v))V=F}let x=b4(L/U)===v;if(x6(J,V))if(W&&x)V=X.key===(K?p8:u8)?L:Ow(J,{startingIndex:F-F%U-1,disabledIndices:q});else V=F}return V}function UX(J,X,Y){let W=[],K=0;return J.forEach(({width:U,height:q},_)=>{if(U>X)throw Error(`[Floating UI]: Invalid grid - item width at index ${_} is greater than grid columns`);let L=!1;if(Y)K=0;while(!L){let F=[];for(let N=0;N<U;N+=1)for(let V=0;V<q;V+=1)F.push(K+N+V*X);if(K%X+U<=X&&F.every((N)=>W[N]==null))F.forEach((N)=>{W[N]=_}),L=!0;else K+=1}}),[...W]}function HX(J,X,Y,W,K){if(J===-1)return-1;let U=Y.indexOf(J),q=X[J];switch(K){case"tl":return U;case"tr":if(!q)return U;return U+q.width-1;case"bl":if(!q)return U;return U+(q.height-1)*W;case"br":return Y.lastIndexOf(J);default:return-1}}function _X(J,X){return X.flatMap((Y,W)=>J.includes(Y)?[W]:[])}function z8(J,X,Y){if(typeof Y==="function")return Y(X);if(Y)return Y.includes(X);let W=J.current[X];if(!W)return!1;return W.hasAttribute("disabled")||W.getAttribute("aria-disabled")==="true"}/*!
|
|
243
|
+
* tabbable 6.3.0
|
|
244
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
245
|
+
*/var fI=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],eY=fI.join(","),uj=typeof Element>"u",Tz=uj?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,wG=!uj&&Element.prototype.getRootNode?function(J){var X;return J===null||J===void 0?void 0:(X=J.getRootNode)===null||X===void 0?void 0:X.call(J)}:function(J){return J===null||J===void 0?void 0:J.ownerDocument},qX=function(X,Y){var W;if(Y===void 0)Y=!0;var K=X===null||X===void 0?void 0:(W=X.getAttribute)===null||W===void 0?void 0:W.call(X,"inert"),U=K===""||K==="true",q=U||Y&&X&&qX(X.parentNode);return q},mI=function(X){var Y,W=X===null||X===void 0?void 0:(Y=X.getAttribute)===null||Y===void 0?void 0:Y.call(X,"contenteditable");return W===""||W==="true"},pj=function(X,Y,W){if(qX(X))return[];var K=Array.prototype.slice.apply(X.querySelectorAll(eY));if(Y&&Tz.call(X,eY))K.unshift(X);return K=K.filter(W),K},zG=function(X,Y,W){var K=[],U=Array.from(X);while(U.length){var q=U.shift();if(qX(q,!1))continue;if(q.tagName==="SLOT"){var _=q.assignedElements(),L=_.length?_:q.children,F=zG(L,!0,W);if(W.flatten)K.push.apply(K,F);else K.push({scopeParent:q,candidates:F})}else{var N=Tz.call(q,eY);if(N&&W.filter(q)&&(Y||!X.includes(q)))K.push(q);var V=q.shadowRoot||typeof W.getShadowRoot==="function"&&W.getShadowRoot(q),k=!qX(V,!1)&&(!W.shadowRootFilter||W.shadowRootFilter(q));if(V&&k){var A=zG(V===!0?q.children:V.children,!0,W);if(W.flatten)K.push.apply(K,A);else K.push({scopeParent:q,candidates:A})}else U.unshift.apply(U,q.children)}}return K},cj=function(X){return!isNaN(parseInt(X.getAttribute("tabindex"),10))},lj=function(X){if(!X)throw Error("No node provided");if(X.tabIndex<0){if((/^(AUDIO|VIDEO|DETAILS)$/.test(X.tagName)||mI(X))&&!cj(X))return 0}return X.tabIndex},dI=function(X,Y){var W=lj(X);if(W<0&&Y&&!cj(X))return 0;return W},uI=function(X,Y){return X.tabIndex===Y.tabIndex?X.documentOrder-Y.documentOrder:X.tabIndex-Y.tabIndex},ij=function(X){return X.tagName==="INPUT"},pI=function(X){return ij(X)&&X.type==="hidden"},cI=function(X){var Y=X.tagName==="DETAILS"&&Array.prototype.slice.apply(X.children).some(function(W){return W.tagName==="SUMMARY"});return Y},lI=function(X,Y){for(var W=0;W<X.length;W++)if(X[W].checked&&X[W].form===Y)return X[W]},iI=function(X){if(!X.name)return!0;var Y=X.form||wG(X),W=function(_){return Y.querySelectorAll('input[type="radio"][name="'+_+'"]')},K;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape==="function")K=W(window.CSS.escape(X.name));else try{K=W(X.name)}catch(q){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",q.message),!1}var U=lI(K,X.form);return!U||U===X},rI=function(X){return ij(X)&&X.type==="radio"},aI=function(X){return rI(X)&&!iI(X)},sI=function(X){var Y,W=X&&wG(X),K=(Y=W)===null||Y===void 0?void 0:Y.host,U=!1;if(W&&W!==X){var q,_,L;U=!!((q=K)!==null&&q!==void 0&&(_=q.ownerDocument)!==null&&_!==void 0&&_.contains(K)||X!==null&&X!==void 0&&(L=X.ownerDocument)!==null&&L!==void 0&&L.contains(X));while(!U&&K){var F,N,V;W=wG(K),K=(F=W)===null||F===void 0?void 0:F.host,U=!!((N=K)!==null&&N!==void 0&&(V=N.ownerDocument)!==null&&V!==void 0&&V.contains(K))}}return U},dj=function(X){var Y=X.getBoundingClientRect(),W=Y.width,K=Y.height;return W===0&&K===0},oI=function(X,Y){var{displayCheck:W,getShadowRoot:K}=Y;if(W==="full-native"){if("checkVisibility"in X){var U=X.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!U}}if(getComputedStyle(X).visibility==="hidden")return!0;var q=Tz.call(X,"details>summary:first-of-type"),_=q?X.parentElement:X;if(Tz.call(_,"details:not([open]) *"))return!0;if(!W||W==="full"||W==="full-native"||W==="legacy-full"){if(typeof K==="function"){var L=X;while(X){var F=X.parentElement,N=wG(X);if(F&&!F.shadowRoot&&K(F)===!0)return dj(X);else if(X.assignedSlot)X=X.assignedSlot;else if(!F&&N!==X.ownerDocument)X=N.host;else X=F}X=L}if(sI(X))return!X.getClientRects().length;if(W!=="legacy-full")return!0}else if(W==="non-zero-area")return dj(X);return!1},nI=function(X){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(X.tagName)){var Y=X.parentElement;while(Y){if(Y.tagName==="FIELDSET"&&Y.disabled){for(var W=0;W<Y.children.length;W++){var K=Y.children.item(W);if(K.tagName==="LEGEND")return Tz.call(Y,"fieldset[disabled] *")?!0:!K.contains(X)}return!0}Y=Y.parentElement}}return!1},$_=function(X,Y){if(Y.disabled||qX(Y)||pI(Y)||oI(Y,X)||cI(Y)||nI(Y))return!1;return!0},Y_=function(X,Y){if(aI(Y)||lj(Y)<0||!$_(X,Y))return!1;return!0},tI=function(X){var Y=parseInt(X.getAttribute("tabindex"),10);if(isNaN(Y)||Y>=0)return!0;return!1},rj=function(X){var Y=[],W=[];return X.forEach(function(K,U){var q=!!K.scopeParent,_=q?K.scopeParent:K,L=dI(_,q),F=q?rj(K.candidates):_;if(L===0)q?Y.push.apply(Y,F):Y.push(_);else W.push({documentOrder:U,tabIndex:L,item:K,isScope:q,content:F})}),W.sort(uI).reduce(function(K,U){return U.isScope?K.push.apply(K,U.content):K.push(U.content),K},[]).concat(Y)},d7=function(X,Y){Y=Y||{};var W;if(Y.getShadowRoot)W=zG([X],Y.includeContainer,{filter:Y_.bind(null,Y),flatten:!1,getShadowRoot:Y.getShadowRoot,shadowRootFilter:tI});else W=pj(X,Y.includeContainer,Y_.bind(null,Y));return rj(W)},aj=function(X,Y){Y=Y||{};var W;if(Y.getShadowRoot)W=zG([X],Y.includeContainer,{filter:$_.bind(null,Y),flatten:!0,getShadowRoot:Y.getShadowRoot});else W=pj(X,Y.includeContainer,$_.bind(null,Y));return W},G_=function(X,Y){if(Y=Y||{},!X)throw Error("No node provided");if(Tz.call(X,eY)===!1)return!1;return Y_(Y,X)};var u7=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver==="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function sj(J,X){let Y=d7(J,u7()),W=Y.length;if(W===0)return;let K=X2(C1(J)),U=Y.indexOf(K),q=U===-1?X===1?0:W-1:U+X;return Y[q]}function xz(J){return sj(C1(J).body,1)||J}function ZG(J){return sj(C1(J).body,-1)||J}function oj(J,X){if(!J)return null;let Y=d7(C1(J).body,u7()),W=Y.length;if(W===0)return null;let K=Y.indexOf(J);if(K===-1)return null;let U=(K+X+W)%W;return Y[U]}function nj(J){return oj(J,1)}function tj(J){return oj(J,-1)}function v6(J,X){let Y=X||J.currentTarget,W=J.relatedTarget;return!W||!t0(Y,W)}function ej(J){d7(J,u7()).forEach((Y)=>{Y.dataset.tabindex=Y.getAttribute("tabindex")||"",Y.setAttribute("tabindex","-1")})}function Q_(J){J.querySelectorAll("[data-tabindex]").forEach((Y)=>{let W=Y.dataset.tabindex;if(delete Y.dataset.tabindex,W)Y.setAttribute("tabindex",W);else Y.removeAttribute("tabindex")})}var p7="ArrowUp",S4="ArrowDown",vz="ArrowLeft",c7="ArrowRight",hz="Home",Ez="End",W_=new Set([vz,c7]),zM=new Set([vz,c7,hz,Ez]),K_=new Set([p7,S4]),ZM=new Set([p7,S4,hz,Ez]),U_=new Set([...W_,...K_]),JM=new Set([...U_,hz,Ez]),XG=new Set([p7,S4,vz,c7,hz,Ez]),eI="Shift",wb="Control",zb="Alt",Zb="Meta",XM=new Set([eI,wb,zb,Zb]);function Jb(J){return O1(J)&&J.tagName==="INPUT"}function H_(J){if(Jb(J)&&J.selectionStart!=null)return!0;if(O1(J)&&J.tagName==="TEXTAREA")return!0;return!1}function __(J,X,Y,W){if(!J||!X||!X.scrollTo)return;let{scrollLeft:K,scrollTop:U}=J,q=J.clientWidth<J.scrollWidth,_=J.clientHeight<J.scrollHeight;if(q&&W!=="vertical"){let L=wM(J,X,"left"),F=JG(J),N=JG(X);if(Y==="ltr"){if(L+X.offsetWidth+N.scrollMarginRight>J.scrollLeft+J.clientWidth-F.scrollPaddingRight)K=L+X.offsetWidth+N.scrollMarginRight-J.clientWidth+F.scrollPaddingRight;else if(L-N.scrollMarginLeft<J.scrollLeft+F.scrollPaddingLeft)K=L-N.scrollMarginLeft-F.scrollPaddingLeft}if(Y==="rtl"){if(L-N.scrollMarginRight<J.scrollLeft+F.scrollPaddingLeft)K=L-N.scrollMarginLeft-F.scrollPaddingLeft;else if(L+X.offsetWidth+N.scrollMarginRight>J.scrollLeft+J.clientWidth-F.scrollPaddingRight)K=L+X.offsetWidth+N.scrollMarginRight-J.clientWidth+F.scrollPaddingRight}}if(_&&W!=="horizontal"){let L=wM(J,X,"top"),F=JG(J),N=JG(X);if(L-N.scrollMarginTop<J.scrollTop+F.scrollPaddingTop)U=L-N.scrollMarginTop-F.scrollPaddingTop;else if(L+X.offsetHeight+N.scrollMarginBottom>J.scrollTop+J.clientHeight-F.scrollPaddingBottom)U=L+X.offsetHeight+N.scrollMarginBottom-J.clientHeight+F.scrollPaddingBottom}J.scrollTo({left:K,top:U,behavior:"auto"})}function wM(J,X,Y){let W=Y==="left"?"offsetLeft":"offsetTop",K=0;while(X.offsetParent){if(K+=X[W],X.offsetParent===J)break;X=X.offsetParent}return K}function JG(J){let X=getComputedStyle(J);return{scrollMarginTop:parseFloat(X.scrollMarginTop)||0,scrollMarginRight:parseFloat(X.scrollMarginRight)||0,scrollMarginBottom:parseFloat(X.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(X.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(X.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(X.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(X.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(X.scrollPaddingLeft)||0}}var $M=c(G0(),1);function Kw(J){let X=r1(Xb,J).current;return X.next=J,k0(X.effect),X}function Xb(J){let X={current:J,next:J,effect:()=>{X.current=X.next}};return X}function P5(J){let{enabled:X=!0,open:Y,ref:W,onComplete:K}=J,U=Kw(Y),q=F0(K),_=kz(W,Y);$M.useEffect(()=>{if(!X)return;_(()=>{if(Y===U.current)q()})},[X,Y,q,_,U])}var S5=c(G0(),1);function Dw(J){return J?.ownerDocument||document}var BX=0;class I5{static create(){return new I5}currentId=BX;start(J,X){this.clear(),this.currentId=setTimeout(()=>{this.currentId=BX,X()},J)}isStarted(){return this.currentId!==BX}clear=()=>{if(this.currentId!==BX)clearTimeout(this.currentId),this.currentId=BX};disposeEffect=()=>{return this.clear}}function a1(){let J=r1(I5.create).current;return Nz(J.disposeEffect),J}var YM={},GM={},QM="";function $b(J){if(typeof document>"u")return!1;let X=Dw(J);return u1(X).innerWidth-X.documentElement.clientWidth>0}function Yb(J){let X=Dw(J),Y=X.documentElement,W=X.body,K=T6(Y)?Y:W,U=K.style.overflow;return K.style.overflow="hidden",()=>{K.style.overflow=U}}function Gb(J){let X=Dw(J),Y=X.documentElement,W=X.body,K=u1(Y),U=0,q=0,_=T5.create(),L=typeof CSS<"u"&&CSS.supports?.("scrollbar-gutter","stable");if(hj&&(K.visualViewport?.scale??1)!==1)return()=>{};function F(){let k=K.getComputedStyle(Y),A=K.getComputedStyle(W),h=(k.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";U=Y.scrollTop,q=Y.scrollLeft,YM={scrollbarGutter:Y.style.scrollbarGutter,overflowY:Y.style.overflowY,overflowX:Y.style.overflowX},QM=Y.style.scrollBehavior,GM={position:W.style.position,height:W.style.height,width:W.style.width,boxSizing:W.style.boxSizing,overflowY:W.style.overflowY,overflowX:W.style.overflowX,scrollBehavior:W.style.scrollBehavior};let v=Y.scrollHeight>Y.clientHeight,x=Y.scrollWidth>Y.clientWidth,I=k.overflowY==="scroll"||A.overflowY==="scroll",b=k.overflowX==="scroll"||A.overflowX==="scroll",E=Math.max(0,K.innerWidth-Y.clientWidth),m=Math.max(0,K.innerHeight-Y.clientHeight),R=parseFloat(A.marginTop)+parseFloat(A.marginBottom),S=parseFloat(A.marginLeft)+parseFloat(A.marginRight),p=T6(Y)?Y:W;if(L){Y.style.scrollbarGutter=h,p.style.overflowY="hidden",p.style.overflowX="hidden";return}if(Object.assign(Y.style,{scrollbarGutter:h,overflowY:"hidden",overflowX:"hidden"}),v||I)Y.style.overflowY="scroll";if(x||b)Y.style.overflowX="scroll";Object.assign(W.style,{position:"relative",height:R||m?`calc(100dvh - ${R+m}px)`:"100dvh",width:S||E?`calc(100vw - ${S+E}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),W.scrollTop=U,W.scrollLeft=q,Y.setAttribute("data-base-ui-scroll-locked",""),Y.style.scrollBehavior="unset"}function N(){if(Object.assign(Y.style,YM),Object.assign(W.style,GM),!L)Y.scrollTop=U,Y.scrollLeft=q,Y.removeAttribute("data-base-ui-scroll-locked"),Y.style.scrollBehavior=QM}function V(){N(),_.request(F)}return F(),K.addEventListener("resize",V),()=>{if(_.cancel(),N(),typeof K.removeEventListener==="function")K.removeEventListener("resize",V)}}class WM{lockCount=0;restore=null;timeoutLock=I5.create();timeoutUnlock=I5.create();acquire(J){if(this.lockCount+=1,this.lockCount===1&&this.restore===null)this.timeoutLock.start(0,()=>this.lock(J));return this.release}release=()=>{if(this.lockCount-=1,this.lockCount===0&&this.restore)this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{if(this.lockCount===0&&this.restore)this.restore?.(),this.restore=null};lock(J){if(this.lockCount===0||this.restore!==null)return;let Y=Dw(J).documentElement,W=u1(Y).getComputedStyle(Y).overflowY;if(W==="hidden"||W==="clip"){this.restore=vY;return}let K=Ej||!$b(J);this.restore=K?Yb(J):Gb(J)}}var Qb=new WM;function $G(J=!0,X=null){k0(()=>{if(!J)return;return Qb.acquire(X)},[J,X])}var P2=c(G0(),1);var GG=c(G0(),1);var C4=c(G0(),1);function YG(){let J=new Map;return{emit(X,Y){J.get(X)?.forEach((W)=>W(Y))},on(X,Y){if(!J.has(X))J.set(X,new Set);J.get(X).add(Y)},off(X,Y){J.get(X)?.delete(Y)}}}class l7{nodesRef={current:[]};events=YG();addNode(J){this.nodesRef.current.push(J)}removeNode(J){let X=this.nodesRef.current.findIndex((Y)=>Y===J);if(X!==-1)this.nodesRef.current.splice(X,1)}}var q_=c(x1(),1),B_=C4.createContext(null);B_.displayName="FloatingNodeContext";var L_=C4.createContext(null);L_.displayName="FloatingTreeContext";var tw=()=>C4.useContext(B_)?.id||null,$2=(J)=>{let X=C4.useContext(L_);return J??X};function LX(J){let X=J2(),Y=$2(J),W=tw();return k0(()=>{if(!X)return;let K={id:X,parentId:W};return Y?.addNode(K),()=>{Y?.removeNode(K)}},[Y,X,W]),X}function V_(J){let{children:X,id:Y}=J,W=tw();return q_.jsx(B_.Provider,{value:C4.useMemo(()=>({id:Y,parentId:W}),[Y,W]),children:X})}function F_(J){let{children:X,externalTree:Y}=J,W=r1(()=>Y??new l7).current;return q_.jsx(L_.Provider,{value:W,children:X})}function J5(J){return`data-base-ui-${J}`}var $d=J5("safe-polygon"),Yd=`button,[role="button"],select,[tabindex]:not([tabindex="-1"]),${Oz}`;function Pz(J,X,Y){if(Y&&!E5(Y))return 0;if(typeof J==="number")return J;if(typeof J==="function"){let W=J();if(typeof W==="number")return W;return W?.[X]}return J?.[X]}var KM=c(x1(),1),N_=P2.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new I5,currentIdRef:{current:null},currentContextRef:{current:null}});N_.displayName="FloatingDelayGroupContext";function k_(J){let{children:X,delay:Y,timeoutMs:W=0}=J,K=P2.useRef(Y),U=P2.useRef(Y),q=P2.useRef(null),_=P2.useRef(null),L=a1();return KM.jsx(N_.Provider,{value:P2.useMemo(()=>({hasProvider:!0,delayRef:K,initialDelayRef:U,currentIdRef:q,timeoutMs:W,currentContextRef:_,timeout:L}),[W,L]),children:X})}function A_(J,X={open:!1}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("floatingId"),{enabled:K=!0,open:U}=X,q=P2.useContext(N_),{currentIdRef:_,delayRef:L,timeoutMs:F,initialDelayRef:N,currentContextRef:V,hasProvider:k,timeout:A}=q,[D,M]=P2.useState(!1);return k0(()=>{function h(){M(!1),V.current?.setIsInstantPhase(!1),_.current=null,V.current=null,L.current=N.current}if(!K)return;if(!_.current)return;if(!U&&_.current===W){if(M(!1),F){let v=W;return A.start(F,()=>{if(Y.select("open")||_.current&&_.current!==v)return;h()}),()=>{A.clear()}}h()}return},[K,U,W,_,L,F,N,V,A,Y]),k0(()=>{if(!K)return;if(!U)return;let h=V.current,v=_.current;if(A.clear(),V.current={onOpenChange:Y.setOpen,setIsInstantPhase:M},_.current=W,L.current={open:0,close:Pz(N.current,"close")},v!==null&&v!==W)M(!0),h?.setIsInstantPhase(!0),h?.onOpenChange(!1,P0(B0.none));else M(!1),h?.setIsInstantPhase(!1)},[K,U,W,Y,_,L,F,N,V,A]),k0(()=>{return()=>{V.current=null}},[V]),P2.useMemo(()=>({hasProvider:k,delayRef:L,isInstantPhase:D}),[k,L,D])}var qw=c(G0(),1);var QG={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1};var WG=c(G0(),1);var UM=c(x1(),1),l8=WG.forwardRef(function(X,Y){let[W,K]=WG.useState();return k0(()=>{if(pY)K("button")},[]),UM.jsx("span",{...X,ref:Y,style:QG,"aria-hidden":W?void 0:!0,...{tabIndex:0,role:W},"data-base-ui-focus-guard":""})});l8.displayName="FocusGuard";var HM=0;function Iz(J,X={}){let{preventScroll:Y=!1,cancelPrevious:W=!0,sync:K=!1}=X;if(W)cancelAnimationFrame(HM);let U=()=>J?.focus({preventScroll:Y});if(K)U();else HM=requestAnimationFrame(U)}var bz={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function _M(J){if(J==="inert")return bz.inert;if(J==="aria-hidden")return bz["aria-hidden"];return bz.none}var KG=new WeakSet,UG={},j_=0;var qM=(J)=>J&&(J.host||qM(J.parentNode)),Wb=(J,X)=>X.map((Y)=>{if(J.contains(Y))return Y;let W=qM(Y);if(J.contains(W))return W;return null}).filter((Y)=>Y!=null);function Kb(J,X,Y,W){let U=W?"inert":Y?"aria-hidden":null,q=Wb(X,J),_=new Set,L=new Set(q),F=[];if(!UG["data-base-ui-inert"])UG["data-base-ui-inert"]=new WeakMap;let N=UG["data-base-ui-inert"];q.forEach(V),k(X),_.clear();function V(A){if(!A||_.has(A))return;if(_.add(A),A.parentNode)V(A.parentNode)}function k(A){if(!A||L.has(A))return;[].forEach.call(A.children,(D)=>{if(o5(D)==="script")return;if(_.has(D))k(D);else{let M=U?D.getAttribute(U):null,h=M!==null&&M!=="false",v=_M(U),x=(v.get(D)||0)+1,I=(N.get(D)||0)+1;if(v.set(D,x),N.set(D,I),F.push(D),x===1&&h)KG.add(D);if(I===1)D.setAttribute("data-base-ui-inert","");if(!h&&U)D.setAttribute(U,U==="inert"?"":"true")}})}return j_+=1,()=>{if(F.forEach((A)=>{let D=_M(U),h=(D.get(A)||0)-1,v=(N.get(A)||0)-1;if(D.set(A,h),N.set(A,v),!h){if(!KG.has(A)&&U)A.removeAttribute(U);KG.delete(A)}if(!v)A.removeAttribute("data-base-ui-inert")}),j_-=1,!j_)bz.inert=new WeakMap,bz["aria-hidden"]=new WeakMap,bz.none=new WeakMap,KG=new WeakSet,UG={}}}function BM(J,X=!1,Y=!1){let W=C1(J[0]).body;return Kb(J.concat(Array.from(W.querySelectorAll("[aria-live]"))),W,X,Y)}var $w=c(G0(),1),M_=c(m8(),1);var i7=c(x1(),1),O_=$w.createContext(null);O_.displayName="PortalContext";var D_=()=>$w.useContext(O_),Ub=J5("portal");function HG(J={}){let{ref:X,container:Y,componentProps:W=v1,elementProps:K,elementState:U}=J,q=J2(),L=D_()?.portalNode,[F,N]=$w.useState(null),[V,k]=$w.useState(null),A=$w.useRef(null);k0(()=>{if(Y===null){if(A.current)A.current=null,k(null),N(null);return}if(q==null)return;let h=(Y&&(RY(Y)?Y:Y.current))??L??document.body;if(h==null){if(A.current)A.current=null,k(null),N(null);return}if(A.current!==h)A.current=h,k(null),N(h)},[Y,L,q]);let D=h0("div",W,{ref:[X,k],state:U,props:[{id:q,[Ub]:""},K]});return{portalNode:V,portalSubtree:F&&D?M_.createPortal(D,F):null}}var Sz=$w.forwardRef(function(X,Y){let{children:W,container:K,className:U,render:q,renderGuards:_,...L}=X,{portalNode:F,portalSubtree:N}=HG({container:K,ref:Y,componentProps:X,elementProps:L}),V=$w.useRef(null),k=$w.useRef(null),A=$w.useRef(null),D=$w.useRef(null),[M,h]=$w.useState(null),v=M?.modal,x=M?.open,I=typeof _==="boolean"?_:!!M&&!M.modal&&M.open&&!!F;$w.useEffect(()=>{if(!F||v)return;function E(m){if(F&&v6(m))(m.type==="focusin"?Q_:ej)(F)}return F.addEventListener("focusin",E,!0),F.addEventListener("focusout",E,!0),()=>{F.removeEventListener("focusin",E,!0),F.removeEventListener("focusout",E,!0)}},[F,v]),$w.useEffect(()=>{if(!F||x)return;Q_(F)},[x,F]);let b=$w.useMemo(()=>({beforeOutsideRef:V,afterOutsideRef:k,beforeInsideRef:A,afterInsideRef:D,portalNode:F,setFocusManagerState:h}),[F]);return i7.jsxs($w.Fragment,{children:[N,i7.jsxs(O_.Provider,{value:b,children:[I&&F&&i7.jsx(l8,{"data-type":"outside",ref:V,onFocus:(E)=>{if(v6(E,F))A.current?.focus();else{let m=M?M.domReference:null;ZG(m)?.focus()}}}),I&&F&&i7.jsx("span",{"aria-owns":F.id,style:Lj}),F&&M_.createPortal(W,F),I&&F&&i7.jsx(l8,{"data-type":"outside",ref:k,onFocus:(E)=>{if(v6(E,F))D.current?.focus();else{let m=M?M.domReference:null;if(xz(m)?.focus(),M?.closeOnFocusOut)M?.onOpenChange(!1,P0(B0.focusOut,E.nativeEvent))}}})]})]})});Sz.displayName="FloatingPortal";var VX=c(x1(),1);function Hb(J,X){let Y=u1(J.target);if(J instanceof Y.KeyboardEvent)return"keyboard";if(J instanceof Y.FocusEvent)return X||"keyboard";if("pointerType"in J)return J.pointerType||"keyboard";if("touches"in J)return"touch";if(J instanceof Y.MouseEvent)return X||(J.detail===0?"keyboard":"mouse");return""}var LM=20,y4=[];function x_(){y4=y4.filter((J)=>J.isConnected)}function _b(J){if(x_(),J&&o5(J)!=="body"){if(y4.push(J),y4.length>LM)y4=y4.slice(-LM)}}function T_(){return x_(),y4[y4.length-1]}function qb(J){if(!J)return null;let X=u7();if(G_(J,X))return J;return d7(J,X)[0]||J}function Bb(J){if(!J||!J.isConnected)return!1;if(typeof J.checkVisibility==="function")return J.checkVisibility();return uw(J).display!=="none"}function VM(J,X){if(!X.current.includes("floating")&&!J.getAttribute("role")?.includes("dialog"))return;let Y=u7(),K=aj(J,Y).filter((q)=>{let _=q.getAttribute("data-tabindex")||"";return G_(q,Y)||q.hasAttribute("data-tabindex")&&!_.startsWith("-")}),U=J.getAttribute("tabindex");if(X.current.includes("floating")||K.length===0){if(U!=="0")J.setAttribute("tabindex","0")}else if(U!=="-1"||J.hasAttribute("data-tabindex")&&J.getAttribute("data-tabindex")!=="-1")J.setAttribute("tabindex","-1"),J.setAttribute("data-tabindex","-1")}function FX(J){let{context:X,children:Y,disabled:W=!1,order:K=["content"],initialFocus:U=!0,returnFocus:q=!0,restoreFocus:_=!1,modal:L=!0,closeOnFocusOut:F=!0,openInteractionType:N="",getInsideElements:V=()=>[],nextFocusableElement:k,previousFocusableElement:A,beforeContentFocusGuardRef:D,externalTree:M}=J,h="rootStore"in X?X.rootStore:X,v=h.useState("open"),x=h.useState("domReferenceElement"),I=h.useState("floatingElement"),{events:b,dataRef:E}=h.context,m=F0(()=>E.current.floatingContext?.nodeId),R=F0(V),S=U===!1,p=$X(x)&&S,d=Kw(K),w0=Kw(U),t=Kw(q),u=Kw(N),Q0=$2(M),r=D_(),e=qw.useRef(null),o=qw.useRef(null),g=qw.useRef(!1),X0=qw.useRef(!1),P=qw.useRef(!1),z0=qw.useRef(-1),U0=qw.useRef(""),J0=qw.useRef(""),L0=a1(),S0=a1(),V0=x5(),H0=r!=null,j0=g7(I),r0=F0((_0=j0)=>{return _0?d7(_0,u7()):[]}),n0=F0((_0)=>{let O0=r0(_0);return d.current.map(()=>O0).filter(Boolean).flat()});qw.useEffect(()=>{if(W)return;if(!L)return;function _0(A0){if(A0.key==="Tab"){if(t0(j0,X2(C1(j0)))&&r0().length===0&&!p)Xw(A0)}}let O0=C1(j0);return O0.addEventListener("keydown",_0),()=>{O0.removeEventListener("keydown",_0)}},[W,x,j0,L,d,p,r0,n0]),qw.useEffect(()=>{if(W)return;if(!I)return;function _0(O0){let A0=f1(O0),C0=r0().indexOf(A0);if(C0!==-1)z0.current=C0}return I.addEventListener("focusin",_0),()=>{I.removeEventListener("focusin",_0)}},[W,I,r0]),qw.useEffect(()=>{if(W||!v)return;let _0=C1(j0);function O0(){P.current=!1}function A0(C0){let E0=f1(C0),o0=t0(I,E0)||t0(x,E0)||t0(r?.portalNode,E0);P.current=!o0,J0.current=C0.pointerType||"keyboard"}function c0(){J0.current="keyboard"}return _0.addEventListener("pointerdown",A0,!0),_0.addEventListener("pointerup",O0,!0),_0.addEventListener("pointercancel",O0,!0),_0.addEventListener("keydown",c0,!0),()=>{_0.removeEventListener("pointerdown",A0,!0),_0.removeEventListener("pointerup",O0,!0),_0.removeEventListener("pointercancel",O0,!0),_0.removeEventListener("keydown",c0,!0)}},[W,I,x,j0,v,r]),qw.useEffect(()=>{if(W)return;if(!F)return;function _0(){X0.current=!0,S0.start(0,()=>{X0.current=!1})}function O0(E0){let{relatedTarget:o0,currentTarget:x0}=E0,l0=f1(E0);queueMicrotask(()=>{let y0=m(),q1=h.context.triggerElements,D1=!(t0(x,o0)||t0(I,o0)||t0(o0,I)||t0(r?.portalNode,o0)||o0!=null&&q1.hasElement(o0)||q1.hasMatchingElement((W1)=>t0(W1,o0))||o0?.hasAttribute(J5("focus-guard"))||Q0&&(c8(Q0.nodesRef.current,y0).find((W1)=>t0(W1.context?.elements.floating,o0)||t0(W1.context?.elements.domReference,o0))||X_(Q0.nodesRef.current,y0).find((W1)=>[W1.context?.elements.floating,g7(W1.context?.elements.floating)].includes(o0)||W1.context?.elements.domReference===o0)));if(x0===x&&j0)VM(j0,d);if(_&&x0!==x&&!Bb(l0)&&X2(C1(j0))===C1(j0).body){if(O1(j0)){if(j0.focus(),_==="popup"){V0.request(()=>{j0.focus()});return}}let W1=z0.current,Gw=r0(),zw=Gw[W1]||Gw[Gw.length-1]||j0;if(O1(zw))zw.focus()}if(E.current.insideReactTree){E.current.insideReactTree=!1;return}if((p?!0:!L)&&o0&&D1&&!X0.current&&(p||o0!==T_()))g.current=!0,h.setOpen(!1,P0(B0.focusOut,E0))})}function A0(){if(P.current)return;E.current.insideReactTree=!0,L0.start(0,()=>{E.current.insideReactTree=!1})}let c0=O1(x)?x:null,C0=[];if(!I&&!c0)return;if(c0)c0.addEventListener("focusout",O0),c0.addEventListener("pointerdown",_0),C0.push(()=>{c0.removeEventListener("focusout",O0),c0.removeEventListener("pointerdown",_0)});if(I){if(I.addEventListener("focusout",O0),r)I.addEventListener("focusout",A0,!0),C0.push(()=>{I.removeEventListener("focusout",A0,!0)});C0.push(()=>{I.removeEventListener("focusout",O0)})}return()=>{C0.forEach((E0)=>{E0()})}},[W,x,I,j0,L,Q0,r,h,F,_,r0,p,m,d,E,L0,S0,V0]);let n=qw.useRef(null),R0=qw.useRef(null),I0=O5(n,D,r?.beforeInsideRef),j1=O5(R0,r?.afterInsideRef);qw.useEffect(()=>{if(W||!I||!v)return;let _0=Array.from(r?.portalNode?.querySelectorAll(`[${J5("portal")}]`)||[]),A0=(Q0?X_(Q0.nodesRef.current,m()):[]).find((E0)=>$X(E0.context?.elements.domReference||null))?.context?.elements.domReference,c0=[I,A0,..._0,...R(),e.current,o.current,n.current,R0.current,r?.beforeOutsideRef.current,r?.afterOutsideRef.current,O6(A),O6(k),p?x:null].filter((E0)=>E0!=null),C0=BM(c0,L||p);return()=>{C0()}},[v,W,x,I,L,d,r,p,Q0,m,R,k,A]),k0(()=>{if(!v||W||!O1(j0))return;let _0=C1(j0),O0=X2(_0);queueMicrotask(()=>{let A0=n0(j0),c0=w0.current,C0=typeof c0==="function"?c0(u.current||""):c0;if(C0===void 0||C0===!1)return;let E0;if(C0===!0||C0===null)E0=A0[0]||j0;else E0=O6(C0);if(E0=E0||A0[0]||j0,t0(j0,O0))return;Iz(E0,{preventScroll:E0===j0})})},[W,v,j0,S,n0,w0,u]),k0(()=>{if(W||!j0)return;let _0=C1(j0),O0=X2(_0);_b(O0);function A0(E0){if(!E0.open)U0.current=Hb(E0.nativeEvent,J0.current);if(E0.reason===B0.triggerHover&&E0.nativeEvent.type==="mouseleave")g.current=!0;if(E0.reason!==B0.outsidePress)return;if(E0.nested)g.current=!1;else if(iY(E0.nativeEvent)||rY(E0.nativeEvent))g.current=!1;else{let o0=!1;if(document.createElement("div").focus({get preventScroll(){return o0=!0,!1}}),o0)g.current=!1;else g.current=!0}}b.on("openchange",A0);let c0=_0.createElement("span");if(c0.setAttribute("tabindex","-1"),c0.setAttribute("aria-hidden","true"),Object.assign(c0.style,QG),H0&&x)x.insertAdjacentElement("afterend",c0);function C0(){let E0=t.current,o0=typeof E0==="function"?E0(U0.current):E0;if(o0===void 0||o0===!1)return null;if(o0===null)o0=!0;if(typeof o0==="boolean"){let l0=x||T_();return l0&&l0.isConnected?l0:c0}let x0=x||T_()||c0;return O6(o0)||x0}return()=>{b.off("openchange",A0);let E0=X2(_0),o0=t0(I,E0)||Q0&&c8(Q0.nodesRef.current,m(),!1).some((l0)=>t0(l0.context?.elements.floating,E0)),x0=C0();queueMicrotask(()=>{let l0=qb(x0),y0=typeof t.current!=="boolean";if(t.current&&!g.current&&O1(l0)&&(!y0&&l0!==E0&&E0!==_0.body?o0:!0))l0.focus({preventScroll:!0});c0.remove()})}},[W,I,j0,t,E,b,Q0,H0,x,m]),qw.useEffect(()=>{queueMicrotask(()=>{g.current=!1})},[W]),qw.useEffect(()=>{if(W||!v)return;function _0(A0){if(f1(A0)?.closest(`[${hY}]`))X0.current=!0}let O0=C1(j0);return O0.addEventListener("pointerdown",_0,!0),()=>{O0.removeEventListener("pointerdown",_0,!0)}},[W,v,j0]),k0(()=>{if(W)return;if(!r)return;return r.setFocusManagerState({modal:L,closeOnFocusOut:F,open:v,onOpenChange:h.setOpen,domReference:x}),()=>{r.setFocusManagerState(null)}},[W,r,L,v,h,F,x]),k0(()=>{if(W||!j0)return;return VM(j0,d),()=>{queueMicrotask(x_)}},[W,j0,d]);let b0=!W&&(L?!p:!0)&&(H0||L);return VX.jsxs(qw.Fragment,{children:[b0&&VX.jsx(l8,{"data-type":"inside",ref:I0,onFocus:(_0)=>{if(L){let O0=n0();Iz(O0[O0.length-1])}else if(r?.portalNode)if(g.current=!1,v6(_0,r.portalNode))xz(x)?.focus();else O6(A??r.beforeOutsideRef)?.focus()}}),Y,b0&&VX.jsx(l8,{"data-type":"inside",ref:j1,onFocus:(_0)=>{if(L)Iz(n0()[0]);else if(r?.portalNode){if(F)g.current=!0;if(v6(_0,r.portalNode))ZG(x)?.focus();else O6(k??r.afterOutsideRef)?.focus()}}})]})}var NX=c(G0(),1);function r7(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.context.dataRef,{enabled:K=!0,event:U="click",toggle:q=!0,ignoreMouse:_=!1,stickIfOpen:L=!0,touchOpenDelay:F=0}=X,N=NX.useRef(void 0),V=x5(),k=a1(),A=NX.useMemo(()=>({onPointerDown(D){N.current=D.pointerType},onMouseDown(D){let M=N.current,h=D.nativeEvent,v=Y.select("open");if(D.button!==0||U==="click"||E5(M,!0)&&_)return;let x=W.current.openEvent,I=x?.type,b=Y.select("domReferenceElement")!==D.currentTarget,E=v&&b||!(v&&q&&(x&&L?I==="click"||I==="mousedown":!0));if(XX(h.target)){let R=P0(B0.triggerPress,h,h.target);if(E&&M==="touch"&&F>0)k.start(F,()=>{Y.setOpen(!0,R)});else Y.setOpen(E,R);return}let m=D.currentTarget;V.request(()=>{let R=P0(B0.triggerPress,h,m);if(E&&M==="touch"&&F>0)k.start(F,()=>{Y.setOpen(!0,R)});else Y.setOpen(E,R)})},onClick(D){if(U==="mousedown-only")return;let M=N.current;if(U==="mousedown"&&M){N.current=void 0;return}if(E5(M,!0)&&_)return;let h=Y.select("open"),v=W.current.openEvent,x=Y.select("domReferenceElement")!==D.currentTarget,I=h&&x||!(h&&q&&(v&&L?aY(v):!0)),b=P0(B0.triggerPress,D.nativeEvent,D.currentTarget);if(I&&M==="touch"&&F>0)k.start(F,()=>{Y.setOpen(!0,b)});else Y.setOpen(I,b)},onKeyDown(){N.current=void 0}}),[W,U,_,Y,L,q,V,k,F]);return NX.useMemo(()=>K?{reference:A}:v1,[K,A])}var N2=c(G0(),1);function Lb(J,X){let Y=null,W=null,K=!1;return{contextElement:J||void 0,getBoundingClientRect(){let U=J?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},q=X.axis==="x"||X.axis==="both",_=X.axis==="y"||X.axis==="both",L=["mouseenter","mousemove"].includes(X.dataRef.current.openEvent?.type||"")&&X.pointerType!=="touch",F=U.width,N=U.height,V=U.x,k=U.y;if(Y==null&&X.x&&q)Y=U.x-X.x;if(W==null&&X.y&&_)W=U.y-X.y;if(V-=Y||0,k-=W||0,F=0,N=0,!K||L)F=X.axis==="y"?U.width:0,N=X.axis==="x"?U.height:0,V=q&&X.x!=null?X.x:V,k=_&&X.y!=null?X.y:k;else if(K&&!L)N=X.axis==="x"?U.height:N,F=X.axis==="y"?U.width:F;return K=!0,{width:F,height:N,x:V,y:k,top:k,right:V+F,bottom:k+N,left:V}}}}function FM(J){return J!=null&&J.clientX!=null}function v_(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingElement"),U=Y.useState("domReferenceElement"),q=Y.context.dataRef,{enabled:_=!0,axis:L="both",x:F=null,y:N=null}=X,V=N2.useRef(!1),k=N2.useRef(null),[A,D]=N2.useState(),[M,h]=N2.useState([]),v=F0((m,R)=>{if(V.current)return;if(q.current.openEvent&&!FM(q.current.openEvent))return;Y.set("positionReference",Lb(U,{x:m,y:R,axis:L,dataRef:q,pointerType:A}))}),x=F0((m)=>{if(F!=null||N!=null)return;if(!W)v(m.clientX,m.clientY);else if(!k.current)h([])}),I=E5(A)?K:W,b=N2.useCallback(()=>{if(!I||!_||F!=null||N!=null)return;let m=u1(K);function R(S){let p=f1(S);if(!t0(K,p))v(S.clientX,S.clientY);else m.removeEventListener("mousemove",R),k.current=null}if(!q.current.openEvent||FM(q.current.openEvent)){m.addEventListener("mousemove",R);let S=()=>{m.removeEventListener("mousemove",R),k.current=null};return k.current=S,S}Y.set("positionReference",U);return},[I,_,F,N,K,q,U,Y,v]);N2.useEffect(()=>{return b()},[b,M]),N2.useEffect(()=>{if(_&&!K)V.current=!1},[_,K]),N2.useEffect(()=>{if(!_&&W)V.current=!0},[_,W]),k0(()=>{if(_&&(F!=null||N!=null))V.current=!1,v(F,N)},[_,F,N,v]);let E=N2.useMemo(()=>{function m(R){D(R.pointerType)}return{onPointerDown:m,onPointerEnter:m,onMouseMove:x,onMouseEnter:x}},[x]);return N2.useMemo(()=>_?{reference:E}:{},[_,E])}var b5=c(G0(),1);function NM(J,X,Y){let{reference:W,floating:K}=J,U=E2(X),q=WX(X),_=QX(q),L=nw(X),F=U==="y",N=W.x+W.width/2-K.width/2,V=W.y+W.height/2-K.height/2,k=W[_]/2-K[_]/2,A;switch(L){case"top":A={x:N,y:W.y-K.height};break;case"bottom":A={x:N,y:W.y+W.height};break;case"right":A={x:W.x+W.width,y:V};break;case"left":A={x:W.x-K.width,y:V};break;default:A={x:W.x,y:W.y}}switch(w8(X)){case"start":A[q]-=k*(Y&&F?-1:1);break;case"end":A[q]+=k*(Y&&F?-1:1);break}return A}var jM=async(J,X,Y)=>{let{placement:W="bottom",strategy:K="absolute",middleware:U=[],platform:q}=Y,_=U.filter(Boolean),L=await(q.isRTL==null?void 0:q.isRTL(X)),F=await q.getElementRects({reference:J,floating:X,strategy:K}),{x:N,y:V}=NM(F,W,L),k=W,A={},D=0;for(let M=0;M<_.length;M++){let{name:h,fn:v}=_[M],{x,y:I,data:b,reset:E}=await v({x:N,y:V,initialPlacement:W,placement:k,strategy:K,middlewareData:A,rects:F,platform:q,elements:{reference:J,floating:X}});if(N=x!=null?x:N,V=I!=null?I:V,A={...A,[h]:{...A[h],...b}},E&&D<=50){if(D++,typeof E==="object"){if(E.placement)k=E.placement;if(E.rects)F=E.rects===!0?await q.getElementRects({reference:J,floating:X,strategy:K}):E.rects;({x:N,y:V}=NM(F,k,L))}M=-1}}return{x:N,y:V,placement:k,strategy:K,middlewareData:A}};async function Cz(J,X){var Y;if(X===void 0)X={};let{x:W,y:K,platform:U,rects:q,elements:_,strategy:L}=J,{boundary:F="clippingAncestors",rootBoundary:N="viewport",elementContext:V="floating",altBoundary:k=!1,padding:A=0}=e5(X,J),D=nY(A),h=_[k?V==="floating"?"reference":"floating":V],v=f7(await U.getClippingRect({element:((Y=await(U.isElement==null?void 0:U.isElement(h)))!=null?Y:!0)?h:h.contextElement||await(U.getDocumentElement==null?void 0:U.getDocumentElement(_.floating)),boundary:F,rootBoundary:N,strategy:L})),x=V==="floating"?{x:W,y:K,width:q.floating.width,height:q.floating.height}:q.reference,I=await(U.getOffsetParent==null?void 0:U.getOffsetParent(_.floating)),b=await(U.isElement==null?void 0:U.isElement(I))?await(U.getScale==null?void 0:U.getScale(I))||{x:1,y:1}:{x:1,y:1},E=f7(U.convertOffsetParentRelativeRectToViewportRelativeRect?await U.convertOffsetParentRelativeRectToViewportRelativeRect({elements:_,rect:x,offsetParent:I,strategy:L}):x);return{top:(v.top-E.top+D.top)/b.y,bottom:(E.bottom-v.bottom+D.bottom)/b.y,left:(v.left-E.left+D.left)/b.x,right:(E.right-v.right+D.right)/b.x}}var MM=function(J){if(J===void 0)J={};return{name:"flip",options:J,async fn(X){var Y,W;let{placement:K,middlewareData:U,rects:q,initialPlacement:_,platform:L,elements:F}=X,{mainAxis:N=!0,crossAxis:V=!0,fallbackPlacements:k,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:M=!0,...h}=e5(J,X);if((Y=U.arrow)!=null&&Y.alignmentOffset)return{};let v=nw(K),x=E2(_),I=nw(_)===_,b=await(L.isRTL==null?void 0:L.isRTL(F.floating)),E=k||(I||!M?[YX(_)]:fj(_)),m=D!=="none";if(!k&&m)E.push(...mj(_,M,D,b));let R=[_,...E],S=await Cz(X,h),p=[],d=((W=U.flip)==null?void 0:W.overflows)||[];if(N)p.push(S[v]);if(V){let Q0=gj(K,q,b);p.push(S[Q0[0]],S[Q0[1]])}if(d=[...d,{placement:K,overflows:p}],!p.every((Q0)=>Q0<=0)){var w0,t;let Q0=(((w0=U.flip)==null?void 0:w0.index)||0)+1,r=R[Q0];if(r){if(!(V==="alignment"?x!==E2(r):!1)||d.every((g)=>E2(g.placement)===x?g.overflows[0]>0:!0))return{data:{index:Q0,overflows:d},reset:{placement:r}}}let e=(t=d.filter((o)=>o.overflows[0]<=0).sort((o,g)=>o.overflows[1]-g.overflows[1])[0])==null?void 0:t.placement;if(!e)switch(A){case"bestFit":{var u;let o=(u=d.filter((g)=>{if(m){let X0=E2(g.placement);return X0===x||X0==="y"}return!0}).map((g)=>[g.placement,g.overflows.filter((X0)=>X0>0).reduce((X0,P)=>X0+P,0)]).sort((g,X0)=>g[1]-X0[1])[0])==null?void 0:u[0];if(o)e=o;break}case"initialPlacement":e=_;break}if(K!==e)return{reset:{placement:e}}}return{}}}};function kM(J,X){return{top:J.top-X.height,right:J.right-X.width,bottom:J.bottom-X.height,left:J.left-X.width}}function AM(J){return Rj.some((X)=>J[X]>=0)}var OM=function(J){if(J===void 0)J={};return{name:"hide",options:J,async fn(X){let{rects:Y}=X,{strategy:W="referenceHidden",...K}=e5(J,X);switch(W){case"referenceHidden":{let U=await Cz(X,{...K,elementContext:"reference"}),q=kM(U,Y.reference);return{data:{referenceHiddenOffsets:q,referenceHidden:AM(q)}}}case"escaped":{let U=await Cz(X,{...K,altBoundary:!0}),q=kM(U,Y.floating);return{data:{escapedOffsets:q,escaped:AM(q)}}}default:return{}}}}};var DM=new Set(["left","top"]);async function Vb(J,X){let{placement:Y,platform:W,elements:K}=J,U=await(W.isRTL==null?void 0:W.isRTL(K.floating)),q=nw(Y),_=w8(Y),L=E2(Y)==="y",F=DM.has(q)?-1:1,N=U&&L?-1:1,V=e5(X,J),{mainAxis:k,crossAxis:A,alignmentAxis:D}=typeof V==="number"?{mainAxis:V,crossAxis:0,alignmentAxis:null}:{mainAxis:V.mainAxis||0,crossAxis:V.crossAxis||0,alignmentAxis:V.alignmentAxis};if(_&&typeof D==="number")A=_==="end"?D*-1:D;return L?{x:A*N,y:k*F}:{x:k*F,y:A*N}}var TM=function(J){if(J===void 0)J=0;return{name:"offset",options:J,async fn(X){var Y,W;let{x:K,y:U,placement:q,middlewareData:_}=X,L=await Vb(X,J);if(q===((Y=_.offset)==null?void 0:Y.placement)&&(W=_.arrow)!=null&&W.alignmentOffset)return{};return{x:K+L.x,y:U+L.y,data:{...L,placement:q}}}}},xM=function(J){if(J===void 0)J={};return{name:"shift",options:J,async fn(X){let{x:Y,y:W,placement:K}=X,{mainAxis:U=!0,crossAxis:q=!1,limiter:_={fn:(h)=>{let{x:v,y:x}=h;return{x:v,y:x}}},...L}=e5(J,X),F={x:Y,y:W},N=await Cz(X,L),V=E2(nw(K)),k=oY(V),A=F[k],D=F[V];if(U){let h=k==="y"?"top":"left",v=k==="y"?"bottom":"right",x=A+N[h],I=A-N[v];A=GX(x,A,I)}if(q){let h=V==="y"?"top":"left",v=V==="y"?"bottom":"right",x=D+N[h],I=D-N[v];D=GX(x,D,I)}let M=_.fn({...X,[k]:A,[V]:D});return{...M,data:{x:M.x-Y,y:M.y-W,enabled:{[k]:U,[V]:q}}}}}},vM=function(J){if(J===void 0)J={};return{options:J,fn(X){let{x:Y,y:W,placement:K,rects:U,middlewareData:q}=X,{offset:_=0,mainAxis:L=!0,crossAxis:F=!0}=e5(J,X),N={x:Y,y:W},V=E2(K),k=oY(V),A=N[k],D=N[V],M=e5(_,X),h=typeof M==="number"?{mainAxis:M,crossAxis:0}:{mainAxis:0,crossAxis:0,...M};if(L){let I=k==="y"?"height":"width",b=U.reference[k]-U.floating[I]+h.mainAxis,E=U.reference[k]+U.reference[I]-h.mainAxis;if(A<b)A=b;else if(A>E)A=E}if(F){var v,x;let I=k==="y"?"width":"height",b=DM.has(nw(K)),E=U.reference[V]-U.floating[I]+(b?((v=q.offset)==null?void 0:v[V])||0:0)+(b?0:h.crossAxis),m=U.reference[V]+U.reference[I]+(b?0:((x=q.offset)==null?void 0:x[V])||0)-(b?h.crossAxis:0);if(D<E)D=E;else if(D>m)D=m}return{[k]:A,[V]:D}}}},hM=function(J){if(J===void 0)J={};return{name:"size",options:J,async fn(X){var Y,W;let{placement:K,rects:U,platform:q,elements:_}=X,{apply:L=()=>{},...F}=e5(J,X),N=await Cz(X,F),V=nw(K),k=w8(K),A=E2(K)==="y",{width:D,height:M}=U.floating,h,v;if(V==="top"||V==="bottom")h=V,v=k===(await(q.isRTL==null?void 0:q.isRTL(_.floating))?"start":"end")?"left":"right";else v=V,h=k==="end"?"top":"bottom";let x=M-N.top-N.bottom,I=D-N.left-N.right,b=P4(M-N[h],x),E=P4(D-N[v],I),m=!X.middlewareData.shift,R=b,S=E;if((Y=X.middlewareData.shift)!=null&&Y.enabled.x)S=I;if((W=X.middlewareData.shift)!=null&&W.enabled.y)R=x;if(m&&!k){let d=F2(N.left,0),w0=F2(N.right,0),t=F2(N.top,0),u=F2(N.bottom,0);if(A)S=D-2*(d!==0||w0!==0?d+w0:F2(N.left,N.right));else R=M-2*(t!==0||u!==0?t+u:F2(N.top,N.bottom))}await L({...X,availableWidth:S,availableHeight:R});let p=await q.getDimensions(_.floating);if(D!==p.width||M!==p.height)return{reset:{rects:!0}};return{}}}};function bM(J){let X=uw(J),Y=parseFloat(X.width)||0,W=parseFloat(X.height)||0,K=O1(J),U=K?J.offsetWidth:Y,q=K?J.offsetHeight:W,_=I4(Y)!==U||I4(W)!==q;if(_)Y=U,W=q;return{width:Y,height:W,$:_}}function E_(J){return!L1(J)?J.contextElement:J}function yz(J){let X=E_(J);if(!O1(X))return t5(1);let Y=X.getBoundingClientRect(),{width:W,height:K,$:U}=bM(X),q=(U?I4(Y.width):Y.width)/W,_=(U?I4(Y.height):Y.height)/K;if(!q||!Number.isFinite(q))q=1;if(!_||!Number.isFinite(_))_=1;return{x:q,y:_}}var Fb=t5(0);function SM(J){let X=u1(J);if(!jz()||!X.visualViewport)return Fb;return{x:X.visualViewport.offsetLeft,y:X.visualViewport.offsetTop}}function Nb(J,X,Y){if(X===void 0)X=!1;if(!Y||X&&Y!==u1(J))return!1;return X}function a7(J,X,Y,W){if(X===void 0)X=!1;if(Y===void 0)Y=!1;let K=J.getBoundingClientRect(),U=E_(J),q=t5(1);if(X)if(W){if(L1(W))q=yz(W)}else q=yz(J);let _=Nb(U,Y,W)?SM(U):t5(0),L=(K.left+_.x)/q.x,F=(K.top+_.y)/q.y,N=K.width/q.x,V=K.height/q.y;if(U){let k=u1(U),A=W&&L1(W)?u1(W):W,D=k,M=fY(D);while(M&&W&&A!==D){let h=yz(M),v=M.getBoundingClientRect(),x=uw(M),I=v.left+(M.clientLeft+parseFloat(x.paddingLeft))*h.x,b=v.top+(M.clientTop+parseFloat(x.paddingTop))*h.y;L*=h.x,F*=h.y,N*=h.x,V*=h.y,L+=I,F+=b,D=u1(M),M=fY(D)}}return f7({width:N,height:V,x:L,y:F})}function _G(J,X){let Y=zX(J).scrollLeft;if(!X)return a7(n5(J)).left+Y;return X.left+Y}function CM(J,X){let Y=J.getBoundingClientRect(),W=Y.left+X.scrollLeft-_G(J,Y),K=Y.top+X.scrollTop;return{x:W,y:K}}function kb(J){let{elements:X,rect:Y,offsetParent:W,strategy:K}=J,U=K==="fixed",q=n5(W),_=X?wX(X.floating):!1;if(W===q||_&&U)return Y;let L={scrollLeft:0,scrollTop:0},F=t5(1),N=t5(0),V=O1(W);if(V||!V&&!U){if(o5(W)!=="body"||T6(q))L=zX(W);if(O1(W)){let A=a7(W);F=yz(W),N.x=A.x+W.clientLeft,N.y=A.y+W.clientTop}}let k=q&&!V&&!U?CM(q,L):t5(0);return{width:Y.width*F.x,height:Y.height*F.y,x:Y.x*F.x-L.scrollLeft*F.x+N.x+k.x,y:Y.y*F.y-L.scrollTop*F.y+N.y+k.y}}function Ab(J){return Array.from(J.getClientRects())}function jb(J){let X=n5(J),Y=zX(J),W=J.ownerDocument.body,K=F2(X.scrollWidth,X.clientWidth,W.scrollWidth,W.clientWidth),U=F2(X.scrollHeight,X.clientHeight,W.scrollHeight,W.clientHeight),q=-Y.scrollLeft+_G(J),_=-Y.scrollTop;if(uw(W).direction==="rtl")q+=F2(X.clientWidth,W.clientWidth)-K;return{width:K,height:U,x:q,y:_}}var EM=25;function Mb(J,X){let Y=u1(J),W=n5(J),K=Y.visualViewport,U=W.clientWidth,q=W.clientHeight,_=0,L=0;if(K){U=K.width,q=K.height;let N=jz();if(!N||N&&X==="fixed")_=K.offsetLeft,L=K.offsetTop}let F=_G(W);if(F<=0){let N=W.ownerDocument,V=N.body,k=getComputedStyle(V),A=N.compatMode==="CSS1Compat"?parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0:0,D=Math.abs(W.clientWidth-V.clientWidth-A);if(D<=EM)U-=D}else if(F<=EM)U+=F;return{width:U,height:q,x:_,y:L}}var Ob=new Set(["absolute","fixed"]);function Db(J,X){let Y=a7(J,!0,X==="fixed"),W=Y.top+J.clientTop,K=Y.left+J.clientLeft,U=O1(J)?yz(J):t5(1),q=J.clientWidth*U.x,_=J.clientHeight*U.y,L=K*U.x,F=W*U.y;return{width:q,height:_,x:L,y:F}}function PM(J,X,Y){let W;if(X==="viewport")W=Mb(J,Y);else if(X==="document")W=jb(n5(J));else if(L1(X))W=Db(X,Y);else{let K=SM(J);W={x:X.x-K.x,y:X.y-K.y,width:X.width,height:X.height}}return f7(W)}function yM(J,X){let Y=e2(J);if(Y===X||!L1(Y)||z5(Y))return!1;return uw(Y).position==="fixed"||yM(Y,X)}function Tb(J,X){let Y=X.get(J);if(Y)return Y;let W=w5(J,[],!1).filter((_)=>L1(_)&&o5(_)!=="body"),K=null,U=uw(J).position==="fixed",q=U?e2(J):J;while(L1(q)&&!z5(q)){let _=uw(q),L=gY(q);if(!L&&_.position==="fixed")K=null;if(U?!L&&!K:!L&&_.position==="static"&&!!K&&Ob.has(K.position)||T6(q)&&!L&&yM(J,q))W=W.filter((N)=>N!==q);else K=_;q=e2(q)}return X.set(J,W),W}function xb(J){let{element:X,boundary:Y,rootBoundary:W,strategy:K}=J,q=[...Y==="clippingAncestors"?wX(X)?[]:Tb(X,this._c):[].concat(Y),W],_=q[0],L=q.reduce((F,N)=>{let V=PM(X,N,K);return F.top=F2(V.top,F.top),F.right=P4(V.right,F.right),F.bottom=P4(V.bottom,F.bottom),F.left=F2(V.left,F.left),F},PM(X,_,K));return{width:L.right-L.left,height:L.bottom-L.top,x:L.left,y:L.top}}function vb(J){let{width:X,height:Y}=bM(J);return{width:X,height:Y}}function hb(J,X,Y){let W=O1(X),K=n5(X),U=Y==="fixed",q=a7(J,!0,U,X),_={scrollLeft:0,scrollTop:0},L=t5(0);function F(){L.x=_G(K)}if(W||!W&&!U){if(o5(X)!=="body"||T6(K))_=zX(X);if(W){let A=a7(X,!0,U,X);L.x=A.x+X.clientLeft,L.y=A.y+X.clientTop}else if(K)F()}if(U&&!W&&K)F();let N=K&&!W&&!U?CM(K,_):t5(0),V=q.left+_.scrollLeft-L.x-N.x,k=q.top+_.scrollTop-L.y-N.y;return{x:V,y:k,width:q.width,height:q.height}}function h_(J){return uw(J).position==="static"}function IM(J,X){if(!O1(J)||uw(J).position==="fixed")return null;if(X)return X(J);let Y=J.offsetParent;if(n5(J)===Y)Y=Y.ownerDocument.body;return Y}function RM(J,X){let Y=u1(J);if(wX(J))return Y;if(!O1(J)){let K=e2(J);while(K&&!z5(K)){if(L1(K)&&!h_(K))return K;K=e2(K)}return Y}let W=IM(J,X);while(W&&Mj(W)&&h_(W))W=IM(W,X);if(W&&z5(W)&&h_(W)&&!gY(W))return Y;return W||Oj(J)||Y}var Eb=async function(J){let X=this.getOffsetParent||RM,Y=this.getDimensions,W=await Y(J.floating);return{reference:hb(J.reference,await X(J.floating),J.strategy),floating:{x:0,y:0,width:W.width,height:W.height}}};function Pb(J){return uw(J).direction==="rtl"}var P_={convertOffsetParentRelativeRectToViewportRelativeRect:kb,getDocumentElement:n5,getClippingRect:xb,getOffsetParent:RM,getElementRects:Eb,getClientRects:Ab,getDimensions:vb,getScale:yz,isElement:L1,isRTL:Pb};function gM(J,X){return J.x===X.x&&J.y===X.y&&J.width===X.width&&J.height===X.height}function Ib(J,X){let Y=null,W,K=n5(J);function U(){var _;clearTimeout(W),(_=Y)==null||_.disconnect(),Y=null}function q(_,L){if(_===void 0)_=!1;if(L===void 0)L=1;U();let F=J.getBoundingClientRect(),{left:N,top:V,width:k,height:A}=F;if(!_)X();if(!k||!A)return;let D=b4(V),M=b4(K.clientWidth-(N+k)),h=b4(K.clientHeight-(V+A)),v=b4(N),I={rootMargin:-D+"px "+-M+"px "+-h+"px "+-v+"px",threshold:F2(0,P4(1,L))||1},b=!0;function E(m){let R=m[0].intersectionRatio;if(R!==L){if(!b)return q();if(!R)W=setTimeout(()=>{q(!1,0.0000001)},1000);else q(!1,R)}if(R===1&&!gM(F,J.getBoundingClientRect()))q();b=!1}try{Y=new IntersectionObserver(E,{...I,root:K.ownerDocument})}catch(m){Y=new IntersectionObserver(E,I)}Y.observe(J)}return q(!0),U}function kX(J,X,Y,W){if(W===void 0)W={};let{ancestorScroll:K=!0,ancestorResize:U=!0,elementResize:q=typeof ResizeObserver==="function",layoutShift:_=typeof IntersectionObserver==="function",animationFrame:L=!1}=W,F=E_(J),N=K||U?[...F?w5(F):[],...w5(X)]:[];N.forEach((v)=>{K&&v.addEventListener("scroll",Y,{passive:!0}),U&&v.addEventListener("resize",Y)});let V=F&&_?Ib(F,Y):null,k=-1,A=null;if(q){if(A=new ResizeObserver((v)=>{let[x]=v;if(x&&x.target===F&&A)A.unobserve(X),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var I;(I=A)==null||I.observe(X)});Y()}),F&&!L)A.observe(F);A.observe(X)}let D,M=L?a7(J):null;if(L)h();function h(){let v=a7(J);if(M&&!gM(M,v))Y();M=v,D=requestAnimationFrame(h)}return Y(),()=>{var v;if(N.forEach((x)=>{K&&x.removeEventListener("scroll",Y),U&&x.removeEventListener("resize",Y)}),V==null||V(),(v=A)==null||v.disconnect(),A=null,L)cancelAnimationFrame(D)}}var fM=TM;var mM=xM,dM=MM,uM=hM,pM=OM;var cM=vM,qG=(J,X,Y)=>{let W=new Map,K={platform:P_,...Y},U={...K.platform,_c:W};return jM(J,X,{...K,platform:U})};var Tw=c(G0(),1),iM=c(G0(),1),rM=c(m8(),1),Sb=typeof document<"u",Cb=function(){},BG=Sb?iM.useLayoutEffect:Cb;function LG(J,X){if(J===X)return!0;if(typeof J!==typeof X)return!1;if(typeof J==="function"&&J.toString()===X.toString())return!0;let Y,W,K;if(J&&X&&typeof J==="object"){if(Array.isArray(J)){if(Y=J.length,Y!==X.length)return!1;for(W=Y;W--!==0;)if(!LG(J[W],X[W]))return!1;return!0}if(K=Object.keys(J),Y=K.length,Y!==Object.keys(X).length)return!1;for(W=Y;W--!==0;)if(!{}.hasOwnProperty.call(X,K[W]))return!1;for(W=Y;W--!==0;){let U=K[W];if(U==="_owner"&&J.$$typeof)continue;if(!LG(J[U],X[U]))return!1}return!0}return J!==J&&X!==X}function aM(J){if(typeof window>"u")return 1;return(J.ownerDocument.defaultView||window).devicePixelRatio||1}function lM(J,X){let Y=aM(J);return Math.round(X*Y)/Y}function I_(J){let X=Tw.useRef(J);return BG(()=>{X.current=J}),X}function sM(J){if(J===void 0)J={};let{placement:X="bottom",strategy:Y="absolute",middleware:W=[],platform:K,elements:{reference:U,floating:q}={},transform:_=!0,whileElementsMounted:L,open:F}=J,[N,V]=Tw.useState({x:0,y:0,strategy:Y,placement:X,middlewareData:{},isPositioned:!1}),[k,A]=Tw.useState(W);if(!LG(k,W))A(W);let[D,M]=Tw.useState(null),[h,v]=Tw.useState(null),x=Tw.useCallback((g)=>{if(g!==m.current)m.current=g,M(g)},[]),I=Tw.useCallback((g)=>{if(g!==R.current)R.current=g,v(g)},[]),b=U||D,E=q||h,m=Tw.useRef(null),R=Tw.useRef(null),S=Tw.useRef(N),p=L!=null,d=I_(L),w0=I_(K),t=I_(F),u=Tw.useCallback(()=>{if(!m.current||!R.current)return;let g={placement:X,strategy:Y,middleware:k};if(w0.current)g.platform=w0.current;qG(m.current,R.current,g).then((X0)=>{let P={...X0,isPositioned:t.current!==!1};if(Q0.current&&!LG(S.current,P))S.current=P,rM.flushSync(()=>{V(P)})})},[k,X,Y,w0,t]);BG(()=>{if(F===!1&&S.current.isPositioned)S.current.isPositioned=!1,V((g)=>({...g,isPositioned:!1}))},[F]);let Q0=Tw.useRef(!1);BG(()=>{return Q0.current=!0,()=>{Q0.current=!1}},[]),BG(()=>{if(b)m.current=b;if(E)R.current=E;if(b&&E){if(d.current)return d.current(b,E,u);u()}},[b,E,u,d,p]);let r=Tw.useMemo(()=>({reference:m,floating:R,setReference:x,setFloating:I}),[x,I]),e=Tw.useMemo(()=>({reference:b,floating:E}),[b,E]),o=Tw.useMemo(()=>{let g={position:Y,left:0,top:0};if(!e.floating)return g;let X0=lM(e.floating,N.x),P=lM(e.floating,N.y);if(_)return{...g,transform:"translate("+X0+"px, "+P+"px)",...aM(e.floating)>=1.5&&{willChange:"transform"}};return{position:Y,left:X0,top:P}},[Y,_,e.floating,N.x,N.y]);return Tw.useMemo(()=>({...N,update:u,refs:r,elements:e,floatingStyles:o}),[N,u,r,e,o])}var b_=(J,X)=>({...fM(J),options:[J,X]}),S_=(J,X)=>({...mM(J),options:[J,X]}),C_=(J,X)=>({...cM(J),options:[J,X]}),y_=(J,X)=>({...dM(J),options:[J,X]}),R_=(J,X)=>({...uM(J),options:[J,X]});var g_=(J,X)=>({...pM(J),options:[J,X]});var yb={intentional:"onClick",sloppy:"onPointerDown"};function Rb(J){return{escapeKey:typeof J==="boolean"?J:J?.escapeKey??!1,outsidePress:typeof J==="boolean"?J:J?.outsidePress??!0}}function s7(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingElement"),U=Y.useState("referenceElement"),q=Y.useState("domReferenceElement"),{onOpenChange:_,dataRef:L}=Y.context,{enabled:F=!0,escapeKey:N=!0,outsidePress:V=!0,outsidePressEvent:k="sloppy",referencePress:A=!1,referencePressEvent:D="sloppy",ancestorScroll:M=!1,bubbles:h,externalTree:v}=X,x=$2(v),I=F0(typeof V==="function"?V:()=>!1),b=typeof V==="function"?I:V,E=b5.useRef(!1),{escapeKey:m,outsidePress:R}=Rb(h),S=b5.useRef(null),p=a1(),d=a1(),w0=F0(()=>{d.clear(),L.current.insideReactTree=!1}),t=b5.useRef(!1),u=b5.useRef(""),Q0=F0((n)=>{u.current=n.pointerType}),r=F0(()=>{let n=u.current,R0=n==="pen"||!n?"mouse":n,I0=typeof k==="function"?k():k;if(typeof I0==="string")return I0;return I0[R0]}),e=F0((n)=>{if(!W||!F||!N||n.key!=="Escape")return;if(t.current)return;let R0=L.current.floatingContext?.nodeId,I0=x?c8(x.nodesRef.current,R0):[];if(!m){if(I0.length>0){let _0=!0;if(I0.forEach((O0)=>{if(O0.context?.open&&!O0.context.dataRef.current.__escapeKeyBubbles)_0=!1}),!_0)return}}let j1=Sj(n)?n.nativeEvent:n,b0=P0(B0.escapeKey,j1);if(Y.setOpen(!1,b0),!m&&!b0.isPropagationAllowed)n.stopPropagation()}),o=F0((n)=>{let R0=r();return R0==="intentional"&&n.type!=="click"||R0==="sloppy"&&n.type==="click"}),g=F0(()=>{L.current.insideReactTree=!0,d.start(0,w0)}),X0=F0((n,R0=!1)=>{if(o(n)){w0();return}if(L.current.insideReactTree){w0();return}if(r()==="intentional"&&R0)return;if(typeof b==="function"&&!b(n))return;let I0=f1(n),j1=`[${J5("inert")}]`,b0=C1(Y.select("floatingElement")).querySelectorAll(j1),_0=Y.context.triggerElements;if(I0&&(_0.hasElement(I0)||_0.hasMatchingElement((E0)=>t0(E0,I0))))return;let O0=L1(I0)?I0:null;while(O0&&!z5(O0)){let E0=e2(O0);if(z5(E0)||!L1(E0))break;O0=E0}if(b0.length&&L1(I0)&&!Ij(I0)&&!t0(I0,Y.select("floatingElement"))&&Array.from(b0).every((E0)=>!t0(O0,E0)))return;if(O1(I0)&&!("touches"in n)){let E0=z5(I0),o0=uw(I0),x0=/auto|scroll/,l0=E0||x0.test(o0.overflowX),y0=E0||x0.test(o0.overflowY),q1=l0&&I0.clientWidth>0&&I0.scrollWidth>I0.clientWidth,D1=y0&&I0.clientHeight>0&&I0.scrollHeight>I0.clientHeight,W1=o0.direction==="rtl",Gw=D1&&(W1?n.offsetX<=I0.offsetWidth-I0.clientWidth:n.offsetX>I0.clientWidth),zw=q1&&n.offsetY>I0.clientHeight;if(Gw||zw)return}let A0=L.current.floatingContext?.nodeId,c0=x&&c8(x.nodesRef.current,A0).some((E0)=>h5(n,E0.context?.elements.floating));if(h5(n,Y.select("floatingElement"))||h5(n,Y.select("domReferenceElement"))||c0)return;let C0=x?c8(x.nodesRef.current,A0):[];if(C0.length>0){let E0=!0;if(C0.forEach((o0)=>{if(o0.context?.open&&!o0.context.dataRef.current.__outsidePressBubbles)E0=!1}),!E0)return}Y.setOpen(!1,P0(B0.outsidePress,n)),w0()}),P=F0((n)=>{if(r()!=="sloppy"||n.pointerType==="touch"||!Y.select("open")||!F||h5(n,Y.select("floatingElement"))||h5(n,Y.select("domReferenceElement")))return;X0(n)}),z0=F0((n)=>{if(r()!=="sloppy"||!Y.select("open")||!F||h5(n,Y.select("floatingElement"))||h5(n,Y.select("domReferenceElement")))return;let R0=n.touches[0];if(R0)S.current={startTime:Date.now(),startX:R0.clientX,startY:R0.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},p.start(1000,()=>{if(S.current)S.current.dismissOnTouchEnd=!1,S.current.dismissOnMouseDown=!1})}),U0=F0((n)=>{let R0=f1(n);function I0(){z0(n),R0?.removeEventListener(n.type,I0)}R0?.addEventListener(n.type,I0)}),J0=F0((n)=>{let R0=E.current;if(E.current=!1,p.clear(),n.type==="mousedown"&&S.current&&!S.current.dismissOnMouseDown)return;let I0=f1(n);function j1(){if(n.type==="pointerdown")P(n);else X0(n,R0);I0?.removeEventListener(n.type,j1)}I0?.addEventListener(n.type,j1)}),L0=F0((n)=>{if(r()!=="sloppy"||!S.current||h5(n,Y.select("floatingElement"))||h5(n,Y.select("domReferenceElement")))return;let R0=n.touches[0];if(!R0)return;let I0=Math.abs(R0.clientX-S.current.startX),j1=Math.abs(R0.clientY-S.current.startY),b0=Math.sqrt(I0*I0+j1*j1);if(b0>5)S.current.dismissOnTouchEnd=!0;if(b0>10)X0(n),p.clear(),S.current=null}),S0=F0((n)=>{let R0=f1(n);function I0(){L0(n),R0?.removeEventListener(n.type,I0)}R0?.addEventListener(n.type,I0)}),V0=F0((n)=>{if(r()!=="sloppy"||!S.current||h5(n,Y.select("floatingElement"))||h5(n,Y.select("domReferenceElement")))return;if(S.current.dismissOnTouchEnd)X0(n);p.clear(),S.current=null}),H0=F0((n)=>{let R0=f1(n);function I0(){V0(n),R0?.removeEventListener(n.type,I0)}R0?.addEventListener(n.type,I0)});b5.useEffect(()=>{if(!W||!F)return;L.current.__escapeKeyBubbles=m,L.current.__outsidePressBubbles=R;let n=new I5;function R0(O0){Y.setOpen(!1,P0(B0.none,O0))}function I0(){n.clear(),t.current=!0}function j1(){n.start(jz()?5:0,()=>{t.current=!1})}let b0=C1(K);if(b0.addEventListener("pointerdown",Q0,!0),N)b0.addEventListener("keydown",e),b0.addEventListener("compositionstart",I0),b0.addEventListener("compositionend",j1);if(b)b0.addEventListener("click",J0,!0),b0.addEventListener("pointerdown",J0,!0),b0.addEventListener("touchstart",U0,!0),b0.addEventListener("touchmove",S0,!0),b0.addEventListener("touchend",H0,!0),b0.addEventListener("mousedown",J0,!0);let _0=[];if(M){if(L1(q))_0=w5(q);if(L1(K))_0=_0.concat(w5(K));if(!L1(U)&&U&&U.contextElement)_0=_0.concat(w5(U.contextElement))}return _0=_0.filter((O0)=>O0!==b0.defaultView?.visualViewport),_0.forEach((O0)=>{O0.addEventListener("scroll",R0,{passive:!0})}),()=>{if(b0.removeEventListener("pointerdown",Q0,!0),N)b0.removeEventListener("keydown",e),b0.removeEventListener("compositionstart",I0),b0.removeEventListener("compositionend",j1);if(b)b0.removeEventListener("click",J0,!0),b0.removeEventListener("pointerdown",J0,!0),b0.removeEventListener("touchstart",U0,!0),b0.removeEventListener("touchmove",S0,!0),b0.removeEventListener("touchend",H0,!0),b0.removeEventListener("mousedown",J0,!0);_0.forEach((O0)=>{O0.removeEventListener("scroll",R0)}),n.clear()}},[L,K,U,q,N,b,W,_,M,F,m,R,e,X0,J0,P,U0,S0,H0,Q0,Y]),b5.useEffect(w0,[b,w0]);let j0=b5.useMemo(()=>({onKeyDown:e,...A&&{[yb[D]]:(n)=>{Y.setOpen(!1,P0(B0.triggerPress,n.nativeEvent))},...D!=="intentional"&&{onClick(n){Y.setOpen(!1,P0(B0.triggerPress,n.nativeEvent))}}}}),[e,Y,A,D]),r0=F0((n)=>{let R0=f1(n.nativeEvent);if(!t0(Y.select("floatingElement"),R0)||n.button!==0)return;E.current=!0}),n0=b5.useMemo(()=>({onKeyDown:e,onPointerDown:r0,onMouseDown:r0,onMouseUp:r0,onClickCapture:g,onMouseDownCapture:g,onPointerDownCapture:g,onMouseUpCapture:g,onTouchEndCapture:g,onTouchMoveCapture:g}),[e,r0,g]);return b5.useMemo(()=>F?{reference:j0,floating:n0,trigger:j0}:{},[F,j0,n0])}var k2=c(G0(),1);var gb=(J,X,Y)=>{if(X.length===1&&X[0]===Y){let W=!1;try{let K={};if(J(K)===K)W=!0}catch{}if(W){let K=void 0;try{throw Error()}catch(U){({stack:K}=U)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
246
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
247
|
+
This could lead to inefficient memoization and unnecessary re-renders.
|
|
248
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:K})}}},fb=(J,X,Y)=>{let{memoize:W,memoizeOptions:K}=X,{inputSelectorResults:U,inputSelectorResultsCopy:q}=J,_=W(()=>({}),...K);if(_.apply(null,U)!==_.apply(null,q)){let F=void 0;try{throw Error()}catch(N){({stack:F}=N)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
249
|
+
This means your output selector will likely run more frequently than intended.
|
|
250
|
+
Avoid returning a new reference inside your input selector, e.g.
|
|
251
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:Y,firstInputs:U,secondInputs:q,stack:F})}},mb={inputStabilityCheck:"once",identityFunctionCheck:"once"};var FG=Symbol("NOT_FOUND");function db(J,X=`expected a function, instead received ${typeof J}`){if(typeof J!=="function")throw TypeError(X)}function ub(J,X=`expected an object, instead received ${typeof J}`){if(typeof J!=="object")throw TypeError(X)}function pb(J,X="expected all items to be functions, instead received the following types: "){if(!J.every((Y)=>typeof Y==="function")){let Y=J.map((W)=>typeof W==="function"?`function ${W.name||"unnamed"}()`:typeof W).join(", ");throw TypeError(`${X}[${Y}]`)}}var oM=(J)=>{return Array.isArray(J)?J:[J]};function cb(J){let X=Array.isArray(J[0])?J[0]:J;return pb(X,"createSelector expects all input-selectors to be functions, but received the following types: "),X}function nM(J,X){let Y=[],{length:W}=J;for(let K=0;K<W;K++)Y.push(J[K].apply(null,X));return Y}var lb=(J,X)=>{let{identityFunctionCheck:Y,inputStabilityCheck:W}={...mb,...X};return{identityFunctionCheck:{shouldRun:Y==="always"||Y==="once"&&J,run:gb},inputStabilityCheck:{shouldRun:W==="always"||W==="once"&&J,run:fb}}},tM=0,ib=null,wO=class{revision=tM;_value;_lastValue;_isEqual=f_;constructor(J,X=f_){this._value=this._lastValue=J,this._isEqual=X}get value(){return ib?.add(this),this._value}set value(J){if(this.value===J)return;this._value=J,this.revision=++tM}};function f_(J,X){return J===X}function m_(J){if(!(J instanceof wO))console.warn("Not a valid cell! ",J);return J.value}function rb(J,X=f_){return new wO(J,X)}var ab=(J,X)=>!1;function NG(){return rb(null,ab)}var zO=(J)=>{let X=J.collectionTag;if(X===null)X=J.collectionTag=NG();m_(X)};var uu=Symbol(),ZO=0,sb=Object.getPrototypeOf({}),ob=class{constructor(J){this.value=J,this.value=J,this.tag.value=J}proxy=new Proxy(this,AX);tag=NG();tags={};children={};collectionTag=null;id=ZO++},AX={get(J,X){function Y(){let{value:K}=J,U=Reflect.get(K,X);if(typeof X==="symbol")return U;if(X in sb)return U;if(typeof U==="object"&&U!==null){let q=J.children[X];if(q===void 0)q=J.children[X]=eb(U);if(q.tag)m_(q.tag);return q.proxy}else{let q=J.tags[X];if(q===void 0)q=J.tags[X]=NG(),q.value=U;return m_(q),U}}return Y()},ownKeys(J){return zO(J),Reflect.ownKeys(J.value)},getOwnPropertyDescriptor(J,X){return Reflect.getOwnPropertyDescriptor(J.value,X)},has(J,X){return Reflect.has(J.value,X)}},nb=class{constructor(J){this.value=J,this.value=J,this.tag.value=J}proxy=new Proxy([this],tb);tag=NG();tags={};children={};collectionTag=null;id=ZO++},tb={get([J],X){if(X==="length")zO(J);return AX.get(J,X)},ownKeys([J]){return AX.ownKeys(J)},getOwnPropertyDescriptor([J],X){return AX.getOwnPropertyDescriptor(J,X)},has([J],X){return AX.has(J,X)}};function eb(J){if(Array.isArray(J))return new nb(J);return new ob(J)}function wS(J){let X;return{get(Y){if(X&&J(X.key,Y))return X.value;return FG},put(Y,W){X={key:Y,value:W}},getEntries(){return X?[X]:[]},clear(){X=void 0}}}function zS(J,X){let Y=[];function W(_){let L=Y.findIndex((F)=>X(_,F.key));if(L>-1){let F=Y[L];if(L>0)Y.splice(L,1),Y.unshift(F);return F.value}return FG}function K(_,L){if(W(_)===FG){if(Y.unshift({key:_,value:L}),Y.length>J)Y.pop()}}function U(){return Y}function q(){Y=[]}return{get:W,put:K,getEntries:U,clear:q}}var ZS=(J,X)=>J===X;function JS(J){return function(Y,W){if(Y===null||W===null||Y.length!==W.length)return!1;let{length:K}=Y;for(let U=0;U<K;U++)if(!J(Y[U],W[U]))return!1;return!0}}function JO(J,X){let Y=typeof X==="object"?X:{equalityCheck:X},{equalityCheck:W=ZS,maxSize:K=1,resultEqualityCheck:U}=Y,q=JS(W),_=0,L=K<=1?wS(q):zS(K,q);function F(){let N=L.get(arguments);if(N===FG){if(N=J.apply(null,arguments),_++,U){let k=L.getEntries().find((A)=>U(A.value,N));if(k)N=k.value,_!==0&&_--}L.put(arguments,N)}return N}return F.clearCache=()=>{L.clear(),F.resetResultsCount()},F.resultsCount=()=>_,F.resetResultsCount=()=>{_=0},F}var XS=class{constructor(J){this.value=J}deref(){return this.value}},$S=typeof WeakRef<"u"?WeakRef:XS,YS=0,eM=1;function VG(){return{s:YS,v:void 0,o:null,p:null}}function XO(J,X={}){let Y=VG(),{resultEqualityCheck:W}=X,K,U=0;function q(){let _=Y,{length:L}=arguments;for(let V=0,k=L;V<k;V++){let A=arguments[V];if(typeof A==="function"||typeof A==="object"&&A!==null){let D=_.o;if(D===null)_.o=D=new WeakMap;let M=D.get(A);if(M===void 0)_=VG(),D.set(A,_);else _=M}else{let D=_.p;if(D===null)_.p=D=new Map;let M=D.get(A);if(M===void 0)_=VG(),D.set(A,_);else _=M}}let F=_,N;if(_.s===eM)N=_.v;else if(N=J.apply(null,arguments),U++,W){let V=K?.deref?.()??K;if(V!=null&&W(V,N))N=V,U!==0&&U--;K=typeof N==="object"&&N!==null||typeof N==="function"?new $S(N):N}return F.s=eM,F.v=N,N}return q.clearCache=()=>{Y=VG(),q.resetResultsCount()},q.resultsCount=()=>U,q.resetResultsCount=()=>{U=0},q}function d_(J,...X){let Y=typeof J==="function"?{memoize:J,memoizeOptions:X}:J,W=(...K)=>{let U=0,q=0,_,L={},F=K.pop();if(typeof F==="object")L=F,F=K.pop();db(F,`createSelector expects an output function after the inputs, but received: [${typeof F}]`);let N={...Y,...L},{memoize:V,memoizeOptions:k=[],argsMemoize:A=XO,argsMemoizeOptions:D=[],devModeChecks:M={}}=N,h=oM(k),v=oM(D),x=cb(K),I=V(function(){return U++,F.apply(null,arguments)},...h),b=!0,E=A(function(){q++;let R=nM(x,arguments);_=I.apply(null,R);{let{identityFunctionCheck:S,inputStabilityCheck:p}=lb(b,M);if(S.shouldRun)S.run(F,R,_);if(p.shouldRun){let d=nM(x,arguments);p.run({inputSelectorResults:R,inputSelectorResultsCopy:d},{memoize:V,memoizeOptions:h},arguments)}if(b)b=!1}return _},...v);return Object.assign(E,{resultFunc:F,memoizedResultFunc:I,dependencies:x,dependencyRecomputations:()=>q,resetDependencyRecomputations:()=>{q=0},lastResult:()=>_,recomputations:()=>U,resetRecomputations:()=>{U=0},memoize:V,argsMemoize:A})};return Object.assign(W,{withTypes:()=>W}),W}var GS=d_(XO),QS=Object.assign((J,X=GS)=>{ub(J,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof J}`);let Y=Object.keys(J),W=Y.map((U)=>J[U]);return X(W,(...U)=>{return U.reduce((q,_,L)=>{return q[Y[L]]=_,q},{})})},{withTypes:()=>QS});var su=d_({memoize:JO,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),p0=(J,X,Y,W,K,U,...q)=>{if(q.length>0)throw Error("Unsupported number of selectors");let _;if(J&&X&&Y&&W&&K&&U)_=(L,F,N,V)=>{let k=J(L,F,N,V),A=X(L,F,N,V),D=Y(L,F,N,V),M=W(L,F,N,V),h=K(L,F,N,V);return U(k,A,D,M,h,F,N,V)};else if(J&&X&&Y&&W&&K)_=(L,F,N,V)=>{let k=J(L,F,N,V),A=X(L,F,N,V),D=Y(L,F,N,V),M=W(L,F,N,V);return K(k,A,D,M,F,N,V)};else if(J&&X&&Y&&W)_=(L,F,N,V)=>{let k=J(L,F,N,V),A=X(L,F,N,V),D=Y(L,F,N,V);return W(k,A,D,F,N,V)};else if(J&&X&&Y)_=(L,F,N,V)=>{let k=J(L,F,N,V),A=X(L,F,N,V);return Y(k,A,F,N,V)};else if(J&&X)_=(L,F,N,V)=>{let k=J(L,F,N,V);return X(k,F,N,V)};else if(J)_=J;else throw Error("Missing arguments");return _};var YO=c(G0(),1),GO=c(u_(),1),QO=c($O(),1);var US=Fz(19),HS=US?_S:qS;function WO(J,X,Y,W,K){return HS(J,X,Y,W,K)}function _S(J,X,Y,W,K){let U=YO.useCallback(()=>X(J.getSnapshot(),Y,W,K),[J,X,Y,W,K]);return GO.useSyncExternalStore(J.subscribe,U,U)}function qS(J,X,Y,W,K){return QO.useSyncExternalStoreWithSelector(J.subscribe,J.getSnapshot,J.getSnapshot,(U)=>X(U,Y,W,K))}class Rz{constructor(J){this.state=J,this.listeners=new Set,this.updateTick=0}subscribe=(J)=>{return this.listeners.add(J),()=>{this.listeners.delete(J)}};getSnapshot=()=>{return this.state};setState(J){if(this.state===J)return;this.state=J,this.updateTick+=1;let X=this.updateTick;for(let Y of this.listeners){if(X!==this.updateTick)return;Y(J)}}update(J){for(let X in J)if(!Object.is(this.state[X],J[X])){Rz.prototype.setState.call(this,{...this.state,...J});return}}set(J,X){if(!Object.is(this.state[J],X))Rz.prototype.setState.call(this,{...this.state,[J]:X})}notifyAll(){let J={...this.state};Rz.prototype.setState.call(this,J)}}var E6=c(G0(),1);class P6 extends Rz{constructor(J,X={},Y){super(J);this.context=X,this.selectors=Y}controlledValues=new Map;useSyncedValue(J,X){E6.useDebugValue(J),k0(()=>{if(this.state[J]!==X)this.set(J,X)},[J,X])}useSyncedValueWithCleanup(J,X){k0(()=>{if(this.state[J]!==X)this.set(J,X);return()=>{this.set(J,void 0)}},[J,X])}useSyncedValues(J){{E6.useDebugValue(J,(K)=>Object.keys(K));let Y=E6.useRef(Object.keys(J)).current,W=Object.keys(J);if(Y.length!==W.length||Y.some((K,U)=>K!==W[U]))console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.")}let X=Object.values(J);k0(()=>{this.update(J)},X)}useControlledProp(J,X,Y){E6.useDebugValue(J);let W=X!==void 0;{let K=this.controlledValues.get(J);if(K!==void 0&&K!==W)console.error(`A component is changing the ${W?"":"un"}controlled state of ${J.toString()} to be ${W?"un":""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}if(!this.controlledValues.has(J)){if(this.controlledValues.set(J,W),!W&&!Object.is(this.state[J],Y))super.setState({...this.state,[J]:Y})}k0(()=>{if(W&&!Object.is(this.state[J],X))super.setState({...this.state,[J]:X})},[J,X,Y,W])}set(J,X){if(this.controlledValues.get(J)===!0)return;super.set(J,X)}update(J){let X={...J};for(let Y in X){if(!Object.hasOwn(X,Y))continue;if(this.controlledValues.get(Y)===!0){delete X[Y];continue}}super.update(X)}setState(J){let X={...J};for(let Y in X){if(!Object.hasOwn(X,Y))continue;if(this.controlledValues.get(Y)===!0){delete X[Y];continue}}super.setState({...this.state,...X})}select=(J,X,Y,W)=>{let K=this.selectors[J];return K(this.state,X,Y,W)};useState=(J,X,Y,W)=>{E6.useDebugValue(J);let K=this.selectors[J];return WO(this,K,X,Y,W)};useContextCallback(J,X){E6.useDebugValue(J);let Y=F0(X??vY);this.context[J]=Y}useStateSetter(J){let X=E6.useRef(void 0);if(X.current===void 0)X.current=(Y)=>{this.set(J,Y)};return X.current}observe(J,X){let Y;if(typeof J==="function")Y=J;else Y=this.selectors[J];let W=Y(this.state);return X(W,W,this),this.subscribe((K)=>{let U=Y(K);if(!Object.is(W,U)){let q=W;W=U,X(U,q,this)}})}}var kG=c(G0(),1);function KO(){let[,J]=kG.useState({});return kG.useCallback(()=>{J({})},[])}var BS={open:p0((J)=>J.open),domReferenceElement:p0((J)=>J.domReferenceElement),referenceElement:p0((J)=>J.positionReference??J.referenceElement),floatingElement:p0((J)=>J.floatingElement),floatingId:p0((J)=>J.floatingId)};class o7 extends P6{constructor(J){let{nested:X,noEmit:Y,onOpenChange:W,triggerElements:K,...U}=J;super({...U,positionReference:U.referenceElement,domReferenceElement:U.referenceElement},{onOpenChange:W,dataRef:{current:{}},events:YG(),nested:X,noEmit:Y,triggerElements:K},BS)}setOpen=(J,X)=>{if(!J||!this.state.open||aY(X.event))this.context.dataRef.current.openEvent=J?X.event:void 0;if(!this.context.noEmit){let Y={open:J,reason:X.reason,nativeEvent:X.event,nested:this.context.nested,triggerElement:X.trigger};this.context.events.emit("openchange",Y)}this.context.onOpenChange?.(J,X)}}var AG=c(G0(),1);function p_(J,X){let Y=AG.useRef(null);return AG.useCallback((W)=>{if(J===void 0)return;if(Y.current!==null)X.context.triggerElements.delete(Y.current),Y.current=null;if(W!==null)Y.current=J,X.context.triggerElements.add(J,W)},[X,J])}function gz(J,X,Y,W){let K=Y.useState("isMountedByTrigger",J),U=p_(J,Y),q=F0((_)=>{if(U(_),_!==null&&Y.select("open")&&Y.select("activeTriggerId")==null)Y.update({activeTriggerId:J,activeTriggerElement:_,...W})});return k0(()=>{if(K)Y.update({activeTriggerElement:X.current,...W})},[K,Y,X,...Object.values(W)]),{registerTrigger:q,isMountedByThisTrigger:K}}function fz(J){let X=J.useState("open");k0(()=>{if(X&&!J.select("activeTriggerId")&&J.context.triggerElements.size===1){let Y=J.context.triggerElements.entries().next();if(!Y.done){let[W,K]=Y.value;J.update({activeTriggerId:W,activeTriggerElement:K})}}},[X,J])}function mz(J,X,Y){let{mounted:W,setMounted:K,transitionStatus:U}=Az(J);X.useSyncedValues({mounted:W,transitionStatus:U});let q=F0(()=>{K(!1),X.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),Y?.(),X.context.onOpenChangeComplete?.(!1)}),_=X.useState("preventUnmountingOnClose");return P5({enabled:!_,open:J,ref:X.context.popupRef,onComplete(){if(!J)q()}}),{forceUnmount:q,transitionStatus:U}}class Z8{constructor(){this.elements=new Set,this.idMap=new Map}add(J,X){let Y=this.idMap.get(J);if(Y===X)return;if(Y!==void 0)this.elements.delete(Y);if(this.elements.add(X),this.idMap.set(J,X),this.elements.size!==this.idMap.size)throw Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.")}delete(J){let X=this.idMap.get(J);if(X)this.elements.delete(X),this.idMap.delete(J)}hasElement(J){return this.elements.has(J)}hasMatchingElement(J){for(let X of this.elements)if(J(X))return!0;return!1}getById(J){return this.idMap.get(J)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}}function UO(){return new o7({open:!1,floatingElement:null,referenceElement:null,triggerElements:new Z8,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function dz(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:UO(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:v1,inactiveTriggerProps:v1,popupProps:v1}}var uz={open:p0((J)=>J.open),mounted:p0((J)=>J.mounted),transitionStatus:p0((J)=>J.transitionStatus),floatingRootContext:p0((J)=>J.floatingRootContext),preventUnmountingOnClose:p0((J)=>J.preventUnmountingOnClose),payload:p0((J)=>J.payload),activeTriggerId:p0((J)=>J.activeTriggerId),activeTriggerElement:p0((J)=>J.mounted?J.activeTriggerElement:null),isTriggerActive:p0((J,X)=>X!==void 0&&J.activeTriggerId===X),isOpenedByTrigger:p0((J,X)=>X!==void 0&&J.activeTriggerId===X&&J.open),isMountedByTrigger:p0((J,X)=>X!==void 0&&J.activeTriggerId===X&&J.mounted),triggerProps:p0((J,X)=>X?J.activeTriggerProps:J.inactiveTriggerProps),popupProps:p0((J)=>J.popupProps),popupElement:p0((J)=>J.popupElement),positionerElement:p0((J)=>J.positionerElement)};function HO(J){let{open:X=!1,onOpenChange:Y,elements:W={}}=J,K=J2(),U=tw()!=null;{let _=W.reference;if(_&&!L1(_))console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`","instead.")}let q=r1(()=>new o7({open:X,onOpenChange:Y,referenceElement:W.reference??null,floatingElement:W.floating??null,triggerElements:W.triggers??new Z8,floatingId:K,nested:U,noEmit:J.noEmit||!1})).current;return k0(()=>{let _={open:X,floatingId:K};if(W.reference!==void 0)_.referenceElement=W.reference,_.domReferenceElement=L1(W.reference)?W.reference:null;if(W.floating!==void 0)_.floatingElement=W.floating;q.update(_)},[X,K,W.reference,W.floating,q]),q.context.onOpenChange=Y,q.context.nested=U,q.context.noEmit=J.noEmit||!1,q}function c_(J={}){let{nodeId:X,externalTree:Y}=J,W=HO(J),K=J.rootContext||W,U={reference:K.useState("referenceElement"),floating:K.useState("floatingElement"),domReference:K.useState("domReferenceElement")},[q,_]=k2.useState(null),L=k2.useRef(null),F=$2(Y);k0(()=>{if(U.domReference)L.current=U.domReference},[U.domReference]);let N=sM({...J,elements:{...U,...q&&{reference:q}}}),V=k2.useCallback((R)=>{let S=L1(R)?{getBoundingClientRect:()=>R.getBoundingClientRect(),getClientRects:()=>R.getClientRects(),contextElement:R}:R;_(S),N.refs.setReference(S)},[N.refs]),[k,A]=k2.useState(null),[D,M]=k2.useState(null);K.useSyncedValue("referenceElement",k),K.useSyncedValue("domReferenceElement",L1(k)?k:null),K.useSyncedValue("floatingElement",D);let h=k2.useCallback((R)=>{if(L1(R)||R===null)L.current=R,A(R);if(L1(N.refs.reference.current)||N.refs.reference.current===null||R!==null&&!L1(R))N.refs.setReference(R)},[N.refs,A]),v=k2.useCallback((R)=>{M(R),N.refs.setFloating(R)},[N.refs]),x=k2.useMemo(()=>({...N.refs,setReference:h,setFloating:v,setPositionReference:V,domReference:L}),[N.refs,h,v,V]),I=k2.useMemo(()=>({...N.elements,domReference:U.domReference}),[N.elements,U.domReference]),b=K.useState("open"),E=K.useState("floatingId"),m=k2.useMemo(()=>({...N,dataRef:K.context.dataRef,open:b,onOpenChange:K.setOpen,events:K.context.events,floatingId:E,refs:x,elements:I,nodeId:X,rootStore:K}),[N,x,I,X,K,b,E]);return k0(()=>{K.context.dataRef.current.floatingContext=m;let R=F?.nodesRef.current.find((S)=>S.id===X);if(R)R.context=m}),k2.useMemo(()=>({...N,context:m,refs:x,elements:I,rootStore:K}),[N,x,I,m,K])}function n7(J){let{popupStore:X,noEmit:Y=!1,treatPopupAsFloatingElement:W=!1,onOpenChange:K}=J,U=J2(),q=tw()!=null,_=X.useState("open"),L=X.useState("activeTriggerElement"),F=X.useState(W?"popupElement":"positionerElement"),N=X.context.triggerElements,V=r1(()=>new o7({open:_,referenceElement:L,floatingElement:F,triggerElements:N,onOpenChange:K,floatingId:U,nested:q,noEmit:Y})).current;return k0(()=>{let k={open:_,floatingId:U,referenceElement:L,floatingElement:F};if(L1(L))k.domReferenceElement=L;V.update(k)},[_,U,L,F,V]),V.context.onOpenChange=K,V.context.nested=q,V.context.noEmit=Y,V}var I6=c(G0(),1);var l_=Pj&&pY;function jX(J,X={}){let Y="rootStore"in J?J.rootStore:J,{events:W,dataRef:K}=Y.context,{enabled:U=!0,visibleOnly:q=!0}=X,_=I6.useRef(!1),L=a1(),F=I6.useRef(!0);I6.useEffect(()=>{let V=Y.select("domReferenceElement");if(!U)return;let k=u1(V);function A(){if(!Y.select("open")&&O1(V)&&V===X2(C1(V)))_.current=!0}function D(){F.current=!0}function M(){F.current=!1}if(k.addEventListener("blur",A),l_)k.addEventListener("keydown",D,!0),k.addEventListener("pointerdown",M,!0);return()=>{if(k.removeEventListener("blur",A),l_)k.removeEventListener("keydown",D,!0),k.removeEventListener("pointerdown",M,!0)}},[Y,U]),I6.useEffect(()=>{if(!U)return;function V(k){if(k.reason===B0.triggerPress||k.reason===B0.escapeKey)_.current=!0}return W.on("openchange",V),()=>{W.off("openchange",V)}},[W,U]);let N=I6.useMemo(()=>({onMouseLeave(){_.current=!1},onFocus(V){if(_.current)return;let k=f1(V.nativeEvent);if(q&&L1(k)){if(l_&&!V.relatedTarget){if(!F.current&&!XX(k))return}else if(!bj(k))return}Y.setOpen(!0,P0(B0.triggerFocus,V.nativeEvent,V.currentTarget))},onBlur(V){_.current=!1;let{relatedTarget:k,nativeEvent:A}=V,D=L1(k)&&k.hasAttribute(J5("focus-guard"))&&k.getAttribute("data-type")==="outside";L.start(0,()=>{let M=Y.select("domReferenceElement"),h=X2(M?M.ownerDocument:document);if(!k&&h===M)return;if(t0(K.current.floatingContext?.refs.floating.current,h)||t0(M,h)||D)return;if(Y.context.triggerElements.hasElement(V.relatedTarget))return;Y.setOpen(!1,P0(B0.triggerFocus,A))})}}),[K,Y,q,L]);return I6.useMemo(()=>U?{reference:N,trigger:N}:{},[U,N])}var pz=c(G0(),1);var J8=c(G0(),1);var MX=J5("safe-polygon"),LS=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${Oz}`;function _O(J){return J?Boolean(J.closest(LS)):!1}function jG(J){let X=J8.useRef(void 0),Y=J8.useRef(!1),W=J8.useRef(void 0),K=J8.useRef(!0),U=J8.useRef(!1),q=J8.useRef(()=>{}),_=J8.useRef(!1),L=a1(),F=a1(),N=J8.useRef(void 0);return J8.useMemo(()=>{let V=J.context.dataRef.current;if(!V.hoverInteractionState)V.hoverInteractionState={pointerTypeRef:X,interactedInsideRef:Y,handlerRef:W,blockMouseMoveRef:K,performedPointerEventsMutationRef:U,unbindMouseMoveRef:q,restTimeoutPendingRef:_,openChangeTimeout:L,restTimeout:F,handleCloseOptionsRef:N};return V.hoverInteractionState},[J,X,Y,W,K,U,q,_,L,F,N])}var VS=new Set(["click","mousedown"]);function OX(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingElement"),U=Y.useState("domReferenceElement"),{dataRef:q}=Y.context,{enabled:_=!0,closeDelay:L=0,externalTree:F}=X,{pointerTypeRef:N,interactedInsideRef:V,handlerRef:k,performedPointerEventsMutationRef:A,unbindMouseMoveRef:D,restTimeoutPendingRef:M,openChangeTimeout:h,handleCloseOptionsRef:v}=jG(Y),x=$2(F),I=tw(),b=F0(()=>{if(V.current)return!0;return q.current.openEvent?VS.has(q.current.openEvent.type):!1}),E=F0(()=>{let d=q.current.openEvent?.type;return d?.includes("mouse")&&d!=="mousedown"}),m=pz.useCallback((d,w0=!0)=>{let t=FS(L,N.current);if(t&&!k.current)h.start(t,()=>Y.setOpen(!1,P0(B0.triggerHover,d)));else if(w0)h.clear(),Y.setOpen(!1,P0(B0.triggerHover,d))},[L,k,Y,N,h]),R=F0(()=>{D.current(),k.current=void 0}),S=F0(()=>{if(A.current){let d=C1(K).body;d.style.pointerEvents="",d.removeAttribute(MX),A.current=!1}}),p=F0((d)=>{let w0=f1(d);if(!_O(w0)){V.current=!1;return}V.current=!0});k0(()=>{if(!W)N.current=void 0,M.current=!1,V.current=!1,R(),S()},[W,N,M,V,R,S]),pz.useEffect(()=>{return()=>{R()}},[R]),pz.useEffect(()=>{return S},[S]),k0(()=>{if(!_)return;if(W&&v.current?.blockPointerEvents&&E()&&L1(U)&&K){A.current=!0;let d=C1(K).body;d.setAttribute(MX,"");let w0=U,t=K,u=x?.nodesRef.current.find((Q0)=>Q0.id===I)?.context?.elements.floating;if(u)u.style.pointerEvents="";return d.style.pointerEvents="none",w0.style.pointerEvents="auto",t.style.pointerEvents="auto",()=>{d.style.pointerEvents="",w0.style.pointerEvents="",t.style.pointerEvents=""}}return},[_,W,U,K,v,E,x,I,A]),pz.useEffect(()=>{if(!_)return;function d(Q0){if(b()||!q.current.floatingContext||!Y.select("open"))return;let r=Y.context.triggerElements;if(Q0.relatedTarget&&r.hasElement(Q0.relatedTarget))return;if(S(),R(),!b())m(Q0)}function w0(Q0){h.clear(),S(),k.current?.(Q0),R()}function t(Q0){if(!b())m(Q0,!1)}let u=K;if(u)u.addEventListener("mouseleave",d),u.addEventListener("mouseenter",w0),u.addEventListener("mouseleave",t),u.addEventListener("pointerdown",p,!0);return()=>{if(u)u.removeEventListener("mouseleave",d),u.removeEventListener("mouseenter",w0),u.removeEventListener("mouseleave",t),u.removeEventListener("pointerdown",p,!0)}})}function FS(J,X){if(X&&!E5(X))return 0;if(typeof J==="function")return J();return J}var t7=c(G0(),1),qO=c(m8(),1);function i_(J){if(typeof J==="function")return J();return J}var NS={current:null};function e7(J,X={}){let Y="rootStore"in J?J.rootStore:J,{dataRef:W,events:K}=Y.context,{enabled:U=!0,delay:q=0,handleClose:_=null,mouseOnly:L=!1,restMs:F=0,move:N=!0,triggerElementRef:V=NS,externalTree:k,isActiveTrigger:A=!0}=X,D=$2(k),{pointerTypeRef:M,interactedInsideRef:h,handlerRef:v,blockMouseMoveRef:x,performedPointerEventsMutationRef:I,unbindMouseMoveRef:b,restTimeoutPendingRef:E,openChangeTimeout:m,restTimeout:R,handleCloseOptionsRef:S}=jG(Y),p=Kw(_),d=Kw(q),w0=Kw(F);if(A)S.current=p.current?.__options;let t=F0(()=>{if(h.current)return!0;return W.current.openEvent?["click","mousedown"].includes(W.current.openEvent.type):!1}),u=t7.useCallback((o,g=!0)=>{let X0=Pz(d.current,"close",M.current);if(X0&&!v.current)m.start(X0,()=>Y.setOpen(!1,P0(B0.triggerHover,o)));else if(g)m.clear(),Y.setOpen(!1,P0(B0.triggerHover,o))},[d,v,Y,M,m]),Q0=F0(()=>{b.current(),v.current=void 0}),r=F0(()=>{if(I.current){let o=C1(Y.select("domReferenceElement")).body;o.style.pointerEvents="",o.removeAttribute(MX),I.current=!1}});t7.useEffect(()=>{if(!U)return;function o(g){if(!g.open)m.clear(),R.clear(),x.current=!0,E.current=!1}return K.on("openchange",o),()=>{K.off("openchange",o)}},[U,K,m,R,x,E]);let e=F0((o)=>{if(t())return;if(!W.current.floatingContext)return;let g=Y.context.triggerElements;if(o.relatedTarget&&g.hasElement(o.relatedTarget))return;let X0=V.current;p.current?.({...W.current.floatingContext,tree:D,x:o.clientX,y:o.clientY,onClose(){if(r(),Q0(),!t()&&X0===Y.select("domReferenceElement"))u(o)}})(o)});return t7.useEffect(()=>{if(!U)return;let o=V.current??(A?Y.select("domReferenceElement"):null);if(!L1(o))return;function g(z0){if(m.clear(),x.current=!1,L&&!E5(M.current))return;if(i_(w0.current)>0&&!Pz(d.current,"open"))return;let U0=Pz(d.current,"open",M.current),J0=Y.select("domReferenceElement"),L0=Y.context.triggerElements,S0=(L0.hasElement(z0.target)||L0.hasMatchingElement((j0)=>t0(j0,z0.target)))&&(!J0||!t0(J0,z0.target)),V0=z0.currentTarget??null,H0=!Y.select("open")||S0;if(U0)m.start(U0,()=>{if(H0)Y.setOpen(!0,P0(B0.triggerHover,z0,V0))});else if(H0)Y.setOpen(!0,P0(B0.triggerHover,z0,V0))}function X0(z0){if(t()){r();return}b.current();let U0=Y.select("domReferenceElement"),J0=C1(U0);R.clear(),E.current=!1;let L0=Y.context.triggerElements;if(z0.relatedTarget&&L0.hasElement(z0.relatedTarget))return;if(p.current&&W.current.floatingContext){if(!Y.select("open"))m.clear();let V0=V.current;v.current=p.current({...W.current.floatingContext,tree:D,x:z0.clientX,y:z0.clientY,onClose(){if(r(),Q0(),!t()&&V0===Y.select("domReferenceElement"))u(z0,!0)}});let H0=v.current;H0(z0),J0.addEventListener("mousemove",H0),b.current=()=>{J0.removeEventListener("mousemove",H0)};return}if(M.current==="touch"?!t0(Y.select("floatingElement"),z0.relatedTarget):!0)u(z0)}function P(z0){e(z0)}if(Y.select("open"))o.addEventListener("mouseleave",P);if(N)o.addEventListener("mousemove",g,{once:!0});return o.addEventListener("mouseenter",g),o.addEventListener("mouseleave",X0),()=>{if(o.removeEventListener("mouseleave",P),N)o.removeEventListener("mousemove",g);o.removeEventListener("mouseenter",g),o.removeEventListener("mouseleave",X0)}},[Q0,r,x,W,d,u,Y,U,p,e,A,t,L,N,M,w0,R,E,m,V,D,b,v]),t7.useMemo(()=>{function o(g){M.current=g.pointerType}return{onPointerDown:o,onPointerEnter:o,onMouseMove(g){let{nativeEvent:X0}=g,P=g.currentTarget,z0=Y.select("domReferenceElement"),U0=Y.context.triggerElements,J0=Y.select("open"),L0=(U0.hasElement(g.target)||U0.hasMatchingElement((V0)=>t0(V0,g.target)))&&(!z0||!t0(z0,g.target));if(L&&!E5(M.current))return;if(J0&&!L0||i_(w0.current)===0)return;if(!L0&&E.current&&g.movementX**2+g.movementY**2<2)return;R.clear();function S0(){if(!x.current&&(!J0||L0))Y.setOpen(!0,P0(B0.triggerHover,X0,P))}if(M.current==="touch")qO.flushSync(()=>{S0()});else if(L0&&J0)S0();else E.current=!0,R.start(i_(w0.current),S0)}}},[x,L,Y,M,w0,R,E])}var w9=c(G0(),1);function $5(J=[]){let X=J.map((F)=>F?.reference),Y=J.map((F)=>F?.floating),W=J.map((F)=>F?.item),K=J.map((F)=>F?.trigger),U=w9.useCallback((F)=>MG(F,J,"reference"),X),q=w9.useCallback((F)=>MG(F,J,"floating"),Y),_=w9.useCallback((F)=>MG(F,J,"item"),W),L=w9.useCallback((F)=>MG(F,J,"trigger"),K);return w9.useMemo(()=>({getReferenceProps:U,getFloatingProps:q,getItemProps:_,getTriggerProps:L}),[U,q,_,L])}function MG(J,X,Y){let W=new Map,K=Y==="item",U={};if(Y==="floating")U.tabIndex=-1,U[ZX]="";for(let q in J){if(K&&J){if(q===Z_||q===J_)continue}U[q]=J[q]}for(let q=0;q<X.length;q+=1){let _,L=X[q]?.[Y];if(typeof L==="function")_=J?L(J):null;else _=L;if(!_)continue;BO(U,_,K,W)}return BO(U,J,K,W),U}function BO(J,X,Y,W){for(let K in X){let U=X[K];if(Y&&(K===Z_||K===J_))continue;if(!K.startsWith("on"))J[K]=U;else{if(!W.has(K))W.set(K,[]);if(typeof U==="function")W.get(K)?.push(U),J[K]=(...q)=>{return W.get(K)?.map((_)=>_(...q)).find((_)=>_!==void 0)}}}}var Sw=c(G0(),1);var kS="Escape";function DG(J,X,Y){switch(J){case"vertical":return X;case"horizontal":return Y;default:return X||Y}}function OG(J,X){return DG(X,J===JX||J===R7,J===u8||J===p8)}function r_(J,X,Y){return DG(X,J===R7,Y?J===u8:J===p8)||J==="Enter"||J===" "||J===""}function AS(J,X,Y){return DG(X,Y?J===u8:J===p8,J===R7)}function jS(J,X,Y,W){let K=Y?J===p8:J===u8,U=J===JX;if(X==="both"||X==="horizontal"&&W&&W>1)return J===kS;return DG(X,K,U)}function a_(J,X){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingElement"),U=Y.useState("domReferenceElement"),q=Y.context.dataRef,{listRef:_,activeIndex:L,onNavigate:F=()=>{},enabled:N=!0,selectedIndex:V=null,allowEscape:k=!1,loopFocus:A=!1,nested:D=!1,rtl:M=!1,virtual:h=!1,focusItemOnOpen:v="auto",focusItemOnHover:x=!0,openOnArrowKeyDown:I=!0,disabledIndices:b=void 0,orientation:E="vertical",parentOrientation:m,cols:R=1,scrollItemIntoView:S=!0,itemSizes:p,dense:d=!1,id:w0,resetOnPointerLeave:t=!0,externalTree:u}=X;if(k){if(!A)console.warn("`useListNavigation` looping must be enabled to allow escaping.");if(!h)console.warn("`useListNavigation` must be virtual to allow escaping.")}if(E==="vertical"&&R>1)console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should",'be either "horizontal" or "both".');let Q0=g7(K),r=Kw(Q0),e=tw(),o=$2(u);k0(()=>{q.current.orientation=E},[q,E]);let g=$X(U),X0=Sw.useRef(v),P=Sw.useRef(V??-1),z0=Sw.useRef(null),U0=Sw.useRef(!0),J0=F0((x0)=>{F(P.current===-1?null:P.current,x0)}),L0=Sw.useRef(J0),S0=Sw.useRef(!!K),V0=Sw.useRef(W),H0=Sw.useRef(!1),j0=Sw.useRef(!1),r0=Kw(b),n0=Kw(W),n=Kw(S),R0=Kw(V),I0=Kw(t),j1=F0(()=>{function x0(D1){if(h)o?.events.emit("virtualfocus",D1);else Iz(D1,{sync:H0.current,preventScroll:!0})}let l0=_.current[P.current],y0=j0.current;if(l0)x0(l0);(H0.current?(D1)=>D1():requestAnimationFrame)(()=>{let D1=_.current[P.current]||l0;if(!D1)return;if(!l0)x0(D1);let W1=n.current;if(W1&&_0&&(y0||!U0.current))D1.scrollIntoView?.(typeof W1==="boolean"?{block:"nearest",inline:"nearest"}:W1)})});k0(()=>{if(!N)return;if(W&&K){if(P.current=V??-1,X0.current&&V!=null)j0.current=!0,J0()}else if(S0.current)P.current=-1,L0.current()},[N,W,K,V,J0]),k0(()=>{if(!N)return;if(!W){H0.current=!1;return}if(!K)return;if(L==null){if(H0.current=!1,R0.current!=null)return;if(S0.current)P.current=-1,j1();if((!V0.current||!S0.current)&&X0.current&&(z0.current!=null||X0.current===!0&&z0.current==null)){let x0=0,l0=()=>{if(_.current[0]==null){if(x0<2)(x0?requestAnimationFrame:queueMicrotask)(l0);x0+=1}else P.current=z0.current==null||r_(z0.current,E,M)||D?m7(_):Dz(_),z0.current=null,J0()};l0()}}else if(!x6(_,L))P.current=L,j1(),j0.current=!1},[N,W,K,L,R0,D,_,E,M,J0,j1,r0]),k0(()=>{if(!N||K||!o||h||!S0.current)return;let x0=o.nodesRef.current,l0=x0.find((D1)=>D1.id===e)?.context?.elements.floating,y0=X2(C1(K)),q1=x0.some((D1)=>D1.context&&t0(D1.context.elements.floating,y0));if(l0&&!q1&&U0.current)l0.focus({preventScroll:!0})},[N,K,o,e,h]),k0(()=>{L0.current=J0,V0.current=W,S0.current=!!K}),k0(()=>{if(!W)z0.current=null,X0.current=v},[W,v]);let b0=L!=null,_0=Sw.useMemo(()=>{function x0(y0){if(!n0.current)return;let q1=_.current.indexOf(y0.currentTarget);if(q1!==-1&&P.current!==q1)P.current=q1,J0(y0)}return{onFocus(y0){H0.current=!0,x0(y0)},onClick:({currentTarget:y0})=>y0.focus({preventScroll:!0}),onMouseMove(y0){if(H0.current=!0,j0.current=!1,x)x0(y0)},onPointerLeave(y0){if(!n0.current||!U0.current||y0.pointerType==="touch")return;H0.current=!0;let q1=y0.relatedTarget;if(!x||_.current.includes(q1))return;if(!I0.current)return;if(P.current=-1,J0(y0),!h)r.current?.focus({preventScroll:!0})}}},[n0,r,x,_,J0,I0,h]),O0=Sw.useCallback(()=>{return m??o?.nodesRef.current.find((x0)=>x0.id===e)?.context?.dataRef?.current.orientation},[e,o,m]),A0=F0((x0)=>{if(U0.current=!1,H0.current=!0,x0.which===229)return;if(!n0.current&&x0.currentTarget===r.current)return;if(D&&jS(x0.key,E,M,R)){if(!OG(x0.key,O0()))Xw(x0);if(Y.setOpen(!1,P0(B0.listNavigation,x0.nativeEvent)),O1(U))if(h)o?.events.emit("virtualfocus",U);else U.focus();return}let l0=P.current,y0=m7(_,b),q1=Dz(_,b);if(!g){if(x0.key==="Home")Xw(x0),P.current=y0,J0(x0);if(x0.key==="End")Xw(x0),P.current=q1,J0(x0)}if(R>1){let D1=p||Array.from({length:_.current.length},()=>({width:1,height:1})),W1=UX(D1,R,d),Gw=W1.findIndex((Uw)=>Uw!=null&&!z8(_,Uw,b)),zw=W1.reduce((Uw,hw,J1)=>hw!=null&&!z8(_,hw,b)?J1:Uw,-1),Lw=W1[KX({current:W1.map((Uw)=>Uw!=null?_.current[Uw]:null)},{event:x0,orientation:E,loopFocus:A,rtl:M,cols:R,disabledIndices:_X([...(typeof b!=="function"?b:null)||_.current.map((Uw,hw)=>z8(_,hw,b)?hw:void 0),void 0],W1),minIndex:Gw,maxIndex:zw,prevIndex:HX(P.current>q1?y0:P.current,D1,W1,R,x0.key===R7?"bl":x0.key===(M?u8:p8)?"tr":"tl"),stopEvent:!0})];if(Lw!=null)P.current=Lw,J0(x0);if(E==="both")return}if(OG(x0.key,E)){if(Xw(x0),W&&!h&&X2(x0.currentTarget.ownerDocument)===x0.currentTarget){P.current=r_(x0.key,E,M)?y0:q1,J0(x0);return}if(r_(x0.key,E,M))if(A)if(l0>=q1)if(k&&l0!==_.current.length)P.current=-1;else H0.current=!1,P.current=y0;else P.current=Ow(_,{startingIndex:l0,disabledIndices:b});else P.current=Math.min(q1,Ow(_,{startingIndex:l0,disabledIndices:b}));else if(A)if(l0<=y0)if(k&&l0!==-1)P.current=_.current.length;else H0.current=!1,P.current=q1;else P.current=Ow(_,{startingIndex:l0,decrement:!0,disabledIndices:b});else P.current=Math.max(y0,Ow(_,{startingIndex:l0,decrement:!0,disabledIndices:b}));if(x6(_,P.current))P.current=-1;J0(x0)}}),c0=Sw.useMemo(()=>{return h&&W&&b0&&{"aria-activedescendant":`${w0}-${L}`}},[h,W,b0,w0,L]),C0=Sw.useMemo(()=>{return{"aria-orientation":E==="both"?void 0:E,...!g?c0:{},onKeyDown(x0){if(x0.key==="Tab"&&x0.shiftKey&&W&&!h){let l0=f1(x0.nativeEvent);if(l0&&!t0(r.current,l0))return;if(Xw(x0),Y.setOpen(!1,P0(B0.focusOut,x0.nativeEvent)),O1(U))U.focus();return}A0(x0)},onPointerMove(){U0.current=!0}}},[c0,A0,r,E,g,Y,W,h,U]),E0=Sw.useMemo(()=>{function x0(y0){if(v==="auto"&&iY(y0.nativeEvent))X0.current=!h}function l0(y0){if(X0.current=v,v==="auto"&&rY(y0.nativeEvent))X0.current=!0}return{onKeyDown(y0){let q1=Y.select("open");U0.current=!1;let D1=y0.key.startsWith("Arrow"),W1=AS(y0.key,O0(),M),Gw=OG(y0.key,E),zw=(D?W1:Gw)||y0.key==="Enter"||y0.key.trim()==="";if(h&&q1)return A0(y0);if(!q1&&!I&&D1)return;if(zw){let Lw=OG(y0.key,O0());z0.current=D&&Lw?null:y0.key}if(D){if(W1)if(Xw(y0),q1)P.current=m7(_,r0.current),J0(y0);else Y.setOpen(!0,P0(B0.listNavigation,y0.nativeEvent,y0.currentTarget));return}if(Gw){if(R0.current!=null)P.current=R0.current;if(Xw(y0),!q1&&I)Y.setOpen(!0,P0(B0.listNavigation,y0.nativeEvent,y0.currentTarget));else A0(y0);if(q1)J0(y0)}return},onFocus(y0){if(Y.select("open")&&!h)P.current=-1,J0(y0)},onPointerDown:l0,onPointerEnter:l0,onMouseDown:x0,onClick:x0}},[A0,r0,v,_,D,J0,Y,I,E,O0,M,R0,h]),o0=Sw.useMemo(()=>{return{...c0,...E0}},[c0,E0]);return Sw.useMemo(()=>N?{reference:o0,floating:C0,item:_0,trigger:E0}:{},[N,o0,C0,E0,_0])}var R4=c(G0(),1);var MS=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function DX(J,X={}){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.useState("floatingId"),U=Y.useState("domReferenceElement"),q=Y.useState("floatingElement"),{enabled:_=!0,role:L="dialog"}=X,F=J2(),N=U?.id||F,V=R4.useMemo(()=>g7(q)?.id||K,[q,K]),k=MS.get(L)??L,D=tw()!=null,M=R4.useMemo(()=>{if(k==="tooltip"||L==="label")return v1;return{"aria-haspopup":k==="alertdialog"?"dialog":k,"aria-expanded":"false",...k==="listbox"&&{role:"combobox"},...k==="menu"&&D&&{role:"menuitem"},...L==="select"&&{"aria-autocomplete":"none"},...L==="combobox"&&{"aria-autocomplete":"list"}}},[k,D,L]),h=R4.useMemo(()=>{if(k==="tooltip"||L==="label")return{[`aria-${L==="label"?"labelledby":"describedby"}`]:W?V:void 0};return{...M,"aria-expanded":W?"true":"false","aria-controls":W?V:void 0,...k==="menu"&&{id:N}}},[k,V,W,N,L,M]),v=R4.useMemo(()=>{let I={id:V,...k&&{role:k}};if(k==="tooltip"||L==="label")return I;return{...I,...k==="menu"&&{"aria-labelledby":N}}},[k,V,N,L]),x=R4.useCallback(({active:I,selected:b})=>{let E={role:"option",...I&&{id:`${V}-fui-option`}};switch(L){case"select":case"combobox":return{...E,"aria-selected":b};default:}return{}},[V,L]);return R4.useMemo(()=>_?{reference:h,floating:v,item:x,trigger:M}:{},[_,h,v,M,x])}var g4=c(G0(),1);function s_(J,X){let Y="rootStore"in J?J.rootStore:J,W=Y.useState("open"),K=Y.context.dataRef,{listRef:U,activeIndex:q,onMatch:_,onTypingChange:L,enabled:F=!0,findMatch:N=null,resetMs:V=750,ignoreKeys:k=t2,selectedIndex:A=null}=X,D=a1(),M=g4.useRef(""),h=g4.useRef(A??q??-1),v=g4.useRef(null);k0(()=>{if(W)D.clear(),v.current=null,M.current=""},[W,D]),k0(()=>{if(W&&M.current==="")h.current=A??q??-1},[W,A,q]);let x=F0((m)=>{if(m){if(!K.current.typing)K.current.typing=m,L?.(m)}else if(K.current.typing)K.current.typing=m,L?.(m)}),I=F0((m)=>{function R(t,u,Q0){let r=N?N(u,Q0):u.find((e)=>e?.toLocaleLowerCase().indexOf(Q0.toLocaleLowerCase())===0);return r?t.indexOf(r):-1}let S=U.current;if(M.current.length>0&&M.current[0]!==" "){if(R(S,S,M.current)===-1)x(!1);else if(m.key===" ")Xw(m)}if(S==null||k.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;if(W&&m.key!==" ")Xw(m),x(!0);if(S.every((t)=>t?t[0]?.toLocaleLowerCase()!==t[1]?.toLocaleLowerCase():!0)&&M.current===m.key)M.current="",h.current=v.current;M.current+=m.key,D.start(V,()=>{M.current="",h.current=v.current,x(!1)});let d=h.current,w0=R(S,[...S.slice((d||0)+1),...S.slice(0,(d||0)+1)],M.current);if(w0!==-1)_?.(w0),v.current=w0;else if(m.key!==" ")M.current="",x(!1)}),b=g4.useMemo(()=>({onKeyDown:I}),[I]),E=g4.useMemo(()=>{return{onKeyDown:I,onKeyUp(m){if(m.key===" ")x(!1)}}},[I,x]);return g4.useMemo(()=>F?{reference:b,floating:E}:{},[F,b,E])}function LO(J,X){let[Y,W]=J,K=!1,U=X.length;for(let q=0,_=U-1;q<U;_=q++){let[L,F]=X[q]||[0,0],[N,V]=X[_]||[0,0];if(F>=W!==V>=W&&Y<=(N-L)*(W-F)/(V-F)+L)K=!K}return K}function OS(J,X){return J[0]>=X.x&&J[0]<=X.x+X.width&&J[1]>=X.y&&J[1]<=X.y+X.height}function z9(J={}){let{buffer:X=0.5,blockPointerEvents:Y=!1,requireIntent:W=!0}=J,K=new I5,U=!1,q=null,_=null,L=typeof performance<"u"?performance.now():0;function F(V,k){let A=performance.now(),D=A-L;if(q===null||_===null||D===0)return q=V,_=k,L=A,null;let M=V-q,h=k-_,x=Math.sqrt(M*M+h*h)/D;return q=V,_=k,L=A,x}let N=({x:V,y:k,placement:A,elements:D,onClose:M,nodeId:h,tree:v})=>{return function(I){function b(){K.clear(),M()}if(K.clear(),!D.domReference||!D.floating||A==null||V==null||k==null)return;let{clientX:E,clientY:m}=I,R=[E,m],S=f1(I),p=I.type==="mouseleave",d=t0(D.floating,S),w0=t0(D.domReference,S),t=D.domReference.getBoundingClientRect(),u=D.floating.getBoundingClientRect(),Q0=A.split("-")[0],r=V>u.right-u.width/2,e=k>u.bottom-u.height/2,o=OS(R,t),g=u.width>t.width,X0=u.height>t.height,P=(g?t:u).left,z0=(g?t:u).right,U0=(X0?t:u).top,J0=(X0?t:u).bottom;if(d){if(U=!0,!p)return}if(w0)U=!1;if(w0&&!p){U=!0;return}if(p&&L1(I.relatedTarget)&&t0(D.floating,I.relatedTarget))return;if(v&&c8(v.nodesRef.current,h).some(({context:V0})=>V0?.open))return;if(Q0==="top"&&k>=t.bottom-1||Q0==="bottom"&&k<=t.top+1||Q0==="left"&&V>=t.right-1||Q0==="right"&&V<=t.left+1)return b();let L0=[];switch(Q0){case"top":L0=[[P,t.top+1],[P,u.bottom-1],[z0,u.bottom-1],[z0,t.top+1]];break;case"bottom":L0=[[P,u.top+1],[P,t.bottom-1],[z0,t.bottom-1],[z0,u.top+1]];break;case"left":L0=[[u.right-1,J0],[u.right-1,U0],[t.left+1,U0],[t.left+1,J0]];break;case"right":L0=[[t.right-1,J0],[t.right-1,U0],[u.left+1,U0],[u.left+1,J0]];break;default:}function S0([V0,H0]){switch(Q0){case"top":{let j0=[g?V0+X/2:r?V0+X*4:V0-X*4,H0+X+1],r0=[g?V0-X/2:r?V0+X*4:V0-X*4,H0+X+1],n0=[[u.left,r?u.bottom-X:g?u.bottom-X:u.top],[u.right,r?g?u.bottom-X:u.top:u.bottom-X]];return[j0,r0,...n0]}case"bottom":{let j0=[g?V0+X/2:r?V0+X*4:V0-X*4,H0-X],r0=[g?V0-X/2:r?V0+X*4:V0-X*4,H0-X],n0=[[u.left,r?u.top+X:g?u.top+X:u.bottom],[u.right,r?g?u.top+X:u.bottom:u.top+X]];return[j0,r0,...n0]}case"left":{let j0=[V0+X+1,X0?H0+X/2:e?H0+X*4:H0-X*4],r0=[V0+X+1,X0?H0-X/2:e?H0+X*4:H0-X*4];return[...[[e?u.right-X:X0?u.right-X:u.left,u.top],[e?X0?u.right-X:u.left:u.right-X,u.bottom]],j0,r0]}case"right":{let j0=[V0-X,X0?H0+X/2:e?H0+X*4:H0-X*4],r0=[V0-X,X0?H0-X/2:e?H0+X*4:H0-X*4],n0=[[e?u.left+X:X0?u.left+X:u.right,u.top],[e?X0?u.left+X:u.right:u.left+X,u.bottom]];return[j0,r0,...n0]}default:return[]}}if(LO([E,m],L0))return;if(U&&!o)return b();if(!p&&W){let V0=F(I.clientX,I.clientY),H0=0.1;if(V0!==null&&V0<0.1)return b()}if(!LO([E,m],S0([V,k])))b();else if(!U&&W)K.start(40,b);return}};return N.__options={blockPointerEvents:Y},N}var cz=c(G0(),1);var TX=c(G0(),1);function VO(J){let X=TX.useRef(""),Y=TX.useCallback((K)=>{if(K.defaultPrevented)return;X.current=K.pointerType,J(K,K.pointerType)},[J]);return{onClick:TX.useCallback((K)=>{if(K.detail===0){J(K,"keyboard");return}if("pointerType"in K)J(K,K.pointerType);J(K,X.current),X.current=""},[J]),onPointerDown:Y}}function TG(J){let[X,Y]=cz.useState(null),W=F0((_,L)=>{if(!J)Y(L)}),K=cz.useCallback(()=>{Y(null)},[]),{onClick:U,onPointerDown:q}=VO(W);return cz.useMemo(()=>({openMethod:X,reset:K,triggerProps:{onClick:U,onPointerDown:q}}),[X,K,U,q])}function FO(J){let{store:X,parentContext:Y,actionsRef:W}=J,K=X.useState("open"),U=X.useState("disablePointerDismissal"),q=X.useState("modal"),_=X.useState("popupElement"),{openMethod:L,triggerProps:F,reset:N}=TG(K);fz(X);let{forceUnmount:V}=mz(K,X,()=>{N()}),k=F0((d)=>{let w0=P0(d);return w0.preventUnmountOnClose=()=>{X.set("preventUnmountingOnClose",!0)},w0}),A=S5.useCallback(()=>{X.setOpen(!1,k(B0.imperativeAction))},[X,k]);S5.useImperativeHandle(W,()=>({unmount:V,close:A}),[V,A]);let D=n7({popupStore:X,onOpenChange:X.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[M,h]=S5.useState(0),v=M===0,x=DX(D),I=s7(D,{outsidePressEvent(){if(X.context.internalBackdropRef.current||X.context.backdropRef.current)return"intentional";return{mouse:q==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(d){if("button"in d&&d.button!==0)return!1;if("touches"in d&&d.touches.length!==1)return!1;let w0=f1(d);if(v&&!U){let t=w0;if(q)return X.context.internalBackdropRef.current||X.context.backdropRef.current?X.context.internalBackdropRef.current===t||X.context.backdropRef.current===t||t0(t,_)&&!t?.hasAttribute("data-base-ui-portal"):!0;return!0}return!1},escapeKey:v});$G(K&&q===!0,_);let{getReferenceProps:b,getFloatingProps:E,getTriggerProps:m}=$5([x,I]);X.useContextCallback("onNestedDialogOpen",(d)=>{h(d+1)}),X.useContextCallback("onNestedDialogClose",()=>{h(0)}),S5.useEffect(()=>{if(Y?.onNestedDialogOpen&&K)Y.onNestedDialogOpen(M);if(Y?.onNestedDialogClose&&!K)Y.onNestedDialogClose();return()=>{if(Y?.onNestedDialogClose&&K)Y.onNestedDialogClose()}},[K,Y,M]);let R=S5.useMemo(()=>b(F),[b,F]),S=S5.useMemo(()=>m(F),[m,F]),p=S5.useMemo(()=>E(),[E]);X.useSyncedValues({openMethod:L,activeTriggerProps:R,inactiveTriggerProps:S,popupProps:p,floatingRootContext:D,nestedOpenDialogCount:M})}var xG=c(G0(),1),vG=xG.createContext(void 0);vG.displayName="DialogRootContext";function pw(J){let X=xG.useContext(vG);if(J===!1&&X===void 0)throw Error("Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");return X}var hG=c(G0(),1);var DS={...uz,modal:p0((J)=>J.modal),nested:p0((J)=>J.nested),nestedOpenDialogCount:p0((J)=>J.nestedOpenDialogCount),disablePointerDismissal:p0((J)=>J.disablePointerDismissal),openMethod:p0((J)=>J.openMethod),descriptionElementId:p0((J)=>J.descriptionElementId),titleElementId:p0((J)=>J.titleElementId),viewportElement:p0((J)=>J.viewportElement),role:p0((J)=>J.role)};class xX extends P6{constructor(J){super(TS(J),{popupRef:hG.createRef(),backdropRef:hG.createRef(),internalBackdropRef:hG.createRef(),triggerElements:new Z8,onOpenChange:void 0,onOpenChangeComplete:void 0},DS)}setOpen=(J,X)=>{if(X.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!J&&X.trigger==null&&this.state.activeTriggerId!=null)X.trigger=this.state.activeTriggerElement??void 0;if(this.context.onOpenChange?.(J,X),X.isCanceled)return;let Y={open:J,nativeEvent:X.event,reason:X.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",Y);let W={open:J},K=X.trigger?.id??null;if(K||J)W.activeTriggerId=K,W.activeTriggerElement=X.trigger??null;this.update(W)}}function TS(J={}){return{...dz(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...J}}var EG=c(G0(),1);var Y5=function(J){return J.open="data-open",J.closed="data-closed",J[J.startingStyle=eJ.startingStyle]="startingStyle",J[J.endingStyle=eJ.endingStyle]="endingStyle",J.anchorHidden="data-anchor-hidden",J}({}),o_=function(J){return J.popupOpen="data-popup-open",J.pressed="data-pressed",J}({}),xS={[o_.popupOpen]:""},vS={[o_.popupOpen]:"",[o_.pressed]:""},hS={[Y5.open]:""},ES={[Y5.closed]:""},PS={[Y5.anchorHidden]:""},lz={open(J){if(J)return xS;return null}},vX={open(J){if(J)return vS;return null}},xw={open(J){if(J)return hS;return ES},anchorHidden(J){if(J)return PS;return null}};var IS={...xw,...h2},n_=EG.forwardRef(function(X,Y){let{render:W,className:K,forceRender:U=!1,...q}=X,{store:_}=pw(),L=_.useState("open"),F=_.useState("nested"),N=_.useState("mounted"),V=_.useState("transitionStatus"),k=EG.useMemo(()=>({open:L,transitionStatus:V}),[L,V]);return h0("div",X,{state:k,ref:[_.context.backdropRef,Y],stateAttributesMapping:IS,props:[{role:"presentation",hidden:!N,style:{userSelect:"none",WebkitUserSelect:"none"}},q],enabled:U||!F})});n_.displayName="DialogBackdrop";var PG=c(G0(),1);var t_=PG.forwardRef(function(X,Y){let{render:W,className:K,disabled:U=!1,nativeButton:q=!0,..._}=X,{store:L}=pw(),F=L.useState("open");function N(D){if(F)L.setOpen(!1,P0(B0.closePress,D.nativeEvent))}let{getButtonProps:V,buttonRef:k}=Z5({disabled:U,native:q}),A=PG.useMemo(()=>({disabled:U}),[U]);return h0("button",X,{state:A,ref:[Y,k],props:[{onClick:N},_,V]})});t_.displayName="DialogClose";var NO=c(G0(),1);var e_=NO.forwardRef(function(X,Y){let{render:W,className:K,id:U,...q}=X,{store:_}=pw(),L=ww(U);return _.useSyncedValueWithCleanup("descriptionElementId",L),h0("p",X,{ref:Y,props:[{id:L},q]})});e_.displayName="DialogDescription";var CG=c(G0(),1);var kO=function(J){return J.nestedDialogs="--nested-dialogs",J}({});var AO=function(J){return J[J.open=Y5.open]="open",J[J.closed=Y5.closed]="closed",J[J.startingStyle=Y5.startingStyle]="startingStyle",J[J.endingStyle=Y5.endingStyle]="endingStyle",J.nested="data-nested",J.nestedDialogOpen="data-nested-dialog-open",J}({});var IG=c(G0(),1),bG=IG.createContext(void 0);bG.displayName="DialogPortalContext";function SG(){let J=IG.useContext(bG);if(J===void 0)throw Error("Base UI: <Dialog.Portal> is missing.");return J}var jO=c(x1(),1),bS={...xw,...h2,nestedDialogOpen(J){return J?{[AO.nestedDialogOpen]:""}:null}},wq=CG.forwardRef(function(X,Y){let{className:W,finalFocus:K,initialFocus:U,render:q,..._}=X,{store:L}=pw(),F=L.useState("descriptionElementId"),N=L.useState("disablePointerDismissal"),V=L.useState("floatingRootContext"),k=L.useState("popupProps"),A=L.useState("modal"),D=L.useState("mounted"),M=L.useState("nested"),h=L.useState("nestedOpenDialogCount"),v=L.useState("open"),x=L.useState("openMethod"),I=L.useState("titleElementId"),b=L.useState("transitionStatus"),E=L.useState("role");SG(),P5({open:v,ref:L.context.popupRef,onComplete(){if(v)L.context.onOpenChangeComplete?.(!0)}});function m(w0){if(w0==="touch")return L.context.popupRef.current;return!0}let R=U===void 0?m:U,S=h>0,p=CG.useMemo(()=>({open:v,nested:M,transitionStatus:b,nestedDialogOpen:S}),[v,M,b,S]),d=h0("div",X,{state:p,props:[k,{"aria-labelledby":I??void 0,"aria-describedby":F??void 0,role:E,tabIndex:-1,hidden:!D,onKeyDown(w0){if(XG.has(w0.key))w0.stopPropagation()},style:{[kO.nestedDialogs]:h}},_],ref:[Y,L.context.popupRef,L.useStateSetter("popupElement")],stateAttributesMapping:bS});return jO.jsx(FX,{context:V,openInteractionType:x,disabled:!D,closeOnFocusOut:!N,initialFocus:R,returnFocus:K,modal:A!==!1,restoreFocus:"popup",children:d})});wq.displayName="DialogPopup";var DO=c(G0(),1);function iz(J){if(Fz(19))return J;return J?"true":void 0}var MO=c(G0(),1),OO=c(x1(),1),hX=MO.forwardRef(function(X,Y){let{cutout:W,...K}=X,U;if(W){let q=W?.getBoundingClientRect();U=`polygon(
|
|
252
|
+
0% 0%,
|
|
253
|
+
100% 0%,
|
|
254
|
+
100% 100%,
|
|
255
|
+
0% 100%,
|
|
256
|
+
0% 0%,
|
|
257
|
+
${q.left}px ${q.top}px,
|
|
258
|
+
${q.left}px ${q.bottom}px,
|
|
259
|
+
${q.right}px ${q.bottom}px,
|
|
260
|
+
${q.right}px ${q.top}px,
|
|
261
|
+
${q.left}px ${q.top}px
|
|
262
|
+
)`}return OO.jsx("div",{ref:Y,role:"presentation","data-base-ui-inert":"",...K,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:U}})});hX.displayName="InternalBackdrop";var EX=c(x1(),1),zq=DO.forwardRef(function(X,Y){let{keepMounted:W=!1,...K}=X,{store:U}=pw(),q=U.useState("mounted"),_=U.useState("modal");if(!(q||W))return null;return EX.jsx(bG.Provider,{value:W,children:EX.jsxs(Sz,{ref:Y,...K,children:[q&&_===!0&&EX.jsx(hX,{ref:U.context.internalBackdropRef,inert:iz(!open)}),X.children]})})});zq.displayName="DialogPortal";var TO=c(G0(),1);var Zq=TO.forwardRef(function(X,Y){let{render:W,className:K,id:U,...q}=X,{store:_}=pw(),L=ww(U);return _.useSyncedValueWithCleanup("titleElementId",L),h0("h2",X,{ref:Y,props:[{id:L},q]})});Zq.displayName="DialogTitle";var rz=c(G0(),1);var Jq=rz.forwardRef(function(X,Y){let{render:W,className:K,disabled:U=!1,nativeButton:q=!0,id:_,payload:L,handle:F,...N}=X,V=pw(!0),k=F?.store??V?.store;if(!k)throw Error("Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.");let A=ww(_),D=k.useState("floatingRootContext"),M=k.useState("isOpenedByTrigger",A),h=rz.useRef(null),{registerTrigger:v,isMountedByThisTrigger:x}=gz(A,h,k,{payload:L}),{getButtonProps:I,buttonRef:b}=Z5({disabled:U,native:q}),E=r7(D,{enabled:D!=null}),m=$5([E]),R=rz.useMemo(()=>({disabled:U,open:M}),[U,M]),S=k.useState("triggerProps",x);return h0("button",X,{state:R,ref:[b,Y,v,h],props:[m.getReferenceProps(),S,{[hY]:"",id:A},N,I],stateAttributesMapping:lz})});Jq.displayName="DialogTrigger";var yG=c(G0(),1);var Xq=function(J){return J[J.open=Y5.open]="open",J[J.closed=Y5.closed]="closed",J[J.startingStyle=Y5.startingStyle]="startingStyle",J[J.endingStyle=Y5.endingStyle]="endingStyle",J.nested="data-nested",J.nestedDialogOpen="data-nested-dialog-open",J}({});var SS={...xw,...h2,nested(J){return J?{[Xq.nested]:""}:null},nestedDialogOpen(J){return J?{[Xq.nestedDialogOpen]:""}:null}},$q=yG.forwardRef(function(X,Y){let{className:W,render:K,children:U,...q}=X,_=SG(),{store:L}=pw(),F=L.useState("open"),N=L.useState("nested"),V=L.useState("transitionStatus"),k=L.useState("nestedOpenDialogCount"),A=L.useState("mounted"),D=k>0,M=yG.useMemo(()=>({open:F,nested:N,transitionStatus:V,nestedDialogOpen:D}),[F,N,V,D]);return h0("div",X,{enabled:_||A,state:M,ref:[Y,L.useStateSetter("viewportElement")],stateAttributesMapping:SS,props:[{role:"presentation",hidden:!A,children:U},q]})});$q.displayName="DialogViewport";class RG{constructor(J){this.store=J??new xX}open(J){let X=J?this.store.context.triggerElements.getById(J):void 0;if(J&&!X)console.warn(`Base UI: DialogHandle.open: No trigger found with id "${J}". The dialog will open, but the trigger will not be associated with the dialog.`);this.store.setOpen(!0,P0(B0.imperativeAction,void 0,X))}openWithPayload(J){this.store.set("payload",J),this.store.setOpen(!0,P0(B0.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,P0(B0.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}function xO(){return new RG}function vO(J){let X=J.getBoundingClientRect(),Y=window.getComputedStyle(J,"::before"),W=window.getComputedStyle(J,"::after");if(!(Y.content!=="none"||W.content!=="none"))return X;let U=parseFloat(Y.width)||0,q=parseFloat(Y.height)||0,_=parseFloat(W.width)||0,L=parseFloat(W.height)||0,F=Math.max(X.width,U,_),N=Math.max(X.height,q,L),V=F-X.width,k=N-X.height;return{left:X.left-V/2,right:X.right+V/2,top:X.top-k/2,bottom:X.bottom+k/2}}var G5=c(G0(),1);var CS=(J)=>({name:"arrow",options:J,async fn(X){let{x:Y,y:W,placement:K,rects:U,platform:q,elements:_,middlewareData:L}=X,{element:F,padding:N=0,offsetParent:V="real"}=e5(J,X)||{};if(F==null)return{};let k=nY(N),A={x:Y,y:W},D=WX(K),M=QX(D),h=await q.getDimensions(F),v=D==="y",x=v?"top":"left",I=v?"bottom":"right",b=v?"clientHeight":"clientWidth",E=U.reference[M]+U.reference[D]-A[D]-U.floating[M],m=A[D]-U.reference[D],R=V==="real"?await q.getOffsetParent?.(F):_.floating,S=_.floating[b]||U.floating[M];if(!S||!await q.isElement?.(R))S=_.floating[b]||U.floating[M];let p=E/2-m/2,d=S/2-h[M]/2-1,w0=Math.min(k[x],d),t=Math.min(k[I],d),u=w0,Q0=S-h[M]-t,r=S/2-h[M]/2+p,e=GX(u,r,Q0),o=!L.arrow&&w8(K)!=null&&r!==e&&U.reference[M]/2-(r<u?w0:t)-h[M]/2<0,g=o?r<u?r-u:r-Q0:0;return{[D]:A[D]+g,data:{[D]:e,centerOffset:r-e-g,...o&&{alignmentOffset:g}},reset:o}}}),hO=(J,X)=>({...CS(J),options:[J,X]});var EO={name:"hide",async fn(J){let{width:X,height:Y,x:W,y:K}=J.rects.reference,U=X===0&&Y===0&&W===0&&K===0;return{data:{referenceHidden:(await g_().fn(J)).data?.referenceHidden||U}}}};var PX={sideX:"left",sideY:"top"},PO={name:"adaptiveOrigin",async fn(J){let{x:X,y:Y,rects:{floating:W},elements:{floating:K},platform:U,strategy:q,placement:_}=J,L=u1(K),F=L.getComputedStyle(K);if(!(F.transitionDuration!=="0s"&&F.transitionDuration!==""))return{x:X,y:Y,data:PX};let V=await U.getOffsetParent?.(K),k={width:0,height:0};if(q==="fixed"&&L?.visualViewport)k={width:L.visualViewport.width,height:L.visualViewport.height};else if(V===L){let x=Dw(K);k={width:x.documentElement.clientWidth,height:x.documentElement.clientHeight}}else if(await U.isElement?.(V))k=await U.getDimensions(V);let A=nw(_),D=X,M=Y;if(A==="left")D=k.width-(X+W.width);if(A==="top")M=k.height-(Y+W.height);let h=A==="left"?"right":PX.sideX,v=A==="top"?"bottom":PX.sideY;return{x:D,y:M,data:{sideX:h,sideY:v}}}};function SO(J,X,Y){let W=J==="inline-start"||J==="inline-end";return{top:"top",right:W?Y?"inline-start":"inline-end":"right",bottom:"bottom",left:W?Y?"inline-end":"inline-start":"left"}[X]}function IO(J,X,Y){let{rects:W,placement:K}=J;return{side:SO(X,nw(K),Y),align:w8(K)||"center",anchor:{width:W.reference.width,height:W.reference.height},positioner:{width:W.floating.width,height:W.floating.height}}}function gG(J){let{anchor:X,positionMethod:Y="absolute",side:W="bottom",sideOffset:K=0,align:U="center",alignOffset:q=0,collisionBoundary:_,collisionPadding:L=5,sticky:F=!1,arrowPadding:N=5,disableAnchorTracking:V=!1,keepMounted:k=!1,floatingRootContext:A,mounted:D,collisionAvoidance:M,shiftCrossAxis:h=!1,nodeId:v,adaptiveOrigin:x,lazyFlip:I=!1,externalTree:b}=J,[E,m]=G5.useState(null);if(!D&&E!==null)m(null);let R=M.side||"flip",S=M.align||"flip",p=M.fallbackAxisSide||"end",d=typeof X==="function"?X:void 0,w0=F0(d),t=d?w0:X,u=Kw(X),r=M5()==="rtl",e=E||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":r?"left":"right","inline-start":r?"right":"left"}[W],o=U==="center"?e:`${e}-${U}`,g=L,X0=1,P=W==="bottom"?X0:0,z0=W==="top"?X0:0,U0=W==="right"?X0:0,J0=W==="left"?X0:0;if(typeof g==="number")g={top:g+P,right:g+J0,bottom:g+z0,left:g+U0};else if(g)g={top:(g.top||0)+P,right:(g.right||0)+J0,bottom:(g.bottom||0)+z0,left:(g.left||0)+U0};let L0={boundary:_==="clipping-ancestors"?"clippingAncestors":_,padding:g},S0=G5.useRef(null),V0=Kw(K),H0=Kw(q),n0=[b_((s)=>{let K0=IO(s,W,r),N0=typeof V0.current==="function"?V0.current(K0):V0.current,T0=typeof H0.current==="function"?H0.current(K0):H0.current;return{mainAxis:N0,crossAxis:T0,alignmentAxis:T0}},[typeof K!=="function"?K:0,typeof q!=="function"?q:0,r,W])],n=S==="none"&&R!=="shift",R0=!n&&(F||h||R==="shift"),I0=R==="none"?null:y_({...L0,padding:{top:g.top+X0,right:g.right+X0,bottom:g.bottom+X0,left:g.left+X0},mainAxis:!h&&R==="flip",crossAxis:S==="flip"?"alignment":!1,fallbackAxisSideDirection:p}),j1=n?null:S_((s)=>{let K0=Dw(s.elements.floating).documentElement;return{...L0,rootBoundary:h?{x:0,y:0,width:K0.clientWidth,height:K0.clientHeight}:void 0,mainAxis:S!=="none",crossAxis:R0,limiter:F||h?void 0:C_((N0)=>{if(!S0.current)return{};let{width:T0,height:a0}=S0.current.getBoundingClientRect(),u0=E2(nw(N0.placement)),$1=u0==="y"?T0:a0,d0=u0==="y"?g.left+g.right:g.top+g.bottom;return{offset:$1/2+d0/2}})}},[L0,F,h,g,S]);if(R==="shift"||S==="shift"||U==="center")n0.push(j1,I0);else n0.push(I0,j1);n0.push(R_({...L0,apply({elements:{floating:s},rects:{reference:K0},availableWidth:N0,availableHeight:T0}){Object.entries({"--available-width":`${N0}px`,"--available-height":`${T0}px`,"--anchor-width":`${K0.width}px`,"--anchor-height":`${K0.height}px`}).forEach(([a0,u0])=>{s.style.setProperty(a0,u0)})}}),hO(()=>({element:S0.current||document.createElement("div"),padding:N,offsetParent:"floating"}),[N]),{name:"transformOrigin",fn(s){let{elements:K0,middlewareData:N0,placement:T0,rects:a0,y:u0}=s,$1=nw(T0),d0=E2($1),Ew=S0.current,Q2=N0.arrow?.x||0,K8=N0.arrow?.y||0,a4=Ew?.clientWidth||0,W$=Ew?.clientHeight||0,d6=Q2+a4/2,s4=K8+W$/2,g5=Math.abs(N0.shift?.y||0),A2=a0.reference.height/2,u6=typeof K==="function"?K(IO(s,W,r)):K,KW=g5>u6,FZ={top:`${d6}px calc(100% + ${u6}px)`,bottom:`${d6}px ${-u6}px`,left:`calc(100% + ${u6}px) ${s4}px`,right:`${-u6}px ${s4}px`}[$1],K$=`${d6}px ${a0.reference.y+A2-u0}px`;return K0.floating.style.setProperty("--transform-origin",R0&&d0==="y"&&KW?K$:FZ),{}}},EO,x),k0(()=>{if(!D&&A)A.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[D,A]);let b0=G5.useMemo(()=>({elementResize:!V&&typeof ResizeObserver<"u",layoutShift:!V&&typeof IntersectionObserver<"u"}),[V]),{refs:_0,elements:O0,x:A0,y:c0,middlewareData:C0,update:E0,placement:o0,context:x0,isPositioned:l0,floatingStyles:y0}=c_({rootContext:A,placement:o,middleware:n0,strategy:Y,whileElementsMounted:k?void 0:(...s)=>kX(...s,b0),nodeId:v,externalTree:b}),{sideX:q1,sideY:D1}=C0.adaptiveOrigin||PX,W1=l0?Y:"fixed",Gw=G5.useMemo(()=>x?{position:W1,[q1]:A0,[D1]:c0}:{position:W1,...y0},[x,W1,q1,A0,D1,c0,y0]),zw=G5.useRef(null);k0(()=>{if(!D)return;let s=u.current,K0=typeof s==="function"?s():s,T0=(bO(K0)?K0.current:K0)||null||null;if(T0!==zw.current)_0.setPositionReference(T0),zw.current=T0},[D,_0,t,u]),G5.useEffect(()=>{if(!D)return;let s=u.current;if(typeof s==="function")return;if(bO(s)&&s.current!==zw.current)_0.setPositionReference(s.current),zw.current=s.current},[D,_0,t,u]),G5.useEffect(()=>{if(k&&D&&O0.domReference&&O0.floating)return kX(O0.domReference,O0.floating,E0,b0);return},[k,D,O0,E0,b0]);let Lw=nw(o0),Uw=SO(W,Lw,r),hw=w8(o0)||"center",J1=Boolean(C0.hide?.referenceHidden);k0(()=>{if(I&&D&&l0)m(Lw)},[I,D,l0,Lw]);let N1=G5.useMemo(()=>({position:"absolute",top:C0.arrow?.y,left:C0.arrow?.x}),[C0.arrow]),T=C0.arrow?.centerOffset!==0;return G5.useMemo(()=>({positionerStyles:Gw,arrowStyles:N1,arrowRef:S0,arrowUncentered:T,side:Uw,align:hw,physicalSide:Lw,anchorHidden:J1,refs:_0,context:x0,isPositioned:l0,update:E0}),[Gw,N1,S0,T,Uw,hw,Lw,J1,_0,x0,l0,E0])}function bO(J){return J!=null&&"current"in J}function az(J){return J==="starting"?qj:v1}var fG=c(G0(),1);var IX=fG.forwardRef(function(X,Y){let{className:W,render:K,orientation:U="horizontal",...q}=X,_=fG.useMemo(()=>({orientation:U}),[U]);return h0("div",X,{state:_,ref:Y,props:[{role:"separator","aria-orientation":U},q]})});IX.displayName="Separator";var mG=c(G0(),1);var dG=mG.forwardRef(function(X,Y){let{render:W,className:K,disabled:U=!1,focusableWhenDisabled:q=!1,nativeButton:_=!0,...L}=X,F=Boolean(U),{getButtonProps:N,buttonRef:V}=Z5({disabled:F,focusableWhenDisabled:q,native:_}),k=mG.useMemo(()=>({disabled:F}),[F]);return h0("button",X,{state:k,ref:[Y,V],props:[L,N]})});dG.displayName="Button";var b6={};qz(b6,{Trigger:()=>Hq,SubmenuTrigger:()=>aX,SubmenuRoot:()=>BQ,Separator:()=>IX,Root:()=>zD,RadioItemIndicator:()=>lX,RadioItem:()=>cX,RadioGroup:()=>pX,Positioner:()=>uX,Portal:()=>dX,Popup:()=>mX,Item:()=>fX,GroupLabel:()=>gX,Group:()=>RX,CheckboxItemIndicator:()=>yX,CheckboxItem:()=>CX,Backdrop:()=>SX,Arrow:()=>bX});var $8=c(G0(),1);var uG=c(G0(),1),pG=uG.createContext(void 0);pG.displayName="ContextMenuRootContext";function C5(J=!0){let X=uG.useContext(pG);if(X===void 0&&!J)throw Error("Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>.");return X}var AQ={};qz(AQ,{createHandle:()=>wD,Trigger:()=>Uq,SubmenuTrigger:()=>aX,SubmenuRoot:()=>BQ,Separator:()=>IX,Root:()=>qQ,RadioItemIndicator:()=>lX,RadioItem:()=>cX,RadioGroup:()=>pX,Positioner:()=>uX,Portal:()=>dX,Popup:()=>mX,Item:()=>fX,Handle:()=>kQ,GroupLabel:()=>gX,Group:()=>RX,CheckboxItemIndicator:()=>yX,CheckboxItem:()=>CX,Backdrop:()=>SX,Arrow:()=>bX});var rG=c(G0(),1);var cG=c(G0(),1),lG=cG.createContext(void 0);lG.displayName="MenuPositionerContext";function y5(J){let X=cG.useContext(lG);if(X===void 0&&!J)throw Error("Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>.");return X}var iG=c(G0(),1),sz=iG.createContext(void 0);sz.displayName="MenuRootContext";function p1(J){let X=iG.useContext(sz);if(X===void 0&&!J)throw Error("Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>.");return X}var bX=rG.forwardRef(function(X,Y){let{className:W,render:K,...U}=X,{store:q}=p1(),{arrowRef:_,side:L,align:F,arrowUncentered:N,arrowStyles:V}=y5(),k=q.useState("open"),A=rG.useMemo(()=>({open:k,side:L,align:F,uncentered:N}),[k,L,F,N]);return h0("div",X,{ref:[_,Y],stateAttributesMapping:xw,state:A,props:{style:V,"aria-hidden":!0,...U}})});bX.displayName="MenuArrow";var aG=c(G0(),1);var yS={...xw,...h2},SX=aG.forwardRef(function(X,Y){let{className:W,render:K,...U}=X,{store:q}=p1(),_=q.useState("open"),L=q.useState("mounted"),F=q.useState("transitionStatus"),N=q.useState("lastOpenChangeReason"),V=C5(),k=aG.useMemo(()=>({open:_,transitionStatus:F}),[_,F]);return h0("div",X,{ref:V?.backdropRef?[Y,V.backdropRef]:Y,state:k,stateAttributesMapping:yS,props:[{role:"presentation",hidden:!L,style:{pointerEvents:N===B0.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},U]})});SX.displayName="MenuBackdrop";var nG=c(G0(),1);var sG=c(G0(),1),oG=sG.createContext(void 0);oG.displayName="MenuCheckboxItemContext";function CO(){let J=sG.useContext(oG);if(J===void 0)throw Error("Base UI: MenuCheckboxItemContext is missing. MenuCheckboxItem parts must be placed within <Menu.CheckboxItem>.");return J}var oz=c(G0(),1);var nz={type:"regular-item"};function f4(J){let{closeOnClick:X,disabled:Y=!1,highlighted:W,id:K,store:U,nativeButton:q,itemMetadata:_,nodeId:L}=J,F=oz.useRef(null),N=C5(!0),V=N!==void 0,{events:k}=U.useState("floatingTreeRoot"),{getButtonProps:A,buttonRef:D}=Z5({disabled:Y,focusableWhenDisabled:!0,native:q}),M=oz.useCallback((v)=>{return D5({id:K,role:"menuitem",tabIndex:W?0:-1,onMouseMove(x){if(!L)return;k.emit("itemhover",{nodeId:L,target:x.currentTarget})},onMouseEnter(){if(_.type!=="submenu-trigger")return;_.setActive()},onKeyUp(x){if(x.key===" "&&U.context.typingRef.current)x.preventBaseUIHandler()},onClick(x){if(X)k.emit("close",{domEvent:x,reason:B0.itemPress})},onMouseUp(x){if(N){let I=N.initialCursorPointRef.current;if(N.initialCursorPointRef.current=null,V&&I&&Math.abs(x.clientX-I.x)<=1&&Math.abs(x.clientY-I.y)<=1)return}if(F.current&&U.context.allowMouseUpTriggerRef.current&&(!V||x.button===2)){if(_.type==="regular-item")F.current.click()}}},v,A)},[K,W,A,X,k,U,V,N,_,L]),h=O5(F,D);return oz.useMemo(()=>({getItemProps:M,itemRef:h}),[M,h])}var Yq=function(J){return J.checked="data-checked",J.unchecked="data-unchecked",J.disabled="data-disabled",J.highlighted="data-highlighted",J}({});var m4={checked(J){if(J)return{[Yq.checked]:""};return{[Yq.unchecked]:""}},...h2};var yO=c(x1(),1),CX=nG.forwardRef(function(X,Y){let{render:W,className:K,id:U,label:q,nativeButton:_=!1,disabled:L=!1,closeOnClick:F=!1,checked:N,defaultChecked:V,onCheckedChange:k,...A}=X,D=v5({label:q}),M=y5(!0),h=ww(U),{store:v}=p1(),x=v.useState("isActive",D.index),I=v.useState("itemProps"),[b,E]=Lz({controlled:N,default:V??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:m,itemRef:R}=f4({closeOnClick:F,disabled:L,highlighted:x,id:h,store:v,nativeButton:_,nodeId:M?.nodeId,itemMetadata:nz}),S=nG.useMemo(()=>({disabled:L,highlighted:x,checked:b}),[L,x,b]),p=F0((w0)=>{let t={...P0(B0.itemPress,w0.nativeEvent),preventUnmountOnClose:()=>{}};if(k?.(!b,t),t.isCanceled)return;E((u)=>!u)}),d=h0("div",X,{state:S,stateAttributesMapping:m4,props:[I,{role:"menuitemcheckbox","aria-checked":b,onClick:p},A,m],ref:[R,Y,D.ref]});return yO.jsx(oG.Provider,{value:S,children:d})});CX.displayName="MenuCheckboxItem";var tz=c(G0(),1);var yX=tz.forwardRef(function(X,Y){let{render:W,className:K,keepMounted:U=!1,...q}=X,_=CO(),L=tz.useRef(null),{transitionStatus:F,setMounted:N}=Az(_.checked);P5({open:_.checked,ref:L,onComplete(){if(!_.checked)N(!1)}});let V=tz.useMemo(()=>({checked:_.checked,disabled:_.disabled,highlighted:_.highlighted,transitionStatus:F}),[_.checked,_.disabled,_.highlighted,F]);return h0("span",X,{state:V,ref:[Y,L],stateAttributesMapping:m4,props:{"aria-hidden":!0,...q},enabled:U||_.checked})});yX.displayName="MenuCheckboxItemIndicator";var ez=c(G0(),1);var tG=c(G0(),1),eG=tG.createContext(void 0);eG.displayName="MenuGroupContext";function RO(){let J=tG.useContext(eG);if(J===void 0)throw Error("Base UI: MenuGroupRootContext is missing. Menu group parts must be used within <Menu.Group>.");return J}var gO=c(x1(),1),RX=ez.forwardRef(function(X,Y){let{render:W,className:K,...U}=X,[q,_]=ez.useState(void 0),L=ez.useMemo(()=>({setLabelId:_}),[_]),F=h0("div",X,{ref:Y,props:{role:"group","aria-labelledby":q,...U}});return gO.jsx(eG.Provider,{value:L,children:F})});RX.displayName="MenuGroup";var fO=c(G0(),1);var gX=fO.forwardRef(function(X,Y){let{className:W,render:K,id:U,...q}=X,_=ww(U),{setLabelId:L}=RO();return k0(()=>{return L(_),()=>{L(void 0)}},[L,_]),h0("div",X,{ref:Y,props:{id:_,role:"presentation",...q}})});gX.displayName="MenuGroupLabel";var wQ=c(G0(),1);var fX=wQ.forwardRef(function(X,Y){let{render:W,className:K,id:U,label:q,nativeButton:_=!1,disabled:L=!1,closeOnClick:F=!0,...N}=X,V=v5({label:q}),k=y5(!0),A=ww(U),{store:D}=p1(),M=D.useState("isActive",V.index),h=D.useState("itemProps"),{getItemProps:v,itemRef:x}=f4({closeOnClick:F,disabled:L,highlighted:M,id:A,store:D,nativeButton:_,nodeId:k?.nodeId,itemMetadata:nz}),I=wQ.useMemo(()=>({disabled:L,highlighted:M}),[L,M]);return h0("div",X,{state:I,props:[h,N,v],ref:[x,Y,V.ref]})});fX.displayName="MenuItem";var wZ=c(G0(),1);var zQ=c(G0(),1),mO=zQ.createContext(void 0);mO.displayName="ToolbarRootContext";function dO(J){let X=zQ.useContext(mO);if(X===void 0&&!J)throw Error("Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.");return X}var uO=c(x1(),1),RS={...xw,...h2},mX=wZ.forwardRef(function(X,Y){let{render:W,className:K,finalFocus:U,...q}=X,{store:_}=p1(),{side:L,align:F}=y5(),N=dO(!0)!=null,V=_.useState("open"),k=_.useState("transitionStatus"),A=_.useState("popupProps"),D=_.useState("mounted"),M=_.useState("instantType"),h=_.useState("activeTriggerElement"),v=_.useState("parent"),x=_.useState("lastOpenChangeReason"),I=_.useState("rootId"),b=_.useState("floatingRootContext"),E=_.useState("floatingTreeRoot"),m=_.useState("closeDelay"),R=_.useState("activeTriggerElement");P5({open:V,ref:_.context.popupRef,onComplete(){if(V)_.context.onOpenChangeComplete?.(!0)}}),wZ.useEffect(()=>{function u(Q0){_.setOpen(!1,P0(Q0.reason,Q0.domEvent))}return E.events.on("close",u),()=>{E.events.off("close",u)}},[E.events,_]);let S=_.useState("hoverEnabled"),p=_.useState("disabled");OX(b,{enabled:S&&!p&&v.type!=="context-menu"&&v.type!=="menubar",closeDelay:m});let d=wZ.useMemo(()=>({transitionStatus:k,side:L,align:F,open:V,nested:v.type==="menu",instant:M}),[k,L,F,V,v.type,M]),w0=h0("div",X,{state:d,ref:[Y,_.context.popupRef],stateAttributesMapping:RS,props:[A,{onKeyDown(u){if(N&&XG.has(u.key))u.stopPropagation()}},az(k),q,{"data-rootownerid":I}]}),t=v.type===void 0||v.type==="context-menu";if(h||v.type==="menubar"&&x!==B0.outsidePress)t=!0;return uO.jsx(FX,{context:b,modal:!1,disabled:!D,returnFocus:U===void 0?t:U,initialFocus:v.type!=="menu",restoreFocus:!0,externalTree:v.type!=="menubar"?E:void 0,previousFocusableElement:R,nextFocusableElement:v.type===void 0?_.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:v.type===void 0?_.context.beforeContentFocusGuardRef:void 0,children:w0})});mX.displayName="MenuPopup";var cO=c(G0(),1);var ZQ=c(G0(),1),JQ=ZQ.createContext(void 0);JQ.displayName="MenuPortalContext";function pO(){let J=ZQ.useContext(JQ);if(J===void 0)throw Error("Base UI: <Menu.Portal> is missing.");return J}var Gq=c(x1(),1),dX=cO.forwardRef(function(X,Y){let{keepMounted:W=!1,...K}=X,{store:U}=p1();if(!(U.useState("mounted")||W))return null;return Gq.jsx(JQ.Provider,{value:W,children:Gq.jsx(Sz,{ref:Y,...K})})});dX.displayName="MenuPortal";var X8=c(G0(),1);var zZ=c(x1(),1),uX=X8.forwardRef(function(X,Y){let{anchor:W,positionMethod:K="absolute",className:U,render:q,side:_,align:L,sideOffset:F=0,alignOffset:N=0,collisionBoundary:V="clipping-ancestors",collisionPadding:k=5,arrowPadding:A=5,sticky:D=!1,disableAnchorTracking:M=!1,collisionAvoidance:h=Bj,...v}=X,{store:x}=p1(),I=pO(),b=C5(!0),E=x.useState("parent"),m=x.useState("floatingRootContext"),R=x.useState("floatingTreeRoot"),S=x.useState("mounted"),p=x.useState("open"),d=x.useState("modal"),w0=x.useState("activeTriggerElement"),t=x.useState("lastOpenChangeReason"),u=x.useState("floatingNodeId"),Q0=x.useState("floatingParentNodeId"),r=W,e=F,o=N,g=L,X0=h;if(E.type==="context-menu"){if(r=W??E.context?.anchor,g=g??"start",!_&&g!=="center")o=X.alignOffset??2,e=X.sideOffset??-5}let P=_,z0=g;if(E.type==="menu")P=P??"inline-end",z0=z0??"start",X0=X.collisionAvoidance??EY;else if(E.type==="menubar")P=P??"bottom",z0=z0??"start";let U0=E.type==="context-menu",J0=gG({anchor:r,floatingRootContext:m,positionMethod:b?"fixed":K,mounted:S,side:P,sideOffset:e,align:z0,alignOffset:o,arrowPadding:U0?0:A,collisionBoundary:V,collisionPadding:k,sticky:D,nodeId:u,keepMounted:I,disableAnchorTracking:M,collisionAvoidance:X0,shiftCrossAxis:U0,externalTree:R}),L0=X8.useMemo(()=>{let n0={};if(!p)n0.pointerEvents="none";return{role:"presentation",hidden:!S,style:{...J0.positionerStyles,...n0}}},[p,S,J0.positionerStyles]);X8.useEffect(()=>{function n0(n){if(n.open){if(n.parentNodeId===u)x.set("hoverEnabled",!1);if(n.nodeId!==u&&n.parentNodeId===x.select("floatingParentNodeId"))x.setOpen(!1,P0(B0.siblingOpen))}else if(n.parentNodeId===u){if(n.reason!==B0.siblingOpen)x.set("hoverEnabled",!0)}}return R.events.on("menuopenchange",n0),()=>{R.events.off("menuopenchange",n0)}},[x,R.events,u]),X8.useEffect(()=>{if(x.select("floatingParentNodeId")==null)return;function n0(n){if(n.open||n.nodeId!==x.select("floatingParentNodeId"))return;let R0=n.reason??B0.siblingOpen;x.setOpen(!1,P0(R0))}return R.events.on("menuopenchange",n0),()=>{R.events.off("menuopenchange",n0)}},[R.events,x]),X8.useEffect(()=>{function n0(n){if(!p||n.nodeId!==x.select("floatingParentNodeId"))return;if(n.target&&w0&&w0!==n.target)x.setOpen(!1,P0(B0.siblingOpen))}return R.events.on("itemhover",n0),()=>{R.events.off("itemhover",n0)}},[R.events,p,w0,x]),X8.useEffect(()=>{let n0={open:p,nodeId:u,parentNodeId:Q0,reason:x.select("lastOpenChangeReason")};R.events.emit("menuopenchange",n0)},[R.events,p,x,u,Q0]);let S0=X8.useMemo(()=>({open:p,side:J0.side,align:J0.align,anchorHidden:J0.anchorHidden,nested:E.type==="menu"}),[p,J0.side,J0.align,J0.anchorHidden,E.type]),V0=X8.useMemo(()=>({side:J0.side,align:J0.align,arrowRef:J0.arrowRef,arrowUncentered:J0.arrowUncentered,arrowStyles:J0.arrowStyles,nodeId:J0.context.nodeId}),[J0.side,J0.align,J0.arrowRef,J0.arrowUncentered,J0.arrowStyles,J0.context.nodeId]),H0=h0("div",X,{state:S0,stateAttributesMapping:xw,ref:[Y,x.useStateSetter("positionerElement")],props:[L0,v]}),j0=S&&E.type!=="menu"&&(E.type!=="menubar"&&d&&t!==B0.triggerHover||E.type==="menubar"&&E.context.modal),r0=null;if(E.type==="menubar")r0=E.context.contentElement;else if(E.type===void 0)r0=w0;return zZ.jsxs(lG.Provider,{value:V0,children:[j0&&zZ.jsx(hX,{ref:E.type==="context-menu"||E.type==="nested-context-menu"?E.context.internalBackdropRef:null,inert:iz(!p),cutout:r0}),zZ.jsx(V_,{id:u,children:zZ.jsx(Vz,{elementsRef:x.context.itemDomElements,labelsRef:x.context.itemLabels,children:H0})})]})});uX.displayName="MenuPositioner";var Z9=c(G0(),1);var XQ=c(G0(),1),$Q=XQ.createContext(void 0);$Q.displayName="MenuRadioGroupContext";function lO(){let J=XQ.useContext($Q);if(J===void 0)throw Error("Base UI: MenuRadioGroupContext is missing. MenuRadioGroup parts must be placed within <Menu.RadioGroup>.");return J}var iO=c(x1(),1),pX=Z9.memo(Z9.forwardRef(function(X,Y){let{render:W,className:K,value:U,defaultValue:q,onValueChange:_,disabled:L=!1,...F}=X,[N,V]=Lz({controlled:U,default:q,name:"MenuRadioGroup"}),k=F0(_),A=F0((v,x)=>{if(k?.(v,x),x.isCanceled)return;V(v)}),D=Z9.useMemo(()=>({disabled:L}),[L]),M=h0("div",X,{state:D,ref:Y,props:{role:"group","aria-disabled":L||void 0,...F}}),h=Z9.useMemo(()=>({value:N,setValue:A,disabled:L}),[N,A,L]);return iO.jsx($Q.Provider,{value:h,children:M})}));pX.displayName="MenuRadioGroup";var QQ=c(G0(),1);var YQ=c(G0(),1),GQ=YQ.createContext(void 0);GQ.displayName="MenuRadioItemContext";function rO(){let J=YQ.useContext(GQ);if(J===void 0)throw Error("Base UI: MenuRadioItemContext is missing. MenuRadioItem parts must be placed within <Menu.RadioItem>.");return J}var aO=c(x1(),1),cX=QQ.forwardRef(function(X,Y){let{render:W,className:K,id:U,label:q,nativeButton:_=!1,disabled:L=!1,closeOnClick:F=!1,value:N,...V}=X,k=v5({label:q}),A=y5(!0),D=ww(U),{store:M}=p1(),h=M.useState("isActive",k.index),v=M.useState("itemProps"),{value:x,setValue:I,disabled:b}=lO(),E=b||L,m=x===N,{getItemProps:R,itemRef:S}=f4({closeOnClick:F,disabled:E,highlighted:h,id:D,store:M,nativeButton:_,nodeId:A?.nodeId,itemMetadata:nz}),p=QQ.useMemo(()=>({disabled:E,highlighted:h,checked:m}),[E,h,m]),d=F0((t)=>{let u={...P0(B0.itemPress,t.nativeEvent),preventUnmountOnClose:()=>{}};I(N,u)}),w0=h0("div",X,{state:p,stateAttributesMapping:m4,props:[v,{role:"menuitemradio","aria-checked":m,onClick:d},V,R],ref:[S,Y,k.ref]});return aO.jsx(GQ.Provider,{value:p,children:w0})});cX.displayName="MenuRadioItem";var ZZ=c(G0(),1);var lX=ZZ.forwardRef(function(X,Y){let{render:W,className:K,keepMounted:U=!1,...q}=X,_=rO(),L=ZZ.useRef(null),{transitionStatus:F,setMounted:N}=Az(_.checked);P5({open:_.checked,ref:L,onComplete(){if(!_.checked)N(!1)}});let V=ZZ.useMemo(()=>({checked:_.checked,disabled:_.disabled,highlighted:_.highlighted,transitionStatus:F}),[_.checked,_.disabled,_.highlighted,F]);return h0("span",X,{state:V,stateAttributesMapping:m4,ref:[Y,L],props:{"aria-hidden":!0,...q},enabled:U||_.checked})});lX.displayName="MenuRadioItemIndicator";var Yw=c(G0(),1),oO=c(m8(),1);var WQ=c(G0(),1),sO=WQ.createContext(null);sO.displayName="MenubarContext";function KQ(J){let X=WQ.useContext(sO);if(X===null&&!J)throw Error("Base UI: MenubarContext is missing. Menubar parts must be placed within <Menubar>.");return X}var iX=c(G0(),1);var gS={...uz,disabled:p0((J)=>J.parent.type==="menubar"?J.parent.context.disabled||J.disabled:J.disabled),modal:p0((J)=>(J.parent.type===void 0||J.parent.type==="context-menu")&&(J.modal??!0)),allowMouseEnter:p0((J)=>J.parent.type==="menu"?J.parent.store.select("allowMouseEnter"):J.allowMouseEnter),stickIfOpen:p0((J)=>J.stickIfOpen),parent:p0((J)=>J.parent),rootId:p0((J)=>{if(J.parent.type==="menu")return J.parent.store.select("rootId");return J.parent.type!==void 0?J.parent.context.rootId:J.rootId}),activeIndex:p0((J)=>J.activeIndex),isActive:p0((J,X)=>J.activeIndex===X),hoverEnabled:p0((J)=>J.hoverEnabled),instantType:p0((J)=>J.instantType),lastOpenChangeReason:p0((J)=>J.openChangeReason),floatingTreeRoot:p0((J)=>{if(J.parent.type==="menu")return J.parent.store.select("floatingTreeRoot");return J.floatingTreeRoot}),floatingNodeId:p0((J)=>J.floatingNodeId),floatingParentNodeId:p0((J)=>J.floatingParentNodeId),itemProps:p0((J)=>J.itemProps),closeDelay:p0((J)=>J.closeDelay),keyboardEventRelay:p0((J)=>{if(J.keyboardEventRelay)return J.keyboardEventRelay;if(J.parent.type==="menu")return J.parent.store.select("keyboardEventRelay");return})};class JZ extends P6{constructor(J){super({...fS(),...J},{positionerRef:iX.createRef(),popupRef:iX.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:iX.createRef(),beforeContentFocusGuardRef:iX.createRef(),onOpenChangeComplete:void 0,triggerElements:new Z8},gS);this.observe(p0((X)=>X.allowMouseEnter),(X,Y)=>{if(this.state.parent.type==="menu"&&X!==Y)this.state.parent.store.set("allowMouseEnter",X)}),this.unsubscribeParentListener=this.observe("parent",(X)=>{if(this.unsubscribeParentListener?.(),X.type==="menu"){this.unsubscribeParentListener=X.store.subscribe(()=>{this.notifyAll()}),this.context.allowMouseUpTriggerRef=X.store.context.allowMouseUpTriggerRef;return}if(X.type!==void 0)this.context.allowMouseUpTriggerRef=X.context.allowMouseUpTriggerRef;this.unsubscribeParentListener=null})}setOpen(J,X){this.state.floatingRootContext.context.events.emit("setOpen",{open:J,eventDetails:X})}static useStore(J,X){return r1(()=>{return J??new JZ(X)}).current}unsubscribeParentListener=null}function fS(){return{...dz(),disabled:!1,modal:!0,allowMouseEnter:!0,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new l7,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:v1,keyboardEventRelay:void 0,closeDelay:0}}var UQ=c(G0(),1),HQ=UQ.createContext(void 0);HQ.displayName="MenuSubmenuRootContext";function _Q(){return UQ.useContext(HQ)}var Qq=c(x1(),1);function qQ(J){let{children:X,open:Y,onOpenChange:W,onOpenChangeComplete:K,defaultOpen:U=!1,disabled:q=!1,modal:_,loopFocus:L=!0,orientation:F="vertical",actionsRef:N,closeParentOnEsc:V=!1,handle:k,triggerId:A,defaultTriggerId:D=null,highlightItemOnHover:M=!0}=J,h=C5(!0),v=p1(!0),x=KQ(!0),I=_Q(),b=Yw.useMemo(()=>{if(I&&v)return{type:"menu",store:v.store};if(x)return{type:"menubar",context:x};if(h&&!v)return{type:"context-menu",context:h};return{type:void 0}},[h,v,x,I]),E=JZ.useStore(k?.store,{parent:b}),m=E.useState("floatingTreeRoot"),R=LX(m),S=tw();k0(()=>{if(h&&!v)E.update({parent:{type:"context-menu",context:h},floatingNodeId:R,floatingParentNodeId:S});else if(v)E.update({floatingNodeId:R,floatingParentNodeId:S})},[h,v,R,S,E]),E.useControlledProp("open",Y,U),E.useControlledProp("activeTriggerId",A,D),E.useContextCallback("onOpenChangeComplete",K);let p=E.useState("open"),d=E.useState("activeTriggerElement"),w0=E.useState("positionerElement"),t=E.useState("hoverEnabled"),u=E.useState("modal"),Q0=E.useState("disabled"),r=E.useState("lastOpenChangeReason"),e=E.useState("parent"),o=E.useState("activeIndex"),g=E.useState("payload"),X0=E.useState("floatingParentNodeId"),P=Yw.useRef(null),z0=X0!=null,U0;if(e.type!==void 0&&_!==void 0)console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored.");E.useSyncedValues({disabled:q,modal:e.type===void 0?_:void 0,rootId:J2()});let{openMethod:J0,triggerProps:L0,reset:S0}=TG(p);fz(E);let{forceUnmount:V0}=mz(p,E,()=>{E.update({allowMouseEnter:!1,stickIfOpen:!0}),S0()}),H0=Yw.useRef(e.type!=="context-menu"),j0=a1();Yw.useEffect(()=>{if(!p)P.current=null;if(e.type!=="context-menu")return;if(!p){j0.clear(),H0.current=!1;return}j0.start(500,()=>{H0.current=!0})},[j0,p,e.type]),$G(p&&u&&r!==B0.triggerHover&&J0!=="touch",w0),k0(()=>{if(!p&&!t)E.set("hoverEnabled",!0)},[p,t,E]);let r0=Yw.useRef(!0),n0=a1(),n=F0((J1,N1)=>{let T=N1.reason;if(p===J1&&N1.trigger===d)return;if(N1.preventUnmountOnClose=()=>{E.set("preventUnmountingOnClose",!0)},!J1&&N1.trigger==null)N1.trigger=d??void 0;if(W?.(J1,N1),N1.isCanceled)return;let s={open:J1,nativeEvent:N1.event,reason:N1.reason,nested:z0};U0?.emit("openchange",s);let K0=N1.event;if(J1===!1&&K0?.type==="click"&&K0.pointerType==="touch"&&!r0.current)return;if(!J1&&o!==null){let u0=E.context.itemDomElements.current[o];queueMicrotask(()=>{u0?.setAttribute("tabindex","-1")})}if(J1&&T===B0.triggerFocus)r0.current=!1,n0.start(300,()=>{r0.current=!0});else r0.current=!0,n0.clear();let N0=(T===B0.triggerPress||T===B0.itemPress)&&K0.detail===0&&K0?.isTrusted,T0=!J1&&(T===B0.escapeKey||T==null);function a0(){let u0={open:J1,openChangeReason:T};P.current=N1.event??null;let $1=N1.trigger?.id??null;if($1||J1)u0.activeTriggerId=$1,u0.activeTriggerElement=N1.trigger??null;E.update(u0)}if(T===B0.triggerHover)oO.flushSync(a0);else a0();if(e.type==="menubar"&&(T===B0.triggerFocus||T===B0.focusOut||T===B0.triggerHover||T===B0.listNavigation||T===B0.siblingOpen))E.set("instantType","group");else if(N0||T0)E.set("instantType",N0?"click":"dismiss");else E.set("instantType",void 0)}),R0=Yw.useCallback((J1)=>{let N1=P0(J1);return N1.preventUnmountOnClose=()=>{E.set("preventUnmountingOnClose",!0)},N1},[E]),I0=Yw.useCallback(()=>{E.setOpen(!1,R0(B0.imperativeAction))},[E,R0]);Yw.useImperativeHandle(N,()=>({unmount:V0,close:I0}),[V0,I0]);let j1;if(e.type==="context-menu")j1=e.context;Yw.useImperativeHandle(j1?.positionerRef,()=>w0,[w0]),Yw.useImperativeHandle(j1?.actionsRef,()=>({setOpen:n}),[n]);let b0=n7({popupStore:E,onOpenChange:n});U0=b0.context.events,Yw.useEffect(()=>{let J1=({open:N1,eventDetails:T})=>n(N1,T);return U0.on("setOpen",J1),()=>{U0?.off("setOpen",J1)}},[U0,n]);let _0=s7(b0,{enabled:!Q0,bubbles:V&&e.type==="menu",outsidePress(){if(e.type!=="context-menu"||P.current?.type==="contextmenu")return!0;return H0.current},externalTree:z0?m:void 0}),O0=DX(b0,{role:"menu"}),A0=M5(),c0=Yw.useCallback((J1)=>{if(E.select("activeIndex")===J1)return;E.set("activeIndex",J1)},[E]),C0=a_(b0,{enabled:!Q0,listRef:E.context.itemDomElements,activeIndex:o,nested:e.type!==void 0,loopFocus:L,orientation:F,parentOrientation:e.type==="menubar"?e.context.orientation:void 0,rtl:A0==="rtl",disabledIndices:t2,onNavigate:c0,openOnArrowKeyDown:e.type!=="context-menu",externalTree:z0?m:void 0,focusItemOnHover:M}),E0=Yw.useCallback((J1)=>{E.context.typingRef.current=J1},[E]),o0=s_(b0,{listRef:E.context.itemLabels,activeIndex:o,resetMs:Hj,onMatch:(J1)=>{if(p&&J1!==o)E.set("activeIndex",J1)},onTypingChange:E0}),{getReferenceProps:x0,getFloatingProps:l0,getItemProps:y0,getTriggerProps:q1}=$5([_0,O0,C0,o0]),D1=Yw.useMemo(()=>{let J1=D5(x0(),{onMouseEnter(){E.set("hoverEnabled",!0)},onMouseMove(){E.set("allowMouseEnter",!0)}},L0);return delete J1.role,J1},[x0,E,L0]),W1=Yw.useMemo(()=>{let J1=q1();if(!J1)return J1;let N1=D5(J1,L0);return delete N1.role,delete N1["aria-controls"],N1},[q1,L0]),Gw=x5(),zw=Yw.useMemo(()=>l0({onMouseEnter(){if(e.type==="menu")Gw.request(()=>E.set("hoverEnabled",!1))},onMouseMove(){E.set("allowMouseEnter",!0)},onClick(){if(E.select("hoverEnabled"))E.set("hoverEnabled",!1)},onKeyDown(J1){let N1=E.select("keyboardEventRelay");if(N1&&!J1.isPropagationStopped())N1(J1)}}),[l0,e.type,Gw,E]),Lw=Yw.useMemo(()=>y0(),[y0]);E.useSyncedValues({floatingRootContext:b0,activeTriggerProps:D1,inactiveTriggerProps:W1,popupProps:zw,itemProps:Lw});let Uw=Yw.useMemo(()=>({store:E,parent:b}),[E,b]),hw=Qq.jsx(sz.Provider,{value:Uw,children:typeof X==="function"?X({payload:g}):X});if(e.type===void 0||e.type==="context-menu")return Qq.jsx(F_,{externalTree:m,children:hw});return hw}var nO=c(G0(),1);var Wq=c(x1(),1);function BQ(J){let X=p1().store,Y=nO.useMemo(()=>({parentMenu:X}),[X]);return Wq.jsx(HQ.Provider,{value:Y,children:Wq.jsx(qQ,{...J})})}var Cw=c(G0(),1),Kq=c(m8(),1);var LQ=c(G0(),1);function VQ(J={}){let{highlightItemOnHover:X,highlightedIndex:Y,onHighlightedIndexChange:W}=Mz(),{ref:K,index:U}=v5(J),q=Y===U,_=LQ.useRef(null),L=O5(K,_);return{compositeProps:LQ.useMemo(()=>({tabIndex:q?0:-1,onFocus(){W(U)},onMouseMove(){let N=_.current;if(!X||!N)return;let V=N.hasAttribute("disabled")||N.ariaDisabled==="true";if(!q&&!V)N.focus()}}),[q,W,U,X]),compositeRef:L,index:U}}function tO(J){let{render:X,className:Y,state:W=v1,props:K=t2,refs:U=t2,metadata:q,stateAttributesMapping:_,tag:L="div",...F}=J,{compositeProps:N,compositeRef:V}=VQ({metadata:q});return h0(L,J,{state:W,ref:[...U,V],props:[N,...K,F],stateAttributesMapping:_})}function rX(J){if(O1(J)&&J.hasAttribute("data-rootownerid"))return J.getAttribute("data-rootownerid")??void 0;if(z5(J))return;return rX(e2(J))}var FQ=c(G0(),1);function eO(J){let{enabled:X=!0,mouseDownAction:Y,open:W}=J,K=FQ.useRef(!1);return FQ.useMemo(()=>{if(!X)return v1;return{onMouseDown:(U)=>{if(Y==="open"&&!W||Y==="close"&&W)K.current=!0,Dw(U.currentTarget).addEventListener("click",()=>{K.current=!1},{once:!0})},onClick:(U)=>{if(K.current)K.current=!1,U.preventBaseUIHandler()}}},[X,Y,W])}var d4=c(x1(),1),NQ=2,Uq=Cw.forwardRef(function(X,Y){let{render:W,className:K,disabled:U=!1,nativeButton:q=!0,id:_,openOnHover:L,delay:F=100,closeDelay:N=0,handle:V,payload:k,...A}=X,D=p1(!0),M=V?.store??D?.store;if(!M)throw Error("Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle.");let h=ww(_),v=M.useState("isTriggerActive",h),x=M.useState("floatingRootContext"),I=M.useState("isOpenedByTrigger",h),b=Cw.useRef(null),E=dS(),m=Mz(!0),R=$2(),S=Cw.useMemo(()=>{return R??new l7},[R]),p=LX(S),d=tw(),{registerTrigger:w0,isMountedByThisTrigger:t}=gz(h,b,M,{payload:k,closeDelay:N,parent:E,floatingTreeRoot:S,floatingNodeId:p,floatingParentNodeId:d,keyboardEventRelay:m?.relayKeyboardEvent}),u=M.useState("disabled"),Q0=U||u||E.type==="menubar"&&E.context.disabled,{getButtonProps:r,buttonRef:e}=Z5({disabled:Q0,native:q});Cw.useEffect(()=>{if(!I&&E.type===void 0)M.context.allowMouseUpTriggerRef.current=!1},[M,I,E.type]);let o=Cw.useRef(null),g=a1(),X0=F0((O0)=>{if(!o.current)return;g.clear(),M.context.allowMouseUpTriggerRef.current=!1;let A0=O0.target;if(t0(o.current,A0)||t0(M.select("positionerElement"),A0)||A0===o.current)return;if(A0!=null&&rX(A0)===M.select("rootId"))return;let c0=vO(o.current);if(O0.clientX>=c0.left-NQ&&O0.clientX<=c0.right+NQ&&O0.clientY>=c0.top-NQ&&O0.clientY<=c0.bottom+NQ)return;S.events.emit("close",{domEvent:O0,reason:B0.cancelOpen})});Cw.useEffect(()=>{if(I&&M.select("lastOpenChangeReason")===B0.triggerHover)Dw(o.current).addEventListener("mouseup",X0,{once:!0})},[I,X0,M]);let P=E.type==="menubar"&&E.context.hasSubmenuOpen,U0=e7(x,{enabled:(L??P??!1)&&!Q0&&E.type!=="context-menu"&&(E.type!=="menubar"||P&&!t),handleClose:z9({blockPointerEvents:E.type!=="menubar"}),mouseOnly:!0,move:!1,restMs:E.type===void 0?F:void 0,delay:{close:N},triggerElementRef:b,externalTree:S,isActiveTrigger:v}),J0=mS(I,M.select("lastOpenChangeReason")),L0=r7(x,{enabled:!Q0&&E.type!=="context-menu",event:I&&E.type==="menubar"?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:E.type===void 0?J0:!1}),S0=jX(x,{enabled:!Q0&&(E.type!=="menubar"&&I||P)}),V0=eO({open:I,enabled:E.type==="menubar",mouseDownAction:"open"}),H0=$5([L0,S0]),j0=E.type==="menubar",r0=Cw.useMemo(()=>({disabled:Q0,open:I}),[Q0,I]),n0=M.useState("triggerProps",t),n=[o,Y,e,w0,b],R0=[H0.getReferenceProps(),U0??v1,n0,{"aria-haspopup":"menu",id:h,onMouseDown:(O0)=>{if(M.select("open"))return;g.start(200,()=>{M.context.allowMouseUpTriggerRef.current=!0}),Dw(O0.currentTarget).addEventListener("mouseup",X0,{once:!0})}},j0?{role:"menuitem"}:{},V0,A,r],I0=Cw.useRef(null),j1=F0((O0)=>{Kq.flushSync(()=>{M.setOpen(!1,P0(B0.focusOut,O0.nativeEvent,O0.currentTarget))}),tj(I0.current)?.focus()}),b0=F0((O0)=>{let A0=M.select("positionerElement");if(A0&&v6(O0,A0))M.context.beforeContentFocusGuardRef.current?.focus();else{Kq.flushSync(()=>{M.setOpen(!1,P0(B0.focusOut,O0.nativeEvent,O0.currentTarget))});let c0=nj(b.current);while(c0!==null&&t0(A0,c0)||c0?.hasAttribute("aria-hidden")){let C0=c0;if(c0=xz(c0),c0===C0)break}c0?.focus()}}),_0=h0("button",X,{enabled:!j0,stateAttributesMapping:vX,state:r0,ref:n,props:R0});if(j0)return d4.jsx(tO,{tag:"button",render:W,className:K,state:r0,refs:n,props:R0,stateAttributesMapping:vX});if(I)return d4.jsxs(Cw.Fragment,{children:[d4.jsx(l8,{ref:I0,onFocus:j1},`${h}-pre-focus-guard`),d4.jsx(Cw.Fragment,{children:_0},h),d4.jsx(l8,{ref:M.context.triggerFocusTargetRef,onFocus:b0},`${h}-post-focus-guard`)]});return d4.jsx(Cw.Fragment,{children:_0},h)});Uq.displayName="MenuTrigger";function mS(J,X){let Y=a1(),[W,K]=Cw.useState(!1);return k0(()=>{if(J&&X==="trigger-hover")K(!0),Y.start(_j,()=>{K(!1)});else if(!J)Y.clear(),K(!1)},[J,X,Y]),W}function dS(){let J=C5(!0),X=p1(!0),Y=KQ(!0);return Cw.useMemo(()=>{if(Y)return{type:"menubar",context:Y};if(J&&!X)return{type:"context-menu",context:J};return{type:void 0}},[J,X,Y])}var i8=c(G0(),1);var aX=i8.forwardRef(function(X,Y){let{render:W,className:K,label:U,id:q,nativeButton:_=!1,openOnHover:L=!0,delay:F=100,closeDelay:N=0,disabled:V=!1,...k}=X,A=v5(),D=y5(),{store:M}=p1(),h=ww(q),v=M.useState("open"),x=M.useState("floatingRootContext"),I=M.useState("floatingTreeRoot"),b=p_(h,M),E=i8.useCallback((S0)=>{let V0=b(S0);if(S0!==null&&M.select("open")&&M.select("activeTriggerId")==null)M.update({activeTriggerId:h,activeTriggerElement:S0,closeDelay:N});return V0},[b,N,M,h]),m=i8.useRef(null),R=i8.useCallback((S0)=>{m.current=S0,M.set("activeTriggerElement",S0)},[M]),S=_Q();if(!S?.parentMenu)throw Error("Base UI: <Menu.SubmenuTrigger> must be placed in <Menu.SubmenuRoot>.");M.useSyncedValue("closeDelay",N);let p=S.parentMenu,d=p.useState("itemProps"),w0=p.useState("isActive",A.index),t=i8.useMemo(()=>({type:"submenu-trigger",setActive:()=>p.set("activeIndex",A.index)}),[p,A.index]),u=M.useState("disabled"),Q0=V||u,{getItemProps:r,itemRef:e}=f4({closeOnClick:!1,disabled:Q0,highlighted:w0,id:h,store:M,nativeButton:_,itemMetadata:t,nodeId:D?.nodeId}),o=M.useState("hoverEnabled"),g=M.useState("allowMouseEnter"),X0=e7(x,{enabled:o&&L&&!Q0&&g,handleClose:z9({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:F,delay:{open:F,close:N},triggerElementRef:m,externalTree:I}),P=r7(x,{enabled:!Q0,event:"mousedown",toggle:!L,ignoreMouse:L,stickIfOpen:!1}),z0=$5([P]),U0=M.useState("triggerProps",!0);delete U0.id;let J0=i8.useMemo(()=>({disabled:Q0,highlighted:w0,open:v}),[Q0,w0,v]);return h0("div",X,{state:J0,stateAttributesMapping:lz,props:[z0.getReferenceProps(),X0,U0,d,{tabIndex:v||w0?0:-1,onBlur(){if(w0)p.set("activeIndex",null)}},k,r],ref:[Y,A.ref,e,E,R]})});aX.displayName="MenuSubmenuTrigger";class kQ{constructor(){this.store=new JZ}open(J){let X=J?this.store.context.triggerElements.getById(J):void 0;if(J&&!X)throw Error(`Base UI: MenuHandle.open: No trigger found with id "${J}".`);this.store.setOpen(!0,P0("imperative-action",void 0,X))}close(){this.store.setOpen(!1,P0("imperative-action",void 0,void 0))}get isOpen(){return this.store.state.open}}function wD(){return new kQ}var jQ=c(x1(),1);function zD(J){let[X,Y]=$8.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),W=$8.useRef(null),K=$8.useRef(null),U=$8.useRef(null),q=$8.useRef(null),_=$8.useRef(!0),L=$8.useRef(null),F=J2(),N=$8.useMemo(()=>({anchor:X,setAnchor:Y,actionsRef:U,backdropRef:W,internalBackdropRef:K,positionerRef:q,allowMouseUpTriggerRef:_,initialCursorPointRef:L,rootId:F}),[X,F]);return jQ.jsx(pG.Provider,{value:N,children:jQ.jsx(sz.Provider,{value:void 0,children:jQ.jsx(AQ.Root,{...J})})})}var r8=c(G0(),1);var ZD=500,Hq=r8.forwardRef(function(X,Y){let{render:W,className:K,...U}=X,{setAnchor:q,actionsRef:_,internalBackdropRef:L,backdropRef:F,positionerRef:N,allowMouseUpTriggerRef:V,initialCursorPointRef:k,rootId:A}=C5(!1),{store:D}=p1(!1),M=D.useState("open"),h=r8.useRef(null),v=r8.useRef(null),x=a1(),I=a1(),b=r8.useRef(!1);function E(t,u,Q0){let r=Q0.type.startsWith("touch");k.current={x:t,y:u},q({getBoundingClientRect(){return DOMRect.fromRect({width:r?10:0,height:r?10:0,x:t,y:u})}}),b.current=!1,_.current?.setOpen(!0,P0(B0.triggerPress,Q0)),I.start(ZD,()=>{b.current=!0})}function m(t){V.current=!0,Xw(t),E(t.clientX,t.clientY,t.nativeEvent),Dw(h.current).addEventListener("mouseup",(Q0)=>{if(V.current=!1,!b.current)return;I.clear(),b.current=!1;let r=f1(Q0);if(t0(N.current,r))return;if(A&&r&&rX(r)===A)return;_.current?.setOpen(!1,P0(B0.cancelOpen,Q0))},{once:!0})}function R(t){if(V.current=!1,t.touches.length===1){t.stopPropagation();let u=t.touches[0];v.current={x:u.clientX,y:u.clientY},x.start(ZD,()=>{if(v.current)E(v.current.x,v.current.y,t.nativeEvent)})}}function S(t){if(x.isStarted()&&v.current&&t.touches.length===1){let u=t.touches[0],Q0=10,r=Math.abs(u.clientX-v.current.x),e=Math.abs(u.clientY-v.current.y);if(r>10||e>10)x.clear()}}function p(){x.clear(),v.current=null}r8.useEffect(()=>{function t(Q0){let e=f1(Q0);if(t0(h.current,e)||t0(L.current,e)||t0(F.current,e))Q0.preventDefault()}let u=Dw(h.current);return u.addEventListener("contextmenu",t),()=>{u.removeEventListener("contextmenu",t)}},[F,L]);let d=r8.useMemo(()=>({open:M}),[M]);return h0("div",X,{state:d,ref:[h,Y],props:[{onContextMenu:m,onTouchStart:R,onTouchMove:S,onTouchEnd:p,onTouchCancel:p,style:{WebkitTouchCallout:"none"}},U],stateAttributesMapping:vX})});Hq.displayName="ContextMenuTrigger";var a8={};qz(a8,{createHandle:()=>xO,Viewport:()=>$q,Trigger:()=>Jq,Title:()=>Zq,Root:()=>$D,Portal:()=>zq,Popup:()=>wq,Handle:()=>RG,Description:()=>e_,Close:()=>t_,Backdrop:()=>n_});var JD=c(G0(),1);var XD=c(x1(),1);function $D(J){let{children:X,open:Y,defaultOpen:W=!1,onOpenChange:K,onOpenChangeComplete:U,disablePointerDismissal:q=!1,modal:_=!0,actionsRef:L,handle:F,triggerId:N,defaultTriggerId:V=null}=J,k=pw(!0),A=Boolean(k),D=r1(()=>{return F?.store??new xX({open:Y??W,activeTriggerId:N!==void 0?N:V,modal:_,disablePointerDismissal:q,nested:A})}).current;D.useControlledProp("open",Y,W),D.useControlledProp("activeTriggerId",N,V),D.useSyncedValues({disablePointerDismissal:q,nested:A,modal:_}),D.useContextCallback("onOpenChange",K),D.useContextCallback("onOpenChangeComplete",U);let M=D.useState("payload");FO({store:D,actionsRef:L,parentContext:k?.store.context,onOpenChange:K,triggerIdProp:N});let h=JD.useMemo(()=>({store:D}),[D]);return XD.jsx(vG.Provider,{value:h,children:typeof X==="function"?X({payload:M}):X})}var GD=c(G0(),1);var S6=c(G0(),1);var MQ="data-composite-item-active";var uS=[];function YD(J){let{itemSizes:X,cols:Y=1,loopFocus:W=!0,dense:K=!1,orientation:U="both",direction:q,highlightedIndex:_,onHighlightedIndexChange:L,rootRef:F,enableHomeAndEndKeys:N=!1,stopEventPropagation:V=!1,disabledIndices:k,modifierKeys:A=uS}=J,[D,M]=S6.useState(0),h=Y>1,v=S6.useRef(null),x=O5(v,F),I=S6.useRef([]),b=S6.useRef(!1),E=_??D,m=F0((p,d=!1)=>{if((L??M)(p),d){let w0=I.current[p];__(v.current,w0,q,U)}}),R=F0((p)=>{if(p.size===0||b.current)return;b.current=!0;let d=Array.from(p.keys()),w0=d.find((u)=>u?.hasAttribute(MQ))??null,t=w0?d.indexOf(w0):-1;if(t!==-1)m(t);__(v.current,w0,q,U)}),S=S6.useMemo(()=>({"aria-orientation":U==="both"?void 0:U,ref:x,onFocus(p){if(!v.current||!H_(p.target))return;p.target.setSelectionRange(0,p.target.value.length??0)},onKeyDown(p){let d=N?JM:U_;if(!d.has(p.key))return;if(pS(p,A))return;if(!v.current)return;let t=q==="rtl",u=t?vz:c7,Q0={horizontal:u,vertical:S4,both:u}[U],r=t?c7:vz,e={horizontal:r,vertical:p7,both:r}[U];if(H_(p.target)&&!jj(p.target)){let J0=p.target.selectionStart,L0=p.target.selectionEnd,S0=p.target.value??"";if(J0==null||p.shiftKey||J0!==L0)return;if(p.key!==e&&J0<S0.length)return;if(p.key!==Q0&&J0>0)return}let o=E,g=m7(I,k),X0=Dz(I,k);if(h){let J0=X||Array.from({length:I.current.length},()=>({width:1,height:1})),L0=UX(J0,Y,K),S0=L0.findIndex((H0)=>H0!=null&&!z8(I,H0,k)),V0=L0.reduce((H0,j0,r0)=>j0!=null&&!z8(I,j0,k)?r0:H0,-1);o=L0[KX({current:L0.map((H0)=>H0?I.current[H0]:null)},{event:p,orientation:U,loopFocus:W,cols:Y,disabledIndices:_X([...k||I.current.map((H0,j0)=>z8(I,j0)?j0:void 0),void 0],L0),minIndex:S0,maxIndex:V0,prevIndex:HX(E>X0?g:E,J0,L0,Y,p.key===S4?"bl":p.key===c7?"tr":"tl"),rtl:t})]}let P={horizontal:[u],vertical:[S4],both:[u,S4]}[U],z0={horizontal:[r],vertical:[p7],both:[r,p7]}[U],U0=h?d:{horizontal:N?zM:W_,vertical:N?ZM:K_,both:d}[U];if(N){if(p.key===hz)o=g;else if(p.key===Ez)o=X0}if(o===E&&(P.includes(p.key)||z0.includes(p.key)))if(W&&o===X0&&P.includes(p.key))o=g;else if(W&&o===g&&z0.includes(p.key))o=X0;else o=Ow(I,{startingIndex:o,decrement:z0.includes(p.key),disabledIndices:k});if(o!==E&&!x6(I,o)){if(V)p.stopPropagation();if(U0.has(p.key))p.preventDefault();m(o,!0),queueMicrotask(()=>{I.current[o]?.focus()})}}}),[Y,K,q,k,I,N,E,h,X,W,x,A,m,U,V]);return S6.useMemo(()=>({props:S,highlightedIndex:E,onHighlightedIndexChange:m,elementsRef:I,disabledIndices:k,onMapChange:R,relayKeyboardEvent:S.onKeyDown}),[S,E,m,I,k,R])}function pS(J,X){for(let Y of XM.values()){if(X.includes(Y))continue;if(J.getModifierState(Y))return!0}return!1}var _q=c(x1(),1);function QD(J){let{render:X,className:Y,refs:W=t2,props:K=t2,state:U=v1,stateAttributesMapping:q,highlightedIndex:_,onHighlightedIndexChange:L,orientation:F,dense:N,itemSizes:V,loopFocus:k,cols:A,enableHomeAndEndKeys:D,onMapChange:M,stopEventPropagation:h=!0,rootRef:v,disabledIndices:x,modifierKeys:I,highlightItemOnHover:b=!1,tag:E="div",...m}=J,R=M5(),{props:S,highlightedIndex:p,onHighlightedIndexChange:d,elementsRef:w0,onMapChange:t,relayKeyboardEvent:u}=YD({itemSizes:V,cols:A,loopFocus:k,dense:N,orientation:F,highlightedIndex:_,onHighlightedIndexChange:L,rootRef:v,stopEventPropagation:h,enableHomeAndEndKeys:D,direction:R,disabledIndices:x,modifierKeys:I}),Q0=h0(E,J,{state:U,ref:W,props:[S,...K,m],stateAttributesMapping:q}),r=GD.useMemo(()=>({highlightedIndex:p,onHighlightedIndexChange:d,highlightItemOnHover:b,relayKeyboardEvent:u}),[p,d,b,u]);return _q.jsx(dY.Provider,{value:r,children:_q.jsx(Vz,{elementsRef:w0,onMapChange:(e)=>{M?.(e),t(e)},children:Q0})})}function XZ(J){let X=uw(J),Y=parseFloat(X.width)||0,W=parseFloat(X.height)||0,K=O1(J),U=K?J.offsetWidth:Y,q=K?J.offsetHeight:W;if(I4(Y)!==U||I4(W)!==q)Y=U,W=q;return{width:Y,height:W}}var oX=c(G0(),1);var cS=typeof ResizeObserver<"u",lS=()=>!0;function WD(J){let{popupElement:X,positionerElement:Y,content:W,mounted:K,enabled:U=lS,onMeasureLayout:q,onMeasureLayoutComplete:_,side:L,direction:F}=J,N=oX.useRef(!0),V=kz(X,!0,!1),k=x5(),A=oX.useRef(null),D=F0(q),M=F0(_),h=oX.useMemo(()=>{let v=L==="top",x=L==="left";if(F==="rtl")v=v||L==="inline-end",x=x||L==="inline-end";else v=v||L==="inline-start",x=x||L==="inline-start";return v?{position:"absolute",[L==="top"?"bottom":"top"]:"0",[x?"right":"left"]:"0"}:v1},[L,F]);k0(()=>{if(!K||!U()||!cS){N.current=!0,A.current=null;return}if(!X||!Y)return;Object.entries(h).forEach(([p,d])=>{X.style.setProperty(p,d)});let v=new ResizeObserver((p)=>{let d=p[0];if(d)if(A.current===null)A.current={width:Math.ceil(d.borderBoxSize[0].inlineSize),height:Math.ceil(d.borderBoxSize[0].blockSize)};else A.current.width=Math.ceil(d.borderBoxSize[0].inlineSize),A.current.height=Math.ceil(d.borderBoxSize[0].blockSize)});v.observe(X),X.style.setProperty("--popup-width","auto"),X.style.setProperty("--popup-height","auto");let x=sX(X,"position","static"),I=sX(X,"transform","none"),b=sX(X,"scale","1"),E=sX(Y,"--available-width","max-content"),m=sX(Y,"--available-height","max-content");if(D?.(),N.current||A.current===null){Y.style.setProperty("--positioner-width","max-content"),Y.style.setProperty("--positioner-height","max-content");let p=XZ(X);return Y.style.setProperty("--positioner-width",`${p.width}px`),Y.style.setProperty("--positioner-height",`${p.height}px`),x(),I(),b(),E(),m(),M?.(null,p),N.current=!1,()=>{v.disconnect()}}X.style.setProperty("--popup-width","auto"),X.style.setProperty("--popup-height","auto"),Y.style.setProperty("--positioner-width","max-content"),Y.style.setProperty("--positioner-height","max-content");let R=XZ(X);X.style.setProperty("--popup-width",`${A.current.width}px`),X.style.setProperty("--popup-height",`${A.current.height}px`),x(),I(),E(),m(),M?.(A.current,R),Y.style.setProperty("--positioner-width",`${R.width}px`),Y.style.setProperty("--positioner-height",`${R.height}px`);let S=new AbortController;return k.request(()=>{X.style.setProperty("--popup-width",`${R.width}px`),X.style.setProperty("--popup-height",`${R.height}px`),V(()=>{X.style.setProperty("--popup-width","auto"),X.style.setProperty("--popup-height","auto")},S.signal)}),()=>{v.disconnect(),S.abort(),k.cancel()}},[W,X,Y,V,k,U,K,D,M,h])}function sX(J,X,Y){let W=J.style.getPropertyValue(X);return J.style.setProperty(X,Y),()=>{J.style.setProperty(X,W)}}var KD=c(G0(),1);function UD(J){let[X,Y]=KD.useState({current:J,previous:null});if(J!==X.current)Y({current:J,previous:X.current});return X.previous}var OQ=c(G0(),1),HD=c(m8(),1);var _D=c(x1(),1),qq=OQ.forwardRef(function(X,Y){let{children:W,container:K,className:U,render:q,..._}=X,{portalNode:L,portalSubtree:F}=HG({container:K,ref:Y,componentProps:X,elementProps:_});if(!F&&!L)return null;return _D.jsxs(OQ.Fragment,{children:[F,L&&HD.createPortal(W,L)]})});qq.displayName="FloatingPortalLite";var R6={};qz(R6,{Tab:()=>Vq,Root:()=>Lq,Panel:()=>Nq,List:()=>Aq,Indicator:()=>Fq});var Y2=c(G0(),1);var DQ=c(G0(),1),TQ=DQ.createContext(void 0);TQ.displayName="TabsRootContext";function C6(){let J=DQ.useContext(TQ);if(J===void 0)throw Error("Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.");return J}var qD=function(J){return J.activationDirection="data-activation-direction",J.orientation="data-orientation",J}({});var u4={tabActivationDirection:(J)=>({[qD.activationDirection]:J})};var Bq=c(x1(),1),Lq=Y2.forwardRef(function(X,Y){let{className:W,defaultValue:K=0,onValueChange:U,orientation:q="horizontal",render:_,value:L,...F}=X,N=M5(),V=Object.hasOwn(X,"defaultValue"),k=Y2.useRef([]),[A,D]=Y2.useState(()=>new Map),[M,h]=Lz({controlled:L,default:K,name:"Tabs",state:"value"}),v=L!==void 0,[x,I]=Y2.useState(()=>new Map),[b,E]=Y2.useState("none"),m=F0((o,g)=>{if(U?.(o,g),g.isCanceled)return;h(o),E(g.activationDirection)}),R=F0((o,g)=>{D((X0)=>{if(X0.get(o)===g)return X0;let P=new Map(X0);return P.set(o,g),P})}),S=F0((o,g)=>{D((X0)=>{if(!X0.has(o)||X0.get(o)!==g)return X0;let P=new Map(X0);return P.delete(o),P})}),p=Y2.useCallback((o)=>{return A.get(o)},[A]),d=Y2.useCallback((o)=>{for(let g of x.values())if(o===g?.value)return g?.id;return},[x]),w0=Y2.useCallback((o)=>{if(o===void 0)return null;for(let[g,X0]of x.entries())if(X0!=null&&o===(X0.value??X0.index))return g;return null},[x]),t=Y2.useMemo(()=>({direction:N,getTabElementBySelectedValue:w0,getTabIdByPanelValue:d,getTabPanelIdByValue:p,onValueChange:m,orientation:q,registerMountedTabPanel:R,setTabMap:I,unregisterMountedTabPanel:S,tabActivationDirection:b,value:M}),[N,w0,d,p,m,q,R,I,S,b,M]),u=Y2.useMemo(()=>{for(let o of x.values())if(o!=null&&o.value===M)return o;return},[x,M]),Q0=Y2.useMemo(()=>{for(let o of x.values())if(o!=null&&!o.disabled)return o.value;return},[x]);k0(()=>{if(v||x.size===0)return;let o=u?.disabled,g=u==null&&M!==null;if(V&&o&&M===K)return;if(!o&&!g)return;let P=Q0??null;if(M===P)return;h(P),E("none")},[K,Q0,V,v,u,E,h,x,M]);let e=h0("div",X,{state:{orientation:q,tabActivationDirection:b},ref:Y,props:F,stateAttributesMapping:u4});return Bq.jsx(TQ.Provider,{value:t,children:Bq.jsx(Vz,{elementsRef:k,children:e})})});Lq.displayName="TabsRoot";var y6=c(G0(),1);var xQ=c(G0(),1),vQ=xQ.createContext(void 0);vQ.displayName="TabsListContext";function hQ(){let J=xQ.useContext(vQ);if(J===void 0)throw Error("Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.");return J}var Vq=y6.forwardRef(function(X,Y){let{className:W,disabled:K=!1,render:U,value:q,id:_,nativeButton:L=!0,...F}=X,{value:N,getTabPanelIdByValue:V,orientation:k}=C6(),{activateOnFocus:A,highlightedTabIndex:D,onTabActivation:M,setHighlightedTabIndex:h,tabsListElement:v}=hQ(),x=ww(_),I=y6.useMemo(()=>({disabled:K,id:x,value:q}),[K,x,q]),{compositeProps:b,compositeRef:E,index:m}=VQ({metadata:I}),R=q===N,S=y6.useRef(!1);k0(()=>{if(S.current){S.current=!1;return}if(!(R&&m>-1&&D!==m))return;let X0=v;if(X0!=null){let P=X2(Dw(X0));if(P&&t0(X0,P))return}if(!K)h(m)},[R,m,D,h,K,v]);let{getButtonProps:p,buttonRef:d}=Z5({disabled:K,native:L,focusableWhenDisabled:!0}),w0=V(q),t=y6.useRef(!1),u=y6.useRef(!1);function Q0(X0){if(R||K)return;M(q,P0(B0.none,X0.nativeEvent,void 0,{activationDirection:"none"}))}function r(X0){if(R)return;if(m>-1&&!K)h(m);if(K)return;if(A&&(!t.current||t.current&&u.current))M(q,P0(B0.none,X0.nativeEvent,void 0,{activationDirection:"none"}))}function e(X0){if(R||K)return;t.current=!0;function P(){t.current=!1,u.current=!1}if(!X0.button||X0.button===0)u.current=!0,Dw(X0.currentTarget).addEventListener("pointerup",P,{once:!0})}let o=y6.useMemo(()=>({disabled:K,active:R,orientation:k}),[K,R,k]);return h0("button",X,{state:o,ref:[Y,d,E],props:[b,{role:"tab","aria-controls":w0,"aria-selected":R,id:x,onClick:Q0,onFocus:r,onPointerDown:e,[MQ]:R?"":void 0,onKeyDownCapture(){S.current=!0}},F,p]})});Vq.displayName="TabsTab";var Q5=c(G0(),1);var BD='!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';var J9=function(J){return J.activeTabLeft="--active-tab-left",J.activeTabRight="--active-tab-right",J.activeTabTop="--active-tab-top",J.activeTabBottom="--active-tab-bottom",J.activeTabWidth="--active-tab-width",J.activeTabHeight="--active-tab-height",J}({});var EQ=c(x1(),1),iS={...u4,activeTabPosition:()=>null,activeTabSize:()=>null},Fq=Q5.forwardRef(function(X,Y){let{className:W,render:K,renderBeforeHydration:U=!1,...q}=X,{getTabElementBySelectedValue:_,orientation:L,tabActivationDirection:F,value:N}=C6(),{tabsListElement:V}=hQ(),[k,A]=Q5.useState(!1),{value:D}=C6();Nz(()=>A(!0));let M=KO();Q5.useEffect(()=>{if(N!=null&&V!=null&&typeof ResizeObserver<"u"){let u=new ResizeObserver(M);return u.observe(V),()=>{u.disconnect()}}return},[N,V,M]);let h=0,v=0,x=0,I=0,b=0,E=0,m=!1;if(N!=null&&V!=null){let u=_(N);if(m=!0,u!=null){let{width:Q0,height:r}=XZ(u),{width:e,height:o}=XZ(V),g=u.getBoundingClientRect(),X0=V.getBoundingClientRect(),P=e>0?X0.width/e:1,z0=o>0?X0.height/o:1;if(Math.abs(P)>Number.EPSILON&&Math.abs(z0)>Number.EPSILON){let J0=g.left-X0.left,L0=g.top-X0.top;h=J0/P+V.scrollLeft-V.clientLeft,x=L0/z0+V.scrollTop-V.clientTop}else h=u.offsetLeft,x=u.offsetTop;b=Q0,E=r,v=V.scrollWidth-h-b,I=V.scrollHeight-x-E}}let R=Q5.useMemo(()=>m?{left:h,right:v,top:x,bottom:I}:null,[h,v,x,I,m]),S=Q5.useMemo(()=>m?{width:b,height:E}:null,[b,E,m]),p=Q5.useMemo(()=>{if(!m)return;return{[J9.activeTabLeft]:`${h}px`,[J9.activeTabRight]:`${v}px`,[J9.activeTabTop]:`${x}px`,[J9.activeTabBottom]:`${I}px`,[J9.activeTabWidth]:`${b}px`,[J9.activeTabHeight]:`${E}px`}},[h,v,x,I,b,E,m]),d=m&&b>0&&E>0,w0=Q5.useMemo(()=>({orientation:L,activeTabPosition:R,activeTabSize:S,tabActivationDirection:F}),[L,R,S,F]),t=h0("span",X,{state:w0,ref:Y,props:[{role:"presentation",style:p,hidden:!d},q,{suppressHydrationWarning:!0}],stateAttributesMapping:iS});if(D==null)return null;return EQ.jsxs(Q5.Fragment,{children:[t,!k&&U&&EQ.jsx("script",{dangerouslySetInnerHTML:{__html:BD},suppressHydrationWarning:!0})]})});Fq.displayName="TabsIndicator";var nX=c(G0(),1);var LD=function(J){return J.index="data-index",J.activationDirection="data-activation-direction",J.orientation="data-orientation",J.hidden="data-hidden",J}({});var Nq=nX.forwardRef(function(X,Y){let{className:W,value:K,render:U,keepMounted:q=!1,..._}=X,{value:L,getTabIdByPanelValue:F,orientation:N,tabActivationDirection:V,registerMountedTabPanel:k,unregisterMountedTabPanel:A}=C6(),D=ww(),M=nX.useMemo(()=>({id:D,value:K}),[D,K]),{ref:h,index:v}=v5({metadata:M}),x=K!==L,I=F(K),b=nX.useMemo(()=>({hidden:x,orientation:N,tabActivationDirection:V}),[x,N,V]),E=h0("div",X,{state:b,ref:[Y,h],props:[{"aria-labelledby":I,hidden:x,id:D??void 0,role:"tabpanel",tabIndex:x?-1:0,[LD.index]:v},_],stateAttributesMapping:u4});if(k0(()=>{if(x&&!q)return;if(D==null)return;return k(K,D),()=>{A(K,D)}},[x,q,K,D,k,A]),!(!x||q))return null;return E});Nq.displayName="TabsPanel";var Y8=c(G0(),1);var kq=c(x1(),1),Aq=Y8.forwardRef(function(X,Y){let{activateOnFocus:W=!1,className:K,loopFocus:U=!0,render:q,..._}=X,{getTabElementBySelectedValue:L,onValueChange:F,orientation:N,value:V,setTabMap:k,tabActivationDirection:A}=C6(),[D,M]=Y8.useState(0),[h,v]=Y8.useState(null),x=rS(V,N,h,L),I=F0((R,S)=>{if(R!==V){let p=x(R);S.activationDirection=p,F(R,S)}}),b=Y8.useMemo(()=>({orientation:N,tabActivationDirection:A}),[N,A]),E={"aria-orientation":N==="vertical"?"vertical":void 0,role:"tablist"},m=Y8.useMemo(()=>({activateOnFocus:W,highlightedTabIndex:D,onTabActivation:I,setHighlightedTabIndex:M,tabsListElement:h,value:V}),[W,D,I,M,h,V]);return kq.jsx(vQ.Provider,{value:m,children:kq.jsx(QD,{render:q,className:K,state:b,refs:[Y,v],props:[E,_],stateAttributesMapping:u4,highlightedIndex:D,enableHomeAndEndKeys:!0,loopFocus:U,orientation:N,onHighlightedIndexChange:M,onMapChange:k,disabledIndices:t2})})});Aq.displayName="TabsList";function VD(J,X){let{left:Y,top:W}=J.getBoundingClientRect(),{left:K,top:U}=X.getBoundingClientRect(),q=Y-K,_=W-U;return{left:q,top:_}}function rS(J,X,Y,W){let[K,U]=Y8.useState(null);return k0(()=>{if(J==null||Y==null){U(null);return}let q=W(J);if(q==null){U(null);return}let{left:_,top:L}=VD(q,Y);U(X==="horizontal"?_:L)},[X,W,Y,J]),Y8.useCallback((q)=>{if(q===J)return"none";if(q==null)return U(null),"none";if(q!=null&&Y!=null){let _=W(q);if(_!=null){let{left:L,top:F}=VD(_,Y);if(K==null)return U(X==="horizontal"?L:F),"none";if(X==="horizontal"){if(L<K)return U(L),"left";if(L>K)return U(L),"right"}else if(F<K)return U(F),"up";else if(F>K)return U(F),"down"}}return"none"},[W,X,K,Y,J])}var o8={};qz(o8,{createHandle:()=>vD,Viewport:()=>Iq,Trigger:()=>jq,Root:()=>AD,Provider:()=>Eq,Positioner:()=>Dq,Portal:()=>Oq,Popup:()=>Tq,Handle:()=>dQ,Arrow:()=>xq});var s8=c(G0(),1);var PQ=c(G0(),1),IQ=PQ.createContext(void 0);IQ.displayName="TooltipRootContext";function R5(J){let X=PQ.useContext(IQ);if(X===void 0&&!J)throw Error("Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.");return X}var FD=c(G0(),1),ND=c(m8(),1);var aS={...uz,disabled:p0((J)=>J.disabled),instantType:p0((J)=>J.instantType),isInstantPhase:p0((J)=>J.isInstantPhase),trackCursorAxis:p0((J)=>J.trackCursorAxis),disableHoverablePopup:p0((J)=>J.disableHoverablePopup),lastOpenChangeReason:p0((J)=>J.openChangeReason),closeDelay:p0((J)=>J.closeDelay)};class $Z extends P6{constructor(J){super({...sS(),...J},{popupRef:FD.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Z8},aS)}setOpen=(J,X)=>{let Y=X.reason,W=Y===B0.triggerHover,K=J&&Y===B0.triggerFocus,U=!J&&(Y===B0.triggerPress||Y===B0.escapeKey);if(X.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(J,X),X.isCanceled)return;let q=()=>{let _={open:J,openChangeReason:Y};if(K)_.instantType="focus";else if(U)_.instantType="dismiss";else if(Y===B0.triggerHover)_.instantType=void 0;let L=X.trigger?.id??null;if(L||J)_.activeTriggerId=L,_.activeTriggerElement=X.trigger??null;this.update(_)};if(W)ND.flushSync(q);else q()};static useStore(J,X){let Y=r1(()=>{return J??new $Z(X)}).current,W=n7({popupStore:Y,onOpenChange:Y.setOpen});return Y.state.floatingRootContext=W,Y}}function sS(){return{...dz(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0}}var kD=c(x1(),1);function AD(J){let{disabled:X=!1,defaultOpen:Y=!1,open:W,disableHoverablePopup:K=!1,trackCursorAxis:U="none",actionsRef:q,onOpenChange:_,onOpenChangeComplete:L,handle:F,triggerId:N,defaultTriggerId:V=null,children:k}=J,A=$Z.useStore(F?.store,{open:W??Y,activeTriggerId:N!==void 0?N:V});A.useControlledProp("open",W,Y),A.useControlledProp("activeTriggerId",N,V),A.useContextCallback("onOpenChange",_),A.useContextCallback("onOpenChangeComplete",L);let D=A.useState("open"),M=A.useState("activeTriggerId"),h=A.useState("payload");A.useSyncedValues({trackCursorAxis:U,disableHoverablePopup:K});let v=!X&&D;k0(()=>{if(D&&X)A.setOpen(!1,P0(B0.disabled))},[D,X,A]),A.useSyncedValue("disabled",X),fz(A);let{forceUnmount:x,transitionStatus:I}=mz(v,A),b=A.useState("isInstantPhase"),E=A.useState("instantType"),m=A.useState("lastOpenChangeReason"),R=s8.useRef(null);k0(()=>{if(I==="ending"&&m===B0.none||I!=="ending"&&b){if(E!=="delay")R.current=E;A.set("instantType","delay")}else if(R.current!==null)A.set("instantType",R.current),R.current=null},[I,b,m,E,A]),k0(()=>{if(v){if(M==null)A.set("payload",void 0)}},[A,M,v]);let S=s8.useCallback(()=>{A.setOpen(!1,oS(A,B0.imperativeAction))},[A]);s8.useImperativeHandle(q,()=>({unmount:x,close:S}),[x,S]);let p=A.useState("floatingRootContext"),d=jX(p,{enabled:!X}),w0=s7(p,{enabled:!X,referencePress:!0}),t=v_(p,{enabled:!X&&U!=="none",axis:U==="none"?void 0:U}),{getReferenceProps:u,getFloatingProps:Q0,getTriggerProps:r}=$5([d,w0,t]),e=s8.useMemo(()=>u(),[u]),o=s8.useMemo(()=>r(),[r]),g=s8.useMemo(()=>Q0(),[Q0]);return A.useSyncedValues({floatingRootContext:p,activeTriggerProps:e,inactiveTriggerProps:o,popupProps:g}),kD.jsx(IQ.Provider,{value:A,children:typeof k==="function"?k({payload:h}):k})}function oS(J,X){let Y=P0(X);return Y.preventUnmountOnClose=()=>{J.set("preventUnmountingOnClose",!0)},Y}var YZ=c(G0(),1);var bQ=c(G0(),1),SQ=bQ.createContext(void 0);SQ.displayName="TooltipProviderContext";function jD(){return bQ.useContext(SQ)}var MD=600;var jq=YZ.forwardRef(function(X,Y){let{className:W,render:K,handle:U,payload:q,disabled:_,delay:L,closeDelay:F,id:N,...V}=X,k=R5(!0),A=U?.store??k;if(!A)throw Error("Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.");let D=ww(N),M=A.useState("isTriggerActive",D),h=A.useState("floatingRootContext"),v=A.useState("isOpenedByTrigger",D),x=YZ.useRef(null),I=L??MD,b=F??0,{registerTrigger:E,isMountedByThisTrigger:m}=gz(D,x,A,{payload:q,closeDelay:b}),R=jD(),{delayRef:S,isInstantPhase:p,hasProvider:d}=A_(h,{open:v});A.useSyncedValue("isInstantPhase",p);let w0=A.useState("disabled"),t=_??w0,u=A.useState("trackCursorAxis"),Q0=A.useState("disableHoverablePopup"),r=e7(h,{enabled:!t,mouseOnly:!0,move:!1,handleClose:!Q0&&u!=="both"?z9():null,restMs(){let X0=R?.delay,P=typeof S.current==="object"?S.current.open:void 0,z0=I;if(d)if(P!==0)z0=L??X0??I;else z0=0;return z0},delay(){let X0=typeof S.current==="object"?S.current.close:void 0,P=b;if(F==null&&d)P=X0;return{close:P}},triggerElementRef:x,isActiveTrigger:M}),e=YZ.useMemo(()=>({open:v}),[v]),o=A.useState("triggerProps",m);return h0("button",X,{state:e,ref:[Y,E,x],props:[r,o,{id:D},V],stateAttributesMapping:lz})});jq.displayName="TooltipTrigger";var DD=c(G0(),1);var CQ=c(G0(),1),yQ=CQ.createContext(void 0);yQ.displayName="TooltipPortalContext";function OD(){let J=CQ.useContext(yQ);if(J===void 0)throw Error("Base UI: <Tooltip.Portal> is missing.");return J}var Mq=c(x1(),1),Oq=DD.forwardRef(function(X,Y){let{keepMounted:W=!1,...K}=X;if(!(R5().useState("mounted")||W))return null;return Mq.jsx(yQ.Provider,{value:W,children:Mq.jsx(qq,{ref:Y,...K})})});Oq.displayName="TooltipPortal";var GZ=c(G0(),1);var RQ=c(G0(),1),gQ=RQ.createContext(void 0);gQ.displayName="TooltipPositionerContext";function fQ(){let J=RQ.useContext(gQ);if(J===void 0)throw Error("Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.");return J}var TD=c(x1(),1),Dq=GZ.forwardRef(function(X,Y){let{render:W,className:K,anchor:U,positionMethod:q="absolute",side:_="top",align:L="center",sideOffset:F=0,alignOffset:N=0,collisionBoundary:V="clipping-ancestors",collisionPadding:k=5,arrowPadding:A=5,sticky:D=!1,disableAnchorTracking:M=!1,collisionAvoidance:h=EY,...v}=X,x=R5(),I=OD(),b=x.useState("open"),E=x.useState("mounted"),m=x.useState("trackCursorAxis"),R=x.useState("disableHoverablePopup"),S=x.useState("floatingRootContext"),p=x.useState("instantType"),d=x.useState("transitionStatus"),w0=gG({anchor:U,positionMethod:q,floatingRootContext:S,mounted:E,side:_,sideOffset:F,align:L,alignOffset:N,collisionBoundary:V,collisionPadding:k,sticky:D,arrowPadding:A,disableAnchorTracking:M,keepMounted:I,collisionAvoidance:h,adaptiveOrigin:PO}),t=GZ.useMemo(()=>{let e={};if(!b||m==="both"||R)e.pointerEvents="none";return{role:"presentation",hidden:!E,style:{...w0.positionerStyles,...e}}},[b,m,R,E,w0.positionerStyles]),u=GZ.useMemo(()=>({open:b,side:w0.side,align:w0.align,anchorHidden:w0.anchorHidden,instant:m!=="none"?"tracking-cursor":p}),[b,w0.side,w0.align,w0.anchorHidden,m,p]),Q0=GZ.useMemo(()=>({...u,arrowRef:w0.arrowRef,arrowStyles:w0.arrowStyles,arrowUncentered:w0.arrowUncentered}),[u,w0.arrowRef,w0.arrowStyles,w0.arrowUncentered]),r=h0("div",X,{state:u,props:[t,az(d),v],ref:[Y,x.useStateSetter("positionerElement")],stateAttributesMapping:xw});return TD.jsx(gQ.Provider,{value:Q0,children:r})});Dq.displayName="TooltipPositioner";var QZ=c(G0(),1);var nS={...xw,...h2},Tq=QZ.forwardRef(function(X,Y){let{className:W,render:K,...U}=X,q=R5(),{side:_,align:L}=fQ(),F=q.useState("open"),N=q.useState("mounted"),V=q.useState("instantType"),k=q.useState("transitionStatus"),A=q.useState("popupProps"),D=q.useState("payload"),M=q.useState("popupElement"),h=q.useState("positionerElement"),v=q.useState("floatingRootContext"),x=M5();P5({open:F,ref:q.context.popupRef,onComplete(){if(F)q.context.onOpenChangeComplete?.(!0)}});function I(){v.context.events.emit("measure-layout")}function b(d,w0){v.context.events.emit("measure-layout-complete",{previousDimensions:d,nextDimensions:w0})}let E=QZ.useCallback(()=>q.context.triggerElements.size>1,[q]);WD({popupElement:M,positionerElement:h,mounted:N,content:D,enabled:E,onMeasureLayout:I,onMeasureLayoutComplete:b,side:_,direction:x});let m=q.useState("disabled"),R=q.useState("closeDelay");OX(v,{enabled:!m,closeDelay:R});let S=QZ.useMemo(()=>({open:F,side:_,align:L,instant:V,transitionStatus:k}),[F,_,L,V,k]);return h0("div",X,{state:S,ref:[Y,q.context.popupRef,q.useStateSetter("popupElement")],props:[A,az(k),U],stateAttributesMapping:nS})});Tq.displayName="TooltipPopup";var mQ=c(G0(),1);var xq=mQ.forwardRef(function(X,Y){let{className:W,render:K,...U}=X,_=R5().useState("instantType"),{open:L,arrowRef:F,side:N,align:V,arrowUncentered:k,arrowStyles:A}=fQ(),D=mQ.useMemo(()=>({open:L,side:N,align:V,uncentered:k,instant:_}),[L,N,V,k,_]);return h0("div",X,{state:D,ref:[Y,F],props:[{style:A,"aria-hidden":!0},U],stateAttributesMapping:xw})});xq.displayName="TooltipArrow";var vq=c(G0(),1);var hq=c(x1(),1),Eq=function(X){let{delay:Y,closeDelay:W,timeout:K=400}=X,U=vq.useMemo(()=>({delay:Y,closeDelay:W}),[Y,W]),q=vq.useMemo(()=>({open:Y,close:W}),[Y,W]);return hq.jsx(SQ.Provider,{value:U,children:hq.jsx(k_,{delay:q,timeoutMs:K,children:X.children})})};Eq.displayName="TooltipProvider";var cw=c(G0(),1);var Pq=function(J){return J.popupWidth="--popup-width",J.popupHeight="--popup-height",J}({});var WZ=c(x1(),1),tS={activationDirection:(J)=>J?{"data-activation-direction":J}:null},Iq=cw.forwardRef(function(X,Y){let{render:W,className:K,children:U,...q}=X,_=R5(),L=_.useState("activeTriggerElement"),F=_.useState("open"),N=_.useState("floatingRootContext"),V=_.useState("instantType"),k=UD(F?L:null),A=cw.useRef(null),[D,M]=cw.useState(null),[h,v]=cw.useState(null),x=cw.useRef(null),I=cw.useRef(null),b=kz(x,!0,!1),E=x5(),[m,R]=cw.useState(null),[S,p]=cw.useState(!1),d=F0(()=>{x.current?.style.setProperty("animation","none"),x.current?.style.setProperty("transition","none"),I.current?.style.setProperty("display","none")}),w0=F0((e)=>{if(x.current?.style.removeProperty("animation"),x.current?.style.removeProperty("transition"),I.current?.style.removeProperty("display"),!m)R(e.previousDimensions)});cw.useEffect(()=>{return N.context.events.on("measure-layout",d),N.context.events.on("measure-layout-complete",w0),()=>{N.context.events.off("measure-layout",d),N.context.events.off("measure-layout-complete",w0)}},[N,d,w0]);let t=cw.useRef(null);k0(()=>{if(L&&k&&L!==k&&t.current!==L&&A.current){M(A.current),p(!0);let e=wC(k,L);v(e),E.request(()=>{E.request(()=>{p(!1),b(()=>{M(null),R(null),A.current=null})})}),t.current=L}},[L,k,D,b,E]),k0(()=>{let e=x.current;if(!e)return;let o=document.createElement("div");for(let g of Array.from(e.childNodes))o.appendChild(g.cloneNode(!0));A.current=o});let u=D!=null,Q0;if(!u)Q0=WZ.jsx("div",{"data-current":!0,ref:x,children:U},"current");else Q0=WZ.jsxs(cw.Fragment,{children:[WZ.jsx("div",{"data-previous":!0,inert:iz(!0),ref:I,style:{[Pq.popupWidth]:`${m?.width}px`,[Pq.popupHeight]:`${m?.height}px`,position:"absolute"},"data-ending-style":S?void 0:""},"previous"),WZ.jsx("div",{"data-current":!0,ref:x,"data-starting-style":S?"":void 0,children:U},"current")]});k0(()=>{let e=I.current;if(!e||!D)return;e.replaceChildren(...Array.from(D.childNodes))},[D]);let r=cw.useMemo(()=>{return{activationDirection:eS(h),transitioning:u,instant:V}},[h,u,V]);return h0("div",X,{state:r,ref:Y,props:[q,{children:Q0}],stateAttributesMapping:tS})});Iq.displayName="TooltipViewport";function eS(J){if(!J)return;return`${xD(J.horizontal,5,"right","left")} ${xD(J.vertical,5,"down","up")}`}function xD(J,X,Y,W){if(J>X)return Y;if(J<-X)return W;return""}function wC(J,X){let Y=J.getBoundingClientRect(),W=X.getBoundingClientRect(),K={x:Y.left+Y.width/2,y:Y.top+Y.height/2},U={x:W.left+W.width/2,y:W.top+W.height/2};return{horizontal:U.x-K.x,vertical:U.y-K.y}}class dQ{constructor(){this.store=new $Z}open(J){let X=J?this.store.context.triggerElements.getById(J):void 0;if(J&&!X)throw Error(`Base UI: TooltipHandle.open: No trigger found with id "${J}".`);this.store.setOpen(!0,P0(B0.imperativeAction,void 0,X))}close(){this.store.setOpen(!1,P0(B0.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}function vD(){return new dQ}function bq(J){return h0(J.defaultTagName??"div",J,J)}var n8=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(J){return this.listeners.add(J),this.onSubscribe(),()=>{this.listeners.delete(J),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var zC={setTimeout:(J,X)=>setTimeout(J,X),clearTimeout:(J)=>clearTimeout(J),setInterval:(J,X)=>setInterval(J,X),clearInterval:(J)=>clearInterval(J)},ZC=class{#w=zC;#z=!1;setTimeoutProvider(J){if(this.#z&&J!==this.#w)console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#w,provider:J});this.#w=J,this.#z=!1}setTimeout(J,X){return this.#z=!0,this.#w.setTimeout(J,X)}clearTimeout(J){this.#w.clearTimeout(J)}setInterval(J,X){return this.#z=!0,this.#w.setInterval(J,X)}clearInterval(J){this.#w.clearInterval(J)}},t8=new ZC;function hD(J){setTimeout(J,0)}var I2=typeof window>"u"||"Deno"in globalThis;function vw(){}function ID(J,X){return typeof J==="function"?J(X):J}function tX(J){return typeof J==="number"&&J>=0&&J!==1/0}function pQ(J,X){return Math.max(J+(X||0)-Date.now(),0)}function G8(J,X){return typeof J==="function"?J(X):J}function b2(J,X){return typeof J==="function"?J(X):J}function cQ(J,X){let{type:Y="all",exact:W,fetchStatus:K,predicate:U,queryKey:q,stale:_}=J;if(q){if(W){if(X.queryHash!==eX(q,X.options))return!1}else if(!Y9(X.queryKey,q))return!1}if(Y!=="all"){let L=X.isActive();if(Y==="active"&&!L)return!1;if(Y==="inactive"&&L)return!1}if(typeof _==="boolean"&&X.isStale()!==_)return!1;if(K&&K!==X.state.fetchStatus)return!1;if(U&&!U(X))return!1;return!0}function lQ(J,X){let{exact:Y,status:W,predicate:K,mutationKey:U}=J;if(U){if(!X.options.mutationKey)return!1;if(Y){if(X9(X.options.mutationKey)!==X9(U))return!1}else if(!Y9(X.options.mutationKey,U))return!1}if(W&&X.state.status!==W)return!1;if(K&&!K(X))return!1;return!0}function eX(J,X){return(X?.queryKeyHashFn||X9)(J)}function X9(J){return JSON.stringify(J,(X,Y)=>Sq(Y)?Object.keys(Y).sort().reduce((W,K)=>{return W[K]=Y[K],W},{}):Y)}function Y9(J,X){if(J===X)return!0;if(typeof J!==typeof X)return!1;if(J&&X&&typeof J==="object"&&typeof X==="object")return Object.keys(X).every((Y)=>Y9(J[Y],X[Y]));return!1}var JC=Object.prototype.hasOwnProperty;function uQ(J,X){if(J===X)return J;let Y=ED(J)&&ED(X);if(!Y&&!(Sq(J)&&Sq(X)))return X;let K=(Y?J:Object.keys(J)).length,U=Y?X:Object.keys(X),q=U.length,_=Y?Array(q):{},L=0;for(let F=0;F<q;F++){let N=Y?F:U[F],V=J[N],k=X[N];if(V===k){if(_[N]=V,Y?F<K:JC.call(J,N))L++;continue}if(V===null||k===null||typeof V!=="object"||typeof k!=="object"){_[N]=k;continue}let A=uQ(V,k);if(_[N]=A,A===V)L++}return K===q&&L===K?J:_}function iQ(J,X){if(!X||Object.keys(J).length!==Object.keys(X).length)return!1;for(let Y in J)if(J[Y]!==X[Y])return!1;return!0}function ED(J){return Array.isArray(J)&&J.length===Object.keys(J).length}function Sq(J){if(!PD(J))return!1;let X=J.constructor;if(X===void 0)return!0;let Y=X.prototype;if(!PD(Y))return!1;if(!Y.hasOwnProperty("isPrototypeOf"))return!1;if(Object.getPrototypeOf(J)!==Object.prototype)return!1;return!0}function PD(J){return Object.prototype.toString.call(J)==="[object Object]"}function bD(J){return new Promise((X)=>{t8.setTimeout(X,J)})}function w$(J,X,Y){if(typeof Y.structuralSharing==="function")return Y.structuralSharing(J,X);else if(Y.structuralSharing!==!1){try{return uQ(J,X)}catch(W){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. [${Y.queryHash}]: ${W}`),W}return uQ(J,X)}return X}function SD(J,X,Y=0){let W=[...J,X];return Y&&W.length>Y?W.slice(1):W}function CD(J,X,Y=0){let W=[X,...J];return Y&&W.length>Y?W.slice(0,-1):W}var $9=Symbol();function rQ(J,X){if(J.queryFn===$9)console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${J.queryHash}'`);if(!J.queryFn&&X?.initialPromise)return()=>X.initialPromise;if(!J.queryFn||J.queryFn===$9)return()=>Promise.reject(Error(`Missing queryFn: '${J.queryHash}'`));return J.queryFn}function Cq(J,X){if(typeof J==="function")return J(...X);return!!J}var XC=class extends n8{#w;#z;#Z;constructor(){super();this.#Z=(J)=>{if(!I2&&window.addEventListener){let X=()=>J();return window.addEventListener("visibilitychange",X,!1),()=>{window.removeEventListener("visibilitychange",X)}}return}}onSubscribe(){if(!this.#z)this.setEventListener(this.#Z)}onUnsubscribe(){if(!this.hasListeners())this.#z?.(),this.#z=void 0}setEventListener(J){this.#Z=J,this.#z?.(),this.#z=J((X)=>{if(typeof X==="boolean")this.setFocused(X);else this.onFocus()})}setFocused(J){if(this.#w!==J)this.#w=J,this.onFocus()}onFocus(){let J=this.isFocused();this.listeners.forEach((X)=>{X(J)})}isFocused(){if(typeof this.#w==="boolean")return this.#w;return globalThis.document?.visibilityState!=="hidden"}},KZ=new XC;function z$(){let J,X,Y=new Promise((K,U)=>{J=K,X=U});Y.status="pending",Y.catch(()=>{});function W(K){Object.assign(Y,K),delete Y.resolve,delete Y.reject}return Y.resolve=(K)=>{W({status:"fulfilled",value:K}),J(K)},Y.reject=(K)=>{W({status:"rejected",reason:K}),X(K)},Y}var yD=hD;function $C(){let J=[],X=0,Y=(_)=>{_()},W=(_)=>{_()},K=yD,U=(_)=>{if(X)J.push(_);else K(()=>{Y(_)})},q=()=>{let _=J;if(J=[],_.length)K(()=>{W(()=>{_.forEach((L)=>{Y(L)})})})};return{batch:(_)=>{let L;X++;try{L=_()}finally{if(X--,!X)q()}return L},batchCalls:(_)=>{return(...L)=>{U(()=>{_(...L)})}},schedule:U,setNotifyFunction:(_)=>{Y=_},setBatchNotifyFunction:(_)=>{W=_},setScheduler:(_)=>{K=_}}}var n1=$C();var YC=class extends n8{#w=!0;#z;#Z;constructor(){super();this.#Z=(J)=>{if(!I2&&window.addEventListener){let X=()=>J(!0),Y=()=>J(!1);return window.addEventListener("online",X,!1),window.addEventListener("offline",Y,!1),()=>{window.removeEventListener("online",X),window.removeEventListener("offline",Y)}}return}}onSubscribe(){if(!this.#z)this.setEventListener(this.#Z)}onUnsubscribe(){if(!this.hasListeners())this.#z?.(),this.#z=void 0}setEventListener(J){this.#Z=J,this.#z?.(),this.#z=J(this.setOnline.bind(this))}setOnline(J){if(this.#w!==J)this.#w=J,this.listeners.forEach((Y)=>{Y(J)})}isOnline(){return this.#w}},UZ=new YC;function GC(J){return Math.min(1000*2**J,30000)}function yq(J){return(J??"online")==="online"?UZ.isOnline():!0}var aQ=class extends Error{constructor(J){super("CancelledError");this.revert=J?.revert,this.silent=J?.silent}};function sQ(J){let X=!1,Y=0,W,K=z$(),U=()=>K.status!=="pending",q=(M)=>{if(!U()){let h=new aQ(M);k(h),J.onCancel?.(h)}},_=()=>{X=!0},L=()=>{X=!1},F=()=>KZ.isFocused()&&(J.networkMode==="always"||UZ.isOnline())&&J.canRun(),N=()=>yq(J.networkMode)&&J.canRun(),V=(M)=>{if(!U())W?.(),K.resolve(M)},k=(M)=>{if(!U())W?.(),K.reject(M)},A=()=>{return new Promise((M)=>{W=(h)=>{if(U()||F())M(h)},J.onPause?.()}).then(()=>{if(W=void 0,!U())J.onContinue?.()})},D=()=>{if(U())return;let M,h=Y===0?J.initialPromise:void 0;try{M=h??J.fn()}catch(v){M=Promise.reject(v)}Promise.resolve(M).then(V).catch((v)=>{if(U())return;let x=J.retry??(I2?0:3),I=J.retryDelay??GC,b=typeof I==="function"?I(Y,v):I,E=x===!0||typeof x==="number"&&Y<x||typeof x==="function"&&x(Y,v);if(X||!E){k(v);return}Y++,J.onFail?.(Y,v),bD(b).then(()=>{return F()?void 0:A()}).then(()=>{if(X)k(v);else D()})})};return{promise:K,status:()=>K.status,cancel:q,continue:()=>{return W?.(),K},cancelRetry:_,continueRetry:L,canStart:N,start:()=>{if(N())D();else A().then(D);return K}}}var oQ=class{#w;destroy(){this.clearGcTimeout()}scheduleGc(){if(this.clearGcTimeout(),tX(this.gcTime))this.#w=t8.setTimeout(()=>{this.optionalRemove()},this.gcTime)}updateGcTime(J){this.gcTime=Math.max(this.gcTime||0,J??(I2?1/0:300000))}clearGcTimeout(){if(this.#w)t8.clearTimeout(this.#w),this.#w=void 0}};var fD=class extends oQ{#w;#z;#Z;#X;#J;#G;#Y;constructor(J){super();this.#Y=!1,this.#G=J.defaultOptions,this.setOptions(J.options),this.observers=[],this.#X=J.client,this.#Z=this.#X.getQueryCache(),this.queryKey=J.queryKey,this.queryHash=J.queryHash,this.#w=gD(this.options),this.state=J.state??this.#w,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#J?.promise}setOptions(J){if(this.options={...this.#G,...J},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let X=gD(this.options);if(X.data!==void 0)this.setState(RD(X.data,X.dataUpdatedAt)),this.#w=X}}optionalRemove(){if(!this.observers.length&&this.state.fetchStatus==="idle")this.#Z.remove(this)}setData(J,X){let Y=w$(this.state.data,J,this.options);return this.#$({data:Y,type:"success",dataUpdatedAt:X?.updatedAt,manual:X?.manual}),Y}setState(J,X){this.#$({type:"setState",state:J,setStateOptions:X})}cancel(J){let X=this.#J?.promise;return this.#J?.cancel(J),X?X.then(vw).catch(vw):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#w)}isActive(){return this.observers.some((J)=>b2(J.options.enabled,this)!==!1)}isDisabled(){if(this.getObserversCount()>0)return!this.isActive();return this.options.queryFn===$9||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){if(this.getObserversCount()>0)return this.observers.some((J)=>G8(J.options.staleTime,this)==="static");return!1}isStale(){if(this.getObserversCount()>0)return this.observers.some((J)=>J.getCurrentResult().isStale);return this.state.data===void 0||this.state.isInvalidated}isStaleByTime(J=0){if(this.state.data===void 0)return!0;if(J==="static")return!1;if(this.state.isInvalidated)return!0;return!pQ(this.state.dataUpdatedAt,J)}onFocus(){this.observers.find((X)=>X.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#J?.continue()}onOnline(){this.observers.find((X)=>X.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#J?.continue()}addObserver(J){if(!this.observers.includes(J))this.observers.push(J),this.clearGcTimeout(),this.#Z.notify({type:"observerAdded",query:this,observer:J})}removeObserver(J){if(this.observers.includes(J)){if(this.observers=this.observers.filter((X)=>X!==J),!this.observers.length){if(this.#J)if(this.#Y)this.#J.cancel({revert:!0});else this.#J.cancelRetry();this.scheduleGc()}this.#Z.notify({type:"observerRemoved",query:this,observer:J})}}getObserversCount(){return this.observers.length}invalidate(){if(!this.state.isInvalidated)this.#$({type:"invalidate"})}async fetch(J,X){if(this.state.fetchStatus!=="idle"&&this.#J?.status()!=="rejected"){if(this.state.data!==void 0&&X?.cancelRefetch)this.cancel({silent:!0});else if(this.#J)return this.#J.continueRetry(),this.#J.promise}if(J)this.setOptions(J);if(!this.options.queryFn){let _=this.observers.find((L)=>L.options.queryFn);if(_)this.setOptions(_.options)}if(!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 Y=new AbortController,W=(_)=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>{return this.#Y=!0,Y.signal}})},K=()=>{let _=rQ(this.options,X),F=(()=>{let N={client:this.#X,queryKey:this.queryKey,meta:this.meta};return W(N),N})();if(this.#Y=!1,this.options.persister)return this.options.persister(_,F,this);return _(F)},q=(()=>{let _={fetchOptions:X,options:this.options,queryKey:this.queryKey,client:this.#X,state:this.state,fetchFn:K};return W(_),_})();if(this.options.behavior?.onFetch(q,this),this.#z=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==q.fetchOptions?.meta)this.#$({type:"fetch",meta:q.fetchOptions?.meta});this.#J=sQ({initialPromise:X?.initialPromise,fn:q.fetchFn,onCancel:(_)=>{if(_ instanceof aQ&&_.revert)this.setState({...this.#z,fetchStatus:"idle"});Y.abort()},onFail:(_,L)=>{this.#$({type:"failed",failureCount:_,error:L})},onPause:()=>{this.#$({type:"pause"})},onContinue:()=>{this.#$({type:"continue"})},retry:q.options.retry,retryDelay:q.options.retryDelay,networkMode:q.options.networkMode,canRun:()=>!0});try{let _=await this.#J.start();if(_===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(_),this.#Z.config.onSuccess?.(_,this),this.#Z.config.onSettled?.(_,this.state.error,this),_}catch(_){if(_ instanceof aQ){if(_.silent)return this.#J.promise;else if(_.revert){if(this.state.data===void 0)throw _;return this.state.data}}throw this.#$({type:"error",error:_}),this.#Z.config.onError?.(_,this),this.#Z.config.onSettled?.(this.state.data,_,this),_}finally{this.scheduleGc()}}#$(J){let X=(Y)=>{switch(J.type){case"failed":return{...Y,fetchFailureCount:J.failureCount,fetchFailureReason:J.error};case"pause":return{...Y,fetchStatus:"paused"};case"continue":return{...Y,fetchStatus:"fetching"};case"fetch":return{...Y,...Rq(Y.data,this.options),fetchMeta:J.meta??null};case"success":let W={...Y,...RD(J.data,J.dataUpdatedAt),dataUpdateCount:Y.dataUpdateCount+1,...!J.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#z=J.manual?W:void 0,W;case"error":let K=J.error;return{...Y,error:K,errorUpdateCount:Y.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:Y.fetchFailureCount+1,fetchFailureReason:K,fetchStatus:"idle",status:"error"};case"invalidate":return{...Y,isInvalidated:!0};case"setState":return{...Y,...J.state}}};this.state=X(this.state),n1.batch(()=>{this.observers.forEach((Y)=>{Y.onQueryUpdate()}),this.#Z.notify({query:this,type:"updated",action:J})})}};function Rq(J,X){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yq(X.networkMode)?"fetching":"paused",...J===void 0&&{error:null,status:"pending"}}}function RD(J,X){return{data:J,dataUpdatedAt:X??Date.now(),error:null,isInvalidated:!1,status:"success"}}function gD(J){let X=typeof J.initialData==="function"?J.initialData():J.initialData,Y=X!==void 0,W=Y?typeof J.initialDataUpdatedAt==="function"?J.initialDataUpdatedAt():J.initialDataUpdatedAt:0;return{data:X,dataUpdateCount:0,dataUpdatedAt:Y?W??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:Y?"success":"pending",fetchStatus:"idle"}}var fq=class extends n8{constructor(J,X){super();this.options=X,this.#w=J,this.#$=null,this.#Y=z$(),this.bindMethods(),this.setOptions(X)}#w;#z=void 0;#Z=void 0;#X=void 0;#J;#G;#Y;#$;#B;#H;#_;#W;#K;#Q;#q=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){if(this.listeners.size===1){if(this.#z.addObserver(this),mD(this.#z,this.options))this.#U();else this.updateResult();this.#N()}}onUnsubscribe(){if(!this.hasListeners())this.destroy()}shouldFetchOnReconnect(){return gq(this.#z,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gq(this.#z,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#k(),this.#A(),this.#z.removeObserver(this)}setOptions(J){let X=this.options,Y=this.#z;if(this.options=this.#w.defaultQueryOptions(J),this.options.enabled!==void 0&&typeof this.options.enabled!=="boolean"&&typeof this.options.enabled!=="function"&&typeof b2(this.options.enabled,this.#z)!=="boolean")throw Error("Expected enabled to be a boolean or a callback that returns a boolean");if(this.#j(),this.#z.setOptions(this.options),X._defaulted&&!iQ(this.options,X))this.#w.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#z,observer:this});let W=this.hasListeners();if(W&&dD(this.#z,Y,this.options,X))this.#U();if(this.updateResult(),W&&(this.#z!==Y||b2(this.options.enabled,this.#z)!==b2(X.enabled,this.#z)||G8(this.options.staleTime,this.#z)!==G8(X.staleTime,this.#z)))this.#L();let K=this.#V();if(W&&(this.#z!==Y||b2(this.options.enabled,this.#z)!==b2(X.enabled,this.#z)||K!==this.#Q))this.#F(K)}getOptimisticResult(J){let X=this.#w.getQueryCache().build(this.#w,J),Y=this.createResult(X,J);if(WC(this,Y))this.#X=Y,this.#G=this.options,this.#J=this.#z.state;return Y}getCurrentResult(){return this.#X}trackResult(J,X){return new Proxy(J,{get:(Y,W)=>{if(this.trackProp(W),X?.(W),W==="promise"){if(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#Y.status==="pending")this.#Y.reject(Error("experimental_prefetchInRender feature flag is not enabled"))}return Reflect.get(Y,W)}})}trackProp(J){this.#q.add(J)}getCurrentQuery(){return this.#z}refetch({...J}={}){return this.fetch({...J})}fetchOptimistic(J){let X=this.#w.defaultQueryOptions(J),Y=this.#w.getQueryCache().build(this.#w,X);return Y.fetch().then(()=>this.createResult(Y,X))}fetch(J){return this.#U({...J,cancelRefetch:J.cancelRefetch??!0}).then(()=>{return this.updateResult(),this.#X})}#U(J){this.#j();let X=this.#z.fetch(this.options,J);if(!J?.throwOnError)X=X.catch(vw);return X}#L(){this.#k();let J=G8(this.options.staleTime,this.#z);if(I2||this.#X.isStale||!tX(J))return;let Y=pQ(this.#X.dataUpdatedAt,J)+1;this.#W=t8.setTimeout(()=>{if(!this.#X.isStale)this.updateResult()},Y)}#V(){return(typeof this.options.refetchInterval==="function"?this.options.refetchInterval(this.#z):this.options.refetchInterval)??!1}#F(J){if(this.#A(),this.#Q=J,I2||b2(this.options.enabled,this.#z)===!1||!tX(this.#Q)||this.#Q===0)return;this.#K=t8.setInterval(()=>{if(this.options.refetchIntervalInBackground||KZ.isFocused())this.#U()},this.#Q)}#N(){this.#L(),this.#F(this.#V())}#k(){if(this.#W)t8.clearTimeout(this.#W),this.#W=void 0}#A(){if(this.#K)t8.clearInterval(this.#K),this.#K=void 0}createResult(J,X){let Y=this.#z,W=this.options,K=this.#X,U=this.#J,q=this.#G,L=J!==Y?J.state:this.#Z,{state:F}=J,N={...F},V=!1,k;if(X._optimisticResults){let S=this.hasListeners(),p=!S&&mD(J,X),d=S&&dD(J,Y,X,W);if(p||d)N={...N,...Rq(F.data,J.options)};if(X._optimisticResults==="isRestoring")N.fetchStatus="idle"}let{error:A,errorUpdatedAt:D,status:M}=N;k=N.data;let h=!1;if(X.placeholderData!==void 0&&k===void 0&&M==="pending"){let S;if(K?.isPlaceholderData&&X.placeholderData===q?.placeholderData)S=K.data,h=!0;else S=typeof X.placeholderData==="function"?X.placeholderData(this.#_?.state.data,this.#_):X.placeholderData;if(S!==void 0)M="success",k=w$(K?.data,S,X),V=!0}if(X.select&&k!==void 0&&!h)if(K&&k===U?.data&&X.select===this.#B)k=this.#H;else try{this.#B=X.select,k=X.select(k),k=w$(K?.data,k,X),this.#H=k,this.#$=null}catch(S){this.#$=S}if(this.#$)A=this.#$,k=this.#H,D=Date.now(),M="error";let v=N.fetchStatus==="fetching",x=M==="pending",I=M==="error",b=x&&v,E=k!==void 0,R={status:M,fetchStatus:N.fetchStatus,isPending:x,isSuccess:M==="success",isError:I,isInitialLoading:b,isLoading:b,data:k,dataUpdatedAt:N.dataUpdatedAt,error:A,errorUpdatedAt:D,failureCount:N.fetchFailureCount,failureReason:N.fetchFailureReason,errorUpdateCount:N.errorUpdateCount,isFetched:N.dataUpdateCount>0||N.errorUpdateCount>0,isFetchedAfterMount:N.dataUpdateCount>L.dataUpdateCount||N.errorUpdateCount>L.errorUpdateCount,isFetching:v,isRefetching:v&&!x,isLoadingError:I&&!E,isPaused:N.fetchStatus==="paused",isPlaceholderData:V,isRefetchError:I&&E,isStale:mq(J,X),refetch:this.refetch,promise:this.#Y,isEnabled:b2(X.enabled,J)!==!1};if(this.options.experimental_prefetchInRender){let S=(w0)=>{if(R.status==="error")w0.reject(R.error);else if(R.data!==void 0)w0.resolve(R.data)},p=()=>{let w0=this.#Y=R.promise=z$();S(w0)},d=this.#Y;switch(d.status){case"pending":if(J.queryHash===Y.queryHash)S(d);break;case"fulfilled":if(R.status==="error"||R.data!==d.value)p();break;case"rejected":if(R.status!=="error"||R.error!==d.reason)p();break}}return R}updateResult(){let J=this.#X,X=this.createResult(this.#z,this.options);if(this.#J=this.#z.state,this.#G=this.options,this.#J.data!==void 0)this.#_=this.#z;if(iQ(X,J))return;this.#X=X;let Y=()=>{if(!J)return!0;let{notifyOnChangeProps:W}=this.options,K=typeof W==="function"?W():W;if(K==="all"||!K&&!this.#q.size)return!0;let U=new Set(K??this.#q);if(this.options.throwOnError)U.add("error");return Object.keys(this.#X).some((q)=>{let _=q;return this.#X[_]!==J[_]&&U.has(_)})};this.#M({listeners:Y()})}#j(){let J=this.#w.getQueryCache().build(this.#w,this.options);if(J===this.#z)return;let X=this.#z;if(this.#z=J,this.#Z=J.state,this.hasListeners())X?.removeObserver(this),J.addObserver(this)}onQueryUpdate(){if(this.updateResult(),this.hasListeners())this.#N()}#M(J){n1.batch(()=>{if(J.listeners)this.listeners.forEach((X)=>{X(this.#X)});this.#w.getQueryCache().notify({query:this.#z,type:"observerResultsUpdated"})})}};function QC(J,X){return b2(X.enabled,J)!==!1&&J.state.data===void 0&&!(J.state.status==="error"&&X.retryOnMount===!1)}function mD(J,X){return QC(J,X)||J.state.data!==void 0&&gq(J,X,X.refetchOnMount)}function gq(J,X,Y){if(b2(X.enabled,J)!==!1&&G8(X.staleTime,J)!=="static"){let W=typeof Y==="function"?Y(J):Y;return W==="always"||W!==!1&&mq(J,X)}return!1}function dD(J,X,Y,W){return(J!==X||b2(W.enabled,J)===!1)&&(!Y.suspense||J.state.status!=="error")&&mq(J,Y)}function mq(J,X){return b2(X.enabled,J)!==!1&&J.isStaleByTime(G8(X.staleTime,J))}function WC(J,X){if(!iQ(J.getCurrentResult(),X))return!0;return!1}function dq(J){return{onFetch:(X,Y)=>{let W=X.options,K=X.fetchOptions?.meta?.fetchMore?.direction,U=X.state.data?.pages||[],q=X.state.data?.pageParams||[],_={pages:[],pageParams:[]},L=0,F=async()=>{let N=!1,V=(D)=>{Object.defineProperty(D,"signal",{enumerable:!0,get:()=>{if(X.signal.aborted)N=!0;else X.signal.addEventListener("abort",()=>{N=!0});return X.signal}})},k=rQ(X.options,X.fetchOptions),A=async(D,M,h)=>{if(N)return Promise.reject();if(M==null&&D.pages.length)return Promise.resolve(D);let x=(()=>{let m={client:X.client,queryKey:X.queryKey,pageParam:M,direction:h?"backward":"forward",meta:X.options.meta};return V(m),m})(),I=await k(x),{maxPages:b}=X.options,E=h?CD:SD;return{pages:E(D.pages,I,b),pageParams:E(D.pageParams,M,b)}};if(K&&U.length){let D=K==="backward",M=D?KC:uD,h={pages:U,pageParams:q},v=M(W,h);_=await A(h,v,D)}else{let D=J??U.length;do{let M=L===0?q[0]??W.initialPageParam:uD(W,_);if(L>0&&M==null)break;_=await A(_,M),L++}while(L<D)}return _};if(X.options.persister)X.fetchFn=()=>{return X.options.persister?.(F,{client:X.client,queryKey:X.queryKey,meta:X.options.meta,signal:X.signal},Y)};else X.fetchFn=F}}}function uD(J,{pages:X,pageParams:Y}){let W=X.length-1;return X.length>0?J.getNextPageParam(X[W],X,Y[W],Y):void 0}function KC(J,{pages:X,pageParams:Y}){return X.length>0?J.getPreviousPageParam?.(X[0],X,Y[0],Y):void 0}var pD=class extends oQ{#w;#z;#Z;#X;constructor(J){super();this.#w=J.client,this.mutationId=J.mutationId,this.#Z=J.mutationCache,this.#z=[],this.state=J.state||UC(),this.setOptions(J.options),this.scheduleGc()}setOptions(J){this.options=J,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(J){if(!this.#z.includes(J))this.#z.push(J),this.clearGcTimeout(),this.#Z.notify({type:"observerAdded",mutation:this,observer:J})}removeObserver(J){this.#z=this.#z.filter((X)=>X!==J),this.scheduleGc(),this.#Z.notify({type:"observerRemoved",mutation:this,observer:J})}optionalRemove(){if(!this.#z.length)if(this.state.status==="pending")this.scheduleGc();else this.#Z.remove(this)}continue(){return this.#X?.continue()??this.execute(this.state.variables)}async execute(J){let X=()=>{this.#J({type:"continue"})},Y={client:this.#w,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#X=sQ({fn:()=>{if(!this.options.mutationFn)return Promise.reject(Error("No mutationFn found"));return this.options.mutationFn(J,Y)},onFail:(U,q)=>{this.#J({type:"failed",failureCount:U,error:q})},onPause:()=>{this.#J({type:"pause"})},onContinue:X,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#Z.canRun(this)});let W=this.state.status==="pending",K=!this.#X.canStart();try{if(W)X();else{this.#J({type:"pending",variables:J,isPaused:K}),await this.#Z.config.onMutate?.(J,this,Y);let q=await this.options.onMutate?.(J,Y);if(q!==this.state.context)this.#J({type:"pending",context:q,variables:J,isPaused:K})}let U=await this.#X.start();return await this.#Z.config.onSuccess?.(U,J,this.state.context,this,Y),await this.options.onSuccess?.(U,J,this.state.context,Y),await this.#Z.config.onSettled?.(U,null,this.state.variables,this.state.context,this,Y),await this.options.onSettled?.(U,null,J,this.state.context,Y),this.#J({type:"success",data:U}),U}catch(U){try{throw await this.#Z.config.onError?.(U,J,this.state.context,this,Y),await this.options.onError?.(U,J,this.state.context,Y),await this.#Z.config.onSettled?.(void 0,U,this.state.variables,this.state.context,this,Y),await this.options.onSettled?.(void 0,U,J,this.state.context,Y),U}finally{this.#J({type:"error",error:U})}}finally{this.#Z.runNext(this)}}#J(J){let X=(Y)=>{switch(J.type){case"failed":return{...Y,failureCount:J.failureCount,failureReason:J.error};case"pause":return{...Y,isPaused:!0};case"continue":return{...Y,isPaused:!1};case"pending":return{...Y,context:J.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:J.isPaused,status:"pending",variables:J.variables,submittedAt:Date.now()};case"success":return{...Y,data:J.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...Y,data:void 0,error:J.error,failureCount:Y.failureCount+1,failureReason:J.error,isPaused:!1,status:"error"}}};this.state=X(this.state),n1.batch(()=>{this.#z.forEach((Y)=>{Y.onMutationUpdate(J)}),this.#Z.notify({mutation:this,type:"updated",action:J})})}};function UC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var cD=class extends n8{constructor(J={}){super();this.config=J,this.#w=new Set,this.#z=new Map,this.#Z=0}#w;#z;#Z;build(J,X,Y){let W=new pD({client:J,mutationCache:this,mutationId:++this.#Z,options:J.defaultMutationOptions(X),state:Y});return this.add(W),W}add(J){this.#w.add(J);let X=nQ(J);if(typeof X==="string"){let Y=this.#z.get(X);if(Y)Y.push(J);else this.#z.set(X,[J])}this.notify({type:"added",mutation:J})}remove(J){if(this.#w.delete(J)){let X=nQ(J);if(typeof X==="string"){let Y=this.#z.get(X);if(Y){if(Y.length>1){let W=Y.indexOf(J);if(W!==-1)Y.splice(W,1)}else if(Y[0]===J)this.#z.delete(X)}}}this.notify({type:"removed",mutation:J})}canRun(J){let X=nQ(J);if(typeof X==="string"){let W=this.#z.get(X)?.find((K)=>K.state.status==="pending");return!W||W===J}else return!0}runNext(J){let X=nQ(J);if(typeof X==="string")return this.#z.get(X)?.find((W)=>W!==J&&W.state.isPaused)?.continue()??Promise.resolve();else return Promise.resolve()}clear(){n1.batch(()=>{this.#w.forEach((J)=>{this.notify({type:"removed",mutation:J})}),this.#w.clear(),this.#z.clear()})}getAll(){return Array.from(this.#w)}find(J){let X={exact:!0,...J};return this.getAll().find((Y)=>lQ(X,Y))}findAll(J={}){return this.getAll().filter((X)=>lQ(J,X))}notify(J){n1.batch(()=>{this.listeners.forEach((X)=>{X(J)})})}resumePausedMutations(){let J=this.getAll().filter((X)=>X.state.isPaused);return n1.batch(()=>Promise.all(J.map((X)=>X.continue().catch(vw))))}};function nQ(J){return J.options.scope?.id}var lD=class extends n8{constructor(J={}){super();this.config=J,this.#w=new Map}#w;build(J,X,Y){let W=X.queryKey,K=X.queryHash??eX(W,X),U=this.get(K);if(!U)U=new fD({client:J,queryKey:W,queryHash:K,options:J.defaultQueryOptions(X),state:Y,defaultOptions:J.getQueryDefaults(W)}),this.add(U);return U}add(J){if(!this.#w.has(J.queryHash))this.#w.set(J.queryHash,J),this.notify({type:"added",query:J})}remove(J){let X=this.#w.get(J.queryHash);if(X){if(J.destroy(),X===J)this.#w.delete(J.queryHash);this.notify({type:"removed",query:J})}}clear(){n1.batch(()=>{this.getAll().forEach((J)=>{this.remove(J)})})}get(J){return this.#w.get(J)}getAll(){return[...this.#w.values()]}find(J){let X={exact:!0,...J};return this.getAll().find((Y)=>cQ(X,Y))}findAll(J={}){let X=this.getAll();return Object.keys(J).length>0?X.filter((Y)=>cQ(J,Y)):X}notify(J){n1.batch(()=>{this.listeners.forEach((X)=>{X(J)})})}onFocus(){n1.batch(()=>{this.getAll().forEach((J)=>{J.onFocus()})})}onOnline(){n1.batch(()=>{this.getAll().forEach((J)=>{J.onOnline()})})}};var uq=class{#w;#z;#Z;#X;#J;#G;#Y;#$;constructor(J={}){this.#w=J.queryCache||new lD,this.#z=J.mutationCache||new cD,this.#Z=J.defaultOptions||{},this.#X=new Map,this.#J=new Map,this.#G=0}mount(){if(this.#G++,this.#G!==1)return;this.#Y=KZ.subscribe(async(J)=>{if(J)await this.resumePausedMutations(),this.#w.onFocus()}),this.#$=UZ.subscribe(async(J)=>{if(J)await this.resumePausedMutations(),this.#w.onOnline()})}unmount(){if(this.#G--,this.#G!==0)return;this.#Y?.(),this.#Y=void 0,this.#$?.(),this.#$=void 0}isFetching(J){return this.#w.findAll({...J,fetchStatus:"fetching"}).length}isMutating(J){return this.#z.findAll({...J,status:"pending"}).length}getQueryData(J){let X=this.defaultQueryOptions({queryKey:J});return this.#w.get(X.queryHash)?.state.data}ensureQueryData(J){let X=this.defaultQueryOptions(J),Y=this.#w.build(this,X),W=Y.state.data;if(W===void 0)return this.fetchQuery(J);if(J.revalidateIfStale&&Y.isStaleByTime(G8(X.staleTime,Y)))this.prefetchQuery(X);return Promise.resolve(W)}getQueriesData(J){return this.#w.findAll(J).map(({queryKey:X,state:Y})=>{let W=Y.data;return[X,W]})}setQueryData(J,X,Y){let W=this.defaultQueryOptions({queryKey:J}),U=this.#w.get(W.queryHash)?.state.data,q=ID(X,U);if(q===void 0)return;return this.#w.build(this,W).setData(q,{...Y,manual:!0})}setQueriesData(J,X,Y){return n1.batch(()=>this.#w.findAll(J).map(({queryKey:W})=>[W,this.setQueryData(W,X,Y)]))}getQueryState(J){let X=this.defaultQueryOptions({queryKey:J});return this.#w.get(X.queryHash)?.state}removeQueries(J){let X=this.#w;n1.batch(()=>{X.findAll(J).forEach((Y)=>{X.remove(Y)})})}resetQueries(J,X){let Y=this.#w;return n1.batch(()=>{return Y.findAll(J).forEach((W)=>{W.reset()}),this.refetchQueries({type:"active",...J},X)})}cancelQueries(J,X={}){let Y={revert:!0,...X},W=n1.batch(()=>this.#w.findAll(J).map((K)=>K.cancel(Y)));return Promise.all(W).then(vw).catch(vw)}invalidateQueries(J,X={}){return n1.batch(()=>{if(this.#w.findAll(J).forEach((Y)=>{Y.invalidate()}),J?.refetchType==="none")return Promise.resolve();return this.refetchQueries({...J,type:J?.refetchType??J?.type??"active"},X)})}refetchQueries(J,X={}){let Y={...X,cancelRefetch:X.cancelRefetch??!0},W=n1.batch(()=>this.#w.findAll(J).filter((K)=>!K.isDisabled()&&!K.isStatic()).map((K)=>{let U=K.fetch(void 0,Y);if(!Y.throwOnError)U=U.catch(vw);return K.state.fetchStatus==="paused"?Promise.resolve():U}));return Promise.all(W).then(vw)}fetchQuery(J){let X=this.defaultQueryOptions(J);if(X.retry===void 0)X.retry=!1;let Y=this.#w.build(this,X);return Y.isStaleByTime(G8(X.staleTime,Y))?Y.fetch(X):Promise.resolve(Y.state.data)}prefetchQuery(J){return this.fetchQuery(J).then(vw).catch(vw)}fetchInfiniteQuery(J){return J.behavior=dq(J.pages),this.fetchQuery(J)}prefetchInfiniteQuery(J){return this.fetchInfiniteQuery(J).then(vw).catch(vw)}ensureInfiniteQueryData(J){return J.behavior=dq(J.pages),this.ensureQueryData(J)}resumePausedMutations(){if(UZ.isOnline())return this.#z.resumePausedMutations();return Promise.resolve()}getQueryCache(){return this.#w}getMutationCache(){return this.#z}getDefaultOptions(){return this.#Z}setDefaultOptions(J){this.#Z=J}setQueryDefaults(J,X){this.#X.set(X9(J),{queryKey:J,defaultOptions:X})}getQueryDefaults(J){let X=[...this.#X.values()],Y={};return X.forEach((W)=>{if(Y9(J,W.queryKey))Object.assign(Y,W.defaultOptions)}),Y}setMutationDefaults(J,X){this.#J.set(X9(J),{mutationKey:J,defaultOptions:X})}getMutationDefaults(J){let X=[...this.#J.values()],Y={};return X.forEach((W)=>{if(Y9(J,W.mutationKey))Object.assign(Y,W.defaultOptions)}),Y}defaultQueryOptions(J){if(J._defaulted)return J;let X={...this.#Z.queries,...this.getQueryDefaults(J.queryKey),...J,_defaulted:!0};if(!X.queryHash)X.queryHash=eX(X.queryKey,X);if(X.refetchOnReconnect===void 0)X.refetchOnReconnect=X.networkMode!=="always";if(X.throwOnError===void 0)X.throwOnError=!!X.suspense;if(!X.networkMode&&X.persister)X.networkMode="offlineFirst";if(X.queryFn===$9)X.enabled=!1;return X}defaultMutationOptions(J){if(J?._defaulted)return J;return{...this.#Z.mutations,...J?.mutationKey&&this.getMutationDefaults(J.mutationKey),...J,_defaulted:!0}}clear(){this.#w.clear(),this.#z.clear()}};var HZ=c(G0(),1),iD=c(x1(),1),pq=HZ.createContext(void 0),cq=(J)=>{let X=HZ.useContext(pq);if(J)return J;if(!X)throw Error("No QueryClient set, use QueryClientProvider to set one");return X},lq=({client:J,children:X})=>{return HZ.useEffect(()=>{return J.mount(),()=>{J.unmount()}},[J]),iD.jsx(pq.Provider,{value:J,children:X})};var tQ=c(G0(),1),rD=tQ.createContext(!1),aD=()=>tQ.useContext(rD),h20=rD.Provider;var Z$=c(G0(),1),HC=c(x1(),1);function _C(){let J=!1;return{clearReset:()=>{J=!1},reset:()=>{J=!0},isReset:()=>{return J}}}var qC=Z$.createContext(_C()),sD=()=>Z$.useContext(qC);var oD=c(G0(),1);var nD=(J,X)=>{if(J.suspense||J.throwOnError||J.experimental_prefetchInRender){if(!X.isReset())J.retryOnMount=!1}},tD=(J)=>{oD.useEffect(()=>{J.clearReset()},[J])},eD=({result:J,errorResetBoundary:X,throwOnError:Y,query:W,suspense:K})=>{return J.isError&&!X.isReset()&&!J.isFetching&&W&&(K&&J.data===void 0||Cq(Y,[J.error,W]))};var wT=(J)=>{if(J.suspense){let Y=(K)=>K==="static"?K:Math.max(K??1000,1000),W=J.staleTime;if(J.staleTime=typeof W==="function"?(...K)=>Y(W(...K)):Y(W),typeof J.gcTime==="number")J.gcTime=Math.max(J.gcTime,1000)}},zT=(J,X)=>J.isLoading&&J.isFetching&&!X,ZT=(J,X)=>J?.suspense&&X.isPending,iq=(J,X,Y)=>X.fetchOptimistic(J).catch(()=>{Y.clearReset()});var p4=c(G0(),1);function JT(J,X,Y){if(typeof J!=="object"||Array.isArray(J))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 W=aD(),K=sD(),U=cq(Y),q=U.defaultQueryOptions(J);if(U.getDefaultOptions().queries?._experimental_beforeQuery?.(q),!q.queryFn)console.error(`[${q.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`);q._optimisticResults=W?"isRestoring":"optimistic",wT(q),nD(q,K),tD(K);let _=!U.getQueryCache().get(q.queryHash),[L]=p4.useState(()=>new X(U,q)),F=L.getOptimisticResult(q),N=!W&&J.subscribed!==!1;if(p4.useSyncExternalStore(p4.useCallback((V)=>{let k=N?L.subscribe(n1.batchCalls(V)):vw;return L.updateResult(),k},[L,N]),()=>L.getCurrentResult(),()=>L.getCurrentResult()),p4.useEffect(()=>{L.setOptions(q)},[q,L]),ZT(q,F))throw iq(q,L,K);if(eD({result:F,errorResetBoundary:K,throwOnError:q.throwOnError,query:U.getQueryCache().get(q.queryHash),suspense:q.suspense}))throw F.error;if(U.getDefaultOptions().queries?._experimental_afterQuery?.(q,F),q.experimental_prefetchInRender&&!I2&&zT(F,W))(_?iq(q,L,K):U.getQueryCache().get(q.queryHash)?.promise)?.catch(vw).finally(()=>{L.updateResult()});return!q.notifyOnChangeProps?L.trackResult(F):F}function rq(J,X){return JT(J,fq,X)}var XT=new uq;async function $T(){return fetch("/api/stories").then((J)=>J.json())}function YT(J){var X,Y,W="";if(typeof J=="string"||typeof J=="number")W+=J;else if(typeof J=="object")if(Array.isArray(J)){var K=J.length;for(X=0;X<K;X++)J[X]&&(Y=YT(J[X]))&&(W&&(W+=" "),W+=Y)}else for(Y in J)J[Y]&&(W&&(W+=" "),W+=Y);return W}function eQ(){for(var J,X,Y=0,W="",K=arguments.length;Y<K;Y++)(J=arguments[Y])&&(X=YT(J))&&(W&&(W+=" "),W+=X);return W}var GT=(J)=>typeof J==="boolean"?`${J}`:J===0?"0":J,QT=eQ,wW=(J,X)=>(Y)=>{var W;if((X===null||X===void 0?void 0:X.variants)==null)return QT(J,Y===null||Y===void 0?void 0:Y.class,Y===null||Y===void 0?void 0:Y.className);let{variants:K,defaultVariants:U}=X,q=Object.keys(K).map((F)=>{let N=Y===null||Y===void 0?void 0:Y[F],V=U===null||U===void 0?void 0:U[F];if(N===null)return null;let k=GT(N)||GT(V);return K[F][k]}),_=Y&&Object.entries(Y).reduce((F,N)=>{let[V,k]=N;if(k===void 0)return F;return F[V]=k,F},{}),L=X===null||X===void 0?void 0:(W=X.compoundVariants)===null||W===void 0?void 0:W.reduce((F,N)=>{let{class:V,className:k,...A}=N;return Object.entries(A).every((D)=>{let[M,h]=D;return Array.isArray(h)?h.includes({...U,..._}[M]):{...U,..._}[M]===h})?[...F,V,k]:F},[]);return QT(J,q,L,Y===null||Y===void 0?void 0:Y.class,Y===null||Y===void 0?void 0:Y.className)};var BC=(J,X)=>{let Y=Array(J.length+X.length);for(let W=0;W<J.length;W++)Y[W]=J[W];for(let W=0;W<X.length;W++)Y[J.length+W]=X[W];return Y},LC=(J,X)=>({classGroupId:J,validator:X}),_T=(J=new Map,X=null,Y)=>({nextPart:J,validators:X,classGroupId:Y});var WT=[];var VC=(J)=>{let X=NC(J),{conflictingClassGroups:Y,conflictingClassGroupModifiers:W}=J;return{getClassGroupId:(q)=>{if(q.startsWith("[")&&q.endsWith("]"))return FC(q);let _=q.split("-"),L=_[0]===""&&_.length>1?1:0;return qT(_,L,X)},getConflictingClassGroupIds:(q,_)=>{if(_){let L=W[q],F=Y[q];if(L){if(F)return BC(F,L);return L}return F||WT}return Y[q]||WT}}},qT=(J,X,Y)=>{if(J.length-X===0)return Y.classGroupId;let K=J[X],U=Y.nextPart.get(K);if(U){let F=qT(J,X+1,U);if(F)return F}let q=Y.validators;if(q===null)return;let _=X===0?J.join("-"):J.slice(X).join("-"),L=q.length;for(let F=0;F<L;F++){let N=q[F];if(N.validator(_))return N.classGroupId}return},FC=(J)=>J.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let X=J.slice(1,-1),Y=X.indexOf(":"),W=X.slice(0,Y);return W?"arbitrary.."+W:void 0})(),NC=(J)=>{let{theme:X,classGroups:Y}=J;return kC(Y,X)},kC=(J,X)=>{let Y=_T();for(let W in J){let K=J[W];oq(K,Y,W,X)}return Y},oq=(J,X,Y,W)=>{let K=J.length;for(let U=0;U<K;U++){let q=J[U];AC(q,X,Y,W)}},AC=(J,X,Y,W)=>{if(typeof J==="string"){jC(J,X,Y);return}if(typeof J==="function"){MC(J,X,Y,W);return}OC(J,X,Y,W)},jC=(J,X,Y)=>{let W=J===""?X:BT(X,J);W.classGroupId=Y},MC=(J,X,Y,W)=>{if(DC(J)){oq(J(W),X,Y,W);return}if(X.validators===null)X.validators=[];X.validators.push(LC(Y,J))},OC=(J,X,Y,W)=>{let K=Object.entries(J),U=K.length;for(let q=0;q<U;q++){let[_,L]=K[q];oq(L,BT(X,_),Y,W)}},BT=(J,X)=>{let Y=J,W=X.split("-"),K=W.length;for(let U=0;U<K;U++){let q=W[U],_=Y.nextPart.get(q);if(!_)_=_T(),Y.nextPart.set(q,_);Y=_}return Y},DC=(J)=>("isThemeGetter"in J)&&J.isThemeGetter===!0,TC=(J)=>{if(J<1)return{get:()=>{return},set:()=>{}};let X=0,Y=Object.create(null),W=Object.create(null),K=(U,q)=>{if(Y[U]=q,X++,X>J)X=0,W=Y,Y=Object.create(null)};return{get(U){let q=Y[U];if(q!==void 0)return q;if((q=W[U])!==void 0)return K(U,q),q},set(U,q){if(U in Y)Y[U]=q;else K(U,q)}}};var xC=[],KT=(J,X,Y,W,K)=>({modifiers:J,hasImportantModifier:X,baseClassName:Y,maybePostfixModifierPosition:W,isExternal:K}),vC=(J)=>{let{prefix:X,experimentalParseClassName:Y}=J,W=(K)=>{let U=[],q=0,_=0,L=0,F,N=K.length;for(let M=0;M<N;M++){let h=K[M];if(q===0&&_===0){if(h===":"){U.push(K.slice(L,M)),L=M+1;continue}if(h==="/"){F=M;continue}}if(h==="[")q++;else if(h==="]")q--;else if(h==="(")_++;else if(h===")")_--}let V=U.length===0?K:K.slice(L),k=V,A=!1;if(V.endsWith("!"))k=V.slice(0,-1),A=!0;else if(V.startsWith("!"))k=V.slice(1),A=!0;let D=F&&F>L?F-L:void 0;return KT(U,A,k,D)};if(X){let K=X+":",U=W;W=(q)=>q.startsWith(K)?U(q.slice(K.length)):KT(xC,!1,q,void 0,!0)}if(Y){let K=W;W=(U)=>Y({className:U,parseClassName:K})}return W},hC=(J)=>{let X=new Map;return J.orderSensitiveModifiers.forEach((Y,W)=>{X.set(Y,1e6+W)}),(Y)=>{let W=[],K=[];for(let U=0;U<Y.length;U++){let q=Y[U],_=q[0]==="[",L=X.has(q);if(_||L){if(K.length>0)K.sort(),W.push(...K),K=[];W.push(q)}else K.push(q)}if(K.length>0)K.sort(),W.push(...K);return W}},EC=(J)=>({cache:TC(J.cacheSize),parseClassName:vC(J),sortModifiers:hC(J),...VC(J)}),PC=/\s+/,IC=(J,X)=>{let{parseClassName:Y,getClassGroupId:W,getConflictingClassGroupIds:K,sortModifiers:U}=X,q=[],_=J.trim().split(PC),L="";for(let F=_.length-1;F>=0;F-=1){let N=_[F],{isExternal:V,modifiers:k,hasImportantModifier:A,baseClassName:D,maybePostfixModifierPosition:M}=Y(N);if(V){L=N+(L.length>0?" "+L:L);continue}let h=!!M,v=W(h?D.substring(0,M):D);if(!v){if(!h){L=N+(L.length>0?" "+L:L);continue}if(v=W(D),!v){L=N+(L.length>0?" "+L:L);continue}h=!1}let x=k.length===0?"":k.length===1?k[0]:U(k).join(":"),I=A?x+"!":x,b=I+v;if(q.indexOf(b)>-1)continue;q.push(b);let E=K(v,h);for(let m=0;m<E.length;++m){let R=E[m];q.push(I+R)}L=N+(L.length>0?" "+L:L)}return L},bC=(...J)=>{let X=0,Y,W,K="";while(X<J.length)if(Y=J[X++]){if(W=LT(Y))K&&(K+=" "),K+=W}return K},LT=(J)=>{if(typeof J==="string")return J;let X,Y="";for(let W=0;W<J.length;W++)if(J[W]){if(X=LT(J[W]))Y&&(Y+=" "),Y+=X}return Y},SC=(J,...X)=>{let Y,W,K,U,q=(L)=>{let F=X.reduce((N,V)=>V(N),J());return Y=EC(F),W=Y.cache.get,K=Y.cache.set,U=_,_(L)},_=(L)=>{let F=W(L);if(F)return F;let N=IC(L,Y);return K(L,N),N};return U=q,(...L)=>U(bC(...L))},CC=[],yw=(J)=>{let X=(Y)=>Y[J]||CC;return X.isThemeGetter=!0,X},VT=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,FT=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yC=/^\d+\/\d+$/,RC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_Z=(J)=>yC.test(J),V1=(J)=>!!J&&!Number.isNaN(Number(J)),c4=(J)=>!!J&&Number.isInteger(Number(J)),aq=(J)=>J.endsWith("%")&&V1(J.slice(0,-1)),g6=(J)=>RC.test(J),uC=()=>!0,pC=(J)=>gC.test(J)&&!fC.test(J),NT=()=>!1,cC=(J)=>mC.test(J),lC=(J)=>dC.test(J),iC=(J)=>!g0(J)&&!f0(J),rC=(J)=>qZ(J,jT,NT),g0=(J)=>VT.test(J),G9=(J)=>qZ(J,MT,pC),sq=(J)=>qZ(J,tC,V1),UT=(J)=>qZ(J,kT,NT),aC=(J)=>qZ(J,AT,lC),zW=(J)=>qZ(J,OT,cC),f0=(J)=>FT.test(J),J$=(J)=>BZ(J,MT),sC=(J)=>BZ(J,eC),HT=(J)=>BZ(J,kT),oC=(J)=>BZ(J,jT),nC=(J)=>BZ(J,AT),ZW=(J)=>BZ(J,OT,!0),qZ=(J,X,Y)=>{let W=VT.exec(J);if(W){if(W[1])return X(W[1]);return Y(W[2])}return!1},BZ=(J,X,Y=!1)=>{let W=FT.exec(J);if(W){if(W[1])return X(W[1]);return Y}return!1},kT=(J)=>J==="position"||J==="percentage",AT=(J)=>J==="image"||J==="url",jT=(J)=>J==="length"||J==="size"||J==="bg-size",MT=(J)=>J==="length",tC=(J)=>J==="number",eC=(J)=>J==="family-name",OT=(J)=>J==="shadow";var wy=()=>{let J=yw("color"),X=yw("font"),Y=yw("text"),W=yw("font-weight"),K=yw("tracking"),U=yw("leading"),q=yw("breakpoint"),_=yw("container"),L=yw("spacing"),F=yw("radius"),N=yw("shadow"),V=yw("inset-shadow"),k=yw("text-shadow"),A=yw("drop-shadow"),D=yw("blur"),M=yw("perspective"),h=yw("aspect"),v=yw("ease"),x=yw("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...b(),f0,g0],m=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],S=()=>[f0,g0,L],p=()=>[_Z,"full","auto",...S()],d=()=>[c4,"none","subgrid",f0,g0],w0=()=>["auto",{span:["full",c4,f0,g0]},c4,f0,g0],t=()=>[c4,"auto",f0,g0],u=()=>["auto","min","max","fr",f0,g0],Q0=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],r=()=>["start","end","center","stretch","center-safe","end-safe"],e=()=>["auto",...S()],o=()=>[_Z,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],g=()=>[J,f0,g0],X0=()=>[...b(),HT,UT,{position:[f0,g0]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z0=()=>["auto","cover","contain",oC,rC,{size:[f0,g0]}],U0=()=>[aq,J$,G9],J0=()=>["","none","full",F,f0,g0],L0=()=>["",V1,J$,G9],S0=()=>["solid","dashed","dotted","double"],V0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H0=()=>[V1,aq,HT,UT],j0=()=>["","none",D,f0,g0],r0=()=>["none",V1,f0,g0],n0=()=>["none",V1,f0,g0],n=()=>[V1,f0,g0],R0=()=>[_Z,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[g6],breakpoint:[g6],color:[uC],container:[g6],"drop-shadow":[g6],ease:["in","out","in-out"],font:[iC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[g6],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[g6],shadow:[g6],spacing:["px",V1],text:[g6],"text-shadow":[g6],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_Z,g0,f0,h]}],container:["container"],columns:[{columns:[V1,g0,f0,_]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:m()}],"overflow-x":[{"overflow-x":m()}],"overflow-y":[{"overflow-y":m()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:p()}],"inset-x":[{"inset-x":p()}],"inset-y":[{"inset-y":p()}],start:[{start:p()}],end:[{end:p()}],top:[{top:p()}],right:[{right:p()}],bottom:[{bottom:p()}],left:[{left:p()}],visibility:["visible","invisible","collapse"],z:[{z:[c4,"auto",f0,g0]}],basis:[{basis:[_Z,"full","auto",_,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[V1,_Z,"auto","initial","none",g0]}],grow:[{grow:["",V1,f0,g0]}],shrink:[{shrink:["",V1,f0,g0]}],order:[{order:[c4,"first","last","none",f0,g0]}],"grid-cols":[{"grid-cols":d()}],"col-start-end":[{col:w0()}],"col-start":[{"col-start":t()}],"col-end":[{"col-end":t()}],"grid-rows":[{"grid-rows":d()}],"row-start-end":[{row:w0()}],"row-start":[{"row-start":t()}],"row-end":[{"row-end":t()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":u()}],"auto-rows":[{"auto-rows":u()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...Q0(),"normal"]}],"justify-items":[{"justify-items":[...r(),"normal"]}],"justify-self":[{"justify-self":["auto",...r()]}],"align-content":[{content:["normal",...Q0()]}],"align-items":[{items:[...r(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...r(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q0()}],"place-items":[{"place-items":[...r(),"baseline"]}],"place-self":[{"place-self":["auto",...r()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:e()}],mx:[{mx:e()}],my:[{my:e()}],ms:[{ms:e()}],me:[{me:e()}],mt:[{mt:e()}],mr:[{mr:e()}],mb:[{mb:e()}],ml:[{ml:e()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:o()}],w:[{w:[_,"screen",...o()]}],"min-w":[{"min-w":[_,"screen","none",...o()]}],"max-w":[{"max-w":[_,"screen","none","prose",{screen:[q]},...o()]}],h:[{h:["screen","lh",...o()]}],"min-h":[{"min-h":["screen","lh","none",...o()]}],"max-h":[{"max-h":["screen","lh",...o()]}],"font-size":[{text:["base",Y,J$,G9]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[W,f0,sq]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",aq,g0]}],"font-family":[{font:[sC,g0,X]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[K,f0,g0]}],"line-clamp":[{"line-clamp":[V1,"none",f0,sq]}],leading:[{leading:[U,...S()]}],"list-image":[{"list-image":["none",f0,g0]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",f0,g0]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:g()}],"text-color":[{text:g()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...S0(),"wavy"]}],"text-decoration-thickness":[{decoration:[V1,"from-font","auto",f0,G9]}],"text-decoration-color":[{decoration:g()}],"underline-offset":[{"underline-offset":[V1,"auto",f0,g0]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f0,g0]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",f0,g0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X0()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:z0()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},c4,f0,g0],radial:["",f0,g0],conic:[c4,f0,g0]},nC,aC]}],"bg-color":[{bg:g()}],"gradient-from-pos":[{from:U0()}],"gradient-via-pos":[{via:U0()}],"gradient-to-pos":[{to:U0()}],"gradient-from":[{from:g()}],"gradient-via":[{via:g()}],"gradient-to":[{to:g()}],rounded:[{rounded:J0()}],"rounded-s":[{"rounded-s":J0()}],"rounded-e":[{"rounded-e":J0()}],"rounded-t":[{"rounded-t":J0()}],"rounded-r":[{"rounded-r":J0()}],"rounded-b":[{"rounded-b":J0()}],"rounded-l":[{"rounded-l":J0()}],"rounded-ss":[{"rounded-ss":J0()}],"rounded-se":[{"rounded-se":J0()}],"rounded-ee":[{"rounded-ee":J0()}],"rounded-es":[{"rounded-es":J0()}],"rounded-tl":[{"rounded-tl":J0()}],"rounded-tr":[{"rounded-tr":J0()}],"rounded-br":[{"rounded-br":J0()}],"rounded-bl":[{"rounded-bl":J0()}],"border-w":[{border:L0()}],"border-w-x":[{"border-x":L0()}],"border-w-y":[{"border-y":L0()}],"border-w-s":[{"border-s":L0()}],"border-w-e":[{"border-e":L0()}],"border-w-t":[{"border-t":L0()}],"border-w-r":[{"border-r":L0()}],"border-w-b":[{"border-b":L0()}],"border-w-l":[{"border-l":L0()}],"divide-x":[{"divide-x":L0()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L0()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...S0(),"hidden","none"]}],"divide-style":[{divide:[...S0(),"hidden","none"]}],"border-color":[{border:g()}],"border-color-x":[{"border-x":g()}],"border-color-y":[{"border-y":g()}],"border-color-s":[{"border-s":g()}],"border-color-e":[{"border-e":g()}],"border-color-t":[{"border-t":g()}],"border-color-r":[{"border-r":g()}],"border-color-b":[{"border-b":g()}],"border-color-l":[{"border-l":g()}],"divide-color":[{divide:g()}],"outline-style":[{outline:[...S0(),"none","hidden"]}],"outline-offset":[{"outline-offset":[V1,f0,g0]}],"outline-w":[{outline:["",V1,J$,G9]}],"outline-color":[{outline:g()}],shadow:[{shadow:["","none",N,ZW,zW]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",V,ZW,zW]}],"inset-shadow-color":[{"inset-shadow":g()}],"ring-w":[{ring:L0()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:g()}],"ring-offset-w":[{"ring-offset":[V1,G9]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":L0()}],"inset-ring-color":[{"inset-ring":g()}],"text-shadow":[{"text-shadow":["none",k,ZW,zW]}],"text-shadow-color":[{"text-shadow":g()}],opacity:[{opacity:[V1,f0,g0]}],"mix-blend":[{"mix-blend":[...V0(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":V0()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[V1]}],"mask-image-linear-from-pos":[{"mask-linear-from":H0()}],"mask-image-linear-to-pos":[{"mask-linear-to":H0()}],"mask-image-linear-from-color":[{"mask-linear-from":g()}],"mask-image-linear-to-color":[{"mask-linear-to":g()}],"mask-image-t-from-pos":[{"mask-t-from":H0()}],"mask-image-t-to-pos":[{"mask-t-to":H0()}],"mask-image-t-from-color":[{"mask-t-from":g()}],"mask-image-t-to-color":[{"mask-t-to":g()}],"mask-image-r-from-pos":[{"mask-r-from":H0()}],"mask-image-r-to-pos":[{"mask-r-to":H0()}],"mask-image-r-from-color":[{"mask-r-from":g()}],"mask-image-r-to-color":[{"mask-r-to":g()}],"mask-image-b-from-pos":[{"mask-b-from":H0()}],"mask-image-b-to-pos":[{"mask-b-to":H0()}],"mask-image-b-from-color":[{"mask-b-from":g()}],"mask-image-b-to-color":[{"mask-b-to":g()}],"mask-image-l-from-pos":[{"mask-l-from":H0()}],"mask-image-l-to-pos":[{"mask-l-to":H0()}],"mask-image-l-from-color":[{"mask-l-from":g()}],"mask-image-l-to-color":[{"mask-l-to":g()}],"mask-image-x-from-pos":[{"mask-x-from":H0()}],"mask-image-x-to-pos":[{"mask-x-to":H0()}],"mask-image-x-from-color":[{"mask-x-from":g()}],"mask-image-x-to-color":[{"mask-x-to":g()}],"mask-image-y-from-pos":[{"mask-y-from":H0()}],"mask-image-y-to-pos":[{"mask-y-to":H0()}],"mask-image-y-from-color":[{"mask-y-from":g()}],"mask-image-y-to-color":[{"mask-y-to":g()}],"mask-image-radial":[{"mask-radial":[f0,g0]}],"mask-image-radial-from-pos":[{"mask-radial-from":H0()}],"mask-image-radial-to-pos":[{"mask-radial-to":H0()}],"mask-image-radial-from-color":[{"mask-radial-from":g()}],"mask-image-radial-to-color":[{"mask-radial-to":g()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[V1]}],"mask-image-conic-from-pos":[{"mask-conic-from":H0()}],"mask-image-conic-to-pos":[{"mask-conic-to":H0()}],"mask-image-conic-from-color":[{"mask-conic-from":g()}],"mask-image-conic-to-color":[{"mask-conic-to":g()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X0()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:z0()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",f0,g0]}],filter:[{filter:["","none",f0,g0]}],blur:[{blur:j0()}],brightness:[{brightness:[V1,f0,g0]}],contrast:[{contrast:[V1,f0,g0]}],"drop-shadow":[{"drop-shadow":["","none",A,ZW,zW]}],"drop-shadow-color":[{"drop-shadow":g()}],grayscale:[{grayscale:["",V1,f0,g0]}],"hue-rotate":[{"hue-rotate":[V1,f0,g0]}],invert:[{invert:["",V1,f0,g0]}],saturate:[{saturate:[V1,f0,g0]}],sepia:[{sepia:["",V1,f0,g0]}],"backdrop-filter":[{"backdrop-filter":["","none",f0,g0]}],"backdrop-blur":[{"backdrop-blur":j0()}],"backdrop-brightness":[{"backdrop-brightness":[V1,f0,g0]}],"backdrop-contrast":[{"backdrop-contrast":[V1,f0,g0]}],"backdrop-grayscale":[{"backdrop-grayscale":["",V1,f0,g0]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V1,f0,g0]}],"backdrop-invert":[{"backdrop-invert":["",V1,f0,g0]}],"backdrop-opacity":[{"backdrop-opacity":[V1,f0,g0]}],"backdrop-saturate":[{"backdrop-saturate":[V1,f0,g0]}],"backdrop-sepia":[{"backdrop-sepia":["",V1,f0,g0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",f0,g0]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[V1,"initial",f0,g0]}],ease:[{ease:["linear","initial",v,f0,g0]}],delay:[{delay:[V1,f0,g0]}],animate:[{animate:["none",x,f0,g0]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,f0,g0]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:r0()}],"rotate-x":[{"rotate-x":r0()}],"rotate-y":[{"rotate-y":r0()}],"rotate-z":[{"rotate-z":r0()}],scale:[{scale:n0()}],"scale-x":[{"scale-x":n0()}],"scale-y":[{"scale-y":n0()}],"scale-z":[{"scale-z":n0()}],"scale-3d":["scale-3d"],skew:[{skew:n()}],"skew-x":[{"skew-x":n()}],"skew-y":[{"skew-y":n()}],transform:[{transform:[f0,g0,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:R0()}],"translate-x":[{"translate-x":R0()}],"translate-y":[{"translate-y":R0()}],"translate-z":[{"translate-z":R0()}],"translate-none":["translate-none"],accent:[{accent:g()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:g()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f0,g0]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f0,g0]}],fill:[{fill:["none",...g()]}],"stroke-w":[{stroke:[V1,J$,G9,sq]}],stroke:[{stroke:["none",...g()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var DT=SC(wy);function h1(...J){return DT(eQ(J))}var TT=c(E1(),1),Zy=wW("focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium focus-visible:ring-2 aria-invalid:ring-2 [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border dark:bg-input/20 dark:bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",destructive:"bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",xs:"h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5",sm:"h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",lg:"h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4",icon:"size-7 [&_svg:not([class*='size-'])]:size-3.5","icon-xs":"size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5","icon-sm":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-lg":"size-8 [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default",size:"default"}});function f6({className:J,variant:X="default",size:Y="default",...W}){return TT.jsxDEV(dG,{"data-slot":"button",className:h1(Zy({variant:X,size:Y,className:J})),...W},void 0,!1,void 0,this)}var vT=c(E1(),1);function xT({className:J,...X}){return vT.jsxDEV("kbd",{"data-slot":"kbd",className:h1("bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-xs px-1 font-sans text-[0.625rem] font-medium [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none",J),...X},void 0,!1,void 0,this)}var XW=c(G0(),1);var hT=(J)=>J.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Jy=(J)=>J.replace(/^([A-Z])|[\s-_]+(\w)/g,(X,Y,W)=>W?W.toUpperCase():Y.toLowerCase()),nq=(J)=>{let X=Jy(J);return X.charAt(0).toUpperCase()+X.slice(1)},JW=(...J)=>J.filter((X,Y,W)=>{return Boolean(X)&&X.trim()!==""&&W.indexOf(X)===Y}).join(" ").trim(),ET=(J)=>{for(let X in J)if(X.startsWith("aria-")||X==="role"||X==="title")return!0};var X$=c(G0(),1);var PT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var IT=X$.forwardRef(({color:J="currentColor",size:X=24,strokeWidth:Y=2,absoluteStrokeWidth:W,className:K="",children:U,iconNode:q,..._},L)=>X$.createElement("svg",{ref:L,...PT,width:X,height:X,stroke:J,strokeWidth:W?Number(Y)*24/Number(X):Y,className:JW("lucide",K),...!U&&!ET(_)&&{"aria-hidden":"true"},..._},[...q.map(([F,N])=>X$.createElement(F,N)),...Array.isArray(U)?U:[U]]));var l4=(J,X)=>{let Y=XW.forwardRef(({className:W,...K},U)=>XW.createElement(IT,{ref:U,iconNode:X,className:JW(`lucide-${hT(nq(J))}`,`lucide-${J}`,W),...K}));return Y.displayName=nq(J),Y};var Xy=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],$$=l4("arrow-left",Xy);var $y=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Y$=l4("arrow-right",$y);var Yy=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],i4=l4("loader-circle",Yy);var Gy=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],W9=l4("x",Gy);var C2=c(G0(),1);var $W=c(G0(),1),tq=768;function bT(){let[J,X]=$W.useState(void 0);return $W.useEffect(()=>{let Y=window.matchMedia(`(max-width: ${tq-1}px)`),W=()=>{X(window.innerWidth<tq)};return Y.addEventListener("change",W),X(window.innerWidth<tq),()=>Y.removeEventListener("change",W)},[]),!!J}var Qy=c(E1(),1);var Wy=c(E1(),1);var S2=c(E1(),1);function ST({...J}){return S2.jsxDEV(a8.Root,{"data-slot":"sheet",...J},void 0,!1,void 0,this)}function Ky({...J}){return S2.jsxDEV(a8.Portal,{"data-slot":"sheet-portal",...J},void 0,!1,void 0,this)}function Uy({className:J,...X}){return S2.jsxDEV(a8.Backdrop,{"data-slot":"sheet-overlay",className:h1("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",J),...X},void 0,!1,void 0,this)}function CT({className:J,children:X,side:Y="right",showCloseButton:W=!0,...K}){return S2.jsxDEV(Ky,{children:[S2.jsxDEV(Uy,{},void 0,!1,void 0,this),S2.jsxDEV(a8.Popup,{"data-slot":"sheet-content","data-side":Y,className:h1("bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",J),...K,children:[X,W&&S2.jsxDEV(a8.Close,{"data-slot":"sheet-close",render:S2.jsxDEV(f6,{variant:"ghost",className:"absolute top-4 right-4",size:"icon-sm"},void 0,!1,void 0,this),children:[S2.jsxDEV(W9,{},void 0,!1,void 0,this),S2.jsxDEV("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function yT({className:J,...X}){return S2.jsxDEV("div",{"data-slot":"sheet-header",className:h1("gap-1.5 p-6 flex flex-col",J),...X},void 0,!1,void 0,this)}function RT({className:J,...X}){return S2.jsxDEV(a8.Title,{"data-slot":"sheet-title",className:h1("text-foreground text-sm font-medium",J),...X},void 0,!1,void 0,this)}function gT({className:J,...X}){return S2.jsxDEV(a8.Description,{"data-slot":"sheet-description",className:h1("text-muted-foreground text-xs/relaxed",J),...X},void 0,!1,void 0,this)}var Hy=c(E1(),1);var m6=c(E1(),1);function _y({delay:J=0,...X}){return m6.jsxDEV(o8.Provider,{"data-slot":"tooltip-provider",delay:J,...X},void 0,!1,void 0,this)}function fT({...J}){return m6.jsxDEV(_y,{children:m6.jsxDEV(o8.Root,{"data-slot":"tooltip",...J},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function mT({...J}){return m6.jsxDEV(o8.Trigger,{"data-slot":"tooltip-trigger",...J},void 0,!1,void 0,this)}function dT({className:J,side:X="top",sideOffset:Y=4,align:W="center",alignOffset:K=0,children:U,...q}){return m6.jsxDEV(o8.Portal,{children:m6.jsxDEV(o8.Positioner,{align:W,alignOffset:K,side:X,sideOffset:Y,className:"isolate z-50",children:m6.jsxDEV(o8.Popup,{"data-slot":"tooltip-content",className:h1("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs **:data-[slot=kbd]:rounded-md bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin)",J),...q,children:[U,m6.jsxDEV(o8.Arrow,{className:"size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Bw=c(E1(),1),qy="sidebar_state",By=604800,Ly="16rem",Vy="18rem",Fy="3rem",Ny="b",uT=C2.createContext(null);function pT(){let J=C2.useContext(uT);if(!J)throw Error("useSidebar must be used within a SidebarProvider.");return J}function cT({defaultOpen:J=!0,open:X,onOpenChange:Y,className:W,style:K,children:U,...q}){let _=bT(),[L,F]=C2.useState(!1),[N,V]=C2.useState(J),k=X??N,A=C2.useCallback((v)=>{let x=typeof v==="function"?v(k):v;if(Y)Y(x);else V(x);document.cookie=`${qy}=${x}; path=/; max-age=${By}`},[Y,k]),D=C2.useCallback(()=>{return _?F((v)=>!v):A((v)=>!v)},[_,A,F]);C2.useEffect(()=>{let v=(x)=>{if(x.key===Ny&&(x.metaKey||x.ctrlKey))x.preventDefault(),D()};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[D]);let M=k?"expanded":"collapsed",h=C2.useMemo(()=>({state:M,open:k,setOpen:A,isMobile:_,openMobile:L,setOpenMobile:F,toggleSidebar:D}),[M,k,A,_,L,F,D]);return Bw.jsxDEV(uT.Provider,{value:h,children:Bw.jsxDEV("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Ly,"--sidebar-width-icon":Fy,...K},className:h1("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",W),...q,children:U},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function lT({side:J="left",variant:X="sidebar",collapsible:Y="offExamples",className:W,children:K,...U}){let{isMobile:q,state:_,openMobile:L,setOpenMobile:F}=pT();if(Y==="none")return Bw.jsxDEV("div",{"data-slot":"sidebar",className:h1("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",W),...U,children:K},void 0,!1,void 0,this);if(q)return Bw.jsxDEV(ST,{open:L,onOpenChange:F,...U,children:Bw.jsxDEV(CT,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Vy},side:J,children:[Bw.jsxDEV(yT,{className:"sr-only",children:[Bw.jsxDEV(RT,{children:"Sidebar"},void 0,!1,void 0,this),Bw.jsxDEV(gT,{children:"Displays the mobile sidebar."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Bw.jsxDEV("div",{className:"flex h-full w-full flex-col",children:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return Bw.jsxDEV("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":_,"data-collapsible":_==="collapsed"?Y:"","data-variant":X,"data-side":J,"data-slot":"sidebar",children:[Bw.jsxDEV("div",{"data-slot":"sidebar-gap",className:h1("transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent","group-data-[collapsible=offExamples]:w-0","group-data-[side=right]:rotate-180",X==="floating"||X==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")},void 0,!1,void 0,this),Bw.jsxDEV("div",{"data-slot":"sidebar-container",className:h1("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",J==="left"?"left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]",X==="floating"||X==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",W),...U,children:Bw.jsxDEV("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:ring-sidebar-border group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 flex size-full flex-col",children:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function iT({className:J,...X}){return Bw.jsxDEV("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:h1("gap-2 p-2 flex flex-col",J),...X},void 0,!1,void 0,this)}function rT({className:J,...X}){return Bw.jsxDEV("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:h1("no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",J),...X},void 0,!1,void 0,this)}function aT({className:J,...X}){return Bw.jsxDEV("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:h1("px-2 py-1 relative flex w-full min-w-0 flex-col",J),...X},void 0,!1,void 0,this)}function sT({className:J,render:X,...Y}){return bq({defaultTagName:"div",props:D5({className:h1("text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0",J)},Y),render:X,state:{slot:"sidebar-group-label",sidebar:"group-label"}})}function oT({className:J,...X}){return Bw.jsxDEV("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:h1("text-xs w-full",J),...X},void 0,!1,void 0,this)}function nT({className:J,...X}){return Bw.jsxDEV("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:h1("gap-px flex w-full min-w-0 flex-col",J),...X},void 0,!1,void 0,this)}var ky=wW("ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium peer/menu-button flex w-full items-center overflow-hidden outline-hidden group/menu-button disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-xs",sm:"h-7 text-xs",lg:"h-12 text-xs group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function tT({render:J,isActive:X=!1,variant:Y="default",size:W="default",tooltip:K,className:U,...q}){let{isMobile:_,state:L}=pT(),F=bq({defaultTagName:"button",props:D5({className:h1(ky({variant:Y,size:W}),U)},q),render:!K?J:mT,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:W,active:X}});if(!K)return F;if(typeof K==="string")K={children:K};return Bw.jsxDEV(fT,{children:[F,Bw.jsxDEV(dT,{side:"right",align:"center",hidden:L!=="collapsed"||_,...K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var wx=c(E1(),1);function eT({className:J,...X}){return wx.jsxDEV(i4,{role:"status","aria-label":"Loading",className:h1("size-4 animate-spin",J),...X},void 0,!1,void 0,this)}function zx(J){let X=J.getLocation(),Y=new Set,W=(q)=>{X=J.getLocation(),Y.forEach((_)=>_({location:X,action:q}))},K=(q)=>{if(J.notifyOnIndexChange??!0)W(q);else X=J.getLocation()},U=async({task:q,navigateOpts:_,...L})=>{if(_?.ignoreBlocker??!1){q();return}let N=J.getBlockers?.()??[],V=L.type==="PUSH"||L.type==="REPLACE";if(typeof document<"u"&&N.length&&V)for(let k of N){let A=Zx(L.path,L.state);if(await k.blockerFn({currentLocation:X,nextLocation:A,action:L.type})){J.onBlocked?.();return}}q()};return{get location(){return X},get length(){return J.getLength()},subscribers:Y,subscribe:(q)=>{return Y.add(q),()=>{Y.delete(q)}},push:(q,_,L)=>{let F=X.state.__TSR_index;_=eq(F+1,_),U({task:()=>{J.pushState(q,_),W({type:"PUSH"})},navigateOpts:L,type:"PUSH",path:q,state:_})},replace:(q,_,L)=>{let F=X.state.__TSR_index;_=eq(F,_),U({task:()=>{J.replaceState(q,_),W({type:"REPLACE"})},navigateOpts:L,type:"REPLACE",path:q,state:_})},go:(q,_)=>{U({task:()=>{J.go(q),K({type:"GO",index:q})},navigateOpts:_,type:"GO"})},back:(q)=>{U({task:()=>{J.back(q?.ignoreBlocker??!1),K({type:"BACK"})},navigateOpts:q,type:"BACK"})},forward:(q)=>{U({task:()=>{J.forward(q?.ignoreBlocker??!1),K({type:"FORWARD"})},navigateOpts:q,type:"FORWARD"})},canGoBack:()=>X.state.__TSR_index!==0,createHref:(q)=>J.createHref(q),block:(q)=>{if(!J.setBlockers)return()=>{};let _=J.getBlockers?.()??[];return J.setBlockers([..._,q]),()=>{let L=J.getBlockers?.()??[];J.setBlockers?.(L.filter((F)=>F!==q))}},flush:()=>J.flush?.(),destroy:()=>J.destroy?.(),notify:W}}function eq(J,X){if(!X)X={};let Y=Jx();return{...X,key:Y,__TSR_key:Y,["__TSR_index"]:J}}function wB(J={initialEntries:["/"]}){let X=J.initialEntries,Y=J.initialIndex?Math.min(Math.max(J.initialIndex,0),X.length-1):X.length-1,W=X.map((U,q)=>eq(q,void 0));return zx({getLocation:()=>Zx(X[Y],W[Y]),getLength:()=>X.length,pushState:(U,q)=>{if(Y<X.length-1)X.splice(Y+1),W.splice(Y+1);W.push(q),X.push(U),Y=Math.max(X.length-1,0)},replaceState:(U,q)=>{W[Y]=q,X[Y]=U},back:()=>{Y=Math.max(Y-1,0)},forward:()=>{Y=Math.min(Y+1,X.length-1)},go:(U)=>{Y=Math.min(Math.max(Y+U,0),X.length-1)},createHref:(U)=>U})}function Zx(J,X){let Y=J.indexOf("#"),W=J.indexOf("?"),K=Jx();return{href:J,pathname:J.substring(0,Y>0?W>0?Math.min(Y,W):Y:W>0?W:J.length),hash:Y>-1?J.substring(Y):"",search:W>-1?J.slice(W,Y===-1?void 0:Y):"",state:X||{["__TSR_index"]:0,key:K,__TSR_key:K}}}function Jx(){return(Math.random()+1).toString(36).substring(7)}function $x(J){return"init"in J}function zB(J){return!!J.write}function Xx(J){return"v"in J||"e"in J}function YW(J){if("e"in J)throw J.e;if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!("v"in J))throw Error("[Bug] atom state is not initialized");return J.v}var GW=new WeakMap;function Yx(J){var X;return QW(J)&&!!((X=GW.get(J))==null?void 0:X[0])}function Ay(J){let X=GW.get(J);if(X==null?void 0:X[0])X[0]=!1,X[1].forEach((Y)=>Y())}function WW(J,X){let Y=GW.get(J);if(!Y){Y=[!0,new Set],GW.set(J,Y);let W=()=>{Y[0]=!1};J.then(W,W)}Y[1].add(X)}function QW(J){return typeof(J==null?void 0:J.then)==="function"}function Gx(J,X,Y){if(!Y.p.has(J)){Y.p.add(J);let W=()=>Y.p.delete(J);X.then(W,W)}}function Qx(J,X,Y){var W;let K=new Set;for(let U of((W=Y.get(J))==null?void 0:W.t)||[])K.add(U);for(let U of X.p)K.add(U);return K}var jy=(J,X,...Y)=>X.read(...Y),My=(J,X,...Y)=>X.write(...Y),Oy=(J,X)=>{if(X.INTERNAL_onInit)return X.INTERNAL_onInit(J);if(X.unstable_onInit)return console.warn("[DEPRECATED] atom.unstable_onInit is renamed to atom.INTERNAL_onInit."),X.unstable_onInit(J)},Dy=(J,X,Y)=>{var W;return(W=X.onMount)==null?void 0:W.call(X,Y)},Ty=(J,X)=>{var Y;let W=G2(J),K=W[0],U=W[6],q=W[9];if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!X)throw Error("Atom is undefined or null");let _=K.get(X);if(!_)_={d:new Map,p:new Set,n:0},K.set(X,_),(Y=U.i)==null||Y.call(U,X),q==null||q(J,X);return _},xy=(J)=>{let X=G2(J),Y=X[1],W=X[3],K=X[4],U=X[5],q=X[6],_=X[13],L=[],F=(N)=>{try{N()}catch(V){L.push(V)}};do{if(q.f)F(q.f);let N=new Set,V=N.add.bind(N);if(W.forEach((k)=>{var A;return(A=Y.get(k))==null?void 0:A.l.forEach(V)}),W.clear(),U.forEach(V),U.clear(),K.forEach(V),K.clear(),N.forEach(F),W.size)_(J)}while(W.size||U.size||K.size);if(L.length)throw AggregateError(L)},vy=(J)=>{let X=G2(J),Y=X[1],W=X[2],K=X[3],U=X[11],q=X[14],_=X[17],L=[],F=new WeakSet,N=new WeakSet,V=Array.from(K);while(V.length){let k=V[V.length-1],A=U(J,k);if(N.has(k)){V.pop();continue}if(F.has(k)){if(W.get(k)===A.n)L.push([k,A]);else if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&W.has(k))throw Error("[Bug] invalidated atom exists");N.add(k),V.pop();continue}F.add(k);for(let D of Qx(k,A,Y))if(!F.has(D))V.push(D)}for(let k=L.length-1;k>=0;--k){let[A,D]=L[k],M=!1;for(let h of D.d.keys())if(h!==A&&K.has(h)){M=!0;break}if(M)q(J,A),_(J,A);W.delete(A)}},ZB=new WeakSet,hy=(J,X)=>{var Y,W;let K=G2(J),U=K[1],q=K[2],_=K[3],L=K[6],F=K[7],N=K[11],V=K[12],k=K[13],A=K[14],D=K[16],M=K[17],h=K[20],v=N(J,X);if(Xx(v)){if(U.has(X)&&q.get(X)!==v.n)return v;let p=!1;for(let[d,w0]of v.d)if(A(J,d).n!==w0){p=!0;break}if(!p)return v}v.d.clear();let x=!0;function I(){if(U.has(X))M(J,X),k(J),V(J)}function b(p){var d;if(p===X){let t=N(J,p);if(!Xx(t))if($x(p))h(J,p,p.init);else throw Error("no atom init");return YW(t)}let w0=A(J,p);try{return YW(w0)}finally{if(v.d.set(p,w0.n),Yx(v.v))Gx(X,v.v,w0);if(U.has(X))(d=U.get(p))==null||d.t.add(X);if(!x)I()}}let E,m,R={get signal(){if(!E)E=new AbortController;return E.signal},get setSelf(){if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!zB(X))console.warn("setSelf function cannot be used with read-only atom");if(!m&&zB(X))m=(...p)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&x)console.warn("setSelf function cannot be called in sync");if(!x)try{return D(J,X,...p)}finally{k(J),V(J)}};return m}},S=v.n;try{if((import.meta.env?import.meta.env.MODE:void 0)!=="production")ZB.delete(J);let p=F(J,X,b,R);if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&ZB.has(J))console.warn("Detected store mutation during atom read. This is not supported.");if(h(J,X,p),QW(p))WW(p,()=>E==null?void 0:E.abort()),p.then(I,I);return(Y=L.r)==null||Y.call(L,X),v}catch(p){return delete v.v,v.e=p,++v.n,v}finally{if(x=!1,S!==v.n&&q.get(X)===S)q.set(X,v.n),_.add(X),(W=L.c)==null||W.call(L,X)}},Ey=(J,X)=>{let Y=G2(J),W=Y[1],K=Y[2],U=Y[11],q=[X];while(q.length){let _=q.pop(),L=U(J,_);for(let F of Qx(_,L,W)){let N=U(J,F);K.set(F,N.n),q.push(F)}}},Py=(J,X,...Y)=>{let W=G2(J),K=W[3],U=W[6],q=W[8],_=W[11],L=W[12],F=W[13],N=W[14],V=W[15],k=W[16],A=W[17],D=W[20],M=!0,h=(x)=>YW(N(J,x)),v=(x,...I)=>{var b;let E=_(J,x);try{if(x===X){if(!$x(x))throw Error("atom not writable");if((import.meta.env?import.meta.env.MODE:void 0)!=="production")ZB.add(J);let m=E.n,R=I[0];if(D(J,x,R),A(J,x),m!==E.n)K.add(x),V(J,x),(b=U.c)==null||b.call(U,x);return}else return k(J,x,...I)}finally{if(!M)F(J),L(J)}};try{return q(J,X,h,v,...Y)}finally{M=!1}},Iy=(J,X)=>{var Y;let W=G2(J),K=W[1],U=W[3],q=W[6],_=W[11],L=W[15],F=W[18],N=W[19],V=_(J,X),k=K.get(X);if(k&&!Yx(V.v)){for(let[A,D]of V.d)if(!k.d.has(A)){let M=_(J,A);if(F(J,A).t.add(X),k.d.add(A),D!==M.n)U.add(A),L(J,A),(Y=q.c)==null||Y.call(q,A)}for(let A of k.d)if(!V.d.has(A)){k.d.delete(A);let D=N(J,A);D==null||D.t.delete(X)}}},by=(J,X)=>{var Y;let W=G2(J),K=W[1],U=W[4],q=W[6],_=W[10],L=W[11],F=W[12],N=W[13],V=W[14],k=W[16],A=W[18],D=L(J,X),M=K.get(X);if(!M){V(J,X);for(let h of D.d.keys())A(J,h).t.add(X);if(M={l:new Set,d:new Set(D.d.keys()),t:new Set},K.set(X,M),zB(X)){let h=()=>{let v=!0,x=(...I)=>{try{return k(J,X,...I)}finally{if(!v)N(J),F(J)}};try{let I=_(J,X,x);if(I)M.u=()=>{v=!0;try{I()}finally{v=!1}}}finally{v=!1}};U.add(h)}(Y=q.m)==null||Y.call(q,X)}return M},Sy=(J,X)=>{var Y,W;let K=G2(J),U=K[1],q=K[5],_=K[6],L=K[11],F=K[19],N=L(J,X),V=U.get(X);if(!V||V.l.size)return V;let k=!1;for(let A of V.t)if((Y=U.get(A))==null?void 0:Y.d.has(X)){k=!0;break}if(!k){if(V.u)q.add(V.u);V=void 0,U.delete(X);for(let A of N.d.keys()){let D=F(J,A);D==null||D.t.delete(X)}(W=_.u)==null||W.call(_,X);return}return V},Cy=(J,X,Y)=>{let W=G2(J)[11],K=W(J,X),U="v"in K,q=K.v;if(QW(Y))for(let _ of K.d.keys())Gx(X,Y,W(J,_));if(K.v=Y,delete K.e,!U||!Object.is(q,K.v)){if(++K.n,QW(q))Ay(q)}},yy=(J,X)=>{let Y=G2(J)[14];return YW(Y(J,X))},Ry=(J,X,...Y)=>{let W=G2(J),K=W[12],U=W[13],q=W[16];try{return q(J,X,...Y)}finally{U(J),K(J)}},gy=(J,X,Y)=>{let W=G2(J),K=W[12],U=W[18],q=W[19],L=U(J,X).l;return L.add(Y),K(J),()=>{L.delete(Y),q(J,X),K(J)}},Wx=new WeakMap,G2=(J)=>{let X=Wx.get(J);if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!X)throw Error("Store must be created by buildStore to read its building blocks");return X};function Kx(...J){let X={get(W){let K=G2(X)[21];return K(X,W)},set(W,...K){let U=G2(X)[22];return U(X,W,...K)},sub(W,K){let U=G2(X)[23];return U(X,W,K)}},Y=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},jy,My,Oy,Dy,Ty,xy,vy,hy,Ey,Py,Iy,by,Sy,Cy,yy,Ry,gy,void 0].map((W,K)=>J[K]||W);return Wx.set(X,Object.freeze(Y)),X}var fy=0;function Q$(J,X){let Y=`atom${++fy}`,W={toString(){return(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&this.debugLabel?Y+":"+this.debugLabel:Y}};if(typeof J==="function")W.read=J;else W.init=J,W.read=my,W.write=dy;if(X)W.write=X;return W}function my(J){return J(this)}function dy(J,X,Y){return X(this,typeof Y==="function"?Y(J(this)):Y)}var Ux;function Hx(){if(Ux)return Ux();return Kx()}var G$;function _x(){if(!G$){if(G$=Hx(),(import.meta.env?import.meta.env.MODE:void 0)!=="production"){if(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=G$),globalThis.__JOTAI_DEFAULT_STORE__!==G$)console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")}}return G$}var ew=c(G0(),1);var uy=ew.createContext(void 0);function Bx(J){let X=ew.useContext(uy);return(J==null?void 0:J.store)||X||_x()}var XB=(J)=>typeof(J==null?void 0:J.then)==="function",$B=(J)=>{if(!J.status)J.status="pending",J.then((X)=>{J.status="fulfilled",J.value=X},(X)=>{J.status="rejected",J.reason=X})},py=ew.default.use||((J)=>{if(J.status==="pending")throw J;else if(J.status==="fulfilled")return J.value;else if(J.status==="rejected")throw J.reason;else throw $B(J),J}),JB=new WeakMap,qx=(J,X)=>{let Y=JB.get(J);if(!Y)Y=new Promise((W,K)=>{let U=J,q=(F)=>(N)=>{if(U===F)W(N)},_=(F)=>(N)=>{if(U===F)K(N)},L=()=>{try{let F=X();if(XB(F))JB.set(F,Y),U=F,F.then(q(F),_(F)),WW(F,L);else W(F)}catch(F){K(F)}};J.then(q(J),_(J)),WW(J,L)}),JB.set(J,Y);return Y};function cy(J,X){let{delay:Y,unstable_promiseStatus:W=!ew.default.use}=X||{},K=Bx(X),[[U,q,_],L]=ew.useReducer((N)=>{let V=K.get(J);if(Object.is(N[0],V)&&N[1]===K&&N[2]===J)return N;return[V,K,J]},void 0,()=>[K.get(J),K,J]),F=U;if(q!==K||_!==J)L(),F=K.get(J);if(ew.useEffect(()=>{let N=K.sub(J,()=>{if(W)try{let V=K.get(J);if(XB(V))$B(qx(V,()=>K.get(J)))}catch(V){}if(typeof Y==="number"){setTimeout(L,Y);return}L()});return L(),N},[K,J,Y,W]),ew.useDebugValue(F),XB(F)){let N=qx(F,()=>K.get(J));if(W)$B(N);return py(N)}return F}function ly(J,X){let Y=Bx(X);return ew.useCallback((...K)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!("write"in J))throw Error("not writable atom");return Y.set(J,...K)},[Y,J])}function Q8(J,X){return[cy(J,X),ly(J,X)]}var iy=Symbol((import.meta.env?import.meta.env.MODE:void 0)!=="production"?"RESET":"");var Lx=(J)=>typeof(J==null?void 0:J.then)==="function";function ry(J=()=>{try{return window.localStorage}catch(Y){if((import.meta.env?import.meta.env.MODE:void 0)!=="production"){if(typeof window<"u")console.warn(Y)}return}},X){var Y;let W,K,U={getItem:(L,F)=>{var N,V;let k=(D)=>{if(D=D||"",W!==D){try{K=JSON.parse(D,X==null?void 0:X.reviver)}catch(M){return F}W=D}return K},A=(V=(N=J())==null?void 0:N.getItem(L))!=null?V:null;if(Lx(A))return A.then(k);return k(A)},setItem:(L,F)=>{var N;return(N=J())==null?void 0:N.setItem(L,JSON.stringify(F,X==null?void 0:X.replacer))},removeItem:(L)=>{var F;return(F=J())==null?void 0:F.removeItem(L)}},q=(L)=>(F,N,V)=>L(F,(k)=>{let A;try{A=JSON.parse(k||"")}catch(D){A=V}N(A)}),_;try{_=(Y=J())==null?void 0:Y.subscribe}catch(L){}if(!_&&typeof window<"u"&&typeof window.addEventListener==="function"&&window.Storage)_=(L,F)=>{if(!(J()instanceof window.Storage))return()=>{};let N=(V)=>{if(V.storageArea===J()&&V.key===L)F(V.newValue)};return window.addEventListener("storage",N),()=>{window.removeEventListener("storage",N)}};if(_)U.subscribe=q(_);return U}var ay=ry();function YB(J,X,Y=ay,W){let K=W==null?void 0:W.getOnInit,U=Q$(K?Y.getItem(J,X):X);if((import.meta.env?import.meta.env.MODE:void 0)!=="production")U.debugPrivate=!0;return U.onMount=(_)=>{_(Y.getItem(J,X));let L;if(Y.subscribe)L=Y.subscribe(J,_,X);return L},Q$((_)=>_(U),(_,L,F)=>{let N=typeof F==="function"?F(_(U)):F;if(N===iy)return L(U,X),Y.removeItem(J);if(Lx(N))return N.then((V)=>{return L(U,V),Y.setItem(J,V)});return L(U,N),Y.setItem(J,N)})}var GB=YB("activeTabId",null),K9=YB("tabs",[]),sy=Q$((J)=>J(K9).reduce((X,Y)=>{return X[Y.id]=wB({initialEntries:[Y.path]}),X},{}));function LZ(){return Q8(K9)}function Vx(){let[J]=Q8(K9),[X,Y]=Q8(GB),[W]=Q8(sy),K=J.find((q)=>q.id===X)??null,U=X?W[X]:null;return{activeTab:K,setActiveTab:Y,tabHistory:U}}function Fx(){let[,J]=Q8(K9),[,X]=Q8(GB);return(Y)=>{let W=crypto.randomUUID();return J((K)=>[...K,{...Y,id:W}]),X(W),W}}function Nx(){let[J,X]=Q8(K9);return(Y)=>{X(J.map((W)=>W.id===Y?{...W,temporary:!1}:W))}}function kx(){let[J,X]=Q8(K9),[Y,W]=Q8(GB);return(K)=>{if(X(J.filter((U)=>U.id!==K)),Y===K){let U=J.findIndex((_)=>_.id===K),q=J[U-1]||J[U+1]||null;W(q?q.id:null)}}}function Ax(){let[J,X]=Q8(K9);return(Y,W)=>{X(J.map((K)=>K.id===Y?{...W,id:Y}:K))}}var U9=c(E1(),1);function jx({...J}){return U9.jsxDEV(b6.Root,{"data-slot":"context-menu",...J},void 0,!1,void 0,this)}function Mx({className:J,...X}){return U9.jsxDEV(b6.Trigger,{"data-slot":"context-menu-trigger",className:h1("select-none",J),...X},void 0,!1,void 0,this)}function Ox({className:J,align:X="start",alignOffset:Y=4,side:W="right",sideOffset:K=0,...U}){return U9.jsxDEV(b6.Portal,{children:U9.jsxDEV(b6.Positioner,{className:"isolate z-50 outline-none",align:X,alignOffset:Y,side:W,sideOffset:K,children:U9.jsxDEV(b6.Popup,{"data-slot":"context-menu-content",className:h1("data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 dark z-50 max-h-(--available-height) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none",J),...U},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function QB({className:J,inset:X,variant:Y="default",...W}){return U9.jsxDEV(b6.Item,{"data-slot":"context-menu-item","data-inset":X,"data-variant":Y,className:h1("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 group/context-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",J),...W},void 0,!1,void 0,this)}var H9=c(E1(),1);function Dx({story:J,...X}){let[Y]=LZ(),{activeTab:W,setActiveTab:K}=Vx(),U=Fx(),q=Ax();function _(F){return()=>{let N=Y.find((V)=>V.path===J.id);if(N)return K(N.id);if(W?.temporary)return q(W.id,{name:J.name,path:J.id,temporary:F==="temporary"});return U({name:J.name,path:J.id,temporary:F==="temporary"})}}function L(){return()=>{U({name:J.name,path:J.id,temporary:!1})}}return H9.jsxDEV(jx,{children:[H9.jsxDEV(Mx,{render:H9.jsxDEV(tT,{onClick:_("temporary"),onDoubleClick:_("permanent"),...X},void 0,!1,void 0,this)},void 0,!1,void 0,this),H9.jsxDEV(Ox,{children:[H9.jsxDEV(QB,{onSelect:_("permanent"),children:"Open"},void 0,!1,void 0,this),H9.jsxDEV(QB,{onSelect:L(),children:"Open in New Tab"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var lw=c(E1(),1);function Tx(){let{data:J,isLoading:X,error:Y}=rq({queryKey:["stories"],queryFn:$T});return lw.jsxDEV(lT,{children:[lw.jsxDEV(iT,{children:lw.jsxDEV(f6,{variant:"outline",size:"lg",className:"flex justify-between gap-1 w-full text-zinc-500 font-normal",children:[lw.jsxDEV("span",{children:"Search..."},void 0,!1,void 0,this),lw.jsxDEV(xT,{children:"⌘ K"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),lw.jsxDEV(rT,{children:[X&&lw.jsxDEV("div",{className:"w-full py-8 flex items-center justify-center",children:lw.jsxDEV(eT,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y&&lw.jsxDEV("div",{className:"w-full py-8 flex flex-col items-center justify-center text-center gap-2",children:[lw.jsxDEV("p",{className:"text-xs text-destructive font-medium",children:"Failed to load stories."},void 0,!1,void 0,this),lw.jsxDEV("p",{className:"text-xs text-muted-foreground",children:"Check if your server is running and accessible."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J&&Object.keys(J).map((W)=>lw.jsxDEV(aT,{children:[lw.jsxDEV(sT,{children:W},void 0,!1,void 0,this),lw.jsxDEV(oT,{children:lw.jsxDEV(nT,{children:J[W]?.map((K)=>lw.jsxDEV(Dx,{story:{id:K.path,name:K.name},children:lw.jsxDEV("span",{children:K.name},void 0,!1,void 0,this)},K.path,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},W,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var VZ=c(E1(),1);function xx(){let[J]=LZ();return VZ.jsxDEV(VZ.Fragment,{children:J.map((X)=>VZ.jsxDEV(R6.Panel,{value:X.id,children:VZ.jsxDEV("iframe",{src:`/iframe/${X.path}`,className:"w-full h-full border-none bg-white",title:X.name},void 0,!1,void 0,this)},X.id,!1,void 0,this))},void 0,!1,void 0,this)}var W8=c(E1(),1);function vx(){let[J]=LZ(),X=Nx(),Y=kx();return W8.jsxDEV(R6.List,{className:"border-b h-8 bg-sidebar flex w-full",children:[J.length>0&&W8.jsxDEV("div",{className:"flex h-full items-center px-1.5 gap-0.5 border-r",children:[W8.jsxDEV(f6,{variant:"ghost",size:"icon-sm",children:W8.jsxDEV($$,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W8.jsxDEV(f6,{variant:"ghost",size:"icon-sm",children:W8.jsxDEV(Y$,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.map((W)=>W8.jsxDEV(R6.Tab,{nativeButton:!1,render:W8.jsxDEV("div",{},void 0,!1,void 0,this),value:W.id,className:"px-6 h-8 border-r text-xs flex items-center justify-center relative group data-[temporary=true]:italic select-none","data-temporary":W.temporary,onClick:()=>{if(W.temporary)X(W.id)},children:[W.name,W8.jsxDEV(f6,{size:"icon-xs",variant:"ghost",className:"absolute right-1 invisible opacity-0 group-hover:visible group-hover:opacity-100 transition-opacity duration-200 p-0",onClick:(K)=>{K.stopPropagation(),Y(W.id)},children:W8.jsxDEV(W9,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},W.id,!0,void 0,this))]},void 0,!0,void 0,this)}var r4=c(E1(),1);function hx(){return r4.jsxDEV(lq,{client:XT,children:r4.jsxDEV(cT,{children:[r4.jsxDEV(Tx,{},void 0,!1,void 0,this),r4.jsxDEV("main",{className:"flex flex-col w-full",children:r4.jsxDEV(R6.Root,{children:[r4.jsxDEV(vx,{},void 0,!1,void 0,this),r4.jsxDEV(xx,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Ix=c(E1(),1),Px=document.getElementById("root");if(!Px)throw Error("Root element not found");function oy(){let J=0,X=10;function Y(){let K=document.querySelectorAll("iframe");K.forEach((U)=>{let q=U.src,_=new URL(q);_.searchParams.set("_hmr",Date.now().toString()),U.src=_.toString()}),console.log(`[HMR] Refreshed ${K.length} iframe(s)`)}function W(){let K=new WebSocket(`ws://${location.host}/__hmr`);K.onopen=()=>{console.log("[HMR] Connected"),J=0},K.onmessage=(U)=>{if(JSON.parse(U.data).type==="reload")console.log("[HMR] Reloading iframes..."),Y()},K.onclose=()=>{if(console.log("[HMR] Disconnected"),J<X)J++,setTimeout(W,1000*Math.min(J,5))},K.onerror=()=>K.close()}W()}Ex.createRoot(Px).render(Ix.jsxDEV(hx,{},void 0,!1,void 0,this));oy();
|
|
263
|
+
|
|
264
|
+
//# debugId=463C182A1C3F634464756E2164756E21
|
|
265
|
+
//# sourceMappingURL=chunk-9bkatxct.js.map
|