tmex-cli 0.4.2 → 0.4.4
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/dist/runtime/server.js +491 -94
- package/package.json +1 -1
- package/resources/fe-dist/assets/DevicePage-Di11uzbS.js +26 -0
- package/resources/fe-dist/assets/{DevicePage-CKaPUo7L.js.map → DevicePage-Di11uzbS.js.map} +1 -1
- package/resources/fe-dist/assets/DevicesPage-dj7Pel6f.js +17 -0
- package/resources/fe-dist/assets/DevicesPage-dj7Pel6f.js.map +1 -0
- package/resources/fe-dist/assets/SettingsPage-DwpbDA_e.js +17 -0
- package/resources/fe-dist/assets/{SettingsPage-BfkOW0fc.js.map → SettingsPage-DwpbDA_e.js.map} +1 -1
- package/resources/fe-dist/assets/index-40zyi_9K.css +1 -0
- package/resources/fe-dist/assets/index-61hq_aNX.js +215 -0
- package/resources/fe-dist/assets/index-61hq_aNX.js.map +1 -0
- package/resources/fe-dist/assets/select-DI4HQZd4.js +17 -0
- package/resources/fe-dist/assets/{select-CNlE6MiW.js.map → select-DI4HQZd4.js.map} +1 -1
- package/resources/fe-dist/assets/switch-DsfDIUrU.js +12 -0
- package/resources/fe-dist/assets/{switch-CxkzOIL6.js.map → switch-DsfDIUrU.js.map} +1 -1
- package/resources/fe-dist/assets/useValueChanged-AVaPYvln.js +7 -0
- package/resources/fe-dist/assets/{useValueChanged-CO2U5MoL.js.map → useValueChanged-AVaPYvln.js.map} +1 -1
- package/resources/fe-dist/index.html +2 -2
- package/resources/gateway-drizzle/0003_glamorous_lizard.sql +1 -0
- package/resources/gateway-drizzle/meta/0003_snapshot.json +542 -0
- package/resources/gateway-drizzle/meta/_journal.json +7 -0
- package/resources/fe-dist/assets/DevicePage-CKaPUo7L.js +0 -26
- package/resources/fe-dist/assets/DevicesPage-FqU-Dxhu.js +0 -17
- package/resources/fe-dist/assets/DevicesPage-FqU-Dxhu.js.map +0 -1
- package/resources/fe-dist/assets/SettingsPage-BfkOW0fc.js +0 -17
- package/resources/fe-dist/assets/index-EgHfq93I.js +0 -449
- package/resources/fe-dist/assets/index-EgHfq93I.js.map +0 -1
- package/resources/fe-dist/assets/index-Ytlj3p_q.css +0 -1
- package/resources/fe-dist/assets/select-CNlE6MiW.js +0 -17
- package/resources/fe-dist/assets/switch-CxkzOIL6.js +0 -12
- package/resources/fe-dist/assets/useValueChanged-CO2U5MoL.js +0 -7
|
@@ -1,449 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SettingsPage-BfkOW0fc.js","assets/select-CNlE6MiW.js","assets/useValueChanged-CO2U5MoL.js","assets/switch-CxkzOIL6.js","assets/DevicesPage-FqU-Dxhu.js","assets/DevicePage-CKaPUo7L.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Mz=Object.defineProperty;var K1=o=>{throw TypeError(o)};var _z=(o,n,a)=>n in o?Mz(o,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[n]=a;var Xe=(o,n,a)=>_z(o,typeof n!="symbol"?n+"":n,a),Wv=(o,n,a)=>n.has(o)||K1("Cannot "+a);var ee=(o,n,a)=>(Wv(o,n,"read from private field"),a?a.call(o):n.get(o)),lt=(o,n,a)=>n.has(o)?K1("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(o):n.set(o,a),Be=(o,n,a,i)=>(Wv(o,n,"write to private field"),i?i.call(o,a):n.set(o,a),a),Bt=(o,n,a)=>(Wv(o,n,"access private method"),a);var hm=(o,n,a,i)=>({set _(l){Be(o,n,l,a)},get _(){return ee(o,n,i)}});function kz(o,n){for(var a=0;a<n.length;a++){const i=n[a];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in o)){const c=Object.getOwnPropertyDescriptor(i,l);c&&Object.defineProperty(o,l,c.get?c:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function a(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(l){if(l.ep)return;l.ep=!0;const c=a(l);fetch(l.href,c)}})();const Lz="modulepreload",Uz=function(o){return"/"+o},J1={},OS=function(n,a,i){let l=Promise.resolve();if(a&&a.length>0){let f=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),g=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));l=f(a.map(m=>{if(m=Uz(m),m in J1)return;J1[m]=!0;const b=m.endsWith(".css"),p=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${p}`))return;const v=document.createElement("link");if(v.rel=b?"stylesheet":Lz,b||(v.as="script"),v.crossOrigin="",v.href=m,g&&v.setAttribute("nonce",g),document.head.appendChild(v),b)return new Promise((w,E)=>{v.addEventListener("load",w),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(f){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=f,window.dispatchEvent(h),!h.defaultPrevented)throw f}return l.then(f=>{for(const h of f||[])h.status==="rejected"&&c(h.reason);return n().catch(c)})};function zA(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Kv={exports:{}},pm={},Jv={exports:{}},pf={exports:{}};pf.exports;var Z1;function zz(){return Z1||(Z1=1,(function(o,n){/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react.development.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/(function(){function a(D,G){Object.defineProperty(c.prototype,D,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",G[0],G[1])}})}function i(D){return D===null||typeof D!="object"?null:(D=he&&D[he]||D["@@iterator"],typeof D=="function"?D:null)}function l(D,G){D=(D=D.constructor)&&(D.displayName||D.name)||"ReactClass";var ge=D+"."+G;we[ge]||(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.",G,D),we[ge]=!0)}function c(D,G,ge){this.props=D,this.context=G,this.refs=Re,this.updater=ge||De}function f(){}function h(D,G,ge){this.props=D,this.context=G,this.refs=Re,this.updater=ge||De}function g(){}function m(D){return""+D}function b(D){try{m(D);var G=!1}catch{G=!0}if(G){G=console;var ge=G.error,ye=typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return ge.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ye),m(D)}}function p(D){if(D==null)return null;if(typeof D=="function")return D.$$typeof===tt?null:D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case L:return"Fragment";case ie:return"Profiler";case ce:return"StrictMode";case ve:return"Suspense";case ze:return"SuspenseList";case xe:return"Activity"}if(typeof D=="object")switch(typeof D.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case pe:return"Portal";case Te:return D.displayName||"Context";case me:return(D._context.displayName||"Context")+".Consumer";case Ue:var G=D.render;return D=D.displayName,D||(D=G.displayName||G.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case Pe:return G=D.displayName||null,G!==null?G:p(D.type)||"Memo";case at:G=D._payload,D=D._init;try{return p(D(G))}catch{}}return null}function v(D){if(D===L)return"<>";if(typeof D=="object"&&D!==null&&D.$$typeof===at)return"<...>";try{var G=p(D);return G?"<"+G+">":"<...>"}catch{return"<...>"}}function w(){var D=Ce.A;return D===null?null:D.getOwner()}function E(){return Error("react-stack-top-frame")}function T(D){if(ot.call(D,"key")){var G=Object.getOwnPropertyDescriptor(D,"key").get;if(G&&G.isReactWarning)return!1}return D.key!==void 0}function C(D,G){function ge(){yt||(yt=!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)",G))}ge.isReactWarning=!0,Object.defineProperty(D,"key",{get:ge,configurable:!0})}function A(){var D=p(this.type);return $t[D]||($t[D]=!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.")),D=this.props.ref,D!==void 0?D:null}function k(D,G,ge,ye,Ne,$e){var Se=ge.ref;return D={$$typeof:se,type:D,key:G,props:ge,_owner:ye},(Se!==void 0?Se:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:A}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(D,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.defineProperty(D,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function U(D,G){return G=k(D.type,G,D.props,D._owner,D._debugStack,D._debugTask),D._store&&(G._store.validated=D._store.validated),G}function M(D){Y(D)?D._store&&(D._store.validated=1):typeof D=="object"&&D!==null&&D.$$typeof===at&&(D._payload.status==="fulfilled"?Y(D._payload.value)&&D._payload.value._store&&(D._payload.value._store.validated=1):D._store&&(D._store.validated=1))}function Y(D){return typeof D=="object"&&D!==null&&D.$$typeof===se}function $(D){var G={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ge){return G[ge]})}function _(D,G){return typeof D=="object"&&D!==null&&D.key!=null?(b(D.key),$(""+D.key)):G.toString(36)}function z(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(g,g):(D.status="pending",D.then(function(G){D.status==="pending"&&(D.status="fulfilled",D.value=G)},function(G){D.status==="pending"&&(D.status="rejected",D.reason=G)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function te(D,G,ge,ye,Ne){var $e=typeof D;($e==="undefined"||$e==="boolean")&&(D=null);var Se=!1;if(D===null)Se=!0;else switch($e){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(D.$$typeof){case se:case pe:Se=!0;break;case at:return Se=D._init,te(Se(D._payload),G,ge,ye,Ne)}}if(Se){Se=D,Ne=Ne(Se);var Ke=ye===""?"."+_(Se,0):ye;return Le(Ne)?(ge="",Ke!=null&&(ge=Ke.replace(jt,"$&/")+"/"),te(Ne,G,ge,"",function(Rt){return Rt})):Ne!=null&&(Y(Ne)&&(Ne.key!=null&&(Se&&Se.key===Ne.key||b(Ne.key)),ge=U(Ne,ge+(Ne.key==null||Se&&Se.key===Ne.key?"":(""+Ne.key).replace(jt,"$&/")+"/")+Ke),ye!==""&&Se!=null&&Y(Se)&&Se.key==null&&Se._store&&!Se._store.validated&&(ge._store.validated=2),Ne=ge),G.push(Ne)),1}if(Se=0,Ke=ye===""?".":ye+":",Le(D))for(var Ve=0;Ve<D.length;Ve++)ye=D[Ve],$e=Ke+_(ye,Ve),Se+=te(ye,G,ge,$e,Ne);else if(Ve=i(D),typeof Ve=="function")for(Ve===D.entries&&(bt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bt=!0),D=Ve.call(D),Ve=0;!(ye=D.next()).done;)ye=ye.value,$e=Ke+_(ye,Ve++),Se+=te(ye,G,ge,$e,Ne);else if($e==="object"){if(typeof D.then=="function")return te(z(D),G,ge,ye,Ne);throw G=String(D),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Se}function H(D,G,ge){if(D==null)return D;var ye=[],Ne=0;return te(D,ye,"","",function($e){return G.call(ge,$e,Ne++)}),ye}function J(D){if(D._status===-1){var G=D._ioInfo;G!=null&&(G.start=G.end=performance.now()),G=D._result;var ge=G();if(ge.then(function(Ne){if(D._status===0||D._status===-1){D._status=1,D._result=Ne;var $e=D._ioInfo;$e!=null&&($e.end=performance.now()),ge.status===void 0&&(ge.status="fulfilled",ge.value=Ne)}},function(Ne){if(D._status===0||D._status===-1){D._status=2,D._result=Ne;var $e=D._ioInfo;$e!=null&&($e.end=performance.now()),ge.status===void 0&&(ge.status="rejected",ge.reason=Ne)}}),G=D._ioInfo,G!=null){G.value=ge;var ye=ge.displayName;typeof ye=="string"&&(G.name=ye)}D._status===-1&&(D._status=0,D._result=ge)}if(D._status===1)return G=D._result,G===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
11
|
-
|
|
12
|
-
Your code should look like:
|
|
13
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
14
|
-
|
|
15
|
-
Did you accidentally put curly braces around the import?`,G),"default"in G||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
16
|
-
|
|
17
|
-
Your code should look like:
|
|
18
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,G),G.default;throw D._result}function N(){var D=Ce.H;return D===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
19
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
20
|
-
2. You might be breaking the Rules of Hooks
|
|
21
|
-
3. You might have more than one copy of React in the same app
|
|
22
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),D}function j(){Ce.asyncTransitions--}function ne(D){if(ln===null)try{var G=("require"+Math.random()).slice(0,7);ln=(o&&o[G]).call(o,"timers").setImmediate}catch{ln=function(ye){vn===!1&&(vn=!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 Ne=new MessageChannel;Ne.port1.onmessage=ye,Ne.port2.postMessage(void 0)}}return ln(D)}function Z(D){return 1<D.length&&typeof AggregateError=="function"?new AggregateError(D):D[0]}function P(D,G){G!==Zn-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. "),Zn=G}function oe(D,G,ge){var ye=Ce.actQueue;if(ye!==null)if(ye.length!==0)try{I(ye),ne(function(){return oe(D,G,ge)});return}catch(Ne){Ce.thrownErrors.push(Ne)}else Ce.actQueue=null;0<Ce.thrownErrors.length?(ye=Z(Ce.thrownErrors),Ce.thrownErrors.length=0,ge(ye)):G(D)}function I(D){if(!co){co=!0;var G=0;try{for(;G<D.length;G++){var ge=D[G];do{Ce.didUsePromise=!1;var ye=ge(!1);if(ye!==null){if(Ce.didUsePromise){D[G]=ge,D.splice(0,G);return}ge=ye}else break}while(!0)}D.length=0}catch(Ne){D.splice(0,G+1),Ce.thrownErrors.push(Ne)}finally{co=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var se=Symbol.for("react.transitional.element"),pe=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),ce=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),me=Symbol.for("react.consumer"),Te=Symbol.for("react.context"),Ue=Symbol.for("react.forward_ref"),ve=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),Pe=Symbol.for("react.memo"),at=Symbol.for("react.lazy"),xe=Symbol.for("react.activity"),he=Symbol.iterator,we={},De={isMounted:function(){return!1},enqueueForceUpdate:function(D){l(D,"forceUpdate")},enqueueReplaceState:function(D){l(D,"replaceState")},enqueueSetState:function(D){l(D,"setState")}},Ye=Object.assign,Re={};Object.freeze(Re),c.prototype.isReactComponent={},c.prototype.setState=function(D,G){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,G,"setState")},c.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};var Ae={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(Un in Ae)Ae.hasOwnProperty(Un)&&a(Un,Ae[Un]);f.prototype=c.prototype,Ae=h.prototype=new f,Ae.constructor=h,Ye(Ae,c.prototype),Ae.isPureReactComponent=!0;var Le=Array.isArray,tt=Symbol.for("react.client.reference"),Ce={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ot=Object.prototype.hasOwnProperty,gt=console.createTask?console.createTask:function(){return null};Ae={react_stack_bottom_frame:function(D){return D()}};var yt,ht,$t={},on=Ae.react_stack_bottom_frame.bind(Ae,E)(),bn=gt(v(E)),bt=!1,jt=/\/+/g,Ft=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},vn=!1,ln=null,Zn=0,hn=!1,co=!1,uo=typeof queueMicrotask=="function"?function(D){queueMicrotask(function(){return queueMicrotask(D)})}:ne;Ae=Object.freeze({__proto__:null,c:function(D){return N().useMemoCache(D)}});var Un={map:H,forEach:function(D,G,ge){H(D,function(){G.apply(this,arguments)},ge)},count:function(D){var G=0;return H(D,function(){G++}),G},toArray:function(D){return H(D,function(G){return G})||[]},only:function(D){if(!Y(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};n.Activity=xe,n.Children=Un,n.Component=c,n.Fragment=L,n.Profiler=ie,n.PureComponent=h,n.StrictMode=ce,n.Suspense=ve,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ce,n.__COMPILER_RUNTIME=Ae,n.act=function(D){var G=Ce.actQueue,ge=Zn;Zn++;var ye=Ce.actQueue=G!==null?G:[],Ne=!1;try{var $e=D()}catch(Ve){Ce.thrownErrors.push(Ve)}if(0<Ce.thrownErrors.length)throw P(G,ge),D=Z(Ce.thrownErrors),Ce.thrownErrors.length=0,D;if($e!==null&&typeof $e=="object"&&typeof $e.then=="function"){var Se=$e;return uo(function(){Ne||hn||(hn=!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(Ve,Rt){Ne=!0,Se.then(function(Cn){if(P(G,ge),ge===0){try{I(ye),ne(function(){return oe(Cn,Ve,Rt)})}catch(xn){Ce.thrownErrors.push(xn)}if(0<Ce.thrownErrors.length){var rn=Z(Ce.thrownErrors);Ce.thrownErrors.length=0,Rt(rn)}}else Ve(Cn)},function(Cn){P(G,ge),0<Ce.thrownErrors.length&&(Cn=Z(Ce.thrownErrors),Ce.thrownErrors.length=0),Rt(Cn)})}}}var Ke=$e;if(P(G,ge),ge===0&&(I(ye),ye.length!==0&&uo(function(){Ne||hn||(hn=!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(() => ...)"))}),Ce.actQueue=null),0<Ce.thrownErrors.length)throw D=Z(Ce.thrownErrors),Ce.thrownErrors.length=0,D;return{then:function(Ve,Rt){Ne=!0,ge===0?(Ce.actQueue=ye,ne(function(){return oe(Ke,Ve,Rt)})):Ve(Ke)}}},n.cache=function(D){return function(){return D.apply(null,arguments)}},n.cacheSignal=function(){return null},n.captureOwnerStack=function(){var D=Ce.getCurrentStack;return D===null?null:D()},n.cloneElement=function(D,G,ge){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ye=Ye({},D.props),Ne=D.key,$e=D._owner;if(G!=null){var Se;e:{if(ot.call(G,"ref")&&(Se=Object.getOwnPropertyDescriptor(G,"ref").get)&&Se.isReactWarning){Se=!1;break e}Se=G.ref!==void 0}Se&&($e=w()),T(G)&&(b(G.key),Ne=""+G.key);for(Ke in G)!ot.call(G,Ke)||Ke==="key"||Ke==="__self"||Ke==="__source"||Ke==="ref"&&G.ref===void 0||(ye[Ke]=G[Ke])}var Ke=arguments.length-2;if(Ke===1)ye.children=ge;else if(1<Ke){Se=Array(Ke);for(var Ve=0;Ve<Ke;Ve++)Se[Ve]=arguments[Ve+2];ye.children=Se}for(ye=k(D.type,Ne,ye,$e,D._debugStack,D._debugTask),Ne=2;Ne<arguments.length;Ne++)M(arguments[Ne]);return ye},n.createContext=function(D){return D={$$typeof:Te,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:me,_context:D},D._currentRenderer=null,D._currentRenderer2=null,D},n.createElement=function(D,G,ge){for(var ye=2;ye<arguments.length;ye++)M(arguments[ye]);ye={};var Ne=null;if(G!=null)for(Ve in ht||!("__self"in G)||"key"in G||(ht=!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")),T(G)&&(b(G.key),Ne=""+G.key),G)ot.call(G,Ve)&&Ve!=="key"&&Ve!=="__self"&&Ve!=="__source"&&(ye[Ve]=G[Ve]);var $e=arguments.length-2;if($e===1)ye.children=ge;else if(1<$e){for(var Se=Array($e),Ke=0;Ke<$e;Ke++)Se[Ke]=arguments[Ke+2];Object.freeze&&Object.freeze(Se),ye.children=Se}if(D&&D.defaultProps)for(Ve in $e=D.defaultProps,$e)ye[Ve]===void 0&&(ye[Ve]=$e[Ve]);Ne&&C(ye,typeof D=="function"?D.displayName||D.name||"Unknown":D);var Ve=1e4>Ce.recentlyCreatedOwnerStacks++;return k(D,Ne,ye,w(),Ve?Error("react-stack-top-frame"):on,Ve?gt(v(D)):bn)},n.createRef=function(){var D={current:null};return Object.seal(D),D},n.forwardRef=function(D){D!=null&&D.$$typeof===Pe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof D!="function"?console.error("forwardRef requires a render function but was given %s.",D===null?"null":typeof D):D.length!==0&&D.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",D.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),D!=null&&D.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var G={$$typeof:Ue,render:D},ge;return Object.defineProperty(G,"displayName",{enumerable:!1,configurable:!0,get:function(){return ge},set:function(ye){ge=ye,D.name||D.displayName||(Object.defineProperty(D,"name",{value:ye}),D.displayName=ye)}}),G},n.isValidElement=Y,n.lazy=function(D){D={_status:-1,_result:D};var G={$$typeof:at,_payload:D,_init:J},ge={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return D._ioInfo=ge,G._debugInfo=[{awaited:ge}],G},n.memo=function(D,G){D==null&&console.error("memo: The first argument must be a component. Instead received: %s",D===null?"null":typeof D),G={$$typeof:Pe,type:D,compare:G===void 0?null:G};var ge;return Object.defineProperty(G,"displayName",{enumerable:!1,configurable:!0,get:function(){return ge},set:function(ye){ge=ye,D.name||D.displayName||(Object.defineProperty(D,"name",{value:ye}),D.displayName=ye)}}),G},n.startTransition=function(D){var G=Ce.T,ge={};ge._updatedFibers=new Set,Ce.T=ge;try{var ye=D(),Ne=Ce.S;Ne!==null&&Ne(ge,ye),typeof ye=="object"&&ye!==null&&typeof ye.then=="function"&&(Ce.asyncTransitions++,ye.then(j,j),ye.then(g,Ft))}catch($e){Ft($e)}finally{G===null&&ge._updatedFibers&&(D=ge._updatedFibers.size,ge._updatedFibers.clear(),10<D&&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.")),G!==null&&ge.types!==null&&(G.types!==null&&G.types!==ge.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),G.types=ge.types),Ce.T=G}},n.unstable_useCacheRefresh=function(){return N().useCacheRefresh()},n.use=function(D){return N().use(D)},n.useActionState=function(D,G,ge){return N().useActionState(D,G,ge)},n.useCallback=function(D,G){return N().useCallback(D,G)},n.useContext=function(D){var G=N();return D.$$typeof===me&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),G.useContext(D)},n.useDebugValue=function(D,G){return N().useDebugValue(D,G)},n.useDeferredValue=function(D,G){return N().useDeferredValue(D,G)},n.useEffect=function(D,G){return D==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),N().useEffect(D,G)},n.useEffectEvent=function(D){return N().useEffectEvent(D)},n.useId=function(){return N().useId()},n.useImperativeHandle=function(D,G,ge){return N().useImperativeHandle(D,G,ge)},n.useInsertionEffect=function(D,G){return D==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),N().useInsertionEffect(D,G)},n.useLayoutEffect=function(D,G){return D==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),N().useLayoutEffect(D,G)},n.useMemo=function(D,G){return N().useMemo(D,G)},n.useOptimistic=function(D,G){return N().useOptimistic(D,G)},n.useReducer=function(D,G,ge){return N().useReducer(D,G,ge)},n.useRef=function(D){return N().useRef(D)},n.useState=function(D){return N().useState(D)},n.useSyncExternalStore=function(D,G,ge){return N().useSyncExternalStore(D,G,ge)},n.useTransition=function(){return N().useTransition()},n.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(pf,pf.exports)),pf.exports}var eO;function Gl(){return eO||(eO=1,Jv.exports=zz()),Jv.exports}var tO;function Pz(){if(tO)return pm;tO=1;/**
|
|
23
|
-
* @license React
|
|
24
|
-
* react-jsx-dev-runtime.development.js
|
|
25
|
-
*
|
|
26
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the MIT license found in the
|
|
29
|
-
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/return(function(){function o(L){if(L==null)return null;if(typeof L=="function")return L.$$typeof===J?null:L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case C:return"Fragment";case k:return"Profiler";case A:return"StrictMode";case $:return"Suspense";case _:return"SuspenseList";case H:return"Activity"}if(typeof L=="object")switch(typeof L.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),L.$$typeof){case T:return"Portal";case M:return L.displayName||"Context";case U:return(L._context.displayName||"Context")+".Consumer";case Y:var ce=L.render;return L=L.displayName,L||(L=ce.displayName||ce.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case z:return ce=L.displayName||null,ce!==null?ce:o(L.type)||"Memo";case te:ce=L._payload,L=L._init;try{return o(L(ce))}catch{}}return null}function n(L){return""+L}function a(L){try{n(L);var ce=!1}catch{ce=!0}if(ce){ce=console;var ie=ce.error,me=typeof Symbol=="function"&&Symbol.toStringTag&&L[Symbol.toStringTag]||L.constructor.name||"Object";return ie.call(ce,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",me),n(L)}}function i(L){if(L===C)return"<>";if(typeof L=="object"&&L!==null&&L.$$typeof===te)return"<...>";try{var ce=o(L);return ce?"<"+ce+">":"<...>"}catch{return"<...>"}}function l(){var L=N.A;return L===null?null:L.getOwner()}function c(){return Error("react-stack-top-frame")}function f(L){if(j.call(L,"key")){var ce=Object.getOwnPropertyDescriptor(L,"key").get;if(ce&&ce.isReactWarning)return!1}return L.key!==void 0}function h(L,ce){function ie(){P||(P=!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)",ce))}ie.isReactWarning=!0,Object.defineProperty(L,"key",{get:ie,configurable:!0})}function g(){var L=o(this.type);return oe[L]||(oe[L]=!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.")),L=this.props.ref,L!==void 0?L:null}function m(L,ce,ie,me,Te,Ue){var ve=ie.ref;return L={$$typeof:E,type:L,key:ce,props:ie,_owner:me},(ve!==void 0?ve:null)!==null?Object.defineProperty(L,"ref",{enumerable:!1,get:g}):Object.defineProperty(L,"ref",{enumerable:!1,value:null}),L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(L,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(L,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Te}),Object.defineProperty(L,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ue}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L}function b(L,ce,ie,me,Te,Ue){var ve=ce.children;if(ve!==void 0)if(me)if(ne(ve)){for(me=0;me<ve.length;me++)p(ve[me]);Object.freeze&&Object.freeze(ve)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(ve);if(j.call(ce,"key")){ve=o(L);var ze=Object.keys(ce).filter(function(at){return at!=="key"});me=0<ze.length?"{key: someKey, "+ze.join(": ..., ")+": ...}":"{key: someKey}",pe[ve+me]||(ze=0<ze.length?"{"+ze.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
31
|
-
let props = %s;
|
|
32
|
-
<%s {...props} />
|
|
33
|
-
React keys must be passed directly to JSX without using spread:
|
|
34
|
-
let props = %s;
|
|
35
|
-
<%s key={someKey} {...props} />`,me,ve,ze,ve),pe[ve+me]=!0)}if(ve=null,ie!==void 0&&(a(ie),ve=""+ie),f(ce)&&(a(ce.key),ve=""+ce.key),"key"in ce){ie={};for(var Pe in ce)Pe!=="key"&&(ie[Pe]=ce[Pe])}else ie=ce;return ve&&h(ie,typeof L=="function"?L.displayName||L.name||"Unknown":L),m(L,ve,ie,l(),Te,Ue)}function p(L){v(L)?L._store&&(L._store.validated=1):typeof L=="object"&&L!==null&&L.$$typeof===te&&(L._payload.status==="fulfilled"?v(L._payload.value)&&L._payload.value._store&&(L._payload.value._store.validated=1):L._store&&(L._store.validated=1))}function v(L){return typeof L=="object"&&L!==null&&L.$$typeof===E}var w=Gl(),E=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),M=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),J=Symbol.for("react.client.reference"),N=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,ne=Array.isArray,Z=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(L){return L()}};var P,oe={},I=w.react_stack_bottom_frame.bind(w,c)(),se=Z(i(c)),pe={};pm.Fragment=C,pm.jsxDEV=function(L,ce,ie,me){var Te=1e4>N.recentlyCreatedOwnerStacks++;return b(L,ce,ie,me,Te?Error("react-stack-top-frame"):I,Te?Z(i(L)):se)}})(),pm}var nO;function jz(){return nO||(nO=1,Kv.exports=Pz()),Kv.exports}var re=jz(),Yf=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(o){return this.listeners.add(o),this.onSubscribe(),()=>{this.listeners.delete(o),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Hz={setTimeout:(o,n)=>setTimeout(o,n),clearTimeout:o=>clearTimeout(o),setInterval:(o,n)=>setInterval(o,n),clearInterval:o=>clearInterval(o)},ka,_l,CA,Iz=(CA=class{constructor(){lt(this,ka,Hz);lt(this,_l,!1)}setTimeoutProvider(o){ee(this,_l)&&o!==ee(this,ka)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:ee(this,ka),provider:o}),Be(this,ka,o),Be(this,_l,!1)}setTimeout(o,n){return Be(this,_l,!0),ee(this,ka).setTimeout(o,n)}clearTimeout(o){ee(this,ka).clearTimeout(o)}setInterval(o,n){return Be(this,_l,!0),ee(this,ka).setInterval(o,n)}clearInterval(o){ee(this,ka).clearInterval(o)}},ka=new WeakMap,_l=new WeakMap,CA),Al=new Iz;function Bz(o){setTimeout(o,0)}var Fl=typeof window>"u"||"Deno"in globalThis;function $o(){}function Vz(o,n){return typeof o=="function"?o(n):o}function z0(o){return typeof o=="number"&&o>=0&&o!==1/0}function PA(o,n){return Math.max(o+(n||0)-Date.now(),0)}function ks(o,n){return typeof o=="function"?o(n):o}function Lr(o,n){return typeof o=="function"?o(n):o}function oO(o,n){const{type:a="all",exact:i,fetchStatus:l,predicate:c,queryKey:f,stale:h}=o;if(f){if(i){if(n.queryHash!==DS(f,n.options))return!1}else if(!Cf(n.queryKey,f))return!1}if(a!=="all"){const g=n.isActive();if(a==="active"&&!g||a==="inactive"&&g)return!1}return!(typeof h=="boolean"&&n.isStale()!==h||l&&l!==n.state.fetchStatus||c&&!c(n))}function rO(o,n){const{exact:a,status:i,predicate:l,mutationKey:c}=o;if(c){if(!n.options.mutationKey)return!1;if(a){if(Tf(n.options.mutationKey)!==Tf(c))return!1}else if(!Cf(n.options.mutationKey,c))return!1}return!(i&&n.state.status!==i||l&&!l(n))}function DS(o,n){return((n==null?void 0:n.queryKeyHashFn)||Tf)(o)}function Tf(o){return JSON.stringify(o,(n,a)=>H0(a)?Object.keys(a).sort().reduce((i,l)=>(i[l]=a[l],i),{}):a)}function Cf(o,n){return o===n?!0:typeof o!=typeof n?!1:o&&n&&typeof o=="object"&&typeof n=="object"?Object.keys(n).every(a=>Cf(o[a],n[a])):!1}var Fz=Object.prototype.hasOwnProperty;function P0(o,n,a=0){if(o===n)return o;if(a>500)return n;const i=aO(o)&&aO(n);if(!i&&!(H0(o)&&H0(n)))return n;const c=(i?o:Object.keys(o)).length,f=i?n:Object.keys(n),h=f.length,g=i?new Array(h):{};let m=0;for(let b=0;b<h;b++){const p=i?b:f[b],v=o[p],w=n[p];if(v===w){g[p]=v,(i?b<c:Fz.call(o,p))&&m++;continue}if(v===null||w===null||typeof v!="object"||typeof w!="object"){g[p]=w;continue}const E=P0(v,w,a+1);g[p]=E,E===v&&m++}return c===h&&m===c?o:g}function j0(o,n){if(!n||Object.keys(o).length!==Object.keys(n).length)return!1;for(const a in o)if(o[a]!==n[a])return!1;return!0}function aO(o){return Array.isArray(o)&&o.length===Object.keys(o).length}function H0(o){if(!iO(o))return!1;const n=o.constructor;if(n===void 0)return!0;const a=n.prototype;return!(!iO(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(o)!==Object.prototype)}function iO(o){return Object.prototype.toString.call(o)==="[object Object]"}function Yz(o){return new Promise(n=>{Al.setTimeout(n,o)})}function I0(o,n,a){if(typeof a.structuralSharing=="function")return a.structuralSharing(o,n);if(a.structuralSharing!==!1){try{return P0(o,n)}catch(i){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. [${a.queryHash}]: ${i}`),i}return P0(o,n)}return n}function $z(o,n,a=0){const i=[...o,n];return a&&i.length>a?i.slice(1):i}function qz(o,n,a=0){const i=[n,...o];return a&&i.length>a?i.slice(0,-1):i}var Vm=Symbol();function jA(o,n){return o.queryFn===Vm&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${o.queryHash}'`),!o.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!o.queryFn||o.queryFn===Vm?()=>Promise.reject(new Error(`Missing queryFn: '${o.queryHash}'`)):o.queryFn}function HA(o,n){return typeof o=="function"?o(...n):!!o}function Gz(o,n,a){let i=!1,l;return Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(l??(l=n()),i||(i=!0,l.aborted?a():l.addEventListener("abort",a,{once:!0})),l)}),o}var kl,xs,iu,OA,Xz=(OA=class extends Yf{constructor(){super();lt(this,kl);lt(this,xs);lt(this,iu);Be(this,iu,n=>{if(!Fl&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}})}onSubscribe(){ee(this,xs)||this.setEventListener(ee(this,iu))}onUnsubscribe(){var n;this.hasListeners()||((n=ee(this,xs))==null||n.call(this),Be(this,xs,void 0))}setEventListener(n){var a;Be(this,iu,n),(a=ee(this,xs))==null||a.call(this),Be(this,xs,n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(n){ee(this,kl)!==n&&(Be(this,kl,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){var n;return typeof ee(this,kl)=="boolean"?ee(this,kl):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},kl=new WeakMap,xs=new WeakMap,iu=new WeakMap,OA),AS=new Xz;function B0(){let o,n;const a=new Promise((l,c)=>{o=l,n=c});a.status="pending",a.catch(()=>{});function i(l){Object.assign(a,l),delete a.resolve,delete a.reject}return a.resolve=l=>{i({status:"fulfilled",value:l}),o(l)},a.reject=l=>{i({status:"rejected",reason:l}),n(l)},a}var Qz=Bz;function Wz(){let o=[],n=0,a=h=>{h()},i=h=>{h()},l=Qz;const c=h=>{n?o.push(h):l(()=>{a(h)})},f=()=>{const h=o;o=[],h.length&&l(()=>{i(()=>{h.forEach(g=>{a(g)})})})};return{batch:h=>{let g;n++;try{g=h()}finally{n--,n||f()}return g},batchCalls:h=>(...g)=>{c(()=>{h(...g)})},schedule:c,setNotifyFunction:h=>{a=h},setBatchNotifyFunction:h=>{i=h},setScheduler:h=>{l=h}}}var yo=Wz(),su,Rs,lu,DA,Kz=(DA=class extends Yf{constructor(){super();lt(this,su,!0);lt(this,Rs);lt(this,lu);Be(this,lu,n=>{if(!Fl&&window.addEventListener){const a=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",i)}}})}onSubscribe(){ee(this,Rs)||this.setEventListener(ee(this,lu))}onUnsubscribe(){var n;this.hasListeners()||((n=ee(this,Rs))==null||n.call(this),Be(this,Rs,void 0))}setEventListener(n){var a;Be(this,lu,n),(a=ee(this,Rs))==null||a.call(this),Be(this,Rs,n(this.setOnline.bind(this)))}setOnline(n){ee(this,su)!==n&&(Be(this,su,n),this.listeners.forEach(i=>{i(n)}))}isOnline(){return ee(this,su)}},su=new WeakMap,Rs=new WeakMap,lu=new WeakMap,DA),Fm=new Kz;function Jz(o){return Math.min(1e3*2**o,3e4)}function IA(o){return(o??"online")==="online"?Fm.isOnline():!0}var V0=class extends Error{constructor(o){super("CancelledError"),this.revert=o==null?void 0:o.revert,this.silent=o==null?void 0:o.silent}};function BA(o){let n=!1,a=0,i;const l=B0(),c=()=>l.status!=="pending",f=T=>{var C;if(!c()){const A=new V0(T);v(A),(C=o.onCancel)==null||C.call(o,A)}},h=()=>{n=!0},g=()=>{n=!1},m=()=>AS.isFocused()&&(o.networkMode==="always"||Fm.isOnline())&&o.canRun(),b=()=>IA(o.networkMode)&&o.canRun(),p=T=>{c()||(i==null||i(),l.resolve(T))},v=T=>{c()||(i==null||i(),l.reject(T))},w=()=>new Promise(T=>{var C;i=A=>{(c()||m())&&T(A)},(C=o.onPause)==null||C.call(o)}).then(()=>{var T;i=void 0,c()||(T=o.onContinue)==null||T.call(o)}),E=()=>{if(c())return;let T;const C=a===0?o.initialPromise:void 0;try{T=C??o.fn()}catch(A){T=Promise.reject(A)}Promise.resolve(T).then(p).catch(A=>{var $;if(c())return;const k=o.retry??(Fl?0:3),U=o.retryDelay??Jz,M=typeof U=="function"?U(a,A):U,Y=k===!0||typeof k=="number"&&a<k||typeof k=="function"&&k(a,A);if(n||!Y){v(A);return}a++,($=o.onFail)==null||$.call(o,a,A),Yz(M).then(()=>m()?void 0:w()).then(()=>{n?v(A):E()})})};return{promise:l,status:()=>l.status,cancel:f,continue:()=>(i==null||i(),l),cancelRetry:h,continueRetry:g,canStart:b,start:()=>(b()?E():w().then(E),l)}}var Ll,AA,VA=(AA=class{constructor(){lt(this,Ll)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),z0(this.gcTime)&&Be(this,Ll,Al.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(o){this.gcTime=Math.max(this.gcTime||0,o??(Fl?1/0:300*1e3))}clearGcTimeout(){ee(this,Ll)&&(Al.clearTimeout(ee(this,Ll)),Be(this,Ll,void 0))}},Ll=new WeakMap,AA),Ul,cu,_r,zl,so,Hf,Pl,Jr,vi,NA,Zz=(NA=class extends VA{constructor(n){super();lt(this,Jr);lt(this,Ul);lt(this,cu);lt(this,_r);lt(this,zl);lt(this,so);lt(this,Hf);lt(this,Pl);Be(this,Pl,!1),Be(this,Hf,n.defaultOptions),this.setOptions(n.options),this.observers=[],Be(this,zl,n.client),Be(this,_r,ee(this,zl).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,Be(this,Ul,lO(this.options)),this.state=n.state??ee(this,Ul),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=ee(this,so))==null?void 0:n.promise}setOptions(n){if(this.options={...ee(this,Hf),...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=lO(this.options);a.data!==void 0&&(this.setState(sO(a.data,a.dataUpdatedAt)),Be(this,Ul,a))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ee(this,_r).remove(this)}setData(n,a){const i=I0(this.state.data,n,this.options);return Bt(this,Jr,vi).call(this,{data:i,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt,manual:a==null?void 0:a.manual}),i}setState(n,a){Bt(this,Jr,vi).call(this,{type:"setState",state:n,setStateOptions:a})}cancel(n){var i,l;const a=(i=ee(this,so))==null?void 0:i.promise;return(l=ee(this,so))==null||l.cancel(n),a?a.then($o).catch($o):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ee(this,Ul))}isActive(){return this.observers.some(n=>Lr(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ks(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!PA(this.state.dataUpdatedAt,n)}onFocus(){var a;const n=this.observers.find(i=>i.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(a=ee(this,so))==null||a.continue()}onOnline(){var a;const n=this.observers.find(i=>i.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(a=ee(this,so))==null||a.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),ee(this,_r).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(ee(this,so)&&(ee(this,Pl)?ee(this,so).cancel({revert:!0}):ee(this,so).cancelRetry()),this.scheduleGc()),ee(this,_r).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Bt(this,Jr,vi).call(this,{type:"invalidate"})}async fetch(n,a){var g,m,b,p,v,w,E,T,C,A,k,U;if(this.state.fetchStatus!=="idle"&&((g=ee(this,so))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(ee(this,so))return ee(this,so).continueRetry(),ee(this,so).promise}if(n&&this.setOptions(n),!this.options.queryFn){const M=this.observers.find(Y=>Y.options.queryFn);M&&this.setOptions(M.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const i=new AbortController,l=M=>{Object.defineProperty(M,"signal",{enumerable:!0,get:()=>(Be(this,Pl,!0),i.signal)})},c=()=>{const M=jA(this.options,a),$=(()=>{const _={client:ee(this,zl),queryKey:this.queryKey,meta:this.meta};return l(_),_})();return Be(this,Pl,!1),this.options.persister?this.options.persister(M,$,this):M($)},h=(()=>{const M={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:ee(this,zl),state:this.state,fetchFn:c};return l(M),M})();(m=this.options.behavior)==null||m.onFetch(h,this),Be(this,cu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=h.fetchOptions)==null?void 0:b.meta))&&Bt(this,Jr,vi).call(this,{type:"fetch",meta:(p=h.fetchOptions)==null?void 0:p.meta}),Be(this,so,BA({initialPromise:a==null?void 0:a.initialPromise,fn:h.fetchFn,onCancel:M=>{M instanceof V0&&M.revert&&this.setState({...ee(this,cu),fetchStatus:"idle"}),i.abort()},onFail:(M,Y)=>{Bt(this,Jr,vi).call(this,{type:"failed",failureCount:M,error:Y})},onPause:()=>{Bt(this,Jr,vi).call(this,{type:"pause"})},onContinue:()=>{Bt(this,Jr,vi).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}));try{const M=await ee(this,so).start();if(M===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}`),new Error(`${this.queryHash} data is undefined`);return this.setData(M),(w=(v=ee(this,_r).config).onSuccess)==null||w.call(v,M,this),(T=(E=ee(this,_r).config).onSettled)==null||T.call(E,M,this.state.error,this),M}catch(M){if(M instanceof V0){if(M.silent)return ee(this,so).promise;if(M.revert){if(this.state.data===void 0)throw M;return this.state.data}}throw Bt(this,Jr,vi).call(this,{type:"error",error:M}),(A=(C=ee(this,_r).config).onError)==null||A.call(C,M,this),(U=(k=ee(this,_r).config).onSettled)==null||U.call(k,this.state.data,M,this),M}finally{this.scheduleGc()}}},Ul=new WeakMap,cu=new WeakMap,_r=new WeakMap,zl=new WeakMap,so=new WeakMap,Hf=new WeakMap,Pl=new WeakMap,Jr=new WeakSet,vi=function(n){const a=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...FA(i.data,this.options),fetchMeta:n.meta??null};case"success":const l={...i,...sO(n.data,n.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Be(this,cu,n.manual?l:void 0),l;case"error":const c=n.error;return{...i,error:c,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=a(this.state),yo.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),ee(this,_r).notify({query:this,type:"updated",action:n})})},NA);function FA(o,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:IA(n.networkMode)?"fetching":"paused",...o===void 0&&{error:null,status:"pending"}}}function sO(o,n){return{data:o,dataUpdatedAt:n??Date.now(),error:null,isInvalidated:!1,status:"success"}}function lO(o){const n=typeof o.initialData=="function"?o.initialData():o.initialData,a=n!==void 0,i=a?typeof o.initialDataUpdatedAt=="function"?o.initialDataUpdatedAt():o.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:a?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var Fo,Vt,If,Uo,jl,uu,Ri,Ts,Bf,du,fu,Hl,Il,Cs,hu,Jt,mf,F0,Y0,$0,q0,G0,X0,Q0,YA,MA,e3=(MA=class extends Yf{constructor(n,a){super();lt(this,Jt);lt(this,Fo);lt(this,Vt);lt(this,If);lt(this,Uo);lt(this,jl);lt(this,uu);lt(this,Ri);lt(this,Ts);lt(this,Bf);lt(this,du);lt(this,fu);lt(this,Hl);lt(this,Il);lt(this,Cs);lt(this,hu,new Set);this.options=a,Be(this,Fo,n),Be(this,Ts,null),Be(this,Ri,B0()),this.bindMethods(),this.setOptions(a)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ee(this,Vt).addObserver(this),cO(ee(this,Vt),this.options)?Bt(this,Jt,mf).call(this):this.updateResult(),Bt(this,Jt,q0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return W0(ee(this,Vt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return W0(ee(this,Vt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Bt(this,Jt,G0).call(this),Bt(this,Jt,X0).call(this),ee(this,Vt).removeObserver(this)}setOptions(n){const a=this.options,i=ee(this,Vt);if(this.options=ee(this,Fo).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Lr(this.options.enabled,ee(this,Vt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Bt(this,Jt,Q0).call(this),ee(this,Vt).setOptions(this.options),a._defaulted&&!j0(this.options,a)&&ee(this,Fo).getQueryCache().notify({type:"observerOptionsUpdated",query:ee(this,Vt),observer:this});const l=this.hasListeners();l&&uO(ee(this,Vt),i,this.options,a)&&Bt(this,Jt,mf).call(this),this.updateResult(),l&&(ee(this,Vt)!==i||Lr(this.options.enabled,ee(this,Vt))!==Lr(a.enabled,ee(this,Vt))||ks(this.options.staleTime,ee(this,Vt))!==ks(a.staleTime,ee(this,Vt)))&&Bt(this,Jt,F0).call(this);const c=Bt(this,Jt,Y0).call(this);l&&(ee(this,Vt)!==i||Lr(this.options.enabled,ee(this,Vt))!==Lr(a.enabled,ee(this,Vt))||c!==ee(this,Cs))&&Bt(this,Jt,$0).call(this,c)}getOptimisticResult(n){const a=ee(this,Fo).getQueryCache().build(ee(this,Fo),n),i=this.createResult(a,n);return n3(this,i)&&(Be(this,Uo,i),Be(this,uu,this.options),Be(this,jl,ee(this,Vt).state)),i}getCurrentResult(){return ee(this,Uo)}trackResult(n,a){return new Proxy(n,{get:(i,l)=>(this.trackProp(l),a==null||a(l),l==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&ee(this,Ri).status==="pending"&&ee(this,Ri).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,l))})}trackProp(n){ee(this,hu).add(n)}getCurrentQuery(){return ee(this,Vt)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=ee(this,Fo).defaultQueryOptions(n),i=ee(this,Fo).getQueryCache().build(ee(this,Fo),a);return i.fetch().then(()=>this.createResult(i,a))}fetch(n){return Bt(this,Jt,mf).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),ee(this,Uo)))}createResult(n,a){var te;const i=ee(this,Vt),l=this.options,c=ee(this,Uo),f=ee(this,jl),h=ee(this,uu),m=n!==i?n.state:ee(this,If),{state:b}=n;let p={...b},v=!1,w;if(a._optimisticResults){const H=this.hasListeners(),J=!H&&cO(n,a),N=H&&uO(n,i,a,l);(J||N)&&(p={...p,...FA(b.data,n.options)}),a._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:E,errorUpdatedAt:T,status:C}=p;w=p.data;let A=!1;if(a.placeholderData!==void 0&&w===void 0&&C==="pending"){let H;c!=null&&c.isPlaceholderData&&a.placeholderData===(h==null?void 0:h.placeholderData)?(H=c.data,A=!0):H=typeof a.placeholderData=="function"?a.placeholderData((te=ee(this,fu))==null?void 0:te.state.data,ee(this,fu)):a.placeholderData,H!==void 0&&(C="success",w=I0(c==null?void 0:c.data,H,a),v=!0)}if(a.select&&w!==void 0&&!A)if(c&&w===(f==null?void 0:f.data)&&a.select===ee(this,Bf))w=ee(this,du);else try{Be(this,Bf,a.select),w=a.select(w),w=I0(c==null?void 0:c.data,w,a),Be(this,du,w),Be(this,Ts,null)}catch(H){Be(this,Ts,H)}ee(this,Ts)&&(E=ee(this,Ts),w=ee(this,du),T=Date.now(),C="error");const k=p.fetchStatus==="fetching",U=C==="pending",M=C==="error",Y=U&&k,$=w!==void 0,z={status:C,fetchStatus:p.fetchStatus,isPending:U,isSuccess:C==="success",isError:M,isInitialLoading:Y,isLoading:Y,data:w,dataUpdatedAt:p.dataUpdatedAt,error:E,errorUpdatedAt:T,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>m.dataUpdateCount||p.errorUpdateCount>m.errorUpdateCount,isFetching:k,isRefetching:k&&!U,isLoadingError:M&&!$,isPaused:p.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:M&&$,isStale:NS(n,a),refetch:this.refetch,promise:ee(this,Ri),isEnabled:Lr(a.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const H=z.data!==void 0,J=z.status==="error"&&!H,N=Z=>{J?Z.reject(z.error):H&&Z.resolve(z.data)},j=()=>{const Z=Be(this,Ri,z.promise=B0());N(Z)},ne=ee(this,Ri);switch(ne.status){case"pending":n.queryHash===i.queryHash&&N(ne);break;case"fulfilled":(J||z.data!==ne.value)&&j();break;case"rejected":(!J||z.error!==ne.reason)&&j();break}}return z}updateResult(){const n=ee(this,Uo),a=this.createResult(ee(this,Vt),this.options);if(Be(this,jl,ee(this,Vt).state),Be(this,uu,this.options),ee(this,jl).data!==void 0&&Be(this,fu,ee(this,Vt)),j0(a,n))return;Be(this,Uo,a);const i=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,c=typeof l=="function"?l():l;if(c==="all"||!c&&!ee(this,hu).size)return!0;const f=new Set(c??ee(this,hu));return this.options.throwOnError&&f.add("error"),Object.keys(ee(this,Uo)).some(h=>{const g=h;return ee(this,Uo)[g]!==n[g]&&f.has(g)})};Bt(this,Jt,YA).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Bt(this,Jt,q0).call(this)}},Fo=new WeakMap,Vt=new WeakMap,If=new WeakMap,Uo=new WeakMap,jl=new WeakMap,uu=new WeakMap,Ri=new WeakMap,Ts=new WeakMap,Bf=new WeakMap,du=new WeakMap,fu=new WeakMap,Hl=new WeakMap,Il=new WeakMap,Cs=new WeakMap,hu=new WeakMap,Jt=new WeakSet,mf=function(n){Bt(this,Jt,Q0).call(this);let a=ee(this,Vt).fetch(this.options,n);return n!=null&&n.throwOnError||(a=a.catch($o)),a},F0=function(){Bt(this,Jt,G0).call(this);const n=ks(this.options.staleTime,ee(this,Vt));if(Fl||ee(this,Uo).isStale||!z0(n))return;const i=PA(ee(this,Uo).dataUpdatedAt,n)+1;Be(this,Hl,Al.setTimeout(()=>{ee(this,Uo).isStale||this.updateResult()},i))},Y0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ee(this,Vt)):this.options.refetchInterval)??!1},$0=function(n){Bt(this,Jt,X0).call(this),Be(this,Cs,n),!(Fl||Lr(this.options.enabled,ee(this,Vt))===!1||!z0(ee(this,Cs))||ee(this,Cs)===0)&&Be(this,Il,Al.setInterval(()=>{(this.options.refetchIntervalInBackground||AS.isFocused())&&Bt(this,Jt,mf).call(this)},ee(this,Cs)))},q0=function(){Bt(this,Jt,F0).call(this),Bt(this,Jt,$0).call(this,Bt(this,Jt,Y0).call(this))},G0=function(){ee(this,Hl)&&(Al.clearTimeout(ee(this,Hl)),Be(this,Hl,void 0))},X0=function(){ee(this,Il)&&(Al.clearInterval(ee(this,Il)),Be(this,Il,void 0))},Q0=function(){const n=ee(this,Fo).getQueryCache().build(ee(this,Fo),this.options);if(n===ee(this,Vt))return;const a=ee(this,Vt);Be(this,Vt,n),Be(this,If,n.state),this.hasListeners()&&(a==null||a.removeObserver(this),n.addObserver(this))},YA=function(n){yo.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(ee(this,Uo))}),ee(this,Fo).getQueryCache().notify({query:ee(this,Vt),type:"observerResultsUpdated"})})},MA);function t3(o,n){return Lr(n.enabled,o)!==!1&&o.state.data===void 0&&!(o.state.status==="error"&&n.retryOnMount===!1)}function cO(o,n){return t3(o,n)||o.state.data!==void 0&&W0(o,n,n.refetchOnMount)}function W0(o,n,a){if(Lr(n.enabled,o)!==!1&&ks(n.staleTime,o)!=="static"){const i=typeof a=="function"?a(o):a;return i==="always"||i!==!1&&NS(o,n)}return!1}function uO(o,n,a,i){return(o!==n||Lr(i.enabled,o)===!1)&&(!a.suspense||o.state.status!=="error")&&NS(o,a)}function NS(o,n){return Lr(n.enabled,o)!==!1&&o.isStaleByTime(ks(n.staleTime,o))}function n3(o,n){return!j0(o.getCurrentResult(),n)}function dO(o){return{onFetch:(n,a)=>{var b,p,v,w,E;const i=n.options,l=(v=(p=(b=n.fetchOptions)==null?void 0:b.meta)==null?void 0:p.fetchMore)==null?void 0:v.direction,c=((w=n.state.data)==null?void 0:w.pages)||[],f=((E=n.state.data)==null?void 0:E.pageParams)||[];let h={pages:[],pageParams:[]},g=0;const m=async()=>{let T=!1;const C=U=>{Gz(U,()=>n.signal,()=>T=!0)},A=jA(n.options,n.fetchOptions),k=async(U,M,Y)=>{if(T)return Promise.reject();if(M==null&&U.pages.length)return Promise.resolve(U);const _=(()=>{const J={client:n.client,queryKey:n.queryKey,pageParam:M,direction:Y?"backward":"forward",meta:n.options.meta};return C(J),J})(),z=await A(_),{maxPages:te}=n.options,H=Y?qz:$z;return{pages:H(U.pages,z,te),pageParams:H(U.pageParams,M,te)}};if(l&&c.length){const U=l==="backward",M=U?o3:fO,Y={pages:c,pageParams:f},$=M(i,Y);h=await k(Y,$,U)}else{const U=o??c.length;do{const M=g===0?f[0]??i.initialPageParam:fO(i,h);if(g>0&&M==null)break;h=await k(h,M),g++}while(g<U)}return h};n.options.persister?n.fetchFn=()=>{var T,C;return(C=(T=n.options).persister)==null?void 0:C.call(T,m,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},a)}:n.fetchFn=m}}}function fO(o,{pages:n,pageParams:a}){const i=n.length-1;return n.length>0?o.getNextPageParam(n[i],n,a[i],a):void 0}function o3(o,{pages:n,pageParams:a}){var i;return n.length>0?(i=o.getPreviousPageParam)==null?void 0:i.call(o,n[0],n,a[0],a):void 0}var Vf,La,Eo,Bl,Ua,Ss,_A,r3=(_A=class extends VA{constructor(n){super();lt(this,Ua);lt(this,Vf);lt(this,La);lt(this,Eo);lt(this,Bl);Be(this,Vf,n.client),this.mutationId=n.mutationId,Be(this,Eo,n.mutationCache),Be(this,La,[]),this.state=n.state||a3(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){ee(this,La).includes(n)||(ee(this,La).push(n),this.clearGcTimeout(),ee(this,Eo).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){Be(this,La,ee(this,La).filter(a=>a!==n)),this.scheduleGc(),ee(this,Eo).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){ee(this,La).length||(this.state.status==="pending"?this.scheduleGc():ee(this,Eo).remove(this))}continue(){var n;return((n=ee(this,Bl))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var f,h,g,m,b,p,v,w,E,T,C,A,k,U,M,Y,$,_;const a=()=>{Bt(this,Ua,Ss).call(this,{type:"continue"})},i={client:ee(this,Vf),meta:this.options.meta,mutationKey:this.options.mutationKey};Be(this,Bl,BA({fn:()=>this.options.mutationFn?this.options.mutationFn(n,i):Promise.reject(new Error("No mutationFn found")),onFail:(z,te)=>{Bt(this,Ua,Ss).call(this,{type:"failed",failureCount:z,error:te})},onPause:()=>{Bt(this,Ua,Ss).call(this,{type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ee(this,Eo).canRun(this)}));const l=this.state.status==="pending",c=!ee(this,Bl).canStart();try{if(l)a();else{Bt(this,Ua,Ss).call(this,{type:"pending",variables:n,isPaused:c}),ee(this,Eo).config.onMutate&&await ee(this,Eo).config.onMutate(n,this,i);const te=await((h=(f=this.options).onMutate)==null?void 0:h.call(f,n,i));te!==this.state.context&&Bt(this,Ua,Ss).call(this,{type:"pending",context:te,variables:n,isPaused:c})}const z=await ee(this,Bl).start();return await((m=(g=ee(this,Eo).config).onSuccess)==null?void 0:m.call(g,z,n,this.state.context,this,i)),await((p=(b=this.options).onSuccess)==null?void 0:p.call(b,z,n,this.state.context,i)),await((w=(v=ee(this,Eo).config).onSettled)==null?void 0:w.call(v,z,null,this.state.variables,this.state.context,this,i)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,z,null,n,this.state.context,i)),Bt(this,Ua,Ss).call(this,{type:"success",data:z}),z}catch(z){try{await((A=(C=ee(this,Eo).config).onError)==null?void 0:A.call(C,z,n,this.state.context,this,i))}catch(te){Promise.reject(te)}try{await((U=(k=this.options).onError)==null?void 0:U.call(k,z,n,this.state.context,i))}catch(te){Promise.reject(te)}try{await((Y=(M=ee(this,Eo).config).onSettled)==null?void 0:Y.call(M,void 0,z,this.state.variables,this.state.context,this,i))}catch(te){Promise.reject(te)}try{await((_=($=this.options).onSettled)==null?void 0:_.call($,void 0,z,n,this.state.context,i))}catch(te){Promise.reject(te)}throw Bt(this,Ua,Ss).call(this,{type:"error",error:z}),z}finally{ee(this,Eo).runNext(this)}}},Vf=new WeakMap,La=new WeakMap,Eo=new WeakMap,Bl=new WeakMap,Ua=new WeakSet,Ss=function(n){const a=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),yo.batch(()=>{ee(this,La).forEach(i=>{i.onMutationUpdate(n)}),ee(this,Eo).notify({mutation:this,type:"updated",action:n})})},_A);function a3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ti,Zr,Ff,kA,i3=(kA=class extends Yf{constructor(n={}){super();lt(this,Ti);lt(this,Zr);lt(this,Ff);this.config=n,Be(this,Ti,new Set),Be(this,Zr,new Map),Be(this,Ff,0)}build(n,a,i){const l=new r3({client:n,mutationCache:this,mutationId:++hm(this,Ff)._,options:n.defaultMutationOptions(a),state:i});return this.add(l),l}add(n){ee(this,Ti).add(n);const a=mm(n);if(typeof a=="string"){const i=ee(this,Zr).get(a);i?i.push(n):ee(this,Zr).set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(ee(this,Ti).delete(n)){const a=mm(n);if(typeof a=="string"){const i=ee(this,Zr).get(a);if(i)if(i.length>1){const l=i.indexOf(n);l!==-1&&i.splice(l,1)}else i[0]===n&&ee(this,Zr).delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=mm(n);if(typeof a=="string"){const i=ee(this,Zr).get(a),l=i==null?void 0:i.find(c=>c.state.status==="pending");return!l||l===n}else return!0}runNext(n){var i;const a=mm(n);if(typeof a=="string"){const l=(i=ee(this,Zr).get(a))==null?void 0:i.find(c=>c!==n&&c.state.isPaused);return(l==null?void 0:l.continue())??Promise.resolve()}else return Promise.resolve()}clear(){yo.batch(()=>{ee(this,Ti).forEach(n=>{this.notify({type:"removed",mutation:n})}),ee(this,Ti).clear(),ee(this,Zr).clear()})}getAll(){return Array.from(ee(this,Ti))}find(n){const a={exact:!0,...n};return this.getAll().find(i=>rO(a,i))}findAll(n={}){return this.getAll().filter(a=>rO(n,a))}notify(n){yo.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return yo.batch(()=>Promise.all(n.map(a=>a.continue().catch($o))))}},Ti=new WeakMap,Zr=new WeakMap,Ff=new WeakMap,kA);function mm(o){var n;return(n=o.options.scope)==null?void 0:n.id}var za,LA,s3=(LA=class extends Yf{constructor(n={}){super();lt(this,za);this.config=n,Be(this,za,new Map)}build(n,a,i){const l=a.queryKey,c=a.queryHash??DS(l,a);let f=this.get(c);return f||(f=new Zz({client:n,queryKey:l,queryHash:c,options:n.defaultQueryOptions(a),state:i,defaultOptions:n.getQueryDefaults(l)}),this.add(f)),f}add(n){ee(this,za).has(n.queryHash)||(ee(this,za).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=ee(this,za).get(n.queryHash);a&&(n.destroy(),a===n&&ee(this,za).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){yo.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return ee(this,za).get(n)}getAll(){return[...ee(this,za).values()]}find(n){const a={exact:!0,...n};return this.getAll().find(i=>oO(a,i))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(i=>oO(n,i)):a}notify(n){yo.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){yo.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){yo.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},za=new WeakMap,LA),An,Os,Ds,pu,mu,As,gu,yu,UA,l3=(UA=class{constructor(o={}){lt(this,An);lt(this,Os);lt(this,Ds);lt(this,pu);lt(this,mu);lt(this,As);lt(this,gu);lt(this,yu);Be(this,An,o.queryCache||new s3),Be(this,Os,o.mutationCache||new i3),Be(this,Ds,o.defaultOptions||{}),Be(this,pu,new Map),Be(this,mu,new Map),Be(this,As,0)}mount(){hm(this,As)._++,ee(this,As)===1&&(Be(this,gu,AS.subscribe(async o=>{o&&(await this.resumePausedMutations(),ee(this,An).onFocus())})),Be(this,yu,Fm.subscribe(async o=>{o&&(await this.resumePausedMutations(),ee(this,An).onOnline())})))}unmount(){var o,n;hm(this,As)._--,ee(this,As)===0&&((o=ee(this,gu))==null||o.call(this),Be(this,gu,void 0),(n=ee(this,yu))==null||n.call(this),Be(this,yu,void 0))}isFetching(o){return ee(this,An).findAll({...o,fetchStatus:"fetching"}).length}isMutating(o){return ee(this,Os).findAll({...o,status:"pending"}).length}getQueryData(o){var a;const n=this.defaultQueryOptions({queryKey:o});return(a=ee(this,An).get(n.queryHash))==null?void 0:a.state.data}ensureQueryData(o){const n=this.defaultQueryOptions(o),a=ee(this,An).build(this,n),i=a.state.data;return i===void 0?this.fetchQuery(o):(o.revalidateIfStale&&a.isStaleByTime(ks(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(o){return ee(this,An).findAll(o).map(({queryKey:n,state:a})=>{const i=a.data;return[n,i]})}setQueryData(o,n,a){const i=this.defaultQueryOptions({queryKey:o}),l=ee(this,An).get(i.queryHash),c=l==null?void 0:l.state.data,f=Vz(n,c);if(f!==void 0)return ee(this,An).build(this,i).setData(f,{...a,manual:!0})}setQueriesData(o,n,a){return yo.batch(()=>ee(this,An).findAll(o).map(({queryKey:i})=>[i,this.setQueryData(i,n,a)]))}getQueryState(o){var a;const n=this.defaultQueryOptions({queryKey:o});return(a=ee(this,An).get(n.queryHash))==null?void 0:a.state}removeQueries(o){const n=ee(this,An);yo.batch(()=>{n.findAll(o).forEach(a=>{n.remove(a)})})}resetQueries(o,n){const a=ee(this,An);return yo.batch(()=>(a.findAll(o).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...o},n)))}cancelQueries(o,n={}){const a={revert:!0,...n},i=yo.batch(()=>ee(this,An).findAll(o).map(l=>l.cancel(a)));return Promise.all(i).then($o).catch($o)}invalidateQueries(o,n={}){return yo.batch(()=>(ee(this,An).findAll(o).forEach(a=>{a.invalidate()}),(o==null?void 0:o.refetchType)==="none"?Promise.resolve():this.refetchQueries({...o,type:(o==null?void 0:o.refetchType)??(o==null?void 0:o.type)??"active"},n)))}refetchQueries(o,n={}){const a={...n,cancelRefetch:n.cancelRefetch??!0},i=yo.batch(()=>ee(this,An).findAll(o).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,a);return a.throwOnError||(c=c.catch($o)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then($o)}fetchQuery(o){const n=this.defaultQueryOptions(o);n.retry===void 0&&(n.retry=!1);const a=ee(this,An).build(this,n);return a.isStaleByTime(ks(n.staleTime,a))?a.fetch(n):Promise.resolve(a.state.data)}prefetchQuery(o){return this.fetchQuery(o).then($o).catch($o)}fetchInfiniteQuery(o){return o.behavior=dO(o.pages),this.fetchQuery(o)}prefetchInfiniteQuery(o){return this.fetchInfiniteQuery(o).then($o).catch($o)}ensureInfiniteQueryData(o){return o.behavior=dO(o.pages),this.ensureQueryData(o)}resumePausedMutations(){return Fm.isOnline()?ee(this,Os).resumePausedMutations():Promise.resolve()}getQueryCache(){return ee(this,An)}getMutationCache(){return ee(this,Os)}getDefaultOptions(){return ee(this,Ds)}setDefaultOptions(o){Be(this,Ds,o)}setQueryDefaults(o,n){ee(this,pu).set(Tf(o),{queryKey:o,defaultOptions:n})}getQueryDefaults(o){const n=[...ee(this,pu).values()],a={};return n.forEach(i=>{Cf(o,i.queryKey)&&Object.assign(a,i.defaultOptions)}),a}setMutationDefaults(o,n){ee(this,mu).set(Tf(o),{mutationKey:o,defaultOptions:n})}getMutationDefaults(o){const n=[...ee(this,mu).values()],a={};return n.forEach(i=>{Cf(o,i.mutationKey)&&Object.assign(a,i.defaultOptions)}),a}defaultQueryOptions(o){if(o._defaulted)return o;const n={...ee(this,Ds).queries,...this.getQueryDefaults(o.queryKey),...o,_defaulted:!0};return n.queryHash||(n.queryHash=DS(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Vm&&(n.enabled=!1),n}defaultMutationOptions(o){return o!=null&&o._defaulted?o:{...ee(this,Ds).mutations,...(o==null?void 0:o.mutationKey)&&this.getMutationDefaults(o.mutationKey),...o,_defaulted:!0}}clear(){ee(this,An).clear(),ee(this,Os).clear()}},An=new WeakMap,Os=new WeakMap,Ds=new WeakMap,pu=new WeakMap,mu=new WeakMap,As=new WeakMap,gu=new WeakMap,yu=new WeakMap,UA),x=Gl();const _e=zA(x),MS=kz({__proto__:null,default:_e},[x]);var Zv={exports:{}},of={},hO;function c3(){if(hO)return of;hO=1;/**
|
|
36
|
-
* @license React
|
|
37
|
-
* react-jsx-runtime.development.js
|
|
38
|
-
*
|
|
39
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the MIT license found in the
|
|
42
|
-
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/return(function(){function o(L){if(L==null)return null;if(typeof L=="function")return L.$$typeof===J?null:L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case C:return"Fragment";case k:return"Profiler";case A:return"StrictMode";case $:return"Suspense";case _:return"SuspenseList";case H:return"Activity"}if(typeof L=="object")switch(typeof L.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),L.$$typeof){case T:return"Portal";case M:return L.displayName||"Context";case U:return(L._context.displayName||"Context")+".Consumer";case Y:var ce=L.render;return L=L.displayName,L||(L=ce.displayName||ce.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case z:return ce=L.displayName||null,ce!==null?ce:o(L.type)||"Memo";case te:ce=L._payload,L=L._init;try{return o(L(ce))}catch{}}return null}function n(L){return""+L}function a(L){try{n(L);var ce=!1}catch{ce=!0}if(ce){ce=console;var ie=ce.error,me=typeof Symbol=="function"&&Symbol.toStringTag&&L[Symbol.toStringTag]||L.constructor.name||"Object";return ie.call(ce,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",me),n(L)}}function i(L){if(L===C)return"<>";if(typeof L=="object"&&L!==null&&L.$$typeof===te)return"<...>";try{var ce=o(L);return ce?"<"+ce+">":"<...>"}catch{return"<...>"}}function l(){var L=N.A;return L===null?null:L.getOwner()}function c(){return Error("react-stack-top-frame")}function f(L){if(j.call(L,"key")){var ce=Object.getOwnPropertyDescriptor(L,"key").get;if(ce&&ce.isReactWarning)return!1}return L.key!==void 0}function h(L,ce){function ie(){P||(P=!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)",ce))}ie.isReactWarning=!0,Object.defineProperty(L,"key",{get:ie,configurable:!0})}function g(){var L=o(this.type);return oe[L]||(oe[L]=!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.")),L=this.props.ref,L!==void 0?L:null}function m(L,ce,ie,me,Te,Ue){var ve=ie.ref;return L={$$typeof:E,type:L,key:ce,props:ie,_owner:me},(ve!==void 0?ve:null)!==null?Object.defineProperty(L,"ref",{enumerable:!1,get:g}):Object.defineProperty(L,"ref",{enumerable:!1,value:null}),L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(L,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(L,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Te}),Object.defineProperty(L,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ue}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L}function b(L,ce,ie,me,Te,Ue){var ve=ce.children;if(ve!==void 0)if(me)if(ne(ve)){for(me=0;me<ve.length;me++)p(ve[me]);Object.freeze&&Object.freeze(ve)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(ve);if(j.call(ce,"key")){ve=o(L);var ze=Object.keys(ce).filter(function(at){return at!=="key"});me=0<ze.length?"{key: someKey, "+ze.join(": ..., ")+": ...}":"{key: someKey}",pe[ve+me]||(ze=0<ze.length?"{"+ze.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
44
|
-
let props = %s;
|
|
45
|
-
<%s {...props} />
|
|
46
|
-
React keys must be passed directly to JSX without using spread:
|
|
47
|
-
let props = %s;
|
|
48
|
-
<%s key={someKey} {...props} />`,me,ve,ze,ve),pe[ve+me]=!0)}if(ve=null,ie!==void 0&&(a(ie),ve=""+ie),f(ce)&&(a(ce.key),ve=""+ce.key),"key"in ce){ie={};for(var Pe in ce)Pe!=="key"&&(ie[Pe]=ce[Pe])}else ie=ce;return ve&&h(ie,typeof L=="function"?L.displayName||L.name||"Unknown":L),m(L,ve,ie,l(),Te,Ue)}function p(L){v(L)?L._store&&(L._store.validated=1):typeof L=="object"&&L!==null&&L.$$typeof===te&&(L._payload.status==="fulfilled"?v(L._payload.value)&&L._payload.value._store&&(L._payload.value._store.validated=1):L._store&&(L._store.validated=1))}function v(L){return typeof L=="object"&&L!==null&&L.$$typeof===E}var w=Gl(),E=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),M=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),J=Symbol.for("react.client.reference"),N=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,ne=Array.isArray,Z=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(L){return L()}};var P,oe={},I=w.react_stack_bottom_frame.bind(w,c)(),se=Z(i(c)),pe={};of.Fragment=C,of.jsx=function(L,ce,ie){var me=1e4>N.recentlyCreatedOwnerStacks++;return b(L,ce,ie,!1,me?Error("react-stack-top-frame"):I,me?Z(i(L)):se)},of.jsxs=function(L,ce,ie){var me=1e4>N.recentlyCreatedOwnerStacks++;return b(L,ce,ie,!0,me?Error("react-stack-top-frame"):I,me?Z(i(L)):se)}})(),of}var pO;function u3(){return pO||(pO=1,Zv.exports=c3()),Zv.exports}var nn=u3(),$A=x.createContext(void 0),d3=o=>{const n=x.useContext($A);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},f3=({client:o,children:n})=>(x.useEffect(()=>(o.mount(),()=>{o.unmount()}),[o]),nn.jsx($A.Provider,{value:o,children:n})),qA=x.createContext(!1),h3=()=>x.useContext(qA);qA.Provider;function p3(){let o=!1;return{clearReset:()=>{o=!1},reset:()=>{o=!0},isReset:()=>o}}var m3=x.createContext(p3()),g3=()=>x.useContext(m3),y3=(o,n,a)=>{const i=a!=null&&a.state.error&&typeof o.throwOnError=="function"?HA(o.throwOnError,[a.state.error,a]):o.throwOnError;(o.suspense||o.experimental_prefetchInRender||i)&&(n.isReset()||(o.retryOnMount=!1))},b3=o=>{x.useEffect(()=>{o.clearReset()},[o])},v3=({result:o,errorResetBoundary:n,throwOnError:a,query:i,suspense:l})=>o.isError&&!n.isReset()&&!o.isFetching&&i&&(l&&o.data===void 0||HA(a,[o.error,i])),S3=o=>{if(o.suspense){const a=l=>l==="static"?l:Math.max(l??1e3,1e3),i=o.staleTime;o.staleTime=typeof i=="function"?(...l)=>a(i(...l)):a(i),typeof o.gcTime=="number"&&(o.gcTime=Math.max(o.gcTime,1e3))}},w3=(o,n)=>o.isLoading&&o.isFetching&&!n,E3=(o,n)=>(o==null?void 0:o.suspense)&&n.isPending,mO=(o,n,a)=>n.fetchOptimistic(o).catch(()=>{a.clearReset()});function x3(o,n,a){var v,w,E,T;if(typeof o!="object"||Array.isArray(o))throw new 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');const i=h3(),l=g3(),c=d3(),f=c.defaultQueryOptions(o);(w=(v=c.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||w.call(v,f);const h=c.getQueryCache().get(f.queryHash);f.queryFn||console.error(`[${f.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`),f._optimisticResults=i?"isRestoring":"optimistic",S3(f),y3(f,l,h),b3(l);const g=!c.getQueryCache().get(f.queryHash),[m]=x.useState(()=>new n(c,f)),b=m.getOptimisticResult(f),p=!i&&o.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(C=>{const A=p?m.subscribe(yo.batchCalls(C)):$o;return m.updateResult(),A},[m,p]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),x.useEffect(()=>{m.setOptions(f)},[f,m]),E3(f,b))throw mO(f,m,l);if(v3({result:b,errorResetBoundary:l,throwOnError:f.throwOnError,query:h,suspense:f.suspense}))throw b.error;if((T=(E=c.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||T.call(E,f,b),f.experimental_prefetchInRender&&!Fl&&w3(b,i)){const C=g?mO(f,m,l):h==null?void 0:h.promise;C==null||C.catch($o).finally(()=>{m.updateResult()})}return f.notifyOnChangeProps?b:m.trackResult(b)}function R3(o,n){return x3(o,e3)}var e0={exports:{}},rf={},t0={exports:{}},n0={},gO;function T3(){return gO||(gO=1,(function(o){/**
|
|
49
|
-
* @license React
|
|
50
|
-
* scheduler.development.js
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/(function(){function n(){if(Y=!1,te){var P=o.unstable_now();N=P;var oe=!0;try{e:{U=!1,M&&(M=!1,_(H),H=-1),k=!0;var I=A;try{t:{for(f(P),C=i(w);C!==null&&!(C.expirationTime>P&&g());){var se=C.callback;if(typeof se=="function"){C.callback=null,A=C.priorityLevel;var pe=se(C.expirationTime<=P);if(P=o.unstable_now(),typeof pe=="function"){C.callback=pe,f(P),oe=!0;break t}C===i(w)&&l(w),f(P)}else l(w);C=i(w)}if(C!==null)oe=!0;else{var L=i(E);L!==null&&m(h,L.startTime-P),oe=!1}}break e}finally{C=null,A=I,k=!1}oe=void 0}}finally{oe?j():te=!1}}}function a(P,oe){var I=P.length;P.push(oe);e:for(;0<I;){var se=I-1>>>1,pe=P[se];if(0<c(pe,oe))P[se]=oe,P[I]=pe,I=se;else break e}}function i(P){return P.length===0?null:P[0]}function l(P){if(P.length===0)return null;var oe=P[0],I=P.pop();if(I!==oe){P[0]=I;e:for(var se=0,pe=P.length,L=pe>>>1;se<L;){var ce=2*(se+1)-1,ie=P[ce],me=ce+1,Te=P[me];if(0>c(ie,I))me<pe&&0>c(Te,ie)?(P[se]=Te,P[me]=I,se=me):(P[se]=ie,P[ce]=I,se=ce);else if(me<pe&&0>c(Te,I))P[se]=Te,P[me]=I,se=me;else break e}}return oe}function c(P,oe){var I=P.sortIndex-oe.sortIndex;return I!==0?I:P.id-oe.id}function f(P){for(var oe=i(E);oe!==null;){if(oe.callback===null)l(E);else if(oe.startTime<=P)l(E),oe.sortIndex=oe.expirationTime,a(w,oe);else break;oe=i(E)}}function h(P){if(M=!1,f(P),!U)if(i(w)!==null)U=!0,te||(te=!0,j());else{var oe=i(E);oe!==null&&m(h,oe.startTime-P)}}function g(){return Y?!0:!(o.unstable_now()-N<J)}function m(P,oe){H=$(function(){P(o.unstable_now())},oe)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var b=performance;o.unstable_now=function(){return b.now()}}else{var p=Date,v=p.now();o.unstable_now=function(){return p.now()-v}}var w=[],E=[],T=1,C=null,A=3,k=!1,U=!1,M=!1,Y=!1,$=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null,te=!1,H=-1,J=5,N=-1;if(typeof z=="function")var j=function(){z(n)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,Z=ne.port2;ne.port1.onmessage=n,j=function(){Z.postMessage(null)}}else j=function(){$(n,0)};o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(P){P.callback=null},o.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<P?Math.floor(1e3/P):5},o.unstable_getCurrentPriorityLevel=function(){return A},o.unstable_next=function(P){switch(A){case 1:case 2:case 3:var oe=3;break;default:oe=A}var I=A;A=oe;try{return P()}finally{A=I}},o.unstable_requestPaint=function(){Y=!0},o.unstable_runWithPriority=function(P,oe){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var I=A;A=P;try{return oe()}finally{A=I}},o.unstable_scheduleCallback=function(P,oe,I){var se=o.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?se+I:se):I=se,P){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=I+pe,P={id:T++,callback:oe,priorityLevel:P,startTime:I,expirationTime:pe,sortIndex:-1},I>se?(P.sortIndex=I,a(E,P),i(w)===null&&P===i(E)&&(M?(_(H),H=-1):M=!0,m(h,I-se))):(P.sortIndex=pe,a(w,P),U||k||(U=!0,te||(te=!0,j()))),P},o.unstable_shouldYield=g,o.unstable_wrapCallback=function(P){var oe=A;return function(){var I=A;A=oe;try{return P.apply(this,arguments)}finally{A=I}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(n0)),n0}var yO;function C3(){return yO||(yO=1,t0.exports=T3()),t0.exports}var o0={exports:{}},wo={},bO;function O3(){if(bO)return wo;bO=1;/**
|
|
57
|
-
* @license React
|
|
58
|
-
* react-dom.development.js
|
|
59
|
-
*
|
|
60
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the MIT license found in the
|
|
63
|
-
* LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/return(function(){function o(){}function n(p){return""+p}function a(p,v,w){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(E);var T=!1}catch{T=!0}return T&&(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&&E[Symbol.toStringTag]||E.constructor.name||"Object"),n(E)),{$$typeof:m,key:E==null?null:""+E,children:p,containerInfo:v,implementation:w}}function i(p,v){if(p==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}function l(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":'something with type "'+typeof p+'"'}function c(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":typeof p=="string"?JSON.stringify(p):typeof p=="number"?"`"+p+"`":'something with type "'+typeof p+'"'}function f(){var p=b.H;return p===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:
|
|
65
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
66
|
-
2. You might be breaking the Rules of Hooks
|
|
67
|
-
3. You might have more than one copy of React in the same app
|
|
68
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var h=Gl(),g={d:{f:o,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},m=Symbol.for("react.portal"),b=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),wo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=g,wo.createPortal=function(p,v){var w=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 a(p,v,null,w)},wo.flushSync=function(p){var v=b.T,w=g.p;try{if(b.T=null,g.p=2,p)return p()}finally{b.T=v,g.p=w,g.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.")}},wo.preconnect=function(p,v){typeof p=="string"&&p?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.",c(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.",l(v.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(p)),typeof p=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,g.d.C(p,v))},wo.prefetchDNS=function(p){if(typeof p!="string"||!p)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(p));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`.",c(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`.",c(v))}typeof p=="string"&&g.d.D(p)},wo.preinit=function(p,v){if(typeof p=="string"&&p?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.",c(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".',c(v.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(p)),typeof p=="string"&&v&&typeof v.as=="string"){var w=v.as,E=i(w,v.crossOrigin),T=typeof v.integrity=="string"?v.integrity:void 0,C=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;w==="style"?g.d.S(p,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:E,integrity:T,fetchPriority:C}):w==="script"&&g.d.X(p,{crossOrigin:E,integrity:T,fetchPriority:C,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},wo.preinitModule=function(p,v){var w="";if(typeof p=="string"&&p||(w+=" The `href` argument encountered was "+l(p)+"."),v!==void 0&&typeof v!="object"?w+=" The `options` argument encountered was "+l(v)+".":v&&"as"in v&&v.as!=="script"&&(w+=" The `as` option encountered was "+c(v.as)+"."),w)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",w);else switch(w=v&&typeof v.as=="string"?v.as:"script",w){case"script":break;default:w=c(w),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)',w,p)}typeof p=="string"&&(typeof v=="object"&&v!==null?(v.as==null||v.as==="script")&&(w=i(v.as,v.crossOrigin),g.d.M(p,{crossOrigin:w,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})):v==null&&g.d.M(p))},wo.preload=function(p,v){var w="";if(typeof p=="string"&&p||(w+=" The `href` argument encountered was "+l(p)+"."),v==null||typeof v!="object"?w+=" The `options` argument encountered was "+l(v)+".":typeof v.as=="string"&&v.as||(w+=" The `as` option encountered was "+l(v.as)+"."),w&&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',w),typeof p=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){w=v.as;var E=i(w,v.crossOrigin);g.d.L(p,w,{crossOrigin:E,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})}},wo.preloadModule=function(p,v){var w="";typeof p=="string"&&p||(w+=" The `href` argument encountered was "+l(p)+"."),v!==void 0&&typeof v!="object"?w+=" The `options` argument encountered was "+l(v)+".":v&&"as"in v&&typeof v.as!="string"&&(w+=" The `as` option encountered was "+l(v.as)+"."),w&&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',w),typeof p=="string"&&(v?(w=i(v.as,v.crossOrigin),g.d.m(p,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:w,integrity:typeof v.integrity=="string"?v.integrity:void 0})):g.d.m(p))},wo.requestFormReset=function(p){g.d.r(p)},wo.unstable_batchedUpdates=function(p,v){return p(v)},wo.useFormState=function(p,v,w){return f().useFormState(p,v,w)},wo.useFormStatus=function(){return f().useHostTransitionStatus()},wo.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),wo}var vO;function GA(){return vO||(vO=1,o0.exports=O3()),o0.exports}var SO;function D3(){if(SO)return rf;SO=1;/**
|
|
69
|
-
* @license React
|
|
70
|
-
* react-dom-client.development.js
|
|
71
|
-
*
|
|
72
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the MIT license found in the
|
|
75
|
-
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/return(function(){function o(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,s){if(r>=t.length)return s;var u=t[r],d=Qn(e)?e.slice():Dt({},e);return d[u]=n(e[u],t,r+1,s),d}function a(e,t,r){if(t.length!==r.length)console.warn("copyWithRename() expects paths of the same length");else{for(var s=0;s<r.length-1;s++)if(t[s]!==r[s]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return i(e,t,r,0)}}function i(e,t,r,s){var u=t[s],d=Qn(e)?e.slice():Dt({},e);return s+1===t.length?(d[r[s]]=d[u],Qn(d)?d.splice(u,1):delete d[u]):d[u]=i(e[u],t,r,s+1),d}function l(e,t,r){var s=t[r],u=Qn(e)?e.slice():Dt({},e);return r+1===t.length?(Qn(u)?u.splice(s,1):delete u[s],u):(u[s]=l(e[s],t,r+1),u)}function c(){return!1}function f(){return null}function h(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function g(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function m(){}function b(){}function p(e){var t=[];return e.forEach(function(r){t.push(r)}),t.sort().join(", ")}function v(e,t,r,s){return new bk(e,t,r,s)}function w(e,t){e.context===Zi&&(mb(e.current,2,t,e,null,null),lc())}function E(e,t){if(Er!==null){var r=t.staleFamilies;t=t.updatedFamilies,Ju(),oE(e.current,t,r),lc()}}function T(e){Er=e}function C(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function A(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function k(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function U(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function M(e){if(A(e)!==e)throw Error("Unable to find node on an unmounted component.")}function Y(e){var t=e.alternate;if(!t){if(t=A(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var r=e,s=t;;){var u=r.return;if(u===null)break;var d=u.alternate;if(d===null){if(s=u.return,s!==null){r=s;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===r)return M(u),e;if(d===s)return M(u),t;d=d.sibling}throw Error("Unable to find node on an unmounted component.")}if(r.return!==s.return)r=u,s=d;else{for(var y=!1,S=u.child;S;){if(S===r){y=!0,r=u,s=d;break}if(S===s){y=!0,s=u,r=d;break}S=S.sibling}if(!y){for(S=d.child;S;){if(S===r){y=!0,r=d,s=u;break}if(S===s){y=!0,s=d,r=u;break}S=S.sibling}if(!y)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==s)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(r.tag!==3)throw Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function $(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=$(e),t!==null)return t;e=e.sibling}return null}function _(e){return e===null||typeof e!="object"?null:(e=uT&&e[uT]||e["@@iterator"],typeof e=="function"?e:null)}function z(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===IL?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case mc:return"Fragment";case Eb:return"Profiler";case sp:return"StrictMode";case Rb:return"Suspense";case Tb:return"SuspenseList";case Cb:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case pc:return"Portal";case Ea:return e.displayName||"Context";case xb:return(e._context.displayName||"Context")+".Consumer";case ld:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lp:return t=e.displayName||null,t!==null?t:z(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return z(e(t))}catch{}}return null}function te(e){return typeof e.tag=="number"?H(e):typeof e.name=="string"?e.name:null}function H(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===sp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var r=t.length-1;0<=r;r--)if(typeof t[r].name=="string")return t[r].name}if(e.return!==null)return H(e.return)}return null}function J(e){return{current:e}}function N(e,t){0>ei?console.error("Unexpected pop."):(t!==Db[ei]&&console.error("Unexpected Fiber popped."),e.current=Ob[ei],Ob[ei]=null,Db[ei]=null,ei--)}function j(e,t,r){ei++,Ob[ei]=e.current,Db[ei]=r,e.current=t}function ne(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Z(e,t){j(Gi,t,e),j(cd,e,e),j(qi,null,e);var r=t.nodeType;switch(r){case 9:case 11:r=r===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?LR(t):mi;break;default:if(r=t.tagName,t=t.namespaceURI)t=LR(t),t=UR(t,r);else switch(r){case"svg":t=Qc;break;case"math":t=im;break;default:t=mi}}r=r.toLowerCase(),r=Dw(null,r),r={context:t,ancestorInfo:r},N(qi,e),j(qi,r,e)}function P(e){N(qi,e),N(cd,e),N(Gi,e)}function oe(){return ne(qi.current)}function I(e){e.memoizedState!==null&&j(cp,e,e);var t=ne(qi.current),r=e.type,s=UR(t.context,r);r=Dw(t.ancestorInfo,r),s={context:s,ancestorInfo:r},t!==s&&(j(cd,e,e),j(qi,s,e))}function se(e){cd.current===e&&(N(qi,e),N(cd,e)),cp.current===e&&(N(cp,e),ef._currentValue=xl)}function pe(){}function L(){if(ud===0){dT=console.log,fT=console.info,hT=console.warn,pT=console.error,mT=console.group,gT=console.groupCollapsed,yT=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ud++}function ce(){if(ud--,ud===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Dt({},e,{value:dT}),info:Dt({},e,{value:fT}),warn:Dt({},e,{value:hT}),error:Dt({},e,{value:pT}),group:Dt({},e,{value:mT}),groupCollapsed:Dt({},e,{value:gT}),groupEnd:Dt({},e,{value:yT})})}0>ud&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ie(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
77
|
-
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
78
|
-
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
79
|
-
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function me(e){if(Ab===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Ab=t&&t[1]||"",bT=-1<r.stack.indexOf(`
|
|
80
|
-
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
81
|
-
`+Ab+e+bT}function Te(e,t){if(!e||Nb)return"";var r=Mb.get(e);if(r!==void 0)return r;Nb=!0,r=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var s=null;s=fe.H,fe.H=null,L();try{var u={DetermineComponentFrameRoot:function(){try{if(t){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(ke){var le=ke}Reflect.construct(e,[],F)}else{try{F.call()}catch(ke){le=ke}e.call(F.prototype)}}else{try{throw Error()}catch(ke){le=ke}(F=e())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(ke){if(ke&&le&&typeof ke.stack=="string")return[ke.stack,le.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=u.DetermineComponentFrameRoot(),S=y[0],R=y[1];if(S&&R){var O=S.split(`
|
|
82
|
-
`),W=R.split(`
|
|
83
|
-
`);for(y=d=0;d<O.length&&!O[d].includes("DetermineComponentFrameRoot");)d++;for(;y<W.length&&!W[y].includes("DetermineComponentFrameRoot");)y++;if(d===O.length||y===W.length)for(d=O.length-1,y=W.length-1;1<=d&&0<=y&&O[d]!==W[y];)y--;for(;1<=d&&0<=y;d--,y--)if(O[d]!==W[y]){if(d!==1||y!==1)do if(d--,y--,0>y||O[d]!==W[y]){var K=`
|
|
84
|
-
`+O[d].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),typeof e=="function"&&Mb.set(e,K),K}while(1<=d&&0<=y);break}}}finally{Nb=!1,fe.H=s,ce(),Error.prepareStackTrace=r}return O=(O=e?e.displayName||e.name:"")?me(O):"",typeof e=="function"&&Mb.set(e,O),O}function Ue(e,t){switch(e.tag){case 26:case 27:case 5:return me(e.type);case 16:return me("Lazy");case 13:return e.child!==t&&t!==null?me("Suspense Fallback"):me("Suspense");case 19:return me("SuspenseList");case 0:case 15:return Te(e.type,!1);case 11:return Te(e.type.render,!1);case 1:return Te(e.type,!0);case 31:return me("Activity");default:return""}}function ve(e){try{var t="",r=null;do{t+=Ue(e,r);var s=e._debugInfo;if(s)for(var u=s.length-1;0<=u;u--){var d=s[u];if(typeof d.name=="string"){var y=t;e:{var S=d.name,R=d.env,O=d.debugLocation;if(O!=null){var W=ie(O),K=W.lastIndexOf(`
|
|
85
|
-
`),F=K===-1?W:W.slice(K+1);if(F.indexOf(S)!==-1){var le=`
|
|
86
|
-
`+F;break e}}le=me(S+(R?" ["+R+"]":""))}t=y+le}}r=e,e=e.return}while(e);return t}catch(ke){return`
|
|
87
|
-
Error generating stack: `+ke.message+`
|
|
88
|
-
`+ke.stack}}function ze(e){return(e=e?e.displayName||e.name:"")?me(e):""}function Pe(){if(or===null)return null;var e=or._debugOwner;return e!=null?te(e):null}function at(){if(or===null)return"";var e=or;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=me(e.type);break;case 13:t+=me("Suspense");break;case 19:t+=me("SuspenseList");break;case 31:t+=me("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=ze(e.type));break;case 11:e._debugOwner||t!==""||(t+=ze(e.type.render))}for(;e;)if(typeof e.tag=="number"){var r=e;e=r._debugOwner;var s=r._debugStack;if(e&&s){var u=ie(s);u!==""&&(t+=`
|
|
89
|
-
`+u)}}else if(e.debugStack!=null){var d=e.debugStack;(e=e.owner)&&d&&(t+=`
|
|
90
|
-
`+ie(d))}else break;var y=t}catch(S){y=`
|
|
91
|
-
Error generating stack: `+S.message+`
|
|
92
|
-
`+S.stack}return y}function xe(e,t,r,s,u,d,y){var S=or;he(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,r,s,u,d,y)):t(r,s,u,d,y)}finally{he(S)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function he(e){fe.getCurrentStack=e===null?null:at,xa=!1,or=e}function we(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function De(e){try{return Ye(e),!1}catch{return!0}}function Ye(e){return""+e}function Re(e,t){if(De(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,we(e)),Ye(e)}function Ae(e,t){if(De(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,we(e)),Ye(e)}function Le(e){if(De(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",we(e)),Ye(e)}function tt(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{yc=t.inject(e),vo=t}catch(r){console.error("React instrumentation encountered an error: %o.",r)}return!!t.checkDCE}function Ce(e){if(typeof GL=="function"&&XL(e),vo&&typeof vo.setStrictMode=="function")try{vo.setStrictMode(yc,e)}catch(t){Ra||(Ra=!0,console.error("React instrumentation encountered an error: %o",t))}}function ot(e){return e>>>=0,e===0?32:31-(QL(e)/WL|0)|0}function gt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function yt(e,t,r){var s=e.pendingLanes;if(s===0)return 0;var u=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var S=s&134217727;return S!==0?(s=S&~d,s!==0?u=gt(s):(y&=S,y!==0?u=gt(y):r||(r=S&~e,r!==0&&(u=gt(r))))):(S=s&~d,S!==0?u=gt(S):y!==0?u=gt(y):r||(r=s&~e,r!==0&&(u=gt(r)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,r=t&-t,d>=r||d===32&&(r&4194048)!==0)?t:u}function ht(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $t(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function on(){var e=fp;return fp<<=1,(fp&62914560)===0&&(fp=4194304),e}function bn(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function bt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function jt(e,t,r,s,u,d){var y=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var S=e.entanglements,R=e.expirationTimes,O=e.hiddenUpdates;for(r=y&~r;0<r;){var W=31-Oo(r),K=1<<W;S[W]=0,R[W]=-1;var F=O[W];if(F!==null)for(O[W]=null,W=0;W<F.length;W++){var le=F[W];le!==null&&(le.lane&=-536870913)}r&=~K}s!==0&&Ft(e,s,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function Ft(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Oo(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|r&261930}function vn(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var s=31-Oo(r),u=1<<s;u&t|e[s]&t&&(e[s]|=t),r&=~u}}function ln(e,t){var r=t&-t;return r=(r&42)!==0?1:Zn(r),(r&(e.suspendedLanes|t))!==0?0:r}function Zn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function hn(e,t,r){if(Ta)for(e=e.pendingUpdatersLaneMap;0<r;){var s=31-Oo(r),u=1<<s;e[s].add(t),r&=~u}}function co(e,t){if(Ta)for(var r=e.pendingUpdatersLaneMap,s=e.memoizedUpdaters;0<t;){var u=31-Oo(t);e=1<<u,u=r[u],0<u.size&&(u.forEach(function(d){var y=d.alternate;y!==null&&s.has(y)||s.add(d)}),u.clear()),t&=~e}}function uo(e){return e&=-e,vr<e?Ca<e?(e&134217727)!==0?ti:hp:Ca:vr}function Un(){var e=Qt.p;return e!==0?e:(e=window.event,e===void 0?ti:oT(e.type))}function D(e,t){var r=Qt.p;try{return Qt.p=e,t()}finally{Qt.p=r}}function G(e){delete e[mo],delete e[Do],delete e[zb],delete e[KL],delete e[JL]}function ge(e){var t=e[mo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Qi]||r[mo]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=FR(e);e!==null;){if(r=e[mo])return r;e=FR(e)}return t}e=r,r=e.parentNode}return null}function ye(e){if(e=e[mo]||e[Qi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ne(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function $e(e){var t=e[vT];return t||(t=e[vT]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Se(e){e[dd]=!0}function Ke(e,t){Ve(e,t),Ve(e+"Capture",t)}function Ve(e,t){el[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),el[e]=t;var r=e.toLowerCase();for(Pb[r]=e,e==="onDoubleClick"&&(Pb.ondblclick=e),e=0;e<t.length;e++)ST.add(t[e])}function Rt(e,t){ZL[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Cn(e){return Yr.call(ET,e)?!0:Yr.call(wT,e)?!1:eU.test(e)?ET[e]=!0:(wT[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function rn(e,t,r){if(Cn(t)){if(!e.hasAttribute(t)){switch(typeof r){case"symbol":case"object":return r;case"function":return r;case"boolean":if(r===!1)return r}return r===void 0?void 0:null}return e=e.getAttribute(t),e===""&&r===!0?!0:(Re(r,t),e===""+r?r:e)}}function xn(e,t,r){if(Cn(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}Re(r,t),e.setAttribute(t,""+r)}}function Qo(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}Re(r,t),e.setAttribute(t,""+r)}}function B(e,t,r,s){if(s===null)e.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}Re(s,r),e.setAttributeNS(t,r,""+s)}}function Q(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Le(e),e;default:return""}}function ue(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ee(e,t,r){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,d=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(y){Le(y),r=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return r},setValue:function(y){Le(y),r=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Me(e){if(!e._valueTracker){var t=ue(e)?"checked":"value";e._valueTracker=Ee(e,t,""+e[t])}}function Je(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),s="";return e&&(s=ue(e)?e.checked?"true":"false":e.value),e=s,e!==r?(t.setValue(e),!0):!1}function Ze(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function je(e){return e.replace(tU,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fe(e,t){t.checked===void 0||t.defaultChecked===void 0||RT||(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",Pe()||"A component",t.type),RT=!0),t.value===void 0||t.defaultValue===void 0||xT||(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",Pe()||"A component",t.type),xT=!0)}function Qe(e,t,r,s,u,d,y,S){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?(Re(y,"type"),e.type=y):e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Q(t)):e.value!==""+Q(t)&&(e.value=""+Q(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?et(e,y,Q(t)):r!=null?et(e,y,Q(r)):s!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?(Re(S,"name"),e.name=""+Q(S)):e.removeAttribute("name")}function ut(e,t,r,s,u,d,y,S){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(Re(d,"type"),e.type=d),t!=null||r!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Me(e);return}r=r!=null?""+Q(r):"",t=t!=null?""+Q(t):r,S||t===e.value||(e.value=t),e.defaultValue=t}s=s??u,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=S?e.checked:!!s,e.defaultChecked=!!s,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(Re(y,"name"),e.name=y),Me(e)}function et(e,t,r){t==="number"&&Ze(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function vt(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?wb.Children.forEach(t.children,function(r){r==null||typeof r=="string"||typeof r=="number"||typeof r=="bigint"||CT||(CT=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||OT||(OT=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||TT||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),TT=!0)}function _t(){var e=Pe();return e?`
|
|
93
|
-
|
|
94
|
-
Check the render method of \``+e+"`.":""}function Sn(e,t,r,s){if(e=e.options,t){t={};for(var u=0;u<r.length;u++)t["$"+r[u]]=!0;for(r=0;r<e.length;r++)u=t.hasOwnProperty("$"+e[r].value),e[r].selected!==u&&(e[r].selected=u),u&&s&&(e[r].defaultSelected=!0)}else{for(r=""+Q(r),t=null,u=0;u<e.length;u++){if(e[u].value===r){e[u].selected=!0,s&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Mn(e,t){for(e=0;e<AT.length;e++){var r=AT[e];if(t[r]!=null){var s=Qn(t[r]);t.multiple&&!s?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",r,_t()):!t.multiple&&s&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",r,_t())}}t.value===void 0||t.defaultValue===void 0||DT||(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"),DT=!0)}function eo(e,t){t.value===void 0||t.defaultValue===void 0||NT||(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",Pe()||"A component"),NT=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Gt(e,t,r){if(t!=null&&(t=""+Q(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+Q(r):""}function Ro(e,t,r,s){if(t==null){if(s!=null){if(r!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Qn(s)){if(1<s.length)throw Error("<textarea> can only have at most one child.");s=s[0]}r=s}r==null&&(r=""),t=r}r=Q(t),e.defaultValue=r,s=e.textContent,s===r&&s!==""&&s!==null&&(e.value=s),Me(e)}function oa(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?oa(e.children[0],t):e}function Xn(e){return" "+" ".repeat(e)}function To(e){return"+ "+" ".repeat(e)}function to(e){return"- "+" ".repeat(e)}function Kl(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Hr(e,t){return MT.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function yr(e,t,r){var s=120-2*r;if(t===null)return To(r)+Hr(e,s)+`
|
|
95
|
-
`;if(typeof t=="string"){for(var u=0;u<t.length&&u<e.length&&t.charCodeAt(u)===e.charCodeAt(u);u++);return u>s-8&&10<u&&(e="..."+e.slice(u-8),t="..."+t.slice(u-8)),To(r)+Hr(e,s)+`
|
|
96
|
-
`+to(r)+Hr(t,s)+`
|
|
97
|
-
`}return Xn(r)+Hr(e,s)+`
|
|
98
|
-
`}function Mi(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,r){return r})}function ra(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Qn(e))return"[...]";if(e.$$typeof===wa)return(t=z(e.type))?"<"+t+">":"<...>";var r=Mi(e);if(r==="Object"){r="",t-=2;for(var s in e)if(e.hasOwnProperty(s)){var u=JSON.stringify(s);if(u!=='"'+s+'"'&&(s=u),t-=s.length-2,u=ra(e[s],15>t?t:15),t-=u.length,0>t){r+=r===""?"...":", ...";break}r+=(r===""?"":",")+s+":"+u}return"{"+r+"}"}return r;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Ct(e,t){return typeof e!="string"||MT.test(e)?"{"+ra(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function zn(e,t,r){var s=120-r.length-e.length,u=[],d;for(d in t)if(t.hasOwnProperty(d)&&d!=="children"){var y=Ct(t[d],120-r.length-d.length-1);s-=d.length+y.length+2,u.push(d+"="+y)}return u.length===0?r+"<"+e+`>
|
|
99
|
-
`:0<s?r+"<"+e+" "+u.join(" ")+`>
|
|
100
|
-
`:r+"<"+e+`
|
|
101
|
-
`+r+" "+u.join(`
|
|
102
|
-
`+r+" ")+`
|
|
103
|
-
`+r+`>
|
|
104
|
-
`}function _i(e,t,r){var s="",u=Dt({},t),d;for(d in e)if(e.hasOwnProperty(d)){delete u[d];var y=120-2*r-d.length-2,S=ra(e[d],y);t.hasOwnProperty(d)?(y=ra(t[d],y),s+=To(r)+d+": "+S+`
|
|
105
|
-
`,s+=to(r)+d+": "+y+`
|
|
106
|
-
`):s+=To(r)+d+": "+S+`
|
|
107
|
-
`}for(var R in u)u.hasOwnProperty(R)&&(e=ra(u[R],120-2*r-R.length-2),s+=to(r)+R+": "+e+`
|
|
108
|
-
`);return s}function $a(e,t,r,s){var u="",d=new Map;for(O in r)r.hasOwnProperty(O)&&d.set(O.toLowerCase(),O);if(d.size===1&&d.has("children"))u+=zn(e,t,Xn(s));else{for(var y in t)if(t.hasOwnProperty(y)&&y!=="children"){var S=120-2*(s+1)-y.length-1,R=d.get(y.toLowerCase());if(R!==void 0){d.delete(y.toLowerCase());var O=t[y];R=r[R];var W=Ct(O,S);S=Ct(R,S),typeof O=="object"&&O!==null&&typeof R=="object"&&R!==null&&Mi(O)==="Object"&&Mi(R)==="Object"&&(2<Object.keys(O).length||2<Object.keys(R).length||-1<W.indexOf("...")||-1<S.indexOf("..."))?u+=Xn(s+1)+y+`={{
|
|
109
|
-
`+_i(O,R,s+2)+Xn(s+1)+`}}
|
|
110
|
-
`:(u+=To(s+1)+y+"="+W+`
|
|
111
|
-
`,u+=to(s+1)+y+"="+S+`
|
|
112
|
-
`)}else u+=Xn(s+1)+y+"="+Ct(t[y],S)+`
|
|
113
|
-
`}d.forEach(function(K){if(K!=="children"){var F=120-2*(s+1)-K.length-1;u+=to(s+1)+K+"="+Ct(r[K],F)+`
|
|
114
|
-
`}}),u=u===""?Xn(s)+"<"+e+`>
|
|
115
|
-
`:Xn(s)+"<"+e+`
|
|
116
|
-
`+u+Xn(s)+`>
|
|
117
|
-
`}return e=r.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(d="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(d=""+t),u+=yr(d,""+e,s+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(u=e==null?u+yr(""+t,null,s+1):u+yr(""+t,void 0,s+1)),u}function pn(e,t){var r=Kl(e);if(r===null){for(r="",e=e.child;e;)r+=pn(e,t),e=e.sibling;return r}return Xn(t)+"<"+r+`>
|
|
118
|
-
`}function ki(e,t){var r=oa(e,t);if(r!==e&&(e.children.length!==1||e.children[0]!==r))return Xn(t)+`...
|
|
119
|
-
`+ki(r,t+1);r="";var s=e.fiber._debugInfo;if(s)for(var u=0;u<s.length;u++){var d=s[u].name;typeof d=="string"&&(r+=Xn(t)+"<"+d+`>
|
|
120
|
-
`,t++)}if(s="",u=e.fiber.pendingProps,e.fiber.tag===6)s=yr(u,e.serverProps,t),t++;else if(d=Kl(e.fiber),d!==null)if(e.serverProps===void 0){s=t;var y=120-2*s-d.length-2,S="";for(O in u)if(u.hasOwnProperty(O)&&O!=="children"){var R=Ct(u[O],15);if(y-=O.length+R.length+2,0>y){S+=" ...";break}S+=" "+O+"="+R}s=Xn(s)+"<"+d+S+`>
|
|
121
|
-
`,t++}else e.serverProps===null?(s=zn(d,u,To(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(s=$a(d,u,e.serverProps,t),t++);var O="";for(u=e.fiber.child,d=0;u&&d<e.children.length;)y=e.children[d],y.fiber===u?(O+=ki(y,t),d++):O+=pn(u,t),u=u.sibling;for(u&&0<e.children.length&&(O+=Xn(t)+`...
|
|
122
|
-
`),u=e.serverTail,e.serverProps===null&&t--,e=0;e<u.length;e++)d=u[e],O=typeof d=="string"?O+(to(t)+Hr(d,120-2*t)+`
|
|
123
|
-
`):O+zn(d.type,d.props,to(t));return r+s+O}function Jl(e){try{return`
|
|
124
|
-
|
|
125
|
-
`+ki(e,0)}catch{return""}}function nh(e,t,r){for(var s=t,u=null,d=0;s;)s===e&&(d=0),u={fiber:s,children:u!==null?[u]:[],serverProps:s===t?r:s===e?null:void 0,serverTail:[],distanceFromLeaf:d},d++,s=s.return;return u!==null?Jl(u).replaceAll(/^[+-]/gm,">"):""}function Dw(e,t){var r=Dt({},e||kT),s={tag:t};return _T.indexOf(t)!==-1&&(r.aTagInScope=null,r.buttonTagInScope=null,r.nobrTagInScope=null),oU.indexOf(t)!==-1&&(r.pTagInButtonScope=null),nU.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(r.listItemTagAutoclosing=null,r.dlItemTagAutoclosing=null),r.current=s,t==="form"&&(r.formTag=s),t==="a"&&(r.aTagInScope=s),t==="button"&&(r.buttonTagInScope=s),t==="nobr"&&(r.nobrTagInScope=s),t==="p"&&(r.pTagInButtonScope=s),t==="li"&&(r.listItemTagAutoclosing=s),(t==="dd"||t==="dt")&&(r.dlItemTagAutoclosing=s),t==="#document"||t==="html"?r.containerTagInScope=null:r.containerTagInScope||(r.containerTagInScope=s),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?r.implicitRootScope===!0&&(r.implicitRootScope=!1):r.implicitRootScope=!0,r}function Aw(e,t,r){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(r)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!r)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return rU.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return r||t===null;case"html":return r&&t==="#document"||t===null;case"body":return r&&(t==="#document"||t==="html")||t===null}return!0}function J_(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Nw(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Eg(e,t){t=t||kT;var r=t.current;if(t=(r=Aw(e,r&&r.tag,t.implicitRootScope)?null:r)?null:J_(e,t),t=r||t,!t)return!0;var s=t.tag;if(t=String(!!r)+"|"+e+"|"+s,pp[t])return!1;pp[t]=!0;var u=(t=or)?Nw(t.return,s):null,d=t!==null&&u!==null?nh(u,t,null):"",y="<"+e+">";return r?(r="",s==="table"&&e==="tr"&&(r+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
126
|
-
This will cause a hydration error.%s`,y,s,r,d)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
127
|
-
This will cause a hydration error.%s`,y,s,d),t&&(e=t.return,u===null||e===null||u===e&&e._debugOwner===t._debugOwner||xe(u,function(){console.error(`<%s> cannot contain a nested %s.
|
|
128
|
-
See this log for the ancestor stack trace.`,s,y)})),!1}function oh(e,t,r){if(r||Aw("#text",t,!1))return!0;if(r="#text|"+t,pp[r])return!1;pp[r]=!0;var s=(r=or)?Nw(r,t):null;return r=r!==null&&s!==null?nh(s,r,r.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
129
|
-
This will cause a hydration error.%s`,t,r):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
130
|
-
This will cause a hydration error.%s`,t,r),!1}function Nu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}function Z_(e){return e.replace(sU,function(t,r){return r.toUpperCase()})}function Mw(e,t,r){var s=t.indexOf("--")===0;s||(-1<t.indexOf("-")?bc.hasOwnProperty(t)&&bc[t]||(bc[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,Z_(t.replace(iU,"ms-")))):aU.test(t)?bc.hasOwnProperty(t)&&bc[t]||(bc[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!zT.test(r)||Hb.hasOwnProperty(r)&&Hb[r]||(Hb[r]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,r.replace(zT,""))),typeof r=="number"&&(isNaN(r)?PT||(PT=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(r)||jT||(jT=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),r==null||typeof r=="boolean"||r===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,r):typeof r!="number"||r===0||HT.has(t)?t==="float"?e.cssFloat=r:(Ae(r,t),e[t]=(""+r).trim()):e[t]=r+"px"}function _w(e,t,r){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,r!=null){if(t){var s={};if(r){for(var u in r)if(r.hasOwnProperty(u)&&!t.hasOwnProperty(u))for(var d=jb[u]||[u],y=0;y<d.length;y++)s[d[y]]=u}for(var S in t)if(t.hasOwnProperty(S)&&(!r||r[S]!==t[S]))for(u=jb[S]||[S],d=0;d<u.length;d++)s[u[d]]=S;S={};for(var R in t)for(u=jb[R]||[R],d=0;d<u.length;d++)S[u[d]]=R;R={};for(var O in s)if(u=s[O],(d=S[O])&&u!==d&&(y=u+","+d,!R[y])){R[y]=!0,y=console;var W=t[u];y.error.call(y,"%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.",W==null||typeof W=="boolean"||W===""?"Removing":"Updating",u,d)}}for(var K in r)!r.hasOwnProperty(K)||t!=null&&t.hasOwnProperty(K)||(K.indexOf("--")===0?e.setProperty(K,""):K==="float"?e.cssFloat="":e[K]="");for(var F in t)O=t[F],t.hasOwnProperty(F)&&r[F]!==O&&Mw(e,F,O)}else for(s in t)t.hasOwnProperty(s)&&Mw(e,s,t[s])}function Mu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function kw(e){return lU.get(e)||e}function ek(e,t){if(Yr.call(Sc,t)&&Sc[t])return!0;if(uU.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=IT.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Sc[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Sc[t]=!0}if(cU.test(t)){if(e=t.toLowerCase(),e=IT.hasOwnProperty(e)?e:null,e==null)return Sc[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Sc[t]=!0)}return!0}function tk(e,t){var r=[],s;for(s in t)ek(e,s)||r.push(s);t=r.map(function(u){return"`"+u+"`"}).join(", "),r.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<r.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function nk(e,t,r,s){if(Yr.call(Ao,t)&&Ao[t])return!0;var u=t.toLowerCase();if(u==="onfocusin"||u==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ao[t]=!0;if(typeof r=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(s!=null){if(e=s.possibleRegistrationNames,s.registrationNameDependencies.hasOwnProperty(t))return!0;if(s=e.hasOwnProperty(u)?e[u]:null,s!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,s),Ao[t]=!0;if(VT.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Ao[t]=!0}else if(VT.test(t))return dU.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Ao[t]=!0;if(fU.test(t)||hU.test(t))return!0;if(u==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ao[t]=!0;if(u==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ao[t]=!0;if(u==="is"&&r!==null&&r!==void 0&&typeof r!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof r),Ao[t]=!0;if(typeof r=="number"&&isNaN(r))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Ao[t]=!0;if(gp.hasOwnProperty(u)){if(u=gp[u],u!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,u),Ao[t]=!0}else if(t!==u)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,u),Ao[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof r){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return u=t.toLowerCase().slice(0,5),u==="data-"||u==="aria-"?!0:(r?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',r,t,t,r,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',r,t,t,r,t,t,t),Ao[t]=!0)}case"function":case"symbol":return Ao[t]=!0,!1;case"string":if(r==="false"||r==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",r,t,r==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,r),Ao[t]=!0}}return!0}function ok(e,t,r){var s=[],u;for(u in t)nk(e,u,t[u],r)||s.push(u);t=s.map(function(d){return"`"+d+"`"}).join(", "),s.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<s.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function _u(e){return pU.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function qa(){}function xg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Lw(e){var t=ye(e);if(t&&(e=t.stateNode)){var r=e[Do]||null;e:switch(e=t.stateNode,t.type){case"input":if(Qe(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(Re(t,"name"),r=r.querySelectorAll('input[name="'+je(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var s=r[t];if(s!==e&&s.form===e.form){var u=s[Do]||null;if(!u)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Qe(s,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<r.length;t++)s=r[t],s.form===e.form&&Je(s)}break e;case"textarea":Gt(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Sn(e,!!r.multiple,t,!1)}}}function Uw(e,t,r){if(Ib)return e(t,r);Ib=!0;try{var s=e(t);return s}finally{if(Ib=!1,(wc!==null||Ec!==null)&&(lc(),wc&&(t=wc,e=Ec,Ec=wc=null,Lw(t),e)))for(t=0;t<e.length;t++)Lw(e[t])}}function ku(e,t){var r=e.stateNode;if(r===null)return null;var s=r[Do]||null;if(s===null)return null;r=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof r+"` type.");return r}function zw(){if(yp)return yp;var e,t=Vb,r=t.length,s,u="value"in Wi?Wi.value:Wi.textContent,d=u.length;for(e=0;e<r&&t[e]===u[e];e++);var y=r-e;for(s=1;s<=y&&t[r-s]===u[d-s];s++);return yp=u.slice(e,1<s?1-s:void 0)}function rh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ah(){return!0}function Pw(){return!1}function zo(e){function t(r,s,u,d,y){this._reactName=r,this._targetInst=u,this.type=s,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(r=e[S],this[S]=r?r(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?ah:Pw,this.isPropagationStopped=Pw,this}return Dt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ah)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ah)},persist:function(){},isPersistent:ah}),t}function rk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=OU[e])?!!t[e]:!1}function Rg(){return rk}function jw(e,t){switch(e){case"keyup":return HU.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==qT;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function ak(e,t){switch(e){case"compositionend":return Hw(t);case"keypress":return t.which!==XT?null:(WT=!0,QT);case"textInput":return e=t.data,e===QT&&WT?null:e;default:return null}}function ik(e,t){if(xc)return e==="compositionend"||!qb&&jw(e,t)?(e=zw(),yp=Vb=Wi=null,xc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return GT&&t.locale!=="ko"?null:t.data;default:return null}}function Iw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!BU[e.type]:t==="textarea"}function sk(e){if(!Oa)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Bw(e,t,r,s){wc?Ec?Ec.push(s):Ec=[s]:wc=s,t=Kh(t,"onChange"),0<t.length&&(r=new bp("onChange","change",null,r,s),e.push({event:r,listeners:t}))}function lk(e){xR(e,0)}function ih(e){var t=Ne(e);if(Je(t))return e}function Vw(e,t){if(e==="change")return t}function Fw(){yd&&(yd.detachEvent("onpropertychange",Yw),bd=yd=null)}function Yw(e){if(e.propertyName==="value"&&ih(bd)){var t=[];Bw(t,bd,e,xg(e)),Uw(lk,t)}}function ck(e,t,r){e==="focusin"?(Fw(),yd=t,bd=r,yd.attachEvent("onpropertychange",Yw)):e==="focusout"&&Fw()}function uk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ih(bd)}function dk(e,t){if(e==="click")return ih(t)}function fk(e,t){if(e==="input"||e==="change")return ih(t)}function hk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Lu(e,t){if(No(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++){var u=r[s];if(!Yr.call(t,u)||!No(e[u],t[u]))return!1}return!0}function $w(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qw(e,t){var r=$w(e);e=0;for(var s;r;){if(r.nodeType===3){if(s=e+r.textContent.length,e<=t&&s>=t)return{node:r,offset:t-e};e=s}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$w(r)}}function Gw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xw(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ze(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ze(e.document)}return t}function Tg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Qw(e,t,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Xb||Rc==null||Rc!==Ze(s)||(s=Rc,"selectionStart"in s&&Tg(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),vd&&Lu(vd,s)||(vd=s,s=Kh(Gb,"onSelect"),0<s.length&&(t=new bp("onSelect","select",null,t,r),e.push({event:t,listeners:s}),t.target=Rc)))}function Is(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}function Bs(e){if(Qb[e])return Qb[e];if(!Tc[e])return e;var t=Tc[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in JT)return Qb[e]=t[r];return e}function Ir(e,t){oC.set(e,t),Ke(t,[e])}function pk(e){for(var t=Sp,r=0;r<e.length;r++){var s=e[r];if(typeof s=="object"&&s!==null)if(Qn(s)&&s.length===2&&typeof s[0]=="string"){if(t!==Sp&&t!==ev)return Jb;t=ev}else return Jb;else{if(typeof s=="function"||typeof s=="string"&&50<s.length||t!==Sp&&t!==Zb)return Jb;t=Zb}}return t}function Cg(e,t,r,s){for(var u in e)Yr.call(e,u)&&u[0]!=="_"&&aa(u,e[u],t,r,s)}function aa(e,t,r,s,u){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===wa){var d=z(t.type)||"…",y=t.key;t=t.props;var S=Object.keys(t),R=S.length;if(y==null&&R===0){t="<"+d+" />";break}if(3>s||R===1&&S[0]==="children"&&y==null){t="<"+d+" … />";break}r.push([u+" ".repeat(s)+e,"<"+d]),y!==null&&aa("key",y,r,s+1,u),e=!1;for(var O in t)O==="children"?t.children!=null&&(!Qn(t.children)||0<t.children.length)&&(e=!0):Yr.call(t,O)&&O[0]!=="_"&&aa(O,t[O],r,s+1,u);r.push(["",e?">…</"+d+">":"/>"]);return}if(d=Object.prototype.toString.call(t),d=d.slice(8,d.length-1),d==="Array"){if(O=pk(t),O===Zb||O===Sp){t=JSON.stringify(t);break}else if(O===ev){for(r.push([u+" ".repeat(s)+e,""]),e=0;e<t.length;e++)d=t[e],aa(d[0],d[1],r,s+1,u);return}}if(d==="Promise"){if(t.status==="fulfilled"){if(d=r.length,aa(e,t.value,r,s,u),r.length>d){r=r[d],r[1]="Promise<"+(r[1]||"Object")+">";return}}else if(t.status==="rejected"&&(d=r.length,aa(e,t.reason,r,s,u),r.length>d)){r=r[d],r[1]="Rejected Promise<"+r[1]+">";return}r.push([" ".repeat(s)+e,"Promise"]);return}d==="Object"&&(O=Object.getPrototypeOf(t))&&typeof O.constructor=="function"&&(d=O.constructor.name),r.push([u+" ".repeat(s)+e,d==="Object"?3>s?"":"…":d]),3>s&&Cg(t,r,s+1,u);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===XU?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}r.push([u+" ".repeat(s)+e,t])}function Ww(e,t,r,s){var u=!0;for(y in e)y in t||(r.push([wp+" ".repeat(s)+y,"…"]),u=!1);for(var d in t)if(d in e){var y=e[d],S=t[d];if(y!==S){if(s===0&&d==="children")u=" ".repeat(s)+d,r.push([wp+u,"…"],[Ep+u,"…"]);else{if(!(3<=s)){if(typeof y=="object"&&typeof S=="object"&&y!==null&&S!==null&&y.$$typeof===S.$$typeof)if(S.$$typeof===wa){if(y.type===S.type&&y.key===S.key){y=z(S.type)||"…",u=" ".repeat(s)+d,y="<"+y+" … />",r.push([wp+u,y],[Ep+u,y]),u=!1;continue}}else{var R=Object.prototype.toString.call(y),O=Object.prototype.toString.call(S);if(R===O&&(O==="[object Object]"||O==="[object Array]")){R=[iC+" ".repeat(s)+d,O==="[object Array]"?"Array":""],r.push(R),O=r.length,Ww(y,S,r,s+1)?O===r.length&&(R[1]="Referentially unequal but deeply equal objects. Consider memoization."):u=!1;continue}}else if(typeof y=="function"&&typeof S=="function"&&y.name===S.name&&y.length===S.length&&(R=Function.prototype.toString.call(y),O=Function.prototype.toString.call(S),R===O)){y=S.name===""?"() => {}":S.name+"() {}",r.push([iC+" ".repeat(s)+d,y+" Referentially unequal function closure. Consider memoization."]);continue}}aa(d,y,r,s,wp),aa(d,S,r,s,Ep)}u=!1}}else r.push([Ep+" ".repeat(s)+d,"…"]),u=!1;return u}function Br(e){Ht=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function ia(e,t,r,s){cn&&(Ji.start=t,Ji.end=r,ni.color="warning",ni.tooltipText=s,ni.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,s,Ji)):performance.measure(s,Ji))}function sh(e,t,r){ia(e,t,r,"Reconnect")}function lh(e,t,r,s,u){var d=H(e);if(d!==null&&cn){var y=e.alternate,S=e.actualDuration;if(y===null||y.child!==e.child)for(var R=e.child;R!==null;R=R.sibling)S-=R.actualDuration;s=.5>S?s?"tertiary-light":"primary-light":10>S?s?"tertiary":"primary":100>S?s?"tertiary-dark":"primary-dark":"error";var O=e.memoizedProps;S=e._debugTask,O!==null&&y!==null&&y.memoizedProps!==O?(R=[QU],O=Ww(y.memoizedProps,O,R,0),1<R.length&&(O&&!Ki&&(y.lanes&u)===0&&100<e.actualDuration?(Ki=!0,R[0]=WU,ni.color="warning",ni.tooltipText=sC):(ni.color=s,ni.tooltipText=d),ni.properties=R,Ji.start=t,Ji.end=r,S!=null?S.run(performance.measure.bind(performance,""+d,Ji)):performance.measure(""+d,Ji))):S!=null?S.run(console.timeStamp.bind(console,d,t,r,Sr,void 0,s)):console.timeStamp(d,t,r,Sr,void 0,s)}}function Og(e,t,r,s){if(cn){var u=H(e);if(u!==null){for(var d=null,y=[],S=0;S<s.length;S++){var R=s[S];d==null&&R.source!==null&&(d=R.source._debugTask),R=R.value,y.push(["Error",typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R)])}e.key!==null&&aa("key",e.key,y,0,""),e.memoizedProps!==null&&Cg(e.memoizedProps,y,0,""),d==null&&(d=e._debugTask),e={start:t,end:r,detail:{devtools:{color:"error",track:Sr,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:y}}},d?d.run(performance.measure.bind(performance,""+u,e)):performance.measure(""+u,e)}}}function sa(e,t,r,s,u){if(u!==null){if(cn){var d=H(e);if(d!==null){s=[];for(var y=0;y<u.length;y++){var S=u[y].value;s.push(["Error",typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S)])}e.key!==null&&aa("key",e.key,s,0,""),e.memoizedProps!==null&&Cg(e.memoizedProps,s,0,""),t={start:t,end:r,detail:{devtools:{color:"error",track:Sr,tooltipText:"A lifecycle or effect errored",properties:s}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+d,t)):performance.measure(""+d,t)}}}else d=H(e),d!==null&&cn&&(u=1>s?"secondary-light":100>s?"secondary":500>s?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,d,t,r,Sr,void 0,u)):console.timeStamp(d,t,r,Sr,void 0,u))}function mk(e,t,r,s){if(cn&&!(t<=e)){var u=(r&738197653)===r?"tertiary-dark":"primary-dark";r=(r&536870912)===r?"Prepared":(r&201326741)===r?"Hydrated":"Render",s?s.run(console.timeStamp.bind(console,r,e,t,Ht,Lt,u)):console.timeStamp(r,e,t,Ht,Lt,u)}}function Kw(e,t,r,s){!cn||t<=e||(r=(r&738197653)===r?"tertiary-dark":"primary-dark",s?s.run(console.timeStamp.bind(console,"Prewarm",e,t,Ht,Lt,r)):console.timeStamp("Prewarm",e,t,Ht,Lt,r))}function Jw(e,t,r,s){!cn||t<=e||(r=(r&738197653)===r?"tertiary-dark":"primary-dark",s?s.run(console.timeStamp.bind(console,"Suspended",e,t,Ht,Lt,r)):console.timeStamp("Suspended",e,t,Ht,Lt,r))}function gk(e,t,r,s,u,d){if(cn&&!(t<=e)){r=[];for(var y=0;y<s.length;y++){var S=s[y].value;r.push(["Recoverable Error",typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:Ht,trackGroup:Lt,tooltipText:u?"Hydration Failed":"Recovered after Error",properties:r}}},d?d.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Dg(e,t,r,s){!cn||t<=e||(s?s.run(console.timeStamp.bind(console,"Errored",e,t,Ht,Lt,"error")):console.timeStamp("Errored",e,t,Ht,Lt,"error"))}function yk(e,t,r,s){!cn||t<=e||(s?s.run(console.timeStamp.bind(console,r,e,t,Ht,Lt,"secondary-light")):console.timeStamp(r,e,t,Ht,Lt,"secondary-light"))}function Zw(e,t,r,s,u){if(cn&&!(t<=e)){for(var d=[],y=0;y<r.length;y++){var S=r[y].value;d.push(["Error",typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Ht,trackGroup:Lt,tooltipText:s?"Remaining Effects Errored":"Commit Errored",properties:d}}},u?u.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Ag(e,t,r){!cn||t<=e||console.timeStamp("Animating",e,t,Ht,Lt,"secondary-dark")}function ch(){for(var e=Cc,t=tv=Cc=0;t<e;){var r=wr[t];wr[t++]=null;var s=wr[t];wr[t++]=null;var u=wr[t];wr[t++]=null;var d=wr[t];if(wr[t++]=null,s!==null&&u!==null){var y=s.pending;y===null?u.next=u:(u.next=y.next,y.next=u),s.pending=u}d!==0&&eE(r,u,d)}}function uh(e,t,r,s){wr[Cc++]=e,wr[Cc++]=t,wr[Cc++]=r,wr[Cc++]=s,tv|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Ng(e,t,r,s){return uh(e,t,r,s),dh(e)}function bo(e,t){return uh(e,null,null,t),dh(e)}function eE(e,t,r){e.lanes|=r;var s=e.alternate;s!==null&&(s.lanes|=r);for(var u=!1,d=e.return;d!==null;)d.childLanes|=r,s=d.alternate,s!==null&&(s.childLanes|=r),d.tag===22&&(e=d.stateNode,e===null||e._visibility&Sd||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-Oo(r),e=d.hiddenUpdates,s=e[u],s===null?e[u]=[t]:s.push(t),t.lane=r|536870912),d):null}function dh(e){if(Gd>fz)throw yl=Gd=0,Xd=Lv=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.");yl>hz&&(yl=0,Xd=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&gR(e);for(var t=e,r=t.return;r!==null;)t.alternate===null&&(t.flags&4098)!==0&&gR(e),t=r,r=t.return;return t.tag===3?t.stateNode:null}function Vs(e){if(Er===null)return e;var t=Er(e);return t===void 0?e:t.current}function Mg(e){if(Er===null)return e;var t=Er(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=Vs(e.render),e.render!==t)?(t={$$typeof:ld,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function tE(e,t){if(Er===null)return!1;var r=e.elementType;t=t.type;var s=!1,u=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(s=!0);break;case 0:(typeof t=="function"||u===nr)&&(s=!0);break;case 11:(u===ld||u===nr)&&(s=!0);break;case 14:case 15:(u===lp||u===nr)&&(s=!0);break;default:return!1}return!!(s&&(e=Er(r),e!==void 0&&e===Er(t)))}function nE(e){Er!==null&&typeof WeakSet=="function"&&(Oc===null&&(Oc=new WeakSet),Oc.add(e))}function oE(e,t,r){do{var s=e,u=s.alternate,d=s.child,y=s.sibling,S=s.tag;s=s.type;var R=null;switch(S){case 0:case 15:case 1:R=s;break;case 11:R=s.render}if(Er===null)throw Error("Expected resolveFamily to be set during hot reload.");var O=!1;if(s=!1,R!==null&&(R=Er(R),R!==void 0&&(r.has(R)?s=!0:t.has(R)&&(S===1?s=!0:O=!0))),Oc!==null&&(Oc.has(e)||u!==null&&Oc.has(u))&&(s=!0),s&&(e._debugNeedsRemount=!0),(s||O)&&(u=bo(e,2),u!==null&&Rn(u,e,2)),d===null||s||oE(d,t,r),y===null)break;e=y}while(!0)}function bk(e,t,r,s){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,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,lC||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function _g(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ga(e,t){var r=e.alternate;switch(r===null?(r=v(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r._debugOwner=e._debugOwner,r._debugStack=e._debugStack,r._debugTask=e._debugTask,r._debugHookTypes=e._debugHookTypes,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null,r.actualDuration=-0,r.actualStartTime=-1.1),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r.selfBaseDuration=e.selfBaseDuration,r.treeBaseDuration=e.treeBaseDuration,r._debugInfo=e._debugInfo,r._debugNeedsRemount=e._debugNeedsRemount,r.tag){case 0:case 15:r.type=Vs(e.type);break;case 1:r.type=Vs(e.type);break;case 11:r.type=Mg(e.type)}return r}function rE(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=r.selfBaseDuration,e.treeBaseDuration=r.treeBaseDuration),e}function kg(e,t,r,s,u,d){var y=0,S=e;if(typeof e=="function")_g(e)&&(y=1),S=Vs(S);else if(typeof e=="string")y=oe(),y=OL(e,r,y)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Cb:return t=v(31,r,t,u),t.elementType=Cb,t.lanes=d,t;case mc:return Fs(r.children,u,d,t);case sp:y=8,u|=So,u|=$r;break;case Eb:return e=r,s=u,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=v(12,e,t,s|wt),t.elementType=Eb,t.lanes=d,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Rb:return t=v(13,r,t,u),t.elementType=Rb,t.lanes=d,t;case Tb:return t=v(19,r,t,u),t.elementType=Tb,t.lanes=d,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ea:y=10;break e;case xb:y=9;break e;case ld:y=11,S=Mg(S);break e;case lp:y=14;break e;case nr:y=16,S=null;break e}S="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?r="null":Qn(e)?r="array":e!==void 0&&e.$$typeof===wa?(r="<"+(z(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):r=typeof e,(y=s?te(s):null)&&(S+=`
|
|
131
|
-
|
|
132
|
-
Check the render method of \``+y+"`."),y=29,r=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(r+"."+S)),S=null}return t=v(y,r,t,u),t.elementType=e,t.type=S,t.lanes=d,t._debugOwner=s,t}function fh(e,t,r){return t=kg(e.type,e.key,e.props,e._owner,t,r),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Fs(e,t,r,s){return e=v(7,e,s,t),e.lanes=r,e}function Lg(e,t,r){return e=v(6,e,null,t),e.lanes=r,e}function aE(e){var t=v(18,null,null,ct);return t.stateNode=e,t}function Ug(e,t,r){return t=v(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wo(e,t){if(typeof e=="object"&&e!==null){var r=nv.get(e);return r!==void 0?r:(t={value:e,source:t,stack:ve(t)},nv.set(e,t),t)}return{value:e,source:t,stack:ve(t)}}function Xa(e,t){Li(),Dc[Ac++]=wd,Dc[Ac++]=xp,xp=e,wd=t}function iE(e,t,r){Li(),xr[Rr++]=ri,xr[Rr++]=ai,xr[Rr++]=nl,nl=e;var s=ri;e=ai;var u=32-Oo(s)-1;s&=~(1<<u),r+=1;var d=32-Oo(t)+u;if(30<d){var y=u-u%5;d=(s&(1<<y)-1).toString(32),s>>=y,u-=y,ri=1<<32-Oo(t)+u|r<<u|s,ai=d+e}else ri=1<<d|r<<u|s,ai=e}function zg(e){Li(),e.return!==null&&(Xa(e,1),iE(e,1,0))}function Pg(e){for(;e===xp;)xp=Dc[--Ac],Dc[Ac]=null,wd=Dc[--Ac],Dc[Ac]=null;for(;e===nl;)nl=xr[--Rr],xr[Rr]=null,ai=xr[--Rr],xr[Rr]=null,ri=xr[--Rr],xr[Rr]=null}function sE(){return Li(),nl!==null?{id:ri,overflow:ai}:null}function lE(e,t){Li(),xr[Rr++]=ri,xr[Rr++]=ai,xr[Rr++]=nl,ri=t.id,ai=t.overflow,nl=e}function Li(){Nt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Ys(e,t){if(e.return===null){if(rr===null)rr={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(rr.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");rr.distanceFromLeaf>t&&(rr.distanceFromLeaf=t)}return rr}var r=Ys(e.return,t+1).children;return 0<r.length&&r[r.length-1].fiber===e?(r=r[r.length-1],r.distanceFromLeaf>t&&(r.distanceFromLeaf=t),r):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},r.push(t),t)}function cE(){Nt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function hh(e,t){Da||(e=Ys(e,0),e.serverProps=null,t!==null&&(t=BR(t),e.serverTail.push(t)))}function Ui(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,r="",s=rr;throw s!==null&&(rr=null,r=Jl(s)),Uu(Wo(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
133
|
-
|
|
134
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
135
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
136
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
137
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
138
|
-
- Invalid HTML tag nesting.
|
|
139
|
-
|
|
140
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
141
|
-
|
|
142
|
-
https://react.dev/link/hydration-mismatch`+r),e)),ov}function uE(e){var t=e.stateNode,r=e.type,s=e.memoizedProps;switch(t[mo]=e,t[Do]=s,ob(r,s),r){case"dialog":kt("cancel",t),kt("close",t);break;case"iframe":case"object":case"embed":kt("load",t);break;case"video":case"audio":for(r=0;r<Qd.length;r++)kt(Qd[r],t);break;case"source":kt("error",t);break;case"img":case"image":case"link":kt("error",t),kt("load",t);break;case"details":kt("toggle",t);break;case"input":Rt("input",s),kt("invalid",t),Fe(t,s),ut(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"option":vt(t,s);break;case"select":Rt("select",s),kt("invalid",t),Mn(t,s);break;case"textarea":Rt("textarea",s),kt("invalid",t),eo(t,s),Ro(t,s.value,s.defaultValue,s.children)}r=s.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||s.suppressHydrationWarning===!0||OR(t.textContent,r)?(s.popover!=null&&(kt("beforetoggle",t),kt("toggle",t)),s.onScroll!=null&&kt("scroll",t),s.onScrollEnd!=null&&kt("scrollend",t),s.onClick!=null&&(t.onclick=qa),t=!0):t=!1,t||Ui(e,!0)}function dE(e){for(go=e.return;go;)switch(go.tag){case 5:case 31:case 13:Tr=!1;return;case 27:case 3:Tr=!0;return;default:go=go.return}}function Zl(e){if(e!==go)return!1;if(!Nt)return dE(e),Nt=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||lb(e.type,e.memoizedProps)),r=!r),r&&un){for(r=un;r;){var s=Ys(e,0),u=BR(r);s.serverTail.push(u),r=u.type==="Suspense"?fb(r):tr(r.nextSibling)}Ui(e)}if(dE(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");un=fb(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");un=fb(e)}else t===27?(t=un,$i(e.type)?(e=qv,qv=null,un=e):un=t):un=go?tr(e.stateNode.nextSibling):null;return!0}function $s(){un=go=null,Da=Nt=!1}function jg(){var e=es;return e!==null&&(Lo===null?Lo=e:Lo.push.apply(Lo,e),es=null),e}function Uu(e){es===null?es=[e]:es.push(e)}function Hg(){var e=rr;if(e!==null){rr=null;for(var t=Jl(e);0<e.children.length;)e=e.children[0];xe(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
143
|
-
|
|
144
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
145
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
146
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
147
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
148
|
-
- Invalid HTML tag nesting.
|
|
149
|
-
|
|
150
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
151
|
-
|
|
152
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function ph(){Nc=Rp=null,Mc=!1}function zi(e,t,r){j(rv,t._currentValue,e),t._currentValue=r,j(av,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==uC&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=uC}function Qa(e,t){e._currentValue=rv.current;var r=av.current;N(av,t),e._currentRenderer=r,N(rv,t)}function Ig(e,t,r){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===r)break;e=e.return}e!==r&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Bg(e,t,r,s){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var y=u.child;d=d.firstContext;e:for(;d!==null;){var S=d;d=u;for(var R=0;R<t.length;R++)if(S.context===t[R]){d.lanes|=r,S=d.alternate,S!==null&&(S.lanes|=r),Ig(d.return,r,e),s||(y=null);break e}d=S.next}}else if(u.tag===18){if(y=u.return,y===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");y.lanes|=r,d=y.alternate,d!==null&&(d.lanes|=r),Ig(y,r,e),y=null}else y=u.child;if(y!==null)y.return=u;else for(y=u;y!==null;){if(y===e){y=null;break}if(u=y.sibling,u!==null){u.return=y.return,y=u;break}y=y.return}u=y}}function ec(e,t,r,s){e=null;for(var u=t,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var y=u.alternate;if(y===null)throw Error("Should have a current fiber. This is a bug in React.");if(y=y.memoizedProps,y!==null){var S=u.type;No(u.pendingProps.value,y.value)||(e!==null?e.push(S):e=[S])}}else if(u===cp.current){if(y=u.alternate,y===null)throw Error("Should have a current fiber. This is a bug in React.");y.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(ef):e=[ef])}u=u.return}e!==null&&Bg(t,e,r,s),t.flags|=262144}function mh(e){for(e=e.firstContext;e!==null;){if(!No(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qs(e){Rp=e,Nc=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mn(e){return Mc&&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()."),fE(Rp,e)}function gh(e,t){return Rp===null&&qs(e),fE(e,t)}function fE(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},Nc===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Nc=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Nc=Nc.next=t;return r}function Vg(){return{controller:new ZU,data:new Map,refCount:0}}function Gs(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function zu(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&ez(tz,function(){e.controller.abort()})}function la(e,t,r){(e&127)!==0?0>Aa&&(Aa=Hn(),xd=Tp(t),iv=t,r!=null&&(sv=H(r)),(It&(Kn|sr))!==io&&(Tn=!0,ns=Ed),e=od(),t=nd(),e!==_c||t!==Rd?_c=-1.1:t!==null&&(ns=Ed),al=e,Rd=t):(e&4194048)!==0&&0>Cr&&(Cr=Hn(),Td=Tp(t),dC=t,r!=null&&(fC=H(r)),0>ci)&&(e=od(),t=nd(),(e!==rs||t!==il)&&(rs=-1.1),os=e,il=t)}function vk(e){if(0>Aa){Aa=Hn(),xd=e._debugTask!=null?e._debugTask:null,(It&(Kn|sr))!==io&&(ns=Ed);var t=od(),r=nd();t!==_c||r!==Rd?_c=-1.1:r!==null&&(ns=Ed),al=t,Rd=r}0>Cr&&(Cr=Hn(),Td=e._debugTask!=null?e._debugTask:null,0>ci)&&(e=od(),t=nd(),(e!==rs||t!==il)&&(rs=-1.1),os=e,il=t)}function Wa(){var e=ol;return ol=0,e}function yh(e){var t=ol;return ol=e,t}function Pu(e){var t=ol;return ol+=e,t}function bh(){st=rt=-1.1}function Ko(){var e=rt;return rt=-1.1,e}function Jo(e){0<=e&&(rt=e)}function ca(){var e=wn;return wn=-0,e}function ua(e){0<=e&&(wn=e)}function da(){var e=gn;return gn=null,e}function fa(){var e=Tn;return Tn=!1,e}function Fg(e){Mo=Hn(),0>e.actualStartTime&&(e.actualStartTime=Mo)}function Yg(e){if(0<=Mo){var t=Hn()-Mo;e.actualDuration+=t,e.selfBaseDuration=t,Mo=-1}}function hE(e){if(0<=Mo){var t=Hn()-Mo;e.actualDuration+=t,Mo=-1}}function ha(){if(0<=Mo){var e=Hn(),t=e-Mo;Mo=-1,ol+=t,wn+=t,st=e}}function pE(e){gn===null&&(gn=[]),gn.push(e),si===null&&(si=[]),si.push(e)}function pa(){Mo=Hn(),0>rt&&(rt=Mo)}function ju(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Sk(e,t){if(Od===null){var r=Od=[];cv=0,sl=Zy(),kc={status:"pending",value:void 0,then:function(s){r.push(s)}}}return cv++,t.then(mE,mE),t}function mE(){if(--cv===0&&(-1<Cr||(ci=-1.1),Od!==null)){kc!==null&&(kc.status="fulfilled");var e=Od;Od=null,sl=0,kc=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function wk(e,t){var r=[],s={status:"pending",value:null,reason:null,then:function(u){r.push(u)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var u=0;u<r.length;u++)(0,r[u])(t)},function(u){for(s.status="rejected",s.reason=u,u=0;u<r.length;u++)(0,r[u])(void 0)}),s}function $g(){var e=ll.current;return e!==null?e:tn.pooledCache}function vh(e,t){t===null?j(ll,ll.current,e):j(ll,t.pool,e)}function gE(){var e=$g();return e===null?null:{parent:jn._currentValue,pool:e}}function yE(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function bE(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vE(e,t,r){fe.actQueue!==null&&(fe.didUsePromise=!0);var s=e.thenables;if(r=s[r],r===void 0?s.push(t):r!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(qa,qa),t=r),t._debugInfo===void 0){e=performance.now(),s=t.displayName;var u={name:typeof s=="string"?s:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:u}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){u.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wE(e),e;default:if(typeof t.status=="string")t.then(qa,qa);else{if(e=tn,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(d){if(t.status==="pending"){var y=t;y.status="fulfilled",y.value=d}},function(d){if(t.status==="pending"){var y=t;y.status="rejected",y.reason=d}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wE(e),e}throw ul=t,Ld=!0,Lc}}function Pi(e){try{return iz(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(ul=t,Ld=!0,Lc):t}}function SE(){if(ul===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=ul;return ul=null,Ld=!1,e}function wE(e){if(e===Lc||e===kp)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 fo(e){var t=Et;return e!=null&&(Et=t===null?e:t.concat(e)),t}function qg(){var e=Et;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var r=e[t].debugTask;if(r!=null)return r}}return null}function Sh(e,t,r){for(var s=Object.keys(e.props),u=0;u<s.length;u++){var d=s[u];if(d!=="children"&&d!=="key"){t===null&&(t=fh(e,r.mode,0),t._debugInfo=Et,t.return=r),xe(t,function(y){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y)},d);break}}}function wh(e){var t=Ud;return Ud+=1,Uc===null&&(Uc=yE()),vE(Uc,e,t)}function Hu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function EE(e,t){throw t.$$typeof===jL?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
153
|
-
- Multiple copies of the "react" package is used.
|
|
154
|
-
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
155
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Eh(e,t){var r=qg();r!==null?r.run(EE.bind(null,e,t)):EE(e,t)}function xE(e,t){var r=H(e)||"Component";_C[r]||(_C[r]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
156
|
-
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
157
|
-
<%s>{%s}</%s>`,t,t,r,t,r))}function xh(e,t){var r=qg();r!==null?r.run(xE.bind(null,e,t)):xE(e,t)}function RE(e,t){var r=H(e)||"Component";kC[r]||(kC[r]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
158
|
-
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
159
|
-
<%s>%s</%s>`,r,t,r))}function Rh(e,t){var r=qg();r!==null?r.run(RE.bind(null,e,t)):RE(e,t)}function TE(e){function t(V,q){if(e){var X=V.deletions;X===null?(V.deletions=[q],V.flags|=16):X.push(q)}}function r(V,q){if(!e)return null;for(;q!==null;)t(V,q),q=q.sibling;return null}function s(V){for(var q=new Map;V!==null;)V.key!==null?q.set(V.key,V):q.set(V.index,V),V=V.sibling;return q}function u(V,q){return V=Ga(V,q),V.index=0,V.sibling=null,V}function d(V,q,X){return V.index=X,e?(X=V.alternate,X!==null?(X=X.index,X<q?(V.flags|=67108866,q):X):(V.flags|=67108866,q)):(V.flags|=1048576,q)}function y(V){return e&&V.alternate===null&&(V.flags|=67108866),V}function S(V,q,X,be){return q===null||q.tag!==6?(q=Lg(X,V.mode,be),q.return=V,q._debugOwner=V,q._debugTask=V._debugTask,q._debugInfo=Et,q):(q=u(q,X),q.return=V,q._debugInfo=Et,q)}function R(V,q,X,be){var He=X.type;return He===mc?(q=W(V,q,X.props.children,be,X.key),Sh(X,q,V),q):q!==null&&(q.elementType===He||tE(q,X)||typeof He=="object"&&He!==null&&He.$$typeof===nr&&Pi(He)===q.type)?(q=u(q,X.props),Hu(q,X),q.return=V,q._debugOwner=X._owner,q._debugInfo=Et,q):(q=fh(X,V.mode,be),Hu(q,X),q.return=V,q._debugInfo=Et,q)}function O(V,q,X,be){return q===null||q.tag!==4||q.stateNode.containerInfo!==X.containerInfo||q.stateNode.implementation!==X.implementation?(q=Ug(X,V.mode,be),q.return=V,q._debugInfo=Et,q):(q=u(q,X.children||[]),q.return=V,q._debugInfo=Et,q)}function W(V,q,X,be,He){return q===null||q.tag!==7?(q=Fs(X,V.mode,be,He),q.return=V,q._debugOwner=V,q._debugTask=V._debugTask,q._debugInfo=Et,q):(q=u(q,X),q.return=V,q._debugInfo=Et,q)}function K(V,q,X){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=Lg(""+q,V.mode,X),q.return=V,q._debugOwner=V,q._debugTask=V._debugTask,q._debugInfo=Et,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case wa:return X=fh(q,V.mode,X),Hu(X,q),X.return=V,V=fo(q._debugInfo),X._debugInfo=Et,Et=V,X;case pc:return q=Ug(q,V.mode,X),q.return=V,q._debugInfo=Et,q;case nr:var be=fo(q._debugInfo);return q=Pi(q),V=K(V,q,X),Et=be,V}if(Qn(q)||_(q))return X=Fs(q,V.mode,X,null),X.return=V,X._debugOwner=V,X._debugTask=V._debugTask,V=fo(q._debugInfo),X._debugInfo=Et,Et=V,X;if(typeof q.then=="function")return be=fo(q._debugInfo),V=K(V,wh(q),X),Et=be,V;if(q.$$typeof===Ea)return K(V,gh(V,q),X);Eh(V,q)}return typeof q=="function"&&xh(V,q),typeof q=="symbol"&&Rh(V,q),null}function F(V,q,X,be){var He=q!==null?q.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return He!==null?null:S(V,q,""+X,be);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case wa:return X.key===He?(He=fo(X._debugInfo),V=R(V,q,X,be),Et=He,V):null;case pc:return X.key===He?O(V,q,X,be):null;case nr:return He=fo(X._debugInfo),X=Pi(X),V=F(V,q,X,be),Et=He,V}if(Qn(X)||_(X))return He!==null?null:(He=fo(X._debugInfo),V=W(V,q,X,be,null),Et=He,V);if(typeof X.then=="function")return He=fo(X._debugInfo),V=F(V,q,wh(X),be),Et=He,V;if(X.$$typeof===Ea)return F(V,q,gh(V,X),be);Eh(V,X)}return typeof X=="function"&&xh(V,X),typeof X=="symbol"&&Rh(V,X),null}function le(V,q,X,be,He){if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return V=V.get(X)||null,S(q,V,""+be,He);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case wa:return X=V.get(be.key===null?X:be.key)||null,V=fo(be._debugInfo),q=R(q,X,be,He),Et=V,q;case pc:return V=V.get(be.key===null?X:be.key)||null,O(q,V,be,He);case nr:var ft=fo(be._debugInfo);return be=Pi(be),q=le(V,q,X,be,He),Et=ft,q}if(Qn(be)||_(be))return X=V.get(X)||null,V=fo(be._debugInfo),q=W(q,X,be,He,null),Et=V,q;if(typeof be.then=="function")return ft=fo(be._debugInfo),q=le(V,q,X,wh(be),He),Et=ft,q;if(be.$$typeof===Ea)return le(V,q,X,gh(q,be),He);Eh(q,be)}return typeof be=="function"&&xh(q,be),typeof be=="symbol"&&Rh(q,be),null}function ke(V,q,X,be){if(typeof X!="object"||X===null)return be;switch(X.$$typeof){case wa:case pc:b(V,q,X);var He=X.key;if(typeof He!="string")break;if(be===null){be=new Set,be.add(He);break}if(!be.has(He)){be.add(He);break}xe(q,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.",He)});break;case nr:X=Pi(X),ke(V,q,X,be)}return be}function Ie(V,q,X,be){for(var He=null,ft=null,nt=null,We=q,St=q=0,dn=null;We!==null&&St<X.length;St++){We.index>St?(dn=We,We=null):dn=We.sibling;var kn=F(V,We,X[St],be);if(kn===null){We===null&&(We=dn);break}He=ke(V,kn,X[St],He),e&&We&&kn.alternate===null&&t(V,We),q=d(kn,q,St),nt===null?ft=kn:nt.sibling=kn,nt=kn,We=dn}if(St===X.length)return r(V,We),Nt&&Xa(V,St),ft;if(We===null){for(;St<X.length;St++)We=K(V,X[St],be),We!==null&&(He=ke(V,We,X[St],He),q=d(We,q,St),nt===null?ft=We:nt.sibling=We,nt=We);return Nt&&Xa(V,St),ft}for(We=s(We);St<X.length;St++)dn=le(We,V,St,X[St],be),dn!==null&&(He=ke(V,dn,X[St],He),e&&dn.alternate!==null&&We.delete(dn.key===null?St:dn.key),q=d(dn,q,St),nt===null?ft=dn:nt.sibling=dn,nt=dn);return e&&We.forEach(function(yi){return t(V,yi)}),Nt&&Xa(V,St),ft}function sn(V,q,X,be){if(X==null)throw Error("An iterable object provided no iterator.");for(var He=null,ft=null,nt=q,We=q=0,St=null,dn=null,kn=X.next();nt!==null&&!kn.done;We++,kn=X.next()){nt.index>We?(St=nt,nt=null):St=nt.sibling;var yi=F(V,nt,kn.value,be);if(yi===null){nt===null&&(nt=St);break}dn=ke(V,yi,kn.value,dn),e&&nt&&yi.alternate===null&&t(V,nt),q=d(yi,q,We),ft===null?He=yi:ft.sibling=yi,ft=yi,nt=St}if(kn.done)return r(V,nt),Nt&&Xa(V,We),He;if(nt===null){for(;!kn.done;We++,kn=X.next())nt=K(V,kn.value,be),nt!==null&&(dn=ke(V,nt,kn.value,dn),q=d(nt,q,We),ft===null?He=nt:ft.sibling=nt,ft=nt);return Nt&&Xa(V,We),He}for(nt=s(nt);!kn.done;We++,kn=X.next())St=le(nt,V,We,kn.value,be),St!==null&&(dn=ke(V,St,kn.value,dn),e&&St.alternate!==null&&nt.delete(St.key===null?We:St.key),q=d(St,q,We),ft===null?He=St:ft.sibling=St,ft=St);return e&&nt.forEach(function(Nz){return t(V,Nz)}),Nt&&Xa(V,We),He}function Ut(V,q,X,be){if(typeof X=="object"&&X!==null&&X.type===mc&&X.key===null&&(Sh(X,null,V),X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case wa:var He=fo(X._debugInfo);e:{for(var ft=X.key;q!==null;){if(q.key===ft){if(ft=X.type,ft===mc){if(q.tag===7){r(V,q.sibling),be=u(q,X.props.children),be.return=V,be._debugOwner=X._owner,be._debugInfo=Et,Sh(X,be,V),V=be;break e}}else if(q.elementType===ft||tE(q,X)||typeof ft=="object"&&ft!==null&&ft.$$typeof===nr&&Pi(ft)===q.type){r(V,q.sibling),be=u(q,X.props),Hu(be,X),be.return=V,be._debugOwner=X._owner,be._debugInfo=Et,V=be;break e}r(V,q);break}else t(V,q);q=q.sibling}X.type===mc?(be=Fs(X.props.children,V.mode,be,X.key),be.return=V,be._debugOwner=V,be._debugTask=V._debugTask,be._debugInfo=Et,Sh(X,be,V),V=be):(be=fh(X,V.mode,be),Hu(be,X),be.return=V,be._debugInfo=Et,V=be)}return V=y(V),Et=He,V;case pc:e:{for(He=X,X=He.key;q!==null;){if(q.key===X)if(q.tag===4&&q.stateNode.containerInfo===He.containerInfo&&q.stateNode.implementation===He.implementation){r(V,q.sibling),be=u(q,He.children||[]),be.return=V,V=be;break e}else{r(V,q);break}else t(V,q);q=q.sibling}be=Ug(He,V.mode,be),be.return=V,V=be}return y(V);case nr:return He=fo(X._debugInfo),X=Pi(X),V=Ut(V,q,X,be),Et=He,V}if(Qn(X))return He=fo(X._debugInfo),V=Ie(V,q,X,be),Et=He,V;if(_(X)){if(He=fo(X._debugInfo),ft=_(X),typeof ft!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var nt=ft.call(X);return nt===X?(V.tag!==0||Object.prototype.toString.call(V.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(nt)!=="[object Generator]")&&(NC||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."),NC=!0):X.entries!==ft||hv||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),hv=!0),V=sn(V,q,nt,be),Et=He,V}if(typeof X.then=="function")return He=fo(X._debugInfo),V=Ut(V,q,wh(X),be),Et=He,V;if(X.$$typeof===Ea)return Ut(V,q,gh(V,X),be);Eh(V,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(He=""+X,q!==null&&q.tag===6?(r(V,q.sibling),be=u(q,He),be.return=V,V=be):(r(V,q),be=Lg(He,V.mode,be),be.return=V,be._debugOwner=V,be._debugTask=V._debugTask,be._debugInfo=Et,V=be),y(V)):(typeof X=="function"&&xh(V,X),typeof X=="symbol"&&Rh(V,X),r(V,q))}return function(V,q,X,be){var He=Et;Et=null;try{Ud=0;var ft=Ut(V,q,X,be);return Uc=null,ft}catch(dn){if(dn===Lc||dn===kp)throw dn;var nt=v(29,dn,null,V.mode);nt.lanes=be,nt.return=V;var We=nt._debugInfo=Et;if(nt._debugOwner=V._debugOwner,nt._debugTask=V._debugTask,We!=null){for(var St=We.length-1;0<=St;St--)if(typeof We[St].stack=="string"){nt._debugOwner=We[St],nt._debugTask=We[St].debugTask;break}}return nt}finally{Et=He}}}function CE(e,t){var r=Qn(e);return e=!r&&typeof _(e)=="function",r||e?(r=r?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",r,t,r),!1):!0}function Gg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ji(e){return{lane:e,tag:UC,payload:null,callback:null,next:null}}function Hi(e,t,r){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,mv===s&&!jC){var u=H(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
160
|
-
|
|
161
|
-
Please update the following component: %s`,u),jC=!0}return(It&Kn)!==io?(u=s.pending,u===null?t.next=t:(t.next=u.next,u.next=t),s.pending=t,t=dh(e),eE(e,null,r),t):(uh(e,s,t,r),dh(e))}function Iu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,vn(e,r)}}function Th(e,t){var r=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,r===s)){var u=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var y={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};d===null?u=d=y:d=d.next=y,r=r.next}while(r!==null);d===null?u=d=t:d=d.next=t}else u=d=t;r={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:s.shared,callbacks:s.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Bu(){if(gv){var e=kc;if(e!==null)throw e}}function Vu(e,t,r,s){gv=!1;var u=e.updateQueue;as=!1,mv=u.shared;var d=u.firstBaseUpdate,y=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var R=S,O=R.next;R.next=null,y===null?d=O:y.next=O,y=R;var W=e.alternate;W!==null&&(W=W.updateQueue,S=W.lastBaseUpdate,S!==y&&(S===null?W.firstBaseUpdate=O:S.next=O,W.lastBaseUpdate=R))}if(d!==null){var K=u.baseState;y=0,W=O=R=null,S=d;do{var F=S.lane&-536870913,le=F!==S.lane;if(le?(xt&F)===F:(s&F)===F){F!==0&&F===sl&&(gv=!0),W!==null&&(W=W.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{F=e;var ke=S,Ie=t,sn=r;switch(ke.tag){case zC:if(ke=ke.payload,typeof ke=="function"){Mc=!0;var Ut=ke.call(sn,K,Ie);if(F.mode&So){Ce(!0);try{ke.call(sn,K,Ie)}finally{Ce(!1)}}Mc=!1,K=Ut;break e}K=ke;break e;case pv:F.flags=F.flags&-65537|128;case UC:if(Ut=ke.payload,typeof Ut=="function"){if(Mc=!0,ke=Ut.call(sn,K,Ie),F.mode&So){Ce(!0);try{Ut.call(sn,K,Ie)}finally{Ce(!1)}}Mc=!1}else ke=Ut;if(ke==null)break e;K=Dt({},K,ke);break e;case PC:as=!0}}F=S.callback,F!==null&&(e.flags|=64,le&&(e.flags|=8192),le=u.callbacks,le===null?u.callbacks=[F]:le.push(F))}else le={lane:F,tag:S.tag,payload:S.payload,callback:S.callback,next:null},W===null?(O=W=le,R=K):W=W.next=le,y|=F;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;le=S,S=le.next,le.next=null,u.lastBaseUpdate=le,u.shared.pending=null}}while(!0);W===null&&(R=K),u.baseState=R,u.firstBaseUpdate=O,u.lastBaseUpdate=W,d===null&&(u.shared.lanes=0),ls|=y,e.lanes=y,e.memoizedState=K}mv=null}function OE(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Ek(e,t){var r=e.shared.hiddenCallbacks;if(r!==null)for(e.shared.hiddenCallbacks=null,e=0;e<r.length;e++)OE(r[e],t)}function DE(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)OE(r[e],t)}function AE(e,t){var r=Ma;j(Up,r,e),j(zc,t,e),Ma=r|t.baseLanes}function Qg(e){j(Up,Ma,e),j(zc,zc.current,e)}function Wg(e){Ma=Up.current,N(zc,e),N(Up,e)}function Ii(e){var t=e.alternate;j(_n,_n.current&Pc,e),j(ar,e,e),Or===null&&(t===null||zc.current!==null||t.memoizedState!==null)&&(Or=e)}function Kg(e){j(_n,_n.current,e),j(ar,e,e),Or===null&&(Or=e)}function NE(e){e.tag===22?(j(_n,_n.current,e),j(ar,e,e),Or===null&&(Or=e)):Bi(e)}function Bi(e){j(_n,_n.current,e),j(ar,ar.current,e)}function Zo(e){N(ar,e),Or===e&&(Or=null),N(_n,e)}function Ch(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||ub(r)||db(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Ot(){var e=de;Ar===null?Ar=[e]:Ar.push(e)}function Oe(){var e=de;if(Ar!==null&&(fi++,Ar[fi]!==e)){var t=H(dt);if(!HC.has(t)&&(HC.add(t),Ar!==null)){for(var r="",s=0;s<=fi;s++){var u=Ar[s],d=s===fi?e:u;for(u=s+1+". "+u;30>u.length;)u+=" ";u+=d+`
|
|
162
|
-
`,r+=u}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
163
|
-
|
|
164
|
-
Previous render Next render
|
|
165
|
-
------------------------------------------------------
|
|
166
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
167
|
-
`,t,r)}}}function tc(e){e==null||Qn(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",de,typeof e)}function Oh(){var e=H(dt);BC.has(e)||(BC.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function On(){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:
|
|
168
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
169
|
-
2. You might be breaking the Rules of Hooks
|
|
170
|
-
3. You might have more than one copy of React in the same app
|
|
171
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Jg(e,t){if(jd)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",de),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
172
|
-
|
|
173
|
-
Previous: %s
|
|
174
|
-
Incoming: %s`,de,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var r=0;r<t.length&&r<e.length;r++)if(!No(e[r],t[r]))return!1;return!0}function Zg(e,t,r,s,u,d){ui=d,dt=t,Ar=e!==null?e._debugHookTypes:null,fi=-1,jd=e!==null&&e.type!==t.type,(Object.prototype.toString.call(r)==="[object AsyncFunction]"||Object.prototype.toString.call(r)==="[object AsyncGeneratorFunction]")&&(d=H(dt),yv.has(d)||(yv.add(d),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.",d===null?"An unknown Component":"<"+d+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,fe.H=e!==null&&e.memoizedState!==null?vv:Ar!==null?VC:bv,fl=d=(t.mode&So)!==ct;var y=uv(r,s,u);if(fl=!1,Hc&&(y=ey(t,r,s,u)),d){Ce(!0);try{y=ey(t,r,s,u)}finally{Ce(!1)}}return ME(e,t),y}function ME(e,t){t._debugHookTypes=Ar,t.dependencies===null?di!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:di}):t.dependencies._debugThenableState=di,fe.H=Hd;var r=en!==null&&en.next!==null;if(ui=0,Ar=de=In=en=dt=null,fi=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Pp=!1,Pd=0,di=null,r)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Bn||(e=e.dependencies,e!==null&&mh(e)&&(Bn=!0)),Ld?(Ld=!1,e=!0):e=!1,e&&(t=H(t)||"Unknown",IC.has(t)||yv.has(t)||(IC.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function ey(e,t,r,s){dt=e;var u=0;do{if(Hc&&(di=null),Pd=0,Hc=!1,u>=lz)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(u+=1,jd=!1,In=en=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}fi=-1,fe.H=FC,d=uv(t,r,s)}while(Hc);return d}function xk(){var e=fe.H,t=e.useState()[0];return t=typeof t.then=="function"?Fu(t):t,e=e.useState()[0],(en!==null?en.memoizedState:null)!==e&&(dt.flags|=1024),t}function ty(){var e=jp!==0;return jp=0,e}function ny(e,t,r){t.updateQueue=e.updateQueue,t.flags=(t.mode&$r)!==ct?t.flags&-402655237:t.flags&-2053,e.lanes&=~r}function oy(e){if(Pp){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pp=!1}ui=0,Ar=In=en=dt=null,fi=-1,de=null,Hc=!1,Pd=jp=0,di=null}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return In===null?dt.memoizedState=In=e:In=In.next=e,In}function Wt(){if(en===null){var e=dt.alternate;e=e!==null?e.memoizedState:null}else e=en.next;var t=In===null?dt.memoizedState:In.next;if(t!==null)In=t,en=e;else{if(e===null)throw dt.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");en=e,e={memoizedState:en.memoizedState,baseState:en.baseState,baseQueue:en.baseQueue,queue:en.queue,next:null},In===null?dt.memoizedState=In=e:In=In.next=e}return In}function Dh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fu(e){var t=Pd;return Pd+=1,di===null&&(di=yE()),e=vE(di,e,t),t=dt,(In===null?t.memoizedState:In.next)===null&&(t=t.alternate,fe.H=t!==null&&t.memoizedState!==null?vv:bv),e}function Vi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Fu(e);if(e.$$typeof===Ea)return mn(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Xs(e){var t=null,r=dt.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var s=dt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Dh(),dt.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0||jd)for(r=t.data[t.index]=Array(e),s=0;s<e;s++)r[s]=HL;else r.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",r.length,e);return t.index++,r}function Vr(e,t){return typeof t=="function"?t(e):t}function ry(e,t,r){var s=Co();if(r!==void 0){var u=r(t);if(fl){Ce(!0);try{r(t)}finally{Ce(!1)}}}else u=t;return s.memoizedState=s.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},s.queue=e,e=e.dispatch=Dk.bind(null,dt,e),[s.memoizedState,e]}function nc(e){var t=Wt();return ay(t,en,e)}function ay(e,t,r){var s=e.queue;if(s===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");s.lastRenderedReducer=r;var u=e.baseQueue,d=s.pending;if(d!==null){if(u!==null){var y=u.next;u.next=d.next,d.next=y}t.baseQueue!==u&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=u=d,s.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var S=y=null,R=null,O=t,W=!1;do{var K=O.lane&-536870913;if(K!==O.lane?(xt&K)===K:(ui&K)===K){var F=O.revertLane;if(F===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),K===sl&&(W=!0);else if((ui&F)===F){O=O.next,F===sl&&(W=!0);continue}else K={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},R===null?(S=R=K,y=d):R=R.next=K,dt.lanes|=F,ls|=F;K=O.action,fl&&r(d,K),d=O.hasEagerState?O.eagerState:r(d,K)}else F={lane:K,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},R===null?(S=R=F,y=d):R=R.next=F,dt.lanes|=K,ls|=K;O=O.next}while(O!==null&&O!==t);if(R===null?y=d:R.next=S,!No(d,e.memoizedState)&&(Bn=!0,W&&(r=kc,r!==null)))throw r;e.memoizedState=d,e.baseState=y,e.baseQueue=R,s.lastRenderedState=d}return u===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Yu(e){var t=Wt(),r=t.queue;if(r===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");r.lastRenderedReducer=e;var s=r.dispatch,u=r.pending,d=t.memoizedState;if(u!==null){r.pending=null;var y=u=u.next;do d=e(d,y.action),y=y.next;while(y!==u);No(d,t.memoizedState)||(Bn=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),r.lastRenderedState=d}return[d,s]}function iy(e,t,r){var s=dt,u=Co();if(Nt){if(r===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var d=r();jc||d===r()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),jc=!0)}else{if(d=t(),jc||(r=t(),No(d,r)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),jc=!0)),tn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(xt&127)!==0||_E(s,t,d)}return u.memoizedState=d,r={value:d,getSnapshot:t},u.queue=r,_h(LE.bind(null,s,r,e),[e]),s.flags|=2048,rc(Dr|ko,{destroy:void 0},kE.bind(null,s,r,d,t),null),d}function Ah(e,t,r){var s=dt,u=Wt(),d=Nt;if(d){if(r===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=r()}else if(r=t(),!jc){var y=t();No(r,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),jc=!0)}(y=!No((en||u).memoizedState,r))&&(u.memoizedState=r,Bn=!0),u=u.queue;var S=LE.bind(null,s,u,e);if(Po(2048,ko,S,[e]),u.getSnapshot!==t||y||In!==null&&In.memoizedState.tag&Dr){if(s.flags|=2048,rc(Dr|ko,{destroy:void 0},kE.bind(null,s,u,r,t),null),tn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d||(ui&127)!==0||_E(s,t,r)}return r}function _E(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=dt.updateQueue,t===null?(t=Dh(),dt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function kE(e,t,r,s){t.value=r,t.getSnapshot=s,UE(t)&&zE(e)}function LE(e,t,r){return r(function(){UE(t)&&(la(2,"updateSyncExternalStore()",e),zE(e))})}function UE(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!No(e,r)}catch{return!0}}function zE(e){var t=bo(e,2);t!==null&&Rn(t,e,2)}function sy(e){var t=Co();if(typeof e=="function"){var r=e;if(e=r(),fl){Ce(!0);try{r()}finally{Ce(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:e},t}function ly(e){e=sy(e);var t=e.queue,r=tx.bind(null,dt,t);return t.dispatch=r,[e.memoizedState,r]}function cy(e){var t=Co();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=xy.bind(null,dt,!0,r),r.dispatch=t,[e,t]}function PE(e,t){var r=Wt();return jE(r,en,e,t)}function jE(e,t,r,s){return e.baseState=r,ay(e,en,typeof s=="function"?s:Vr)}function HE(e,t){var r=Wt();return en!==null?jE(r,en,e,t):(r.baseState=e,[e,r.queue.dispatch])}function Rk(e,t,r,s,u){if(jh(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};fe.T!==null?r(!0):d.isTransition=!1,s(d),r=t.pending,r===null?(d.next=t.pending=d,IE(t,d)):(d.next=r.next,t.pending=r.next=d)}}function IE(e,t){var r=t.action,s=t.payload,u=e.state;if(t.isTransition){var d=fe.T,y={};y._updatedFibers=new Set,fe.T=y;try{var S=r(u,s),R=fe.S;R!==null&&R(y,S),BE(e,t,S)}catch(O){uy(e,t,O)}finally{d!==null&&y.types!==null&&(d.types!==null&&d.types!==y.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."),d.types=y.types),fe.T=d,d===null&&y._updatedFibers&&(e=y._updatedFibers.size,y._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{y=r(u,s),BE(e,t,y)}catch(O){uy(e,t,O)}}function BE(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?(fe.asyncTransitions++,r.then(Ph,Ph),r.then(function(s){VE(e,t,s)},function(s){return uy(e,t,s)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):VE(e,t,r)}function VE(e,t,r){t.status="fulfilled",t.value=r,FE(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,IE(e,r)))}function uy(e,t,r){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=r,FE(t),t=t.next;while(t!==s)}e.action=null}function FE(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function YE(e,t){return t}function oc(e,t){if(Nt){var r=tn.formState;if(r!==null){e:{var s=dt;if(Nt){if(un){t:{for(var u=un,d=Tr;u.nodeType!==8;){if(!d){u=null;break t}if(u=tr(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d===Vv||d===D1?u:null}if(u){un=tr(u.nextSibling),s=u.data===Vv;break e}}Ui(s)}s=!1}s&&(t=r[0])}}return r=Co(),r.memoizedState=r.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:YE,lastRenderedState:t},r.queue=s,r=tx.bind(null,dt,s),s.dispatch=r,s=sy(!1),d=xy.bind(null,dt,!1,s.queue),s=Co(),u={state:t,dispatch:null,action:e,pending:null},s.queue=u,r=Rk.bind(null,dt,u,d,r),u.dispatch=r,s.memoizedState=e,[t,r,!1]}function Nh(e){var t=Wt();return $E(t,en,e)}function $E(e,t,r){if(t=ay(e,t,YE)[0],e=nc(Vr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=Fu(t)}catch(y){throw y===Lc?kp:y}else s=t;t=Wt();var u=t.queue,d=u.dispatch;return r!==t.memoizedState&&(dt.flags|=2048,rc(Dr|ko,{destroy:void 0},Tk.bind(null,u,r),null)),[s,d,e]}function Tk(e,t){e.action=t}function Mh(e){var t=Wt(),r=en;if(r!==null)return $E(t,r,e);Wt(),t=t.memoizedState,r=Wt();var s=r.queue.dispatch;return r.memoizedState=e,[t,s,!1]}function rc(e,t,r,s){return e={tag:e,create:r,deps:s,inst:t,next:null},t=dt.updateQueue,t===null&&(t=Dh(),dt.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(s=r.next,r.next=e,e.next=s,t.lastEffect=e),e}function dy(e){var t=Co();return e={current:e},t.memoizedState=e}function Qs(e,t,r,s){var u=Co();dt.flags|=e,u.memoizedState=rc(Dr|t,{destroy:void 0},r,s===void 0?null:s)}function Po(e,t,r,s){var u=Wt();s=s===void 0?null:s;var d=u.memoizedState.inst;en!==null&&s!==null&&Jg(s,en.memoizedState.deps)?u.memoizedState=rc(t,d,r,s):(dt.flags|=e,u.memoizedState=rc(Dr|t,d,r,s))}function _h(e,t){(dt.mode&$r)!==ct?Qs(276826112,ko,e,t):Qs(8390656,ko,e,t)}function Ck(e){dt.flags|=4;var t=dt.updateQueue;if(t===null)t=Dh(),dt.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function fy(e){var t=Co(),r={impl:e};return t.memoizedState=r,function(){if((It&Kn)!==io)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return r.impl.apply(void 0,arguments)}}function kh(e){var t=Wt().memoizedState;return Ck({ref:t,nextImpl:e}),function(){if((It&Kn)!==io)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function hy(e,t){var r=4194308;return(dt.mode&$r)!==ct&&(r|=134217728),Qs(r,ir,e,t)}function qE(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function py(e,t,r){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),r=r!=null?r.concat([e]):null;var s=4194308;(dt.mode&$r)!==ct&&(s|=134217728),Qs(s,ir,qE.bind(null,t,e),r)}function Lh(e,t,r){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),r=r!=null?r.concat([e]):null,Po(4,ir,qE.bind(null,t,e),r)}function my(e,t){return Co().memoizedState=[e,t===void 0?null:t],e}function Uh(e,t){var r=Wt();t=t===void 0?null:t;var s=r.memoizedState;return t!==null&&Jg(t,s[1])?s[0]:(r.memoizedState=[e,t],e)}function gy(e,t){var r=Co();t=t===void 0?null:t;var s=e();if(fl){Ce(!0);try{e()}finally{Ce(!1)}}return r.memoizedState=[s,t],s}function zh(e,t){var r=Wt();t=t===void 0?null:t;var s=r.memoizedState;if(t!==null&&Jg(t,s[1]))return s[0];if(s=e(),fl){Ce(!0);try{e()}finally{Ce(!1)}}return r.memoizedState=[s,t],s}function yy(e,t){var r=Co();return by(r,e,t)}function GE(e,t){var r=Wt();return QE(r,en.memoizedState,e,t)}function XE(e,t){var r=Wt();return en===null?by(r,e,t):QE(r,en.memoizedState,e,t)}function by(e,t,r){return r===void 0||(ui&1073741824)!==0&&(xt&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=Wx(),dt.lanes|=e,ls|=e,r)}function QE(e,t,r,s){return No(r,t)?r:zc.current!==null?(e=by(e,r,s),No(e,t)||(Bn=!0),e):(ui&42)===0||(ui&1073741824)!==0&&(xt&261930)===0?(Bn=!0,e.memoizedState=r):(e=Wx(),dt.lanes|=e,ls|=e,t)}function Ph(){fe.asyncTransitions--}function WE(e,t,r,s,u){var d=Qt.p;Qt.p=d!==0&&d<Ca?d:Ca;var y=fe.T,S={};S._updatedFibers=new Set,fe.T=S,xy(e,!1,t,r);try{var R=u(),O=fe.S;if(O!==null&&O(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){fe.asyncTransitions++,R.then(Ph,Ph);var W=wk(R,s);$u(e,t,W,er(e))}else $u(e,t,s,er(e))}catch(K){$u(e,t,{then:function(){},status:"rejected",reason:K},er(e))}finally{Qt.p=d,y!==null&&S.types!==null&&(y.types!==null&&y.types!==S.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),y.types=S.types),fe.T=y,y===null&&S._updatedFibers&&(e=S._updatedFibers.size,S._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function vy(e,t,r,s){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var u=KE(e).queue;vk(e),WE(e,u,t,xl,r===null?m:function(){return JE(e),r(s)})}function KE(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:xl,baseState:xl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:xl},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function JE(e){fe.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=KE(e);t.next===null&&(t=e.alternate.memoizedState),$u(e,t.next.queue,{},er(e))}function Sy(){var e=sy(!1);return e=WE.bind(null,dt,e.queue,!0,!1),Co().memoizedState=e,[!1,e]}function ZE(){var e=nc(Vr)[0],t=Wt().memoizedState;return[typeof e=="boolean"?e:Fu(e),t]}function ex(){var e=Yu(Vr)[0],t=Wt().memoizedState;return[typeof e=="boolean"?e:Fu(e),t]}function Ws(){return mn(ef)}function wy(){var e=Co(),t=tn.identifierPrefix;if(Nt){var r=ai,s=ri;r=(s&~(1<<32-Oo(s)-1)).toString(32)+r,t="_"+t+"R_"+r,r=jp++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=sz++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t}function Ey(){return Co().memoizedState=Ok.bind(null,dt)}function Ok(e,t){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var s=er(r),u=ji(s),d=Hi(r,u,s);d!==null&&(la(s,"refresh()",e),Rn(d,r,s),Iu(d,r,s)),e=Vg(),t!=null&&d!==null&&console.error("The seed argument is not enabled outside experimental channels."),u.payload={cache:e};return}r=r.return}}function Dk(e,t,r){var s=arguments;typeof s[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()."),s=er(e);var u={lane:s,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};jh(e)?nx(t,u):(u=Ng(e,t,u,s),u!==null&&(la(s,"dispatch()",e),Rn(u,e,s),ox(u,t,s)))}function tx(e,t,r){var s=arguments;typeof s[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()."),s=er(e),$u(e,t,r,s)&&la(s,"setState()",e)}function $u(e,t,r,s){var u={lane:s,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(jh(e))nx(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null)){var y=fe.H;fe.H=Gr;try{var S=t.lastRenderedState,R=d(S,r);if(u.hasEagerState=!0,u.eagerState=R,No(R,S))return uh(e,t,u,0),tn===null&&ch(),!1}catch{}finally{fe.H=y}}if(r=Ng(e,t,u,s),r!==null)return Rn(r,e,s),ox(r,t,s),!0}return!1}function xy(e,t,r,s){if(fe.T===null&&sl===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."),s={lane:2,revertLane:Zy(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},jh(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Ng(e,r,s,2),t!==null&&(la(2,"setOptimistic()",e),Rn(t,e,2))}function jh(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function nx(e,t){Hc=Pp=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ox(e,t,r){if((r&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,vn(e,r)}}function Ry(e){if(e!==null&&typeof e!="function"){var t=String(e);e1.has(t)||(e1.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Ty(e,t,r,s){var u=e.memoizedState,d=r(s,u);if(e.mode&So){Ce(!0);try{d=r(s,u)}finally{Ce(!1)}}d===void 0&&(t=z(t)||"Component",WC.has(t)||(WC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),u=d==null?u:Dt({},u,d),e.memoizedState=u,e.lanes===0&&(e.updateQueue.baseState=u)}function rx(e,t,r,s,u,d,y){var S=e.stateNode;if(typeof S.shouldComponentUpdate=="function"){if(r=S.shouldComponentUpdate(s,d,y),e.mode&So){Ce(!0);try{r=S.shouldComponentUpdate(s,d,y)}finally{Ce(!1)}}return r===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",z(t)||"Component"),r}return t.prototype&&t.prototype.isPureReactComponent?!Lu(r,s)||!Lu(u,d):!0}function ax(e,t,r,s){var u=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,s),t.state!==u&&(e=H(e)||"Component",$C.has(e)||($C.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Sv.enqueueReplaceState(t,t.state,null))}function Ks(e,t){var r=t;if("ref"in t){r={};for(var s in t)s!=="ref"&&(r[s]=t[s])}if(e=e.defaultProps){r===t&&(r=Dt({},r));for(var u in e)r[u]===void 0&&(r[u]=e[u])}return r}function ix(e){Kb(e),console.warn(`%s
|
|
175
|
-
|
|
176
|
-
%s
|
|
177
|
-
`,Ic?"An error occurred in the <"+Ic+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
178
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function sx(e){var t=Ic?"The above error occurred in the <"+Ic+"> component.":"The above error occurred in one of your React components.",r="React will try to recreate this component tree from scratch using the error boundary you provided, "+((wv||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var s=e.environmentName;e=[`%o
|
|
179
|
-
|
|
180
|
-
%s
|
|
181
|
-
|
|
182
|
-
%s
|
|
183
|
-
`,e,t,r].slice(0),typeof e[0]=="string"?e.splice(0,1,z1+" "+e[0],P1,cm+s+cm,j1):e.splice(0,0,z1,P1,cm+s+cm,j1),e.unshift(console),s=Dz.apply(console.error,e),s()}else console.error(`%o
|
|
184
|
-
|
|
185
|
-
%s
|
|
186
|
-
|
|
187
|
-
%s
|
|
188
|
-
`,e,t,r)}function lx(e){Kb(e)}function Hh(e,t){try{Ic=t.source?H(t.source):null,wv=null;var r=t.value;if(fe.actQueue!==null)fe.thrownErrors.push(r);else{var s=e.onUncaughtError;s(r,{componentStack:t.stack})}}catch(u){setTimeout(function(){throw u})}}function cx(e,t,r){try{Ic=r.source?H(r.source):null,wv=H(t);var s=e.onCaughtError;s(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Cy(e,t,r){return r=ji(r),r.tag=pv,r.payload={element:null},r.callback=function(){xe(t.source,Hh,e,t)},r}function Oy(e){return e=ji(e),e.tag=pv,e}function Dy(e,t,r,s){var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var d=s.value;e.payload=function(){return u(d)},e.callback=function(){nE(r),xe(s.source,cx,t,r,s)}}var y=r.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){nE(r),xe(s.source,cx,t,r,s),typeof u!="function"&&(us===null?us=new Set([this]):us.add(this)),oz(this,s),typeof u=="function"||(r.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",H(r)||"Unknown")})}function Ak(e,t,r,s,u){if(r.flags|=32768,Ta&&Zu(e,u),s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=r.alternate,t!==null&&ec(t,r,u,!0),Nt&&(Da=!0),r=ar.current,r!==null){switch(r.tag){case 31:case 13:return Or===null?Xh():r.alternate===null&&En===pi&&(En=Bp),r.flags&=-257,r.flags|=65536,r.lanes=u,s===Lp?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([s]):t.add(s),Qy(e,s,u)),!1;case 22:return r.flags|=65536,s===Lp?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([s]):r.add(s)),Qy(e,s,u)),!1}throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}return Qy(e,s,u),Xh(),!1}if(Nt)return Da=!0,t=ar.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,s!==ov&&Uu(Wo(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:s}),r))):(s!==ov&&Uu(Wo(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:s}),r)),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,s=Wo(s,r),u=Cy(e.stateNode,s,u),Th(e,u),En!==is&&(En=hl)),!1;var d=Wo(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:s}),r);if($d===null?$d=[d]:$d.push(d),En!==is&&(En=hl),t===null)return!0;s=Wo(s,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=u&-u,r.lanes|=e,e=Cy(r.stateNode,s,e),Th(r,e),!1;case 1:if(t=r.type,d=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(us===null||!us.has(d))))return r.flags|=65536,u&=-u,r.lanes|=u,u=Oy(u),Dy(u,e,r,s),Th(r,u),!1}r=r.return}while(r!==null);return!1}function ho(e,t,r,s){t.child=e===null?LC(t,null,r,s):dl(t,e.child,r,s)}function ux(e,t,r,s,u){r=r.render;var d=t.ref;if("ref"in s){var y={};for(var S in s)S!=="ref"&&(y[S]=s[S])}else y=s;return qs(t),s=Zg(e,t,r,y,d,u),S=ty(),e!==null&&!Bn?(ny(e,t,u),Ka(e,t,u)):(Nt&&S&&zg(t),t.flags|=1,ho(e,t,s,u),t.child)}function dx(e,t,r,s,u){if(e===null){var d=r.type;return typeof d=="function"&&!_g(d)&&d.defaultProps===void 0&&r.compare===null?(r=Vs(d),t.tag=15,t.type=r,Ny(t,d),fx(e,t,r,s,u)):(e=kg(r.type,null,s,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!zy(e,u)){var y=d.memoizedProps;if(r=r.compare,r=r!==null?r:Lu,r(y,s)&&e.ref===t.ref)return Ka(e,t,u)}return t.flags|=1,e=Ga(d,s),e.ref=t.ref,e.return=t,t.child=e}function fx(e,t,r,s,u){if(e!==null){var d=e.memoizedProps;if(Lu(d,s)&&e.ref===t.ref&&t.type===e.type)if(Bn=!1,t.pendingProps=s=d,zy(e,u))(e.flags&131072)!==0&&(Bn=!0);else return t.lanes=e.lanes,Ka(e,t,u)}return Ay(e,t,r,s,u)}function hx(e,t,r,s){var u=s.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Sd,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|r:r,e!==null){for(s=t.child=e.child,u=0;s!==null;)u=u|s.lanes|s.childLanes,s=s.sibling;s=u&~d}else s=0,t.child=null;return px(e,t,d,r,s)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vh(t,d!==null?d.cachePool:null),d!==null?AE(t,d):Qg(t),NE(t);else return s=t.lanes=536870912,px(e,t,d!==null?d.baseLanes|r:r,r,s)}else d!==null?(vh(t,d.cachePool),AE(t,d),Bi(t),t.memoizedState=null):(e!==null&&vh(t,null),Qg(t),Bi(t));return ho(e,t,u,r),t.child}function qu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Sd,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function px(e,t,r,s,u){var d=$g();return d=d===null?null:{parent:jn._currentValue,pool:d},t.memoizedState={baseLanes:r,cachePool:d},e!==null&&vh(t,null),Qg(t),NE(t),e!==null&&ec(e,t,s,!0),t.childLanes=u,null}function Ih(e,t){var r=t.hidden;return r!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
189
|
-
- <Activity %s>
|
|
190
|
-
+ <Activity %s>`,r===!0?"hidden":r===!1?"hidden={false}":"hidden={...}",r?'mode="hidden"':'mode="visible"'),t=Vh({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mx(e,t,r){return dl(t,e.child,null,r),e=Ih(t,t.pendingProps),e.flags|=2,Zo(t),t.memoizedState=null,e}function Nk(e,t,r){var s=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Nt){if(s.mode==="hidden")return e=Ih(t,s),t.lanes=536870912,qu(null,e);if(Kg(t),(e=un)?(r=IR(e,Tr),r=r!==null&&r.data===vl?r:null,r!==null&&(s={dehydrated:r,treeContext:sE(),retryLane:536870912,hydrationErrors:null},t.memoizedState=s,s=aE(r),s.return=t,t.child=s,go=t,un=null)):r=null,r===null)throw hh(t,e),Ui(t);return t.lanes=536870912,null}return Ih(t,s)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(Kg(t),u)if(t.flags&256)t.flags&=-257,t=mx(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(cE(),(r&536870912)!==0&&Gh(t),Bn||ec(e,t,r,!1),u=(r&e.childLanes)!==0,Bn||u){if(s=tn,s!==null&&(y=ln(s,r),y!==0&&y!==d.retryLane))throw d.retryLane=y,bo(e,y),Rn(s,e,y),Ev;Xh(),t=mx(e,t,r)}else e=d.treeContext,un=tr(y.nextSibling),go=t,Nt=!0,es=null,Da=!1,rr=null,Tr=!1,e!==null&&lE(t,e),t=Ih(t,s),t.flags|=4096;return t}return d=e.child,s={mode:s.mode,children:s.children},(r&536870912)!==0&&(r&e.lanes)!==0&&Gh(t),e=Ga(d,s),e.ref=t.ref,t.child=e,e.return=t,e}function Bh(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Ay(e,t,r,s,u){if(r.prototype&&typeof r.prototype.render=="function"){var d=z(r)||"Unknown";t1[d]||(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.",d,d),t1[d]=!0)}return t.mode&So&&qr.recordLegacyContextWarning(t,null),e===null&&(Ny(t,t.type),r.contextTypes&&(d=z(r)||"Unknown",o1[d]||(o1[d]=!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)",d)))),qs(t),r=Zg(e,t,r,s,void 0,u),s=ty(),e!==null&&!Bn?(ny(e,t,u),Ka(e,t,u)):(Nt&&s&&zg(t),t.flags|=1,ho(e,t,r,u),t.child)}function gx(e,t,r,s,u,d){return qs(t),fi=-1,jd=e!==null&&e.type!==t.type,t.updateQueue=null,r=ey(t,s,r,u),ME(e,t),s=ty(),e!==null&&!Bn?(ny(e,t,d),Ka(e,t,d)):(Nt&&s&&zg(t),t.flags|=1,ho(e,t,r,d),t.child)}function yx(e,t,r,s,u){switch(f(t)){case!1:var d=t.stateNode,y=new t.type(t.memoizedProps,d.context).state;d.updater.enqueueSetState(d,y,null);break;case!0:t.flags|=128,t.flags|=65536,d=Error("Simulated error coming from DevTools");var S=u&-u;if(t.lanes|=S,y=tn,y===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");S=Oy(S),Dy(S,y,t,Wo(d,t)),Th(t,S)}if(qs(t),t.stateNode===null){if(y=Zi,d=r.contextType,"contextType"in r&&d!==null&&(d===void 0||d.$$typeof!==Ea)&&!ZC.has(r)&&(ZC.add(r),S=d===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 d!="object"?" However, it is set to a "+typeof d+".":d.$$typeof===xb?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(d).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",z(r)||"Component",S)),typeof d=="object"&&d!==null&&(y=mn(d)),d=new r(s,y),t.mode&So){Ce(!0);try{d=new r(s,y)}finally{Ce(!1)}}if(y=t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Sv,t.stateNode=d,d._reactInternals=t,d._reactInternalInstance=YC,typeof r.getDerivedStateFromProps=="function"&&y===null&&(y=z(r)||"Component",qC.has(y)||(qC.add(y),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.",y,d.state===null?"null":"undefined",y))),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"){var R=S=y=null;if(typeof d.componentWillMount=="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?y="componentWillMount":typeof d.UNSAFE_componentWillMount=="function"&&(y="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?S="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(S="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?R="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(R="UNSAFE_componentWillUpdate"),y!==null||S!==null||R!==null){d=z(r)||"Component";var O=typeof r.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";XC.has(d)||(XC.add(d),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
191
|
-
|
|
192
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
193
|
-
|
|
194
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
195
|
-
https://react.dev/link/unsafe-component-lifecycles`,d,O,y!==null?`
|
|
196
|
-
`+y:"",S!==null?`
|
|
197
|
-
`+S:"",R!==null?`
|
|
198
|
-
`+R:""))}}d=t.stateNode,y=z(r)||"Component",d.render||(r.prototype&&typeof r.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",y):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",y)),!d.getInitialState||d.getInitialState.isReactClassApproved||d.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?",y),d.getDefaultProps&&!d.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.",y),d.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",y),r.childContextTypes&&!JC.has(r)&&(JC.add(r),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",y)),r.contextTypes&&!KC.has(r)&&(KC.add(r),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",y)),typeof d.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.",y),r.prototype&&r.prototype.isPureReactComponent&&typeof d.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.",z(r)||"A pure component"),typeof d.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",y),typeof d.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().",y),typeof d.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",y),typeof d.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",y),S=d.props!==s,d.props!==void 0&&S&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",y),d.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.",y,y),typeof d.getSnapshotBeforeUpdate!="function"||typeof d.componentDidUpdate=="function"||GC.has(r)||(GC.add(r),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",z(r))),typeof d.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",y),typeof d.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",y),typeof r.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",y),(S=d.state)&&(typeof S!="object"||Qn(S))&&console.error("%s.state: must be set to an object or null",y),typeof d.getChildContext=="function"&&typeof r.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",y),d=t.stateNode,d.props=s,d.state=t.memoizedState,d.refs={},Gg(t),y=r.contextType,d.context=typeof y=="object"&&y!==null?mn(y):Zi,d.state===s&&(y=z(r)||"Component",QC.has(y)||(QC.add(y),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.",y))),t.mode&So&&qr.recordLegacyContextWarning(t,d),qr.recordUnsafeLifecycleWarnings(t,d),d.state=t.memoizedState,y=r.getDerivedStateFromProps,typeof y=="function"&&(Ty(t,r,y,s),d.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",H(t)||"Component"),Sv.enqueueReplaceState(d,d.state,null)),Vu(t,s,d,u),Bu(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&$r)!==ct&&(t.flags|=134217728),d=!0}else if(e===null){d=t.stateNode;var W=t.memoizedProps;S=Ks(r,W),d.props=S;var K=d.context;R=r.contextType,y=Zi,typeof R=="object"&&R!==null&&(y=mn(R)),O=r.getDerivedStateFromProps,R=typeof O=="function"||typeof d.getSnapshotBeforeUpdate=="function",W=t.pendingProps!==W,R||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(W||K!==y)&&ax(t,d,s,y),as=!1;var F=t.memoizedState;d.state=F,Vu(t,s,d,u),Bu(),K=t.memoizedState,W||F!==K||as?(typeof O=="function"&&(Ty(t,r,O,s),K=t.memoizedState),(S=as||rx(t,r,S,s,F,K,y))?(R||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&$r)!==ct&&(t.flags|=134217728)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&$r)!==ct&&(t.flags|=134217728),t.memoizedProps=s,t.memoizedState=K),d.props=s,d.state=K,d.context=y,d=S):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&$r)!==ct&&(t.flags|=134217728),d=!1)}else{d=t.stateNode,Xg(e,t),y=t.memoizedProps,R=Ks(r,y),d.props=R,O=t.pendingProps,F=d.context,K=r.contextType,S=Zi,typeof K=="object"&&K!==null&&(S=mn(K)),W=r.getDerivedStateFromProps,(K=typeof W=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==O||F!==S)&&ax(t,d,s,S),as=!1,F=t.memoizedState,d.state=F,Vu(t,s,d,u),Bu();var le=t.memoizedState;y!==O||F!==le||as||e!==null&&e.dependencies!==null&&mh(e.dependencies)?(typeof W=="function"&&(Ty(t,r,W,s),le=t.memoizedState),(R=as||rx(t,r,R,s,F,le,S)||e!==null&&e.dependencies!==null&&mh(e.dependencies))?(K||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,le,S),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,le,S)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=le),d.props=s,d.state=le,d.context=S,d=R):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),d=!1)}if(S=d,Bh(e,t),y=(t.flags&128)!==0,S||y){if(S=t.stateNode,he(t),y&&typeof r.getDerivedStateFromError!="function")r=null,Mo=-1;else if(r=SC(S),t.mode&So){Ce(!0);try{SC(S)}finally{Ce(!1)}}t.flags|=1,e!==null&&y?(t.child=dl(t,e.child,null,u),t.child=dl(t,null,r,u)):ho(e,t,r,u),t.memoizedState=S.state,e=t.child}else e=Ka(e,t,u);return u=t.stateNode,d&&u.props!==s&&(Bc||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",H(t)||"a component"),Bc=!0),e}function bx(e,t,r,s){return $s(),t.flags|=256,ho(e,t,r,s),t.child}function Ny(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
199
|
-
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=z(t)||"Unknown",r1[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),r1[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=z(t)||"Unknown",n1[t]||(console.error("%s: Function components do not support contextType.",t),n1[t]=!0))}function My(e){return{baseLanes:e,cachePool:gE()}}function _y(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Vo),e}function vx(e,t,r){var s,u=t.pendingProps;c(t)&&(t.flags|=128);var d=!1,y=(t.flags&128)!==0;if((s=y)||(s=e!==null&&e.memoizedState===null?!1:(_n.current&zd)!==0),s&&(d=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Nt){if(d?Ii(t):Bi(t),(e=un)?(r=IR(e,Tr),r=r!==null&&r.data!==vl?r:null,r!==null&&(s={dehydrated:r,treeContext:sE(),retryLane:536870912,hydrationErrors:null},t.memoizedState=s,s=aE(r),s.return=t,t.child=s,go=t,un=null)):r=null,r===null)throw hh(t,e),Ui(t);return db(r)?t.lanes=32:t.lanes=536870912,null}var S=u.children;if(u=u.fallback,d){Bi(t);var R=t.mode;return S=Vh({mode:"hidden",children:S},R),u=Fs(u,R,r,null),S.return=t,u.return=t,S.sibling=u,t.child=S,u=t.child,u.memoizedState=My(r),u.childLanes=_y(e,s,r),t.memoizedState=xv,qu(null,u)}return Ii(t),ky(t,S)}var O=e.memoizedState;if(O!==null){var W=O.dehydrated;if(W!==null){if(y)t.flags&256?(Ii(t),t.flags&=-257,t=Ly(e,t,r)):t.memoizedState!==null?(Bi(t),t.child=e.child,t.flags|=128,t=null):(Bi(t),S=u.fallback,R=t.mode,u=Vh({mode:"visible",children:u.children},R),S=Fs(S,R,r,null),S.flags|=2,u.return=t,S.return=t,u.sibling=S,t.child=u,dl(t,e.child,null,r),u=t.child,u.memoizedState=My(r),u.childLanes=_y(e,s,r),t.memoizedState=xv,t=qu(null,u));else if(Ii(t),cE(),(r&536870912)!==0&&Gh(t),db(W)){if(s=W.nextSibling&&W.nextSibling.dataset,s){S=s.dgst;var K=s.msg;R=s.stck;var F=s.cstck}d=K,s=S,u=R,W=F,S=d,R=W,S=Error(S||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),S.stack=u||"",S.digest=s,s=R===void 0?null:R,u={value:S,source:null,stack:s},typeof s=="string"&&nv.set(S,u),Uu(u),t=Ly(e,t,r)}else if(Bn||ec(e,t,r,!1),s=(r&e.childLanes)!==0,Bn||s){if(s=tn,s!==null&&(u=ln(s,r),u!==0&&u!==O.retryLane))throw O.retryLane=u,bo(e,u),Rn(s,e,u),Ev;ub(W)||Xh(),t=Ly(e,t,r)}else ub(W)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,un=tr(W.nextSibling),go=t,Nt=!0,es=null,Da=!1,rr=null,Tr=!1,e!==null&&lE(t,e),t=ky(t,u.children),t.flags|=4096);return t}}return d?(Bi(t),S=u.fallback,R=t.mode,F=e.child,W=F.sibling,u=Ga(F,{mode:"hidden",children:u.children}),u.subtreeFlags=F.subtreeFlags&65011712,W!==null?S=Ga(W,S):(S=Fs(S,R,r,null),S.flags|=2),S.return=t,u.return=t,u.sibling=S,t.child=u,qu(null,u),u=t.child,S=e.child.memoizedState,S===null?S=My(r):(R=S.cachePool,R!==null?(F=jn._currentValue,R=R.parent!==F?{parent:F,pool:F}:R):R=gE(),S={baseLanes:S.baseLanes|r,cachePool:R}),u.memoizedState=S,u.childLanes=_y(e,s,r),t.memoizedState=xv,qu(e.child,u)):(O!==null&&(r&62914560)===r&&(r&e.lanes)!==0&&Gh(t),Ii(t),r=e.child,e=r.sibling,r=Ga(r,{mode:"visible",children:u.children}),r.return=t,r.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=r,t.memoizedState=null,r)}function ky(e,t){return t=Vh({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vh(e,t){return e=v(22,e,null,t),e.lanes=0,e}function Ly(e,t,r){return dl(t,e.child,null,r),e=ky(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sx(e,t,r){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Ig(e.return,t,r)}function Uy(e,t,r,s,u,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:u,treeForkCount:d}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=s,y.tail=r,y.tailMode=u,y.treeForkCount=d)}function wx(e,t,r){var s=t.pendingProps,u=s.revealOrder,d=s.tail,y=s.children,S=_n.current;if((s=(S&zd)!==0)?(S=S&Pc|zd,t.flags|=128):S&=Pc,j(_n,S,t),S=u??"null",u!=="forwards"&&u!=="unstable_legacy-backwards"&&u!=="together"&&u!=="independent"&&!a1[S])if(a1[S]=!0,u==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(u==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof u=="string")switch(u.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',u,u.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',u,u.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',u)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',u);S=d??"null",Ip[S]||(d==null?(u==="forwards"||u==="backwards"||u==="unstable_legacy-backwards")&&(Ip[S]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):d!=="visible"&&d!=="collapsed"&&d!=="hidden"?(Ip[S]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',d)):u!=="forwards"&&u!=="backwards"&&u!=="unstable_legacy-backwards"&&(Ip[S]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',d)));e:if((u==="forwards"||u==="backwards"||u==="unstable_legacy-backwards")&&y!==void 0&&y!==null&&y!==!1)if(Qn(y)){for(S=0;S<y.length;S++)if(!CE(y[S],S))break e}else if(S=_(y),typeof S=="function"){if(S=S.call(y))for(var R=S.next(),O=0;!R.done;R=S.next()){if(!CE(R.value,O))break e;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?',u);if(ho(e,t,y,r),Nt?(Li(),y=wd):y=0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sx(e,r,t);else if(e.tag===19)Sx(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(r=t.child,u=null;r!==null;)e=r.alternate,e!==null&&Ch(e)===null&&(u=r),r=r.sibling;r=u,r===null?(u=t.child,t.child=null):(u=r.sibling,r.sibling=null),Uy(t,!1,u,r,d,y);break;case"backwards":case"unstable_legacy-backwards":for(r=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Ch(e)===null){t.child=u;break}e=u.sibling,u.sibling=r,r=u,u=e}Uy(t,!0,r,null,d,y);break;case"together":Uy(t,!1,null,null,void 0,y);break;default:t.memoizedState=null}return t.child}function Ka(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Mo=-1,ls|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(ec(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,r=Ga(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ga(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function zy(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&mh(e)))}function Mk(e,t,r){switch(t.tag){case 3:Z(t,t.stateNode.containerInfo),zi(t,jn,e.memoizedState.cache),$s();break;case 27:case 5:I(t);break;case 4:Z(t,t.stateNode.containerInfo);break;case 10:zi(t,t.type,t.memoizedProps.value);break;case 12:(r&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var s=t.stateNode;s.effectDuration=-0,s.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Kg(t),null;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Ii(t),t.flags|=128,null):(r&t.child.childLanes)!==0?vx(e,t,r):(Ii(t),e=Ka(e,t,r),e!==null?e.sibling:null);Ii(t);break;case 19:var u=(e.flags&128)!==0;if(s=(r&t.childLanes)!==0,s||(ec(e,t,r,!1),s=(r&t.childLanes)!==0),u){if(s)return wx(e,t,r);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),j(_n,_n.current,t),s)break;return null;case 22:return t.lanes=0,hx(e,t,r,t.pendingProps);case 24:zi(t,jn,e.memoizedState.cache)}return Ka(e,t,r)}function Py(e,t,r){if(t._debugNeedsRemount&&e!==null){r=kg(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),r._debugStack=t._debugStack,r._debugTask=t._debugTask;var s=t.return;if(s===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,r.index=t.index,r.sibling=t.sibling,r.return=t.return,r.ref=t.ref,r._debugInfo=t._debugInfo,t===s.child)s.child=r;else{var u=s.child;if(u===null)throw Error("Expected parent to have a child.");for(;u.sibling!==t;)if(u=u.sibling,u===null)throw Error("Expected to find the previous sibling.");u.sibling=r}return t=s.deletions,t===null?(s.deletions=[e],s.flags|=16):t.push(e),r.flags|=2,r}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Bn=!0;else{if(!zy(e,r)&&(t.flags&128)===0)return Bn=!1,Mk(e,t,r);Bn=(e.flags&131072)!==0}else Bn=!1,(s=Nt)&&(Li(),s=(t.flags&1048576)!==0),s&&(s=t.index,Li(),iE(t,wd,s));switch(t.lanes=0,t.tag){case 16:e:if(s=t.pendingProps,e=Pi(t.elementType),t.type=e,typeof e=="function")_g(e)?(s=Ks(e,s),t.tag=1,t.type=e=Vs(e),t=yx(null,t,e,s,r)):(t.tag=0,Ny(t,e),t.type=e=Vs(e),t=Ay(null,t,e,s,r));else{if(e!=null){if(u=e.$$typeof,u===ld){t.tag=11,t.type=e=Mg(e),t=ux(null,t,e,s,r);break e}else if(u===lp){t.tag=14,t=dx(null,t,e,s,r);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===nr&&(t=" Did you wrap a component in React.lazy() more than once?"),r=z(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+r+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return Ay(e,t,t.type,t.pendingProps,r);case 1:return s=t.type,u=Ks(s,t.pendingProps),yx(e,t,s,u,r);case 3:e:{if(Z(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");s=t.pendingProps;var d=t.memoizedState;u=d.element,Xg(e,t),Vu(t,s,null,r);var y=t.memoizedState;if(s=y.cache,zi(t,jn,s),s!==d.cache&&Bg(t,[jn],r,!0),Bu(),s=y.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=bx(e,t,s,r);break e}else if(s!==u){u=Wo(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Uu(u),t=bx(e,t,s,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(un=tr(e.firstChild),go=t,Nt=!0,es=null,Da=!1,rr=null,Tr=!0,r=LC(t,null,s,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if($s(),s===u){t=Ka(e,t,r);break e}ho(e,t,s,r)}t=t.child}return t;case 26:return Bh(e,t),e===null?(r=qR(t.type,null,t.pendingProps,null))?t.memoizedState=r:Nt||(r=t.type,e=t.pendingProps,s=ne(Gi.current),s=Jh(s).createElement(r),s[mo]=t,s[Do]=e,po(s,r,e),Se(s),t.stateNode=s):t.memoizedState=qR(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return I(t),e===null&&Nt&&(s=ne(Gi.current),u=oe(),s=t.stateNode=YR(t.type,t.pendingProps,s,u,!1),Da||(u=_R(s,t.type,t.pendingProps,u),u!==null&&(Ys(t,0).serverProps=u)),go=t,Tr=!0,u=un,$i(t.type)?(qv=u,un=tr(s.firstChild)):un=u),ho(e,t,t.pendingProps.children,r),Bh(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Nt&&(d=oe(),s=Eg(t.type,d.ancestorInfo),u=un,(y=!u)||(y=vL(u,t.type,t.pendingProps,Tr),y!==null?(t.stateNode=y,Da||(d=_R(y,t.type,t.pendingProps,d),d!==null&&(Ys(t,0).serverProps=d)),go=t,un=tr(y.firstChild),Tr=!1,d=!0):d=!1,y=!d),y&&(s&&hh(t,u),Ui(t))),I(t),u=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,s=d.children,lb(u,d)?s=null:y!==null&&lb(u,y)&&(t.flags|=32),t.memoizedState!==null&&(u=Zg(e,t,xk,null,null,r),ef._currentValue=u),Bh(e,t),ho(e,t,s,r),t.child;case 6:return e===null&&Nt&&(r=t.pendingProps,e=oe(),s=e.ancestorInfo.current,r=s!=null?oh(r,s.tag,e.ancestorInfo.implicitRootScope):!0,e=un,(s=!e)||(s=SL(e,t.pendingProps,Tr),s!==null?(t.stateNode=s,go=t,un=null,s=!0):s=!1,s=!s),s&&(r&&hh(t,e),Ui(t))),null;case 13:return vx(e,t,r);case 4:return Z(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=dl(t,null,s,r):ho(e,t,s,r),t.child;case 11:return ux(e,t,t.type,t.pendingProps,r);case 7:return ho(e,t,t.pendingProps,r),t.child;case 8:return ho(e,t,t.pendingProps.children,r),t.child;case 12:return t.flags|=4,t.flags|=2048,s=t.stateNode,s.effectDuration=-0,s.passiveEffectDuration=-0,ho(e,t,t.pendingProps.children,r),t.child;case 10:return s=t.type,u=t.pendingProps,d=u.value,"value"in u||i1||(i1=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),zi(t,s,d),ho(e,t,u.children,r),t.child;case 9:return u=t.type._context,s=t.pendingProps.children,typeof s!="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."),qs(t),u=mn(u),s=uv(s,u,void 0),t.flags|=1,ho(e,t,s,r),t.child;case 14:return dx(e,t,t.type,t.pendingProps,r);case 15:return fx(e,t,t.type,t.pendingProps,r);case 19:return wx(e,t,r);case 31:return Nk(e,t,r);case 22:return hx(e,t,r,t.pendingProps);case 24:return qs(t),s=mn(jn),e===null?(u=$g(),u===null&&(u=tn,d=Vg(),u.pooledCache=d,Gs(d),d!==null&&(u.pooledCacheLanes|=r),u=d),t.memoizedState={parent:s,cache:u},Gg(t),zi(t,jn,u)):((e.lanes&r)!==0&&(Xg(e,t),Vu(t,null,null,r),Bu()),u=e.memoizedState,d=t.memoizedState,u.parent!==s?(u={parent:s,cache:s},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),zi(t,jn,s)):(s=d.cache,zi(t,jn,s),s!==u.cache&&Bg(t,[jn],r,!0))),ho(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ja(e){e.flags|=4}function jy(e,t,r,s,u){if((t=(e.mode&JU)!==ct)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(eR())e.flags|=8192;else throw ul=Lp,fv}else e.flags&=-16777217}function Ex(e,t){if(t.type!=="stylesheet"||(t.state.loading&Nr)!==El)e.flags&=-16777217;else if(e.flags|=16777216,!KR(t))if(eR())e.flags|=8192;else throw ul=Lp,fv}function Fh(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?on():536870912,e.lanes|=t,gl|=t)}function Gu(e,t){if(!Nt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function an(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,s=0;if(t)if((e.mode&wt)!==ct){for(var u=e.selfBaseDuration,d=e.child;d!==null;)r|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,u+=d.treeBaseDuration,d=d.sibling;e.treeBaseDuration=u}else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,s|=u.subtreeFlags&65011712,s|=u.flags&65011712,u.return=e,u=u.sibling;else if((e.mode&wt)!==ct){u=e.actualDuration,d=e.selfBaseDuration;for(var y=e.child;y!==null;)r|=y.lanes|y.childLanes,s|=y.subtreeFlags,s|=y.flags,u+=y.actualDuration,d+=y.treeBaseDuration,y=y.sibling;e.actualDuration=u,e.treeBaseDuration=d}else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=s,e.childLanes=r,t}function _k(e,t,r){var s=t.pendingProps;switch(Pg(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return an(t),null;case 1:return an(t),null;case 3:return r=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Qa(jn,t),P(t),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Zl(t)?(Hg(),Ja(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jg())),an(t),null;case 26:var u=t.type,d=t.memoizedState;return e===null?(Ja(t),d!==null?(an(t),Ex(t,d)):(an(t),jy(t,u,null,s,r))):d?d!==e.memoizedState?(Ja(t),an(t),Ex(t,d)):(an(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Ja(t),an(t),jy(t,u,e,s,r)),null;case 27:if(se(t),r=ne(Gi.current),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Ja(t);else{if(!s){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return an(t),null}e=oe(),Zl(t)?uE(t):(e=YR(u,s,r,e,!0),t.stateNode=e,Ja(t))}return an(t),null;case 5:if(se(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Ja(t);else{if(!s){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return an(t),null}var y=oe();if(Zl(t))uE(t);else{switch(d=ne(Gi.current),Eg(u,y.ancestorInfo),y=y.context,d=Jh(d),y){case Qc:d=d.createElementNS(vc,u);break;case im:d=d.createElementNS(mp,u);break;default:switch(u){case"svg":d=d.createElementNS(vc,u);break;case"math":d=d.createElementNS(mp,u);break;case"script":d=d.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof s.is=="string"?d.createElement("select",{is:s.is}):d.createElement("select"),s.multiple?d.multiple=!0:s.size&&(d.size=s.size);break;default:d=typeof s.is=="string"?d.createElement(u,{is:s.is}):d.createElement(u),u.indexOf("-")===-1&&(u!==u.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",u),Object.prototype.toString.call(d)!=="[object HTMLUnknownElement]"||Yr.call(N1,u)||(N1[u]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",u)))}}d[mo]=t,d[Do]=s;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(po(d,u,s),u){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Ja(t)}}return an(t),jy(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Ja(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=ne(Gi.current),r=oe(),Zl(t)){if(e=t.stateNode,r=t.memoizedProps,u=!Da,s=null,d=go,d!==null)switch(d.tag){case 3:u&&(u=VR(e,r,s),u!==null&&(Ys(t,0).serverProps=u));break;case 27:case 5:s=d.memoizedProps,u&&(u=VR(e,r,s),u!==null&&(Ys(t,0).serverProps=u))}e[mo]=t,e=!!(e.nodeValue===r||s!==null&&s.suppressHydrationWarning===!0||OR(e.nodeValue,r)),e||Ui(t,!0)}else u=r.ancestorInfo.current,u!=null&&oh(s,u.tag,r.ancestorInfo.implicitRootScope),e=Jh(e).createTextNode(s),e[mo]=t,t.stateNode=e}return an(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(s=Zl(t),r!==null){if(e===null){if(!s)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[mo]=t,an(t),(t.mode&wt)!==ct&&r!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Hg(),$s(),(t.flags&128)===0&&(r=t.memoizedState=null),t.flags|=4,an(t),(t.mode&wt)!==ct&&r!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else r=jg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Zo(t),t):(Zo(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return an(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=s,d=Zl(t),u!==null&&u.dehydrated!==null){if(e===null){if(!d)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");d[mo]=t,an(t),(t.mode&wt)!==ct&&u!==null&&(u=t.child,u!==null&&(t.treeBaseDuration-=u.treeBaseDuration))}else Hg(),$s(),(t.flags&128)===0&&(u=t.memoizedState=null),t.flags|=4,an(t),(t.mode&wt)!==ct&&u!==null&&(u=t.child,u!==null&&(t.treeBaseDuration-=u.treeBaseDuration));u=!1}else u=jg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Zo(t),t):(Zo(t),null)}return Zo(t),(t.flags&128)!==0?(t.lanes=r,(t.mode&wt)!==ct&&ju(t),t):(r=s!==null,e=e!==null&&e.memoizedState!==null,r&&(s=t.child,u=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(u=s.alternate.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==u&&(s.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),Fh(t,t.updateQueue),an(t),(t.mode&wt)!==ct&&r&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return P(t),e===null&&tb(t.stateNode.containerInfo),an(t),null;case 10:return Qa(t.type,t),an(t),null;case 19:if(N(_n,t),s=t.memoizedState,s===null)return an(t),null;if(u=(t.flags&128)!==0,d=s.rendering,d===null)if(u)Gu(s,!1);else{if(En!==pi||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Ch(e),d!==null){for(t.flags|=128,Gu(s,!1),e=d.updateQueue,t.updateQueue=e,Fh(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)rE(r,e),r=r.sibling;return j(_n,_n.current&Pc|zd,t),Nt&&Xa(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&oo()>Gp&&(t.flags|=128,u=!0,Gu(s,!1),t.lanes=4194304)}else{if(!u)if(e=Ch(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Fh(t,e),Gu(s,!0),s.tail===null&&s.tailMode==="hidden"&&!d.alternate&&!Nt)return an(t),null}else 2*oo()-s.renderingStartTime>Gp&&r!==536870912&&(t.flags|=128,u=!0,Gu(s,!1),t.lanes=4194304);s.isBackwards?(d.sibling=t.child,t.child=d):(e=s.last,e!==null?e.sibling=d:t.child=d,s.last=d)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=oo(),e.sibling=null,r=_n.current,r=u?r&Pc|zd:r&Pc,j(_n,r,t),Nt&&Xa(t,s.treeForkCount),e):(an(t),null);case 22:case 23:return Zo(t),Wg(t),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(r&536870912)!==0&&(t.flags&128)===0&&(an(t),t.subtreeFlags&6&&(t.flags|=8192)):an(t),r=t.updateQueue,r!==null&&Fh(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==r&&(t.flags|=2048),e!==null&&N(ll,t),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Qa(jn,t),an(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function kk(e,t){switch(Pg(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&wt)!==ct&&ju(t),t):null;case 3:return Qa(jn,t),P(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return se(t),null;case 31:if(t.memoizedState!==null){if(Zo(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");$s()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&wt)!==ct&&ju(t),t):null;case 13:if(Zo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");$s()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&wt)!==ct&&ju(t),t):null;case 19:return N(_n,t),null;case 4:return P(t),null;case 10:return Qa(t.type,t),null;case 22:case 23:return Zo(t),Wg(t),e!==null&&N(ll,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&wt)!==ct&&ju(t),t):null;case 24:return Qa(jn,t),null;case 25:return null;default:return null}}function xx(e,t){switch(Pg(t),t.tag){case 3:Qa(jn,t),P(t);break;case 26:case 27:case 5:se(t);break;case 4:P(t);break;case 31:t.memoizedState!==null&&Zo(t);break;case 13:Zo(t);break;case 19:N(_n,t);break;case 10:Qa(t.type,t);break;case 22:case 23:Zo(t),Wg(t),e!==null&&N(ll,t);break;case 24:Qa(jn,t)}}function ma(e){return(e.mode&wt)!==ct}function Rx(e,t){ma(e)?(pa(),Xu(t,e),ha()):Xu(t,e)}function Hy(e,t,r){ma(e)?(pa(),ac(r,e,t),ha()):ac(r,e,t)}function Xu(e,t){try{var r=t.updateQueue,s=r!==null?r.lastEffect:null;if(s!==null){var u=s.next;r=u;do{if((r.tag&e)===e&&(s=void 0,(e&_o)!==zp&&(qc=!0),s=xe(t,rz,r),(e&_o)!==zp&&(qc=!1),s!==void 0&&typeof s!="function")){var d=void 0;d=(r.tag&ir)!==0?"useLayoutEffect":(r.tag&_o)!==0?"useInsertionEffect":"useEffect";var y=void 0;y=s===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof s.then=="function"?`
|
|
200
|
-
|
|
201
|
-
It looks like you wrote `+d+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
202
|
-
|
|
203
|
-
`+d+`(() => {
|
|
204
|
-
async function fetchData() {
|
|
205
|
-
// You can await here
|
|
206
|
-
const response = await MyAPI.getData(someId);
|
|
207
|
-
// ...
|
|
208
|
-
}
|
|
209
|
-
fetchData();
|
|
210
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
211
|
-
|
|
212
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+s,xe(t,function(S,R){console.error("%s must not return anything besides a function, which is used for clean-up.%s",S,R)},d,y)}r=r.next}while(r!==u)}}catch(S){Xt(t,t.return,S)}}function ac(e,t,r){try{var s=t.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var d=u.next;s=d;do{if((s.tag&e)===e){var y=s.inst,S=y.destroy;S!==void 0&&(y.destroy=void 0,(e&_o)!==zp&&(qc=!0),u=t,xe(u,az,u,r,S),(e&_o)!==zp&&(qc=!1))}s=s.next}while(s!==d)}}catch(R){Xt(t,t.return,R)}}function Tx(e,t){ma(e)?(pa(),Xu(t,e),ha()):Xu(t,e)}function Iy(e,t,r){ma(e)?(pa(),ac(r,e,t),ha()):ac(r,e,t)}function Cx(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Bc||(r.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(e)||"instance"),r.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(e)||"instance"));try{xe(e,DE,t,r)}catch(s){Xt(e,e.return,s)}}}function Lk(e,t,r){return e.getSnapshotBeforeUpdate(t,r)}function Uk(e,t){var r=t.memoizedProps,s=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Bc||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(e)||"instance"));try{var u=Ks(e.type,r),d=xe(e,Lk,t,u,s);r=s1,d!==void 0||r.has(e.type)||(r.add(e.type),xe(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",H(e))})),t.__reactInternalSnapshotBeforeUpdate=d}catch(y){Xt(e,e.return,y)}}function Ox(e,t,r){r.props=Ks(e.type,e.memoizedProps),r.state=e.memoizedState,ma(e)?(pa(),xe(e,CC,e,t,r),ha()):xe(e,CC,e,t,r)}function zk(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}if(typeof t=="function")if(ma(e))try{pa(),e.refCleanup=t(r)}finally{ha()}else e.refCleanup=t(r);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",H(e)),t.current=r}}function Qu(e,t){try{xe(e,zk,e)}catch(r){Xt(e,t,r)}}function ga(e,t){var r=e.ref,s=e.refCleanup;if(r!==null)if(typeof s=="function")try{if(ma(e))try{pa(),xe(e,s)}finally{ha(e)}else xe(e,s)}catch(u){Xt(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{if(ma(e))try{pa(),xe(e,r,null)}finally{ha(e)}else xe(e,r,null)}catch(u){Xt(e,t,u)}else r.current=null}function Dx(e,t,r,s){var u=e.memoizedProps,d=u.id,y=u.onCommit;u=u.onRender,t=t===null?"mount":"update",Np&&(t="nested-update"),typeof u=="function"&&u(d,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,r),typeof y=="function"&&y(d,t,s,r)}function Pk(e,t,r,s){var u=e.memoizedProps;e=u.id,u=u.onPostCommit,t=t===null?"mount":"update",Np&&(t="nested-update"),typeof u=="function"&&u(e,t,s,r)}function Ax(e){var t=e.type,r=e.memoizedProps,s=e.stateNode;try{xe(e,sL,s,t,r,e)}catch(u){Xt(e,e.return,u)}}function By(e,t,r){try{xe(e,cL,e.stateNode,e.type,r,t,e)}catch(s){Xt(e,e.return,s)}}function Nx(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$i(e.type)||e.tag===4}function Vy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$i(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fy(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(PR(r),(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t)):(PR(r),t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=qa));else if(s!==4&&(s===27&&$i(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Fy(e,t,r),e=e.sibling;e!==null;)Fy(e,t,r),e=e.sibling}function Yh(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(s!==4&&(s===27&&$i(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Yh(e,t,r),e=e.sibling;e!==null;)Yh(e,t,r),e=e.sibling}function jk(e){for(var t,r=e.return;r!==null;){if(Nx(r)){t=r;break}r=r.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,r=Vy(e),Yh(e,r,t);break;case 5:r=t.stateNode,t.flags&32&&(zR(r),t.flags&=-33),t=Vy(e),Yh(e,t,r);break;case 3:case 4:t=t.stateNode.containerInfo,r=Vy(e),Fy(e,r,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Mx(e){var t=e.stateNode,r=e.memoizedProps;try{xe(e,TL,e.type,r,t,e)}catch(s){Xt(e,e.return,s)}}function _x(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function Hk(e,t){if(e=e.containerInfo,Fv=um,e=Xw(e),Tg(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var s=r.getSelection&&r.getSelection();if(s&&s.rangeCount!==0){r=s.anchorNode;var u=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var y=0,S=-1,R=-1,O=0,W=0,K=e,F=null;t:for(;;){for(var le;K!==r||u!==0&&K.nodeType!==3||(S=y+u),K!==d||s!==0&&K.nodeType!==3||(R=y+s),K.nodeType===3&&(y+=K.nodeValue.length),(le=K.firstChild)!==null;)F=K,K=le;for(;;){if(K===e)break t;if(F===r&&++O===u&&(S=y),F===d&&++W===s&&(R=y),(le=K.nextSibling)!==null)break;K=F,F=K.parentNode}K=le}r=S===-1||R===-1?null:{start:S,end:R}}else r=null}r=r||{start:0,end:0}}else r=null;for(Yv={focusedElem:e,selectionRange:r},um=!1,ao=t;ao!==null;)if(t=ao,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ao=e;else for(;ao!==null;){switch(e=t=ao,r=e.alternate,u=e.flags,e.tag){case 0:if((u&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)u=e[r],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:(u&1024)!==0&&r!==null&&Uk(e,r);break;case 3:if((u&1024)!==0){if(e=e.stateNode.containerInfo,r=e.nodeType,r===9)cb(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cb(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,ao=e;break}ao=t.return}}function kx(e,t,r){var s=Ko(),u=ca(),d=da(),y=fa(),S=r.flags;switch(r.tag){case 0:case 11:case 15:ya(e,r),S&4&&Rx(r,ir|Dr);break;case 1:if(ya(e,r),S&4)if(e=r.stateNode,t===null)r.type.defaultProps||"ref"in r.memoizedProps||Bc||(e.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(r)||"instance"),e.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(r)||"instance")),ma(r)?(pa(),xe(r,dv,r,e),ha()):xe(r,dv,r,e);else{var R=Ks(r.type,t.memoizedProps);t=t.memoizedState,r.type.defaultProps||"ref"in r.memoizedProps||Bc||(e.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(r)||"instance"),e.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(r)||"instance")),ma(r)?(pa(),xe(r,xC,r,e,R,t,e.__reactInternalSnapshotBeforeUpdate),ha()):xe(r,xC,r,e,R,t,e.__reactInternalSnapshotBeforeUpdate)}S&64&&Cx(r),S&512&&Qu(r,r.return);break;case 3:if(t=Wa(),ya(e,r),S&64&&(S=r.updateQueue,S!==null)){if(R=null,r.child!==null)switch(r.child.tag){case 27:case 5:R=r.child.stateNode;break;case 1:R=r.child.stateNode}try{xe(r,DE,S,R)}catch(W){Xt(r,r.return,W)}}e.effectDuration+=yh(t);break;case 27:t===null&&S&4&&Mx(r);case 26:case 5:if(ya(e,r),t===null){if(S&4)Ax(r);else if(S&64){e=r.type,t=r.memoizedProps,R=r.stateNode;try{xe(r,lL,R,e,t,r)}catch(W){Xt(r,r.return,W)}}}S&512&&Qu(r,r.return);break;case 12:if(S&4){S=Wa(),ya(e,r),e=r.stateNode,e.effectDuration+=Pu(S);try{xe(r,Dx,r,t,ts,e.effectDuration)}catch(W){Xt(r,r.return,W)}}else ya(e,r);break;case 31:ya(e,r),S&4&&zx(e,r);break;case 13:ya(e,r),S&4&&Px(e,r),S&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(S=Xk.bind(null,r),wL(e,S))));break;case 22:if(S=r.memoizedState!==null||hi,!S){t=t!==null&&t.memoizedState!==null||Vn,R=hi;var O=Vn;hi=S,(Vn=t)&&!O?(ba(e,r,(r.subtreeFlags&8772)!==0),(r.mode&wt)!==ct&&0<=rt&&0<=st&&.05<st-rt&&sh(r,rt,st)):ya(e,r),hi=R,Vn=O}break;case 30:break;default:ya(e,r)}(r.mode&wt)!==ct&&0<=rt&&0<=st&&((Tn||.05<wn)&&sa(r,rt,st,wn,gn),r.alternate===null&&r.return!==null&&r.return.alternate!==null&&.05<st-rt&&(_x(r.return.alternate,r.return)||ia(r,rt,st,"Mount"))),Jo(s),ua(u),gn=d,Tn=y}function Lx(e){var t=e.alternate;t!==null&&(e.alternate=null,Lx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&G(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Za(e,t,r){for(r=r.child;r!==null;)Ux(e,t,r),r=r.sibling}function Ux(e,t,r){if(vo&&typeof vo.onCommitFiberUnmount=="function")try{vo.onCommitFiberUnmount(yc,r)}catch(O){Ra||(Ra=!0,console.error("React instrumentation encountered an error: %o",O))}var s=Ko(),u=ca(),d=da(),y=fa();switch(r.tag){case 26:Vn||ga(r,t),Za(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(e=r.stateNode,e.parentNode.removeChild(e));break;case 27:Vn||ga(r,t);var S=Fn,R=Io;$i(r.type)&&(Fn=r.stateNode,Io=!1),Za(e,t,r),xe(r,rd,r.stateNode),Fn=S,Io=R;break;case 5:Vn||ga(r,t);case 6:if(S=Fn,R=Io,Fn=null,Za(e,t,r),Fn=S,Io=R,Fn!==null)if(Io)try{xe(r,fL,Fn,r.stateNode)}catch(O){Xt(r,t,O)}else try{xe(r,dL,Fn,r.stateNode)}catch(O){Xt(r,t,O)}break;case 18:Fn!==null&&(Io?(e=Fn,jR(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),hc(e)):jR(Fn,r.stateNode));break;case 4:S=Fn,R=Io,Fn=r.stateNode.containerInfo,Io=!0,Za(e,t,r),Fn=S,Io=R;break;case 0:case 11:case 14:case 15:ac(_o,r,t),Vn||Hy(r,t,ir),Za(e,t,r);break;case 1:Vn||(ga(r,t),S=r.stateNode,typeof S.componentWillUnmount=="function"&&Ox(r,t,S)),Za(e,t,r);break;case 21:Za(e,t,r);break;case 22:Vn=(S=Vn)||r.memoizedState!==null,Za(e,t,r),Vn=S;break;default:Za(e,t,r)}(r.mode&wt)!==ct&&0<=rt&&0<=st&&(Tn||.05<wn)&&sa(r,rt,st,wn,gn),Jo(s),ua(u),gn=d,Tn=y}function zx(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{xe(t,xL,e)}catch(r){Xt(t,t.return,r)}}}function Px(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{xe(t,RL,e)}catch(r){Xt(t,t.return,r)}}function Ik(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new l1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new l1),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function $h(e,t){var r=Ik(e);t.forEach(function(s){if(!r.has(s)){if(r.add(s),Ta)if(Vc!==null&&Fc!==null)Zu(Fc,Vc);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var u=Qk.bind(null,e,s);s.then(u,u)}})}function jo(e,t){var r=t.deletions;if(r!==null)for(var s=0;s<r.length;s++){var u=e,d=t,y=r[s],S=Ko(),R=d;e:for(;R!==null;){switch(R.tag){case 27:if($i(R.type)){Fn=R.stateNode,Io=!1;break e}break;case 5:Fn=R.stateNode,Io=!1;break e;case 3:case 4:Fn=R.stateNode.containerInfo,Io=!0;break e}R=R.return}if(Fn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Ux(u,d,y),Fn=null,Io=!1,(y.mode&wt)!==ct&&0<=rt&&0<=st&&.05<st-rt&&ia(y,rt,st,"Unmount"),Jo(S),u=y,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)jx(t,e),t=t.sibling}function jx(e,t){var r=Ko(),s=ca(),u=da(),d=fa(),y=e.alternate,S=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jo(t,e),Ho(e),S&4&&(ac(_o|Dr,e,e.return),Xu(_o|Dr,e),Hy(e,e.return,ir|Dr));break;case 1:if(jo(t,e),Ho(e),S&512&&(Vn||y===null||ga(y,y.return)),S&64&&hi&&(S=e.updateQueue,S!==null&&(y=S.callbacks,y!==null))){var R=S.shared.hiddenCallbacks;S.shared.hiddenCallbacks=R===null?y:R.concat(y)}break;case 26:if(R=Xr,jo(t,e),Ho(e),S&512&&(Vn||y===null||ga(y,y.return)),S&4){var O=y!==null?y.memoizedState:null;if(S=e.memoizedState,y===null)if(S===null)if(e.stateNode===null){e:{S=e.type,y=e.memoizedProps,R=R.ownerDocument||R;t:switch(S){case"title":O=R.getElementsByTagName("title")[0],(!O||O[dd]||O[mo]||O.namespaceURI===vc||O.hasAttribute("itemprop"))&&(O=R.createElement(S),R.head.insertBefore(O,R.querySelector("head > title"))),po(O,S,y),O[mo]=e,Se(O),S=O;break e;case"link":var W=QR("link","href",R).get(S+(y.href||""));if(W){for(var K=0;K<W.length;K++)if(O=W[K],O.getAttribute("href")===(y.href==null||y.href===""?null:y.href)&&O.getAttribute("rel")===(y.rel==null?null:y.rel)&&O.getAttribute("title")===(y.title==null?null:y.title)&&O.getAttribute("crossorigin")===(y.crossOrigin==null?null:y.crossOrigin)){W.splice(K,1);break t}}O=R.createElement(S),po(O,S,y),R.head.appendChild(O);break;case"meta":if(W=QR("meta","content",R).get(S+(y.content||""))){for(K=0;K<W.length;K++)if(O=W[K],Re(y.content,"content"),O.getAttribute("content")===(y.content==null?null:""+y.content)&&O.getAttribute("name")===(y.name==null?null:y.name)&&O.getAttribute("property")===(y.property==null?null:y.property)&&O.getAttribute("http-equiv")===(y.httpEquiv==null?null:y.httpEquiv)&&O.getAttribute("charset")===(y.charSet==null?null:y.charSet)){W.splice(K,1);break t}}O=R.createElement(S),po(O,S,y),R.head.appendChild(O);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+S+'". This is a bug in React.')}O[mo]=e,Se(O),S=O}e.stateNode=S}else WR(R,e.type,e.stateNode);else e.stateNode=XR(R,S,e.memoizedProps);else O!==S?(O===null?y.stateNode!==null&&(y=y.stateNode,y.parentNode.removeChild(y)):O.count--,S===null?WR(R,e.type,e.stateNode):XR(R,S,e.memoizedProps)):S===null&&e.stateNode!==null&&By(e,e.memoizedProps,y.memoizedProps)}break;case 27:jo(t,e),Ho(e),S&512&&(Vn||y===null||ga(y,y.return)),y!==null&&S&4&&By(e,e.memoizedProps,y.memoizedProps);break;case 5:if(jo(t,e),Ho(e),S&512&&(Vn||y===null||ga(y,y.return)),e.flags&32){R=e.stateNode;try{xe(e,zR,R)}catch(Ie){Xt(e,e.return,Ie)}}S&4&&e.stateNode!=null&&(R=e.memoizedProps,By(e,R,y!==null?y.memoizedProps:R)),S&1024&&(Rv=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(jo(t,e),Ho(e),S&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");S=e.memoizedProps,y=y!==null?y.memoizedProps:S,R=e.stateNode;try{xe(e,uL,R,y,S)}catch(Ie){Xt(e,e.return,Ie)}}break;case 3:if(R=Wa(),sm=null,O=Xr,Xr=Zh(t.containerInfo),jo(t,e),Xr=O,Ho(e),S&4&&y!==null&&y.memoizedState.isDehydrated)try{xe(e,EL,t.containerInfo)}catch(Ie){Xt(e,e.return,Ie)}Rv&&(Rv=!1,Hx(e)),t.effectDuration+=yh(R);break;case 4:S=Xr,Xr=Zh(e.stateNode.containerInfo),jo(t,e),Ho(e),Xr=S;break;case 12:S=Wa(),jo(t,e),Ho(e),e.stateNode.effectDuration+=Pu(S);break;case 31:jo(t,e),Ho(e),S&4&&(S=e.updateQueue,S!==null&&(e.updateQueue=null,$h(e,S)));break;case 13:jo(t,e),Ho(e),e.child.flags&8192&&e.memoizedState!==null!=(y!==null&&y.memoizedState!==null)&&(qp=oo()),S&4&&(S=e.updateQueue,S!==null&&(e.updateQueue=null,$h(e,S)));break;case 22:R=e.memoizedState!==null;var F=y!==null&&y.memoizedState!==null,le=hi,ke=Vn;if(hi=le||R,Vn=ke||F,jo(t,e),Vn=ke,hi=le,F&&!R&&!le&&!ke&&(e.mode&wt)!==ct&&0<=rt&&0<=st&&.05<st-rt&&sh(e,rt,st),Ho(e),S&8192)e:for(t=e.stateNode,t._visibility=R?t._visibility&~Sd:t._visibility|Sd,!R||y===null||F||hi||Vn||(Js(e),(e.mode&wt)!==ct&&0<=rt&&0<=st&&.05<st-rt&&ia(e,rt,st,"Disconnect")),y=null,t=e;;){if(t.tag===5||t.tag===26){if(y===null){F=y=t;try{O=F.stateNode,R?xe(F,pL,O):xe(F,yL,F.stateNode,F.memoizedProps)}catch(Ie){Xt(F,F.return,Ie)}}}else if(t.tag===6){if(y===null){F=t;try{W=F.stateNode,R?xe(F,mL,W):xe(F,bL,W,F.memoizedProps)}catch(Ie){Xt(F,F.return,Ie)}}}else if(t.tag===18){if(y===null){F=t;try{K=F.stateNode,R?xe(F,hL,K):xe(F,gL,F.stateNode)}catch(Ie){Xt(F,F.return,Ie)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;y===t&&(y=null),t=t.return}y===t&&(y=null),t.sibling.return=t.return,t=t.sibling}S&4&&(S=e.updateQueue,S!==null&&(y=S.retryQueue,y!==null&&(S.retryQueue=null,$h(e,y))));break;case 19:jo(t,e),Ho(e),S&4&&(S=e.updateQueue,S!==null&&(e.updateQueue=null,$h(e,S)));break;case 30:break;case 21:break;default:jo(t,e),Ho(e)}(e.mode&wt)!==ct&&0<=rt&&0<=st&&((Tn||.05<wn)&&sa(e,rt,st,wn,gn),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<st-rt&&(_x(e.return.alternate,e.return)||ia(e,rt,st,"Mount"))),Jo(r),ua(s),gn=u,Tn=d}function Ho(e){var t=e.flags;if(t&2){try{xe(e,jk,e)}catch(r){Xt(e,e.return,r)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Hx(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ya(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)kx(e,t.alternate,t),t=t.sibling}function Ix(e){var t=Ko(),r=ca(),s=da(),u=fa();switch(e.tag){case 0:case 11:case 14:case 15:Hy(e,e.return,ir),Js(e);break;case 1:ga(e,e.return);var d=e.stateNode;typeof d.componentWillUnmount=="function"&&Ox(e,e.return,d),Js(e);break;case 27:xe(e,rd,e.stateNode);case 26:case 5:ga(e,e.return),Js(e);break;case 22:e.memoizedState===null&&Js(e);break;case 30:Js(e);break;default:Js(e)}(e.mode&wt)!==ct&&0<=rt&&0<=st&&(Tn||.05<wn)&&sa(e,rt,st,wn,gn),Jo(t),ua(r),gn=s,Tn=u}function Js(e){for(e=e.child;e!==null;)Ix(e),e=e.sibling}function Bx(e,t,r,s){var u=Ko(),d=ca(),y=da(),S=fa(),R=r.flags;switch(r.tag){case 0:case 11:case 15:ba(e,r,s),Rx(r,ir);break;case 1:if(ba(e,r,s),t=r.stateNode,typeof t.componentDidMount=="function"&&xe(r,dv,r,t),t=r.updateQueue,t!==null){e=r.stateNode;try{xe(r,Ek,t,e)}catch(O){Xt(r,r.return,O)}}s&&R&64&&Cx(r),Qu(r,r.return);break;case 27:Mx(r);case 26:case 5:ba(e,r,s),s&&t===null&&R&4&&Ax(r),Qu(r,r.return);break;case 12:if(s&&R&4){R=Wa(),ba(e,r,s),s=r.stateNode,s.effectDuration+=Pu(R);try{xe(r,Dx,r,t,ts,s.effectDuration)}catch(O){Xt(r,r.return,O)}}else ba(e,r,s);break;case 31:ba(e,r,s),s&&R&4&&zx(e,r);break;case 13:ba(e,r,s),s&&R&4&&Px(e,r);break;case 22:r.memoizedState===null&&ba(e,r,s),Qu(r,r.return);break;case 30:break;default:ba(e,r,s)}(r.mode&wt)!==ct&&0<=rt&&0<=st&&(Tn||.05<wn)&&sa(r,rt,st,wn,gn),Jo(u),ua(d),gn=y,Tn=S}function ba(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Bx(e,t.alternate,t,r),t=t.sibling}function Yy(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&Gs(e),r!=null&&zu(r))}function $y(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Gs(t),e!=null&&zu(e))}function Fr(e,t,r,s,u){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var d=t.sibling;Vx(e,t,r,s,d!==null?d.actualStartTime:u),t=d}}function Vx(e,t,r,s,u){var d=Ko(),y=ca(),S=da(),R=fa(),O=Ki,W=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&wt)!==ct&&0<t.actualStartTime&&(t.flags&1)!==0&&lh(t,t.actualStartTime,u,Wn,r),Fr(e,t,r,s,u),W&2048&&Tx(t,ko|Dr);break;case 1:(t.mode&wt)!==ct&&0<t.actualStartTime&&((t.flags&128)!==0?Og(t,t.actualStartTime,u,[]):(t.flags&1)!==0&&lh(t,t.actualStartTime,u,Wn,r)),Fr(e,t,r,s,u);break;case 3:var K=Wa(),F=Wn;Wn=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Fr(e,t,r,s,u),Wn=F,W&2048&&(r=null,t.alternate!==null&&(r=t.alternate.memoizedState.cache),s=t.memoizedState.cache,s!==r&&(Gs(s),r!=null&&zu(r))),e.passiveEffectDuration+=yh(K);break;case 12:if(W&2048){W=Wa(),Fr(e,t,r,s,u),e=t.stateNode,e.passiveEffectDuration+=Pu(W);try{xe(t,Pk,t,t.alternate,ts,e.passiveEffectDuration)}catch(le){Xt(t,t.return,le)}}else Fr(e,t,r,s,u);break;case 31:W=Wn,K=t.alternate!==null?t.alternate.memoizedState:null,F=t.memoizedState,K!==null&&F===null?(F=t.deletions,F!==null&&0<F.length&&F[0].tag===18?(Wn=!1,K=K.hydrationErrors,K!==null&&Og(t,t.actualStartTime,u,K)):Wn=!0):Wn=!1,Fr(e,t,r,s,u),Wn=W;break;case 13:W=Wn,K=t.alternate!==null?t.alternate.memoizedState:null,F=t.memoizedState,K===null||K.dehydrated===null||F!==null&&F.dehydrated!==null?Wn=!1:(F=t.deletions,F!==null&&0<F.length&&F[0].tag===18?(Wn=!1,K=K.hydrationErrors,K!==null&&Og(t,t.actualStartTime,u,K)):Wn=!0),Fr(e,t,r,s,u),Wn=W;break;case 23:break;case 22:F=t.stateNode,K=t.alternate,t.memoizedState!==null?F._visibility&oi?Fr(e,t,r,s,u):Wu(e,t,r,s,u):F._visibility&oi?Fr(e,t,r,s,u):(F._visibility|=oi,ic(e,t,r,s,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),u),(t.mode&wt)===ct||Wn||(e=t.actualStartTime,0<=e&&.05<u-e&&sh(t,e,u),0<=rt&&0<=st&&.05<st-rt&&sh(t,rt,st))),W&2048&&Yy(K,t);break;case 24:Fr(e,t,r,s,u),W&2048&&$y(t.alternate,t);break;default:Fr(e,t,r,s,u)}(t.mode&wt)!==ct&&((e=!Wn&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(r=t.actualStartTime,0<=r&&.05<u-r&&ia(t,r,u,"Mount")),0<=rt&&0<=st&&((Tn||.05<wn)&&sa(t,rt,st,wn,gn),e&&.05<st-rt&&ia(t,rt,st,"Mount"))),Jo(d),ua(y),gn=S,Tn=R,Ki=O}function ic(e,t,r,s,u,d){for(u=u&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var y=t.sibling;Fx(e,t,r,s,u,y!==null?y.actualStartTime:d),t=y}}function Fx(e,t,r,s,u,d){var y=Ko(),S=ca(),R=da(),O=fa(),W=Ki;u&&(t.mode&wt)!==ct&&0<t.actualStartTime&&(t.flags&1)!==0&&lh(t,t.actualStartTime,d,Wn,r);var K=t.flags;switch(t.tag){case 0:case 11:case 15:ic(e,t,r,s,u,d),Tx(t,ko);break;case 23:break;case 22:var F=t.stateNode;t.memoizedState!==null?F._visibility&oi?ic(e,t,r,s,u,d):Wu(e,t,r,s,d):(F._visibility|=oi,ic(e,t,r,s,u,d)),u&&K&2048&&Yy(t.alternate,t);break;case 24:ic(e,t,r,s,u,d),u&&K&2048&&$y(t.alternate,t);break;default:ic(e,t,r,s,u,d)}(t.mode&wt)!==ct&&0<=rt&&0<=st&&(Tn||.05<wn)&&sa(t,rt,st,wn,gn),Jo(y),ua(S),gn=R,Tn=O,Ki=W}function Wu(e,t,r,s,u){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var d=t.child;d!==null;){t=d.sibling;var y=e,S=r,R=s,O=t!==null?t.actualStartTime:u,W=Ki;(d.mode&wt)!==ct&&0<d.actualStartTime&&(d.flags&1)!==0&&lh(d,d.actualStartTime,O,Wn,S);var K=d.flags;switch(d.tag){case 22:Wu(y,d,S,R,O),K&2048&&Yy(d.alternate,d);break;case 24:Wu(y,d,S,R,O),K&2048&&$y(d.alternate,d);break;default:Wu(y,d,S,R,O)}Ki=W,d=t}}function sc(e,t,r){if(e.subtreeFlags&Id)for(e=e.child;e!==null;)Yx(e,t,r),e=e.sibling}function Yx(e,t,r){switch(e.tag){case 26:sc(e,t,r),e.flags&Id&&e.memoizedState!==null&&DL(r,Xr,e.memoizedState,e.memoizedProps);break;case 5:sc(e,t,r);break;case 3:case 4:var s=Xr;Xr=Zh(e.stateNode.containerInfo),sc(e,t,r),Xr=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Id,Id=16777216,sc(e,t,r),Id=s):sc(e,t,r));break;default:sc(e,t,r)}}function $x(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ku(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var s=t[r],u=Ko();ao=s,Xx(s,e),(s.mode&wt)!==ct&&0<=rt&&0<=st&&.05<st-rt&&ia(s,rt,st,"Unmount"),Jo(u)}$x(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qx(e),e=e.sibling}function qx(e){var t=Ko(),r=ca(),s=da(),u=fa();switch(e.tag){case 0:case 11:case 15:Ku(e),e.flags&2048&&Iy(e,e.return,ko|Dr);break;case 3:var d=Wa();Ku(e),e.stateNode.passiveEffectDuration+=yh(d);break;case 12:d=Wa(),Ku(e),e.stateNode.passiveEffectDuration+=Pu(d);break;case 22:d=e.stateNode,e.memoizedState!==null&&d._visibility&oi&&(e.return===null||e.return.tag!==13)?(d._visibility&=~oi,qh(e),(e.mode&wt)!==ct&&0<=rt&&0<=st&&.05<st-rt&&ia(e,rt,st,"Disconnect")):Ku(e);break;default:Ku(e)}(e.mode&wt)!==ct&&0<=rt&&0<=st&&(Tn||.05<wn)&&sa(e,rt,st,wn,gn),Jo(t),ua(r),Tn=u,gn=s}function qh(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var s=t[r],u=Ko();ao=s,Xx(s,e),(s.mode&wt)!==ct&&0<=rt&&0<=st&&.05<st-rt&&ia(s,rt,st,"Unmount"),Jo(u)}$x(e)}for(e=e.child;e!==null;)Gx(e),e=e.sibling}function Gx(e){var t=Ko(),r=ca(),s=da(),u=fa();switch(e.tag){case 0:case 11:case 15:Iy(e,e.return,ko),qh(e);break;case 22:var d=e.stateNode;d._visibility&oi&&(d._visibility&=~oi,qh(e));break;default:qh(e)}(e.mode&wt)!==ct&&0<=rt&&0<=st&&(Tn||.05<wn)&&sa(e,rt,st,wn,gn),Jo(t),ua(r),Tn=u,gn=s}function Xx(e,t){for(;ao!==null;){var r=ao,s=r,u=t,d=Ko(),y=ca(),S=da(),R=fa();switch(s.tag){case 0:case 11:case 15:Iy(s,u,ko);break;case 23:case 22:s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool,u!=null&&Gs(u));break;case 24:zu(s.memoizedState.cache)}if((s.mode&wt)!==ct&&0<=rt&&0<=st&&(Tn||.05<wn)&&sa(s,rt,st,wn,gn),Jo(d),ua(y),Tn=R,gn=S,s=r.child,s!==null)s.return=r,ao=s;else e:for(r=e;ao!==null;){if(s=ao,d=s.sibling,y=s.return,Lx(s),s===r){ao=null;break e}if(d!==null){d.return=y,ao=d;break e}ao=y}}}function Bk(){uz.forEach(function(e){return e()})}function Qx(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||fe.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function er(e){if((It&Kn)!==io&&xt!==0)return xt&-xt;var t=fe.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Zy()):Un()}function Wx(){if(Vo===0)if((xt&536870912)===0||Nt){var e=dp;dp<<=1,(dp&3932160)===0&&(dp=262144),Vo=e}else Vo=536870912;return e=ar.current,e!==null&&(e.flags|=32),Vo}function Rn(e,t,r){if(qc&&console.error("useInsertionEffect must not schedule updates."),Uv&&(Wp=!0),(e===tn&&(Kt===pl||Kt===ml)||e.cancelPendingCommit!==null)&&(cc(e,0),Fi(e,xt,Vo,!1)),bt(e,r),(It&Kn)!==io&&e===tn){if(xa)switch(t.tag){case 0:case 11:case 15:e=Tt&&H(Tt)||"Unknown",x1.has(e)||(x1.add(e),t=H(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:E1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),E1=!0)}}else Ta&&hn(e,t,r),Kk(t),e===tn&&((It&Kn)===io&&(cs|=r),En===is&&Fi(e,xt,Vo,!1)),va(e)}function Kx(e,t,r){if((It&(Kn|sr))!==io)throw Error("Should not already be working.");if(xt!==0&&Tt!==null){var s=Tt,u=oo();switch(mC){case Fd:case pl:var d=Cd;cn&&((s=s._debugTask)?s.run(console.timeStamp.bind(console,"Suspended",d,u,Sr,void 0,"primary-light")):console.timeStamp("Suspended",d,u,Sr,void 0,"primary-light"));break;case ml:d=Cd,cn&&((s=s._debugTask)?s.run(console.timeStamp.bind(console,"Action",d,u,Sr,void 0,"primary-light")):console.timeStamp("Action",d,u,Sr,void 0,"primary-light"));break;default:cn&&(s=u-Cd,3>s||console.timeStamp("Blocked",Cd,u,Sr,void 0,5>s?"primary-light":10>s?"primary":100>s?"primary-dark":"error"))}}d=(r=!r&&(t&127)===0&&(t&e.expiredLanes)===0||ht(e,t))?Fk(e,t):Gy(e,t,!0);var y=r;do{if(d===pi){Yc&&!r&&Fi(e,t,0,!1),t=Kt,Cd=Hn(),mC=t;break}else{if(s=oo(),u=e.current.alternate,y&&!Vk(u)){Br(t),u=ro,d=s,!cn||d<=u||(Dn?Dn.run(console.timeStamp.bind(console,"Teared Render",u,d,Ht,Lt,"error")):console.timeStamp("Teared Render",u,d,Ht,Lt,"error")),Zs(t,s),d=Gy(e,t,!1),y=!1;continue}if(d===hl){if(y=t,e.errorRecoveryDisabledLanes&y)var S=0;else S=e.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){Br(t),Dg(ro,s,t,Dn),Zs(t,s),t=S;e:{s=e,d=y,y=$d;var R=s.current.memoizedState.isDehydrated;if(R&&(cc(s,S).flags|=256),S=Gy(s,S,!1),S!==hl){if(Ov&&!R){s.errorRecoveryDisabledLanes|=d,cs|=d,d=is;break e}s=Lo,Lo=y,s!==null&&(Lo===null?Lo=s:Lo.push.apply(Lo,s))}d=S}if(y=!1,d!==hl)continue;s=oo()}}if(d===Vd){Br(t),Dg(ro,s,t,Dn),Zs(t,s),cc(e,0),Fi(e,t,0,!0);break}e:{switch(r=e,d){case pi:case Vd:throw Error("Root did not complete. This is a bug in React.");case is:if((t&4194048)!==t)break;case Vp:Br(t),Kw(ro,s,t,Dn),Zs(t,s),u=t,(u&127)!==0?Op=s:(u&4194048)!==0&&(Dp=s),Fi(r,t,Vo,!ss);break e;case hl:Lo=null;break;case Bp:case c1:break;default:throw Error("Unknown root exit status.")}if(fe.actQueue!==null)Xy(r,u,t,Lo,qd,$p,Vo,cs,gl,d,null,null,ro,s);else{if((t&62914560)===t&&(y=qp+f1-oo(),10<y)){if(Fi(r,t,Vo,!ss),yt(r,0,!0)!==0)break e;Qr=t,r.timeoutHandle=M1(Jx.bind(null,r,u,Lo,qd,$p,t,Vo,cs,gl,ss,d,"Throttled",ro,s),y);break e}Jx(r,u,Lo,qd,$p,t,Vo,cs,gl,ss,d,null,ro,s)}}}break}while(!0);va(e)}function Jx(e,t,r,s,u,d,y,S,R,O,W,K,F,le){e.timeoutHandle=wl;var ke=t.subtreeFlags,Ie=null;if((ke&8192||(ke&16785408)===16785408)&&(Ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qa},Yx(t,d,Ie),ke=(d&62914560)===d?qp-oo():(d&4194048)===d?d1-oo():0,ke=AL(Ie,ke),ke!==null)){Qr=d,e.cancelPendingCommit=ke(Xy.bind(null,e,t,d,r,s,u,y,S,R,W,Ie,Ie.waitingForViewTransition?"Waiting for the previous Animation":0<Ie.count?0<Ie.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Ie.imgCount===1?"Suspended on an Image":0<Ie.imgCount?"Suspended on Images":null,F,le)),Fi(e,d,y,!O);return}Xy(e,t,d,r,s,u,y,S,R,W,Ie,K,F,le)}function Vk(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var s=0;s<r.length;s++){var u=r[s],d=u.getSnapshot;u=u.value;try{if(!No(d(),u))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fi(e,t,r,s){t&=~Dv,t&=~cs,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var u=t;0<u;){var d=31-Oo(u),y=1<<d;s[d]=-1,u&=~y}r!==0&&Ft(e,r,t)}function lc(){return(It&(Kn|sr))===io?(ed(0),!1):!0}function qy(){if(Tt!==null){if(Kt===Bo)var e=Tt.return;else e=Tt,ph(),oy(e),Uc=null,Ud=0,e=Tt;for(;e!==null;)xx(e.alternate,e),e=e.return;Tt=null}}function Zs(e,t){(e&127)!==0&&(rl=t),(e&4194048)!==0&&(li=t),(e&62914560)!==0&&(hC=t),(e&2080374784)!==0&&(pC=t)}function cc(e,t){cn&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Lt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Lt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Lt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Lt,"primary-light"));var r=ro;if(ro=Hn(),xt!==0&&0<r){if(Br(xt),En===Bp||En===is)Kw(r,ro,t,Dn);else{var s=ro,u=Dn;if(cn&&!(s<=r)){var d=(t&738197653)===t?"tertiary-dark":"primary-dark",y=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";u?u.run(console.timeStamp.bind(console,y,r,s,Ht,Lt,d)):console.timeStamp(y,r,s,Ht,Lt,d)}}Zs(xt,ro)}if(r=Dn,Dn=null,(t&127)!==0){Dn=xd,u=0<=Aa&&Aa<rl?rl:Aa,s=0<=al&&al<rl?rl:al,d=0<=s?s:0<=u?u:ro,0<=Op?(Br(2),Jw(Op,d,t,r)):Ap&127,r=u;var S=s,R=Rd,O=0<_c,W=ns===Ed,K=ns===Cp;if(u=ro,s=xd,d=iv,y=sv,cn){if(Ht="Blocking",0<r?r>u&&(r=u):r=u,0<S?S>r&&(S=r):S=r,R!==null&&r>S){var F=O?"secondary-light":"warning";s?s.run(console.timeStamp.bind(console,O?"Consecutive":"Event: "+R,S,r,Ht,Lt,F)):console.timeStamp(O?"Consecutive":"Event: "+R,S,r,Ht,Lt,F)}u>r&&(S=W?"error":(t&738197653)===t?"tertiary-light":"primary-light",W=K?"Promise Resolved":W?"Cascading Update":5<u-r?"Update Blocked":"Update",K=[],y!=null&&K.push(["Component name",y]),d!=null&&K.push(["Method name",d]),r={start:r,end:u,detail:{devtools:{properties:K,track:Ht,trackGroup:Lt,color:S}}},s?s.run(performance.measure.bind(performance,W,r)):performance.measure(W,r))}Aa=-1.1,ns=0,sv=iv=null,Op=-1.1,_c=al,al=-1.1,rl=Hn()}if((t&4194048)!==0&&(Dn=Td,u=0<=ci&&ci<li?li:ci,r=0<=Cr&&Cr<li?li:Cr,s=0<=os&&os<li?li:os,d=0<=s?s:0<=r?r:ro,0<=Dp?(Br(256),Jw(Dp,d,t,Dn)):Ap&4194048,K=s,S=il,R=0<rs,O=lv===Cp,d=ro,s=Td,y=dC,W=fC,cn&&(Ht="Transition",0<r?r>d&&(r=d):r=d,0<u?u>r&&(u=r):u=r,0<K?K>u&&(K=u):K=u,u>K&&S!==null&&(F=R?"secondary-light":"warning",s?s.run(console.timeStamp.bind(console,R?"Consecutive":"Event: "+S,K,u,Ht,Lt,F)):console.timeStamp(R?"Consecutive":"Event: "+S,K,u,Ht,Lt,F)),r>u&&(s?s.run(console.timeStamp.bind(console,"Action",u,r,Ht,Lt,"primary-dark")):console.timeStamp("Action",u,r,Ht,Lt,"primary-dark")),d>r&&(u=O?"Promise Resolved":5<d-r?"Update Blocked":"Update",K=[],W!=null&&K.push(["Component name",W]),y!=null&&K.push(["Method name",y]),r={start:r,end:d,detail:{devtools:{properties:K,track:Ht,trackGroup:Lt,color:"primary-light"}}},s?s.run(performance.measure.bind(performance,u,r)):performance.measure(u,r))),Cr=ci=-1.1,lv=0,Dp=-1.1,rs=os,os=-1.1,li=Hn()),(t&62914560)!==0&&(Ap&62914560)!==0&&(Br(4194304),Ag(hC,ro)),(t&2080374784)!==0&&(Ap&2080374784)!==0&&(Br(268435456),Ag(pC,ro)),r=e.timeoutHandle,r!==wl&&(e.timeoutHandle=wl,xz(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Qr=0,qy(),tn=e,Tt=r=Ga(e.current,null),xt=t,Kt=Bo,lr=null,ss=!1,Yc=ht(e,t),Ov=!1,En=pi,gl=Vo=Dv=cs=ls=0,Lo=$d=null,$p=!1,(t&8)!==0&&(t|=t&32),s=e.entangledLanes,s!==0)for(e=e.entanglements,s&=t;0<s;)u=31-Oo(s),d=1<<u,t|=e[u],s&=~d;return Ma=t,ch(),e=aC(),1e3<e-rC&&(fe.recentlyCreatedOwnerStacks=0,rC=e),qr.discardPendingWarnings(),r}function Zx(e,t){dt=null,fe.H=Hd,fe.getCurrentStack=null,xa=!1,or=null,t===Lc||t===kp?(t=SE(),Kt=Fd):t===fv?(t=SE(),Kt=u1):Kt=t===Ev?Cv:t!==null&&typeof t=="object"&&typeof t.then=="function"?Yd:Fp,lr=t;var r=Tt;r===null?(En=Vd,Hh(e,Wo(t,e.current))):r.mode&wt&&Yg(r)}function eR(){var e=ar.current;return e===null?!0:(xt&4194048)===xt?Or===null:(xt&62914560)===xt||(xt&536870912)!==0?e===Or:!1}function tR(){var e=fe.H;return fe.H=Hd,e===null?Hd:e}function nR(){var e=fe.A;return fe.A=cz,e}function Gh(e){Dn===null&&(Dn=e._debugTask==null?null:e._debugTask)}function Xh(){En=is,ss||(xt&4194048)!==xt&&ar.current!==null||(Yc=!0),(ls&134217727)===0&&(cs&134217727)===0||tn===null||Fi(tn,xt,Vo,!1)}function Gy(e,t,r){var s=It;It|=Kn;var u=tR(),d=nR();if(tn!==e||xt!==t){if(Ta){var y=e.memoizedUpdaters;0<y.size&&(Zu(e,xt),y.clear()),co(e,t)}qd=null,cc(e,t)}t=!1,y=En;e:do try{if(Kt!==Bo&&Tt!==null){var S=Tt,R=lr;switch(Kt){case Cv:qy(),y=Vp;break e;case Fd:case pl:case ml:case Yd:ar.current===null&&(t=!0);var O=Kt;if(Kt=Bo,lr=null,uc(e,S,R,O),r&&Yc){y=pi;break e}break;default:O=Kt,Kt=Bo,lr=null,uc(e,S,R,O)}}oR(),y=En;break}catch(W){Zx(e,W)}while(!0);return t&&e.shellSuspendCounter++,ph(),It=s,fe.H=u,fe.A=d,Tt===null&&(tn=null,xt=0,ch()),y}function oR(){for(;Tt!==null;)rR(Tt)}function Fk(e,t){var r=It;It|=Kn;var s=tR(),u=nR();if(tn!==e||xt!==t){if(Ta){var d=e.memoizedUpdaters;0<d.size&&(Zu(e,xt),d.clear()),co(e,t)}qd=null,Gp=oo()+h1,cc(e,t)}else Yc=ht(e,t);e:do try{if(Kt!==Bo&&Tt!==null)t:switch(t=Tt,d=lr,Kt){case Fp:Kt=Bo,lr=null,uc(e,t,d,Fp);break;case pl:case ml:if(bE(d)){Kt=Bo,lr=null,aR(t);break}t=function(){Kt!==pl&&Kt!==ml||tn!==e||(Kt=Yp),va(e)},d.then(t,t);break e;case Fd:Kt=Yp;break e;case u1:Kt=Tv;break e;case Yp:bE(d)?(Kt=Bo,lr=null,aR(t)):(Kt=Bo,lr=null,uc(e,t,d,Yp));break;case Tv:var y=null;switch(Tt.tag){case 26:y=Tt.memoizedState;case 5:case 27:var S=Tt;if(y?KR(y):S.stateNode.complete){Kt=Bo,lr=null;var R=S.sibling;if(R!==null)Tt=R;else{var O=S.return;O!==null?(Tt=O,Qh(O)):Tt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Kt=Bo,lr=null,uc(e,t,d,Tv);break;case Yd:Kt=Bo,lr=null,uc(e,t,d,Yd);break;case Cv:qy(),En=Vp;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}fe.actQueue!==null?oR():Yk();break}catch(W){Zx(e,W)}while(!0);return ph(),fe.H=s,fe.A=u,It=r,Tt!==null?pi:(tn=null,xt=0,ch(),En)}function Yk(){for(;Tt!==null&&!FL();)rR(Tt)}function rR(e){var t=e.alternate;(e.mode&wt)!==ct?(Fg(e),t=xe(e,Py,t,e,Ma),Yg(e)):t=xe(e,Py,t,e,Ma),e.memoizedProps=e.pendingProps,t===null?Qh(e):Tt=t}function aR(e){var t=xe(e,$k,e);e.memoizedProps=e.pendingProps,t===null?Qh(e):Tt=t}function $k(e){var t=e.alternate,r=(e.mode&wt)!==ct;switch(r&&Fg(e),e.tag){case 15:case 0:t=gx(t,e,e.pendingProps,e.type,void 0,xt);break;case 11:t=gx(t,e,e.pendingProps,e.type.render,e.ref,xt);break;case 5:oy(e);default:xx(t,e),e=Tt=rE(e,Ma),t=Py(t,e,Ma)}return r&&Yg(e),t}function uc(e,t,r,s){ph(),oy(t),Uc=null,Ud=0;var u=t.return;try{if(Ak(e,u,t,r,xt)){En=Vd,Hh(e,Wo(r,e.current)),Tt=null;return}}catch(d){if(u!==null)throw Tt=u,d;En=Vd,Hh(e,Wo(r,e.current)),Tt=null;return}t.flags&32768?(Nt||s===Fp?e=!0:Yc||(xt&536870912)!==0?e=!1:(ss=e=!0,(s===pl||s===ml||s===Fd||s===Yd)&&(s=ar.current,s!==null&&s.tag===13&&(s.flags|=16384))),iR(t,e)):Qh(t)}function Qh(e){var t=e;do{if((t.flags&32768)!==0){iR(t,ss);return}var r=t.alternate;if(e=t.return,Fg(t),r=xe(t,_k,r,t,Ma),(t.mode&wt)!==ct&&hE(t),r!==null){Tt=r;return}if(t=t.sibling,t!==null){Tt=t;return}Tt=t=e}while(t!==null);En===pi&&(En=c1)}function iR(e,t){do{var r=kk(e.alternate,e);if(r!==null){r.flags&=32767,Tt=r;return}if((e.mode&wt)!==ct){hE(e),r=e.actualDuration;for(var s=e.child;s!==null;)r+=s.actualDuration,s=s.sibling;e.actualDuration=r}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Tt=e;return}Tt=e=r}while(e!==null);En=Vp,Tt=null}function Xy(e,t,r,s,u,d,y,S,R,O,W,K,F,le){e.cancelPendingCommit=null;do Ju();while(Yn!==ds);if(qr.flushLegacyContextWarning(),qr.flushPendingUnsafeLifecycleWarnings(),(It&(Kn|sr))!==io)throw Error("Should not already be working.");if(Br(r),O===hl?Dg(F,le,r,Dn):s!==null?gk(F,le,r,s,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Dn):mk(F,le,r,Dn),t!==null){if(r===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(d=t.lanes|t.childLanes,d|=tv,jt(e,r,d,y,S,R),e===tn&&(Tt=tn=null,xt=0),$c=t,fs=e,Qr=r,Mv=d,kv=u,v1=s,_v=le,S1=K,Wr=Xp,w1=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Wk(gc,function(){return Jd=window.event,Wr===Xp&&(Wr=Nv),dR(),null})):(e.callbackNode=null,e.callbackPriority=0),si=null,ts=Hn(),K!==null&&yk(le,ts,K,Dn),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=fe.T,fe.T=null,u=Qt.p,Qt.p=vr,y=It,It|=sr;try{Hk(e,t,r)}finally{It=y,Qt.p=u,fe.T=s}}Yn=m1,sR(),lR(),cR()}}function sR(){if(Yn===m1){Yn=ds;var e=fs,t=$c,r=Qr,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=fe.T,fe.T=null;var u=Qt.p;Qt.p=vr;var d=It;It|=sr;try{Vc=r,Fc=e,bh(),jx(t,e),Fc=Vc=null,r=Yv;var y=Xw(e.containerInfo),S=r.focusedElem,R=r.selectionRange;if(y!==S&&S&&S.ownerDocument&&Gw(S.ownerDocument.documentElement,S)){if(R!==null&&Tg(S)){var O=R.start,W=R.end;if(W===void 0&&(W=O),"selectionStart"in S)S.selectionStart=O,S.selectionEnd=Math.min(W,S.value.length);else{var K=S.ownerDocument||document,F=K&&K.defaultView||window;if(F.getSelection){var le=F.getSelection(),ke=S.textContent.length,Ie=Math.min(R.start,ke),sn=R.end===void 0?Ie:Math.min(R.end,ke);!le.extend&&Ie>sn&&(y=sn,sn=Ie,Ie=y);var Ut=qw(S,Ie),V=qw(S,sn);if(Ut&&V&&(le.rangeCount!==1||le.anchorNode!==Ut.node||le.anchorOffset!==Ut.offset||le.focusNode!==V.node||le.focusOffset!==V.offset)){var q=K.createRange();q.setStart(Ut.node,Ut.offset),le.removeAllRanges(),Ie>sn?(le.addRange(q),le.extend(V.node,V.offset)):(q.setEnd(V.node,V.offset),le.addRange(q))}}}}for(K=[],le=S;le=le.parentNode;)le.nodeType===1&&K.push({element:le,left:le.scrollLeft,top:le.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<K.length;S++){var X=K[S];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}um=!!Fv,Yv=Fv=null}finally{It=d,Qt.p=u,fe.T=s}}e.current=t,Yn=g1}}function lR(){if(Yn===g1){Yn=ds;var e=w1;if(e!==null){ts=Hn();var t=ii,r=ts;!cn||r<=t||console.timeStamp(e,t,r,Ht,Lt,"secondary-light")}e=fs,t=$c,r=Qr;var s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=fe.T,fe.T=null;var u=Qt.p;Qt.p=vr;var d=It;It|=sr;try{Vc=r,Fc=e,bh(),kx(e,t.alternate,t),Fc=Vc=null}finally{It=d,Qt.p=u,fe.T=s}}e=_v,t=S1,ii=Hn(),e=t===null?e:ts,t=ii,r=Wr===Av,s=Dn,si!==null?Zw(e,t,si,!1,s):!cn||t<=e||(s?s.run(console.timeStamp.bind(console,r?"Commit Interrupted View Transition":"Commit",e,t,Ht,Lt,r?"error":"secondary-dark")):console.timeStamp(r?"Commit Interrupted View Transition":"Commit",e,t,Ht,Lt,r?"error":"secondary-dark")),Yn=y1}}function cR(){if(Yn===b1||Yn===y1){if(Yn===b1){var e=ii;ii=Hn();var t=ii,r=Wr===Av;!cn||t<=e||console.timeStamp(r?"Interrupted View Transition":"Starting Animation",e,t,Ht,Lt,r?" error":"secondary-light"),Wr!==Av&&(Wr=p1)}Yn=ds,YL(),e=fs;var s=$c;t=Qr,r=v1;var u=s.actualDuration!==0||(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0;u?Yn=Qp:(Yn=ds,$c=fs=null,uR(e,e.pendingLanes),yl=0,Xd=null);var d=e.pendingLanes;if(d===0&&(us=null),u||mR(e),d=uo(t),s=s.stateNode,vo&&typeof vo.onCommitFiberRoot=="function")try{var y=(s.current.flags&128)===128;switch(d){case vr:var S=kb;break;case Ca:S=Lb;break;case ti:S=gc;break;case hp:S=Ub;break;default:S=gc}vo.onCommitFiberRoot(yc,s,S,y)}catch(K){Ra||(Ra=!0,console.error("React instrumentation encountered an error: %o",K))}if(Ta&&e.memoizedUpdaters.clear(),Bk(),r!==null){y=fe.T,S=Qt.p,Qt.p=vr,fe.T=null;try{var R=e.onRecoverableError;for(s=0;s<r.length;s++){var O=r[s],W=qk(O.stack);xe(O.source,R,O.value,W)}}finally{fe.T=y,Qt.p=S}}(Qr&3)!==0&&Ju(),va(e),d=e.pendingLanes,(t&261930)!==0&&(d&42)!==0?(Mp=!0,e===Lv?Gd++:(Gd=0,Lv=e)):Gd=0,u||Zs(t,ii),ed(0)}}function qk(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function uR(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zu(t)))}function Ju(){return sR(),lR(),cR(),dR()}function dR(){if(Yn!==Qp)return!1;var e=fs,t=Mv;Mv=0;var r=uo(Qr),s=ti>r?ti:r;r=fe.T;var u=Qt.p;try{Qt.p=s,fe.T=null;var d=kv;kv=null,s=fs;var y=Qr;if(Yn=ds,$c=fs=null,Qr=0,(It&(Kn|sr))!==io)throw Error("Cannot flush passive effects while already rendering.");Br(y),Uv=!0,Wp=!1;var S=0;if(si=null,S=oo(),Wr===p1)Ag(ii,S,nz);else{var R=ii,O=S,W=Wr===Nv;!cn||O<=R||(Dn?Dn.run(console.timeStamp.bind(console,W?"Waiting for Paint":"Waiting",R,O,Ht,Lt,"secondary-light")):console.timeStamp(W?"Waiting for Paint":"Waiting",R,O,Ht,Lt,"secondary-light"))}R=It,It|=sr;var K=s.current;bh(),qx(K);var F=s.current;K=_v,bh(),Vx(s,F,y,d,K),mR(s),It=R;var le=oo();if(F=S,K=Dn,si!==null?Zw(F,le,si,!0,K):!cn||le<=F||(K?K.run(console.timeStamp.bind(console,"Remaining Effects",F,le,Ht,Lt,"secondary-dark")):console.timeStamp("Remaining Effects",F,le,Ht,Lt,"secondary-dark")),Zs(y,le),ed(0,!1),Wp?s===Xd?yl++:(yl=0,Xd=s):yl=0,Wp=Uv=!1,vo&&typeof vo.onPostCommitFiberRoot=="function")try{vo.onPostCommitFiberRoot(yc,s)}catch(Ie){Ra||(Ra=!0,console.error("React instrumentation encountered an error: %o",Ie))}var ke=s.current.stateNode;return ke.effectDuration=0,ke.passiveEffectDuration=0,!0}finally{Qt.p=u,fe.T=r,uR(e,t)}}function fR(e,t,r){t=Wo(r,t),pE(t),t=Cy(e.stateNode,t,2),e=Hi(e,t,2),e!==null&&(bt(e,2),va(e))}function Xt(e,t,r){if(qc=!1,e.tag===3)fR(e,e,r);else{for(;t!==null;){if(t.tag===3){fR(t,e,r);return}if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(us===null||!us.has(s))){e=Wo(r,e),pE(e),r=Oy(2),s=Hi(t,r,2),s!==null&&(Dy(r,s,t,e),bt(s,2),va(s));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
213
|
-
|
|
214
|
-
Error message:
|
|
215
|
-
|
|
216
|
-
%s`,r)}}function Qy(e,t,r){var s=e.pingCache;if(s===null){s=e.pingCache=new dz;var u=new Set;s.set(t,u)}else u=s.get(t),u===void 0&&(u=new Set,s.set(t,u));u.has(r)||(Ov=!0,u.add(r),s=Gk.bind(null,e,t,r),Ta&&Zu(e,r),t.then(s,s))}function Gk(e,t,r){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,(r&127)!==0?0>Aa&&(rl=Aa=Hn(),xd=Tp("Promise Resolved"),ns=Cp):(r&4194048)!==0&&0>Cr&&(li=Cr=Hn(),Td=Tp("Promise Resolved"),lv=Cp),Qx()&&fe.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
217
|
-
|
|
218
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
219
|
-
|
|
220
|
-
act(() => {
|
|
221
|
-
/* finish loading suspended data */
|
|
222
|
-
});
|
|
223
|
-
/* assert on the output */
|
|
224
|
-
|
|
225
|
-
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`),tn===e&&(xt&r)===r&&(En===is||En===Bp&&(xt&62914560)===xt&&oo()-qp<f1?(It&Kn)===io&&cc(e,0):Dv|=r,gl===xt&&(gl=0)),va(e)}function hR(e,t){t===0&&(t=on()),e=bo(e,t),e!==null&&(bt(e,t),va(e))}function Xk(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),hR(e,r)}function Qk(e,t){var r=0;switch(e.tag){case 31:case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(r=u.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}s!==null&&s.delete(t),hR(e,r)}function Wy(e,t,r){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var s=e,u=t,d=u.type===sp;d=r||d,u.tag!==22?u.flags&67108864?d&&xe(u,pR,s,u):Wy(s,u,d):u.memoizedState===null&&(d&&u.flags&8192?xe(u,pR,s,u):u.subtreeFlags&67108864&&xe(u,Wy,s,u,d)),t=t.sibling}}function pR(e,t){Ce(!0);try{Ix(t),Gx(t),Bx(e,t.alternate,t,!1),Fx(e,t,0,null,!1,0)}finally{Ce(!1)}}function mR(e){var t=!0;e.current.mode&(So|$r)||(t=!1),Wy(e,e.current,t)}function gR(e){if((It&Kn)===io){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=H(e)||"ReactComponent",Kp!==null){if(Kp.has(t))return;Kp.add(t)}else Kp=new Set([t]);xe(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Zu(e,t){Ta&&e.memoizedUpdaters.forEach(function(r){hn(e,r,t)})}function Wk(e,t){var r=fe.actQueue;return r!==null?(r.push(t),pz):_b(e,t)}function Kk(e){Qx()&&fe.actQueue===null&&xe(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
226
|
-
|
|
227
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
228
|
-
|
|
229
|
-
act(() => {
|
|
230
|
-
/* fire events that update state */
|
|
231
|
-
});
|
|
232
|
-
/* assert on the output */
|
|
233
|
-
|
|
234
|
-
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`,H(e))})}function va(e){e!==Gc&&e.next===null&&(Gc===null?Jp=Gc=e:Gc=Gc.next=e),Zp=!0,fe.actQueue!==null?Pv||(Pv=!0,SR()):zv||(zv=!0,SR())}function ed(e,t){if(!jv&&Zp){jv=!0;do for(var r=!1,s=Jp;s!==null;){if(e!==0){var u=s.pendingLanes;if(u===0)var d=0;else{var y=s.suspendedLanes,S=s.pingedLanes;d=(1<<31-Oo(42|e)+1)-1,d&=u&~(y&~S),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(r=!0,vR(s,d))}else d=xt,d=yt(s,s===tn?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==wl),(d&3)===0||ht(s,d)||(r=!0,vR(s,d));s=s.next}while(r);jv=!1}}function Jk(){Jd=window.event,Ky()}function Ky(){Zp=Pv=zv=!1;var e=0;hs!==0&&aL()&&(e=hs);for(var t=oo(),r=null,s=Jp;s!==null;){var u=s.next,d=yR(s,t);d===0?(s.next=null,r===null?Jp=u:r.next=u,u===null&&(Gc=r)):(r=s,(e!==0||(d&3)!==0)&&(Zp=!0)),s=u}Yn!==ds&&Yn!==Qp||ed(e),hs!==0&&(hs=0)}function yR(e,t){for(var r=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-Oo(d),S=1<<y,R=u[y];R===-1?((S&r)===0||(S&s)!==0)&&(u[y]=$t(S,t)):R<=t&&(e.expiredLanes|=S),d&=~S}if(t=tn,r=xt,r=yt(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==wl),s=e.callbackNode,r===0||e===t&&(Kt===pl||Kt===ml)||e.cancelPendingCommit!==null)return s!==null&&Jy(s),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||ht(e,r)){if(t=r&-r,t!==e.callbackPriority||fe.actQueue!==null&&s!==Hv)Jy(s);else return t;switch(uo(r)){case vr:case Ca:r=Lb;break;case ti:r=gc;break;case hp:r=Ub;break;default:r=gc}return s=bR.bind(null,e),fe.actQueue!==null?(fe.actQueue.push(s),r=Hv):r=_b(r,s),e.callbackPriority=t,e.callbackNode=r,t}return s!==null&&Jy(s),e.callbackPriority=2,e.callbackNode=null,2}function bR(e,t){if(Mp=Np=!1,Jd=window.event,Yn!==ds&&Yn!==Qp)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Wr===Xp&&(Wr=Nv),Ju()&&e.callbackNode!==r)return null;var s=xt;return s=yt(e,e===tn?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==wl),s===0?null:(Kx(e,s,t),yR(e,oo()),e.callbackNode!=null&&e.callbackNode===r?bR.bind(null,e):null)}function vR(e,t){if(Ju())return null;Np=Mp,Mp=!1,Kx(e,t,!0)}function Jy(e){e!==Hv&&e!==null&&VL(e)}function SR(){fe.actQueue!==null&&fe.actQueue.push(function(){return Ky(),null}),Rz(function(){(It&(Kn|sr))!==io?_b(kb,Jk):Ky()})}function Zy(){if(hs===0){var e=sl;e===0&&(e=up,up<<=1,(up&261888)===0&&(up=256)),hs=e}return hs}function wR(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Re(e,"action"),_u(""+e))}function ER(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function Zk(e,t,r,s,u){if(t==="submit"&&r&&r.stateNode===u){var d=wR((u[Do]||null).action),y=s.submitter;y&&(t=(t=y[Do]||null)?wR(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var S=new bp("action","action",null,s,u);e.push({event:S,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(hs!==0){var R=y?ER(u,y):new FormData(u),O={pending:!0,data:R,method:u.method,action:d};Object.freeze(O),vy(r,O,null,R)}}else typeof d=="function"&&(S.preventDefault(),R=y?ER(u,y):new FormData(u),O={pending:!0,data:R,method:u.method,action:d},Object.freeze(O),vy(r,O,d,R))},currentTarget:u}]})}}function Wh(e,t,r){e.currentTarget=r;try{t(e)}catch(s){Kb(s)}e.currentTarget=null}function xR(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var s=e[r];e:{var u=void 0,d=s.event;if(s=s.listeners,t)for(var y=s.length-1;0<=y;y--){var S=s[y],R=S.instance,O=S.currentTarget;if(S=S.listener,R!==u&&d.isPropagationStopped())break e;R!==null?xe(R,Wh,d,S,O):Wh(d,S,O),u=R}else for(y=0;y<s.length;y++){if(S=s[y],R=S.instance,O=S.currentTarget,S=S.listener,R!==u&&d.isPropagationStopped())break e;R!==null?xe(R,Wh,d,S,O):Wh(d,S,O),u=R}}}}function kt(e,t){Iv.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var r=t[zb];r===void 0&&(r=t[zb]=new Set);var s=e+"__bubble";r.has(s)||(RR(t,e,2,!1),r.add(s))}function eb(e,t,r){Iv.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var s=0;t&&(s|=4),RR(r,e,s,t)}function tb(e){if(!e[em]){e[em]=!0,ST.forEach(function(r){r!=="selectionchange"&&(Iv.has(r)||eb(r,!1,e),eb(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[em]||(t[em]=!0,eb("selectionchange",!1,t))}}function RR(e,t,r,s){switch(oT(t)){case vr:var u=kL;break;case Ca:u=LL;break;default:u=yb}r=u.bind(null,t,r,e),u=void 0,!Bb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),s?u!==void 0?e.addEventListener(t,r,{capture:!0,passive:u}):e.addEventListener(t,r,!0):u!==void 0?e.addEventListener(t,r,{passive:u}):e.addEventListener(t,r,!1)}function nb(e,t,r,s,u){var d=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var y=s.tag;if(y===3||y===4){var S=s.stateNode.containerInfo;if(S===u)break;if(y===4)for(y=s.return;y!==null;){var R=y.tag;if((R===3||R===4)&&y.stateNode.containerInfo===u)return;y=y.return}for(;S!==null;){if(y=ge(S),y===null)return;if(R=y.tag,R===5||R===6||R===26||R===27){s=d=y;continue e}S=S.parentNode}}s=s.return}Uw(function(){var O=d,W=xg(r),K=[];e:{var F=oC.get(e);if(F!==void 0){var le=bp,ke=e;switch(e){case"keypress":if(rh(r)===0)break e;case"keydown":case"keyup":le=AU;break;case"focusin":ke="focus",le=$b;break;case"focusout":ke="blur",le=$b;break;case"beforeblur":case"afterblur":le=$b;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=FT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=yU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=_U;break;case ZT:case eC:case tC:le=SU;break;case nC:le=LU;break;case"scroll":case"scrollend":le=mU;break;case"wheel":le=zU;break;case"copy":case"cut":case"paste":le=EU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=$T;break;case"toggle":case"beforetoggle":le=jU}var Ie=(t&4)!==0,sn=!Ie&&(e==="scroll"||e==="scrollend"),Ut=Ie?F!==null?F+"Capture":null:F;Ie=[];for(var V=O,q;V!==null;){var X=V;if(q=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||q===null||Ut===null||(X=ku(V,Ut),X!=null&&Ie.push(td(V,X,q))),sn)break;V=V.return}0<Ie.length&&(F=new le(F,ke,null,r,W),K.push({event:F,listeners:Ie}))}}if((t&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",le=e==="mouseout"||e==="pointerout",F&&r!==fd&&(ke=r.relatedTarget||r.fromElement)&&(ge(ke)||ke[Qi]))break e;if((le||F)&&(F=W.window===W?W:(F=W.ownerDocument)?F.defaultView||F.parentWindow:window,le?(ke=r.relatedTarget||r.toElement,le=O,ke=ke?ge(ke):null,ke!==null&&(sn=A(ke),Ie=ke.tag,ke!==sn||Ie!==5&&Ie!==27&&Ie!==6)&&(ke=null)):(le=null,ke=O),le!==ke)){if(Ie=FT,X="onMouseLeave",Ut="onMouseEnter",V="mouse",(e==="pointerout"||e==="pointerover")&&(Ie=$T,X="onPointerLeave",Ut="onPointerEnter",V="pointer"),sn=le==null?F:Ne(le),q=ke==null?F:Ne(ke),F=new Ie(X,V+"leave",le,r,W),F.target=sn,F.relatedTarget=q,X=null,ge(W)===O&&(Ie=new Ie(Ut,V+"enter",ke,r,W),Ie.target=q,Ie.relatedTarget=sn,X=Ie),sn=X,le&&ke)t:{for(Ie=eL,Ut=le,V=ke,q=0,X=Ut;X;X=Ie(X))q++;X=0;for(var be=V;be;be=Ie(be))X++;for(;0<q-X;)Ut=Ie(Ut),q--;for(;0<X-q;)V=Ie(V),X--;for(;q--;){if(Ut===V||V!==null&&Ut===V.alternate){Ie=Ut;break t}Ut=Ie(Ut),V=Ie(V)}Ie=null}else Ie=null;le!==null&&TR(K,F,le,Ie,!1),ke!==null&&sn!==null&&TR(K,sn,ke,Ie,!0)}}e:{if(F=O?Ne(O):window,le=F.nodeName&&F.nodeName.toLowerCase(),le==="select"||le==="input"&&F.type==="file")var He=Vw;else if(Iw(F))if(KT)He=fk;else{He=uk;var ft=ck}else le=F.nodeName,!le||le.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?O&&Mu(O.elementType)&&(He=Vw):He=dk;if(He&&(He=He(e,O))){Bw(K,He,r,W);break e}ft&&ft(e,F,O),e==="focusout"&&O&&F.type==="number"&&O.memoizedProps.value!=null&&et(F,"number",F.value)}switch(ft=O?Ne(O):window,e){case"focusin":(Iw(ft)||ft.contentEditable==="true")&&(Rc=ft,Gb=O,vd=null);break;case"focusout":vd=Gb=Rc=null;break;case"mousedown":Xb=!0;break;case"contextmenu":case"mouseup":case"dragend":Xb=!1,Qw(K,r,W);break;case"selectionchange":if(VU)break;case"keydown":case"keyup":Qw(K,r,W)}var nt;if(qb)e:{switch(e){case"compositionstart":var We="onCompositionStart";break e;case"compositionend":We="onCompositionEnd";break e;case"compositionupdate":We="onCompositionUpdate";break e}We=void 0}else xc?jw(e,r)&&(We="onCompositionEnd"):e==="keydown"&&r.keyCode===qT&&(We="onCompositionStart");We&&(GT&&r.locale!=="ko"&&(xc||We!=="onCompositionStart"?We==="onCompositionEnd"&&xc&&(nt=zw()):(Wi=W,Vb="value"in Wi?Wi.value:Wi.textContent,xc=!0)),ft=Kh(O,We),0<ft.length&&(We=new YT(We,e,null,r,W),K.push({event:We,listeners:ft}),nt?We.data=nt:(nt=Hw(r),nt!==null&&(We.data=nt)))),(nt=IU?ak(e,r):ik(e,r))&&(We=Kh(O,"onBeforeInput"),0<We.length&&(ft=new RU("onBeforeInput","beforeinput",null,r,W),K.push({event:ft,listeners:We}),ft.data=nt)),Zk(K,e,O,r,W)}xR(K,t)})}function td(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Kh(e,t){for(var r=t+"Capture",s=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=ku(e,r),u!=null&&s.unshift(td(e,u,d)),u=ku(e,t),u!=null&&s.push(td(e,u,d))),e.tag===3)return s;e=e.return}return[]}function eL(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function TR(e,t,r,s,u){for(var d=t._reactName,y=[];r!==null&&r!==s;){var S=r,R=S.alternate,O=S.stateNode;if(S=S.tag,R!==null&&R===s)break;S!==5&&S!==26&&S!==27||O===null||(R=O,u?(O=ku(r,d),O!=null&&y.unshift(td(r,O,R))):u||(O=ku(r,d),O!=null&&y.push(td(r,O,R)))),r=r.return}y.length!==0&&e.push({event:t,listeners:y})}function ob(e,t){tk(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||BT||(BT=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var r={registrationNameDependencies:el,possibleRegistrationNames:Pb};Mu(e)||typeof t.is=="string"||ok(e,t,r),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function no(e,t,r,s){t!==r&&(r=Yi(r),Yi(t)!==r&&(s[e]=t))}function tL(e,t,r){t.forEach(function(s){r[DR(s)]=s==="style"?ab(e):e.getAttribute(s)})}function Sa(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function CR(e,t){return e=e.namespaceURI===mp||e.namespaceURI===vc?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Yi(e){return De(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",we(e)),Ye(e)),(typeof e=="string"?e:""+e).replace(mz,`
|
|
235
|
-
`).replace(gz,"")}function OR(e,t){return t=Yi(t),Yi(e)===t}function Zt(e,t,r,s,u,d){switch(r){case"children":typeof s=="string"?(oh(s,t,!1),t==="body"||t==="textarea"&&s===""||Nu(e,s)):(typeof s=="number"||typeof s=="bigint")&&(oh(""+s,t,!1),t!=="body"&&Nu(e,""+s));break;case"className":Qo(e,"class",s);break;case"tabIndex":Qo(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Qo(e,r,s);break;case"style":_w(e,s,d);break;case"data":if(t!=="object"){Qo(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||r!=="href")){console.error(r==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',r,r),e.removeAttribute(r);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(r);break}Re(s,r),s=_u(""+s),e.setAttribute(r,s);break;case"action":case"formAction":if(s!=null&&(t==="form"?r==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof s=="function"&&(u.encType==null&&u.method==null||om||(om=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),u.target==null||nm||(nm=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?r==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||u.type==="submit"||u.type==="image"||tm?t!=="button"||u.type==null||u.type==="submit"||tm?typeof s=="function"&&(u.name==null||C1||(C1=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),u.formEncType==null&&u.formMethod==null||om||(om=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),u.formTarget==null||nm||(nm=!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."))):(tm=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(tm=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(r==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof s=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(r==="formAction"?(t!=="input"&&Zt(e,t,"name",u.name,u,null),Zt(e,t,"formEncType",u.formEncType,u,null),Zt(e,t,"formMethod",u.formMethod,u,null),Zt(e,t,"formTarget",u.formTarget,u,null)):(Zt(e,t,"encType",u.encType,u,null),Zt(e,t,"method",u.method,u,null),Zt(e,t,"target",u.target,u,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(r);break}Re(s,r),s=_u(""+s),e.setAttribute(r,s);break;case"onClick":s!=null&&(typeof s!="function"&&Sa(r,s),e.onclick=qa);break;case"onScroll":s!=null&&(typeof s!="function"&&Sa(r,s),kt("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&Sa(r,s),kt("scrollend",e));break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(r=s.__html,r!=null){if(u.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=r}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}Re(s,r),r=_u(""+s),e.setAttributeNS(bl,"xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?(Re(s,r),e.setAttribute(r,""+s)):e.removeAttribute(r);break;case"inert":s!==""||rm[r]||(rm[r]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",r));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":s===!0?e.setAttribute(r,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?(Re(s,r),e.setAttribute(r,s)):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?(Re(s,r),e.setAttribute(r,s)):e.removeAttribute(r);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(r):(Re(s,r),e.setAttribute(r,s));break;case"popover":kt("beforetoggle",e),kt("toggle",e),xn(e,"popover",s);break;case"xlinkActuate":B(e,bl,"xlink:actuate",s);break;case"xlinkArcrole":B(e,bl,"xlink:arcrole",s);break;case"xlinkRole":B(e,bl,"xlink:role",s);break;case"xlinkShow":B(e,bl,"xlink:show",s);break;case"xlinkTitle":B(e,bl,"xlink:title",s);break;case"xlinkType":B(e,bl,"xlink:type",s);break;case"xmlBase":B(e,Bv,"xml:base",s);break;case"xmlLang":B(e,Bv,"xml:lang",s);break;case"xmlSpace":B(e,Bv,"xml:space",s);break;case"is":d!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),xn(e,"is",s);break;case"innerText":case"textContent":break;case"popoverTarget":O1||s==null||typeof s!="object"||(O1=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",s));default:!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"?(r=kw(r),xn(e,r,s)):el.hasOwnProperty(r)&&s!=null&&typeof s!="function"&&Sa(r,s)}}function rb(e,t,r,s,u,d){switch(r){case"style":_w(e,s,d);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(r=s.__html,r!=null){if(u.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=r}}break;case"children":typeof s=="string"?Nu(e,s):(typeof s=="number"||typeof s=="bigint")&&Nu(e,""+s);break;case"onScroll":s!=null&&(typeof s!="function"&&Sa(r,s),kt("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&Sa(r,s),kt("scrollend",e));break;case"onClick":s!=null&&(typeof s!="function"&&Sa(r,s),e.onclick=qa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(el.hasOwnProperty(r))s!=null&&typeof s!="function"&&Sa(r,s);else e:{if(r[0]==="o"&&r[1]==="n"&&(u=r.endsWith("Capture"),t=r.slice(2,u?r.length-7:void 0),d=e[Do]||null,d=d!=null?d[r]:null,typeof d=="function"&&e.removeEventListener(t,d,u),typeof s=="function")){typeof d!="function"&&d!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,s,u);break e}r in e?e[r]=s:s===!0?e.setAttribute(r,""):xn(e,r,s)}}}function po(e,t,r){switch(ob(t,r),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":kt("error",e),kt("load",e);var s=!1,u=!1,d;for(d in r)if(r.hasOwnProperty(d)){var y=r[d];if(y!=null)switch(d){case"src":s=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Zt(e,t,d,y,r,null)}}u&&Zt(e,t,"srcSet",r.srcSet,r,null),s&&Zt(e,t,"src",r.src,r,null);return;case"input":Rt("input",r),kt("invalid",e);var S=d=y=u=null,R=null,O=null;for(s in r)if(r.hasOwnProperty(s)){var W=r[s];if(W!=null)switch(s){case"name":u=W;break;case"type":y=W;break;case"checked":R=W;break;case"defaultChecked":O=W;break;case"value":d=W;break;case"defaultValue":S=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Zt(e,t,s,W,r,null)}}Fe(e,r),ut(e,d,S,R,O,y,u,!1);return;case"select":Rt("select",r),kt("invalid",e),s=y=d=null;for(u in r)if(r.hasOwnProperty(u)&&(S=r[u],S!=null))switch(u){case"value":d=S;break;case"defaultValue":y=S;break;case"multiple":s=S;default:Zt(e,t,u,S,r,null)}Mn(e,r),t=d,r=y,e.multiple=!!s,t!=null?Sn(e,!!s,t,!1):r!=null&&Sn(e,!!s,r,!0);return;case"textarea":Rt("textarea",r),kt("invalid",e),d=u=s=null;for(y in r)if(r.hasOwnProperty(y)&&(S=r[y],S!=null))switch(y){case"value":s=S;break;case"defaultValue":u=S;break;case"children":d=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Zt(e,t,y,S,r,null)}eo(e,r),Ro(e,s,u,d);return;case"option":vt(e,r);for(R in r)if(r.hasOwnProperty(R)&&(s=r[R],s!=null))switch(R){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Zt(e,t,R,s,r,null)}return;case"dialog":kt("beforetoggle",e),kt("toggle",e),kt("cancel",e),kt("close",e);break;case"iframe":case"object":kt("load",e);break;case"video":case"audio":for(s=0;s<Qd.length;s++)kt(Qd[s],e);break;case"image":kt("error",e),kt("load",e);break;case"details":kt("toggle",e);break;case"embed":case"source":case"link":kt("error",e),kt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in r)if(r.hasOwnProperty(O)&&(s=r[O],s!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Zt(e,t,O,s,r,null)}return;default:if(Mu(t)){for(W in r)r.hasOwnProperty(W)&&(s=r[W],s!==void 0&&rb(e,t,W,s,r,void 0));return}}for(S in r)r.hasOwnProperty(S)&&(s=r[S],s!=null&&Zt(e,t,S,s,r,null))}function nL(e,t,r,s){switch(ob(t,s),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,y=null,S=null,R=null,O=null,W=null;for(le in r){var K=r[le];if(r.hasOwnProperty(le)&&K!=null)switch(le){case"checked":break;case"value":break;case"defaultValue":R=K;default:s.hasOwnProperty(le)||Zt(e,t,le,null,s,K)}}for(var F in s){var le=s[F];if(K=r[F],s.hasOwnProperty(F)&&(le!=null||K!=null))switch(F){case"type":d=le;break;case"name":u=le;break;case"checked":O=le;break;case"defaultChecked":W=le;break;case"value":y=le;break;case"defaultValue":S=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:le!==K&&Zt(e,t,F,le,s,K)}}t=r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null,s=s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null,t||!s||T1||(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"),T1=!0),!t||s||R1||(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"),R1=!0),Qe(e,y,S,R,O,W,d,u);return;case"select":le=y=S=F=null;for(d in r)if(R=r[d],r.hasOwnProperty(d)&&R!=null)switch(d){case"value":break;case"multiple":le=R;default:s.hasOwnProperty(d)||Zt(e,t,d,null,s,R)}for(u in s)if(d=s[u],R=r[u],s.hasOwnProperty(u)&&(d!=null||R!=null))switch(u){case"value":F=d;break;case"defaultValue":S=d;break;case"multiple":y=d;default:d!==R&&Zt(e,t,u,d,s,R)}s=S,t=y,r=le,F!=null?Sn(e,!!t,F,!1):!!r!=!!t&&(s!=null?Sn(e,!!t,s,!0):Sn(e,!!t,t?[]:"",!1));return;case"textarea":le=F=null;for(S in r)if(u=r[S],r.hasOwnProperty(S)&&u!=null&&!s.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Zt(e,t,S,null,s,u)}for(y in s)if(u=s[y],d=r[y],s.hasOwnProperty(y)&&(u!=null||d!=null))switch(y){case"value":F=u;break;case"defaultValue":le=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:u!==d&&Zt(e,t,y,u,s,d)}Gt(e,F,le);return;case"option":for(var ke in r)if(F=r[ke],r.hasOwnProperty(ke)&&F!=null&&!s.hasOwnProperty(ke))switch(ke){case"selected":e.selected=!1;break;default:Zt(e,t,ke,null,s,F)}for(R in s)if(F=s[R],le=r[R],s.hasOwnProperty(R)&&F!==le&&(F!=null||le!=null))switch(R){case"selected":e.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:Zt(e,t,R,F,s,le)}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 Ie in r)F=r[Ie],r.hasOwnProperty(Ie)&&F!=null&&!s.hasOwnProperty(Ie)&&Zt(e,t,Ie,null,s,F);for(O in s)if(F=s[O],le=r[O],s.hasOwnProperty(O)&&F!==le&&(F!=null||le!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Zt(e,t,O,F,s,le)}return;default:if(Mu(t)){for(var sn in r)F=r[sn],r.hasOwnProperty(sn)&&F!==void 0&&!s.hasOwnProperty(sn)&&rb(e,t,sn,void 0,s,F);for(W in s)F=s[W],le=r[W],!s.hasOwnProperty(W)||F===le||F===void 0&&le===void 0||rb(e,t,W,F,s,le);return}}for(var Ut in r)F=r[Ut],r.hasOwnProperty(Ut)&&F!=null&&!s.hasOwnProperty(Ut)&&Zt(e,t,Ut,null,s,F);for(K in s)F=s[K],le=r[K],!s.hasOwnProperty(K)||F===le||F==null&&le==null||Zt(e,t,K,F,s,le)}function DR(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function ab(e){var t={};e=e.style;for(var r=0;r<e.length;r++){var s=e[r];t[s]=e.getPropertyValue(s)}return t}function AR(e,t,r){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var s,u=s="",d;for(d in t)if(t.hasOwnProperty(d)){var y=t[d];y!=null&&typeof y!="boolean"&&y!==""&&(d.indexOf("--")===0?(Ae(y,d),s+=u+d+":"+(""+y).trim()):typeof y!="number"||y===0||HT.has(d)?(Ae(y,d),s+=u+d.replace(LT,"-$1").toLowerCase().replace(UT,"-ms-")+":"+(""+y).trim()):s+=u+d.replace(LT,"-$1").toLowerCase().replace(UT,"-ms-")+":"+y+"px",u=";")}s=s||null,t=e.getAttribute("style"),t!==s&&(s=Yi(s),Yi(t)!==s&&(r.style=ab(e)))}}function br(e,t,r,s,u,d){if(u.delete(r),e=e.getAttribute(r),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(Re(s,t),e===""+s)return}no(t,e,s,d)}function NR(e,t,r,s,u,d){if(u.delete(r),e=e.getAttribute(r),e===null){switch(typeof s){case"function":case"symbol":return}if(!s)return}else switch(typeof s){case"function":case"symbol":break;default:if(s)return}no(t,e,s,d)}function ib(e,t,r,s,u,d){if(u.delete(r),e=e.getAttribute(r),e===null)switch(typeof s){case"undefined":case"function":case"symbol":return}else if(s!=null)switch(typeof s){case"function":case"symbol":break;default:if(Re(s,r),e===""+s)return}no(t,e,s,d)}function MR(e,t,r,s,u,d){if(u.delete(r),e=e.getAttribute(r),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(s))return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!isNaN(s)&&(Re(s,t),e===""+s))return}no(t,e,s,d)}function sb(e,t,r,s,u,d){if(u.delete(r),e=e.getAttribute(r),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(Re(s,t),r=_u(""+s),e===r)return}no(t,e,s,d)}function _R(e,t,r,s){for(var u={},d=new Set,y=e.attributes,S=0;S<y.length;S++)switch(y[S].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:d.add(y[S].name)}if(Mu(t)){for(var R in r)if(r.hasOwnProperty(R)){var O=r[R];if(O!=null){if(el.hasOwnProperty(R))typeof O!="function"&&Sa(R,O);else if(r.suppressHydrationWarning!==!0)switch(R){case"children":typeof O!="string"&&typeof O!="number"||no("children",e.textContent,O,u);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":y=e.innerHTML,O=O?O.__html:void 0,O!=null&&(O=CR(e,O),no(R,y,O,u));continue;case"style":d.delete(R),AR(e,O,u);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":d.delete(R.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",R);continue;case"className":d.delete("class"),y=rn(e,"class",O),no("className",y,O,u);continue;default:s.context===mi&&t!=="svg"&&t!=="math"?d.delete(R.toLowerCase()):d.delete(R),y=rn(e,R,O),no(R,y,O,u)}}}}else for(O in r)if(r.hasOwnProperty(O)&&(R=r[O],R!=null)){if(el.hasOwnProperty(O))typeof R!="function"&&Sa(O,R);else if(r.suppressHydrationWarning!==!0)switch(O){case"children":typeof R!="string"&&typeof R!="number"||no("children",e.textContent,R,u);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":y=e.innerHTML,R=R?R.__html:void 0,R!=null&&(R=CR(e,R),y!==R&&(u[O]={__html:y}));continue;case"className":br(e,O,"class",R,d,u);continue;case"tabIndex":br(e,O,"tabindex",R,d,u);continue;case"style":d.delete(O),AR(e,R,u);continue;case"multiple":d.delete(O),no(O,e.multiple,R,u);continue;case"muted":d.delete(O),no(O,e.muted,R,u);continue;case"autoFocus":d.delete("autofocus"),no(O,e.autofocus,R,u);continue;case"data":if(t!=="object"){d.delete(O),y=e.getAttribute("data"),no(O,y,R,u);continue}case"src":case"href":if(!(R!==""||t==="a"&&O==="href"||t==="object"&&O==="data")){console.error(O==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',O,O);continue}sb(e,O,O,R,d,u);continue;case"action":case"formAction":if(y=e.getAttribute(O),typeof R=="function"){d.delete(O.toLowerCase()),O==="formAction"?(d.delete("name"),d.delete("formenctype"),d.delete("formmethod"),d.delete("formtarget")):(d.delete("enctype"),d.delete("method"),d.delete("target"));continue}else if(y===yz){d.delete(O.toLowerCase()),no(O,"function",R,u);continue}sb(e,O,O.toLowerCase(),R,d,u);continue;case"xlinkHref":sb(e,O,"xlink:href",R,d,u);continue;case"contentEditable":ib(e,O,"contenteditable",R,d,u);continue;case"spellCheck":ib(e,O,"spellcheck",R,d,u);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":ib(e,O,O,R,d,u);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":NR(e,O,O.toLowerCase(),R,d,u);continue;case"capture":case"download":e:{S=e;var W=y=O,K=u;if(d.delete(W),S=S.getAttribute(W),S===null)switch(typeof R){case"undefined":case"function":case"symbol":break e;default:if(R===!1)break e}else if(R!=null)switch(typeof R){case"function":case"symbol":break;case"boolean":if(R===!0&&S==="")break e;break;default:if(Re(R,y),S===""+R)break e}no(y,S,R,K)}continue;case"cols":case"rows":case"size":case"span":e:{if(S=e,W=y=O,K=u,d.delete(W),S=S.getAttribute(W),S===null)switch(typeof R){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(R)||1>R)break e}else if(R!=null)switch(typeof R){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(R)||1>R)&&(Re(R,y),S===""+R))break e}no(y,S,R,K)}continue;case"rowSpan":MR(e,O,"rowspan",R,d,u);continue;case"start":MR(e,O,O,R,d,u);continue;case"xHeight":br(e,O,"x-height",R,d,u);continue;case"xlinkActuate":br(e,O,"xlink:actuate",R,d,u);continue;case"xlinkArcrole":br(e,O,"xlink:arcrole",R,d,u);continue;case"xlinkRole":br(e,O,"xlink:role",R,d,u);continue;case"xlinkShow":br(e,O,"xlink:show",R,d,u);continue;case"xlinkTitle":br(e,O,"xlink:title",R,d,u);continue;case"xlinkType":br(e,O,"xlink:type",R,d,u);continue;case"xmlBase":br(e,O,"xml:base",R,d,u);continue;case"xmlLang":br(e,O,"xml:lang",R,d,u);continue;case"xmlSpace":br(e,O,"xml:space",R,d,u);continue;case"inert":R!==""||rm[O]||(rm[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)),NR(e,O,O,R,d,u);continue;default:if(!(2<O.length)||O[0]!=="o"&&O[0]!=="O"||O[1]!=="n"&&O[1]!=="N"){S=kw(O),y=!1,s.context===mi&&t!=="svg"&&t!=="math"?d.delete(S.toLowerCase()):(W=O.toLowerCase(),W=gp.hasOwnProperty(W)&&gp[W]||null,W!==null&&W!==O&&(y=!0,d.delete(W)),d.delete(S));e:if(W=e,K=S,S=R,Cn(K))if(W.hasAttribute(K))W=W.getAttribute(K),Re(S,K),S=W===""+S?S:W;else{switch(typeof S){case"function":case"symbol":break e;case"boolean":if(W=K.toLowerCase().slice(0,5),W!=="data-"&&W!=="aria-")break e}S=S===void 0?void 0:null}else S=void 0;y||no(O,S,R,u)}}}return 0<d.size&&r.suppressHydrationWarning!==!0&&tL(e,d,u),Object.keys(u).length===0?null:u}function oL(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function kR(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rL(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),s=0;s<r.length;s++){var u=r[s],d=u.transferSize,y=u.initiatorType,S=u.duration;if(d&&S&&kR(y)){for(y=0,S=u.responseEnd,s+=1;s<r.length;s++){var R=r[s],O=R.startTime;if(O>S)break;var W=R.transferSize,K=R.initiatorType;W&&kR(K)&&(R=R.responseEnd,y+=W*(R<S?1:(S-O)/(R-O)))}if(--s,t+=8*(d+y)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function Jh(e){return e.nodeType===9?e:e.ownerDocument}function LR(e){switch(e){case vc:return Qc;case mp:return im;default:return mi}}function UR(e,t){if(e===mi)switch(t){case"svg":return Qc;case"math":return im;default:return mi}return e===Qc&&t==="foreignObject"?mi:e}function lb(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function aL(){var e=window.event;return e&&e.type==="popstate"?e===$v?!1:($v=e,!0):($v=null,!1)}function nd(){var e=window.event;return e&&e!==Jd?e.type:null}function od(){var e=window.event;return e&&e!==Jd?e.timeStamp:-1.1}function iL(e){setTimeout(function(){throw e})}function sL(e,t,r){switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&e.focus();break;case"img":r.src?e.src=r.src:r.srcSet&&(e.srcset=r.srcSet)}}function lL(){}function cL(e,t,r,s){nL(e,t,r,s),e[Do]=s}function zR(e){Nu(e,"")}function uL(e,t,r){e.nodeValue=r}function PR(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Do]||null;if(t!==null){var r=ye(e);r!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,xe(r,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,xe(r,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function $i(e){return e==="head"}function dL(e,t){e.removeChild(t)}function fL(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function jR(e,t){var r=t,s=0;do{var u=r.nextSibling;if(e.removeChild(r),u&&u.nodeType===8)if(r=u.data,r===Kd||r===am){if(s===0){e.removeChild(u),hc(t);return}s--}else if(r===Wd||r===ps||r===Sl||r===Xc||r===vl)s++;else if(r===vz)rd(e.ownerDocument.documentElement);else if(r===wz){r=e.ownerDocument.head,rd(r);for(var d=r.firstChild;d;){var y=d.nextSibling,S=d.nodeName;d[dd]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&d.rel.toLowerCase()==="stylesheet"||r.removeChild(d),d=y}}else r===Sz&&rd(e.ownerDocument.body);r=u}while(r);hc(t)}function HR(e,t){var r=e;e=0;do{var s=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),s&&s.nodeType===8)if(r=s.data,r===Kd){if(e===0)break;e--}else r!==Wd&&r!==ps&&r!==Sl&&r!==Xc||e++;r=s}while(r)}function hL(e){HR(e,!0)}function pL(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function mL(e){e.nodeValue=""}function gL(e){HR(e,!1)}function yL(e,t){t=t[Ez],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function bL(e,t){e.nodeValue=t}function cb(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":cb(r),G(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function vL(e,t,r,s){for(;e.nodeType===1;){var u=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[dd])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){Re(u.name,"name");var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=tr(e.nextSibling),e===null)break}return null}function SL(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=tr(e.nextSibling),e===null))return null;return e}function IR(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=tr(e.nextSibling),e===null))return null;return e}function ub(e){return e.data===ps||e.data===Sl}function db(e){return e.data===Xc||e.data===ps&&e.ownerDocument.readyState!==A1}function wL(e,t){var r=e.ownerDocument;if(e.data===Sl)e._reactRetry=t;else if(e.data!==ps||r.readyState!==A1)t();else{var s=function(){t(),r.removeEventListener("DOMContentLoaded",s)};r.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function tr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Wd||t===Xc||t===ps||t===Sl||t===vl||t===Vv||t===D1)break;if(t===Kd||t===am)return null}}return e}function BR(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),r={},s=e.attributes,u=0;u<s.length;u++){var d=s[u];r[DR(d.name)]=d.name.toLowerCase()==="style"?ab(e):d.value}return{type:t,props:r}}return e.nodeType===8?e.data===vl?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function VR(e,t,r){return r===null||r[bz]!==!0?(e.nodeValue===t?e=null:(t=Yi(t),e=Yi(e.nodeValue)===t?null:e.nodeValue),e):null}function fb(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r===Kd||r===am){if(t===0)return tr(e.nextSibling);t--}else r!==Wd&&r!==Xc&&r!==ps&&r!==Sl&&r!==vl||t++}e=e.nextSibling}return null}function FR(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r===Wd||r===Xc||r===ps||r===Sl||r===vl){if(t===0)return e;t--}else r!==Kd&&r!==am||t++}e=e.previousSibling}return null}function EL(e){hc(e)}function xL(e){hc(e)}function RL(e){hc(e)}function YR(e,t,r,s,u){switch(u&&Eg(e,s.ancestorInfo),t=Jh(r),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function TL(e,t,r,s){if(!r[Qi]&&ye(r)){var u=r.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",u,u,u)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(u=r.attributes;u.length;)r.removeAttributeNode(u[0]);po(r,e,t),r[mo]=s,r[Do]=t}function rd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);G(e)}function Zh(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function $R(e,t,r){var s=Wc;if(s&&typeof t=="string"&&t){var u=je(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof r=="string"&&(u+='[crossorigin="'+r+'"]'),U1.has(u)||(U1.add(u),e={rel:e,crossOrigin:r,href:t},s.querySelector(u)===null&&(t=s.createElement("link"),po(t,"link",e),Se(t),s.head.appendChild(t)))}}function qR(e,t,r,s){var u=(u=Gi.current)?Zh(u):null;if(!u)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(r=dc(r.href),t=$e(u).hoistableStyles,s=t.get(r),s||(s={type:"style",instance:null,count:0,state:null},t.set(r,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=dc(r.href);var d=$e(u).hoistableStyles,y=d.get(e);if(!y&&(u=u.ownerDocument||u,y={type:"stylesheet",instance:null,count:0,state:{loading:El,preload:null}},d.set(e,y),(d=u.querySelector(ad(e)))&&!d._p&&(y.instance=d,y.state.loading=Zd|Nr),!Mr.has(e))){var S={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy};Mr.set(e,S),d||CL(u,e,S,y.state)}if(t&&s===null)throw r=`
|
|
236
|
-
|
|
237
|
-
- `+ep(t)+`
|
|
238
|
-
+ `+ep(r),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+r);return y}if(t&&s!==null)throw r=`
|
|
239
|
-
|
|
240
|
-
- `+ep(t)+`
|
|
241
|
-
+ `+ep(r),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+r);return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(r=fc(r),t=$e(u).hoistableScripts,s=t.get(r),s||(s={type:"script",instance:null,count:0,state:null},t.set(r,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function ep(e){var t=0,r="<link";return typeof e.rel=="string"?(t++,r+=' rel="'+e.rel+'"'):Yr.call(e,"rel")&&(t++,r+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,r+=' href="'+e.href+'"'):Yr.call(e,"href")&&(t++,r+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,r+=' precedence="'+e.precedence+'"'):Yr.call(e,"precedence")&&(t++,r+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(r+=" ..."),r+" />"}function dc(e){return'href="'+je(e)+'"'}function ad(e){return'link[rel="stylesheet"]['+e+"]"}function GR(e){return Dt({},e,{"data-precedence":e.precedence,precedence:null})}function CL(e,t,r,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=Zd:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=Zd}),t.addEventListener("error",function(){return s.loading|=k1}),po(t,"link",r),Se(t),e.head.appendChild(t))}function fc(e){return'[src="'+je(e)+'"]'}function id(e){return"script[async]"+e}function XR(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+je(r.href)+'"]');if(s)return t.instance=s,Se(s),s;var u=Dt({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Se(s),po(s,"style",u),tp(s,r.precedence,e),t.instance=s;case"stylesheet":u=dc(r.href);var d=e.querySelector(ad(u));if(d)return t.state.loading|=Nr,t.instance=d,Se(d),d;s=GR(r),(u=Mr.get(u))&&hb(s,u),d=(e.ownerDocument||e).createElement("link"),Se(d);var y=d;return y._p=new Promise(function(S,R){y.onload=S,y.onerror=R}),po(d,"link",s),t.state.loading|=Nr,tp(d,r.precedence,e),t.instance=d;case"script":return d=fc(r.src),(u=e.querySelector(id(d)))?(t.instance=u,Se(u),u):(s=r,(u=Mr.get(d))&&(s=Dt({},r),pb(s,u)),e=e.ownerDocument||e,u=e.createElement("script"),Se(u),po(u,"link",s),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&Nr)===El&&(s=t.instance,t.state.loading|=Nr,tp(s,r.precedence,e));return t.instance}function tp(e,t,r){for(var s=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=s.length?s[s.length-1]:null,d=u,y=0;y<s.length;y++){var S=s[y];if(S.dataset.precedence===t)d=S;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function hb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function pb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function QR(e,t,r){if(sm===null){var s=new Map,u=sm=new Map;u.set(r,s)}else u=sm,s=u.get(r),s||(s=new Map,u.set(r,s));if(s.has(e))return s;for(s.set(e,null),r=r.getElementsByTagName(e),u=0;u<r.length;u++){var d=r[u];if(!(d[dd]||d[mo]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!==vc){var y=d.getAttribute(t)||"";y=e+y;var S=s.get(y);S?S.push(d):s.set(y,[d])}}return s}function WR(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function OL(e,t,r){var s=!r.ancestorInfo.containerTagInScope;if(r.context===Qc||t.itemProp!=null)return!s||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){s&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var u=t.onError,d=t.disabled;r=[],t.onLoad&&r.push("`onLoad`"),u&&r.push("`onError`"),d!=null&&r.push("`disabled`"),u=oL(r,"and"),u+=r.length===1?" prop":" props",d=r.length===1?"an "+u:"the "+u,r.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,d,u)}s&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&s&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){s&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":s&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function KR(e){return!(e.type==="stylesheet"&&(e.state.loading&L1)===El)}function DL(e,t,r,s){if(r.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(r.state.loading&Nr)===El){if(r.instance===null){var u=dc(s.href),d=t.querySelector(ad(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=np.bind(e),t.then(e,e)),r.state.loading|=Nr,r.instance=d,Se(d);return}d=t.ownerDocument||t,s=GR(s),(u=Mr.get(u))&&hb(s,u),d=d.createElement("link"),Se(d);var y=d;y._p=new Promise(function(S,R){y.onload=S,y.onerror=R}),po(d,"link",s),r.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&L1)===El&&(e.count++,r=np.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}function AL(e,t){return e.stylesheets&&e.count===0&&op(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var s=setTimeout(function(){if(e.stylesheets&&op(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},Tz+t);0<e.imgBytes&&Gv===0&&(Gv=125*rL()*Oz);var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&op(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Gv?50:Cz)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(u)}}:null}function np(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)op(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function op(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lm=new Map,t.forEach(NL,e),lm=null,np.call(e))}function NL(e,t){if(!(t.state.loading&Nr)){var r=lm.get(e);if(r)var s=r.get(Xv);else{r=new Map,lm.set(e,r);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var y=u[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(r.set(y.dataset.precedence,y),s=y)}s&&r.set(Xv,s)}u=t.instance,y=u.getAttribute("data-precedence"),d=r.get(y)||s,d===s&&r.set(Xv,u),r.set(y,u),this.count++,s=np.bind(this),u.addEventListener("load",s),u.addEventListener("error",s),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=Nr}}function ML(e,t,r,s,u,d,y,S,R){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=wl,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=bn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bn(0),this.hiddenUpdates=bn(null),this.identifierPrefix=s,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=r?"hydrateRoot()":"createRoot()"}function JR(e,t,r,s,u,d,y,S,R,O,W,K){return e=new ML(e,t,r,y,R,O,W,K,S),t=KU,d===!0&&(t|=So|$r),t|=wt,d=v(3,null,null,t),e.current=d,d.stateNode=e,t=Vg(),Gs(t),e.pooledCache=t,Gs(t),d.memoizedState={element:s,isDehydrated:r,cache:t},Gg(d),e}function ZR(e){return e?(e=Zi,e):Zi}function mb(e,t,r,s,u,d){if(vo&&typeof vo.onScheduleFiberRoot=="function")try{vo.onScheduleFiberRoot(yc,s,r)}catch(y){Ra||(Ra=!0,console.error("React instrumentation encountered an error: %o",y))}u=ZR(u),s.context===null?s.context=u:s.pendingContext=u,xa&&or!==null&&!H1&&(H1=!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.
|
|
242
|
-
|
|
243
|
-
Check the render method of %s.`,H(or)||"Unknown")),s=ji(t),s.payload={element:r},d=d===void 0?null:d,d!==null&&(typeof d!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",d),s.callback=d),r=Hi(e,s,t),r!==null&&(la(t,"root.render()",null),Rn(r,e,t),Iu(r,e,t))}function eT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function gb(e,t){eT(e,t),(e=e.alternate)&&eT(e,t)}function tT(e){if(e.tag===13||e.tag===31){var t=bo(e,67108864);t!==null&&Rn(t,e,67108864),gb(e,67108864)}}function nT(e){if(e.tag===13||e.tag===31){var t=er(e);t=Zn(t);var r=bo(e,t);r!==null&&Rn(r,e,t),gb(e,t)}}function _L(){return or}function kL(e,t,r,s){var u=fe.T;fe.T=null;var d=Qt.p;try{Qt.p=vr,yb(e,t,r,s)}finally{Qt.p=d,fe.T=u}}function LL(e,t,r,s){var u=fe.T;fe.T=null;var d=Qt.p;try{Qt.p=Ca,yb(e,t,r,s)}finally{Qt.p=d,fe.T=u}}function yb(e,t,r,s){if(um){var u=bb(s);if(u===null)nb(e,t,s,dm,r),rT(e,s);else if(UL(u,e,t,r,s))s.stopPropagation();else if(rT(e,s),t&4&&-1<Az.indexOf(e)){for(;u!==null;){var d=ye(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=gt(d.pendingLanes);if(y!==0){var S=d;for(S.pendingLanes|=2,S.entangledLanes|=2;y;){var R=1<<31-Oo(y);S.entanglements[1]|=R,y&=~R}va(d),(It&(Kn|sr))===io&&(Gp=oo()+h1,ed(0))}}break;case 31:case 13:S=bo(d,2),S!==null&&Rn(S,d,2),lc(),gb(d,2)}if(d=bb(s),d===null&&nb(e,t,s,dm,r),d===u)break;u=d}u!==null&&s.stopPropagation()}else nb(e,t,s,null,r)}}function bb(e){return e=xg(e),vb(e)}function vb(e){if(dm=null,e=ge(e),e!==null){var t=A(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=k(t),e!==null)return e;e=null}else if(r===31){if(e=U(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return dm=e,null}function oT(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return vr;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 Ca;case"message":switch($L()){case kb:return vr;case Lb:return Ca;case gc:case qL:return ti;case Ub:return hp;default:return ti}default:return ti}}function rT(e,t){switch(e){case"focusin":case"focusout":ms=null;break;case"dragenter":case"dragleave":gs=null;break;case"mouseover":case"mouseout":ys=null;break;case"pointerover":case"pointerout":tf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nf.delete(t.pointerId)}}function sd(e,t,r,s,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:r,eventSystemFlags:s,nativeEvent:d,targetContainers:[u]},t!==null&&(t=ye(t),t!==null&&tT(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function UL(e,t,r,s,u){switch(t){case"focusin":return ms=sd(ms,e,t,r,s,u),!0;case"dragenter":return gs=sd(gs,e,t,r,s,u),!0;case"mouseover":return ys=sd(ys,e,t,r,s,u),!0;case"pointerover":var d=u.pointerId;return tf.set(d,sd(tf.get(d)||null,e,t,r,s,u)),!0;case"gotpointercapture":return d=u.pointerId,nf.set(d,sd(nf.get(d)||null,e,t,r,s,u)),!0}return!1}function aT(e){var t=ge(e.target);if(t!==null){var r=A(t);if(r!==null){if(t=r.tag,t===13){if(t=k(r),t!==null){e.blockedOn=t,D(e.priority,function(){nT(r)});return}}else if(t===31){if(t=U(r),t!==null){e.blockedOn=t,D(e.priority,function(){nT(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=bb(e.nativeEvent);if(r===null){r=e.nativeEvent;var s=new r.constructor(r.type,r),u=s;fd!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),fd=u,r.target.dispatchEvent(s),fd===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."),fd=null}else return t=ye(r),t!==null&&tT(t),e.blockedOn=r,!1;t.shift()}return!0}function iT(e,t,r){rp(e)&&r.delete(t)}function zL(){Qv=!1,ms!==null&&rp(ms)&&(ms=null),gs!==null&&rp(gs)&&(gs=null),ys!==null&&rp(ys)&&(ys=null),tf.forEach(iT),nf.forEach(iT)}function ap(e,t){e.blockedOn===t&&(e.blockedOn=null,Qv||(Qv=!0,Pn.unstable_scheduleCallback(Pn.unstable_NormalPriority,zL)))}function sT(e){fm!==e&&(fm=e,Pn.unstable_scheduleCallback(Pn.unstable_NormalPriority,function(){fm===e&&(fm=null);for(var t=0;t<e.length;t+=3){var r=e[t],s=e[t+1],u=e[t+2];if(typeof s!="function"){if(vb(s||r)===null)continue;break}var d=ye(r);d!==null&&(e.splice(t,3),t-=3,r={pending:!0,data:u,method:r.method,action:s},Object.freeze(r),vy(d,r,s,u))}}))}function hc(e){function t(R){return ap(R,e)}ms!==null&&ap(ms,e),gs!==null&&ap(gs,e),ys!==null&&ap(ys,e),tf.forEach(t),nf.forEach(t);for(var r=0;r<bs.length;r++){var s=bs[r];s.blockedOn===e&&(s.blockedOn=null)}for(;0<bs.length&&(r=bs[0],r.blockedOn===null);)aT(r),r.blockedOn===null&&bs.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(s=0;s<r.length;s+=3){var u=r[s],d=r[s+1],y=u[Do]||null;if(typeof d=="function")y||sT(r);else if(y){var S=null;if(d&&d.hasAttribute("formAction")){if(u=d,y=d[Do]||null)S=y.formAction;else if(vb(u)!==null)continue}else S=y.action;typeof S=="function"?r[s+1]=S:(r.splice(s,3),s-=3),sT(r)}}}function lT(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return u=y})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),s||setTimeout(r,20)}function r(){if(!s&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Sb(e){this._internalRoot=e}function ip(e){this._internalRoot=e}function cT(e){e[Qi]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Pn=C3(),wb=Gl(),PL=GA(),Dt=Object.assign,jL=Symbol.for("react.element"),wa=Symbol.for("react.transitional.element"),pc=Symbol.for("react.portal"),mc=Symbol.for("react.fragment"),sp=Symbol.for("react.strict_mode"),Eb=Symbol.for("react.profiler"),xb=Symbol.for("react.consumer"),Ea=Symbol.for("react.context"),ld=Symbol.for("react.forward_ref"),Rb=Symbol.for("react.suspense"),Tb=Symbol.for("react.suspense_list"),lp=Symbol.for("react.memo"),nr=Symbol.for("react.lazy"),Cb=Symbol.for("react.activity"),HL=Symbol.for("react.memo_cache_sentinel"),uT=Symbol.iterator,IL=Symbol.for("react.client.reference"),Qn=Array.isArray,fe=wb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qt=PL.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,BL=Object.freeze({pending:!1,data:null,method:null,action:null}),Ob=[],Db=[],ei=-1,qi=J(null),cd=J(null),Gi=J(null),cp=J(null),ud=0,dT,fT,hT,pT,mT,gT,yT;pe.__reactDisabledLog=!0;var Ab,bT,Nb=!1,Mb=new(typeof WeakMap=="function"?WeakMap:Map),or=null,xa=!1,Yr=Object.prototype.hasOwnProperty,_b=Pn.unstable_scheduleCallback,VL=Pn.unstable_cancelCallback,FL=Pn.unstable_shouldYield,YL=Pn.unstable_requestPaint,oo=Pn.unstable_now,$L=Pn.unstable_getCurrentPriorityLevel,kb=Pn.unstable_ImmediatePriority,Lb=Pn.unstable_UserBlockingPriority,gc=Pn.unstable_NormalPriority,qL=Pn.unstable_LowPriority,Ub=Pn.unstable_IdlePriority,GL=Pn.log,XL=Pn.unstable_setDisableYieldValue,yc=null,vo=null,Ra=!1,Ta=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Oo=Math.clz32?Math.clz32:ot,QL=Math.log,WL=Math.LN2,up=256,dp=262144,fp=4194304,vr=2,Ca=8,ti=32,hp=268435456,Xi=Math.random().toString(36).slice(2),mo="__reactFiber$"+Xi,Do="__reactProps$"+Xi,Qi="__reactContainer$"+Xi,zb="__reactEvents$"+Xi,KL="__reactListeners$"+Xi,JL="__reactHandles$"+Xi,vT="__reactResources$"+Xi,dd="__reactMarker$"+Xi,ST=new Set,el={},Pb={},ZL={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},eU=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]*$"),wT={},ET={},tU=/[\n"\\]/g,xT=!1,RT=!1,TT=!1,CT=!1,OT=!1,DT=!1,AT=["value","defaultValue"],NT=!1,MT=/["'&<>\n\t]|^\s|\s$/,nU="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(" "),_T="applet caption html table td th marquee object template foreignObject desc title".split(" "),oU=_T.concat(["button"]),rU="dd dt li option optgroup p rp rt".split(" "),kT={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},pp={},jb={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"]},LT=/([A-Z])/g,UT=/^ms-/,aU=/^(?:webkit|moz|o)[A-Z]/,iU=/^-ms-/,sU=/-(.)/g,zT=/;\s*$/,bc={},Hb={},PT=!1,jT=!1,HT=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(" ")),mp="http://www.w3.org/1998/Math/MathML",vc="http://www.w3.org/2000/svg",lU=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"]]),gp={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"},IT={"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},Sc={},cU=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]*$"),uU=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]*$"),BT=!1,Ao={},VT=/^on./,dU=/^on[^A-Z]/,fU=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]*$"),hU=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]*$"),pU=/^[\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,fd=null,wc=null,Ec=null,Ib=!1,Oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bb=!1;if(Oa)try{var hd={};Object.defineProperty(hd,"passive",{get:function(){Bb=!0}}),window.addEventListener("test",hd,hd),window.removeEventListener("test",hd,hd)}catch{Bb=!1}var Wi=null,Vb=null,yp=null,tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bp=zo(tl),pd=Dt({},tl,{view:0,detail:0}),mU=zo(pd),Fb,Yb,md,vp=Dt({},pd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==md&&(md&&e.type==="mousemove"?(Fb=e.screenX-md.screenX,Yb=e.screenY-md.screenY):Yb=Fb=0,md=e),Fb)},movementY:function(e){return"movementY"in e?e.movementY:Yb}}),FT=zo(vp),gU=Dt({},vp,{dataTransfer:0}),yU=zo(gU),bU=Dt({},pd,{relatedTarget:0}),$b=zo(bU),vU=Dt({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),SU=zo(vU),wU=Dt({},tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),EU=zo(wU),xU=Dt({},tl,{data:0}),YT=zo(xU),RU=YT,TU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CU={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"},OU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},DU=Dt({},pd,{key:function(e){if(e.key){var t=TU[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?CU[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rg,charCode:function(e){return e.type==="keypress"?rh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),AU=zo(DU),NU=Dt({},vp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$T=zo(NU),MU=Dt({},pd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rg}),_U=zo(MU),kU=Dt({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),LU=zo(kU),UU=Dt({},vp,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zU=zo(UU),PU=Dt({},tl,{newState:0,oldState:0}),jU=zo(PU),HU=[9,13,27,32],qT=229,qb=Oa&&"CompositionEvent"in window,gd=null;Oa&&"documentMode"in document&&(gd=document.documentMode);var IU=Oa&&"TextEvent"in window&&!gd,GT=Oa&&(!qb||gd&&8<gd&&11>=gd),XT=32,QT=String.fromCharCode(XT),WT=!1,xc=!1,BU={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},yd=null,bd=null,KT=!1;Oa&&(KT=sk("input")&&(!document.documentMode||9<document.documentMode));var No=typeof Object.is=="function"?Object.is:hk,VU=Oa&&"documentMode"in document&&11>=document.documentMode,Rc=null,Gb=null,vd=null,Xb=!1,Tc={animationend:Is("Animation","AnimationEnd"),animationiteration:Is("Animation","AnimationIteration"),animationstart:Is("Animation","AnimationStart"),transitionrun:Is("Transition","TransitionRun"),transitionstart:Is("Transition","TransitionStart"),transitioncancel:Is("Transition","TransitionCancel"),transitionend:Is("Transition","TransitionEnd")},Qb={},JT={};Oa&&(JT=document.createElement("div").style,"AnimationEvent"in window||(delete Tc.animationend.animation,delete Tc.animationiteration.animation,delete Tc.animationstart.animation),"TransitionEvent"in window||delete Tc.transitionend.transition);var ZT=Bs("animationend"),eC=Bs("animationiteration"),tC=Bs("animationstart"),FU=Bs("transitionrun"),YU=Bs("transitionstart"),$U=Bs("transitioncancel"),nC=Bs("transitionend"),oC=new Map,Wb="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(" ");Wb.push("scrollEnd");var rC=0;if(typeof performance=="object"&&typeof performance.now=="function")var qU=performance,aC=function(){return qU.now()};else{var GU=Date;aC=function(){return GU.now()}}var Kb=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},XU="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.",Sp=0,Jb=1,Zb=2,ev=3,wp="– ",Ep="+ ",iC=" ",cn=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Sr="Components ⚛",Lt="Scheduler ⚛",Ht="Blocking",Ki=!1,ni={color:"primary",properties:null,tooltipText:"",track:Sr},Ji={start:-0,end:-0,detail:{devtools:ni}},QU=["Changed Props",""],sC="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",WU=["Changed Props",sC],Sd=1,oi=2,wr=[],Cc=0,tv=0,Zi={};Object.freeze(Zi);var Er=null,Oc=null,ct=0,KU=1,wt=2,So=8,$r=16,JU=32,lC=!1;try{var cC=Object.preventExtensions({})}catch{lC=!0}var nv=new WeakMap,Dc=[],Ac=0,xp=null,wd=0,xr=[],Rr=0,nl=null,ri=1,ai="",go=null,un=null,Nt=!1,Da=!1,rr=null,es=null,Tr=!1,ov=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."),rv=J(null),av=J(null),uC={},Rp=null,Nc=null,Mc=!1,ZU=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},ez=Pn.unstable_scheduleCallback,tz=Pn.unstable_NormalPriority,jn={$$typeof:Ea,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Hn=Pn.unstable_now,Tp=console.createTask?console.createTask:function(){return null},Ed=1,Cp=2,ro=-0,ts=-0,ii=-0,si=null,Mo=-1.1,ol=-0,wn=-0,rt=-1.1,st=-1.1,gn=null,Tn=!1,rl=-0,Aa=-1.1,xd=null,ns=0,iv=null,sv=null,al=-1.1,Rd=null,_c=-1.1,Op=-1.1,li=-0,ci=-1.1,Cr=-1.1,lv=0,Td=null,dC=null,fC=null,os=-1.1,il=null,rs=-1.1,Dp=-1.1,hC=-0,pC=-0,Ap=0,nz=null,mC=0,Cd=-1.1,Np=!1,Mp=!1,Od=null,cv=0,sl=0,kc=null,gC=fe.S;fe.S=function(e,t){if(d1=oo(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>ci&&0>Cr){ci=Hn();var r=od(),s=nd();(r!==rs||s!==il)&&(rs=-1.1),os=r,il=s}Sk(e,t)}gC!==null&&gC(e,t)};var ll=J(null),qr={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Dd=[],Ad=[],Nd=[],Md=[],_d=[],kd=[],cl=new Set;qr.recordUnsafeLifecycleWarnings=function(e,t){cl.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Dd.push(e),e.mode&So&&typeof t.UNSAFE_componentWillMount=="function"&&Ad.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Nd.push(e),e.mode&So&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Md.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&_d.push(e),e.mode&So&&typeof t.UNSAFE_componentWillUpdate=="function"&&kd.push(e))},qr.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Dd.length&&(Dd.forEach(function(S){e.add(H(S)||"Component"),cl.add(S.type)}),Dd=[]);var t=new Set;0<Ad.length&&(Ad.forEach(function(S){t.add(H(S)||"Component"),cl.add(S.type)}),Ad=[]);var r=new Set;0<Nd.length&&(Nd.forEach(function(S){r.add(H(S)||"Component"),cl.add(S.type)}),Nd=[]);var s=new Set;0<Md.length&&(Md.forEach(function(S){s.add(H(S)||"Component"),cl.add(S.type)}),Md=[]);var u=new Set;0<_d.length&&(_d.forEach(function(S){u.add(H(S)||"Component"),cl.add(S.type)}),_d=[]);var d=new Set;if(0<kd.length&&(kd.forEach(function(S){d.add(H(S)||"Component"),cl.add(S.type)}),kd=[]),0<t.size){var y=p(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
244
|
-
|
|
245
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
246
|
-
|
|
247
|
-
Please update the following components: %s`,y)}0<s.size&&(y=p(s),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.
|
|
248
|
-
|
|
249
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
250
|
-
* 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
|
|
251
|
-
|
|
252
|
-
Please update the following components: %s`,y)),0<d.size&&(y=p(d),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.
|
|
253
|
-
|
|
254
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
255
|
-
|
|
256
|
-
Please update the following components: %s`,y)),0<e.size&&(y=p(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
257
|
-
|
|
258
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
259
|
-
* 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.
|
|
260
|
-
|
|
261
|
-
Please update the following components: %s`,y)),0<r.size&&(y=p(r),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
262
|
-
|
|
263
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
264
|
-
* 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
|
|
265
|
-
* 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.
|
|
266
|
-
|
|
267
|
-
Please update the following components: %s`,y)),0<u.size&&(y=p(u),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
268
|
-
|
|
269
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
270
|
-
* 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.
|
|
271
|
-
|
|
272
|
-
Please update the following components: %s`,y))};var _p=new Map,yC=new Set;qr.recordLegacyContextWarning=function(e,t){for(var r=null,s=e;s!==null;)s.mode&So&&(r=s),s=s.return;r===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!yC.has(e.type)&&(s=_p.get(r),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(s===void 0&&(s=[],_p.set(r,s)),s.push(e))},qr.flushLegacyContextWarning=function(){_p.forEach(function(e){if(e.length!==0){var t=e[0],r=new Set;e.forEach(function(u){r.add(H(u)||"Component"),yC.add(u.type)});var s=p(r);xe(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
273
|
-
|
|
274
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
275
|
-
|
|
276
|
-
Please update the following components: %s
|
|
277
|
-
|
|
278
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,s)})}})},qr.discardPendingWarnings=function(){Dd=[],Ad=[],Nd=[],Md=[],_d=[],kd=[],_p=new Map};var bC={react_stack_bottom_frame:function(e,t,r){var s=xa;xa=!0;try{return e(t,r)}finally{xa=s}}},uv=bC.react_stack_bottom_frame.bind(bC),vC={react_stack_bottom_frame:function(e){var t=xa;xa=!0;try{return e.render()}finally{xa=t}}},SC=vC.react_stack_bottom_frame.bind(vC),wC={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(r){Xt(e,e.return,r)}}},dv=wC.react_stack_bottom_frame.bind(wC),EC={react_stack_bottom_frame:function(e,t,r,s,u){try{t.componentDidUpdate(r,s,u)}catch(d){Xt(e,e.return,d)}}},xC=EC.react_stack_bottom_frame.bind(EC),RC={react_stack_bottom_frame:function(e,t){var r=t.stack;e.componentDidCatch(t.value,{componentStack:r!==null?r:""})}},oz=RC.react_stack_bottom_frame.bind(RC),TC={react_stack_bottom_frame:function(e,t,r){try{r.componentWillUnmount()}catch(s){Xt(e,t,s)}}},CC=TC.react_stack_bottom_frame.bind(TC),OC={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},rz=OC.react_stack_bottom_frame.bind(OC),DC={react_stack_bottom_frame:function(e,t,r){try{r()}catch(s){Xt(e,t,s)}}},az=DC.react_stack_bottom_frame.bind(DC),AC={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},iz=AC.react_stack_bottom_frame.bind(AC),Lc=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`."),fv=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."),kp=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."),Lp={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.')}},ul=null,Ld=!1,Uc=null,Ud=0,Et=null,hv,NC=hv=!1,MC={},_C={},kC={};b=function(e,t,r){if(r!==null&&typeof r=="object"&&r._store&&(!r._store.validated&&r.key==null||r._store.validated===2)){if(typeof r._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");r._store.validated=1;var s=H(e),u=s||"null";if(!MC[u]){MC[u]=!0,r=r._owner,e=e._debugOwner;var d="";e&&typeof e.tag=="number"&&(u=H(e))&&(d=`
|
|
279
|
-
|
|
280
|
-
Check the render method of \``+u+"`."),d||s&&(d=`
|
|
281
|
-
|
|
282
|
-
Check the top-level render call using <`+s+">.");var y="";r!=null&&e!==r&&(s=null,typeof r.tag=="number"?s=H(r):typeof r.name=="string"&&(s=r.name),s&&(y=" It was passed a child from "+s+".")),xe(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',d,y)})}}};var dl=TE(!0),LC=TE(!1),UC=0,zC=1,PC=2,pv=3,as=!1,jC=!1,mv=null,gv=!1,zc=J(null),Up=J(0),ar=J(null),Or=null,Pc=1,zd=2,_n=J(0),zp=0,Dr=1,_o=2,ir=4,ko=8,jc,HC=new Set,IC=new Set,yv=new Set,BC=new Set,ui=0,dt=null,en=null,In=null,Pp=!1,Hc=!1,fl=!1,jp=0,Pd=0,di=null,sz=0,lz=25,de=null,Ar=null,fi=-1,jd=!1,Hd={readContext:mn,use:Vi,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useLayoutEffect:On,useInsertionEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useSyncExternalStore:On,useId:On,useHostTransitionStatus:On,useFormState:On,useActionState:On,useOptimistic:On,useMemoCache:On,useCacheRefresh:On};Hd.useEffectEvent=On;var bv=null,VC=null,vv=null,FC=null,Na=null,Gr=null,Hp=null;bv={readContext:function(e){return mn(e)},use:Vi,useCallback:function(e,t){return de="useCallback",Ot(),tc(t),my(e,t)},useContext:function(e){return de="useContext",Ot(),mn(e)},useEffect:function(e,t){return de="useEffect",Ot(),tc(t),_h(e,t)},useImperativeHandle:function(e,t,r){return de="useImperativeHandle",Ot(),tc(r),py(e,t,r)},useInsertionEffect:function(e,t){de="useInsertionEffect",Ot(),tc(t),Qs(4,_o,e,t)},useLayoutEffect:function(e,t){return de="useLayoutEffect",Ot(),tc(t),hy(e,t)},useMemo:function(e,t){de="useMemo",Ot(),tc(t);var r=fe.H;fe.H=Na;try{return gy(e,t)}finally{fe.H=r}},useReducer:function(e,t,r){de="useReducer",Ot();var s=fe.H;fe.H=Na;try{return ry(e,t,r)}finally{fe.H=s}},useRef:function(e){return de="useRef",Ot(),dy(e)},useState:function(e){de="useState",Ot();var t=fe.H;fe.H=Na;try{return ly(e)}finally{fe.H=t}},useDebugValue:function(){de="useDebugValue",Ot()},useDeferredValue:function(e,t){return de="useDeferredValue",Ot(),yy(e,t)},useTransition:function(){return de="useTransition",Ot(),Sy()},useSyncExternalStore:function(e,t,r){return de="useSyncExternalStore",Ot(),iy(e,t,r)},useId:function(){return de="useId",Ot(),wy()},useFormState:function(e,t){return de="useFormState",Ot(),Oh(),oc(e,t)},useActionState:function(e,t){return de="useActionState",Ot(),oc(e,t)},useOptimistic:function(e){return de="useOptimistic",Ot(),cy(e)},useHostTransitionStatus:Ws,useMemoCache:Xs,useCacheRefresh:function(){return de="useCacheRefresh",Ot(),Ey()},useEffectEvent:function(e){return de="useEffectEvent",Ot(),fy(e)}},VC={readContext:function(e){return mn(e)},use:Vi,useCallback:function(e,t){return de="useCallback",Oe(),my(e,t)},useContext:function(e){return de="useContext",Oe(),mn(e)},useEffect:function(e,t){return de="useEffect",Oe(),_h(e,t)},useImperativeHandle:function(e,t,r){return de="useImperativeHandle",Oe(),py(e,t,r)},useInsertionEffect:function(e,t){de="useInsertionEffect",Oe(),Qs(4,_o,e,t)},useLayoutEffect:function(e,t){return de="useLayoutEffect",Oe(),hy(e,t)},useMemo:function(e,t){de="useMemo",Oe();var r=fe.H;fe.H=Na;try{return gy(e,t)}finally{fe.H=r}},useReducer:function(e,t,r){de="useReducer",Oe();var s=fe.H;fe.H=Na;try{return ry(e,t,r)}finally{fe.H=s}},useRef:function(e){return de="useRef",Oe(),dy(e)},useState:function(e){de="useState",Oe();var t=fe.H;fe.H=Na;try{return ly(e)}finally{fe.H=t}},useDebugValue:function(){de="useDebugValue",Oe()},useDeferredValue:function(e,t){return de="useDeferredValue",Oe(),yy(e,t)},useTransition:function(){return de="useTransition",Oe(),Sy()},useSyncExternalStore:function(e,t,r){return de="useSyncExternalStore",Oe(),iy(e,t,r)},useId:function(){return de="useId",Oe(),wy()},useActionState:function(e,t){return de="useActionState",Oe(),oc(e,t)},useFormState:function(e,t){return de="useFormState",Oe(),Oh(),oc(e,t)},useOptimistic:function(e){return de="useOptimistic",Oe(),cy(e)},useHostTransitionStatus:Ws,useMemoCache:Xs,useCacheRefresh:function(){return de="useCacheRefresh",Oe(),Ey()},useEffectEvent:function(e){return de="useEffectEvent",Oe(),fy(e)}},vv={readContext:function(e){return mn(e)},use:Vi,useCallback:function(e,t){return de="useCallback",Oe(),Uh(e,t)},useContext:function(e){return de="useContext",Oe(),mn(e)},useEffect:function(e,t){de="useEffect",Oe(),Po(2048,ko,e,t)},useImperativeHandle:function(e,t,r){return de="useImperativeHandle",Oe(),Lh(e,t,r)},useInsertionEffect:function(e,t){return de="useInsertionEffect",Oe(),Po(4,_o,e,t)},useLayoutEffect:function(e,t){return de="useLayoutEffect",Oe(),Po(4,ir,e,t)},useMemo:function(e,t){de="useMemo",Oe();var r=fe.H;fe.H=Gr;try{return zh(e,t)}finally{fe.H=r}},useReducer:function(e,t,r){de="useReducer",Oe();var s=fe.H;fe.H=Gr;try{return nc(e,t,r)}finally{fe.H=s}},useRef:function(){return de="useRef",Oe(),Wt().memoizedState},useState:function(){de="useState",Oe();var e=fe.H;fe.H=Gr;try{return nc(Vr)}finally{fe.H=e}},useDebugValue:function(){de="useDebugValue",Oe()},useDeferredValue:function(e,t){return de="useDeferredValue",Oe(),GE(e,t)},useTransition:function(){return de="useTransition",Oe(),ZE()},useSyncExternalStore:function(e,t,r){return de="useSyncExternalStore",Oe(),Ah(e,t,r)},useId:function(){return de="useId",Oe(),Wt().memoizedState},useFormState:function(e){return de="useFormState",Oe(),Oh(),Nh(e)},useActionState:function(e){return de="useActionState",Oe(),Nh(e)},useOptimistic:function(e,t){return de="useOptimistic",Oe(),PE(e,t)},useHostTransitionStatus:Ws,useMemoCache:Xs,useCacheRefresh:function(){return de="useCacheRefresh",Oe(),Wt().memoizedState},useEffectEvent:function(e){return de="useEffectEvent",Oe(),kh(e)}},FC={readContext:function(e){return mn(e)},use:Vi,useCallback:function(e,t){return de="useCallback",Oe(),Uh(e,t)},useContext:function(e){return de="useContext",Oe(),mn(e)},useEffect:function(e,t){de="useEffect",Oe(),Po(2048,ko,e,t)},useImperativeHandle:function(e,t,r){return de="useImperativeHandle",Oe(),Lh(e,t,r)},useInsertionEffect:function(e,t){return de="useInsertionEffect",Oe(),Po(4,_o,e,t)},useLayoutEffect:function(e,t){return de="useLayoutEffect",Oe(),Po(4,ir,e,t)},useMemo:function(e,t){de="useMemo",Oe();var r=fe.H;fe.H=Hp;try{return zh(e,t)}finally{fe.H=r}},useReducer:function(e,t,r){de="useReducer",Oe();var s=fe.H;fe.H=Hp;try{return Yu(e,t,r)}finally{fe.H=s}},useRef:function(){return de="useRef",Oe(),Wt().memoizedState},useState:function(){de="useState",Oe();var e=fe.H;fe.H=Hp;try{return Yu(Vr)}finally{fe.H=e}},useDebugValue:function(){de="useDebugValue",Oe()},useDeferredValue:function(e,t){return de="useDeferredValue",Oe(),XE(e,t)},useTransition:function(){return de="useTransition",Oe(),ex()},useSyncExternalStore:function(e,t,r){return de="useSyncExternalStore",Oe(),Ah(e,t,r)},useId:function(){return de="useId",Oe(),Wt().memoizedState},useFormState:function(e){return de="useFormState",Oe(),Oh(),Mh(e)},useActionState:function(e){return de="useActionState",Oe(),Mh(e)},useOptimistic:function(e,t){return de="useOptimistic",Oe(),HE(e,t)},useHostTransitionStatus:Ws,useMemoCache:Xs,useCacheRefresh:function(){return de="useCacheRefresh",Oe(),Wt().memoizedState},useEffectEvent:function(e){return de="useEffectEvent",Oe(),kh(e)}},Na={readContext:function(e){return g(),mn(e)},use:function(e){return h(),Vi(e)},useCallback:function(e,t){return de="useCallback",h(),Ot(),my(e,t)},useContext:function(e){return de="useContext",h(),Ot(),mn(e)},useEffect:function(e,t){return de="useEffect",h(),Ot(),_h(e,t)},useImperativeHandle:function(e,t,r){return de="useImperativeHandle",h(),Ot(),py(e,t,r)},useInsertionEffect:function(e,t){de="useInsertionEffect",h(),Ot(),Qs(4,_o,e,t)},useLayoutEffect:function(e,t){return de="useLayoutEffect",h(),Ot(),hy(e,t)},useMemo:function(e,t){de="useMemo",h(),Ot();var r=fe.H;fe.H=Na;try{return gy(e,t)}finally{fe.H=r}},useReducer:function(e,t,r){de="useReducer",h(),Ot();var s=fe.H;fe.H=Na;try{return ry(e,t,r)}finally{fe.H=s}},useRef:function(e){return de="useRef",h(),Ot(),dy(e)},useState:function(e){de="useState",h(),Ot();var t=fe.H;fe.H=Na;try{return ly(e)}finally{fe.H=t}},useDebugValue:function(){de="useDebugValue",h(),Ot()},useDeferredValue:function(e,t){return de="useDeferredValue",h(),Ot(),yy(e,t)},useTransition:function(){return de="useTransition",h(),Ot(),Sy()},useSyncExternalStore:function(e,t,r){return de="useSyncExternalStore",h(),Ot(),iy(e,t,r)},useId:function(){return de="useId",h(),Ot(),wy()},useFormState:function(e,t){return de="useFormState",h(),Ot(),oc(e,t)},useActionState:function(e,t){return de="useActionState",h(),Ot(),oc(e,t)},useOptimistic:function(e){return de="useOptimistic",h(),Ot(),cy(e)},useMemoCache:function(e){return h(),Xs(e)},useHostTransitionStatus:Ws,useCacheRefresh:function(){return de="useCacheRefresh",Ot(),Ey()},useEffectEvent:function(e){return de="useEffectEvent",h(),Ot(),fy(e)}},Gr={readContext:function(e){return g(),mn(e)},use:function(e){return h(),Vi(e)},useCallback:function(e,t){return de="useCallback",h(),Oe(),Uh(e,t)},useContext:function(e){return de="useContext",h(),Oe(),mn(e)},useEffect:function(e,t){de="useEffect",h(),Oe(),Po(2048,ko,e,t)},useImperativeHandle:function(e,t,r){return de="useImperativeHandle",h(),Oe(),Lh(e,t,r)},useInsertionEffect:function(e,t){return de="useInsertionEffect",h(),Oe(),Po(4,_o,e,t)},useLayoutEffect:function(e,t){return de="useLayoutEffect",h(),Oe(),Po(4,ir,e,t)},useMemo:function(e,t){de="useMemo",h(),Oe();var r=fe.H;fe.H=Gr;try{return zh(e,t)}finally{fe.H=r}},useReducer:function(e,t,r){de="useReducer",h(),Oe();var s=fe.H;fe.H=Gr;try{return nc(e,t,r)}finally{fe.H=s}},useRef:function(){return de="useRef",h(),Oe(),Wt().memoizedState},useState:function(){de="useState",h(),Oe();var e=fe.H;fe.H=Gr;try{return nc(Vr)}finally{fe.H=e}},useDebugValue:function(){de="useDebugValue",h(),Oe()},useDeferredValue:function(e,t){return de="useDeferredValue",h(),Oe(),GE(e,t)},useTransition:function(){return de="useTransition",h(),Oe(),ZE()},useSyncExternalStore:function(e,t,r){return de="useSyncExternalStore",h(),Oe(),Ah(e,t,r)},useId:function(){return de="useId",h(),Oe(),Wt().memoizedState},useFormState:function(e){return de="useFormState",h(),Oe(),Nh(e)},useActionState:function(e){return de="useActionState",h(),Oe(),Nh(e)},useOptimistic:function(e,t){return de="useOptimistic",h(),Oe(),PE(e,t)},useMemoCache:function(e){return h(),Xs(e)},useHostTransitionStatus:Ws,useCacheRefresh:function(){return de="useCacheRefresh",Oe(),Wt().memoizedState},useEffectEvent:function(e){return de="useEffectEvent",h(),Oe(),kh(e)}},Hp={readContext:function(e){return g(),mn(e)},use:function(e){return h(),Vi(e)},useCallback:function(e,t){return de="useCallback",h(),Oe(),Uh(e,t)},useContext:function(e){return de="useContext",h(),Oe(),mn(e)},useEffect:function(e,t){de="useEffect",h(),Oe(),Po(2048,ko,e,t)},useImperativeHandle:function(e,t,r){return de="useImperativeHandle",h(),Oe(),Lh(e,t,r)},useInsertionEffect:function(e,t){return de="useInsertionEffect",h(),Oe(),Po(4,_o,e,t)},useLayoutEffect:function(e,t){return de="useLayoutEffect",h(),Oe(),Po(4,ir,e,t)},useMemo:function(e,t){de="useMemo",h(),Oe();var r=fe.H;fe.H=Gr;try{return zh(e,t)}finally{fe.H=r}},useReducer:function(e,t,r){de="useReducer",h(),Oe();var s=fe.H;fe.H=Gr;try{return Yu(e,t,r)}finally{fe.H=s}},useRef:function(){return de="useRef",h(),Oe(),Wt().memoizedState},useState:function(){de="useState",h(),Oe();var e=fe.H;fe.H=Gr;try{return Yu(Vr)}finally{fe.H=e}},useDebugValue:function(){de="useDebugValue",h(),Oe()},useDeferredValue:function(e,t){return de="useDeferredValue",h(),Oe(),XE(e,t)},useTransition:function(){return de="useTransition",h(),Oe(),ex()},useSyncExternalStore:function(e,t,r){return de="useSyncExternalStore",h(),Oe(),Ah(e,t,r)},useId:function(){return de="useId",h(),Oe(),Wt().memoizedState},useFormState:function(e){return de="useFormState",h(),Oe(),Mh(e)},useActionState:function(e){return de="useActionState",h(),Oe(),Mh(e)},useOptimistic:function(e,t){return de="useOptimistic",h(),Oe(),HE(e,t)},useMemoCache:function(e){return h(),Xs(e)},useHostTransitionStatus:Ws,useCacheRefresh:function(){return de="useCacheRefresh",Oe(),Wt().memoizedState},useEffectEvent:function(e){return de="useEffectEvent",h(),Oe(),kh(e)}};var YC={},$C=new Set,qC=new Set,GC=new Set,XC=new Set,QC=new Set,WC=new Set,KC=new Set,JC=new Set,ZC=new Set,e1=new Set;Object.freeze(YC);var Sv={enqueueSetState:function(e,t,r){e=e._reactInternals;var s=er(e),u=ji(s);u.payload=t,r!=null&&(Ry(r),u.callback=r),t=Hi(e,u,s),t!==null&&(la(s,"this.setState()",e),Rn(t,e,s),Iu(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var s=er(e),u=ji(s);u.tag=zC,u.payload=t,r!=null&&(Ry(r),u.callback=r),t=Hi(e,u,s),t!==null&&(la(s,"this.replaceState()",e),Rn(t,e,s),Iu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=er(e),s=ji(r);s.tag=PC,t!=null&&(Ry(t),s.callback=t),t=Hi(e,s,r),t!==null&&(la(r,"this.forceUpdate()",e),Rn(t,e,r),Iu(t,e,r))}},Ic=null,wv=null,Ev=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."),Bn=!1,t1={},n1={},o1={},r1={},Bc=!1,a1={},Ip={},xv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},i1=!1,s1=null;s1=new Set;var hi=!1,Vn=!1,Rv=!1,l1=typeof WeakSet=="function"?WeakSet:Set,ao=null,Vc=null,Fc=null,Fn=null,Io=!1,Xr=null,Wn=!1,Id=8192,cz={getCacheForType:function(e){var t=mn(jn),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return mn(jn).controller.signal},getOwner:function(){return or}};if(typeof Symbol=="function"&&Symbol.for){var Bd=Symbol.for;Bd("selector.component"),Bd("selector.has_pseudo_class"),Bd("selector.role"),Bd("selector.test_id"),Bd("selector.text")}var uz=[],dz=typeof WeakMap=="function"?WeakMap:Map,io=0,Kn=2,sr=4,pi=0,Vd=1,hl=2,Bp=3,is=4,Vp=6,c1=5,It=io,tn=null,Tt=null,xt=0,Bo=0,Fp=1,pl=2,Fd=3,u1=4,Tv=5,Yd=6,Yp=7,Cv=8,ml=9,Kt=Bo,lr=null,ss=!1,Yc=!1,Ov=!1,Ma=0,En=pi,ls=0,cs=0,Dv=0,Vo=0,gl=0,$d=null,Lo=null,$p=!1,qp=0,d1=0,f1=300,Gp=1/0,h1=500,qd=null,Dn=null,us=null,Xp=0,Av=1,Nv=2,p1=3,ds=0,m1=1,g1=2,y1=3,b1=4,Qp=5,Yn=0,fs=null,$c=null,Qr=0,Mv=0,_v=-0,kv=null,v1=null,S1=null,Wr=Xp,w1=null,fz=50,Gd=0,Lv=null,Uv=!1,Wp=!1,hz=50,yl=0,Xd=null,qc=!1,Kp=null,E1=!1,x1=new Set,pz={},Jp=null,Gc=null,zv=!1,Pv=!1,Zp=!1,jv=!1,hs=0,Hv={};(function(){for(var e=0;e<Wb.length;e++){var t=Wb[e],r=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Ir(r,"on"+t)}Ir(ZT,"onAnimationEnd"),Ir(eC,"onAnimationIteration"),Ir(tC,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(FU,"onTransitionRun"),Ir(YU,"onTransitionStart"),Ir($U,"onTransitionCancel"),Ir(nC,"onTransitionEnd")})(),Ve("onMouseEnter",["mouseout","mouseover"]),Ve("onMouseLeave",["mouseout","mouseover"]),Ve("onPointerEnter",["pointerout","pointerover"]),Ve("onPointerLeave",["pointerout","pointerover"]),Ke("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ke("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ke("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ke("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ke("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ke("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qd="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(" "),Iv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qd)),em="_reactListening"+Math.random().toString(36).slice(2),R1=!1,T1=!1,tm=!1,C1=!1,nm=!1,om=!1,O1=!1,rm={},mz=/\r\n?/g,gz=/\u0000|\uFFFD/g,bl="http://www.w3.org/1999/xlink",Bv="http://www.w3.org/XML/1998/namespace",yz="javascript:throw new Error('React form unexpectedly submitted.')",bz="suppressHydrationWarning",vl="&",am="/&",Wd="$",Kd="/$",ps="$?",Sl="$~",Xc="$!",vz="html",Sz="body",wz="head",Vv="F!",D1="F",A1="loading",Ez="style",mi=0,Qc=1,im=2,Fv=null,Yv=null,N1={dialog:!0,webview:!0},$v=null,Jd=void 0,M1=typeof setTimeout=="function"?setTimeout:void 0,xz=typeof clearTimeout=="function"?clearTimeout:void 0,wl=-1,_1=typeof Promise=="function"?Promise:void 0,Rz=typeof queueMicrotask=="function"?queueMicrotask:typeof _1<"u"?function(e){return _1.resolve(null).then(e).catch(iL)}:M1,qv=null,El=0,Zd=1,k1=2,L1=3,Nr=4,Mr=new Map,U1=new Set,gi=Qt.d;Qt.d={f:function(){var e=gi.f(),t=lc();return e||t},r:function(e){var t=ye(e);t!==null&&t.tag===5&&t.type==="form"?JE(t):gi.r(e)},D:function(e){gi.D(e),$R("dns-prefetch",e,null)},C:function(e,t){gi.C(e,t),$R("preconnect",e,t)},L:function(e,t,r){gi.L(e,t,r);var s=Wc;if(s&&e&&t){var u='link[rel="preload"][as="'+je(t)+'"]';t==="image"&&r&&r.imageSrcSet?(u+='[imagesrcset="'+je(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(u+='[imagesizes="'+je(r.imageSizes)+'"]')):u+='[href="'+je(e)+'"]';var d=u;switch(t){case"style":d=dc(e);break;case"script":d=fc(e)}Mr.has(d)||(e=Dt({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Mr.set(d,e),s.querySelector(u)!==null||t==="style"&&s.querySelector(ad(d))||t==="script"&&s.querySelector(id(d))||(t=s.createElement("link"),po(t,"link",e),Se(t),s.head.appendChild(t)))}},m:function(e,t){gi.m(e,t);var r=Wc;if(r&&e){var s=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+je(s)+'"][href="'+je(e)+'"]',d=u;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=fc(e)}if(!Mr.has(d)&&(e=Dt({rel:"modulepreload",href:e},t),Mr.set(d,e),r.querySelector(u)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(id(d)))return}s=r.createElement("link"),po(s,"link",e),Se(s),r.head.appendChild(s)}}},X:function(e,t){gi.X(e,t);var r=Wc;if(r&&e){var s=$e(r).hoistableScripts,u=fc(e),d=s.get(u);d||(d=r.querySelector(id(u)),d||(e=Dt({src:e,async:!0},t),(t=Mr.get(u))&&pb(e,t),d=r.createElement("script"),Se(d),po(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(u,d))}},S:function(e,t,r){gi.S(e,t,r);var s=Wc;if(s&&e){var u=$e(s).hoistableStyles,d=dc(e);t=t||"default";var y=u.get(d);if(!y){var S={loading:El,preload:null};if(y=s.querySelector(ad(d)))S.loading=Zd|Nr;else{e=Dt({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Mr.get(d))&&hb(e,r);var R=y=s.createElement("link");Se(R),po(R,"link",e),R._p=new Promise(function(O,W){R.onload=O,R.onerror=W}),R.addEventListener("load",function(){S.loading|=Zd}),R.addEventListener("error",function(){S.loading|=k1}),S.loading|=Nr,tp(y,t,s)}y={type:"stylesheet",instance:y,count:1,state:S},u.set(d,y)}}},M:function(e,t){gi.M(e,t);var r=Wc;if(r&&e){var s=$e(r).hoistableScripts,u=fc(e),d=s.get(u);d||(d=r.querySelector(id(u)),d||(e=Dt({src:e,async:!0,type:"module"},t),(t=Mr.get(u))&&pb(e,t),d=r.createElement("script"),Se(d),po(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(u,d))}}};var Wc=typeof document>"u"?null:document,sm=null,Tz=6e4,Cz=800,Oz=500,Gv=0,Xv=null,lm=null,xl=BL,ef={$$typeof:Ea,Provider:null,Consumer:null,_currentValue:xl,_currentValue2:xl,_threadCount:0},z1="%c%s%c",P1="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",j1="",cm=" ",Dz=Function.prototype.bind,H1=!1,I1=null,B1=null,V1=null,F1=null,Y1=null,$1=null,q1=null,G1=null,X1=null,Q1=null;I1=function(e,t,r,s){t=o(e,t),t!==null&&(r=n(t.memoizedState,r,0,s),t.memoizedState=r,t.baseState=r,e.memoizedProps=Dt({},e.memoizedProps),r=bo(e,2),r!==null&&Rn(r,e,2))},B1=function(e,t,r){t=o(e,t),t!==null&&(r=l(t.memoizedState,r,0),t.memoizedState=r,t.baseState=r,e.memoizedProps=Dt({},e.memoizedProps),r=bo(e,2),r!==null&&Rn(r,e,2))},V1=function(e,t,r,s){t=o(e,t),t!==null&&(r=a(t.memoizedState,r,s),t.memoizedState=r,t.baseState=r,e.memoizedProps=Dt({},e.memoizedProps),r=bo(e,2),r!==null&&Rn(r,e,2))},F1=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=bo(e,2),t!==null&&Rn(t,e,2)},Y1=function(e,t){e.pendingProps=l(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=bo(e,2),t!==null&&Rn(t,e,2)},$1=function(e,t,r){e.pendingProps=a(e.memoizedProps,t,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=bo(e,2),t!==null&&Rn(t,e,2)},q1=function(e){var t=bo(e,2);t!==null&&Rn(t,e,2)},G1=function(e){var t=on(),r=bo(e,t);r!==null&&Rn(r,e,t)},X1=function(e){f=e},Q1=function(e){c=e};var um=!0,dm=null,Qv=!1,ms=null,gs=null,ys=null,tf=new Map,nf=new Map,bs=[],Az="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(" "),fm=null;if(ip.prototype.render=Sb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var r=arguments;typeof r[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):C(r[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof r[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),r=e;var s=t.current,u=er(s);mb(s,u,r,t,null,null)},ip.prototype.unmount=Sb.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(It&(Kn|sr))!==io&&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."),mb(e.current,2,null,e,null,null),lc(),t[Qi]=null}},ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=Un();e={blockedOn:null,target:e,priority:t};for(var r=0;r<bs.length&&t!==0&&t<bs[r].priority;r++);bs.splice(r,0,e),r===0&&aT(e)}},(function(){var e=wb.version;if(e!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
283
|
-
- react: `+(e+`
|
|
284
|
-
- react-dom: 19.2.4
|
|
285
|
-
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"),Qt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=Y(t),e=e!==null?$(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:fe,reconcilerVersion:"19.2.4"};return e.overrideHookState=I1,e.overrideHookStateDeletePath=B1,e.overrideHookStateRenamePath=V1,e.overrideProps=F1,e.overridePropsDeletePath=Y1,e.overridePropsRenamePath=$1,e.scheduleUpdate=q1,e.scheduleRetry=G1,e.setErrorHandler=X1,e.setSuspenseHandler=Q1,e.scheduleRefresh=E,e.scheduleRoot=w,e.setRefreshHandler=T,e.getCurrentFiber=_L,tt(e)})()&&Oa&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var W1=window.location.protocol;/^(https?|file):$/.test(W1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(W1==="file:"?`
|
|
286
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}rf.createRoot=function(e,t){if(!C(e))throw Error("Target container is not a DOM element.");cT(e);var r=!1,s="",u=ix,d=sx,y=lx;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===wa&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
287
|
-
|
|
288
|
-
let root = createRoot(domContainer);
|
|
289
|
-
root.render(<App />);`),t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=JR(e,1,!1,null,null,r,s,null,u,d,y,lT),e[Qi]=t.current,tb(e),new Sb(t)},rf.hydrateRoot=function(e,t,r){if(!C(e))throw Error("Target container is not a DOM element.");cT(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var s=!1,u="",d=ix,y=sx,S=lx,R=null;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(S=r.onRecoverableError),r.formState!==void 0&&(R=r.formState)),t=JR(e,1,!0,t,r??null,s,u,R,d,y,S,lT),t.context=ZR(null),r=t.current,s=er(r),s=Zn(s),u=ji(s),u.callback=null,Hi(r,u,s),la(s,"hydrateRoot()",null),r=s,t.current.lanes=r,bt(t,r),va(t),e[Qi]=t.current,tb(e),new ip(t)},rf.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),rf}var wO;function A3(){return wO||(wO=1,e0.exports=D3()),e0.exports}var N3=A3();/**
|
|
290
|
-
* react-router v7.13.0
|
|
291
|
-
*
|
|
292
|
-
* Copyright (c) Remix Software Inc.
|
|
293
|
-
*
|
|
294
|
-
* This source code is licensed under the MIT license found in the
|
|
295
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
296
|
-
*
|
|
297
|
-
* @license MIT
|
|
298
|
-
*/var XA=o=>{throw TypeError(o)},M3=(o,n,a)=>n.has(o)||XA("Cannot "+a),r0=(o,n,a)=>(M3(o,n,"read from private field"),a?a.call(o):n.get(o)),_3=(o,n,a)=>n.has(o)?XA("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(o):n.set(o,a),EO="popstate";function k3(o={}){function n(i,l){let{pathname:c,search:f,hash:h}=i.location;return Of("",{pathname:c,search:f,hash:h},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function a(i,l){return typeof l=="string"?l:Va(l)}return U3(n,a,null,o)}function Mt(o,n){if(o===!1||o===null||typeof o>"u")throw new Error(n)}function qn(o,n){if(!o){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function L3(){return Math.random().toString(36).substring(2,10)}function xO(o,n){return{usr:o.state,key:o.key,idx:n}}function Of(o,n,a=null,i){return{pathname:typeof o=="string"?o:o.pathname,search:"",hash:"",...typeof n=="string"?Us(n):n,state:a,key:n&&n.key||i||L3()}}function Va({pathname:o="/",search:n="",hash:a=""}){return n&&n!=="?"&&(o+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(o+=a.charAt(0)==="#"?a:"#"+a),o}function Us(o){let n={};if(o){let a=o.indexOf("#");a>=0&&(n.hash=o.substring(a),o=o.substring(0,a));let i=o.indexOf("?");i>=0&&(n.search=o.substring(i),o=o.substring(0,i)),o&&(n.pathname=o)}return n}function U3(o,n,a,i={}){let{window:l=document.defaultView,v5Compat:c=!1}=i,f=l.history,h="POP",g=null,m=b();m==null&&(m=0,f.replaceState({...f.state,idx:m},""));function b(){return(f.state||{idx:null}).idx}function p(){h="POP";let C=b(),A=C==null?null:C-m;m=C,g&&g({action:h,location:T.location,delta:A})}function v(C,A){h="PUSH";let k=Of(T.location,C,A);m=b()+1;let U=xO(k,m),M=T.createHref(k);try{f.pushState(U,"",M)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;l.location.assign(M)}c&&g&&g({action:h,location:T.location,delta:1})}function w(C,A){h="REPLACE";let k=Of(T.location,C,A);m=b();let U=xO(k,m),M=T.createHref(k);f.replaceState(U,"",M),c&&g&&g({action:h,location:T.location,delta:0})}function E(C){return QA(C)}let T={get action(){return h},get location(){return o(l,f)},listen(C){if(g)throw new Error("A history only accepts one active listener");return l.addEventListener(EO,p),g=C,()=>{l.removeEventListener(EO,p),g=null}},createHref(C){return n(l,C)},createURL:E,encodeLocation(C){let A=E(C);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:v,replace:w,go(C){return f.go(C)}};return T}function QA(o,n=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),Mt(a,"No window.location.(origin|href) available to create URL");let i=typeof o=="string"?o:Va(o);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=a+i),new URL(i,a)}var gf,RO=class{constructor(o){if(_3(this,gf,new Map),o)for(let[n,a]of o)this.set(n,a)}get(o){if(r0(this,gf).has(o))return r0(this,gf).get(o);if(o.defaultValue!==void 0)return o.defaultValue;throw new Error("No value found for context")}set(o,n){r0(this,gf).set(o,n)}};gf=new WeakMap;var z3=new Set(["lazy","caseSensitive","path","id","index","children"]);function P3(o){return z3.has(o)}var j3=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function H3(o){return j3.has(o)}function I3(o){return o.index===!0}function Df(o,n,a=[],i={},l=!1){return o.map((c,f)=>{let h=[...a,String(f)],g=typeof c.id=="string"?c.id:h.join("-");if(Mt(c.index!==!0||!c.children,"Cannot specify children on an index route"),Mt(l||!i[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),I3(c)){let m={...c,id:g};return i[g]=TO(m,n(m)),m}else{let m={...c,id:g,children:void 0};return i[g]=TO(m,n(m)),c.children&&(m.children=Df(c.children,n,h,i,l)),m}})}function TO(o,n){return Object.assign(o,{...n,...typeof n.lazy=="object"&&n.lazy!=null?{lazy:{...o.lazy,...n.lazy}}:{}})}function ws(o,n,a="/"){return yf(o,n,a,!1)}function yf(o,n,a,i){let l=typeof n=="string"?Us(n):n,c=Pr(l.pathname||"/",a);if(c==null)return null;let f=WA(o);V3(f);let h=null;for(let g=0;h==null&&g<f.length;++g){let m=Z3(c);h=K3(f[g],m,i)}return h}function B3(o,n){let{route:a,pathname:i,params:l}=o;return{id:a.id,pathname:i,params:l,data:n[a.id],loaderData:n[a.id],handle:a.handle}}function WA(o,n=[],a=[],i="",l=!1){let c=(f,h,g=l,m)=>{let b={relativePath:m===void 0?f.path||"":m,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(i)&&g)return;Mt(b.relativePath.startsWith(i),`Absolute route path "${b.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(i.length)}let p=Ia([i,b.relativePath]),v=a.concat(b);f.children&&f.children.length>0&&(Mt(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),WA(f.children,n,v,p,g)),!(f.path==null&&!f.index)&&n.push({path:p,score:Q3(p,f.index),routesMeta:v})};return o.forEach((f,h)=>{var g;if(f.path===""||!((g=f.path)!=null&&g.includes("?")))c(f,h);else for(let m of KA(f.path))c(f,h,!0,m)}),n}function KA(o){let n=o.split("/");if(n.length===0)return[];let[a,...i]=n,l=a.endsWith("?"),c=a.replace(/\?$/,"");if(i.length===0)return l?[c,""]:[c];let f=KA(i.join("/")),h=[];return h.push(...f.map(g=>g===""?c:[c,g].join("/"))),l&&h.push(...f),h.map(g=>o.startsWith("/")&&g===""?"/":g)}function V3(o){o.sort((n,a)=>n.score!==a.score?a.score-n.score:W3(n.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var F3=/^:[\w-]+$/,Y3=3,$3=2,q3=1,G3=10,X3=-2,CO=o=>o==="*";function Q3(o,n){let a=o.split("/"),i=a.length;return a.some(CO)&&(i+=X3),n&&(i+=$3),a.filter(l=>!CO(l)).reduce((l,c)=>l+(F3.test(c)?Y3:c===""?q3:G3),i)}function W3(o,n){return o.length===n.length&&o.slice(0,-1).every((i,l)=>i===n[l])?o[o.length-1]-n[n.length-1]:0}function K3(o,n,a=!1){let{routesMeta:i}=o,l={},c="/",f=[];for(let h=0;h<i.length;++h){let g=i[h],m=h===i.length-1,b=c==="/"?n:n.slice(c.length)||"/",p=Af({path:g.relativePath,caseSensitive:g.caseSensitive,end:m},b),v=g.route;if(!p&&m&&a&&!i[i.length-1].route.index&&(p=Af({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!p)return null;Object.assign(l,p.params),f.push({params:l,pathname:Ia([c,p.pathname]),pathnameBase:nP(Ia([c,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(c=Ia([c,p.pathnameBase]))}return f}function Af(o,n){typeof o=="string"&&(o={path:o,caseSensitive:!1,end:!0});let[a,i]=J3(o.path,o.caseSensitive,o.end),l=n.match(a);if(!l)return null;let c=l[0],f=c.replace(/(.)\/+$/,"$1"),h=l.slice(1);return{params:i.reduce((m,{paramName:b,isOptional:p},v)=>{if(b==="*"){let E=h[v]||"";f=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const w=h[v];return p&&!w?m[b]=void 0:m[b]=(w||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:f,pattern:o}}function J3(o,n=!1,a=!0){qn(o==="*"||!o.endsWith("*")||o.endsWith("/*"),`Route path "${o}" will be treated as if it were "${o.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${o.replace(/\*$/,"/*")}".`);let i=[],l="^"+o.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,g)=>(i.push({paramName:h,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return o.endsWith("*")?(i.push({paramName:"*"}),l+=o==="*"||o==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":o!==""&&o!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,n?void 0:"i"),i]}function Z3(o){try{return o.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return qn(!1,`The URL path "${o}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),o}}function Pr(o,n){if(n==="/")return o;if(!o.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,i=o.charAt(a);return i&&i!=="/"?null:o.slice(a)||"/"}function eP({basename:o,pathname:n}){return n==="/"?o:Ia([o,n])}var JA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_S=o=>JA.test(o);function tP(o,n="/"){let{pathname:a,search:i="",hash:l=""}=typeof o=="string"?Us(o):o,c;return a?(a=a.replace(/\/\/+/g,"/"),a.startsWith("/")?c=OO(a.substring(1),"/"):c=OO(a,n)):c=n,{pathname:c,search:oP(i),hash:rP(l)}}function OO(o,n){let a=n.replace(/\/+$/,"").split("/");return o.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function a0(o,n,a,i){return`Cannot include a '${o}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ZA(o){return o.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function kS(o){let n=ZA(o);return n.map((a,i)=>i===n.length-1?a.pathname:a.pathnameBase)}function LS(o,n,a,i=!1){let l;typeof o=="string"?l=Us(o):(l={...o},Mt(!l.pathname||!l.pathname.includes("?"),a0("?","pathname","search",l)),Mt(!l.pathname||!l.pathname.includes("#"),a0("#","pathname","hash",l)),Mt(!l.search||!l.search.includes("#"),a0("#","search","hash",l)));let c=o===""||l.pathname==="",f=c?"/":l.pathname,h;if(f==null)h=a;else{let p=n.length-1;if(!i&&f.startsWith("..")){let v=f.split("/");for(;v[0]==="..";)v.shift(),p-=1;l.pathname=v.join("/")}h=p>=0?n[p]:"/"}let g=tP(l,h),m=f&&f!=="/"&&f.endsWith("/"),b=(c||f===".")&&a.endsWith("/");return!g.pathname.endsWith("/")&&(m||b)&&(g.pathname+="/"),g}var Ia=o=>o.join("/").replace(/\/\/+/g,"/"),nP=o=>o.replace(/\/+$/,"").replace(/^\/*/,"/"),oP=o=>!o||o==="?"?"":o.startsWith("?")?o:"?"+o,rP=o=>!o||o==="#"?"":o.startsWith("#")?o:"#"+o,$f=class{constructor(o,n,a,i=!1){this.status=o,this.statusText=n||"",this.internal=i,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function Nf(o){return o!=null&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.internal=="boolean"&&"data"in o}function qf(o){return o.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var eN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function tN(o,n){let a=o;if(typeof a!="string"||!JA.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let i=a,l=!1;if(eN)try{let c=new URL(window.location.href),f=a.startsWith("//")?new URL(c.protocol+a):new URL(a),h=Pr(f.pathname,n);f.origin===c.origin&&h!=null?a=h+f.search+f.hash:l=!0}catch{qn(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:l,to:a}}var Ns=Symbol("Uninstrumented");function aP(o,n){let a={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};o.forEach(l=>l({id:n.id,index:n.index,path:n.path,instrument(c){let f=Object.keys(a);for(let h of f)c[h]&&a[h].push(c[h])}}));let i={};if(typeof n.lazy=="function"&&a.lazy.length>0){let l=nu(a.lazy,n.lazy,()=>{});l&&(i.lazy=l)}if(typeof n.lazy=="object"){let l=n.lazy;["middleware","loader","action"].forEach(c=>{let f=l[c],h=a[`lazy.${c}`];if(typeof f=="function"&&h.length>0){let g=nu(h,f,()=>{});g&&(i.lazy=Object.assign(i.lazy||{},{[c]:g}))}})}return["loader","action"].forEach(l=>{let c=n[l];if(typeof c=="function"&&a[l].length>0){let f=c[Ns]??c,h=nu(a[l],f,(...g)=>DO(g[0]));h&&(l==="loader"&&f.hydrate===!0&&(h.hydrate=!0),h[Ns]=f,i[l]=h)}}),n.middleware&&n.middleware.length>0&&a.middleware.length>0&&(i.middleware=n.middleware.map(l=>{let c=l[Ns]??l,f=nu(a.middleware,c,(...h)=>DO(h[0]));return f?(f[Ns]=c,f):l})),i}function iP(o,n){let a={navigate:[],fetch:[]};if(n.forEach(i=>i({instrument(l){let c=Object.keys(l);for(let f of c)l[f]&&a[f].push(l[f])}})),a.navigate.length>0){let i=o.navigate[Ns]??o.navigate,l=nu(a.navigate,i,(...c)=>{let[f,h]=c;return{to:typeof f=="number"||typeof f=="string"?f:f?Va(f):".",...AO(o,h??{})}});l&&(l[Ns]=i,o.navigate=l)}if(a.fetch.length>0){let i=o.fetch[Ns]??o.fetch,l=nu(a.fetch,i,(...c)=>{let[f,,h,g]=c;return{href:h??".",fetcherKey:f,...AO(o,g??{})}});l&&(l[Ns]=i,o.fetch=l)}return o}function nu(o,n,a){return o.length===0?null:async(...i)=>{let l=await nN(o,a(...i),()=>n(...i),o.length-1);if(l.type==="error")throw l.value;return l.value}}async function nN(o,n,a,i){let l=o[i],c;if(l){let f,h=async()=>(f?console.error("You cannot call instrumented handlers more than once"):f=nN(o,n,a,i-1),c=await f,Mt(c,"Expected a result"),c.type==="error"&&c.value instanceof Error?{status:"error",error:c.value}:{status:"success",error:void 0});try{await l(h,n)}catch(g){console.error("An instrumentation function threw an error:",g)}f||await h(),await f}else try{c={type:"success",value:await a()}}catch(f){c={type:"error",value:f}}return c||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function DO(o){let{request:n,context:a,params:i,unstable_pattern:l}=o;return{request:sP(n),params:{...i},unstable_pattern:l,context:lP(a)}}function AO(o,n){return{currentUrl:Va(o.state.location),..."formMethod"in n?{formMethod:n.formMethod}:{},..."formEncType"in n?{formEncType:n.formEncType}:{},..."formData"in n?{formData:n.formData}:{},..."body"in n?{body:n.body}:{}}}function sP(o){return{method:o.method,url:o.url,headers:{get:(...n)=>o.headers.get(...n)}}}function lP(o){if(uP(o)){let n={...o};return Object.freeze(n),n}else return{get:n=>o.get(n)}}var cP=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function uP(o){if(o===null||typeof o!="object")return!1;const n=Object.getPrototypeOf(o);return n===Object.prototype||n===null||Object.getOwnPropertyNames(n).sort().join("\0")===cP}var oN=["POST","PUT","PATCH","DELETE"],dP=new Set(oN),fP=["GET",...oN],hP=new Set(fP),rN=new Set([301,302,303,307,308]),pP=new Set([307,308]),i0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},mP={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},af={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},gP=o=>({hasErrorBoundary:!!o.hasErrorBoundary}),aN="remix-router-transitions",iN=Symbol("ResetLoaderData");function yP(o){const n=o.window?o.window:typeof window<"u"?window:void 0,a=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u";Mt(o.routes.length>0,"You must provide a non-empty routes array to createRouter");let i=o.hydrationRouteProperties||[],l=o.mapRouteProperties||gP,c=l;if(o.unstable_instrumentations){let B=o.unstable_instrumentations;c=Q=>({...l(Q),...aP(B.map(ue=>ue.route).filter(Boolean),Q)})}let f={},h=Df(o.routes,c,void 0,f),g,m=o.basename||"/";m.startsWith("/")||(m=`/${m}`);let b=o.dataStrategy||EP,p={...o.future},v=null,w=new Set,E=null,T=null,C=null,A=o.hydrationData!=null,k=ws(h,o.history.location,m),U=!1,M=null,Y;if(k==null&&!o.patchRoutesOnNavigation){let B=kr(404,{pathname:o.history.location.pathname}),{matches:Q,route:ue}=gm(h);Y=!0,k=Q,M={[ue.id]:B}}else if(k&&!o.hydrationData&&Rt(k,h,o.history.location.pathname).active&&(k=null),k)if(k.some(B=>B.route.lazy))Y=!1;else if(!k.some(B=>US(B.route)))Y=!0;else{let B=o.hydrationData?o.hydrationData.loaderData:null,Q=o.hydrationData?o.hydrationData.errors:null;if(Q){let ue=k.findIndex(Ee=>Q[Ee.route.id]!==void 0);Y=k.slice(0,ue+1).every(Ee=>!J0(Ee.route,B,Q))}else Y=k.every(ue=>!J0(ue.route,B,Q))}else{Y=!1,k=[];let B=Rt(null,h,o.history.location.pathname);B.active&&B.matches&&(U=!0,k=B.matches)}let $,_={historyAction:o.history.action,location:o.history.location,matches:k,initialized:Y,navigation:i0,restoreScrollPosition:o.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:o.hydrationData&&o.hydrationData.loaderData||{},actionData:o.hydrationData&&o.hydrationData.actionData||null,errors:o.hydrationData&&o.hydrationData.errors||M,fetchers:new Map,blockers:new Map},z="POP",te=null,H=!1,J,N=!1,j=new Map,ne=null,Z=!1,P=!1,oe=new Set,I=new Map,se=0,pe=-1,L=new Map,ce=new Set,ie=new Map,me=new Map,Te=new Set,Ue=new Map,ve,ze=null;function Pe(){if(v=o.history.listen(({action:B,location:Q,delta:ue})=>{if(ve){ve(),ve=void 0;return}qn(Ue.size===0||ue!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ee=ye({currentLocation:_.location,nextLocation:Q,historyAction:B});if(Ee&&ue!=null){let Me=new Promise(Je=>{ve=Je});o.history.go(ue*-1),ge(Ee,{state:"blocked",location:Q,proceed(){ge(Ee,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),Me.then(()=>o.history.go(ue))},reset(){let Je=new Map(_.blockers);Je.set(Ee,af),he({blockers:Je})}}),te==null||te.resolve(),te=null;return}return Re(B,Q)}),a){IP(n,j);let B=()=>BP(n,j);n.addEventListener("pagehide",B),ne=()=>n.removeEventListener("pagehide",B)}return _.initialized||Re("POP",_.location,{initialHydration:!0}),$}function at(){v&&v(),ne&&ne(),w.clear(),J&&J.abort(),_.fetchers.forEach((B,Q)=>ln(Q)),_.blockers.forEach((B,Q)=>G(Q))}function xe(B){return w.add(B),()=>w.delete(B)}function he(B,Q={}){B.matches&&(B.matches=B.matches.map(Me=>{let Je=f[Me.route.id],Ze=Me.route;return Ze.element!==Je.element||Ze.errorElement!==Je.errorElement||Ze.hydrateFallbackElement!==Je.hydrateFallbackElement?{...Me,route:Je}:Me})),_={..._,...B};let ue=[],Ee=[];_.fetchers.forEach((Me,Je)=>{Me.state==="idle"&&(Te.has(Je)?ue.push(Je):Ee.push(Je))}),Te.forEach(Me=>{!_.fetchers.has(Me)&&!I.has(Me)&&ue.push(Me)}),[...w].forEach(Me=>Me(_,{deletedFetchers:ue,newErrors:B.errors??null,viewTransitionOpts:Q.viewTransitionOpts,flushSync:Q.flushSync===!0})),ue.forEach(Me=>ln(Me)),Ee.forEach(Me=>_.fetchers.delete(Me))}function we(B,Q,{flushSync:ue}={}){var ut,et;let Ee=_.actionData!=null&&_.navigation.formMethod!=null&&xo(_.navigation.formMethod)&&_.navigation.state==="loading"&&((ut=B.state)==null?void 0:ut._isRedirect)!==!0,Me;Q.actionData?Object.keys(Q.actionData).length>0?Me=Q.actionData:Me=null:Ee?Me=_.actionData:Me=null;let Je=Q.loaderData?HO(_.loaderData,Q.loaderData,Q.matches||[],Q.errors):_.loaderData,Ze=_.blockers;Ze.size>0&&(Ze=new Map(Ze),Ze.forEach((vt,_t)=>Ze.set(_t,af)));let je=Z?!1:Ve(B,Q.matches||_.matches),Fe=H===!0||_.navigation.formMethod!=null&&xo(_.navigation.formMethod)&&((et=B.state)==null?void 0:et._isRedirect)!==!0;g&&(h=g,g=void 0),Z||z==="POP"||(z==="PUSH"?o.history.push(B,B.state):z==="REPLACE"&&o.history.replace(B,B.state));let Qe;if(z==="POP"){let vt=j.get(_.location.pathname);vt&&vt.has(B.pathname)?Qe={currentLocation:_.location,nextLocation:B}:j.has(B.pathname)&&(Qe={currentLocation:B,nextLocation:_.location})}else if(N){let vt=j.get(_.location.pathname);vt?vt.add(B.pathname):(vt=new Set([B.pathname]),j.set(_.location.pathname,vt)),Qe={currentLocation:_.location,nextLocation:B}}he({...Q,actionData:Me,loaderData:Je,historyAction:z,location:B,initialized:!0,navigation:i0,revalidation:"idle",restoreScrollPosition:je,preventScrollReset:Fe,blockers:Ze},{viewTransitionOpts:Qe,flushSync:ue===!0}),z="POP",H=!1,N=!1,Z=!1,P=!1,te==null||te.resolve(),te=null,ze==null||ze.resolve(),ze=null}async function De(B,Q){if(te==null||te.resolve(),te=null,typeof B=="number"){te||(te=FO());let _t=te.promise;return o.history.go(B),_t}let ue=K0(_.location,_.matches,m,B,Q==null?void 0:Q.fromRouteId,Q==null?void 0:Q.relative),{path:Ee,submission:Me,error:Je}=NO(!1,ue,Q),Ze=_.location,je=Of(_.location,Ee,Q&&Q.state);je={...je,...o.history.encodeLocation(je)};let Fe=Q&&Q.replace!=null?Q.replace:void 0,Qe="PUSH";Fe===!0?Qe="REPLACE":Fe===!1||Me!=null&&xo(Me.formMethod)&&Me.formAction===_.location.pathname+_.location.search&&(Qe="REPLACE");let ut=Q&&"preventScrollReset"in Q?Q.preventScrollReset===!0:void 0,et=(Q&&Q.flushSync)===!0,vt=ye({currentLocation:Ze,nextLocation:je,historyAction:Qe});if(vt){ge(vt,{state:"blocked",location:je,proceed(){ge(vt,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),De(B,Q)},reset(){let _t=new Map(_.blockers);_t.set(vt,af),he({blockers:_t})}});return}await Re(Qe,je,{submission:Me,pendingError:Je,preventScrollReset:ut,replace:Q&&Q.replace,enableViewTransition:Q&&Q.viewTransition,flushSync:et,callSiteDefaultShouldRevalidate:Q&&Q.unstable_defaultShouldRevalidate})}function Ye(){ze||(ze=FO()),bn(),he({revalidation:"loading"});let B=ze.promise;return _.navigation.state==="submitting"?B:_.navigation.state==="idle"?(Re(_.historyAction,_.location,{startUninterruptedRevalidation:!0}),B):(Re(z||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:N===!0}),B)}async function Re(B,Q,ue){J&&J.abort(),J=null,z=B,Z=(ue&&ue.startUninterruptedRevalidation)===!0,Ke(_.location,_.matches),H=(ue&&ue.preventScrollReset)===!0,N=(ue&&ue.enableViewTransition)===!0;let Ee=g||h,Me=ue&&ue.overrideNavigation,Je=ue!=null&&ue.initialHydration&&_.matches&&_.matches.length>0&&!U?_.matches:ws(Ee,Q,m),Ze=(ue&&ue.flushSync)===!0;if(Je&&_.initialized&&!P&&NP(_.location,Q)&&!(ue&&ue.submission&&xo(ue.submission.formMethod))){we(Q,{matches:Je},{flushSync:Ze});return}let je=Rt(Je,Ee,Q.pathname);if(je.active&&je.matches&&(Je=je.matches),!Je){let{error:Mn,notFoundMatches:eo,route:Gt}=Ne(Q.pathname);we(Q,{matches:eo,loaderData:{},errors:{[Gt.id]:Mn}},{flushSync:Ze});return}J=new AbortController;let Fe=eu(o.history,Q,J.signal,ue&&ue.submission),Qe=o.getContext?await o.getContext():new RO,ut;if(ue&&ue.pendingError)ut=[Es(Je).route.id,{type:"error",error:ue.pendingError}];else if(ue&&ue.submission&&xo(ue.submission.formMethod)){let Mn=await Ae(Fe,Q,ue.submission,Je,Qe,je.active,ue&&ue.initialHydration===!0,{replace:ue.replace,flushSync:Ze});if(Mn.shortCircuited)return;if(Mn.pendingActionResult){let[eo,Gt]=Mn.pendingActionResult;if(ur(Gt)&&Nf(Gt.error)&&Gt.error.status===404){J=null,we(Q,{matches:Mn.matches,loaderData:{},errors:{[eo]:Gt.error}});return}}Je=Mn.matches||Je,ut=Mn.pendingActionResult,Me=s0(Q,ue.submission),Ze=!1,je.active=!1,Fe=eu(o.history,Fe.url,Fe.signal)}let{shortCircuited:et,matches:vt,loaderData:_t,errors:Sn}=await Le(Fe,Q,Je,Qe,je.active,Me,ue&&ue.submission,ue&&ue.fetcherSubmission,ue&&ue.replace,ue&&ue.initialHydration===!0,Ze,ut,ue&&ue.callSiteDefaultShouldRevalidate);et||(J=null,we(Q,{matches:vt||Je,...IO(ut),loaderData:_t,errors:Sn}))}async function Ae(B,Q,ue,Ee,Me,Je,Ze,je={}){bn();let Fe=jP(Q,ue);if(he({navigation:Fe},{flushSync:je.flushSync===!0}),Je){let et=await Cn(Ee,Q.pathname,B.signal);if(et.type==="aborted")return{shortCircuited:!0};if(et.type==="error"){if(et.partialMatches.length===0){let{matches:_t,route:Sn}=gm(h);return{matches:_t,pendingActionResult:[Sn.id,{type:"error",error:et.error}]}}let vt=Es(et.partialMatches).route.id;return{matches:et.partialMatches,pendingActionResult:[vt,{type:"error",error:et.error}]}}else if(et.matches)Ee=et.matches;else{let{notFoundMatches:vt,error:_t,route:Sn}=Ne(Q.pathname);return{matches:vt,pendingActionResult:[Sn.id,{type:"error",error:_t}]}}}let Qe,ut=km(Ee,Q);if(!ut.route.action&&!ut.route.lazy)Qe={type:"error",error:kr(405,{method:B.method,pathname:Q.pathname,routeId:ut.route.id})};else{let et=ou(c,f,B,Ee,ut,Ze?[]:i,Me),vt=await $t(B,et,Me,null);if(Qe=vt[ut.route.id],!Qe){for(let _t of Ee)if(vt[_t.route.id]){Qe=vt[_t.route.id];break}}if(B.signal.aborted)return{shortCircuited:!0}}if(Nl(Qe)){let et;return je&&je.replace!=null?et=je.replace:et=zO(Qe.response.headers.get("Location"),new URL(B.url),m,o.history)===_.location.pathname+_.location.search,await ht(B,Qe,!0,{submission:ue,replace:et}),{shortCircuited:!0}}if(ur(Qe)){let et=Es(Ee,ut.route.id);return(je&&je.replace)!==!0&&(z="PUSH"),{matches:Ee,pendingActionResult:[et.route.id,Qe,ut.route.id]}}return{matches:Ee,pendingActionResult:[ut.route.id,Qe]}}async function Le(B,Q,ue,Ee,Me,Je,Ze,je,Fe,Qe,ut,et,vt){let _t=Je||s0(Q,Ze),Sn=Ze||je||VO(_t),Mn=!Z&&!Qe;if(Me){if(Mn){let zn=tt(et);he({navigation:_t,...zn!==void 0?{actionData:zn}:{}},{flushSync:ut})}let Ct=await Cn(ue,Q.pathname,B.signal);if(Ct.type==="aborted")return{shortCircuited:!0};if(Ct.type==="error"){if(Ct.partialMatches.length===0){let{matches:_i,route:$a}=gm(h);return{matches:_i,loaderData:{},errors:{[$a.id]:Ct.error}}}let zn=Es(Ct.partialMatches).route.id;return{matches:Ct.partialMatches,loaderData:{},errors:{[zn]:Ct.error}}}else if(Ct.matches)ue=Ct.matches;else{let{error:zn,notFoundMatches:_i,route:$a}=Ne(Q.pathname);return{matches:_i,loaderData:{},errors:{[$a.id]:zn}}}}let eo=g||h,{dsMatches:Gt,revalidatingFetchers:Ro}=MO(B,Ee,c,f,o.history,_,ue,Sn,Q,Qe?[]:i,Qe===!0,P,oe,Te,ie,ce,eo,m,o.patchRoutesOnNavigation!=null,et,vt);if(pe=++se,!o.dataStrategy&&!Gt.some(Ct=>Ct.shouldLoad)&&!Gt.some(Ct=>Ct.route.middleware&&Ct.route.middleware.length>0)&&Ro.length===0){let Ct=uo();return we(Q,{matches:ue,loaderData:{},errors:et&&ur(et[1])?{[et[0]]:et[1].error}:null,...IO(et),...Ct?{fetchers:new Map(_.fetchers)}:{}},{flushSync:ut}),{shortCircuited:!0}}if(Mn){let Ct={};if(!Me){Ct.navigation=_t;let zn=tt(et);zn!==void 0&&(Ct.actionData=zn)}Ro.length>0&&(Ct.fetchers=Ce(Ro)),he(Ct,{flushSync:ut})}Ro.forEach(Ct=>{hn(Ct.key),Ct.controller&&I.set(Ct.key,Ct.controller)});let oa=()=>Ro.forEach(Ct=>hn(Ct.key));J&&J.signal.addEventListener("abort",oa);let{loaderResults:Xn,fetcherResults:To}=await on(Gt,Ro,B,Ee);if(B.signal.aborted)return{shortCircuited:!0};J&&J.signal.removeEventListener("abort",oa),Ro.forEach(Ct=>I.delete(Ct.key));let to=ym(Xn);if(to)return await ht(B,to.result,!0,{replace:Fe}),{shortCircuited:!0};if(to=ym(To),to)return ce.add(to.key),await ht(B,to.result,!0,{replace:Fe}),{shortCircuited:!0};let{loaderData:Kl,errors:Hr}=jO(_,ue,Xn,et,Ro,To);Qe&&_.errors&&(Hr={..._.errors,...Hr});let yr=uo(),Mi=Un(pe),ra=yr||Mi||Ro.length>0;return{matches:ue,loaderData:Kl,errors:Hr,...ra?{fetchers:new Map(_.fetchers)}:{}}}function tt(B){if(B&&!ur(B[1]))return{[B[0]]:B[1].data};if(_.actionData)return Object.keys(_.actionData).length===0?null:_.actionData}function Ce(B){return B.forEach(Q=>{let ue=_.fetchers.get(Q.key),Ee=sf(void 0,ue?ue.data:void 0);_.fetchers.set(Q.key,Ee)}),new Map(_.fetchers)}async function ot(B,Q,ue,Ee){hn(B);let Me=(Ee&&Ee.flushSync)===!0,Je=g||h,Ze=K0(_.location,_.matches,m,ue,Q,Ee==null?void 0:Ee.relative),je=ws(Je,Ze,m),Fe=Rt(je,Je,Ze);if(Fe.active&&Fe.matches&&(je=Fe.matches),!je){jt(B,Q,kr(404,{pathname:Ze}),{flushSync:Me});return}let{path:Qe,submission:ut,error:et}=NO(!0,Ze,Ee);if(et){jt(B,Q,et,{flushSync:Me});return}let vt=o.getContext?await o.getContext():new RO,_t=(Ee&&Ee.preventScrollReset)===!0;if(ut&&xo(ut.formMethod)){await gt(B,Q,Qe,je,vt,Fe.active,Me,_t,ut,Ee&&Ee.unstable_defaultShouldRevalidate);return}ie.set(B,{routeId:Q,path:Qe}),await yt(B,Q,Qe,je,vt,Fe.active,Me,_t,ut)}async function gt(B,Q,ue,Ee,Me,Je,Ze,je,Fe,Qe){bn(),ie.delete(B);let ut=_.fetchers.get(B);bt(B,HP(Fe,ut),{flushSync:Ze});let et=new AbortController,vt=eu(o.history,ue,et.signal,Fe);if(Je){let pn=await Cn(Ee,new URL(vt.url).pathname,vt.signal,B);if(pn.type==="aborted")return;if(pn.type==="error"){jt(B,Q,pn.error,{flushSync:Ze});return}else if(pn.matches)Ee=pn.matches;else{jt(B,Q,kr(404,{pathname:ue}),{flushSync:Ze});return}}let _t=km(Ee,ue);if(!_t.route.action&&!_t.route.lazy){let pn=kr(405,{method:Fe.formMethod,pathname:ue,routeId:Q});jt(B,Q,pn,{flushSync:Ze});return}I.set(B,et);let Sn=se,Mn=ou(c,f,vt,Ee,_t,i,Me),eo=await $t(vt,Mn,Me,B),Gt=eo[_t.route.id];if(!Gt){for(let pn of Mn)if(eo[pn.route.id]){Gt=eo[pn.route.id];break}}if(vt.signal.aborted){I.get(B)===et&&I.delete(B);return}if(Te.has(B)){if(Nl(Gt)||ur(Gt)){bt(B,Si(void 0));return}}else{if(Nl(Gt))if(I.delete(B),pe>Sn){bt(B,Si(void 0));return}else return ce.add(B),bt(B,sf(Fe)),ht(vt,Gt,!1,{fetcherSubmission:Fe,preventScrollReset:je});if(ur(Gt)){jt(B,Q,Gt.error);return}}let Ro=_.navigation.location||_.location,oa=eu(o.history,Ro,et.signal),Xn=g||h,To=_.navigation.state!=="idle"?ws(Xn,_.navigation.location,m):_.matches;Mt(To,"Didn't find any matches after fetcher action");let to=++se;L.set(B,to);let Kl=sf(Fe,Gt.data);_.fetchers.set(B,Kl);let{dsMatches:Hr,revalidatingFetchers:yr}=MO(oa,Me,c,f,o.history,_,To,Fe,Ro,i,!1,P,oe,Te,ie,ce,Xn,m,o.patchRoutesOnNavigation!=null,[_t.route.id,Gt],Qe);yr.filter(pn=>pn.key!==B).forEach(pn=>{let ki=pn.key,Jl=_.fetchers.get(ki),nh=sf(void 0,Jl?Jl.data:void 0);_.fetchers.set(ki,nh),hn(ki),pn.controller&&I.set(ki,pn.controller)}),he({fetchers:new Map(_.fetchers)});let Mi=()=>yr.forEach(pn=>hn(pn.key));et.signal.addEventListener("abort",Mi);let{loaderResults:ra,fetcherResults:Ct}=await on(Hr,yr,oa,Me);if(et.signal.aborted)return;if(et.signal.removeEventListener("abort",Mi),L.delete(B),I.delete(B),yr.forEach(pn=>I.delete(pn.key)),_.fetchers.has(B)){let pn=Si(Gt.data);_.fetchers.set(B,pn)}let zn=ym(ra);if(zn)return ht(oa,zn.result,!1,{preventScrollReset:je});if(zn=ym(Ct),zn)return ce.add(zn.key),ht(oa,zn.result,!1,{preventScrollReset:je});let{loaderData:_i,errors:$a}=jO(_,To,ra,void 0,yr,Ct);Un(to),_.navigation.state==="loading"&&to>pe?(Mt(z,"Expected pending action"),J&&J.abort(),we(_.navigation.location,{matches:To,loaderData:_i,errors:$a,fetchers:new Map(_.fetchers)})):(he({errors:$a,loaderData:HO(_.loaderData,_i,To,$a),fetchers:new Map(_.fetchers)}),P=!1)}async function yt(B,Q,ue,Ee,Me,Je,Ze,je,Fe){let Qe=_.fetchers.get(B);bt(B,sf(Fe,Qe?Qe.data:void 0),{flushSync:Ze});let ut=new AbortController,et=eu(o.history,ue,ut.signal);if(Je){let Gt=await Cn(Ee,new URL(et.url).pathname,et.signal,B);if(Gt.type==="aborted")return;if(Gt.type==="error"){jt(B,Q,Gt.error,{flushSync:Ze});return}else if(Gt.matches)Ee=Gt.matches;else{jt(B,Q,kr(404,{pathname:ue}),{flushSync:Ze});return}}let vt=km(Ee,ue);I.set(B,ut);let _t=se,Sn=ou(c,f,et,Ee,vt,i,Me),eo=(await $t(et,Sn,Me,B))[vt.route.id];if(I.get(B)===ut&&I.delete(B),!et.signal.aborted){if(Te.has(B)){bt(B,Si(void 0));return}if(Nl(eo))if(pe>_t){bt(B,Si(void 0));return}else{ce.add(B),await ht(et,eo,!1,{preventScrollReset:je});return}if(ur(eo)){jt(B,Q,eo.error);return}bt(B,Si(eo.data))}}async function ht(B,Q,ue,{submission:Ee,fetcherSubmission:Me,preventScrollReset:Je,replace:Ze}={}){ue||(te==null||te.resolve(),te=null),Q.response.headers.has("X-Remix-Revalidate")&&(P=!0);let je=Q.response.headers.get("Location");Mt(je,"Expected a Location header on the redirect Response"),je=zO(je,new URL(B.url),m,o.history);let Fe=Of(_.location,je,{_isRedirect:!0});if(a){let Sn=!1;if(Q.response.headers.has("X-Remix-Reload-Document"))Sn=!0;else if(_S(je)){const Mn=QA(je,!0);Sn=Mn.origin!==n.location.origin||Pr(Mn.pathname,m)==null}if(Sn){Ze?n.location.replace(je):n.location.assign(je);return}}J=null;let Qe=Ze===!0||Q.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ut,formAction:et,formEncType:vt}=_.navigation;!Ee&&!Me&&ut&&et&&vt&&(Ee=VO(_.navigation));let _t=Ee||Me;if(pP.has(Q.response.status)&&_t&&xo(_t.formMethod))await Re(Qe,Fe,{submission:{..._t,formAction:je},preventScrollReset:Je||H,enableViewTransition:ue?N:void 0});else{let Sn=s0(Fe,Ee);await Re(Qe,Fe,{overrideNavigation:Sn,fetcherSubmission:Me,preventScrollReset:Je||H,enableViewTransition:ue?N:void 0})}}async function $t(B,Q,ue,Ee){var Ze;let Me,Je={};try{Me=await RP(b,B,Q,Ee,ue,!1)}catch(je){return Q.filter(Fe=>Fe.shouldLoad).forEach(Fe=>{Je[Fe.route.id]={type:"error",error:je}}),Je}if(B.signal.aborted)return Je;if(!xo(B.method))for(let je of Q){if(((Ze=Me[je.route.id])==null?void 0:Ze.type)==="error")break;!Me.hasOwnProperty(je.route.id)&&!_.loaderData.hasOwnProperty(je.route.id)&&(!_.errors||!_.errors.hasOwnProperty(je.route.id))&&je.shouldCallHandler()&&(Me[je.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${je.route.id}`)})}for(let[je,Fe]of Object.entries(Me))if(LP(Fe)){let Qe=Fe.result;Je[je]={type:"redirect",response:DP(Qe,B,je,Q,m)}}else Je[je]=await OP(Fe);return Je}async function on(B,Q,ue,Ee){let Me=$t(ue,B,Ee,null),Je=Promise.all(Q.map(async Fe=>{if(Fe.matches&&Fe.match&&Fe.request&&Fe.controller){let ut=(await $t(Fe.request,Fe.matches,Ee,Fe.key))[Fe.match.route.id];return{[Fe.key]:ut}}else return Promise.resolve({[Fe.key]:{type:"error",error:kr(404,{pathname:Fe.path})}})})),Ze=await Me,je=(await Je).reduce((Fe,Qe)=>Object.assign(Fe,Qe),{});return{loaderResults:Ze,fetcherResults:je}}function bn(){P=!0,ie.forEach((B,Q)=>{I.has(Q)&&oe.add(Q),hn(Q)})}function bt(B,Q,ue={}){_.fetchers.set(B,Q),he({fetchers:new Map(_.fetchers)},{flushSync:(ue&&ue.flushSync)===!0})}function jt(B,Q,ue,Ee={}){let Me=Es(_.matches,Q);ln(B),he({errors:{[Me.route.id]:ue},fetchers:new Map(_.fetchers)},{flushSync:(Ee&&Ee.flushSync)===!0})}function Ft(B){return me.set(B,(me.get(B)||0)+1),Te.has(B)&&Te.delete(B),_.fetchers.get(B)||mP}function vn(B,Q){hn(B,Q==null?void 0:Q.reason),bt(B,Si(null))}function ln(B){let Q=_.fetchers.get(B);I.has(B)&&!(Q&&Q.state==="loading"&&L.has(B))&&hn(B),ie.delete(B),L.delete(B),ce.delete(B),Te.delete(B),oe.delete(B),_.fetchers.delete(B)}function Zn(B){let Q=(me.get(B)||0)-1;Q<=0?(me.delete(B),Te.add(B)):me.set(B,Q),he({fetchers:new Map(_.fetchers)})}function hn(B,Q){let ue=I.get(B);ue&&(ue.abort(Q),I.delete(B))}function co(B){for(let Q of B){let ue=Ft(Q),Ee=Si(ue.data);_.fetchers.set(Q,Ee)}}function uo(){let B=[],Q=!1;for(let ue of ce){let Ee=_.fetchers.get(ue);Mt(Ee,`Expected fetcher: ${ue}`),Ee.state==="loading"&&(ce.delete(ue),B.push(ue),Q=!0)}return co(B),Q}function Un(B){let Q=[];for(let[ue,Ee]of L)if(Ee<B){let Me=_.fetchers.get(ue);Mt(Me,`Expected fetcher: ${ue}`),Me.state==="loading"&&(hn(ue),L.delete(ue),Q.push(ue))}return co(Q),Q.length>0}function D(B,Q){let ue=_.blockers.get(B)||af;return Ue.get(B)!==Q&&Ue.set(B,Q),ue}function G(B){_.blockers.delete(B),Ue.delete(B)}function ge(B,Q){let ue=_.blockers.get(B)||af;Mt(ue.state==="unblocked"&&Q.state==="blocked"||ue.state==="blocked"&&Q.state==="blocked"||ue.state==="blocked"&&Q.state==="proceeding"||ue.state==="blocked"&&Q.state==="unblocked"||ue.state==="proceeding"&&Q.state==="unblocked",`Invalid blocker state transition: ${ue.state} -> ${Q.state}`);let Ee=new Map(_.blockers);Ee.set(B,Q),he({blockers:Ee})}function ye({currentLocation:B,nextLocation:Q,historyAction:ue}){if(Ue.size===0)return;Ue.size>1&&qn(!1,"A router only supports one blocker at a time");let Ee=Array.from(Ue.entries()),[Me,Je]=Ee[Ee.length-1],Ze=_.blockers.get(Me);if(!(Ze&&Ze.state==="proceeding")&&Je({currentLocation:B,nextLocation:Q,historyAction:ue}))return Me}function Ne(B){let Q=kr(404,{pathname:B}),ue=g||h,{matches:Ee,route:Me}=gm(ue);return{notFoundMatches:Ee,route:Me,error:Q}}function $e(B,Q,ue){if(E=B,C=Q,T=ue||null,!A&&_.navigation===i0){A=!0;let Ee=Ve(_.location,_.matches);Ee!=null&&he({restoreScrollPosition:Ee})}return()=>{E=null,C=null,T=null}}function Se(B,Q){return T&&T(B,Q.map(Ee=>B3(Ee,_.loaderData)))||B.key}function Ke(B,Q){if(E&&C){let ue=Se(B,Q);E[ue]=C()}}function Ve(B,Q){if(E){let ue=Se(B,Q),Ee=E[ue];if(typeof Ee=="number")return Ee}return null}function Rt(B,Q,ue){if(o.patchRoutesOnNavigation)if(B){if(Object.keys(B[0].params).length>0)return{active:!0,matches:yf(Q,ue,m,!0)}}else return{active:!0,matches:yf(Q,ue,m,!0)||[]};return{active:!1,matches:null}}async function Cn(B,Q,ue,Ee){if(!o.patchRoutesOnNavigation)return{type:"success",matches:B};let Me=B;for(;;){let Je=g==null,Ze=g||h,je=f;try{await o.patchRoutesOnNavigation({signal:ue,path:Q,matches:Me,fetcherKey:Ee,patch:(ut,et)=>{ue.aborted||_O(ut,et,Ze,je,c,!1)}})}catch(ut){return{type:"error",error:ut,partialMatches:Me}}finally{Je&&!ue.aborted&&(h=[...h])}if(ue.aborted)return{type:"aborted"};let Fe=ws(Ze,Q,m),Qe=null;if(Fe){if(Object.keys(Fe[0].params).length===0)return{type:"success",matches:Fe};if(Qe=yf(Ze,Q,m,!0),!(Qe&&Me.length<Qe.length&&rn(Me,Qe.slice(0,Me.length))))return{type:"success",matches:Fe}}if(Qe||(Qe=yf(Ze,Q,m,!0)),!Qe||rn(Me,Qe))return{type:"success",matches:null};Me=Qe}}function rn(B,Q){return B.length===Q.length&&B.every((ue,Ee)=>ue.route.id===Q[Ee].route.id)}function xn(B){f={},g=Df(B,c,void 0,f)}function Qo(B,Q,ue=!1){let Ee=g==null;_O(B,Q,g||h,f,c,ue),Ee&&(h=[...h],he({}))}return $={get basename(){return m},get future(){return p},get state(){return _},get routes(){return h},get window(){return n},initialize:Pe,subscribe:xe,enableScrollRestoration:$e,navigate:De,fetch:ot,revalidate:Ye,createHref:B=>o.history.createHref(B),encodeLocation:B=>o.history.encodeLocation(B),getFetcher:Ft,resetFetcher:vn,deleteFetcher:Zn,dispose:at,getBlocker:D,deleteBlocker:G,patchRoutes:Qo,_internalFetchControllers:I,_internalSetRoutes:xn,_internalSetStateDoNotUseOrYouWillBreakYourApp(B){he(B)}},o.unstable_instrumentations&&($=iP($,o.unstable_instrumentations.map(B=>B.router).filter(Boolean))),$}function bP(o){return o!=null&&("formData"in o&&o.formData!=null||"body"in o&&o.body!==void 0)}function K0(o,n,a,i,l,c){let f,h;if(l){f=[];for(let m of n)if(f.push(m),m.route.id===l){h=m;break}}else f=n,h=n[n.length-1];let g=LS(i||".",kS(f),Pr(o.pathname,a)||o.pathname,c==="path");if(i==null&&(g.search=o.search,g.hash=o.hash),(i==null||i===""||i===".")&&h){let m=PS(g.search);if(h.route.index&&!m)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&m){let b=new URLSearchParams(g.search),p=b.getAll("index");b.delete("index"),p.filter(w=>w).forEach(w=>b.append("index",w));let v=b.toString();g.search=v?`?${v}`:""}}return a!=="/"&&(g.pathname=eP({basename:a,pathname:g.pathname})),Va(g)}function NO(o,n,a){if(!a||!bP(a))return{path:n};if(a.formMethod&&!PP(a.formMethod))return{path:n,error:kr(405,{method:a.formMethod})};let i=()=>({path:n,error:kr(400,{type:"invalid-body"})}),c=(a.formMethod||"get").toUpperCase(),f=fN(n);if(a.body!==void 0){if(a.formEncType==="text/plain"){if(!xo(c))return i();let p=typeof a.body=="string"?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((v,[w,E])=>`${v}${w}=${E}
|
|
299
|
-
`,""):String(a.body);return{path:n,submission:{formMethod:c,formAction:f,formEncType:a.formEncType,formData:void 0,json:void 0,text:p}}}else if(a.formEncType==="application/json"){if(!xo(c))return i();try{let p=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:n,submission:{formMethod:c,formAction:f,formEncType:a.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Mt(typeof FormData=="function","FormData is not available in this environment");let h,g;if(a.formData)h=eS(a.formData),g=a.formData;else if(a.body instanceof FormData)h=eS(a.body),g=a.body;else if(a.body instanceof URLSearchParams)h=a.body,g=PO(h);else if(a.body==null)h=new URLSearchParams,g=new FormData;else try{h=new URLSearchParams(a.body),g=PO(h)}catch{return i()}let m={formMethod:c,formAction:f,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(xo(m.formMethod))return{path:n,submission:m};let b=Us(n);return o&&b.search&&PS(b.search)&&h.append("index",""),b.search=`?${h}`,{path:Va(b),submission:m}}function MO(o,n,a,i,l,c,f,h,g,m,b,p,v,w,E,T,C,A,k,U,M){var Z;let Y=U?ur(U[1])?U[1].error:U[1].data:void 0,$=l.createURL(c.location),_=l.createURL(g),z;if(b&&c.errors){let P=Object.keys(c.errors)[0];z=f.findIndex(oe=>oe.route.id===P)}else if(U&&ur(U[1])){let P=U[0];z=f.findIndex(oe=>oe.route.id===P)-1}let te=U?U[1].statusCode:void 0,H=te&&te>=400,J={currentUrl:$,currentParams:((Z=c.matches[0])==null?void 0:Z.params)||{},nextUrl:_,nextParams:f[0].params,...h,actionResult:Y,actionStatus:te},N=qf(f),j=f.map((P,oe)=>{let{route:I}=P,se=null;if(z!=null&&oe>z?se=!1:I.lazy?se=!0:US(I)?b?se=J0(I,c.loaderData,c.errors):vP(c.loaderData,c.matches[oe],P)&&(se=!0):se=!1,se!==null)return Z0(a,i,o,N,P,m,n,se);let pe=!1;typeof M=="boolean"?pe=M:H?pe=!1:(p||$.pathname+$.search===_.pathname+_.search||$.search!==_.search||SP(c.matches[oe],P))&&(pe=!0);let L={...J,defaultShouldRevalidate:pe},ce=vf(P,L);return Z0(a,i,o,N,P,m,n,ce,L,M)}),ne=[];return E.forEach((P,oe)=>{if(b||!f.some(Te=>Te.route.id===P.routeId)||w.has(oe))return;let I=c.fetchers.get(oe),se=I&&I.state!=="idle"&&I.data===void 0,pe=ws(C,P.path,A);if(!pe){if(k&&se)return;ne.push({key:oe,routeId:P.routeId,path:P.path,matches:null,match:null,request:null,controller:null});return}if(T.has(oe))return;let L=km(pe,P.path),ce=new AbortController,ie=eu(l,P.path,ce.signal),me=null;if(v.has(oe))v.delete(oe),me=ou(a,i,ie,pe,L,m,n);else if(se)p&&(me=ou(a,i,ie,pe,L,m,n));else{let Te;typeof M=="boolean"?Te=M:H?Te=!1:Te=p;let Ue={...J,defaultShouldRevalidate:Te};vf(L,Ue)&&(me=ou(a,i,ie,pe,L,m,n,Ue))}me&&ne.push({key:oe,routeId:P.routeId,path:P.path,matches:me,match:L,request:ie,controller:ce})}),{dsMatches:j,revalidatingFetchers:ne}}function US(o){return o.loader!=null||o.middleware!=null&&o.middleware.length>0}function J0(o,n,a){if(o.lazy)return!0;if(!US(o))return!1;let i=n!=null&&o.id in n,l=a!=null&&a[o.id]!==void 0;return!i&&l?!1:typeof o.loader=="function"&&o.loader.hydrate===!0?!0:!i&&!l}function vP(o,n,a){let i=!n||a.route.id!==n.route.id,l=!o.hasOwnProperty(a.route.id);return i||l}function SP(o,n){let a=o.route.path;return o.pathname!==n.pathname||a!=null&&a.endsWith("*")&&o.params["*"]!==n.params["*"]}function vf(o,n){if(o.route.shouldRevalidate){let a=o.route.shouldRevalidate(n);if(typeof a=="boolean")return a}return n.defaultShouldRevalidate}function _O(o,n,a,i,l,c){let f;if(o){let m=i[o];Mt(m,`No route found to patch children into: routeId = ${o}`),m.children||(m.children=[]),f=m.children}else f=a;let h=[],g=[];if(n.forEach(m=>{let b=f.find(p=>sN(m,p));b?g.push({existingRoute:b,newRoute:m}):h.push(m)}),h.length>0){let m=Df(h,l,[o||"_","patch",String((f==null?void 0:f.length)||"0")],i);f.push(...m)}if(c&&g.length>0)for(let m=0;m<g.length;m++){let{existingRoute:b,newRoute:p}=g[m],v=b,[w]=Df([p],l,[],{},!0);Object.assign(v,{element:w.element?w.element:v.element,errorElement:w.errorElement?w.errorElement:v.errorElement,hydrateFallbackElement:w.hydrateFallbackElement?w.hydrateFallbackElement:v.hydrateFallbackElement})}}function sN(o,n){return"id"in o&&"id"in n&&o.id===n.id?!0:o.index===n.index&&o.path===n.path&&o.caseSensitive===n.caseSensitive?(!o.children||o.children.length===0)&&(!n.children||n.children.length===0)?!0:o.children.every((a,i)=>{var l;return(l=n.children)==null?void 0:l.some(c=>sN(a,c))}):!1}var kO=new WeakMap,lN=({key:o,route:n,manifest:a,mapRouteProperties:i})=>{let l=a[n.id];if(Mt(l,"No route found in manifest"),!l.lazy||typeof l.lazy!="object")return;let c=l.lazy[o];if(!c)return;let f=kO.get(l);f||(f={},kO.set(l,f));let h=f[o];if(h)return h;let g=(async()=>{let m=P3(o),p=l[o]!==void 0&&o!=="hasErrorBoundary";if(m)qn(!m,"Route property "+o+" is not a supported lazy route property. This property will be ignored."),f[o]=Promise.resolve();else if(p)qn(!1,`Route "${l.id}" has a static property "${o}" defined. The lazy property will be ignored.`);else{let v=await c();v!=null&&(Object.assign(l,{[o]:v}),Object.assign(l,i(l)))}typeof l.lazy=="object"&&(l.lazy[o]=void 0,Object.values(l.lazy).every(v=>v===void 0)&&(l.lazy=void 0))})();return f[o]=g,g},LO=new WeakMap;function wP(o,n,a,i,l){let c=a[o.id];if(Mt(c,"No route found in manifest"),!o.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof o.lazy=="function"){let b=LO.get(c);if(b)return{lazyRoutePromise:b,lazyHandlerPromise:b};let p=(async()=>{Mt(typeof o.lazy=="function","No lazy route function found");let v=await o.lazy(),w={};for(let E in v){let T=v[E];if(T===void 0)continue;let C=H3(E),k=c[E]!==void 0&&E!=="hasErrorBoundary";C?qn(!C,"Route property "+E+" is not a supported property to be returned from a lazy route function. This property will be ignored."):k?qn(!k,`Route "${c.id}" has a static property "${E}" defined but its lazy function is also returning a value for this property. The lazy route property "${E}" will be ignored.`):w[E]=T}Object.assign(c,w),Object.assign(c,{...i(c),lazy:void 0})})();return LO.set(c,p),p.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:p}}let f=Object.keys(o.lazy),h=[],g;for(let b of f){if(l&&l.includes(b))continue;let p=lN({key:b,route:o,manifest:a,mapRouteProperties:i});p&&(h.push(p),b===n&&(g=p))}let m=h.length>0?Promise.all(h).then(()=>{}):void 0;return m==null||m.catch(()=>{}),g==null||g.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:g}}async function UO(o){let n=o.matches.filter(l=>l.shouldLoad),a={};return(await Promise.all(n.map(l=>l.resolve()))).forEach((l,c)=>{a[n[c].route.id]=l}),a}async function EP(o){return o.matches.some(n=>n.route.middleware)?cN(o,()=>UO(o)):UO(o)}function cN(o,n){return xP(o,n,i=>{if(zP(i))throw i;return i},_P,a);function a(i,l,c){if(c)return Promise.resolve(Object.assign(c.value,{[l]:{type:"error",result:i}}));{let{matches:f}=o,h=Math.min(Math.max(f.findIndex(m=>m.route.id===l),0),Math.max(f.findIndex(m=>m.shouldCallHandler()),0)),g=Es(f,f[h].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:i}})}}}async function xP(o,n,a,i,l){let{matches:c,request:f,params:h,context:g,unstable_pattern:m}=o,b=c.flatMap(v=>v.route.middleware?v.route.middleware.map(w=>[v.route.id,w]):[]);return await uN({request:f,params:h,context:g,unstable_pattern:m},b,n,a,i,l)}async function uN(o,n,a,i,l,c,f=0){let{request:h}=o;if(h.signal.aborted)throw h.signal.reason??new Error(`Request aborted: ${h.method} ${h.url}`);let g=n[f];if(!g)return await a();let[m,b]=g,p,v=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");try{return p={value:await uN(o,n,a,i,l,c,f+1)},p.value}catch(w){return p={value:await c(w,m,p)},p.value}};try{let w=await b(o,v),E=w!=null?i(w):void 0;return l(E)?E:p?E??p.value:(p={value:await v()},p.value)}catch(w){return await c(w,m,p)}}function dN(o,n,a,i,l){let c=lN({key:"middleware",route:i.route,manifest:n,mapRouteProperties:o}),f=wP(i.route,xo(a.method)?"action":"loader",n,o,l);return{middleware:c,route:f.lazyRoutePromise,handler:f.lazyHandlerPromise}}function Z0(o,n,a,i,l,c,f,h,g=null,m){let b=!1,p=dN(o,n,a,l,c);return{...l,_lazyPromises:p,shouldLoad:h,shouldRevalidateArgs:g,shouldCallHandler(v){return b=!0,g?typeof m=="boolean"?vf(l,{...g,defaultShouldRevalidate:m}):typeof v=="boolean"?vf(l,{...g,defaultShouldRevalidate:v}):vf(l,g):h},resolve(v){let{lazy:w,loader:E,middleware:T}=l.route,C=b||h||v&&!xo(a.method)&&(w||E),A=T&&T.length>0&&!E&&!w;return C&&(xo(a.method)||!A)?TP({request:a,unstable_pattern:i,match:l,lazyHandlerPromise:p==null?void 0:p.handler,lazyRoutePromise:p==null?void 0:p.route,handlerOverride:v,scopedContext:f}):Promise.resolve({type:"data",result:void 0})}}}function ou(o,n,a,i,l,c,f,h=null){return i.map(g=>g.route.id!==l.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:h,shouldCallHandler:()=>!1,_lazyPromises:dN(o,n,a,g,c),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Z0(o,n,a,qf(i),g,c,f,!0,h))}async function RP(o,n,a,i,l,c){a.some(m=>{var b;return(b=m._lazyPromises)==null?void 0:b.middleware})&&await Promise.all(a.map(m=>{var b;return(b=m._lazyPromises)==null?void 0:b.middleware}));let f={request:n,unstable_pattern:qf(a),params:a[0].params,context:l,matches:a},g=await o({...f,fetcherKey:i,runClientMiddleware:m=>{let b=f;return cN(b,()=>m({...b,fetcherKey:i,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(a.flatMap(m=>{var b,p;return[(b=m._lazyPromises)==null?void 0:b.handler,(p=m._lazyPromises)==null?void 0:p.route]}))}catch{}return g}async function TP({request:o,unstable_pattern:n,match:a,lazyHandlerPromise:i,lazyRoutePromise:l,handlerOverride:c,scopedContext:f}){let h,g,m=xo(o.method),b=m?"action":"loader",p=v=>{let w,E=new Promise((A,k)=>w=k);g=()=>w(),o.signal.addEventListener("abort",g);let T=A=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${b}" [routeId: ${a.route.id}]`)):v({request:o,unstable_pattern:n,params:a.params,context:f},...A!==void 0?[A]:[]),C=(async()=>{try{return{type:"data",result:await(c?c(k=>T(k)):T())}}catch(A){return{type:"error",result:A}}})();return Promise.race([C,E])};try{let v=m?a.route.action:a.route.loader;if(i||l)if(v){let w,[E]=await Promise.all([p(v).catch(T=>{w=T}),i,l]);if(w!==void 0)throw w;h=E}else{await i;let w=m?a.route.action:a.route.loader;if(w)[h]=await Promise.all([p(w),l]);else if(b==="action"){let E=new URL(o.url),T=E.pathname+E.search;throw kr(405,{method:o.method,pathname:T,routeId:a.route.id})}else return{type:"data",result:void 0}}else if(v)h=await p(v);else{let w=new URL(o.url),E=w.pathname+w.search;throw kr(404,{pathname:E})}}catch(v){return{type:"error",result:v}}finally{g&&o.signal.removeEventListener("abort",g)}return h}async function CP(o){let n=o.headers.get("Content-Type");return n&&/\bapplication\/json\b/.test(n)?o.body==null?null:o.json():o.text()}async function OP(o){var i,l,c,f,h;let{result:n,type:a}=o;if(zS(n)){let g;try{g=await CP(n)}catch(m){return{type:"error",error:m}}return a==="error"?{type:"error",error:new $f(n.status,n.statusText,g),statusCode:n.status,headers:n.headers}:{type:"data",data:g,statusCode:n.status,headers:n.headers}}return a==="error"?BO(n)?n.data instanceof Error?{type:"error",error:n.data,statusCode:(i=n.init)==null?void 0:i.status,headers:(l=n.init)!=null&&l.headers?new Headers(n.init.headers):void 0}:{type:"error",error:MP(n),statusCode:Nf(n)?n.status:void 0,headers:(c=n.init)!=null&&c.headers?new Headers(n.init.headers):void 0}:{type:"error",error:n,statusCode:Nf(n)?n.status:void 0}:BO(n)?{type:"data",data:n.data,statusCode:(f=n.init)==null?void 0:f.status,headers:(h=n.init)!=null&&h.headers?new Headers(n.init.headers):void 0}:{type:"data",data:n}}function DP(o,n,a,i,l){let c=o.headers.get("Location");if(Mt(c,"Redirects returned/thrown from loaders/actions must have a Location header"),!_S(c)){let f=i.slice(0,i.findIndex(h=>h.route.id===a)+1);c=K0(new URL(n.url),f,l,c),o.headers.set("Location",c)}return o}function zO(o,n,a,i){let l=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(_S(o)){let c=o,f=c.startsWith("//")?new URL(n.protocol+c):new URL(c);if(l.includes(f.protocol))throw new Error("Invalid redirect location");let h=Pr(f.pathname,a)!=null;if(f.origin===n.origin&&h)return f.pathname+f.search+f.hash}try{let c=i.createURL(o);if(l.includes(c.protocol))throw new Error("Invalid redirect location")}catch{}return o}function eu(o,n,a,i){let l=o.createURL(fN(n)).toString(),c={signal:a};if(i&&xo(i.formMethod)){let{formMethod:f,formEncType:h}=i;c.method=f.toUpperCase(),h==="application/json"?(c.headers=new Headers({"Content-Type":h}),c.body=JSON.stringify(i.json)):h==="text/plain"?c.body=i.text:h==="application/x-www-form-urlencoded"&&i.formData?c.body=eS(i.formData):c.body=i.formData}return new Request(l,c)}function eS(o){let n=new URLSearchParams;for(let[a,i]of o.entries())n.append(a,typeof i=="string"?i:i.name);return n}function PO(o){let n=new FormData;for(let[a,i]of o.entries())n.append(a,i);return n}function AP(o,n,a,i=!1,l=!1){let c={},f=null,h,g=!1,m={},b=a&&ur(a[1])?a[1].error:void 0;return o.forEach(p=>{if(!(p.route.id in n))return;let v=p.route.id,w=n[v];if(Mt(!Nl(w),"Cannot handle redirect results in processLoaderData"),ur(w)){let E=w.error;if(b!==void 0&&(E=b,b=void 0),f=f||{},l)f[v]=E;else{let T=Es(o,v);f[T.route.id]==null&&(f[T.route.id]=E)}i||(c[v]=iN),g||(g=!0,h=Nf(w.error)?w.error.status:500),w.headers&&(m[v]=w.headers)}else c[v]=w.data,w.statusCode&&w.statusCode!==200&&!g&&(h=w.statusCode),w.headers&&(m[v]=w.headers)}),b!==void 0&&a&&(f={[a[0]]:b},a[2]&&(c[a[2]]=void 0)),{loaderData:c,errors:f,statusCode:h||200,loaderHeaders:m}}function jO(o,n,a,i,l,c){let{loaderData:f,errors:h}=AP(n,a,i);return l.filter(g=>!g.matches||g.matches.some(m=>m.shouldLoad)).forEach(g=>{let{key:m,match:b,controller:p}=g;if(p&&p.signal.aborted)return;let v=c[m];if(Mt(v,"Did not find corresponding fetcher result"),ur(v)){let w=Es(o.matches,b==null?void 0:b.route.id);h&&h[w.route.id]||(h={...h,[w.route.id]:v.error}),o.fetchers.delete(m)}else if(Nl(v))Mt(!1,"Unhandled fetcher revalidation redirect");else{let w=Si(v.data);o.fetchers.set(m,w)}}),{loaderData:f,errors:h}}function HO(o,n,a,i){let l=Object.entries(n).filter(([,c])=>c!==iN).reduce((c,[f,h])=>(c[f]=h,c),{});for(let c of a){let f=c.route.id;if(!n.hasOwnProperty(f)&&o.hasOwnProperty(f)&&c.route.loader&&(l[f]=o[f]),i&&i.hasOwnProperty(f))break}return l}function IO(o){return o?ur(o[1])?{actionData:{}}:{actionData:{[o[0]]:o[1].data}}:{}}function Es(o,n){return(n?o.slice(0,o.findIndex(i=>i.route.id===n)+1):[...o]).reverse().find(i=>i.route.hasErrorBoundary===!0)||o[0]}function gm(o){let n=o.length===1?o[0]:o.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function kr(o,{pathname:n,routeId:a,method:i,type:l,message:c}={}){let f="Unknown Server Error",h="Unknown @remix-run/router error";return o===400?(f="Bad Request",i&&n&&a?h=`You made a ${i} request to "${n}" but did not provide a \`loader\` for route "${a}", so there is no way to handle the request.`:l==="invalid-body"&&(h="Unable to encode submission body")):o===403?(f="Forbidden",h=`Route "${a}" does not match URL "${n}"`):o===404?(f="Not Found",h=`No route matches URL "${n}"`):o===405&&(f="Method Not Allowed",i&&n&&a?h=`You made a ${i.toUpperCase()} request to "${n}" but did not provide an \`action\` for route "${a}", so there is no way to handle the request.`:i&&(h=`Invalid request method "${i.toUpperCase()}"`)),new $f(o||500,f,new Error(h),!0)}function ym(o){let n=Object.entries(o);for(let a=n.length-1;a>=0;a--){let[i,l]=n[a];if(Nl(l))return{key:i,result:l}}}function fN(o){let n=typeof o=="string"?Us(o):o;return Va({...n,hash:""})}function NP(o,n){return o.pathname!==n.pathname||o.search!==n.search?!1:o.hash===""?n.hash!=="":o.hash===n.hash?!0:n.hash!==""}function MP(o){var n,a;return new $f(((n=o.init)==null?void 0:n.status)??500,((a=o.init)==null?void 0:a.statusText)??"Internal Server Error",o.data)}function _P(o){return o!=null&&typeof o=="object"&&Object.entries(o).every(([n,a])=>typeof n=="string"&&kP(a))}function kP(o){return o!=null&&typeof o=="object"&&"type"in o&&"result"in o&&(o.type==="data"||o.type==="error")}function LP(o){return zS(o.result)&&rN.has(o.result.status)}function ur(o){return o.type==="error"}function Nl(o){return(o&&o.type)==="redirect"}function BO(o){return typeof o=="object"&&o!=null&&"type"in o&&"data"in o&&"init"in o&&o.type==="DataWithResponseInit"}function zS(o){return o!=null&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.headers=="object"&&typeof o.body<"u"}function UP(o){return rN.has(o)}function zP(o){return zS(o)&&UP(o.status)&&o.headers.has("Location")}function PP(o){return hP.has(o.toUpperCase())}function xo(o){return dP.has(o.toUpperCase())}function PS(o){return new URLSearchParams(o).getAll("index").some(n=>n==="")}function km(o,n){let a=typeof n=="string"?Us(n).search:n.search;if(o[o.length-1].route.index&&PS(a||""))return o[o.length-1];let i=ZA(o);return i[i.length-1]}function VO(o){let{formMethod:n,formAction:a,formEncType:i,text:l,formData:c,json:f}=o;if(!(!n||!a||!i)){if(l!=null)return{formMethod:n,formAction:a,formEncType:i,formData:void 0,json:void 0,text:l};if(c!=null)return{formMethod:n,formAction:a,formEncType:i,formData:c,json:void 0,text:void 0};if(f!==void 0)return{formMethod:n,formAction:a,formEncType:i,formData:void 0,json:f,text:void 0}}}function s0(o,n){return n?{state:"loading",location:o,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:o,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function jP(o,n){return{state:"submitting",location:o,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function sf(o,n){return o?{state:"loading",formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function HP(o,n){return{state:"submitting",formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text,data:n?n.data:void 0}}function Si(o){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:o}}function IP(o,n){try{let a=o.sessionStorage.getItem(aN);if(a){let i=JSON.parse(a);for(let[l,c]of Object.entries(i||{}))c&&Array.isArray(c)&&n.set(l,new Set(c||[]))}}catch{}}function BP(o,n){if(n.size>0){let a={};for(let[i,l]of n)a[i]=[...l];try{o.sessionStorage.setItem(aN,JSON.stringify(a))}catch(i){qn(!1,`Failed to save applied view transitions in sessionStorage (${i}).`)}}}function FO(){let o,n,a=new Promise((i,l)=>{o=async c=>{i(c);try{await a}catch{}},n=async c=>{l(c);try{await a}catch{}}});return{promise:a,resolve:o,reject:n}}var Xl=x.createContext(null);Xl.displayName="DataRouter";var Gf=x.createContext(null);Gf.displayName="DataRouterState";var hN=x.createContext(!1);function VP(){return x.useContext(hN)}var jS=x.createContext({isTransitioning:!1});jS.displayName="ViewTransition";var pN=x.createContext(new Map);pN.displayName="Fetchers";var FP=x.createContext(null);FP.displayName="Await";var jr=x.createContext(null);jr.displayName="Navigation";var lg=x.createContext(null);lg.displayName="Location";var ta=x.createContext({outlet:null,matches:[],isDataRoute:!1});ta.displayName="Route";var HS=x.createContext(null);HS.displayName="RouteError";var mN="REACT_ROUTER_ERROR",YP="REDIRECT",$P="ROUTE_ERROR_RESPONSE";function qP(o){if(o.startsWith(`${mN}:${YP}:{`))try{let n=JSON.parse(o.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function GP(o){if(o.startsWith(`${mN}:${$P}:{`))try{let n=JSON.parse(o.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new $f(n.status,n.statusText,n.data)}catch{}}function XP(o,{relative:n}={}){Mt(Xf(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:i}=x.useContext(jr),{hash:l,pathname:c,search:f}=Qf(o,{relative:n}),h=c;return a!=="/"&&(h=c==="/"?a:Ia([a,c])),i.createHref({pathname:h,search:f,hash:l})}function Xf(){return x.useContext(lg)!=null}function Ni(){return Mt(Xf(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(lg).location}var gN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function yN(o){x.useContext(jr).static||x.useLayoutEffect(o)}function bN(){let{isDataRoute:o}=x.useContext(ta);return o?uj():QP()}function QP(){Mt(Xf(),"useNavigate() may be used only in the context of a <Router> component.");let o=x.useContext(Xl),{basename:n,navigator:a}=x.useContext(jr),{matches:i}=x.useContext(ta),{pathname:l}=Ni(),c=JSON.stringify(kS(i)),f=x.useRef(!1);return yN(()=>{f.current=!0}),x.useCallback((g,m={})=>{if(qn(f.current,gN),!f.current)return;if(typeof g=="number"){a.go(g);return}let b=LS(g,JSON.parse(c),l,m.relative==="path");o==null&&n!=="/"&&(b.pathname=b.pathname==="/"?n:Ia([n,b.pathname])),(m.replace?a.replace:a.push)(b,m.state,m)},[n,a,c,l,o])}var WP=x.createContext(null);function KP(o){let n=x.useContext(ta).outlet;return x.useMemo(()=>n&&x.createElement(WP.Provider,{value:o},n),[n,o])}function JP(){let{matches:o}=x.useContext(ta),n=o[o.length-1];return n?n.params:{}}function Qf(o,{relative:n}={}){let{matches:a}=x.useContext(ta),{pathname:i}=Ni(),l=JSON.stringify(kS(a));return x.useMemo(()=>LS(o,JSON.parse(l),i,n==="path"),[o,l,i,n])}function ZP(o,n,a,i,l){Mt(Xf(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=x.useContext(jr),{matches:f}=x.useContext(ta),h=f[f.length-1],g=h?h.params:{},m=h?h.pathname:"/",b=h?h.pathnameBase:"/",p=h&&h.route;{let k=p&&p.path||"";SN(m,!p||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${k}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
300
|
-
|
|
301
|
-
Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let v=Ni(),w;w=v;let E=w.pathname||"/",T=E;if(b!=="/"){let k=b.replace(/^\//,"").split("/");T="/"+E.replace(/^\//,"").split("/").slice(k.length).join("/")}let C=ws(o,{pathname:T});return qn(p||C!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),qn(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),rj(C&&C.map(k=>Object.assign({},k,{params:Object.assign({},g,k.params),pathname:Ia([b,c.encodeLocation?c.encodeLocation(k.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?b:Ia([b,c.encodeLocation?c.encodeLocation(k.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),f,a,i,l)}function ej(){let o=cj(),n=Nf(o)?`${o.status} ${o.statusText}`:o instanceof Error?o.message:JSON.stringify(o),a=o instanceof Error?o.stack:null,i="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},f=null;return console.error("Error handled by React Router default ErrorBoundary:",o),f=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:c},"ErrorBoundary")," or"," ",x.createElement("code",{style:c},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},n),a?x.createElement("pre",{style:l},a):null,f)}var tj=x.createElement(ej,null),vN=class extends x.Component{constructor(o){super(o),this.state={location:o.location,revalidation:o.revalidation,error:o.error}}static getDerivedStateFromError(o){return{error:o}}static getDerivedStateFromProps(o,n){return n.location!==o.location||n.revalidation!=="idle"&&o.revalidation==="idle"?{error:o.error,location:o.location,revalidation:o.revalidation}:{error:o.error!==void 0?o.error:n.error,location:n.location,revalidation:o.revalidation||n.revalidation}}componentDidCatch(o,n){this.props.onError?this.props.onError(o,n):console.error("React Router caught the following error during render",o)}render(){let o=this.state.error;if(this.context&&typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){const a=GP(o.digest);a&&(o=a)}let n=o!==void 0?x.createElement(ta.Provider,{value:this.props.routeContext},x.createElement(HS.Provider,{value:o,children:this.props.component})):this.props.children;return this.context?x.createElement(nj,{error:o},n):n}};vN.contextType=hN;var l0=new WeakMap;function nj({children:o,error:n}){let{basename:a}=x.useContext(jr);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let i=qP(n.digest);if(i){let l=l0.get(n);if(l)throw l;let c=tN(i.location,a);if(eN&&!l0.get(n))if(c.isExternal||i.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:i.replace}));throw l0.set(n,f),f}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return o}function oj({routeContext:o,match:n,children:a}){let i=x.useContext(Xl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(ta.Provider,{value:o},a)}function rj(o,n=[],a=null,i=null,l=null){if(o==null){if(!a)return null;if(a.errors)o=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)o=a.matches;else return null}let c=o,f=a==null?void 0:a.errors;if(f!=null){let b=c.findIndex(p=>p.route.id&&(f==null?void 0:f[p.route.id])!==void 0);Mt(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let h=!1,g=-1;if(a)for(let b=0;b<c.length;b++){let p=c[b];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(g=b),p.route.id){let{loaderData:v,errors:w}=a,E=p.route.loader&&!v.hasOwnProperty(p.route.id)&&(!w||w[p.route.id]===void 0);if(p.route.lazy||E){h=!0,g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}let m=a&&i?(b,p)=>{var v,w;i(b,{location:a.location,params:((w=(v=a.matches)==null?void 0:v[0])==null?void 0:w.params)??{},unstable_pattern:qf(a.matches),errorInfo:p})}:void 0;return c.reduceRight((b,p,v)=>{let w,E=!1,T=null,C=null;a&&(w=f&&p.route.id?f[p.route.id]:void 0,T=p.route.errorElement||tj,h&&(g<0&&v===0?(SN("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,C=null):g===v&&(E=!0,C=p.route.hydrateFallbackElement||null)));let A=n.concat(c.slice(0,v+1)),k=()=>{let U;return w?U=T:E?U=C:p.route.Component?U=x.createElement(p.route.Component,null):p.route.element?U=p.route.element:U=b,x.createElement(oj,{match:p,routeContext:{outlet:b,matches:A,isDataRoute:a!=null},children:U})};return a&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?x.createElement(vN,{location:a.location,revalidation:a.revalidation,component:T,error:w,children:k(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:m}):k()},null)}function IS(o){return`${o} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function aj(o){let n=x.useContext(Xl);return Mt(n,IS(o)),n}function ij(o){let n=x.useContext(Gf);return Mt(n,IS(o)),n}function sj(o){let n=x.useContext(ta);return Mt(n,IS(o)),n}function BS(o){let n=sj(o),a=n.matches[n.matches.length-1];return Mt(a.route.id,`${o} can only be used on routes that contain a unique "id"`),a.route.id}function lj(){return BS("useRouteId")}function cj(){var i;let o=x.useContext(HS),n=ij("useRouteError"),a=BS("useRouteError");return o!==void 0?o:(i=n.errors)==null?void 0:i[a]}function uj(){let{router:o}=aj("useNavigate"),n=BS("useNavigate"),a=x.useRef(!1);return yN(()=>{a.current=!0}),x.useCallback(async(l,c={})=>{qn(a.current,gN),a.current&&(typeof l=="number"?await o.navigate(l):await o.navigate(l,{fromRouteId:n,...c}))},[o,n])}var YO={};function SN(o,n,a){!n&&!YO[o]&&(YO[o]=!0,qn(!1,a))}var $O={};function qO(o,n){!o&&!$O[n]&&($O[n]=!0,console.warn(n))}var dj="useOptimistic",GO=MS[dj],fj=()=>{};function hj(o){return GO?GO(o):[o,fj]}function pj(o){let n={hasErrorBoundary:o.hasErrorBoundary||o.ErrorBoundary!=null||o.errorElement!=null};return o.Component&&(o.element&&qn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(n,{element:x.createElement(o.Component),Component:void 0})),o.HydrateFallback&&(o.hydrateFallbackElement&&qn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(n,{hydrateFallbackElement:x.createElement(o.HydrateFallback),HydrateFallback:void 0})),o.ErrorBoundary&&(o.errorElement&&qn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(n,{errorElement:x.createElement(o.ErrorBoundary),ErrorBoundary:void 0})),n}var mj=["HydrateFallback","hydrateFallbackElement"],gj=class{constructor(){this.status="pending",this.promise=new Promise((o,n)=>{this.resolve=a=>{this.status==="pending"&&(this.status="resolved",o(a))},this.reject=a=>{this.status==="pending"&&(this.status="rejected",n(a))}})}};function yj({router:o,flushSync:n,onError:a,unstable_useTransitions:i}){i=VP()||i;let[c,f]=x.useState(o.state),[h,g]=hj(c),[m,b]=x.useState(),[p,v]=x.useState({isTransitioning:!1}),[w,E]=x.useState(),[T,C]=x.useState(),[A,k]=x.useState(),U=x.useRef(new Map),M=x.useCallback((z,{deletedFetchers:te,newErrors:H,flushSync:J,viewTransitionOpts:N})=>{H&&a&&Object.values(H).forEach(ne=>{var Z;return a(ne,{location:z.location,params:((Z=z.matches[0])==null?void 0:Z.params)??{},unstable_pattern:qf(z.matches)})}),z.fetchers.forEach((ne,Z)=>{ne.data!==void 0&&U.current.set(Z,ne.data)}),te.forEach(ne=>U.current.delete(ne)),qO(J===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let j=o.window!=null&&o.window.document!=null&&typeof o.window.document.startViewTransition=="function";if(qO(N==null||j,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!N||!j){n&&J?n(()=>f(z)):i===!1?f(z):x.startTransition(()=>{i===!0&&g(ne=>XO(ne,z)),f(z)});return}if(n&&J){n(()=>{T&&(w==null||w.resolve(),T.skipTransition()),v({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let ne=o.window.document.startViewTransition(()=>{n(()=>f(z))});ne.finished.finally(()=>{n(()=>{E(void 0),C(void 0),b(void 0),v({isTransitioning:!1})})}),n(()=>C(ne));return}T?(w==null||w.resolve(),T.skipTransition(),k({state:z,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(b(z),v({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[o.window,n,T,w,i,g,a]);x.useLayoutEffect(()=>o.subscribe(M),[o,M]),x.useEffect(()=>{p.isTransitioning&&!p.flushSync&&E(new gj)},[p]),x.useEffect(()=>{if(w&&m&&o.window){let z=m,te=w.promise,H=o.window.document.startViewTransition(async()=>{i===!1?f(z):x.startTransition(()=>{i===!0&&g(J=>XO(J,z)),f(z)}),await te});H.finished.finally(()=>{E(void 0),C(void 0),b(void 0),v({isTransitioning:!1})}),C(H)}},[m,w,o.window,i,g]),x.useEffect(()=>{w&&m&&h.location.key===m.location.key&&w.resolve()},[w,T,h.location,m]),x.useEffect(()=>{!p.isTransitioning&&A&&(b(A.state),v({isTransitioning:!0,flushSync:!1,currentLocation:A.currentLocation,nextLocation:A.nextLocation}),k(void 0))},[p.isTransitioning,A]);let Y=x.useMemo(()=>({createHref:o.createHref,encodeLocation:o.encodeLocation,go:z=>o.navigate(z),push:(z,te,H)=>o.navigate(z,{state:te,preventScrollReset:H==null?void 0:H.preventScrollReset}),replace:(z,te,H)=>o.navigate(z,{replace:!0,state:te,preventScrollReset:H==null?void 0:H.preventScrollReset})}),[o]),$=o.basename||"/",_=x.useMemo(()=>({router:o,navigator:Y,static:!1,basename:$,onError:a}),[o,Y,$,a]);return x.createElement(x.Fragment,null,x.createElement(Xl.Provider,{value:_},x.createElement(Gf.Provider,{value:h},x.createElement(pN.Provider,{value:U.current},x.createElement(jS.Provider,{value:p},x.createElement(wj,{basename:$,location:h.location,navigationType:h.historyAction,navigator:Y,unstable_useTransitions:i},x.createElement(bj,{routes:o.routes,future:o.future,state:h,onError:a})))))),null)}function XO(o,n){return{...o,navigation:n.navigation.state!=="idle"?n.navigation:o.navigation,revalidation:n.revalidation!=="idle"?n.revalidation:o.revalidation,actionData:n.navigation.state!=="submitting"?n.actionData:o.actionData,fetchers:n.fetchers}}var bj=x.memo(vj);function vj({routes:o,future:n,state:a,onError:i}){return ZP(o,void 0,a,i,n)}function Sj(o){return KP(o.context)}function wj({basename:o="/",children:n=null,location:a,navigationType:i="POP",navigator:l,static:c=!1,unstable_useTransitions:f}){Mt(!Xf(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=o.replace(/^\/*/,"/"),g=x.useMemo(()=>({basename:h,navigator:l,static:c,unstable_useTransitions:f,future:{}}),[h,l,c,f]);typeof a=="string"&&(a=Us(a));let{pathname:m="/",search:b="",hash:p="",state:v=null,key:w="default"}=a,E=x.useMemo(()=>{let T=Pr(m,h);return T==null?null:{location:{pathname:T,search:b,hash:p,state:v,key:w},navigationType:i}},[h,m,b,p,v,w,i]);return qn(E!=null,`<Router basename="${h}"> is not able to match the URL "${m}${b}${p}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:x.createElement(jr.Provider,{value:g},x.createElement(lg.Provider,{children:n,value:E}))}var Lm="get",Um="application/x-www-form-urlencoded";function cg(o){return typeof HTMLElement<"u"&&o instanceof HTMLElement}function Ej(o){return cg(o)&&o.tagName.toLowerCase()==="button"}function xj(o){return cg(o)&&o.tagName.toLowerCase()==="form"}function Rj(o){return cg(o)&&o.tagName.toLowerCase()==="input"}function Tj(o){return!!(o.metaKey||o.altKey||o.ctrlKey||o.shiftKey)}function Cj(o,n){return o.button===0&&(!n||n==="_self")&&!Tj(o)}var bm=null;function Oj(){if(bm===null)try{new FormData(document.createElement("form"),0),bm=!1}catch{bm=!0}return bm}var Dj=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function c0(o){return o!=null&&!Dj.has(o)?(qn(!1,`"${o}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Um}"`),null):o}function Aj(o,n){let a,i,l,c,f;if(xj(o)){let h=o.getAttribute("action");i=h?Pr(h,n):null,a=o.getAttribute("method")||Lm,l=c0(o.getAttribute("enctype"))||Um,c=new FormData(o)}else if(Ej(o)||Rj(o)&&(o.type==="submit"||o.type==="image")){let h=o.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=o.getAttribute("formaction")||h.getAttribute("action");if(i=g?Pr(g,n):null,a=o.getAttribute("formmethod")||h.getAttribute("method")||Lm,l=c0(o.getAttribute("formenctype"))||c0(h.getAttribute("enctype"))||Um,c=new FormData(h,o),!Oj()){let{name:m,type:b,value:p}=o;if(b==="image"){let v=m?`${m}.`:"";c.append(`${v}x`,"0"),c.append(`${v}y`,"0")}else m&&c.append(m,p)}}else{if(cg(o))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Lm,i=null,l=Um,f=o}return c&&l==="text/plain"&&(f=c,c=void 0),{action:i,method:a.toLowerCase(),encType:l,formData:c,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function VS(o,n){if(o===!1||o===null||typeof o>"u")throw new Error(n)}function Nj(o,n,a,i){let l=typeof o=="string"?new URL(o,typeof window>"u"?"server://singlefetch/":window.location.origin):o;return a?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${i}`:l.pathname=`${l.pathname}.${i}`:l.pathname==="/"?l.pathname=`_root.${i}`:n&&Pr(l.pathname,n)==="/"?l.pathname=`${n.replace(/\/$/,"")}/_root.${i}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${i}`,l}async function Mj(o,n){if(o.id in n)return n[o.id];try{let a=await import(o.module);return n[o.id]=a,a}catch(a){return console.error(`Error loading route module \`${o.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function _j(o){return o==null?!1:o.href==null?o.rel==="preload"&&typeof o.imageSrcSet=="string"&&typeof o.imageSizes=="string":typeof o.rel=="string"&&typeof o.href=="string"}async function kj(o,n,a){let i=await Promise.all(o.map(async l=>{let c=n.routes[l.route.id];if(c){let f=await Mj(c,a);return f.links?f.links():[]}return[]}));return Pj(i.flat(1).filter(_j).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function QO(o,n,a,i,l,c){let f=(g,m)=>a[m]?g.route.id!==a[m].route.id:!0,h=(g,m)=>{var b;return a[m].pathname!==g.pathname||((b=a[m].route.path)==null?void 0:b.endsWith("*"))&&a[m].params["*"]!==g.params["*"]};return c==="assets"?n.filter((g,m)=>f(g,m)||h(g,m)):c==="data"?n.filter((g,m)=>{var p;let b=i.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(f(g,m)||h(g,m))return!0;if(g.route.shouldRevalidate){let v=g.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((p=a[0])==null?void 0:p.params)||{},nextUrl:new URL(o,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function Lj(o,n,{includeHydrateFallback:a}={}){return Uj(o.map(i=>{let l=n.routes[i.route.id];if(!l)return[];let c=[l.module];return l.clientActionModule&&(c=c.concat(l.clientActionModule)),l.clientLoaderModule&&(c=c.concat(l.clientLoaderModule)),a&&l.hydrateFallbackModule&&(c=c.concat(l.hydrateFallbackModule)),l.imports&&(c=c.concat(l.imports)),c}).flat(1))}function Uj(o){return[...new Set(o)]}function zj(o){let n={},a=Object.keys(o).sort();for(let i of a)n[i]=o[i];return n}function Pj(o,n){let a=new Set;return new Set(n),o.reduce((i,l)=>{let c=JSON.stringify(zj(l));return a.has(c)||(a.add(c),i.push({key:c,link:l})),i},[])}function wN(){let o=x.useContext(Xl);return VS(o,"You must render this element inside a <DataRouterContext.Provider> element"),o}function jj(){let o=x.useContext(Gf);return VS(o,"You must render this element inside a <DataRouterStateContext.Provider> element"),o}var FS=x.createContext(void 0);FS.displayName="FrameworkContext";function EN(){let o=x.useContext(FS);return VS(o,"You must render this element inside a <HydratedRouter> element"),o}function Hj(o,n){let a=x.useContext(FS),[i,l]=x.useState(!1),[c,f]=x.useState(!1),{onFocus:h,onBlur:g,onMouseEnter:m,onMouseLeave:b,onTouchStart:p}=n,v=x.useRef(null);x.useEffect(()=>{if(o==="render"&&f(!0),o==="viewport"){let T=A=>{A.forEach(k=>{f(k.isIntersecting)})},C=new IntersectionObserver(T,{threshold:.5});return v.current&&C.observe(v.current),()=>{C.disconnect()}}},[o]),x.useEffect(()=>{if(i){let T=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(T)}}},[i]);let w=()=>{l(!0)},E=()=>{l(!1),f(!1)};return a?o!=="intent"?[c,v,{}]:[c,v,{onFocus:lf(h,w),onBlur:lf(g,E),onMouseEnter:lf(m,w),onMouseLeave:lf(b,E),onTouchStart:lf(p,w)}]:[!1,v,{}]}function lf(o,n){return a=>{o&&o(a),a.defaultPrevented||n(a)}}function Ij({page:o,...n}){let{router:a}=wN(),i=x.useMemo(()=>ws(a.routes,o,a.basename),[a.routes,o,a.basename]);return i?x.createElement(Vj,{page:o,matches:i,...n}):null}function Bj(o){let{manifest:n,routeModules:a}=EN(),[i,l]=x.useState([]);return x.useEffect(()=>{let c=!1;return kj(o,n,a).then(f=>{c||l(f)}),()=>{c=!0}},[o,n,a]),i}function Vj({page:o,matches:n,...a}){let i=Ni(),{future:l,manifest:c,routeModules:f}=EN(),{basename:h}=wN(),{loaderData:g,matches:m}=jj(),b=x.useMemo(()=>QO(o,n,m,c,i,"data"),[o,n,m,c,i]),p=x.useMemo(()=>QO(o,n,m,c,i,"assets"),[o,n,m,c,i]),v=x.useMemo(()=>{if(o===i.pathname+i.search+i.hash)return[];let T=new Set,C=!1;if(n.forEach(k=>{var M;let U=c.routes[k.route.id];!U||!U.hasLoader||(!b.some(Y=>Y.route.id===k.route.id)&&k.route.id in g&&((M=f[k.route.id])!=null&&M.shouldRevalidate)||U.hasClientLoader?C=!0:T.add(k.route.id))}),T.size===0)return[];let A=Nj(o,h,l.unstable_trailingSlashAwareDataRequests,"data");return C&&T.size>0&&A.searchParams.set("_routes",n.filter(k=>T.has(k.route.id)).map(k=>k.route.id).join(",")),[A.pathname+A.search]},[h,l.unstable_trailingSlashAwareDataRequests,g,i,c,b,n,o,f]),w=x.useMemo(()=>Lj(p,c),[p,c]),E=Bj(p);return x.createElement(x.Fragment,null,v.map(T=>x.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...a})),w.map(T=>x.createElement("link",{key:T,rel:"modulepreload",href:T,...a})),E.map(({key:T,link:C})=>x.createElement("link",{key:T,nonce:a.nonce,...C,crossOrigin:C.crossOrigin??a.crossOrigin})))}function Fj(...o){return n=>{o.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var Yj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Yj&&(window.__reactRouterVersion="7.13.0")}catch{}function $j(o,n){return yP({basename:n==null?void 0:n.basename,getContext:n==null?void 0:n.getContext,future:n==null?void 0:n.future,history:k3({window:n==null?void 0:n.window}),hydrationData:qj(),routes:o,mapRouteProperties:pj,hydrationRouteProperties:mj,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window,unstable_instrumentations:n==null?void 0:n.unstable_instrumentations}).initialize()}function qj(){let o=window==null?void 0:window.__staticRouterHydrationData;return o&&o.errors&&(o={...o,errors:Gj(o.errors)}),o}function Gj(o){if(!o)return null;let n=Object.entries(o),a={};for(let[i,l]of n)if(l&&l.__type==="RouteErrorResponse")a[i]=new $f(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let c=window[l.__subType];if(typeof c=="function")try{let f=new c(l.message);f.stack="",a[i]=f}catch{}}if(a[i]==null){let c=new Error(l.message);c.stack="",a[i]=c}}else a[i]=l;return a}var xN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,YS=x.forwardRef(function({onClick:n,discover:a="render",prefetch:i="none",relative:l,reloadDocument:c,replace:f,state:h,target:g,to:m,preventScrollReset:b,viewTransition:p,unstable_defaultShouldRevalidate:v,...w},E){let{basename:T,unstable_useTransitions:C}=x.useContext(jr),A=typeof m=="string"&&xN.test(m),k=tN(m,T);m=k.to;let U=XP(m,{relative:l}),[M,Y,$]=Hj(i,w),_=Kj(m,{replace:f,state:h,target:g,preventScrollReset:b,relative:l,viewTransition:p,unstable_defaultShouldRevalidate:v,unstable_useTransitions:C});function z(H){n&&n(H),H.defaultPrevented||_(H)}let te=x.createElement("a",{...w,...$,href:k.absoluteURL||U,onClick:k.isExternal||c?n:z,ref:Fj(E,Y),target:g,"data-discover":!A&&a==="render"?"true":void 0});return M&&!A?x.createElement(x.Fragment,null,te,x.createElement(Ij,{page:U})):te});YS.displayName="Link";var Xj=x.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:i="",end:l=!1,style:c,to:f,viewTransition:h,children:g,...m},b){let p=Qf(f,{relative:m.relative}),v=Ni(),w=x.useContext(Gf),{navigator:E,basename:T}=x.useContext(jr),C=w!=null&&n4(p)&&h===!0,A=E.encodeLocation?E.encodeLocation(p).pathname:p.pathname,k=v.pathname,U=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;a||(k=k.toLowerCase(),U=U?U.toLowerCase():null,A=A.toLowerCase()),U&&T&&(U=Pr(U,T)||U);const M=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let Y=k===A||!l&&k.startsWith(A)&&k.charAt(M)==="/",$=U!=null&&(U===A||!l&&U.startsWith(A)&&U.charAt(A.length)==="/"),_={isActive:Y,isPending:$,isTransitioning:C},z=Y?n:void 0,te;typeof i=="function"?te=i(_):te=[i,Y?"active":null,$?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let H=typeof c=="function"?c(_):c;return x.createElement(YS,{...m,"aria-current":z,className:te,ref:b,style:H,to:f,viewTransition:h},typeof g=="function"?g(_):g)});Xj.displayName="NavLink";var Qj=x.forwardRef(({discover:o="render",fetcherKey:n,navigate:a,reloadDocument:i,replace:l,state:c,method:f=Lm,action:h,onSubmit:g,relative:m,preventScrollReset:b,viewTransition:p,unstable_defaultShouldRevalidate:v,...w},E)=>{let{unstable_useTransitions:T}=x.useContext(jr),C=e4(),A=t4(h,{relative:m}),k=f.toLowerCase()==="get"?"get":"post",U=typeof h=="string"&&xN.test(h),M=Y=>{if(g&&g(Y),Y.defaultPrevented)return;Y.preventDefault();let $=Y.nativeEvent.submitter,_=($==null?void 0:$.getAttribute("formmethod"))||f,z=()=>C($||Y.currentTarget,{fetcherKey:n,method:_,navigate:a,replace:l,state:c,relative:m,preventScrollReset:b,viewTransition:p,unstable_defaultShouldRevalidate:v});T&&a!==!1?x.startTransition(()=>z()):z()};return x.createElement("form",{ref:E,method:k,action:A,onSubmit:i?g:M,...w,"data-discover":!U&&o==="render"?"true":void 0})});Qj.displayName="Form";function Wj(o){return`${o} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function RN(o){let n=x.useContext(Xl);return Mt(n,Wj(o)),n}function Kj(o,{target:n,replace:a,state:i,preventScrollReset:l,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:h,unstable_useTransitions:g}={}){let m=bN(),b=Ni(),p=Qf(o,{relative:c});return x.useCallback(v=>{if(Cj(v,n)){v.preventDefault();let w=a!==void 0?a:Va(b)===Va(p),E=()=>m(o,{replace:w,state:i,preventScrollReset:l,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:h});g?x.startTransition(()=>E()):E()}},[b,m,p,a,i,n,o,l,c,f,h,g])}var Jj=0,Zj=()=>`__${String(++Jj)}__`;function e4(){let{router:o}=RN("useSubmit"),{basename:n}=x.useContext(jr),a=lj(),i=o.fetch,l=o.navigate;return x.useCallback(async(c,f={})=>{let{action:h,method:g,encType:m,formData:b,body:p}=Aj(c,n);if(f.navigate===!1){let v=f.fetcherKey||Zj();await i(v,a,f.action||h,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:b,body:p,formMethod:f.method||g,formEncType:f.encType||m,flushSync:f.flushSync})}else await l(f.action||h,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:b,body:p,formMethod:f.method||g,formEncType:f.encType||m,replace:f.replace,state:f.state,fromRouteId:a,flushSync:f.flushSync,viewTransition:f.viewTransition})},[i,l,n,a])}function t4(o,{relative:n}={}){let{basename:a}=x.useContext(jr),i=x.useContext(ta);Mt(i,"useFormAction must be used inside a RouteContext");let[l]=i.matches.slice(-1),c={...Qf(o||".",{relative:n})},f=Ni();if(o==null){c.search=f.search;let h=new URLSearchParams(c.search),g=h.getAll("index");if(g.some(b=>b==="")){h.delete("index"),g.filter(p=>p).forEach(p=>h.append("index",p));let b=h.toString();c.search=b?`?${b}`:""}}return(!o||o===".")&&l.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(c.pathname=c.pathname==="/"?a:Ia([a,c.pathname])),Va(c)}function n4(o,{relative:n}={}){let a=x.useContext(jS);Mt(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=RN("useViewTransitionState"),l=Qf(o,{relative:n});if(!a.isTransitioning)return!1;let c=Pr(a.currentLocation.pathname,i)||a.currentLocation.pathname,f=Pr(a.nextLocation.pathname,i)||a.nextLocation.pathname;return Af(l.pathname,f)!=null||Af(l.pathname,c)!=null}var zs=GA();const o4=zA(zs);function r4(o){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n.appendChild(a),a.styleSheet?a.styleSheet.cssText=o:a.appendChild(document.createTextNode(o))}const a4=o=>{switch(o){case"success":return l4;case"info":return u4;case"warning":return c4;case"error":return d4;default:return null}},i4=Array(12).fill(0),s4=({visible:o,className:n})=>_e.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":o},_e.createElement("div",{className:"sonner-spinner"},i4.map((a,i)=>_e.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),l4=_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_e.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),c4=_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},_e.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),u4=_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),d4=_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),f4=_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},_e.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_e.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),h4=()=>{const[o,n]=_e.useState(document.hidden);return _e.useEffect(()=>{const a=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),o};let tS=1;class p4{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{const a=this.subscribers.indexOf(n);this.subscribers.splice(a,1)}),this.publish=n=>{this.subscribers.forEach(a=>a(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var a;const{message:i,...l}=n,c=typeof(n==null?void 0:n.id)=="number"||((a=n.id)==null?void 0:a.length)>0?n.id:tS++,f=this.toasts.find(g=>g.id===c),h=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),f?this.toasts=this.toasts.map(g=>g.id===c?(this.publish({...g,...n,id:c,title:i}),{...g,...n,id:c,dismissible:h,title:i}):g):this.addToast({title:i,...l,dismissible:h,id:c}),c},this.dismiss=n=>(n?(this.dismissedToasts.add(n),requestAnimationFrame(()=>this.subscribers.forEach(a=>a({id:n,dismiss:!0})))):this.toasts.forEach(a=>{this.subscribers.forEach(i=>i({id:a.id,dismiss:!0}))}),n),this.message=(n,a)=>this.create({...a,message:n}),this.error=(n,a)=>this.create({...a,message:n,type:"error"}),this.success=(n,a)=>this.create({...a,type:"success",message:n}),this.info=(n,a)=>this.create({...a,type:"info",message:n}),this.warning=(n,a)=>this.create({...a,type:"warning",message:n}),this.loading=(n,a)=>this.create({...a,type:"loading",message:n}),this.promise=(n,a)=>{if(!a)return;let i;a.loading!==void 0&&(i=this.create({...a,promise:n,type:"loading",message:a.loading,description:typeof a.description!="function"?a.description:void 0}));const l=Promise.resolve(n instanceof Function?n():n);let c=i!==void 0,f;const h=l.then(async m=>{if(f=["resolve",m],_e.isValidElement(m))c=!1,this.create({id:i,type:"default",message:m});else if(g4(m)&&!m.ok){c=!1;const p=typeof a.error=="function"?await a.error(`HTTP error! status: ${m.status}`):a.error,v=typeof a.description=="function"?await a.description(`HTTP error! status: ${m.status}`):a.description,E=typeof p=="object"&&!_e.isValidElement(p)?p:{message:p};this.create({id:i,type:"error",description:v,...E})}else if(m instanceof Error){c=!1;const p=typeof a.error=="function"?await a.error(m):a.error,v=typeof a.description=="function"?await a.description(m):a.description,E=typeof p=="object"&&!_e.isValidElement(p)?p:{message:p};this.create({id:i,type:"error",description:v,...E})}else if(a.success!==void 0){c=!1;const p=typeof a.success=="function"?await a.success(m):a.success,v=typeof a.description=="function"?await a.description(m):a.description,E=typeof p=="object"&&!_e.isValidElement(p)?p:{message:p};this.create({id:i,type:"success",description:v,...E})}}).catch(async m=>{if(f=["reject",m],a.error!==void 0){c=!1;const b=typeof a.error=="function"?await a.error(m):a.error,p=typeof a.description=="function"?await a.description(m):a.description,w=typeof b=="object"&&!_e.isValidElement(b)?b:{message:b};this.create({id:i,type:"error",description:p,...w})}}).finally(()=>{c&&(this.dismiss(i),i=void 0),a.finally==null||a.finally.call(a)}),g=()=>new Promise((m,b)=>h.then(()=>f[0]==="reject"?b(f[1]):m(f[1])).catch(b));return typeof i!="string"&&typeof i!="number"?{unwrap:g}:Object.assign(i,{unwrap:g})},this.custom=(n,a)=>{const i=(a==null?void 0:a.id)||tS++;return this.create({jsx:n(i),id:i,...a}),i},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Yo=new p4,m4=(o,n)=>{const a=(n==null?void 0:n.id)||tS++;return Yo.addToast({title:o,...n,id:a}),a},g4=o=>o&&typeof o=="object"&&"ok"in o&&typeof o.ok=="boolean"&&"status"in o&&typeof o.status=="number",y4=m4,b4=()=>Yo.toasts,v4=()=>Yo.getActiveToasts(),nS=Object.assign(y4,{success:Yo.success,info:Yo.info,warning:Yo.warning,error:Yo.error,custom:Yo.custom,message:Yo.message,promise:Yo.promise,dismiss:Yo.dismiss,loading:Yo.loading},{getHistory:b4,getToasts:v4});r4("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function vm(o){return o.label!==void 0}const S4=3,w4="24px",E4="16px",WO=4e3,x4=356,R4=14,T4=45,C4=200;function _a(...o){return o.filter(Boolean).join(" ")}function O4(o){const[n,a]=o.split("-"),i=[];return n&&i.push(n),a&&i.push(a),i}const D4=o=>{var n,a,i,l,c,f,h,g,m;const{invert:b,toast:p,unstyled:v,interacting:w,setHeights:E,visibleToasts:T,heights:C,index:A,toasts:k,expanded:U,removeToast:M,defaultRichColors:Y,closeButton:$,style:_,cancelButtonStyle:z,actionButtonStyle:te,className:H="",descriptionClassName:J="",duration:N,position:j,gap:ne,expandByDefault:Z,classNames:P,icons:oe,closeButtonAriaLabel:I="Close toast"}=o,[se,pe]=_e.useState(null),[L,ce]=_e.useState(null),[ie,me]=_e.useState(!1),[Te,Ue]=_e.useState(!1),[ve,ze]=_e.useState(!1),[Pe,at]=_e.useState(!1),[xe,he]=_e.useState(!1),[we,De]=_e.useState(0),[Ye,Re]=_e.useState(0),Ae=_e.useRef(p.duration||N||WO),Le=_e.useRef(null),tt=_e.useRef(null),Ce=A===0,ot=A+1<=T,gt=p.type,yt=p.dismissible!==!1,ht=p.className||"",$t=p.descriptionClassName||"",on=_e.useMemo(()=>C.findIndex(Se=>Se.toastId===p.id)||0,[C,p.id]),bn=_e.useMemo(()=>{var Se;return(Se=p.closeButton)!=null?Se:$},[p.closeButton,$]),bt=_e.useMemo(()=>p.duration||N||WO,[p.duration,N]),jt=_e.useRef(0),Ft=_e.useRef(0),vn=_e.useRef(0),ln=_e.useRef(null),[Zn,hn]=j.split("-"),co=_e.useMemo(()=>C.reduce((Se,Ke,Ve)=>Ve>=on?Se:Se+Ke.height,0),[C,on]),uo=h4(),Un=p.invert||b,D=gt==="loading";Ft.current=_e.useMemo(()=>on*ne+co,[on,co]),_e.useEffect(()=>{Ae.current=bt},[bt]),_e.useEffect(()=>{me(!0)},[]),_e.useEffect(()=>{const Se=tt.current;if(Se){const Ke=Se.getBoundingClientRect().height;return Re(Ke),E(Ve=>[{toastId:p.id,height:Ke,position:p.position},...Ve]),()=>E(Ve=>Ve.filter(Rt=>Rt.toastId!==p.id))}},[E,p.id]),_e.useLayoutEffect(()=>{if(!ie)return;const Se=tt.current,Ke=Se.style.height;Se.style.height="auto";const Ve=Se.getBoundingClientRect().height;Se.style.height=Ke,Re(Ve),E(Rt=>Rt.find(rn=>rn.toastId===p.id)?Rt.map(rn=>rn.toastId===p.id?{...rn,height:Ve}:rn):[{toastId:p.id,height:Ve,position:p.position},...Rt])},[ie,p.title,p.description,E,p.id,p.jsx,p.action,p.cancel]);const G=_e.useCallback(()=>{Ue(!0),De(Ft.current),E(Se=>Se.filter(Ke=>Ke.toastId!==p.id)),setTimeout(()=>{M(p)},C4)},[p,M,E,Ft]);_e.useEffect(()=>{if(p.promise&>==="loading"||p.duration===1/0||p.type==="loading")return;let Se;return U||w||uo?(()=>{if(vn.current<jt.current){const Rt=new Date().getTime()-jt.current;Ae.current=Ae.current-Rt}vn.current=new Date().getTime()})():(()=>{Ae.current!==1/0&&(jt.current=new Date().getTime(),Se=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),G()},Ae.current))})(),()=>clearTimeout(Se)},[U,w,p,gt,uo,G]),_e.useEffect(()=>{p.delete&&(G(),p.onDismiss==null||p.onDismiss.call(p,p))},[G,p.delete]);function ge(){var Se;if(oe!=null&&oe.loading){var Ke;return _e.createElement("div",{className:_a(P==null?void 0:P.loader,p==null||(Ke=p.classNames)==null?void 0:Ke.loader,"sonner-loader"),"data-visible":gt==="loading"},oe.loading)}return _e.createElement(s4,{className:_a(P==null?void 0:P.loader,p==null||(Se=p.classNames)==null?void 0:Se.loader),visible:gt==="loading"})}const ye=p.icon||(oe==null?void 0:oe[gt])||a4(gt);var Ne,$e;return _e.createElement("li",{tabIndex:0,ref:tt,className:_a(H,ht,P==null?void 0:P.toast,p==null||(n=p.classNames)==null?void 0:n.toast,P==null?void 0:P.default,P==null?void 0:P[gt],p==null||(a=p.classNames)==null?void 0:a[gt]),"data-sonner-toast":"","data-rich-colors":(Ne=p.richColors)!=null?Ne:Y,"data-styled":!(p.jsx||p.unstyled||v),"data-mounted":ie,"data-promise":!!p.promise,"data-swiped":xe,"data-removed":Te,"data-visible":ot,"data-y-position":Zn,"data-x-position":hn,"data-index":A,"data-front":Ce,"data-swiping":ve,"data-dismissible":yt,"data-type":gt,"data-invert":Un,"data-swipe-out":Pe,"data-swipe-direction":L,"data-expanded":!!(U||Z&&ie),"data-testid":p.testId,style:{"--index":A,"--toasts-before":A,"--z-index":k.length-A,"--offset":`${Te?we:Ft.current}px`,"--initial-height":Z?"auto":`${Ye}px`,..._,...p.style},onDragEnd:()=>{ze(!1),pe(null),ln.current=null},onPointerDown:Se=>{Se.button!==2&&(D||!yt||(Le.current=new Date,De(Ft.current),Se.target.setPointerCapture(Se.pointerId),Se.target.tagName!=="BUTTON"&&(ze(!0),ln.current={x:Se.clientX,y:Se.clientY})))},onPointerUp:()=>{var Se,Ke,Ve;if(Pe||!yt)return;ln.current=null;const Rt=Number(((Se=tt.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Cn=Number(((Ke=tt.current)==null?void 0:Ke.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),rn=new Date().getTime()-((Ve=Le.current)==null?void 0:Ve.getTime()),xn=se==="x"?Rt:Cn,Qo=Math.abs(xn)/rn;if(Math.abs(xn)>=T4||Qo>.11){De(Ft.current),p.onDismiss==null||p.onDismiss.call(p,p),ce(se==="x"?Rt>0?"right":"left":Cn>0?"down":"up"),G(),at(!0);return}else{var B,Q;(B=tt.current)==null||B.style.setProperty("--swipe-amount-x","0px"),(Q=tt.current)==null||Q.style.setProperty("--swipe-amount-y","0px")}he(!1),ze(!1),pe(null)},onPointerMove:Se=>{var Ke,Ve,Rt;if(!ln.current||!yt||((Ke=window.getSelection())==null?void 0:Ke.toString().length)>0)return;const rn=Se.clientY-ln.current.y,xn=Se.clientX-ln.current.x;var Qo;const B=(Qo=o.swipeDirections)!=null?Qo:O4(j);!se&&(Math.abs(xn)>1||Math.abs(rn)>1)&&pe(Math.abs(xn)>Math.abs(rn)?"x":"y");let Q={x:0,y:0};const ue=Ee=>1/(1.5+Math.abs(Ee)/20);if(se==="y"){if(B.includes("top")||B.includes("bottom"))if(B.includes("top")&&rn<0||B.includes("bottom")&&rn>0)Q.y=rn;else{const Ee=rn*ue(rn);Q.y=Math.abs(Ee)<Math.abs(rn)?Ee:rn}}else if(se==="x"&&(B.includes("left")||B.includes("right")))if(B.includes("left")&&xn<0||B.includes("right")&&xn>0)Q.x=xn;else{const Ee=xn*ue(xn);Q.x=Math.abs(Ee)<Math.abs(xn)?Ee:xn}(Math.abs(Q.x)>0||Math.abs(Q.y)>0)&&he(!0),(Ve=tt.current)==null||Ve.style.setProperty("--swipe-amount-x",`${Q.x}px`),(Rt=tt.current)==null||Rt.style.setProperty("--swipe-amount-y",`${Q.y}px`)}},bn&&!p.jsx&>!=="loading"?_e.createElement("button",{"aria-label":I,"data-disabled":D,"data-close-button":!0,onClick:D||!yt?()=>{}:()=>{G(),p.onDismiss==null||p.onDismiss.call(p,p)},className:_a(P==null?void 0:P.closeButton,p==null||(i=p.classNames)==null?void 0:i.closeButton)},($e=oe==null?void 0:oe.close)!=null?$e:f4):null,(gt||p.icon||p.promise)&&p.icon!==null&&((oe==null?void 0:oe[gt])!==null||p.icon)?_e.createElement("div",{"data-icon":"",className:_a(P==null?void 0:P.icon,p==null||(l=p.classNames)==null?void 0:l.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||ge():null,p.type!=="loading"?ye:null):null,_e.createElement("div",{"data-content":"",className:_a(P==null?void 0:P.content,p==null||(c=p.classNames)==null?void 0:c.content)},_e.createElement("div",{"data-title":"",className:_a(P==null?void 0:P.title,p==null||(f=p.classNames)==null?void 0:f.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?_e.createElement("div",{"data-description":"",className:_a(J,$t,P==null?void 0:P.description,p==null||(h=p.classNames)==null?void 0:h.description)},typeof p.description=="function"?p.description():p.description):null),_e.isValidElement(p.cancel)?p.cancel:p.cancel&&vm(p.cancel)?_e.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||z,onClick:Se=>{vm(p.cancel)&&yt&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Se),G())},className:_a(P==null?void 0:P.cancelButton,p==null||(g=p.classNames)==null?void 0:g.cancelButton)},p.cancel.label):null,_e.isValidElement(p.action)?p.action:p.action&&vm(p.action)?_e.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||te,onClick:Se=>{vm(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Se),!Se.defaultPrevented&&G())},className:_a(P==null?void 0:P.actionButton,p==null||(m=p.classNames)==null?void 0:m.actionButton)},p.action.label):null)};function KO(){if(typeof window>"u"||typeof document>"u")return"ltr";const o=document.documentElement.getAttribute("dir");return o==="auto"||!o?window.getComputedStyle(document.documentElement).direction:o}function A4(o,n){const a={};return[o,n].forEach((i,l)=>{const c=l===1,f=c?"--mobile-offset":"--offset",h=c?E4:w4;function g(m){["top","right","bottom","left"].forEach(b=>{a[`${f}-${b}`]=typeof m=="number"?`${m}px`:m})}typeof i=="number"||typeof i=="string"?g(i):typeof i=="object"?["top","right","bottom","left"].forEach(m=>{i[m]===void 0?a[`${f}-${m}`]=h:a[`${f}-${m}`]=typeof i[m]=="number"?`${i[m]}px`:i[m]}):g(h)}),a}const N4=_e.forwardRef(function(n,a){const{id:i,invert:l,position:c="bottom-right",hotkey:f=["altKey","KeyT"],expand:h,closeButton:g,className:m,offset:b,mobileOffset:p,theme:v="light",richColors:w,duration:E,style:T,visibleToasts:C=S4,toastOptions:A,dir:k=KO(),gap:U=R4,icons:M,containerAriaLabel:Y="Notifications"}=n,[$,_]=_e.useState([]),z=_e.useMemo(()=>i?$.filter(ie=>ie.toasterId===i):$.filter(ie=>!ie.toasterId),[$,i]),te=_e.useMemo(()=>Array.from(new Set([c].concat(z.filter(ie=>ie.position).map(ie=>ie.position)))),[z,c]),[H,J]=_e.useState([]),[N,j]=_e.useState(!1),[ne,Z]=_e.useState(!1),[P,oe]=_e.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=_e.useRef(null),se=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),pe=_e.useRef(null),L=_e.useRef(!1),ce=_e.useCallback(ie=>{_(me=>{var Te;return(Te=me.find(Ue=>Ue.id===ie.id))!=null&&Te.delete||Yo.dismiss(ie.id),me.filter(({id:Ue})=>Ue!==ie.id)})},[]);return _e.useEffect(()=>Yo.subscribe(ie=>{if(ie.dismiss){requestAnimationFrame(()=>{_(me=>me.map(Te=>Te.id===ie.id?{...Te,delete:!0}:Te))});return}setTimeout(()=>{o4.flushSync(()=>{_(me=>{const Te=me.findIndex(Ue=>Ue.id===ie.id);return Te!==-1?[...me.slice(0,Te),{...me[Te],...ie},...me.slice(Te+1)]:[ie,...me]})})})}),[$]),_e.useEffect(()=>{if(v!=="system"){oe(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?oe("dark"):oe("light")),typeof window>"u")return;const ie=window.matchMedia("(prefers-color-scheme: dark)");try{ie.addEventListener("change",({matches:me})=>{oe(me?"dark":"light")})}catch{ie.addListener(({matches:Te})=>{try{oe(Te?"dark":"light")}catch(Ue){console.error(Ue)}})}},[v]),_e.useEffect(()=>{$.length<=1&&j(!1)},[$]),_e.useEffect(()=>{const ie=me=>{var Te;if(f.every(ze=>me[ze]||me.code===ze)){var ve;j(!0),(ve=I.current)==null||ve.focus()}me.code==="Escape"&&(document.activeElement===I.current||(Te=I.current)!=null&&Te.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",ie),()=>document.removeEventListener("keydown",ie)},[f]),_e.useEffect(()=>{if(I.current)return()=>{pe.current&&(pe.current.focus({preventScroll:!0}),pe.current=null,L.current=!1)}},[I.current]),_e.createElement("section",{ref:a,"aria-label":`${Y} ${se}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},te.map((ie,me)=>{var Te;const[Ue,ve]=ie.split("-");return z.length?_e.createElement("ol",{key:ie,dir:k==="auto"?KO():k,tabIndex:-1,ref:I,className:m,"data-sonner-toaster":!0,"data-sonner-theme":P,"data-y-position":Ue,"data-x-position":ve,style:{"--front-toast-height":`${((Te=H[0])==null?void 0:Te.height)||0}px`,"--width":`${x4}px`,"--gap":`${U}px`,...T,...A4(b,p)},onBlur:ze=>{L.current&&!ze.currentTarget.contains(ze.relatedTarget)&&(L.current=!1,pe.current&&(pe.current.focus({preventScroll:!0}),pe.current=null))},onFocus:ze=>{ze.target instanceof HTMLElement&&ze.target.dataset.dismissible==="false"||L.current||(L.current=!0,pe.current=ze.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{ne||j(!1)},onDragEnd:()=>j(!1),onPointerDown:ze=>{ze.target instanceof HTMLElement&&ze.target.dataset.dismissible==="false"||Z(!0)},onPointerUp:()=>Z(!1)},z.filter(ze=>!ze.position&&me===0||ze.position===ie).map((ze,Pe)=>{var at,xe;return _e.createElement(D4,{key:ze.id,icons:M,index:Pe,toast:ze,defaultRichColors:w,duration:(at=A==null?void 0:A.duration)!=null?at:E,className:A==null?void 0:A.className,descriptionClassName:A==null?void 0:A.descriptionClassName,invert:l,visibleToasts:C,closeButton:(xe=A==null?void 0:A.closeButton)!=null?xe:g,interacting:ne,position:ie,style:A==null?void 0:A.style,unstyled:A==null?void 0:A.unstyled,classNames:A==null?void 0:A.classNames,cancelButtonStyle:A==null?void 0:A.cancelButtonStyle,actionButtonStyle:A==null?void 0:A.actionButtonStyle,closeButtonAriaLabel:A==null?void 0:A.closeButtonAriaLabel,removeToast:ce,toasts:z.filter(he=>he.position==ze.position),heights:H.filter(he=>he.position==ze.position),setHeights:J,expandByDefault:h,gap:U,expanded:N,swipeDirections:n.swipeDirections})})):null}))}),mt=o=>typeof o=="string",cf=()=>{let o,n;const a=new Promise((i,l)=>{o=i,n=l});return a.resolve=o,a.reject=n,a},JO=o=>o==null?"":""+o,M4=(o,n,a)=>{o.forEach(i=>{n[i]&&(a[i]=n[i])})},_4=/###/g,ZO=o=>o&&o.indexOf("###")>-1?o.replace(_4,"."):o,eD=o=>!o||mt(o),Sf=(o,n,a)=>{const i=mt(n)?n.split("."):n;let l=0;for(;l<i.length-1;){if(eD(o))return{};const c=ZO(i[l]);!o[c]&&a&&(o[c]=new a),Object.prototype.hasOwnProperty.call(o,c)?o=o[c]:o={},++l}return eD(o)?{}:{obj:o,k:ZO(i[l])}},tD=(o,n,a)=>{const{obj:i,k:l}=Sf(o,n,Object);if(i!==void 0||n.length===1){i[l]=a;return}let c=n[n.length-1],f=n.slice(0,n.length-1),h=Sf(o,f,Object);for(;h.obj===void 0&&f.length;)c=`${f[f.length-1]}.${c}`,f=f.slice(0,f.length-1),h=Sf(o,f,Object),h!=null&&h.obj&&typeof h.obj[`${h.k}.${c}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${c}`]=a},k4=(o,n,a,i)=>{const{obj:l,k:c}=Sf(o,n,Object);l[c]=l[c]||[],l[c].push(a)},Ym=(o,n)=>{const{obj:a,k:i}=Sf(o,n);if(a&&Object.prototype.hasOwnProperty.call(a,i))return a[i]},L4=(o,n,a)=>{const i=Ym(o,a);return i!==void 0?i:Ym(n,a)},TN=(o,n,a)=>{for(const i in n)i!=="__proto__"&&i!=="constructor"&&(i in o?mt(o[i])||o[i]instanceof String||mt(n[i])||n[i]instanceof String?a&&(o[i]=n[i]):TN(o[i],n[i],a):o[i]=n[i]);return o},Kc=o=>o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var U4={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const z4=o=>mt(o)?o.replace(/[&<>"'\/]/g,n=>U4[n]):o;class P4{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const a=this.regExpMap.get(n);if(a!==void 0)return a;const i=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,i),this.regExpQueue.push(n),i}}const j4=[" ",",","?","!",";"],H4=new P4(20),I4=(o,n,a)=>{n=n||"",a=a||"";const i=j4.filter(f=>n.indexOf(f)<0&&a.indexOf(f)<0);if(i.length===0)return!0;const l=H4.getRegExp(`(${i.map(f=>f==="?"?"\\?":f).join("|")})`);let c=!l.test(o);if(!c){const f=o.indexOf(a);f>0&&!l.test(o.substring(0,f))&&(c=!0)}return c},oS=(o,n,a=".")=>{if(!o)return;if(o[n])return Object.prototype.hasOwnProperty.call(o,n)?o[n]:void 0;const i=n.split(a);let l=o;for(let c=0;c<i.length;){if(!l||typeof l!="object")return;let f,h="";for(let g=c;g<i.length;++g)if(g!==c&&(h+=a),h+=i[g],f=l[h],f!==void 0){if(["string","number","boolean"].indexOf(typeof f)>-1&&g<i.length-1)continue;c+=g-c+1;break}l=f}return l},Mf=o=>o==null?void 0:o.replace("_","-"),B4={type:"logger",log(o){this.output("log",o)},warn(o){this.output("warn",o)},error(o){this.output("error",o)},output(o,n){var a,i;(i=(a=console==null?void 0:console[o])==null?void 0:a.apply)==null||i.call(a,console,n)}};class $m{constructor(n,a={}){this.init(n,a)}init(n,a={}){this.prefix=a.prefix||"i18next:",this.logger=n||B4,this.options=a,this.debug=a.debug}log(...n){return this.forward(n,"log","",!0)}warn(...n){return this.forward(n,"warn","",!0)}error(...n){return this.forward(n,"error","")}deprecate(...n){return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(n,a,i,l){return l&&!this.debug?null:(mt(n[0])&&(n[0]=`${i}${this.prefix} ${n[0]}`),this.logger[a](n))}create(n){return new $m(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new $m(this.logger,n)}}var ja=new $m;class ug{constructor(){this.observers={}}on(n,a){return n.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const l=this.observers[i].get(a)||0;this.observers[i].set(a,l+1)}),this}off(n,a){if(this.observers[n]){if(!a){delete this.observers[n];return}this.observers[n].delete(a)}}emit(n,...a){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([l,c])=>{for(let f=0;f<c;f++)l(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([l,c])=>{for(let f=0;f<c;f++)l.apply(l,[n,...a])})}}class nD extends ug{constructor(n,a={ns:["translation"],defaultNS:"translation"}){super(),this.data=n||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const a=this.options.ns.indexOf(n);a>-1&&this.options.ns.splice(a,1)}getResource(n,a,i,l={}){var m,b;const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,f=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;n.indexOf(".")>-1?h=n.split("."):(h=[n,a],i&&(Array.isArray(i)?h.push(...i):mt(i)&&c?h.push(...i.split(c)):h.push(i)));const g=Ym(this.data,h);return!g&&!a&&!i&&n.indexOf(".")>-1&&(n=h[0],a=h[1],i=h.slice(2).join(".")),g||!f||!mt(i)?g:oS((b=(m=this.data)==null?void 0:m[n])==null?void 0:b[a],i,c)}addResource(n,a,i,l,c={silent:!1}){const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let h=[n,a];i&&(h=h.concat(f?i.split(f):i)),n.indexOf(".")>-1&&(h=n.split("."),l=a,a=h[1]),this.addNamespaces(a),tD(this.data,h,l),c.silent||this.emit("added",n,a,i,l)}addResources(n,a,i,l={silent:!1}){for(const c in i)(mt(i[c])||Array.isArray(i[c]))&&this.addResource(n,a,c,i[c],{silent:!0});l.silent||this.emit("added",n,a,i)}addResourceBundle(n,a,i,l,c,f={silent:!1,skipCopy:!1}){let h=[n,a];n.indexOf(".")>-1&&(h=n.split("."),l=i,i=a,a=h[1]),this.addNamespaces(a);let g=Ym(this.data,h)||{};f.skipCopy||(i=JSON.parse(JSON.stringify(i))),l?TN(g,i,c):g={...g,...i},tD(this.data,h,g),f.silent||this.emit("added",n,a,i)}removeResourceBundle(n,a){this.hasResourceBundle(n,a)&&delete this.data[n][a],this.removeNamespaces(a),this.emit("removed",n,a)}hasResourceBundle(n,a){return this.getResource(n,a)!==void 0}getResourceBundle(n,a){return a||(a=this.options.defaultNS),this.getResource(n,a)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const a=this.getDataByLanguage(n);return!!(a&&Object.keys(a)||[]).find(l=>a[l]&&Object.keys(a[l]).length>0)}toJSON(){return this.data}}var CN={processors:{},addPostProcessor(o){this.processors[o.name]=o},handle(o,n,a,i,l){return o.forEach(c=>{var f;n=((f=this.processors[c])==null?void 0:f.process(n,a,i,l))??n}),n}};const ON=Symbol("i18next/PATH_KEY");function V4(){const o=[],n=Object.create(null);let a;return n.get=(i,l)=>{var c;return(c=a==null?void 0:a.revoke)==null||c.call(a),l===ON?o:(o.push(l),a=Proxy.revocable(i,n),a.proxy)},Proxy.revocable(Object.create(null),n).proxy}function rS(o,n){const{[ON]:a}=o(V4());return a.join((n==null?void 0:n.keySeparator)??".")}const oD={},u0=o=>!mt(o)&&typeof o!="boolean"&&typeof o!="number";class qm extends ug{constructor(n,a={}){super(),M4(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ja.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n,a={interpolation:{}}){const i={...a};if(n==null)return!1;const l=this.resolve(n,i);if((l==null?void 0:l.res)===void 0)return!1;const c=u0(l.res);return!(i.returnObjects===!1&&c)}extractFromKey(n,a){let i=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let c=a.ns||this.options.defaultNS||[];const f=i&&n.indexOf(i)>-1,h=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!I4(n,i,l);if(f&&!h){const g=n.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:n,namespaces:mt(c)?[c]:c};const m=n.split(i);(i!==l||i===l&&this.options.ns.indexOf(m[0])>-1)&&(c=m.shift()),n=m.join(l)}return{key:n,namespaces:mt(c)?[c]:c}}translate(n,a,i){let l=typeof a=="object"?{...a}:a;if(typeof l!="object"&&this.options.overloadTranslationOptionHandler&&(l=this.options.overloadTranslationOptionHandler(arguments)),typeof l=="object"&&(l={...l}),l||(l={}),n==null)return"";typeof n=="function"&&(n=rS(n,{...this.options,...l})),Array.isArray(n)||(n=[String(n)]);const c=l.returnDetails!==void 0?l.returnDetails:this.options.returnDetails,f=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,{key:h,namespaces:g}=this.extractFromKey(n[n.length-1],l),m=g[g.length-1];let b=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const p=l.lng||this.language,v=l.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((p==null?void 0:p.toLowerCase())==="cimode")return v?c?{res:`${m}${b}${h}`,usedKey:h,exactUsedKey:h,usedLng:p,usedNS:m,usedParams:this.getUsedParamsDetails(l)}:`${m}${b}${h}`:c?{res:h,usedKey:h,exactUsedKey:h,usedLng:p,usedNS:m,usedParams:this.getUsedParamsDetails(l)}:h;const w=this.resolve(n,l);let E=w==null?void 0:w.res;const T=(w==null?void 0:w.usedKey)||h,C=(w==null?void 0:w.exactUsedKey)||h,A=["[object Number]","[object Function]","[object RegExp]"],k=l.joinArrays!==void 0?l.joinArrays:this.options.joinArrays,U=!this.i18nFormat||this.i18nFormat.handleAsObject,M=l.count!==void 0&&!mt(l.count),Y=qm.hasDefaultValue(l),$=M?this.pluralResolver.getSuffix(p,l.count,l):"",_=l.ordinal&&M?this.pluralResolver.getSuffix(p,l.count,{ordinal:!1}):"",z=M&&!l.ordinal&&l.count===0,te=z&&l[`defaultValue${this.options.pluralSeparator}zero`]||l[`defaultValue${$}`]||l[`defaultValue${_}`]||l.defaultValue;let H=E;U&&!E&&Y&&(H=te);const J=u0(H),N=Object.prototype.toString.apply(H);if(U&&H&&J&&A.indexOf(N)<0&&!(mt(k)&&Array.isArray(H))){if(!l.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const j=this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,H,{...l,ns:g}):`key '${h} (${this.language})' returned an object instead of string.`;return c?(w.res=j,w.usedParams=this.getUsedParamsDetails(l),w):j}if(f){const j=Array.isArray(H),ne=j?[]:{},Z=j?C:T;for(const P in H)if(Object.prototype.hasOwnProperty.call(H,P)){const oe=`${Z}${f}${P}`;Y&&!E?ne[P]=this.translate(oe,{...l,defaultValue:u0(te)?te[P]:void 0,joinArrays:!1,ns:g}):ne[P]=this.translate(oe,{...l,joinArrays:!1,ns:g}),ne[P]===oe&&(ne[P]=H[P])}E=ne}}else if(U&&mt(k)&&Array.isArray(E))E=E.join(k),E&&(E=this.extendTranslation(E,n,l,i));else{let j=!1,ne=!1;!this.isValidLookup(E)&&Y&&(j=!0,E=te),this.isValidLookup(E)||(ne=!0,E=h);const P=(l.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ne?void 0:E,oe=Y&&te!==E&&this.options.updateMissing;if(ne||j||oe){if(this.logger.log(oe?"updateKey":"missingKey",p,m,h,oe?te:E),f){const L=this.resolve(h,{...l,keySeparator:!1});L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let I=[];const se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,l.lng||this.language);if(this.options.saveMissingTo==="fallback"&&se&&se[0])for(let L=0;L<se.length;L++)I.push(se[L]);else this.options.saveMissingTo==="all"?I=this.languageUtils.toResolveHierarchy(l.lng||this.language):I.push(l.lng||this.language);const pe=(L,ce,ie)=>{var Te;const me=Y&&ie!==E?ie:P;this.options.missingKeyHandler?this.options.missingKeyHandler(L,m,ce,me,oe,l):(Te=this.backendConnector)!=null&&Te.saveMissing&&this.backendConnector.saveMissing(L,m,ce,me,oe,l),this.emit("missingKey",L,m,ce,E)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?I.forEach(L=>{const ce=this.pluralResolver.getSuffixes(L,l);z&&l[`defaultValue${this.options.pluralSeparator}zero`]&&ce.indexOf(`${this.options.pluralSeparator}zero`)<0&&ce.push(`${this.options.pluralSeparator}zero`),ce.forEach(ie=>{pe([L],h+ie,l[`defaultValue${ie}`]||te)})}):pe(I,h,te))}E=this.extendTranslation(E,n,l,w,i),ne&&E===h&&this.options.appendNamespaceToMissingKey&&(E=`${m}${b}${h}`),(ne||j)&&this.options.parseMissingKeyHandler&&(E=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${b}${h}`:h,j?E:void 0,l))}return c?(w.res=E,w.usedParams=this.getUsedParamsDetails(l),w):E}extendTranslation(n,a,i,l,c){var g,m;if((g=this.i18nFormat)!=null&&g.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const b=mt(n)&&(((m=i==null?void 0:i.interpolation)==null?void 0:m.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(b){const w=n.match(this.interpolator.nestingRegexp);p=w&&w.length}let v=i.replace&&!mt(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),n=this.interpolator.interpolate(n,v,i.lng||this.language||l.usedLng,i),b){const w=n.match(this.interpolator.nestingRegexp),E=w&&w.length;p<E&&(i.nest=!1)}!i.lng&&l&&l.res&&(i.lng=this.language||l.usedLng),i.nest!==!1&&(n=this.interpolator.nest(n,(...w)=>(c==null?void 0:c[0])===w[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${w[0]} in key: ${a[0]}`),null):this.translate(...w,a),i)),i.interpolation&&this.interpolator.reset()}const f=i.postProcess||this.options.postProcess,h=mt(f)?[f]:f;return n!=null&&(h!=null&&h.length)&&i.applyPostProcessor!==!1&&(n=CN.handle(h,n,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...l,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),n}resolve(n,a={}){let i,l,c,f,h;return mt(n)&&(n=[n]),n.forEach(g=>{if(this.isValidLookup(i))return;const m=this.extractFromKey(g,a),b=m.key;l=b;let p=m.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const v=a.count!==void 0&&!mt(a.count),w=v&&!a.ordinal&&a.count===0,E=a.context!==void 0&&(mt(a.context)||typeof a.context=="number")&&a.context!=="",T=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);p.forEach(C=>{var A,k;this.isValidLookup(i)||(h=C,!oD[`${T[0]}-${C}`]&&((A=this.utils)!=null&&A.hasLoadedNamespace)&&!((k=this.utils)!=null&&k.hasLoadedNamespace(h))&&(oD[`${T[0]}-${C}`]=!0,this.logger.warn(`key "${l}" for languages "${T.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),T.forEach(U=>{var $;if(this.isValidLookup(i))return;f=U;const M=[b];if(($=this.i18nFormat)!=null&&$.addLookupKeys)this.i18nFormat.addLookupKeys(M,b,U,C,a);else{let _;v&&(_=this.pluralResolver.getSuffix(U,a.count,a));const z=`${this.options.pluralSeparator}zero`,te=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(a.ordinal&&_.indexOf(te)===0&&M.push(b+_.replace(te,this.options.pluralSeparator)),M.push(b+_),w&&M.push(b+z)),E){const H=`${b}${this.options.contextSeparator||"_"}${a.context}`;M.push(H),v&&(a.ordinal&&_.indexOf(te)===0&&M.push(H+_.replace(te,this.options.pluralSeparator)),M.push(H+_),w&&M.push(H+z))}}let Y;for(;Y=M.pop();)this.isValidLookup(i)||(c=Y,i=this.getResource(U,C,Y,a))}))})}),{res:i,usedKey:l,exactUsedKey:c,usedLng:f,usedNS:h}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,a,i,l={}){var c;return(c=this.i18nFormat)!=null&&c.getResource?this.i18nFormat.getResource(n,a,i,l):this.resourceStore.getResource(n,a,i,l)}getUsedParamsDetails(n={}){const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=n.replace&&!mt(n.replace);let l=i?n.replace:n;if(i&&typeof n.count<"u"&&(l.count=n.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!i){l={...l};for(const c of a)delete l[c]}return l}static hasDefaultValue(n){const a="defaultValue";for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&a===i.substring(0,a.length)&&n[i]!==void 0)return!0;return!1}}class rD{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ja.create("languageUtils")}getScriptPartFromCode(n){if(n=Mf(n),!n||n.indexOf("-")<0)return null;const a=n.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(n){if(n=Mf(n),!n||n.indexOf("-")<0)return n;const a=n.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(n){if(mt(n)&&n.indexOf("-")>-1){let a;try{a=Intl.getCanonicalLocales(n)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let a;return n.forEach(i=>{if(a)return;const l=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(l))&&(a=l)}),!a&&this.options.supportedLngs&&n.forEach(i=>{if(a)return;const l=this.getScriptPartFromCode(i);if(this.isSupportedCode(l))return a=l;const c=this.getLanguagePartFromCode(i);if(this.isSupportedCode(c))return a=c;a=this.options.supportedLngs.find(f=>{if(f===c)return f;if(!(f.indexOf("-")<0&&c.indexOf("-")<0)&&(f.indexOf("-")>0&&c.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===c||f.indexOf(c)===0&&c.length>1))return f})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(n,a){if(!n)return[];if(typeof n=="function"&&(n=n(a)),mt(n)&&(n=[n]),Array.isArray(n))return n;if(!a)return n.default||[];let i=n[a];return i||(i=n[this.getScriptPartFromCode(a)]),i||(i=n[this.formatLanguageCode(a)]),i||(i=n[this.getLanguagePartFromCode(a)]),i||(i=n.default),i||[]}toResolveHierarchy(n,a){const i=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],n),l=[],c=f=>{f&&(this.isSupportedCode(f)?l.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return mt(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):mt(n)&&c(this.formatLanguageCode(n)),i.forEach(f=>{l.indexOf(f)<0&&c(this.formatLanguageCode(f))}),l}}const aD={zero:0,one:1,two:2,few:3,many:4,other:5},iD={select:o=>o===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class F4{constructor(n,a={}){this.languageUtils=n,this.options=a,this.logger=ja.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(n,a={}){const i=Mf(n==="dev"?"en":n),l=a.ordinal?"ordinal":"cardinal",c=JSON.stringify({cleanedCode:i,type:l});if(c in this.pluralRulesCache)return this.pluralRulesCache[c];let f;try{f=new Intl.PluralRules(i,{type:l})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),iD;if(!n.match(/-|_/))return iD;const g=this.languageUtils.getLanguagePartFromCode(n);f=this.getRule(g,a)}return this.pluralRulesCache[c]=f,f}needsPlural(n,a={}){let i=this.getRule(n,a);return i||(i=this.getRule("dev",a)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(n,a,i={}){return this.getSuffixes(n,i).map(l=>`${a}${l}`)}getSuffixes(n,a={}){let i=this.getRule(n,a);return i||(i=this.getRule("dev",a)),i?i.resolvedOptions().pluralCategories.sort((l,c)=>aD[l]-aD[c]).map(l=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${l}`):[]}getSuffix(n,a,i={}){const l=this.getRule(n,i);return l?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${l.select(a)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",a,i))}}const sD=(o,n,a,i=".",l=!0)=>{let c=L4(o,n,a);return!c&&l&&mt(a)&&(c=oS(o,a,i),c===void 0&&(c=oS(n,a,i))),c},d0=o=>o.replace(/\$/g,"$$$$");class lD{constructor(n={}){var a;this.logger=ja.create("interpolator"),this.options=n,this.format=((a=n==null?void 0:n.interpolation)==null?void 0:a.format)||(i=>i),this.init(n)}init(n={}){n.interpolation||(n.interpolation={escapeValue:!0});const{escape:a,escapeValue:i,useRawValueToEscape:l,prefix:c,prefixEscaped:f,suffix:h,suffixEscaped:g,formatSeparator:m,unescapeSuffix:b,unescapePrefix:p,nestingPrefix:v,nestingPrefixEscaped:w,nestingSuffix:E,nestingSuffixEscaped:T,nestingOptionsSeparator:C,maxReplaces:A,alwaysFormat:k}=n.interpolation;this.escape=a!==void 0?a:z4,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=l!==void 0?l:!1,this.prefix=c?Kc(c):f||"{{",this.suffix=h?Kc(h):g||"}}",this.formatSeparator=m||",",this.unescapePrefix=b?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":b||"",this.nestingPrefix=v?Kc(v):w||Kc("$t("),this.nestingSuffix=E?Kc(E):T||Kc(")"),this.nestingOptionsSeparator=C||",",this.maxReplaces=A||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(a,i)=>(a==null?void 0:a.source)===i?(a.lastIndex=0,a):new RegExp(i,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(n,a,i,l){var w;let c,f,h;const g=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=E=>{if(E.indexOf(this.formatSeparator)<0){const k=sD(a,g,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,i,{...l,...a,interpolationkey:E}):k}const T=E.split(this.formatSeparator),C=T.shift().trim(),A=T.join(this.formatSeparator).trim();return this.format(sD(a,g,C,this.options.keySeparator,this.options.ignoreJSONStructure),A,i,{...l,...a,interpolationkey:C})};this.resetRegExp();const b=(l==null?void 0:l.missingInterpolationHandler)||this.options.missingInterpolationHandler,p=((w=l==null?void 0:l.interpolation)==null?void 0:w.skipOnVariables)!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:E=>d0(E)},{regex:this.regexp,safeValue:E=>this.escapeValue?d0(this.escape(E)):d0(E)}].forEach(E=>{for(h=0;c=E.regex.exec(n);){const T=c[1].trim();if(f=m(T),f===void 0)if(typeof b=="function"){const A=b(n,c,l);f=mt(A)?A:""}else if(l&&Object.prototype.hasOwnProperty.call(l,T))f="";else if(p){f=c[0];continue}else this.logger.warn(`missed to pass in variable ${T} for interpolating ${n}`),f="";else!mt(f)&&!this.useRawValueToEscape&&(f=JO(f));const C=E.safeValue(f);if(n=n.replace(c[0],C),p?(E.regex.lastIndex+=f.length,E.regex.lastIndex-=c[0].length):E.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),n}nest(n,a,i={}){let l,c,f;const h=(g,m)=>{const b=this.nestingOptionsSeparator;if(g.indexOf(b)<0)return g;const p=g.split(new RegExp(`${b}[ ]*{`));let v=`{${p[1]}`;g=p[0],v=this.interpolate(v,f);const w=v.match(/'/g),E=v.match(/"/g);(((w==null?void 0:w.length)??0)%2===0&&!E||E.length%2!==0)&&(v=v.replace(/'/g,'"'));try{f=JSON.parse(v),m&&(f={...m,...f})}catch(T){return this.logger.warn(`failed parsing options string in nesting for key ${g}`,T),`${g}${b}${v}`}return f.defaultValue&&f.defaultValue.indexOf(this.prefix)>-1&&delete f.defaultValue,g};for(;l=this.nestingRegexp.exec(n);){let g=[];f={...i},f=f.replace&&!mt(f.replace)?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;const m=/{.*}/.test(l[1])?l[1].lastIndexOf("}")+1:l[1].indexOf(this.formatSeparator);if(m!==-1&&(g=l[1].slice(m).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),l[1]=l[1].slice(0,m)),c=a(h.call(this,l[1].trim(),f),f),c&&l[0]===n&&!mt(c))return c;mt(c)||(c=JO(c)),c||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${n}`),c=""),g.length&&(c=g.reduce((b,p)=>this.format(b,p,i.lng,{...i,interpolationkey:l[1].trim()}),c.trim())),n=n.replace(l[0],c),this.regexp.lastIndex=0}return n}}const Y4=o=>{let n=o.toLowerCase().trim();const a={};if(o.indexOf("(")>-1){const i=o.split("(");n=i[0].toLowerCase().trim();const l=i[1].substring(0,i[1].length-1);n==="currency"&&l.indexOf(":")<0?a.currency||(a.currency=l.trim()):n==="relativetime"&&l.indexOf(":")<0?a.range||(a.range=l.trim()):l.split(";").forEach(f=>{if(f){const[h,...g]=f.split(":"),m=g.join(":").trim().replace(/^'+|'+$/g,""),b=h.trim();a[b]||(a[b]=m),m==="false"&&(a[b]=!1),m==="true"&&(a[b]=!0),isNaN(m)||(a[b]=parseInt(m,10))}})}return{formatName:n,formatOptions:a}},cD=o=>{const n={};return(a,i,l)=>{let c=l;l&&l.interpolationkey&&l.formatParams&&l.formatParams[l.interpolationkey]&&l[l.interpolationkey]&&(c={...c,[l.interpolationkey]:void 0});const f=i+JSON.stringify(c);let h=n[f];return h||(h=o(Mf(i),l),n[f]=h),h(a)}},$4=o=>(n,a,i)=>o(Mf(a),i)(n);class q4{constructor(n={}){this.logger=ja.create("formatter"),this.options=n,this.init(n)}init(n,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";const i=a.cacheInBuiltFormats?cD:$4;this.formats={number:i((l,c)=>{const f=new Intl.NumberFormat(l,{...c});return h=>f.format(h)}),currency:i((l,c)=>{const f=new Intl.NumberFormat(l,{...c,style:"currency"});return h=>f.format(h)}),datetime:i((l,c)=>{const f=new Intl.DateTimeFormat(l,{...c});return h=>f.format(h)}),relativetime:i((l,c)=>{const f=new Intl.RelativeTimeFormat(l,{...c});return h=>f.format(h,c.range||"day")}),list:i((l,c)=>{const f=new Intl.ListFormat(l,{...c});return h=>f.format(h)})}}add(n,a){this.formats[n.toLowerCase().trim()]=a}addCached(n,a){this.formats[n.toLowerCase().trim()]=cD(a)}format(n,a,i,l={}){const c=a.split(this.formatSeparator);if(c.length>1&&c[0].indexOf("(")>1&&c[0].indexOf(")")<0&&c.find(h=>h.indexOf(")")>-1)){const h=c.findIndex(g=>g.indexOf(")")>-1);c[0]=[c[0],...c.splice(1,h)].join(this.formatSeparator)}return c.reduce((h,g)=>{var p;const{formatName:m,formatOptions:b}=Y4(g);if(this.formats[m]){let v=h;try{const w=((p=l==null?void 0:l.formatParams)==null?void 0:p[l.interpolationkey])||{},E=w.locale||w.lng||l.locale||l.lng||i;v=this.formats[m](h,E,{...b,...l,...w})}catch(w){this.logger.warn(w)}return v}else this.logger.warn(`there was no format function for ${m}`);return h},n)}}const G4=(o,n)=>{o.pending[n]!==void 0&&(delete o.pending[n],o.pendingCount--)};class X4 extends ug{constructor(n,a,i,l={}){var c,f;super(),this.backend=n,this.store=a,this.services=i,this.languageUtils=i.languageUtils,this.options=l,this.logger=ja.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],(f=(c=this.backend)==null?void 0:c.init)==null||f.call(c,i,l.backend,l)}queueLoad(n,a,i,l){const c={},f={},h={},g={};return n.forEach(m=>{let b=!0;a.forEach(p=>{const v=`${m}|${p}`;!i.reload&&this.store.hasResourceBundle(m,p)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?f[v]===void 0&&(f[v]=!0):(this.state[v]=1,b=!1,f[v]===void 0&&(f[v]=!0),c[v]===void 0&&(c[v]=!0),g[p]===void 0&&(g[p]=!0)))}),b||(h[m]=!0)}),(Object.keys(c).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(c),pending:Object.keys(f),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(g)}}loaded(n,a,i){const l=n.split("|"),c=l[0],f=l[1];a&&this.emit("failedLoading",c,f,a),!a&&i&&this.store.addResourceBundle(c,f,i,void 0,void 0,{skipCopy:!0}),this.state[n]=a?-1:2,a&&i&&(this.state[n]=0);const h={};this.queue.forEach(g=>{k4(g.loaded,[c],f),G4(g,n),a&&g.errors.push(a),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(m=>{h[m]||(h[m]={});const b=g.loaded[m];b.length&&b.forEach(p=>{h[m][p]===void 0&&(h[m][p]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(g=>!g.done)}read(n,a,i,l=0,c=this.retryTimeout,f){if(!n.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:a,fcName:i,tried:l,wait:c,callback:f});return}this.readingCalls++;const h=(m,b)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(m&&b&&l<this.maxRetries){setTimeout(()=>{this.read.call(this,n,a,i,l+1,c*2,f)},c);return}f(m,b)},g=this.backend[i].bind(this.backend);if(g.length===2){try{const m=g(n,a);m&&typeof m.then=="function"?m.then(b=>h(null,b)).catch(h):h(null,m)}catch(m){h(m)}return}return g(n,a,h)}prepareLoading(n,a,i={},l){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();mt(n)&&(n=this.languageUtils.toResolveHierarchy(n)),mt(a)&&(a=[a]);const c=this.queueLoad(n,a,i,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(f=>{this.loadOne(f)})}load(n,a,i){this.prepareLoading(n,a,{},i)}reload(n,a,i){this.prepareLoading(n,a,{reload:!0},i)}loadOne(n,a=""){const i=n.split("|"),l=i[0],c=i[1];this.read(l,c,"read",void 0,void 0,(f,h)=>{f&&this.logger.warn(`${a}loading namespace ${c} for language ${l} failed`,f),!f&&h&&this.logger.log(`${a}loaded namespace ${c} for language ${l}`,h),this.loaded(n,f,h)})}saveMissing(n,a,i,l,c,f={},h=()=>{}){var g,m,b,p,v;if((m=(g=this.services)==null?void 0:g.utils)!=null&&m.hasLoadedNamespace&&!((p=(b=this.services)==null?void 0:b.utils)!=null&&p.hasLoadedNamespace(a))){this.logger.warn(`did not save key "${i}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if((v=this.backend)!=null&&v.create){const w={...f,isUpdate:c},E=this.backend.create.bind(this.backend);if(E.length<6)try{let T;E.length===5?T=E(n,a,i,l,w):T=E(n,a,i,l),T&&typeof T.then=="function"?T.then(C=>h(null,C)).catch(h):h(null,T)}catch(T){h(T)}else E(n,a,i,l,h,w)}!n||!n[0]||this.store.addResource(n[0],a,i,l)}}}const f0=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o=>{let n={};if(typeof o[1]=="object"&&(n=o[1]),mt(o[1])&&(n.defaultValue=o[1]),mt(o[2])&&(n.tDescription=o[2]),typeof o[2]=="object"||typeof o[3]=="object"){const a=o[3]||o[2];Object.keys(a).forEach(i=>{n[i]=a[i]})}return n},interpolation:{escapeValue:!0,format:o=>o,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),uD=o=>{var n,a;return mt(o.ns)&&(o.ns=[o.ns]),mt(o.fallbackLng)&&(o.fallbackLng=[o.fallbackLng]),mt(o.fallbackNS)&&(o.fallbackNS=[o.fallbackNS]),((a=(n=o.supportedLngs)==null?void 0:n.indexOf)==null?void 0:a.call(n,"cimode"))<0&&(o.supportedLngs=o.supportedLngs.concat(["cimode"])),typeof o.initImmediate=="boolean"&&(o.initAsync=o.initImmediate),o},Sm=()=>{},Q4=o=>{Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach(a=>{typeof o[a]=="function"&&(o[a]=o[a].bind(o))})},W4=o=>{var n,a,i,l,c,f,h,g,m;return!!(((i=(a=(n=o==null?void 0:o.modules)==null?void 0:n.backend)==null?void 0:a.name)==null?void 0:i.indexOf("Locize"))>0||((h=(f=(c=(l=o==null?void 0:o.modules)==null?void 0:l.backend)==null?void 0:c.constructor)==null?void 0:f.name)==null?void 0:h.indexOf("Locize"))>0||(m=(g=o==null?void 0:o.options)==null?void 0:g.backend)!=null&&m.backends&&o.options.backend.backends.some(b=>{var p,v,w;return((p=b==null?void 0:b.name)==null?void 0:p.indexOf("Locize"))>0||((w=(v=b==null?void 0:b.constructor)==null?void 0:v.name)==null?void 0:w.indexOf("Locize"))>0}))};class wf extends ug{constructor(n={},a){if(super(),this.options=uD(n),this.services={},this.logger=ja,this.modules={external:[]},Q4(this),a&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,a),this;setTimeout(()=>{this.init(n,a)},0)}}init(n={},a){this.isInitializing=!0,typeof n=="function"&&(a=n,n={}),n.defaultNS==null&&n.ns&&(mt(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=f0();this.options={...i,...this.options,...uD(n)},this.options.interpolation={...i.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=i.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!W4(this)&&typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙");const l=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?ja.init(l(this.modules.logger),this.options):ja.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=q4;const b=new rD(this.options);this.store=new nD(this.options.resources,this.options);const p=this.services;p.logger=ja,p.resourceStore=this.store,p.languageUtils=b,p.pluralResolver=new F4(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=l(m),p.formatter.init&&p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new lD(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new X4(l(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",(w,...E)=>{this.emit(w,...E)}),this.modules.languageDetector&&(p.languageDetector=l(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=l(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new qm(this.services,this.options),this.translator.on("*",(w,...E)=>{this.emit(w,...E)}),this.modules.external.forEach(w=>{w.init&&w.init(this)})}if(this.format=this.options.interpolation.format,a||(a=Sm),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...b)=>this.store[m](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...b)=>(this.store[m](...b),this)});const h=cf(),g=()=>{const m=(b,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(p),a(b,p)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?g():setTimeout(g,0),h}loadResources(n,a=Sm){var c,f;let i=a;const l=mt(n)?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if((l==null?void 0:l.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const h=[],g=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(p=>{p!=="cimode"&&h.indexOf(p)<0&&h.push(p)})};l?g(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>g(b)),(f=(c=this.options.preload)==null?void 0:c.forEach)==null||f.call(c,m=>g(m)),this.services.backendConnector.load(h,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(m)})}else i(null)}reloadResources(n,a,i){const l=cf();return typeof n=="function"&&(i=n,n=void 0),typeof a=="function"&&(i=a,a=void 0),n||(n=this.languages),a||(a=this.options.ns),i||(i=Sm),this.services.backendConnector.reload(n,a,c=>{l.resolve(),i(c)}),l}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&CN.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1)){for(let a=0;a<this.languages.length;a++){const i=this.languages[a];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(n)<0&&this.store.hasLanguageSomeTranslations(n)&&(this.resolvedLanguage=n,this.languages.unshift(n))}}changeLanguage(n,a){this.isLanguageChangingTo=n;const i=cf();this.emit("languageChanging",n);const l=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},c=(h,g)=>{g?this.isLanguageChangingTo===n&&(l(g),this.translator.changeLanguage(g),this.isLanguageChangingTo=void 0,this.emit("languageChanged",g),this.logger.log("languageChanged",g)):this.isLanguageChangingTo=void 0,i.resolve((...m)=>this.t(...m)),a&&a(h,(...m)=>this.t(...m))},f=h=>{var b,p;!n&&!h&&this.services.languageDetector&&(h=[]);const g=mt(h)?h:h&&h[0],m=this.store.hasLanguageSomeTranslations(g)?g:this.services.languageUtils.getBestMatchFromCodes(mt(h)?[h]:h);m&&(this.language||l(m),this.translator.language||this.translator.changeLanguage(m),(p=(b=this.services.languageDetector)==null?void 0:b.cacheUserLanguage)==null||p.call(b,m)),this.loadResources(m,v=>{c(v,m)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(n),i}getFixedT(n,a,i){const l=(c,f,...h)=>{let g;typeof f!="object"?g=this.options.overloadTranslationOptionHandler([c,f].concat(h)):g={...f},g.lng=g.lng||l.lng,g.lngs=g.lngs||l.lngs,g.ns=g.ns||l.ns,g.keyPrefix!==""&&(g.keyPrefix=g.keyPrefix||i||l.keyPrefix);const m=this.options.keySeparator||".";let b;return g.keyPrefix&&Array.isArray(c)?b=c.map(p=>(typeof p=="function"&&(p=rS(p,{...this.options,...f})),`${g.keyPrefix}${m}${p}`)):(typeof c=="function"&&(c=rS(c,{...this.options,...f})),b=g.keyPrefix?`${g.keyPrefix}${m}${c}`:c),this.t(b,g)};return mt(n)?l.lng=n:l.lngs=n,l.ns=a,l.keyPrefix=i,l}t(...n){var a;return(a=this.translator)==null?void 0:a.translate(...n)}exists(...n){var a;return(a=this.translator)==null?void 0:a.exists(...n)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n,a={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=a.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const f=(h,g)=>{const m=this.services.backendConnector.state[`${h}|${g}`];return m===-1||m===0||m===2};if(a.precheck){const h=a.precheck(this,f);if(h!==void 0)return h}return!!(this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(i,n)&&(!l||f(c,n)))}loadNamespaces(n,a){const i=cf();return this.options.ns?(mt(n)&&(n=[n]),n.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{i.resolve(),a&&a(l)}),i):(a&&a(),Promise.resolve())}loadLanguages(n,a){const i=cf();mt(n)&&(n=[n]);const l=this.options.preload||[],c=n.filter(f=>l.indexOf(f)<0&&this.services.languageUtils.isSupportedCode(f));return c.length?(this.options.preload=l.concat(c),this.loadResources(f=>{i.resolve(),a&&a(f)}),i):(a&&a(),Promise.resolve())}dir(n){var l,c;if(n||(n=this.resolvedLanguage||(((l=this.languages)==null?void 0:l.length)>0?this.languages[0]:this.language)),!n)return"rtl";try{const f=new Intl.Locale(n);if(f&&f.getTextInfo){const h=f.getTextInfo();if(h&&h.direction)return h.direction}}catch{}const a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=((c=this.services)==null?void 0:c.languageUtils)||new rD(f0());return n.toLowerCase().indexOf("-latn")>1?"ltr":a.indexOf(i.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(n={},a){const i=new wf(n,a);return i.createInstance=wf.createInstance,i}cloneInstance(n={},a=Sm){const i=n.forkResourceStore;i&&delete n.forkResourceStore;const l={...this.options,...n,isClone:!0},c=new wf(l);if((n.debug!==void 0||n.prefix!==void 0)&&(c.logger=c.logger.clone(n)),["store","services","language"].forEach(h=>{c[h]=this[h]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},i){const h=Object.keys(this.store.data).reduce((g,m)=>(g[m]={...this.store.data[m]},g[m]=Object.keys(g[m]).reduce((b,p)=>(b[p]={...g[m][p]},b),g[m]),g),{});c.store=new nD(h,l),c.services.resourceStore=c.store}if(n.interpolation){const g={...f0().interpolation,...this.options.interpolation,...n.interpolation},m={...l,interpolation:g};c.services.interpolator=new lD(m)}return c.translator=new qm(c.services,l),c.translator.on("*",(h,...g)=>{c.emit(h,...g)}),c.init(l,a),c.translator.options=l,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const lo=wf.createInstance();lo.createInstance;lo.dir;lo.init;lo.loadResources;lo.reloadResources;lo.use;lo.changeLanguage;lo.getFixedT;lo.t;lo.exists;lo.setDefaultNamespace;lo.hasLoadedNamespace;lo.loadNamespaces;lo.loadLanguages;const K4=(o,n,a,i)=>{var c,f,h,g;const l=[a,{code:n,...i||{}}];if((f=(c=o==null?void 0:o.services)==null?void 0:c.logger)!=null&&f.forward)return o.services.logger.forward(l,"warn","react-i18next::",!0);Yl(l[0])&&(l[0]=`react-i18next:: ${l[0]}`),(g=(h=o==null?void 0:o.services)==null?void 0:h.logger)!=null&&g.warn?o.services.logger.warn(...l):console!=null&&console.warn&&console.warn(...l)},dD={},DN=(o,n,a,i)=>{Yl(a)&&dD[a]||(Yl(a)&&(dD[a]=new Date),K4(o,n,a,i))},AN=(o,n)=>()=>{if(o.isInitialized)n();else{const a=()=>{setTimeout(()=>{o.off("initialized",a)},0),n()};o.on("initialized",a)}},aS=(o,n,a)=>{o.loadNamespaces(n,AN(o,a))},fD=(o,n,a,i)=>{if(Yl(a)&&(a=[a]),o.options.preload&&o.options.preload.indexOf(n)>-1)return aS(o,a,i);a.forEach(l=>{o.options.ns.indexOf(l)<0&&o.options.ns.push(l)}),o.loadLanguages(n,AN(o,i))},J4=(o,n,a={})=>!n.languages||!n.languages.length?(DN(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(o,{lng:a.lng,precheck:(i,l)=>{if(a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!l(i.isLanguageChangingTo,o))return!1}}),Yl=o=>typeof o=="string",Z4=o=>typeof o=="object"&&o!==null,eH=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,tH={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},nH=o=>tH[o],oH=o=>o.replace(eH,nH);let iS={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:oH,transDefaultProps:void 0};const rH=(o={})=>{iS={...iS,...o}},aH=()=>iS;let NN;const iH=o=>{NN=o},sH=()=>NN,lH={type:"3rdParty",init(o){rH(o.options.react),iH(o)}},cH=x.createContext();class uH{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(a=>{this.usedNamespaces[a]||(this.usedNamespaces[a]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var h0={exports:{}},p0={},hD;function dH(){if(hD)return p0;hD=1;/**
|
|
302
|
-
* @license React
|
|
303
|
-
* use-sync-external-store-shim.development.js
|
|
304
|
-
*
|
|
305
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
306
|
-
*
|
|
307
|
-
* This source code is licensed under the MIT license found in the
|
|
308
|
-
* LICENSE file in the root directory of this source tree.
|
|
309
|
-
*/return(function(){function o(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}function n(w,E){b||l.startTransition===void 0||(b=!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 T=E();if(!p){var C=E();c(T,C)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}C=f({inst:{value:T,getSnapshot:E}});var A=C[0].inst,k=C[1];return g(function(){A.value=T,A.getSnapshot=E,a(A)&&k({inst:A})},[w,T,E]),h(function(){return a(A)&&k({inst:A}),w(function(){a(A)&&k({inst:A})})},[w]),m(T),T}function a(w){var E=w.getSnapshot;w=w.value;try{var T=E();return!c(w,T)}catch{return!0}}function i(w,E){return E()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l=Gl(),c=typeof Object.is=="function"?Object.is:o,f=l.useState,h=l.useEffect,g=l.useLayoutEffect,m=l.useDebugValue,b=!1,p=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:n;p0.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),p0}var pD;function MN(){return pD||(pD=1,h0.exports=dH()),h0.exports}var $S=MN();const fH=(o,n)=>Yl(n)?n:Z4(n)&&Yl(n.defaultValue)?n.defaultValue:Array.isArray(o)?o[o.length-1]:o,hH={t:fH,ready:!1},pH=()=>()=>{},dg=(o,n={})=>{var te,H,J;const{i18n:a}=n,{i18n:i,defaultNS:l}=x.useContext(cH)||{},c=a||i||sH();c&&!c.reportNamespaces&&(c.reportNamespaces=new uH),c||DN(c,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const f=x.useMemo(()=>{var N;return{...aH(),...(N=c==null?void 0:c.options)==null?void 0:N.react,...n}},[c,n]),{useSuspense:h,keyPrefix:g}=f,m=l||((te=c==null?void 0:c.options)==null?void 0:te.defaultNS),b=Yl(m)?[m]:m||["translation"],p=x.useMemo(()=>b,b);(J=(H=c==null?void 0:c.reportNamespaces)==null?void 0:H.addUsedNamespaces)==null||J.call(H,p);const v=x.useRef(0),w=x.useCallback(N=>{if(!c)return pH;const{bindI18n:j,bindI18nStore:ne}=f,Z=()=>{v.current+=1,N()};return j&&c.on(j,Z),ne&&c.store.on(ne,Z),()=>{j&&j.split(" ").forEach(P=>c.off(P,Z)),ne&&ne.split(" ").forEach(P=>c.store.off(P,Z))}},[c,f]),E=x.useRef(),T=x.useCallback(()=>{if(!c)return hH;const N=!!(c.isInitialized||c.initializedStoreOnce)&&p.every(I=>J4(I,c,f)),j=n.lng||c.language,ne=v.current,Z=E.current;if(Z&&Z.ready===N&&Z.lng===j&&Z.keyPrefix===g&&Z.revision===ne)return Z;const oe={t:c.getFixedT(j,f.nsMode==="fallback"?p:p[0],g),ready:N,lng:j,keyPrefix:g,revision:ne};return E.current=oe,oe},[c,p,g,f,n.lng]),[C,A]=x.useState(0),{t:k,ready:U}=$S.useSyncExternalStore(w,T,T);x.useEffect(()=>{if(c&&!U&&!h){const N=()=>A(j=>j+1);n.lng?fD(c,n.lng,p,N):aS(c,p,N)}},[c,n.lng,p,U,h,C]);const M=c||{},Y=x.useRef(null),$=x.useRef(),_=N=>{const j=Object.getOwnPropertyDescriptors(N);j.__original&&delete j.__original;const ne=Object.create(Object.getPrototypeOf(N),j);if(!Object.prototype.hasOwnProperty.call(ne,"__original"))try{Object.defineProperty(ne,"__original",{value:N,writable:!1,enumerable:!1,configurable:!1})}catch{}return ne},z=x.useMemo(()=>{const N=M,j=N==null?void 0:N.language;let ne=N;N&&(Y.current&&Y.current.__original===N?$.current!==j?(ne=_(N),Y.current=ne,$.current=j):ne=Y.current:(ne=_(N),Y.current=ne,$.current=j));const Z=[k,ne,U];return Z.t=k,Z.i18n=ne,Z.ready=U,Z},[k,M,U,M.resolvedLanguage,M.language,M.languages]);if(c&&h&&!U)throw new Promise(N=>{const j=()=>N();n.lng?fD(c,n.lng,p,j):aS(c,p,j)});return z},mH={en_US:{translation:{common:{loading:"Loading...",save:"Save",saving:"Saving...",cancel:"Cancel",add:"Add",delete:"Delete",edit:"Edit",confirm:"Confirm",close:"Close",expand:"Expand",collapse:"Collapse",refresh:"Refresh",test:"Test",send:"Send",success:"Success",error:"Error",warning:"Warning",info:"Info",yes:"Yes",no:"No",enabled:"Enabled",disabled:"Disabled",pending:"Pending",authorized:"Authorized",unknown:"Unknown",empty:"Empty",none:"None",default:"Default",optional:"Optional",required:"Required",pwaInstallTitle:"Install as app",pwaInstallHintIOSSafari:'iOS Safari does not show an automatic install prompt. Tap Share, then "Add to Home Screen".',pwaInstallHintIOSChrome:'iOS Chrome does not show an automatic install prompt. Tap Share, then "Add to Home Screen".'},nav:{manageDevices:"Manage Devices",settings:"Settings",sidebarExpand:"Expand Sidebar",sidebarCollapse:"Collapse Sidebar",openSidebar:"Open Sidebar",closeSidebar:"Close Sidebar",jumpToLatest:"Jump to Latest",switchToEditor:"Switch to Editor Input",switchToDirect:"Switch to Direct Input",refreshPage:"Refresh Page",refreshPageConfirm:"Are you sure you want to refresh the page? Unsaved content will be lost."},device:{title:"Device Management",devices:"Devices",addDevice:"Add Device",addDeviceDescription:"Fill in device details and choose a connection method",addFirstDevice:"Add First Device",editDevice:"Edit Device",editDeviceDescription:"Update device configuration",sectionBasic:"Basic Info",sectionConnection:"Connection",sectionAuth:"Authentication",noDevices:"No Devices",noDevicesDescription:"Add a local or SSH device to get started",name:"Device Name",namePlaceholder:"e.g., My Server",type:"Type",typeLocal:"Local Device",typeSSH:"SSH Remote Device",typeSSHBadge:"SSH",host:"Host",hostPlaceholder:"example.com",port:"Port",username:"Username",usernamePlaceholder:"root",session:"Tmux Session Name",sessionPlaceholder:"tmex",sessionHint:'Leave empty to use default "tmex"',authMode:"Authentication Mode",authPassword:"Password",authKey:"Private Key",authAgent:"SSH Agent",authConfigRef:"SSH Config",password:"Password",privateKey:"Private Key",privateKeyPlaceholder:"-----BEGIN OPENSSH PRIVATE KEY-----",privateKeyPassphrase:"Private Key Passphrase (Optional)",passphrase:"Passphrase",connect:"Connect",connected:"Connected",disconnect:"Disconnect",disconnected:"Disconnected",connecting:"Connecting...",deleteConfirm:"Delete this device?",deleteDescription:'Device "{{name}}" will be permanently removed. This action cannot be undone.',deleteSuccess:"Device deleted",createSuccess:"Device created",updateSuccess:"Device updated",deleteFailed:"Failed to delete device",createFailed:"Failed to create device",updateFailed:"Failed to update device",loadFailed:"Failed to load devices",localDevice:"Local Device",subtitle:"{{username}}@{{host}}:{{port}}",modify:"Modify Device",delete:"Delete"},terminal:{initializing:"Initializing terminal...",connecting:"Connecting to device...",initFailed:"Terminal initialization failed",inputPlaceholder:"Type command here...",clear:"Clear",deviceError:"Device Error",deviceErrorWithType:"[{{type}}] Device Error",noDeviceSelected:"No device selected",windowClosed:"Current window has been closed, please select a window from the sidebar.",paneClosed:"Current pane has been closed, please select a pane from the sidebar.",bellNotification:"Terminal Bell Notification",bellDescription:"Window {{window}} · Pane {{pane}}",bellFallback:"Received tmux bell",paneTitle:"Pane {{index}}",activePane:"Current Pane",activeWindow:"Current Window",editorPlaceholder:"Enter commands here...",editorClear:"Clear",editorSendWithEnter:"Send with Enter",editorSendLineByLine:"Send Line by Line",editorSend:"Send",sendShortcut:"Send {{key}}",inputModeDirect:"Direct Input",inputModeEditor:"Editor",newWindow:"New Window",closeWindow:"Close Window",closePane:"Close Pane"},settings:{title:"System Settings",siteSettings:"Site Settings",siteName:"Site Name",siteNamePlaceholder:"tmex",siteUrl:"Site URL",siteUrlPlaceholder:"http://localhost:3000",bellThrottle:"Bell Throttle (seconds)",notificationThrottle:"Notification Throttle (seconds)",enableBrowserBellToast:"Enable Browser Bell Toast",enableBrowserNotificationToast:"Enable Browser Notification Toast",enableTelegramBellPush:"Enable Telegram Bell Push",enableTelegramNotificationPush:"Enable Telegram Notification Push",sshReconnectRetries:"SSH Reconnect Retries",sshReconnectDelay:"SSH Reconnect Delay (seconds)",language:"Language",languagePlaceholder:"Select language",language_en_US:"English",language_zh_CN:"简体中文",language_ja_JP:"日本語",theme:"Theme",themeLight:"Light",themeDark:"Dark",siteTab:"Site",notificationsTab:"Notifications",refreshToApply:"Refresh to apply language change",saveSettings:"Save Settings",settingsSaved:"Settings saved",saveFailed:"Failed to save settings",loadFailed:"Failed to load settings",restartGateway:"Restart Gateway",restartScheduled:"Gateway restart scheduled",restartConfirm:"Are you sure you want to restart Gateway? This will interrupt all active connections.",restartFailed:"Failed to restart gateway",sshReconnectMaxRetries:"SSH Reconnect Retries"},telegram:{title:"Telegram Bot Management",botName:"Bot Name",botNamePlaceholder:"e.g., ops-bot",botToken:"Bot Token",botTokenPlaceholder:"123456:AA...",addBot:"Add Bot",enableBot:"Enable Bot",allowAuthRequests:"Allow Authorization Requests",pendingChats:"Pending Authorization",chats:"Authorized Chats",authorizedChats:"Authorized",noPendingChats:"No pending chats",noAuthorizedChats:"No authorized chats",approve:"Approve",authorize:"Authorize",reject:"Reject",revokeAuth:"Revoke Authorization",testMessage:"Test Message",sendTestMessage:"Send Test Message",deleteBot:"Delete Bot",tokenOptional:"Token (leave empty to keep unchanged)",tokenPlaceholder:"Enter new token",botCreated:"Bot created",botUpdated:"Bot updated",botDeleted:"Bot deleted",authApproved:"Authorization approved",chatRemoved:"Chat removed",testMessageSent:"Test message sent",createFailed:"Failed to create bot",updateFailed:"Failed to update bot",deleteFailed:"Failed to delete bot",approveFailed:"Failed to approve authorization",removeFailed:"Failed to remove chat",testMessageFailed:"Failed to send test message",loadBotsFailed:"Failed to load bot list",loadChatsFailed:"Failed to load chat list",noBots:"No bots yet, add one first.",expand:"Expand",collapse:"Collapse",authCount:"{{authorized}} authorized / {{pending}} pending (max 8)",chatId:"Chat ID",applyTime:"Application Time",gatewayOnline:"🟢 Gateway online @ {{siteName}}",authSuccess:"✅ Authorized. You will now receive notifications.",authPending:"⏳ Authorization request received. Please approve in tmex settings.",authFailed:"❌ Authorization request failed. Please contact administrator.",testMessageTemplate:`🧪 Test Message
|
|
310
|
-
Site: {{siteName}}
|
|
311
|
-
Time: {{time}}`,approveMessageTemplate:`✅ Authorized via tmex.
|
|
312
|
-
Bot: {{botName}}
|
|
313
|
-
Time: {{time}}`,botNotFound:"Bot not found or unavailable",botNotRunning:"Bot is not running or unavailable"},webhook:{title:"Webhooks",url:"Webhook URL",secret:"Secret",secretPlaceholder:"Used to sign payloads (HMAC-SHA256)",enabled:"Enabled",eventMask:"Events",add:"Add Webhook",empty:"No webhooks yet.",createFailed:"Failed to create webhook",deleteFailed:"Failed to delete webhook",loadFailed:"Failed to load webhooks"},sshError:{sshConfigRefNotSupported:"SSH Config reference is not supported in this version. Please use host + username with Agent/Key/Password authentication.",configRefNotSupported:"SSH Config reference is not supported in this version. Please use host + username with Agent/Key/Password authentication.",agentUnavailable:"SSH Agent unavailable: SSH_AUTH_SOCK not detected. Please check agent environment.",agentNoIdentity:"SSH Agent has no available keys. Please run ssh-add first.",agentNoIdentities:"SSH Agent has no available keys. Please run ssh-add first.",authFailed:"Authentication failed: incorrect username, password, or key. Please check device configuration.",authFailedGeneric:"Authentication failed: incorrect username, password, or key. Please check device configuration.",networkUnreachable:"Network unreachable: Please check routing, firewall, or VPN configuration.",connectionRefused:"Connection refused: Unable to connect to target host. Please check host address and port.",timeout:"Connection timeout: Unable to connect to device. Please check network or firewall settings.",connectionTimeout:"Connection timeout: Unable to connect to device. Please check network or firewall settings.",hostNotFound:"Host not found: Unable to resolve hostname. Please check DNS or hostname configuration.",handshakeFailed:"Handshake failed: Unable to establish secure connection. Possibly incompatible key exchange algorithm.",tmuxUnavailable:"Remote tmux unavailable or failed to start. Please ensure tmux is installed and available in the remote shell PATH.",unknown:"Connection failed: {{message}}",reconnecting:"Connection interrupted, reconnecting in {{delay}} seconds ({{attempt}}/{{maxRetries}})",reconnectFailed:"Auto-reconnect failed, please retry manually",reconnected:"Device reconnected automatically"},websocket:{error:"WebSocket connection error",checkGateway:"Please check Gateway status",upgradeFailed:"Upgrade failed",invalidMessage:"Invalid message format"},wsError:{checkGateway:"Please check Gateway status"},apiError:{siteNameRequired:"Site name cannot be empty",siteUrlInvalid:"Site URL must start with http:// or https://",bellThrottleInvalid:"Bell throttle seconds must be between 0-300",sshRetriesInvalid:"SSH reconnect retries must be between 0-20",sshDelayInvalid:"SSH reconnect delay must be between 1-300 seconds",languageInvalid:"Language must be one of the supported locales",botNameRequired:"Bot name cannot be empty",botTokenRequired:"Bot token cannot be empty",missingFields:"Missing required fields",sshRequiresHost:"SSH device requires host or sshConfigRef",invalidRequest:"Invalid request",deviceNotFound:"Device not found",botNotFound:"Bot not found",chatNotFound:"Chat not found",urlAndSecretRequired:"URL and secret are required",notFound:"Not found"},notification:{clickToJump:"Click to jump to corresponding pane",eventType:{terminal_bell:"🔔 Terminal Bell",terminal_notification:"🔔 Terminal Notification",tmux_window_close:"🪟 Window Closed",tmux_pane_close:"📱 Pane Closed",device_tmux_missing:"⚠️ Tmux Missing",device_disconnect:"🔌 Device Disconnected",session_created:"🆕 Session Created",session_closed:"🚪 Session Closed"},site:"Site",device:"Device",window:"Window",pane:"Pane",time:"Time",directLink:"Direct Link",message:"Message",telegramBell:{title:"🔔 Bell from {{siteName}}: {{terminalTopbarLabel}}",viewLink:"Click to view",terminalTopbarLabel:"Window {{window}} · Pane {{pane}} @ {{device}}"},telegramNotification:{}},sidebar:{noWindows:"No windows",noDevices:"No devices",addDeviceLink:"Add Device",openSettingsLink:"Open Settings",openSettings:"Open Settings",manageDevices:"Manage Devices",settings:"Settings",currentWindow:"Current Window",currentPane:"Current Pane",newWindow:"Create Window",closeWindow:"Close Window",closePane:"Close Pane",addDevice:"Add Device"},window:{noWindows:"No windows",new:"New Window"},validation:{deviceNameRequired:"Device name is required",hostRequired:"Host is required for SSH devices"}}},zh_CN:{translation:{common:{loading:"加载中...",save:"保存",saving:"保存中...",cancel:"取消",add:"添加",delete:"删除",edit:"修改",confirm:"确认",close:"关闭",expand:"展开",collapse:"收起",refresh:"刷新",test:"测试",send:"发送",success:"成功",error:"错误",warning:"警告",info:"信息",yes:"是",no:"否",enabled:"已启用",disabled:"已禁用",pending:"待授权",authorized:"已授权",unknown:"未知",empty:"空",none:"无",default:"默认",optional:"可选",required:"必填",pwaInstallTitle:"安装为应用",pwaInstallHintIOSSafari:"iOS Safari 不会自动弹出安装提示。请点击「分享」,再选择「添加到主屏幕」。",pwaInstallHintIOSChrome:"iOS Chrome 不会自动弹出安装提示。请点击「分享」,再选择「添加到主屏幕」"},nav:{manageDevices:"管理设备",settings:"设置",sidebarExpand:"展开侧边栏",sidebarCollapse:"收起侧边栏",openSidebar:"打开侧边栏",closeSidebar:"关闭侧边栏",jumpToLatest:"跳转到最新",switchToEditor:"切换到编辑器输入",switchToDirect:"切换到直接输入",refreshPage:"刷新页面",refreshPageConfirm:"确定要刷新页面吗?未保存的内容将会丢失。"},device:{title:"设备管理",devices:"设备",addDevice:"添加设备",addDeviceDescription:"填写设备信息并选择连接方式",addFirstDevice:"添加第一个设备",editDevice:"修改设备",editDeviceDescription:"更新设备配置",sectionBasic:"基本信息",sectionConnection:"连接信息",sectionAuth:"认证信息",noDevices:"暂无设备",noDevicesDescription:"添加本地或 SSH 设备开始使用",name:"设备名称",namePlaceholder:"例如:我的服务器",type:"类型",typeLocal:"本地设备",typeSSH:"SSH 远程设备",typeSSHBadge:"SSH",host:"主机",hostPlaceholder:"example.com",port:"端口",username:"用户名",usernamePlaceholder:"root",session:"Tmux 会话名称",sessionPlaceholder:"tmex",sessionHint:'留空将使用默认值 "tmex"',authMode:"认证方式",authPassword:"密码",authKey:"私钥",authAgent:"SSH Agent",authConfigRef:"SSH Config",password:"密码",privateKey:"私钥",privateKeyPlaceholder:"-----BEGIN OPENSSH PRIVATE KEY-----",privateKeyPassphrase:"私钥密码(可选)",passphrase:"私钥密码(可选)",connect:"连接",connected:"已连接",disconnect:"断开",disconnected:"已断开",connecting:"连接中...",deleteConfirm:"删除此设备?",deleteDescription:'设备 "{{name}}" 将被永久移除,此操作无法撤销。',deleteSuccess:"设备已删除",createSuccess:"设备已创建",updateSuccess:"设备已更新",deleteFailed:"删除设备失败",createFailed:"创建设备失败",updateFailed:"更新设备失败",loadFailed:"加载设备列表失败",localDevice:"本地设备",subtitle:"{{username}}@{{host}}:{{port}}",modify:"修改设备",delete:"删除"},terminal:{initializing:"初始化终端...",connecting:"连接设备...",initFailed:"终端初始化失败",inputPlaceholder:"在此输入命令...",clear:"清空",deviceError:"设备错误",deviceErrorWithType:"[{{type}}] 设备错误",noDeviceSelected:"未选择设备",windowClosed:"当前窗口已关闭,请在侧边栏重新选择窗口。",paneClosed:"当前 Pane 已关闭,请在侧边栏重新选择 Pane。",bellNotification:"终端 Bell 提醒",bellDescription:"窗口 {{window}} · Pane {{pane}}",bellFallback:"收到 tmux bell",paneTitle:"Pane {{index}}",activePane:"当前 pane",activeWindow:"当前窗口",editorPlaceholder:"在此输入命令...",editorClear:"清空",editorSendWithEnter:"发送附带回车",editorSendLineByLine:"逐行发送",editorSend:"发送",sendShortcut:"发送 {{key}}",inputModeDirect:"直接输入",inputModeEditor:"编辑器",newWindow:"新建窗口",closeWindow:"关闭窗口",closePane:"关闭 pane"},settings:{title:"系统设置",siteSettings:"站点设置",siteName:"站点名称",siteNamePlaceholder:"tmex",siteUrl:"站点访问 URL",siteUrlPlaceholder:"http://localhost:3000",bellThrottle:"Bell 频控(秒)",notificationThrottle:"通知频控(秒)",enableBrowserBellToast:"开启浏览器 Bell Toast",enableBrowserNotificationToast:"开启浏览器通知 Toast",enableTelegramBellPush:"开启 Telegram Bell 推送",enableTelegramNotificationPush:"开启 Telegram 通知推送",sshReconnectRetries:"SSH 重连次数",sshReconnectDelay:"SSH 重连等待(秒)",language:"语言",languagePlaceholder:"选择语言",language_en_US:"English",language_zh_CN:"简体中文",language_ja_JP:"日本語",theme:"主题",themeLight:"浅色",themeDark:"深色",siteTab:"站点",notificationsTab:"通知",refreshToApply:"刷新后生效",saveSettings:"保存设置",settingsSaved:"站点设置已保存",saveFailed:"保存设置失败",loadFailed:"加载设置失败",restartGateway:"重启 Gateway",restartScheduled:"Gateway 重启请求已发送",restartConfirm:"确定要重启 Gateway 吗?这将中断所有活动连接。",restartFailed:"重启请求失败",sshReconnectMaxRetries:"SSH 重连次数"},telegram:{title:"Telegram Bot 管理",botName:"Bot 名称",botNamePlaceholder:"如:ops-bot",botToken:"Bot Token",botTokenPlaceholder:"123456:AA...",addBot:"新增 Bot",enableBot:"启用 Bot",allowAuthRequests:"允许申请授权",pendingChats:"待授权",chats:"已授权",authorizedChats:"已授权",noPendingChats:"暂无待授权 chat",noAuthorizedChats:"暂无已授权 chat",approve:"批准",authorize:"授权",reject:"拒绝",revokeAuth:"撤销授权",testMessage:"测试消息",sendTestMessage:"发送测试消息",deleteBot:"删除 Bot",tokenOptional:"Token(留空不改)",tokenPlaceholder:"输入新 token",botCreated:"Bot 已创建",botUpdated:"Bot 已更新",botDeleted:"Bot 已删除",authApproved:"授权已批准",chatRemoved:"chat 已移除",testMessageSent:"测试消息已发送",createFailed:"新增 Bot 失败",updateFailed:"更新 Bot 失败",deleteFailed:"删除 Bot 失败",approveFailed:"批准授权失败",removeFailed:"删除 chat 失败",testMessageFailed:"发送测试消息失败",loadBotsFailed:"加载 Bot 列表失败",loadChatsFailed:"加载 chat 列表失败",noBots:"暂无 Bot,先添加一个。",expand:"展开",collapse:"收起",authCount:"已授权 {{authorized}} / 待授权 {{pending}}(总上限 8)",chatId:"chatId",applyTime:"申请时间",gatewayOnline:"🟢 Gateway online @ {{siteName}}",authSuccess:"✅ 已授权,可接收通知。",authPending:"⏳ 已收到授权申请,请在 tmex 设置页审批。",authFailed:"❌ 授权申请失败,请联系管理员。",testMessageTemplate:`🧪 测试消息
|
|
314
|
-
站点:{{siteName}}
|
|
315
|
-
时间:{{time}}`,approveMessageTemplate:`✅ 已通过 tmex 授权。
|
|
316
|
-
Bot:{{botName}}
|
|
317
|
-
时间:{{time}}`,botNotFound:"Bot 未启动或不可用",botNotRunning:"Bot 未启动或不可用"},webhook:{title:"Webhooks",url:"Webhook 地址",secret:"密钥",secretPlaceholder:"用于签名(HMAC-SHA256)",enabled:"启用",eventMask:"事件",add:"添加 Webhook",empty:"暂无 Webhook。",createFailed:"创建 Webhook 失败",deleteFailed:"删除 Webhook 失败",loadFailed:"加载 Webhook 失败"},sshError:{sshConfigRefNotSupported:"当前版本暂不支持 SSH Config 引用,请改为填写 host + username,并选择 Agent/私钥/密码认证",configRefNotSupported:"当前版本暂不支持 SSH Config 引用,请改为填写 host + username,并选择 Agent/私钥/密码认证",agentUnavailable:"SSH Agent 不可用:未检测到 SSH_AUTH_SOCK,请检查 agent 环境",agentNoIdentity:"SSH Agent 未加载可用密钥,请先执行 ssh-add",agentNoIdentities:"SSH Agent 未加载可用密钥,请先执行 ssh-add",authFailed:"认证失败:用户名、密码或密钥不正确,请检查设备配置",authFailedGeneric:"认证失败:用户名、密码或密钥不正确,请检查设备配置",networkUnreachable:"网络不可达:请检查路由、防火墙或 VPN 配置",connectionRefused:"连接被拒绝:无法连接到目标主机,请检查主机地址和端口是否正确",timeout:"连接超时:无法连接到设备,请检查网络或防火墙设置",connectionTimeout:"连接超时:无法连接到设备,请检查网络或防火墙设置",hostNotFound:"主机未找到:无法解析主机地址,请检查 DNS 或主机名是否正确",handshakeFailed:"握手失败:无法建立安全连接,可能是密钥交换算法不兼容",tmuxUnavailable:"远端 tmux 不可用或启动失败,请检查远端是否已安装 tmux,且远端 shell PATH 可找到 tmux",unknown:"连接失败:{{message}}",reconnecting:"连接中断,{{delay}} 秒后自动重连({{attempt}}/{{maxRetries}})",reconnectFailed:"自动重连失败,请手动重试",reconnected:"设备已自动重连"},websocket:{error:"WebSocket 连接错误",checkGateway:"请检查 Gateway 状态",upgradeFailed:"Upgrade failed",invalidMessage:"Invalid message format"},wsError:{checkGateway:"请检查 Gateway 状态"},apiError:{siteNameRequired:"站点名称不能为空",siteUrlInvalid:"站点 URL 必须以 http:// 或 https:// 开头",bellThrottleInvalid:"Bell 频控秒数需在 0-300 之间",sshRetriesInvalid:"SSH 重连次数需在 0-20 之间",sshDelayInvalid:"SSH 重连等待时间需在 1-300 秒之间",languageInvalid:"语言必须是受支持的区域设置之一",botNameRequired:"Bot 名称不能为空",botTokenRequired:"Bot token 不能为空",missingFields:"缺少必填字段",sshRequiresHost:"SSH 设备需要 host 或 sshConfigRef",invalidRequest:"请求无效",deviceNotFound:"Device not found",botNotFound:"Bot 不存在",chatNotFound:"Chat 不存在",urlAndSecretRequired:"URL and secret required",notFound:"Not found"},notification:{clickToJump:"点击跳转到对应 Pane",eventType:{terminal_bell:"🔔 终端 Bell",terminal_notification:"🔔 终端通知",tmux_window_close:"🪟 窗口关闭",tmux_pane_close:"📱 Pane 关闭",device_tmux_missing:"⚠️ Tmux 不可用",device_disconnect:"🔌 设备断开",session_created:"🆕 会话创建",session_closed:"🚪 会话关闭"},site:"站点",device:"设备",window:"窗口",pane:"Pane",time:"时间",directLink:"直达",message:"信息",telegramBell:{title:"🔔 来自 {{siteName}} 的 Bell:{{terminalTopbarLabel}}",viewLink:"点击查看",terminalTopbarLabel:"窗口 {{window}} · Pane {{pane}} @ {{device}}"},telegramNotification:{}},sidebar:{noWindows:"暂无窗口",noDevices:"暂无设备",addDeviceLink:"添加设备",openSettingsLink:"打开设置",openSettings:"打开设置",manageDevices:"管理设备",settings:"设置",currentWindow:"当前窗口",currentPane:"当前 pane",newWindow:"新建窗口",closeWindow:"关闭窗口",closePane:"关闭 pane",addDevice:"添加设备"},window:{noWindows:"暂无窗口",new:"新建窗口"},validation:{deviceNameRequired:"设备名称为必填项",hostRequired:"SSH 设备需要填写主机地址"}}},ja_JP:{translation:{common:{loading:"読み込み中...",save:"保存",saving:"保存中...",cancel:"キャンセル",add:"追加",delete:"削除",edit:"編集",confirm:"確認",close:"閉じる",expand:"展開",collapse:"折りたたむ",refresh:"更新",test:"テスト",send:"送信",success:"成功",error:"エラー",warning:"警告",info:"情報",yes:"はい",no:"いいえ",enabled:"有効",disabled:"無効",pending:"保留中",authorized:"承認済み",unknown:"不明",empty:"空",none:"なし",default:"デフォルト",optional:"任意",required:"必須",pwaInstallTitle:"アプリとしてインストール",pwaInstallHintIOSSafari:"iOS Safari では自動的にインストールプロンプトが表示されません。共有ボタンをタップし、「ホーム画面に追加」を選択してください。",pwaInstallHintIOSChrome:"iOS Chrome では自動的にインストールプロンプトが表示されません。共有ボタンをタップし、「ホーム画面に追加」を選択してください。"},nav:{manageDevices:"デバイス管理",settings:"設定",sidebarExpand:"サイドバーを展開",sidebarCollapse:"サイドバーを折りたたむ",openSidebar:"サイドバーを開く",closeSidebar:"サイドバーを閉じる",jumpToLatest:"最新にジャンプ",switchToEditor:"エディタ入力に切り替え",switchToDirect:"直接入力に切り替え",refreshPage:"ページを更新",refreshPageConfirm:"ページを更新してもよろしいですか?保存されていない内容は失われます。"},device:{title:"デバイス管理",devices:"デバイス",addDevice:"デバイスを追加",addDeviceDescription:"デバイス情報を入力し、接続方法を選択してください",addFirstDevice:"最初のデバイスを追加",editDevice:"デバイスを編集",editDeviceDescription:"デバイス設定を更新",sectionBasic:"基本情報",sectionConnection:"接続情報",sectionAuth:"認証情報",noDevices:"デバイスがありません",noDevicesDescription:"ローカルまたは SSH デバイスを追加して開始",name:"デバイス名",namePlaceholder:"例:My Server",type:"タイプ",typeLocal:"ローカルデバイス",typeSSH:"SSH リモートデバイス",typeSSHBadge:"SSH",host:"ホスト",hostPlaceholder:"example.com",port:"ポート",username:"ユーザー名",usernamePlaceholder:"root",session:"Tmux セッション名",sessionPlaceholder:"tmex",sessionHint:"空の場合、デフォルトの「tmex」が使用されます",authMode:"認証モード",authPassword:"パスワード",authKey:"秘密鍵",authAgent:"SSH Agent",authConfigRef:"SSH Config",password:"パスワード",privateKey:"秘密鍵",privateKeyPlaceholder:"-----BEGIN OPENSSH PRIVATE KEY-----",privateKeyPassphrase:"秘密鍵のパスフレーズ(任意)",passphrase:"パスフレーズ",connect:"接続",connected:"接続済み",disconnect:"切断",disconnected:"切断済み",connecting:"接続中...",deleteConfirm:"このデバイスを削除しますか?",deleteDescription:"デバイス「{{name}}」は完全に削除されます。この操作は取り消せません。",deleteSuccess:"デバイスを削除しました",createSuccess:"デバイスを作成しました",updateSuccess:"デバイスを更新しました",deleteFailed:"デバイスの削除に失敗しました",createFailed:"デバイスの作成に失敗しました",updateFailed:"デバイスの更新に失敗しました",loadFailed:"デバイス一覧の読み込みに失敗しました",localDevice:"ローカルデバイス",subtitle:"{{username}}@{{host}}:{{port}}",modify:"デバイスを変更",delete:"削除"},terminal:{initializing:"ターミナルを初期化中...",connecting:"デバイスに接続中...",initFailed:"ターミナルの初期化に失敗しました",inputPlaceholder:"ここにコマンドを入力...",clear:"クリア",deviceError:"デバイスエラー",deviceErrorWithType:"[{{type}}] デバイスエラー",noDeviceSelected:"デバイスが選択されていません",windowClosed:"現在のウィンドウは閉じられました。サイドバーからウィンドウを選択してください。",paneClosed:"現在のペインは閉じられました。サイドバーからペインを選択してください。",bellNotification:"ターミナルベル通知",bellDescription:"ウィンドウ {{window}} · ペイン {{pane}}",bellFallback:"tmux ベルを受信",paneTitle:"ペイン {{index}}",activePane:"現在のペイン",activeWindow:"現在のウィンドウ",editorPlaceholder:"ここにコマンドを入力...",editorClear:"クリア",editorSendWithEnter:"Enter で送信",editorSendLineByLine:"1行ずつ送信",editorSend:"送信",sendShortcut:"{{key}} を送信",inputModeDirect:"直接入力",inputModeEditor:"エディタ",newWindow:"新規ウィンドウ",closeWindow:"ウィンドウを閉じる",closePane:"ペインを閉じる"},settings:{title:"システム設定",siteSettings:"サイト設定",siteName:"サイト名",siteNamePlaceholder:"tmex",siteUrl:"サイト URL",siteUrlPlaceholder:"http://localhost:3000",bellThrottle:"ベル制限(秒)",notificationThrottle:"通知制限(秒)",enableBrowserBellToast:"ブラウザベル Toast を有効にする",enableBrowserNotificationToast:"ブラウザ通知 Toast を有効にする",enableTelegramBellPush:"Telegram ベルプッシュを有効にする",enableTelegramNotificationPush:"Telegram 通知プッシュを有効にする",sshReconnectRetries:"SSH 再接続試行回数",sshReconnectDelay:"SSH 再接続待機(秒)",language:"言語",languagePlaceholder:"言語を選択",language_en_US:"English",language_zh_CN:"简体中文",language_ja_JP:"日本語",theme:"テーマ",themeLight:"ライト",themeDark:"ダーク",siteTab:"サイト",notificationsTab:"通知",refreshToApply:"言語変更を適用するには更新してください",saveSettings:"設定を保存",settingsSaved:"設定を保存しました",saveFailed:"設定の保存に失敗しました",loadFailed:"設定の読み込みに失敗しました",restartGateway:"Gateway を再起動",restartScheduled:"Gateway の再起動が予定されました",restartConfirm:"Gateway を再起動してもよろしいですか?すべてのアクティブ接続が中断されます。",restartFailed:"Gateway の再起動に失敗しました",sshReconnectMaxRetries:"SSH 再接続試行回数"},telegram:{title:"Telegram Bot 管理",botName:"Bot 名",botNamePlaceholder:"例:ops-bot",botToken:"Bot Token",botTokenPlaceholder:"123456:AA...",addBot:"Bot を追加",enableBot:"Bot を有効にする",allowAuthRequests:"認証リクエストを許可",pendingChats:"承認待ち",chats:"承認済み",authorizedChats:"承認済み",noPendingChats:"承認待ちのチャットはありません",noAuthorizedChats:"承認済みのチャットはありません",approve:"承認",authorize:"認証",reject:"拒否",revokeAuth:"認証を取り消す",testMessage:"テストメッセージ",sendTestMessage:"テストメッセージを送信",deleteBot:"Bot を削除",tokenOptional:"Token(変更しない場合は空)",tokenPlaceholder:"新しい token を入力",botCreated:"Bot を作成しました",botUpdated:"Bot を更新しました",botDeleted:"Bot を削除しました",authApproved:"認証が承認されました",chatRemoved:"チャットを削除しました",testMessageSent:"テストメッセージを送信しました",createFailed:"Bot の作成に失敗しました",updateFailed:"Bot の更新に失敗しました",deleteFailed:"Bot の削除に失敗しました",approveFailed:"認証の承認に失敗しました",removeFailed:"チャットの削除に失敗しました",testMessageFailed:"テストメッセージの送信に失敗しました",loadBotsFailed:"Bot 一覧の読み込みに失敗しました",loadChatsFailed:"チャット一覧の読み込みに失敗しました",noBots:"Bot がありません。まず追加してください。",expand:"展開",collapse:"折りたたむ",authCount:"承認済み {{authorized}} / 承認待ち {{pending}}(最大 8)",chatId:"Chat ID",applyTime:"申請時間",gatewayOnline:"🟢 Gateway online @ {{siteName}}",authSuccess:"✅ 承認されました。通知を受信できます。",authPending:"⏳ 認証リクエストを受信しました。tmex 設定ページで承認してください。",authFailed:"❌ 認証リクエストに失敗しました。管理者に連絡してください。",testMessageTemplate:`🧪 テストメッセージ
|
|
318
|
-
サイト:{{siteName}}
|
|
319
|
-
時間:{{time}}`,approveMessageTemplate:`✅ tmex で承認されました。
|
|
320
|
-
Bot:{{botName}}
|
|
321
|
-
時間:{{time}}`,botNotFound:"Bot が見つからないか利用できません",botNotRunning:"Bot が起動していないか利用できません"},webhook:{title:"Webhooks",url:"Webhook URL",secret:"シークレット",secretPlaceholder:"署名に使用(HMAC-SHA256)",enabled:"有効",eventMask:"イベント",add:"Webhook を追加",empty:"Webhook がありません。",createFailed:"Webhook の作成に失敗しました",deleteFailed:"Webhook の削除に失敗しました",loadFailed:"Webhook の読み込みに失敗しました"},sshError:{sshConfigRefNotSupported:"このバージョンでは SSH Config 参照はサポートされていません。host + username を使用し、Agent/秘密鍵/パスワード認証を選択してください。",configRefNotSupported:"このバージョンでは SSH Config 参照はサポートされていません。host + username を使用し、Agent/秘密鍵/パスワード認証を選択してください。",agentUnavailable:"SSH Agent が利用できません:SSH_AUTH_SOCK が検出されません。agent 環境を確認してください。",agentNoIdentity:"SSH Agent に利用可能な鍵がありません。ssh-add を実行してください。",agentNoIdentities:"SSH Agent に利用可能な鍵がありません。ssh-add を実行してください。",authFailed:"認証に失敗しました:ユーザー名、パスワード、または鍵が正しくありません。デバイス設定を確認してください。",authFailedGeneric:"認証に失敗しました:ユーザー名、パスワード、または鍵が正しくありません。デバイス設定を確認してください。",networkUnreachable:"ネットワークに到達できません:ルーティング、ファイアウォール、または VPN 設定を確認してください。",connectionRefused:"接続が拒否されました:ターゲットホストに接続できません。ホストアドレスとポートを確認してください。",timeout:"接続タイムアウト:デバイスに接続できません。ネットワークまたはファイアウォール設定を確認してください。",connectionTimeout:"接続タイムアウト:デバイスに接続できません。ネットワークまたはファイアウォール設定を確認してください。",hostNotFound:"ホストが見つかりません:ホスト名を解決できません。DNS またはホスト名設定を確認してください。",handshakeFailed:"ハンドシェイクに失敗しました:安全な接続を確立できません。キー交換アルゴリズムが互換性がない可能性があります。",tmuxUnavailable:"リモート tmux が利用できないか起動に失敗しました。tmux がインストールされ、リモート shell の PATH から参照できることを確認してください。",unknown:"接続に失敗しました:{{message}}",reconnecting:"接続が中断されました。{{delay}} 秒後に再接続します({{attempt}}/{{maxRetries}})",reconnectFailed:"自動再接続に失敗しました。手動で再試行してください",reconnected:"デバイスが自動的に再接続されました"},websocket:{error:"WebSocket 接続エラー",checkGateway:"Gateway 状態を確認してください",upgradeFailed:"アップグレードに失敗しました",invalidMessage:"無効なメッセージ形式"},wsError:{checkGateway:"Gateway 状態を確認してください"},apiError:{siteNameRequired:"サイト名は空にできません",siteUrlInvalid:"サイト URL は http:// または https:// で始まる必要があります",bellThrottleInvalid:"ベル制限秒数は 0-300 の間である必要があります",sshRetriesInvalid:"SSH 再接続試行回数は 0-20 の間である必要があります",sshDelayInvalid:"SSH 再接続待機時間は 1-300 秒の間である必要があります",languageInvalid:"言語はサポートされているロケールのいずれかである必要があります",botNameRequired:"Bot 名は空にできません",botTokenRequired:"Bot token は空にできません",missingFields:"必須フィールドがありません",sshRequiresHost:"SSH デバイスには host または sshConfigRef が必要です",invalidRequest:"無効なリクエスト",deviceNotFound:"デバイスが見つかりません",botNotFound:"Bot が見つかりません",chatNotFound:"チャットが見つかりません",urlAndSecretRequired:"URL とシークレットが必要です",notFound:"見つかりません"},notification:{clickToJump:"対応するペインにジャンプ",eventType:{terminal_bell:"🔔 ターミナルベル",terminal_notification:"🔔 ターミナル通知",tmux_window_close:"🪟 ウィンドウ閉じる",tmux_pane_close:"📱 ペイン閉じる",device_tmux_missing:"⚠️ Tmux がありません",device_disconnect:"🔌 デバイス切断",session_created:"🆕 セッション作成",session_closed:"🚪 セッション閉じる"},site:"サイト",device:"デバイス",window:"ウィンドウ",pane:"ペイン",time:"時間",directLink:"直接リンク",message:"メッセージ",telegramBell:{title:"🔔 {{siteName}} からのベル:{{terminalTopbarLabel}}",viewLink:"表示",terminalTopbarLabel:"ウィンドウ {{window}} · ペイン {{pane}} @ {{device}}"},telegramNotification:{}},sidebar:{noWindows:"ウィンドウがありません",noDevices:"デバイスがありません",addDeviceLink:"デバイスを追加",openSettingsLink:"設定を開く",openSettings:"設定を開く",manageDevices:"デバイス管理",settings:"設定",currentWindow:"現在のウィンドウ",currentPane:"現在のペイン",newWindow:"ウィンドウを作成",closeWindow:"ウィンドウを閉じる",closePane:"ペインを閉じる",addDevice:"デバイスを追加"},window:{noWindows:"ウィンドウがありません",new:"新規ウィンドウ"},validation:{deviceNameRequired:"デバイス名は必須です",hostRequired:"SSH デバイスにはホストアドレスが必要です"}}}},qS="en_US",DY={locales:[{code:"en_US",name:"English",nativeName:"English",flag:"🇺🇸",isDefault:!0},{code:"zh_CN",name:"简体中文",nativeName:"简体中文",flag:"🇨🇳",isDefault:!1},{code:"ja_JP",name:"日本語",nativeName:"日本語",flag:"🇯🇵",isDefault:!1}]};function gH(o){return o.replace("_","-")}var m0={},Rl={},Tl={},mD;function yH(){if(mD)return Tl;mD=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.BinaryReader=Tl.BinaryWriter=void 0;class o{constructor(i=1024){Xe(this,"buffer");Xe(this,"view");Xe(this,"offset",0);this.buffer=new Uint8Array(i),this.view=new DataView(this.buffer.buffer)}ensureCapacity(i){const l=this.offset+i;if(l<=this.buffer.length)return;let c=this.buffer.length;for(;c<l;)c*=2;const f=new Uint8Array(c);f.set(this.buffer),this.buffer=f,this.view=new DataView(this.buffer.buffer)}writeUint8(i){this.ensureCapacity(1),this.view.setUint8(this.offset,i),this.offset+=1}writeUint16(i){this.ensureCapacity(2),this.view.setUint16(this.offset,i,!0),this.offset+=2}writeUint32(i){this.ensureCapacity(4),this.view.setUint32(this.offset,i,!0),this.offset+=4}writeUint64(i){this.ensureCapacity(8),this.view.setBigUint64(this.offset,i,!0),this.offset+=8}writeUint128(i){this.ensureCapacity(16);const l=i&BigInt("0xFFFFFFFFFFFFFFFF"),c=i>>BigInt(64);this.writeUint64(l),this.writeUint64(c)}writeInt8(i){this.ensureCapacity(1),this.view.setInt8(this.offset,i),this.offset+=1}writeInt16(i){this.ensureCapacity(2),this.view.setInt16(this.offset,i,!0),this.offset+=2}writeInt32(i){this.ensureCapacity(4),this.view.setInt32(this.offset,i,!0),this.offset+=4}writeInt64(i){this.ensureCapacity(8),this.view.setBigInt64(this.offset,i,!0),this.offset+=8}writeInt128(i){this.ensureCapacity(16);const l=i&BigInt("0xFFFFFFFFFFFFFFFF"),c=i>>BigInt(64);this.writeInt64(l),this.writeInt64(c)}writeFloat32(i){this.ensureCapacity(4),this.view.setFloat32(this.offset,i,!0),this.offset+=4}writeFloat64(i){this.ensureCapacity(8),this.view.setFloat64(this.offset,i,!0),this.offset+=8}writeBool(i){this.writeUint8(i?1:0)}writeString(i){const l=new TextEncoder().encode(i);this.writeUint32(l.length),this.ensureCapacity(l.length),this.buffer.set(l,this.offset),this.offset+=l.length}getBuffer(){return this.buffer.slice(0,this.offset)}}Tl.BinaryWriter=o;class n{constructor(i){Xe(this,"buffer");Xe(this,"view");Xe(this,"offset",0);this.buffer=i,this.view=new DataView(i.buffer,i.byteOffset,i.byteLength)}readUint8(){const i=this.view.getUint8(this.offset);return this.offset+=1,i}readUint16(){const i=this.view.getUint16(this.offset,!0);return this.offset+=2,i}readUint32(){const i=this.view.getUint32(this.offset,!0);return this.offset+=4,i}readUint64(){const i=this.view.getBigUint64(this.offset,!0);return this.offset+=8,i}readUint128(){const i=this.readUint64();return this.readUint64()<<BigInt(64)|i}readInt8(){const i=this.view.getInt8(this.offset);return this.offset+=1,i}readInt16(){const i=this.view.getInt16(this.offset,!0);return this.offset+=2,i}readInt32(){const i=this.view.getInt32(this.offset,!0);return this.offset+=4,i}readInt64(){const i=this.view.getBigInt64(this.offset,!0);return this.offset+=8,i}readInt128(){const i=this.readUint64();return this.readInt64()<<BigInt(64)|i}readFloat32(){const i=this.view.getFloat32(this.offset,!0);return this.offset+=4,i}readFloat64(){const i=this.view.getFloat64(this.offset,!0);return this.offset+=8,i}readBool(){return!!this.readUint8()}readString(){const i=this.readUint32(),l=this.buffer.slice(this.offset,this.offset+i);return this.offset+=i,new TextDecoder().decode(l)}getOffset(){return this.offset}}return Tl.BinaryReader=n,Tl}var g0={},gD;function bH(){return gD||(gD=1,(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.registry=o.TypeRegistry=void 0;class n{constructor(){Xe(this,"handlers",new Map)}register(i,l){this.handlers.set(i,l)}getHandler(i){const l=this.handlers.get(i);if(!l)throw new Error(`No handler registered for type: ${i}`);return l}}o.TypeRegistry=n,o.registry=new n,o.registry.register("u8",{write:(a,i)=>{if(i<0||i>255||!Number.isInteger(i))throw new Error("Value out of range for u8");a.writeUint8(i)},read:a=>a.readUint8()}),o.registry.register("u16",{write:(a,i)=>{if(i<0||i>65535||!Number.isInteger(i))throw new Error("Value out of range for u16");a.writeUint16(i)},read:a=>a.readUint16()}),o.registry.register("u32",{write:(a,i)=>{if(i<0||i>4294967295||!Number.isInteger(i))throw new Error("Value out of range for u32");a.writeUint32(i)},read:a=>a.readUint32()}),o.registry.register("u64",{write:(a,i)=>{if(i<0n||i>18446744073709551615n)throw new Error("Value out of range for u64");a.writeUint64(i)},read:a=>a.readUint64()}),o.registry.register("u128",{write:(a,i)=>{if(i<0n||i>340282366920938463463374607431768211455n)throw new Error("Value out of range for u128");a.writeUint128(i)},read:a=>a.readUint128()}),o.registry.register("i8",{write:(a,i)=>{if(i<-128||i>127||!Number.isInteger(i))throw new Error("Value out of range for i8");a.writeInt8(i)},read:a=>a.readInt8()}),o.registry.register("i16",{write:(a,i)=>{if(i<-32768||i>32767||!Number.isInteger(i))throw new Error("Value out of range for i16");a.writeInt16(i)},read:a=>a.readInt16()}),o.registry.register("i32",{write:(a,i)=>{if(i<-2147483648||i>2147483647||!Number.isInteger(i))throw new Error("Value out of range for i32");a.writeInt32(i)},read:a=>a.readInt32()}),o.registry.register("i64",{write:(a,i)=>{if(i<-9223372036854775808n||i>9223372036854775807n)throw new Error("Value out of range for i64");a.writeInt64(i)},read:a=>a.readInt64()}),o.registry.register("i128",{write:(a,i)=>{if(i<-170141183460469231731687303715884105728n||i>170141183460469231731687303715884105727n)throw new Error("Value out of range for i128");a.writeInt128(i)},read:a=>a.readInt128()}),o.registry.register("f32",{write:(a,i)=>a.writeFloat32(i),read:a=>a.readFloat32()}),o.registry.register("f64",{write:(a,i)=>{if(Number.isNaN(i))throw new Error("For portability reasons we do not allow serializing NaN values.");a.writeFloat64(i)},read:a=>a.readFloat64()}),o.registry.register("bool",{write:(a,i)=>a.writeBool(i),read:a=>a.readBool()}),o.registry.register("string",{write:(a,i)=>a.writeString(i),read:a=>a.readString()}),o.registry.register("unit",{write:()=>{},read:()=>({})}),o.registry.register("struct",{write:(a,i,l)=>{if(l)for(const[c,f]of Object.entries(l))o.registry.getHandler(f.type).write(a,i[c],f.options)},read:(a,i)=>{if(!i)return{};const l={};for(const[c,f]of Object.entries(i)){const h=o.registry.getHandler(f.type);l[c]=h.read(a,f.options)}return l}}),o.registry.register("vec",{write:(a,i,l)=>{if(!l)return;const{elementType:c,elementOptions:f}=l,h=(ArrayBuffer.isView(i),i.length);a.writeUint32(h);const g=o.registry.getHandler(c);if(ArrayBuffer.isView(i))for(let m=0;m<h;m++)g.write(a,i[m],f);else for(const m of i)g.write(a,m,f)},read:(a,i)=>{if(!i)return[];const{elementType:l,elementOptions:c}=i,f=a.readUint32(),h=o.registry.getHandler(l),g=Array.from({length:f},()=>h.read(a,c));switch(l){case"u8":return new Uint8Array(g);case"u16":return new Uint16Array(g);case"u32":return new Uint32Array(g);case"i8":return new Int8Array(g);case"i16":return new Int16Array(g);case"i32":return new Int32Array(g);case"i64":return new BigInt64Array(g);case"f32":return new Float32Array(g);case"f64":return new Float64Array(g);default:return g}}}),o.registry.register("set",{write:(a,i,l)=>{if(!l)return;const{elementType:c,elementOptions:f}=l,h=Array.from(i).sort();a.writeUint32(h.length);const g=o.registry.getHandler(c);for(const m of h)g.write(a,m,f)},read:(a,i)=>{if(!i)return new Set;const{elementType:l,elementOptions:c}=i,f=a.readUint32(),h=o.registry.getHandler(l),g=Array.from({length:f},()=>h.read(a,c));return new Set(g)}}),o.registry.register("map",{write:(a,i,l)=>{if(!l)return;const{keyType:c,keyOptions:f,valueType:h,valueOptions:g}=l,m=Array.from(i.entries()).sort();a.writeUint32(m.length);const b=o.registry.getHandler(c),p=o.registry.getHandler(h);for(const[v,w]of m)b.write(a,v,f),p.write(a,w,g)},read:(a,i)=>{if(!i)return new Map;const{keyType:l,keyOptions:c,valueType:f,valueOptions:h}=i,g=a.readUint32(),m=o.registry.getHandler(l),b=o.registry.getHandler(f),p=Array.from({length:g},()=>{const v=m.read(a,c),w=b.read(a,h);return[v,w]});return new Map(p)}}),o.registry.register("option",{write:(a,i,l)=>{if(!l)return;const{valueType:c,valueOptions:f}=l,h=i!==null;a.writeUint8(h?1:0),h&&o.registry.getHandler(c).write(a,i,f)},read:(a,i)=>{if(!i)return null;const{valueType:l,valueOptions:c}=i;return a.readUint8()===1?o.registry.getHandler(l).read(a,c):null}}),o.registry.register("enum",{write:(a,i,l)=>{if(!l)return;const c=Object.keys(i)[0],f=i[c],h=l.variants.find(g=>g.name===c);if(!h)throw new Error(`Unknown enum variant: ${c}`);a.writeUint8(h.index),h.type!=="unit"&&o.registry.getHandler(h.type).write(a,f,h.options)},read:(a,i)=>{if(!i)return{};const l=a.readUint8(),c=i.variants.find(g=>g.index===l);if(!c)throw new Error(`Unknown enum variant index: ${l}`);if(c.type==="unit")return{[c.name]:{}};const h=o.registry.getHandler(c.type).read(a,c.options);return{[c.name]:h}}}),o.registry.register("tuple",{write:(a,i,l)=>{if(l){if(i.length!==l.length)throw new Error(`Tuple length mismatch: expected ${l.length}, got ${i.length}`);for(let c=0;c<l.length;c++){const f=l[c];if(!f)throw new Error(`Missing type information for tuple element at index ${c}`);o.registry.getHandler(f.type).write(a,i[c],f.options)}}},read:(a,i)=>{if(!i)return[];const l=[];for(const c of i){const f=o.registry.getHandler(c.type);l.push(f.read(a,c.options))}return l}}),o.registry.register("array",{write:(a,i,l)=>{if(!l)return;const{elementType:c,elementOptions:f,length:h}=l;if(i.length!==h)throw new Error(`Array length mismatch: expected ${h}, got ${i.length}`);const g=o.registry.getHandler(c);for(const m of i)g.write(a,m,f)},read:(a,i)=>{if(!i)return[];const{elementType:l,elementOptions:c,length:f}=i,h=o.registry.getHandler(l);return Array.from({length:f},()=>h.read(a,c))}}),o.registry.register("bytes",{write:(a,i,l)=>{const c=i.length;if((l==null?void 0:l.length)!=null){if(c!==l.length)throw new Error(`Bytes length mismatch: expected ${l.length}, got ${c}`);for(let f=0;f<c;f++)a.writeUint8(i[f])}else{a.writeUint32(c);for(let f=0;f<c;f++)a.writeUint8(i[f])}},read:(a,i)=>{const l=(i==null?void 0:i.length)!=null?i.length:a.readUint32(),c=new Uint8Array(l);for(let f=0;f<l;f++)c[f]=a.readUint8();return c}}),o.registry.register("nativeEnum",{write:(a,i,l)=>{if(!l)return;const{valueToIndexMap:c}=l,f=i,h=c.get(f);if(h===void 0)throw new Error(`Invalid enum value: ${String(i)}`);a.writeUint8(h)},read:(a,i)=>{if(!i)return null;const{indexToValueMap:l}=i,c=a.readUint8(),f=l.get(c);if(f===void 0)throw new Error(`Invalid enum index: ${c}`);return f}})})(g0)),g0}var yD;function vH(){if(yD)return Rl;yD=1,Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.b=Rl.Schema=void 0;const o=yH(),n=bH();class a{constructor(l,c,f){Xe(this,"type");Xe(this,"options");Xe(this,"registry");this.type=l,this.options=c,this.registry=f}serialize(l){const c=new o.BinaryWriter;return this.registry.getHandler(this.type).write(c,l,this.options),c.getBuffer()}deserialize(l){const c=new o.BinaryReader(l);return this.registry.getHandler(this.type).read(c,this.options)}}return Rl.Schema=a,Rl.b={u8:()=>new a("u8",null,n.registry),u16:()=>new a("u16",null,n.registry),u32:()=>new a("u32",null,n.registry),u64:()=>new a("u64",null,n.registry),u128:()=>new a("u128",null,n.registry),i8:()=>new a("i8",null,n.registry),i16:()=>new a("i16",null,n.registry),i32:()=>new a("i32",null,n.registry),i64:()=>new a("i64",null,n.registry),i128:()=>new a("i128",null,n.registry),f32:()=>new a("f32",null,n.registry),f64:()=>new a("f64",null,n.registry),bool:()=>new a("bool",null,n.registry),string:()=>new a("string",null,n.registry),unit:()=>new a("unit",null,n.registry),vec:i=>new a("vec",{elementType:i.type,elementOptions:i.options},n.registry),hashSet:i=>new a("set",{elementType:i.type,elementOptions:i.options},n.registry),hashMap:(i,l)=>new a("map",{keyType:i.type,keyOptions:i.options,valueType:l.type,valueOptions:l.options},n.registry),option:i=>new a("option",{valueType:i.type,valueOptions:i.options},n.registry),array:(i,l)=>new a("array",{elementType:i.type,elementOptions:i.options,length:l},n.registry),bytes:i=>new a("bytes",i!=null?{length:i}:{},n.registry),enum:i=>{const l=Object.entries(i).map(([c,f],h)=>({index:h,name:c,type:f.type,options:f.options}));return new a("enum",{variants:l},n.registry)},struct:i=>{const l=Object.fromEntries(Object.entries(i).map(([c,f])=>[c,{type:f.type,options:f.options}]));return new a("struct",l,n.registry)},tuple:(...i)=>{const l=i.map(c=>({type:c.type,options:c.options}));return new a("tuple",l,n.registry)},nativeEnum:i=>{const l=Object.entries(i).filter(([b])=>typeof b=="string"&&Number.isNaN(Number(b))),c=l.map(([b,p])=>p),f=c.some(b=>typeof b=="string"),h=c.some(b=>typeof b=="number");if(f&&h)throw new Error("Mixed string/numeric enums are not supported");const g=new Map,m=new Map;if(l.forEach(([b,p],v)=>{g.set(p,v),m.set(v,p)}),l.length>255)throw new Error("Borsh only supports enums with up to 255 variants");return new a("nativeEnum",{enumObj:i,valueToIndexMap:g,indexToValueMap:m},n.registry)}},Rl}var bD;function SH(){return bD||(bD=1,(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Schema=o.b=void 0;var n=vH();Object.defineProperty(o,"b",{enumerable:!0,get:function(){return n.b}}),Object.defineProperty(o,"Schema",{enumerable:!0,get:function(){return n.Schema}})})(m0)),m0}var ae=SH();const wH=1,EH=2,xH=3,RH=4,TH=5,CH=257,OH=258,DH=259,AH=260,NH=261,MH=513,_H=514,kH=515,LH=516,UH=517,zH=519,PH=520,jH=769,HH=770,IH=771,BH=772,VH=773,FH=774,YH=1025,$H=1026,qH=1281,GH=1001,Pa=1002,XH=1003,_N=1004,zm=1005,QH=1101,WH=1102,KH=1201,JH=1202,ZH=1301,eI=1302,tI=1401,nI={[GH]:"Unsupported protocol version",[Pa]:"Invalid frame format",[XH]:"Unknown message kind",[_N]:"Failed to decode payload",[zm]:"Frame exceeds maximum size",[QH]:"Device not found",[WH]:"Failed to connect device",[KH]:"Tmux target not found",[JH]:"Tmux not ready",[ZH]:"Select conflict",[eI]:"Select token mismatch",[tI]:"Internal server error"};function oI(o){return nI[o]??`Unknown error code: ${o}`}class dr extends Error{constructor(n,a=!1,i){super(i??oI(n)),this.code=n,this.retryable=a,this.name="WsBorshError"}}const kN=ae.b.struct({magic:ae.b.bytes(2),version:ae.b.u16(),kind:ae.b.u16(),flags:ae.b.u16(),seq:ae.b.u32(),payload:ae.b.bytes()}),rI=ae.b.option(ae.b.u32()),bu=ae.b.option(ae.b.u16()),Go=ae.b.option(ae.b.string()),aI=ae.b.struct({clientImpl:ae.b.string(),clientVersion:ae.b.string(),maxFrameBytes:ae.b.u32(),supportsCompression:ae.b.bool(),supportsDiffSnapshot:ae.b.bool()}),iI=ae.b.struct({serverImpl:ae.b.string(),serverVersion:ae.b.string(),selectedVersion:ae.b.u16(),maxFrameBytes:ae.b.u32(),heartbeatIntervalMs:ae.b.u32(),capabilities:ae.b.vec(ae.b.string())}),sI=ae.b.struct({nonce:ae.b.u32(),timeMs:ae.b.u64()});ae.b.struct({refSeq:rI,code:ae.b.u16(),message:ae.b.string(),retryable:ae.b.bool()});const lI=ae.b.struct({deviceId:ae.b.string()}),cI=ae.b.struct({deviceId:ae.b.string()}),uI=ae.b.struct({deviceId:ae.b.string()}),dI=ae.b.struct({deviceId:ae.b.string()}),fI=ae.b.struct({deviceId:ae.b.string(),eventType:ae.b.u8(),errorType:Go,message:Go,rawMessage:Go}),hI=ae.b.struct({deviceId:ae.b.string(),windowId:Go,paneId:Go,selectToken:ae.b.bytes(16),wantHistory:ae.b.bool(),cols:bu,rows:bu}),pI=ae.b.struct({deviceId:ae.b.string(),windowId:ae.b.string()}),mI=ae.b.struct({deviceId:ae.b.string(),name:Go}),gI=ae.b.struct({deviceId:ae.b.string(),windowId:ae.b.string()}),yI=ae.b.struct({deviceId:ae.b.string(),paneId:ae.b.string()});ae.b.struct({deviceId:ae.b.string(),windowId:ae.b.string(),name:ae.b.string()});const bI=ae.b.struct({deviceId:ae.b.string(),eventType:ae.b.u8(),eventData:ae.b.bytes()}),vI=ae.b.struct({deviceId:ae.b.string(),paneId:ae.b.string(),encoding:ae.b.u8(),data:ae.b.bytes(),isComposing:ae.b.bool()}),SI=ae.b.struct({deviceId:ae.b.string(),paneId:ae.b.string(),encoding:ae.b.u8(),data:ae.b.bytes(),isComposing:ae.b.bool()}),LN=ae.b.struct({deviceId:ae.b.string(),paneId:ae.b.string(),cols:ae.b.u16(),rows:ae.b.u16()}),wI=LN,EI=ae.b.struct({deviceId:ae.b.string(),paneId:ae.b.string(),encoding:ae.b.u8(),data:ae.b.bytes()}),xI=ae.b.struct({deviceId:ae.b.string(),paneId:ae.b.string(),selectToken:ae.b.bytes(16),encoding:ae.b.u8(),alternateScreen:ae.b.bool(),data:ae.b.bytes()}),RI=ae.b.struct({deviceId:ae.b.string(),windowId:ae.b.string(),paneId:ae.b.string(),selectToken:ae.b.bytes(16)}),TI=ae.b.struct({deviceId:ae.b.string(),paneId:ae.b.string(),selectToken:ae.b.bytes(16)}),UN=ae.b.struct({chunkStreamId:ae.b.u32(),originalKind:ae.b.u16(),originalSeq:ae.b.u32(),totalChunks:ae.b.u16(),chunkIndex:ae.b.u16(),data:ae.b.bytes()}),CI=ae.b.struct({id:ae.b.string(),windowId:ae.b.string(),index:ae.b.u16(),title:Go,active:ae.b.bool(),width:ae.b.u16(),height:ae.b.u16()}),OI=ae.b.struct({id:ae.b.string(),name:ae.b.string(),index:ae.b.u16(),active:ae.b.bool(),panes:ae.b.vec(CI)}),DI=ae.b.struct({id:ae.b.string(),name:ae.b.string(),windows:ae.b.vec(OI)}),AI=ae.b.struct({deviceId:ae.b.string(),session:ae.b.option(DI)});ae.b.struct({deviceId:ae.b.string(),baseRevision:ae.b.u32(),revision:ae.b.u32(),diffFormat:ae.b.u8(),diffBytes:ae.b.bytes()});const NI=ae.b.struct({windowId:ae.b.string()}),MI=ae.b.struct({windowId:ae.b.string()}),_I=ae.b.struct({windowId:ae.b.string(),name:ae.b.string()}),kI=ae.b.struct({windowId:ae.b.string()}),LI=ae.b.struct({paneId:ae.b.string(),windowId:ae.b.string()}),UI=ae.b.struct({paneId:ae.b.string()}),zI=ae.b.struct({windowId:ae.b.string(),paneId:ae.b.string()}),PI=ae.b.struct({windowId:ae.b.string(),layout:ae.b.string()}),jI=ae.b.struct({windowId:Go,paneId:Go,windowIndex:bu,paneIndex:bu,paneUrl:Go}),HI=ae.b.struct({source:ae.b.u8(),title:Go,body:ae.b.string(),windowId:Go,paneId:Go,windowIndex:bu,paneIndex:bu,paneUrl:Go}),_f=new Uint8Array([84,88]),II=1;function Pm(o,n,a,i=0,l=II){const c={magic:_f,version:l,kind:o,flags:i,seq:a,payload:n};return kN.serialize(c)}function pr(o,n){return o.serialize(n)}function BI(o){if(o.length<12)throw new dr(Pa,!1,"Envelope too small");if(o[0]!==_f[0]||o[1]!==_f[1])throw new dr(Pa,!1,"Invalid magic bytes");try{return kN.deserialize(o)}catch(n){throw new dr(Pa,!1,n instanceof Error?n.message:"Failed to decode envelope")}}function Ol(o,n){try{return o.deserialize(n)}catch(a){throw new dr(_N,!1,a instanceof Error?a.message:"Failed to decode payload")}}function VI(o,n){const a=UN.serialize(o);return Pm(1281,a,n)}function FI(o){return UN.deserialize(o)}function YI(o){return o.length>=2&&o[0]===_f[0]&&o[1]===_f[1]}const $I=5e3,vD=100,sS=1e3;class qI{constructor(){Xe(this,"streams",new Map);Xe(this,"lastCleanup",Date.now())}addChunk(n){if(this.cleanup(),n.totalChunks>sS)throw new dr(Pa,!1,`Too many chunks: ${n.totalChunks} > ${sS}`);if(n.chunkIndex>=n.totalChunks)throw new dr(Pa,!1,`Chunk index out of bounds: ${n.chunkIndex} >= ${n.totalChunks}`);let a=this.streams.get(n.chunkStreamId);if(!a){if(this.streams.size>=vD&&(this.cleanup(!0),this.streams.size>=vD))throw new dr(Pa,!1,"Too many concurrent chunk streams");a={chunks:new Map,totalChunks:n.totalChunks,createdAt:Date.now(),originalKind:n.originalKind,originalSeq:n.originalSeq},this.streams.set(n.chunkStreamId,a)}if(a.totalChunks!==n.totalChunks)throw this.streams.delete(n.chunkStreamId),new dr(Pa,!1,"Chunk total count mismatch");if(a.chunks.has(n.chunkIndex))throw new dr(Pa,!1,`Duplicate chunk index: ${n.chunkIndex}`);return a.chunks.set(n.chunkIndex,n),a.chunks.size===a.totalChunks?this.reassemble(n.chunkStreamId,a):null}reassemble(n,a){const i=[];let l=0;for(let h=0;h<a.totalChunks;h++){const g=a.chunks.get(h);if(!g)throw this.streams.delete(n),new dr(Pa,!1,`Missing chunk index: ${h}`);i.push(g.data),l+=g.data.length}const c=new Uint8Array(l);let f=0;for(const h of i)c.set(h,f),f+=h.length;return this.streams.delete(n),{kind:a.originalKind,seq:a.originalSeq,payload:c}}cleanup(n=!1){const a=Date.now();if(!n&&a-this.lastCleanup<5e3)return;this.lastCleanup=a;const i=a-$I;for(const[l,c]of this.streams)c.createdAt<i&&this.streams.delete(l)}getActiveStreamCount(){return this.streams.size}clear(){this.streams.clear()}}function GI(o,n,a,i){const{maxFrameBytes:l,chunkStreamId:c}=i,f=16,h=18,g=l-f;if(g<=0)throw new dr(zm,!1,`maxFrameBytes too small: ${l}`);if(o.length<=g)return{chunks:[],totalChunks:0};const m=l-f-h;if(m<=0)throw new dr(zm,!1,`maxFrameBytes too small for chunking: ${l}`);const b=Math.ceil(o.length/m);if(b>sS)throw new dr(zm,!1,`Too many chunks: ${b}`);const p=[];for(let v=0;v<b;v++){const w=v*m,E=Math.min(w+m,o.length);p.push({chunkStreamId:c,originalKind:n,originalSeq:a,totalChunks:b,chunkIndex:v,data:o.slice(w,E)})}return{chunks:p,totalChunks:b}}let y0=1;function XI(){const o=y0;return y0=y0%4294967295+1,o}const QI={1:"osc9",2:"osc777",3:"osc1337"};function WI(o){const n=fI.deserialize(o),a={1:"tmux-missing",2:"disconnected",3:"error",4:"reconnected"};return{deviceId:n.deviceId,type:a[n.eventType]??"error",errorType:n.errorType??void 0,message:n.message??void 0,rawMessage:n.rawMessage??void 0}}function KI(o){const n=bI.deserialize(o),i={1:"window-add",2:"window-close",3:"window-renamed",4:"window-active",5:"pane-add",6:"pane-close",7:"pane-active",8:"layout-change",9:"bell",10:"output",11:"notification"}[n.eventType];if(!i)throw new Error(`Unknown tmux event type: ${n.eventType}`);return{deviceId:n.deviceId,type:i,data:JI(i,n.eventData)}}function JI(o,n){if(n.length===0)return{};try{switch(o){case"window-add":return NI.deserialize(n);case"window-close":return MI.deserialize(n);case"window-renamed":return _I.deserialize(n);case"window-active":return kI.deserialize(n);case"pane-add":return LI.deserialize(n);case"pane-close":return UI.deserialize(n);case"pane-active":return zI.deserialize(n);case"layout-change":return PI.deserialize(n);case"bell":{const a=jI.deserialize(n);return{windowId:a.windowId??void 0,paneId:a.paneId??void 0,windowIndex:a.windowIndex??void 0,paneIndex:a.paneIndex??void 0,paneUrl:a.paneUrl??void 0}}case"notification":{const a=HI.deserialize(n);return{source:QI[a.source]??"osc9",title:a.title??void 0,body:a.body,windowId:a.windowId??void 0,paneId:a.paneId??void 0,windowIndex:a.windowIndex??void 0,paneIndex:a.paneIndex??void 0,paneUrl:a.paneUrl??void 0}}default:return{}}}catch{return{}}}function ZI(o){const n=AI.deserialize(o);return{deviceId:n.deviceId,session:n.session?e5(n.session):null}}function e5(o){return{id:o.id,name:o.name,windows:o.windows.map(t5)}}function t5(o){return{id:o.id,name:o.name,index:o.index,active:o.active,panes:o.panes.map(n5)}}function n5(o){return{id:o.id,windowId:o.windowId,index:o.index,title:o.title??void 0,active:o.active,width:o.width,height:o.height}}function o5(){const o=navigator.language;return o.startsWith("zh")?"zh_CN":o.startsWith("ja")?"ja_JP":qS}lo.use(lH).init({resources:mH,lng:o5(),fallbackLng:qS,interpolation:{escapeValue:!1},returnNull:!1});const r5=`${typeof window<"u"&&window.location.protocol==="https:"?"wss:":"ws:"}//${typeof window<"u"?window.location.host:""}/ws`,a5={clientImpl:"tmex-fe",clientVersion:"0.1.0",maxFrameBytes:1048576,reconnectDelayMs:1e3,maxReconnectAttempts:5,heartbeatIntervalMs:15e3};class i5{constructor(n={}){Xe(this,"ws",null);Xe(this,"options");Xe(this,"state","IDLE");Xe(this,"seq",0);Xe(this,"chunkReassembler",new qI);Xe(this,"reconnectAttempts",0);Xe(this,"reconnectTimer",null);Xe(this,"heartbeatTimer",null);Xe(this,"messageHandlers",new Set);Xe(this,"stateChangeHandlers",new Set);Xe(this,"errorHandlers",new Set);Xe(this,"pendingMessages",[]);Xe(this,"maxPendingMessages",100);this.options={...a5,...n}}setState(n){if(this.state!==n){console.log(`[borsh-client] State: ${this.state} -> ${n}`),this.state=n;for(const a of this.stateChangeHandlers)try{a(n)}catch(i){console.error("[borsh-client] State change handler error:",i)}n==="READY"&&this.flushPendingMessages()}}getState(){return this.state}isReady(){return this.state==="READY"}onMessage(n){return this.messageHandlers.add(n),()=>this.messageHandlers.delete(n)}onStateChange(n){return this.stateChangeHandlers.add(n),()=>this.stateChangeHandlers.delete(n)}onError(n){return this.errorHandlers.add(n),()=>this.errorHandlers.delete(n)}connect(){var n,a;if(!(((n=this.ws)==null?void 0:n.readyState)===WebSocket.OPEN||((a=this.ws)==null?void 0:a.readyState)===WebSocket.CONNECTING)){this.setState("WS_CONNECTING");try{this.ws=new WebSocket(r5),this.ws.binaryType="arraybuffer",this.ws.onopen=()=>{this.sendHello()},this.ws.onmessage=i=>{this.handleMessage(i.data)},this.ws.onclose=()=>{this.handleClose()},this.ws.onerror=()=>{this.handleError(new Error("WebSocket error"))}}catch(i){this.handleError(i instanceof Error?i:new Error(String(i)))}}}disconnect(){this.setState("CLOSED"),this.clearTimers(),this.ws&&(this.ws.close(),this.ws=null)}handleMessage(n){if(typeof n=="string")return;const a=new Uint8Array(n);if(!YI(a)){console.warn("[borsh-client] Received message without magic, ignoring");return}try{const i=BI(a);if(i.kind===qH){const l=FI(i.payload),c=this.chunkReassembler.addChunk(l);c&&this.dispatchMessage({kind:c.kind,seq:c.seq,payload:c.payload});return}if(i.kind===EH){this.handleHelloS2C(i.payload);return}if(i.kind===RH)return;this.dispatchMessage({kind:i.kind,seq:i.seq,payload:i.payload})}catch(i){console.error("[borsh-client] Failed to decode message:",i)}}dispatchMessage(n){for(const a of this.messageHandlers)try{a(n)}catch(i){console.error("[borsh-client] Message handler error:",i)}}handleHelloS2C(n){try{const a=Ol(iI,n);console.log("[borsh-client] HELLO_S2C received:",a),this.setState("READY"),this.startHeartbeat(),this.reconnectAttempts=0}catch(a){console.error("[borsh-client] Failed to decode HELLO_S2C:",a),this.handleError(new Error("HELLO negotiation failed"))}}handleClose(){this.stopHeartbeat(),this.state!=="CLOSED"&&(this.reconnectAttempts<this.options.maxReconnectAttempts?this.scheduleReconnect():(this.setState("CLOSED"),this.handleError(new Error("Max reconnection attempts reached"))))}handleError(n){console.error("[borsh-client] Error:",n);for(const a of this.errorHandlers)try{a(n)}catch(i){console.error("[borsh-client] Error handler error:",i)}}sendHello(){const n={clientImpl:this.options.clientImpl,clientVersion:this.options.clientVersion,maxFrameBytes:this.options.maxFrameBytes,supportsCompression:!1,supportsDiffSnapshot:!1},a=pr(aI,n),i=this.nextSeq(),l=Pm(wH,a,i);this.sendRaw(l),this.setState("HELLO_NEGOTIATING")}send(n,a){if(!this.isReady())return this.pendingMessages.length<this.maxPendingMessages&&this.pendingMessages.push({kind:n,payload:a}),!1;const i=this.nextSeq(),l=GI(a,n,i,{maxFrameBytes:this.options.maxFrameBytes,chunkStreamId:XI()});if(l.totalChunks===0){const c=Pm(n,a,i);this.sendRaw(c)}else for(const c of l.chunks){const f=VI(c,this.nextSeq());this.sendRaw(f)}return!0}sendRaw(n){var a;((a=this.ws)==null?void 0:a.readyState)===WebSocket.OPEN&&this.ws.send(n)}flushPendingMessages(){for(;this.pendingMessages.length>0;){const n=this.pendingMessages.shift();n&&this.send(n.kind,n.payload)}}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.sendPing()},this.options.heartbeatIntervalMs)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}sendPing(){if(!this.isReady())return;const n={nonce:Math.floor(Math.random()*4294967295),timeMs:BigInt(Date.now())},a=pr(sI,n),i=this.nextSeq(),l=Pm(xH,a,i);this.sendRaw(l)}scheduleReconnect(){if(this.reconnectTimer)return;this.reconnectAttempts++,this.setState("RECONNECT_BACKOFF");const n=Math.min(this.options.reconnectDelayMs*2**(this.reconnectAttempts-1),3e4);console.log(`[borsh-client] Reconnecting in ${n}ms (attempt ${this.reconnectAttempts})`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},n)}clearTimers(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopHeartbeat()}nextSeq(){return this.seq=(this.seq+1)%4294967295,this.seq}}let b0=null;function cr(){return b0||(b0=new i5),b0}class s5{constructor(n={}){Xe(this,"transactions",new Map);Xe(this,"outputGates",new Map);Xe(this,"deferredResets",new Set);Xe(this,"deferredHistories",new Map);Xe(this,"deferredFlushes",new Map);Xe(this,"deferredOutputs",new Map);Xe(this,"callbacks");Xe(this,"ackTimeoutMs",1500);Xe(this,"liveResumeTimeoutMs",2e3);Xe(this,"timers",new Map);this.callbacks=n}setCallbacks(n){this.callbacks=n;for(const a of this.transactions.keys())this.replayDeferred(a);for(const a of this.deferredResets)this.replayDeferred(a);for(const a of this.deferredHistories.keys())this.replayDeferred(a);for(const a of this.deferredFlushes.keys())this.replayDeferred(a);for(const a of this.deferredOutputs.keys())this.replayDeferred(a)}getTransaction(n){return this.transactions.get(n)}getState(n){var a;return((a=this.transactions.get(n))==null?void 0:a.state)??"STABLE"}isStable(n){return this.getState(n)==="STABLE"}isBuffering(n){var a;return((a=this.outputGates.get(n))==null?void 0:a.state)==="BUFFERING"}dispatch(n){switch(n.type){case"SELECT_START":this.handleSelectStart(n);break;case"SWITCH_ACK":this.handleSwitchAck(n);break;case"HISTORY":this.handleHistory(n);break;case"LIVE_RESUME":this.handleLiveResume(n);break;case"OUTPUT":this.handleOutput(n);break;case"SELECT_FAILED":this.handleSelectFailed(n);break}}handleSelectStart(n){const{deviceId:a,windowId:i,paneId:l,selectToken:c,wantHistory:f}=n;this.cancelTransaction(a),this.clearDeferred(a);const h={state:"SELECTING",deviceId:a,windowId:i,paneId:l,selectToken:new Uint8Array(c),wantHistory:f,startedAt:Date.now()};this.transactions.set(a,h),this.startOutputBuffering(a),this.setTimer(a,()=>{this.handleTimeout(a,"ack")},this.ackTimeoutMs)}handleSwitchAck(n){const{deviceId:a,selectToken:i}=n,l=this.transactions.get(a);!l||!this.validateToken(l.selectToken,i)||l.state==="SELECTING"&&(this.clearTimer(a),l.state="ACKED",this.callbacks.onResetTerminal?this.callbacks.onResetTerminal(a):this.deferredResets.add(a),this.setTimer(a,()=>{this.handleTimeout(a,"live")},this.liveResumeTimeoutMs))}handleHistory(n){const{deviceId:a,selectToken:i,data:l}=n,c=this.transactions.get(a);!c||!this.validateToken(c.selectToken,i)||c.state==="ACKED"&&(c.state="HISTORY_APPLIED",this.callbacks.onApplyHistory?this.callbacks.onApplyHistory(a,l,n.alternateScreen):this.deferredHistories.set(a,{data:l,alternateScreen:n.alternateScreen}),this.setTimer(a,()=>{this.handleTimeout(a,"live")},this.liveResumeTimeoutMs))}handleLiveResume(n){const{deviceId:a,selectToken:i}=n,l=this.transactions.get(a);if(!l||!this.validateToken(l.selectToken,i)||l.state!=="ACKED"&&l.state!=="HISTORY_APPLIED")return;this.clearTimer(a),l.state="LIVE";const c=this.stopOutputBuffering(a);this.completeTransaction(a),this.callbacks.onFlushBuffer?this.callbacks.onFlushBuffer(a,c):c.length>0&&this.deferredFlushes.set(a,c),this.replayDeferred(a)}handleOutput(n){const{deviceId:a,paneId:i,data:l}=n,c=this.transactions.get(a);if(c&&c.paneId!==i)return;if(this.isBuffering(a)){this.bufferOutput(a,l);return}if(this.callbacks.onOutput){this.callbacks.onOutput(a,i,l);return}const f=this.deferredOutputs.get(a)??[];f.push({paneId:i,data:new Uint8Array(l)}),this.deferredOutputs.set(a,f)}handleSelectFailed(n){const{deviceId:a}=n;this.failTransaction(a)}handleTimeout(n,a){console.warn(`[select-sm] Timeout at ${a} for ${n}`),this.failTransaction(n)}completeTransaction(n){const a=this.transactions.get(n);a&&(a.state="STABLE",this.transactions.delete(n))}failTransaction(n){var i,l;const a=this.transactions.get(n);a&&(a.state="SELECT_FAILED",this.stopOutputBuffering(n),(l=(i=this.callbacks).onSelectFailed)==null||l.call(i,n),this.transactions.delete(n),this.clearTimer(n),this.clearDeferred(n))}cancelTransaction(n){this.transactions.get(n)&&(this.stopOutputBuffering(n),this.transactions.delete(n),this.clearTimer(n),this.clearDeferred(n))}startOutputBuffering(n){this.outputGates.set(n,{state:"BUFFERING",buffer:[]})}stopOutputBuffering(n){const a=this.outputGates.get(n);if(!a)return[];const i=[...a.buffer];return this.outputGates.delete(n),i}bufferOutput(n,a){const i=this.outputGates.get(n);i&&(i.buffer.length>=1e3&&i.buffer.shift(),i.buffer.push(new Uint8Array(a)))}validateToken(n,a){if(n.length!==a.length)return!1;for(let i=0;i<n.length;i++)if(n[i]!==a[i])return!1;return!0}replayDeferred(n){var c,f;this.deferredResets.has(n)&&(this.deferredResets.delete(n),(f=(c=this.callbacks).onResetTerminal)==null||f.call(c,n));const a=this.deferredHistories.get(n);a!==void 0&&this.callbacks.onApplyHistory&&(this.callbacks.onApplyHistory(n,a.data,a.alternateScreen),this.deferredHistories.delete(n));const i=this.deferredFlushes.get(n);i&&this.callbacks.onFlushBuffer&&(this.callbacks.onFlushBuffer(n,i),this.deferredFlushes.delete(n));const l=this.deferredOutputs.get(n);if(l&&this.callbacks.onOutput){for(const h of l)this.callbacks.onOutput(n,h.paneId,h.data);this.deferredOutputs.delete(n)}}clearDeferred(n){this.deferredResets.delete(n),this.deferredHistories.delete(n),this.deferredFlushes.delete(n),this.deferredOutputs.delete(n)}setTimer(n,a,i){this.clearTimer(n);const l=setTimeout(a,i);this.timers.set(n,l)}clearTimer(n){const a=this.timers.get(n);a&&(clearTimeout(a),this.timers.delete(n))}cleanup(n){this.cancelTransaction(n),this.outputGates.delete(n),this.clearDeferred(n)}cleanupAll(){for(const n of this.transactions.keys())this.cleanup(n);this.transactions.clear(),this.outputGates.clear(),this.deferredResets.clear(),this.deferredHistories.clear(),this.deferredFlushes.clear(),this.deferredOutputs.clear();for(const n of this.timers.values())clearTimeout(n);this.timers.clear()}}let uf=null;function kf(o){return uf?(o&&uf.setCallbacks(o),uf):(uf=new s5(o),uf)}function l5(){return crypto.getRandomValues(new Uint8Array(16))}function zN(o){const n=pr(lI,{deviceId:o});return{kind:CH,payload:n}}function c5(o){const n=pr(uI,{deviceId:o});return{kind:DH,payload:n}}function u5(o){const n=pr(hI,{deviceId:o.deviceId,windowId:o.windowId??null,paneId:o.paneId??null,selectToken:o.selectToken,wantHistory:o.wantHistory,cols:o.cols??null,rows:o.rows??null});return{kind:MH,payload:n}}function d5(o,n){const a=pr(pI,{deviceId:o,windowId:n});return{kind:_H,payload:a}}function f5(o,n){const a=pr(mI,{deviceId:o,name:n??null});return{kind:kH,payload:a}}function h5(o,n){const a=pr(gI,{deviceId:o,windowId:n});return{kind:LH,payload:a}}function p5(o,n){const a=pr(yI,{deviceId:o,paneId:n});return{kind:UH,payload:a}}function m5(o,n,a,i=!1){const l=new TextEncoder,c=pr(vI,{deviceId:o,paneId:n,encoding:2,data:l.encode(a),isComposing:i});return{kind:jH,payload:c}}function g5(o,n,a){const i=new TextEncoder,l=pr(SI,{deviceId:o,paneId:n,encoding:2,data:i.encode(a),isComposing:!1});return{kind:HH,payload:l}}function y5(o,n,a,i){const l=pr(LN,{deviceId:o,paneId:n,cols:a,rows:i});return{kind:IH,payload:l}}function b5(o,n,a,i){const l=pr(wI,{deviceId:o,paneId:n,cols:a,rows:i});return{kind:BH,payload:l}}const SD=o=>{let n;const a=new Set,i=(m,b)=>{const p=typeof m=="function"?m(n):m;if(!Object.is(p,n)){const v=n;n=b??(typeof p!="object"||p===null)?p:Object.assign({},n,p),a.forEach(w=>w(n,v))}},l=()=>n,h={setState:i,getState:l,getInitialState:()=>g,subscribe:m=>(a.add(m),()=>a.delete(m))},g=n=o(i,l,h);return h},v5=(o=>o?SD(o):SD),S5=o=>o;function w5(o,n=S5){const a=_e.useSyncExternalStore(o.subscribe,_e.useCallback(()=>n(o.getState()),[o,n]),_e.useCallback(()=>n(o.getInitialState()),[o,n]));return _e.useDebugValue(a),a}const wD=o=>{const n=v5(o),a=i=>w5(n,i);return Object.assign(a,n),a},GS=(o=>o?wD(o):wD),v0={siteName:"tmex",siteUrl:typeof window<"u"?window.location.origin:"http://localhost:9663",bellThrottleSeconds:6,notificationThrottleSeconds:3,enableBrowserBellToast:!0,enableBrowserNotificationToast:!0,enableTelegramBellPush:!0,enableTelegramNotificationPush:!0,sshReconnectMaxRetries:2,sshReconnectDelaySeconds:10,language:qS,updatedAt:new Date(0).toISOString()};async function ED(){const o=await fetch("/api/settings/site");if(!o.ok)throw new Error("Failed to load site settings");return(await o.json()).settings}const Lf=GS((o,n)=>({settings:null,loading:!1,fetchSettings:async()=>{const a=n().settings;if(a)return a;o({loading:!0});try{const i=await ED();return o({settings:i,loading:!1}),lo.changeLanguage(i.language),i}catch(i){return console.error("[site] failed to fetch settings:",i),o({settings:v0,loading:!1}),lo.changeLanguage(v0.language),v0}},refreshSettings:async()=>{o({loading:!0});try{const a=await ED();return o({settings:a,loading:!1}),lo.changeLanguage(a.language),a}catch(a){throw console.error("[site] failed to refresh settings:",a),o({loading:!1}),a}}}));function E5(o){const n=typeof o.windowIndex=="number"?`Window ${o.windowIndex}`:typeof o.windowId=="string"&&o.windowId?`Window ${o.windowId}`:"",a=typeof o.paneIndex=="number"?`Pane ${o.paneIndex}`:typeof o.paneId=="string"&&o.paneId?`Pane ${o.paneId}`:"";return[n,a].filter(Boolean).join(" · ")}function x5(o){const n=typeof o.title=="string"&&o.title?o.title:"Terminal Notification",a=E5(o),i=typeof o.body=="string"&&o.body?o.body:typeof o.source=="string"&&o.source?`From ${o.source}`:"Terminal notification";return{title:n,description:a?`${a}
|
|
322
|
-
${i}`:i}}const R5=500,xD=new Map,S0=new Map;function PN(o){const n=Date.now(),a=xD.get(o);return a!==void 0&&n-a<R5?!0:(xD.set(o,n),!1)}let RD=!1;function w0(o,n){if(typeof o!="number"||typeof n!="number")return null;const a=Math.max(2,Math.floor(o)),i=Math.max(2,Math.floor(n));return{cols:a,rows:i}}function T5(o,n){if(RD)return;RD=!0;const a=cr(),i=l=>{const c=n().selectedPanes[l];!c||kf().getTransaction(l)||n().selectPane(l,c.windowId,c.paneId)};a.onStateChange(l=>{o({socketReady:l==="READY"})}),a.onMessage(l=>{const c=kf();switch(l.kind){case OH:{const f=Ol(cI,l.payload);o(h=>({deviceConnected:{...h.deviceConnected,[f.deviceId]:!0},deviceErrors:{...h.deviceErrors,[f.deviceId]:void 0}})),i(f.deviceId);return}case AH:{const f=Ol(dI,l.payload);c.cleanup(f.deviceId),o(h=>({deviceConnected:{...h.deviceConnected,[f.deviceId]:!1}}));return}case NH:{const f=WI(l.payload);C5(o,f),f.type==="reconnected"&&i(f.deviceId);return}case PH:{const f=ZI(l.payload);o(h=>({snapshots:{...h.snapshots,[f.deviceId]:f}}));return}case zH:{const f=KI(l.payload);O5(o,f);return}case YH:{const f=Ol(RI,l.payload);c.dispatch({type:"SWITCH_ACK",deviceId:f.deviceId,selectToken:f.selectToken});return}case FH:{const f=Ol(xI,l.payload),h=new TextDecoder().decode(f.data);c.dispatch({type:"HISTORY",deviceId:f.deviceId,selectToken:f.selectToken,data:h,alternateScreen:f.alternateScreen});return}case $H:{const f=Ol(TI,l.payload);c.dispatch({type:"LIVE_RESUME",deviceId:f.deviceId,selectToken:f.selectToken});return}case VH:{const f=Ol(EI,l.payload);c.dispatch({type:"OUTPUT",deviceId:f.deviceId,paneId:f.paneId,data:f.data});return}case TH:return}}),a.onError(l=>{console.error("[tmux] borsh ws error:",l),o({socketReady:!1}),nS.error("WebSocket Connection Error",{description:"Please check Gateway status"})}),a.onStateChange(l=>{if(l!=="READY")return;const c=n().connectedDevices;for(const f of c){if(PN(f))continue;const h=zN(f);a.send(h.kind,h.payload)}})}function C5(o,n){if(n.type==="error"){const a=n.message??"Device Error";o(i=>{const l=i.deviceErrors[n.deviceId];return(l==null?void 0:l.message)===a&&(l==null?void 0:l.type)===n.errorType?{}:{deviceErrors:{...i.deviceErrors,[n.deviceId]:{message:a,type:n.errorType}}}});return}if(n.type==="disconnected"){kf().cleanup(n.deviceId),o(a=>({deviceConnected:{...a.deviceConnected,[n.deviceId]:!1}}));return}n.type==="reconnected"&&o(a=>({deviceConnected:{...a.deviceConnected,[n.deviceId]:!0},deviceErrors:{...a.deviceErrors,[n.deviceId]:void 0}}))}function O5(o,n){if(n.type==="bell"){console.log("[tmex] bell",n.data);const a=Lf.getState().settings;if((a==null?void 0:a.enableBrowserBellToast)===!1)return;const i=n.data??{},l="Terminal Bell",c=[typeof i.windowIndex=="number"?`Window ${i.windowIndex}`:void 0,typeof i.paneIndex=="number"?`Pane ${i.paneIndex}`:void 0].filter(Boolean).join(" · "),f=typeof i.paneUrl=="string"?i.paneUrl:void 0;nS(l,{description:c||"Received tmux bell",action:f?{label:"Open",onClick:()=>{window.location.href=f}}:void 0})}if(n.type==="notification"){console.log("[tmex] notification",n.data);const a=Lf.getState().settings;if((a==null?void 0:a.enableBrowserNotificationToast)===!1)return;const i=n.data??{},{title:l,description:c}=x5(i),f=typeof i.paneUrl=="string"?i.paneUrl:void 0;nS(l,{description:c,action:f?{label:"Open",onClick:()=>{window.location.href=f}}:void 0})}if(n.type==="pane-active"){const a=n.data;a!=null&&a.windowId&&(a!=null&&a.paneId)&&o(i=>({activePaneFromEvent:{...i.activePaneFromEvent,[n.deviceId]:{windowId:a.windowId,paneId:a.paneId}}}))}}const Ei=GS((o,n)=>({socketReady:!1,snapshots:{},connectedDevices:new Set,deviceConnected:{},deviceErrors:{},selectedPanes:{},activePaneFromEvent:{},pendingCreateWindowAt:{},ensureSocketConnected(){T5(o,n),cr().connect()},connectDevice(a){if(!a||(o(l=>{const c=new Set(l.connectedDevices);return c.add(a),{connectedDevices:c}}),n().ensureSocketConnected(),PN(a)))return;const i=zN(a);cr().send(i.kind,i.payload)},disconnectDevice(a){if(!a)return;o(l=>{const c=new Set(l.connectedDevices);return c.delete(a),{connectedDevices:c}}),kf().cleanup(a);const i=c5(a);cr().send(i.kind,i.payload)},clearDeviceError(a){o(i=>({deviceErrors:{...i.deviceErrors,[a]:void 0}}))},selectPane(a,i,l,c){if(!a||!i||!l)return;o(b=>({selectedPanes:{...b.selectedPanes,[a]:{windowId:i,paneId:l}}}));const f=l5(),h=!0;kf().dispatch({type:"SELECT_START",deviceId:a,windowId:i,paneId:l,selectToken:f,wantHistory:h});const g=w0(c==null?void 0:c.cols,c==null?void 0:c.rows)??S0.get(a)??null,m=u5({deviceId:a,windowId:i,paneId:l,selectToken:f,wantHistory:h,cols:g==null?void 0:g.cols,rows:g==null?void 0:g.rows});cr().send(m.kind,m.payload)},selectWindow(a,i){if(!a||!i)return;const l=d5(a,i);cr().send(l.kind,l.payload)},sendInput(a,i,l,c=!1){if(!a||!i)return;const f=m5(a,i,l,c);cr().send(f.kind,f.payload)},resizePane(a,i,l,c){if(!a||!i)return;const f=w0(l,c);f&&S0.set(a,{...f,at:Date.now()});const h=y5(a,i,l,c);cr().send(h.kind,h.payload)},syncPaneSize(a,i,l,c){if(!a||!i)return;const f=w0(l,c);f&&S0.set(a,{...f,at:Date.now()});const h=b5(a,i,l,c);cr().send(h.kind,h.payload)},paste(a,i,l){if(!a||!i)return;const c=g5(a,i,l);cr().send(c.kind,c.payload)},createWindow(a,i){if(!a)return;const l=f5(a,i);cr().send(l.kind,l.payload),o(c=>({pendingCreateWindowAt:{...c.pendingCreateWindowAt,[a]:Date.now()}}))},clearPendingCreateWindow(a){a&&o(i=>{if(i.pendingCreateWindowAt[a]===void 0)return i;const l={...i.pendingCreateWindowAt};return delete l[a],{pendingCreateWindowAt:l}})},closeWindow(a,i){if(!a||!i)return;const l=h5(a,i);cr().send(l.kind,l.payload)},closePane(a,i){if(!a||!i)return;const l=p5(a,i);cr().send(l.kind,l.payload)}})),TD="tmex:connectedDevices",jN=x.createContext(null);function D5(){const o=x.useContext(jN);if(!o)throw new Error("useGlobalDevice must be used within GlobalDeviceProvider");return o}function A5({children:o}){const n=Ni(),[a,i]=x.useState(()=>{try{const p=localStorage.getItem(TD);if(p){const v=JSON.parse(p);return new Set(v)}}catch{}return new Set}),l=Ei(p=>p.connectDevice),c=Ei(p=>p.disconnectDevice),f=Ei(p=>p.connectedDevices);x.useEffect(()=>{try{localStorage.setItem(TD,JSON.stringify([...a]))}catch{}},[a]),x.useEffect(()=>{const p=n.pathname.match(/^\/devices\/([^/]+)/),v=p==null?void 0:p[1];v&&!f.has(v)&&l(v)},[n.pathname,f,l]);const h=x.useCallback(p=>{i(v=>{const w=new Set(v);return w.add(p),w}),f.has(p)||l(p)},[f,l]),g=x.useCallback(p=>{i(v=>{const w=new Set(v);return w.delete(p),w}),f.has(p)&&c(p)},[f,c]),m=x.useCallback((p,v)=>{v?g(p):h(p)},[h,g]),b=x.useMemo(()=>({persistedDevices:a,connectDevice:h,disconnectDevice:g,toggleDevice:m}),[a,h,g,m]);return re.jsxDEV(jN.Provider,{value:b,children:o},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/global-device-provider.tsx",lineNumber:117,columnNumber:10},this)}/**
|
|
323
|
-
* @license lucide-react v0.564.0 - ISC
|
|
324
|
-
*
|
|
325
|
-
* This source code is licensed under the ISC license.
|
|
326
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
327
|
-
*/const HN=(...o)=>o.filter((n,a,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===a).join(" ").trim();/**
|
|
328
|
-
* @license lucide-react v0.564.0 - ISC
|
|
329
|
-
*
|
|
330
|
-
* This source code is licensed under the ISC license.
|
|
331
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
332
|
-
*/const N5=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
333
|
-
* @license lucide-react v0.564.0 - ISC
|
|
334
|
-
*
|
|
335
|
-
* This source code is licensed under the ISC license.
|
|
336
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
337
|
-
*/const M5=o=>o.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,i)=>i?i.toUpperCase():a.toLowerCase());/**
|
|
338
|
-
* @license lucide-react v0.564.0 - ISC
|
|
339
|
-
*
|
|
340
|
-
* This source code is licensed under the ISC license.
|
|
341
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
342
|
-
*/const CD=o=>{const n=M5(o);return n.charAt(0).toUpperCase()+n.slice(1)};/**
|
|
343
|
-
* @license lucide-react v0.564.0 - ISC
|
|
344
|
-
*
|
|
345
|
-
* This source code is licensed under the ISC license.
|
|
346
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
347
|
-
*/var _5={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"};/**
|
|
348
|
-
* @license lucide-react v0.564.0 - ISC
|
|
349
|
-
*
|
|
350
|
-
* This source code is licensed under the ISC license.
|
|
351
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
352
|
-
*/const k5=o=>{for(const n in o)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};/**
|
|
353
|
-
* @license lucide-react v0.564.0 - ISC
|
|
354
|
-
*
|
|
355
|
-
* This source code is licensed under the ISC license.
|
|
356
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
357
|
-
*/const L5=x.forwardRef(({color:o="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:l="",children:c,iconNode:f,...h},g)=>x.createElement("svg",{ref:g,..._5,width:n,height:n,stroke:o,strokeWidth:i?Number(a)*24/Number(n):a,className:HN("lucide",l),...!c&&!k5(h)&&{"aria-hidden":"true"},...h},[...f.map(([m,b])=>x.createElement(m,b)),...Array.isArray(c)?c:[c]]));/**
|
|
358
|
-
* @license lucide-react v0.564.0 - ISC
|
|
359
|
-
*
|
|
360
|
-
* This source code is licensed under the ISC license.
|
|
361
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
362
|
-
*/const na=(o,n)=>{const a=x.forwardRef(({className:i,...l},c)=>x.createElement(L5,{ref:c,iconNode:n,className:HN(`lucide-${N5(CD(o))}`,`lucide-${o}`,i),...l}));return a.displayName=CD(o),a};/**
|
|
363
|
-
* @license lucide-react v0.564.0 - ISC
|
|
364
|
-
*
|
|
365
|
-
* This source code is licensed under the ISC license.
|
|
366
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
367
|
-
*/const U5=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],z5=na("chevron-right",U5);/**
|
|
368
|
-
* @license lucide-react v0.564.0 - ISC
|
|
369
|
-
*
|
|
370
|
-
* This source code is licensed under the ISC license.
|
|
371
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
372
|
-
*/const P5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],j5=na("globe",P5);/**
|
|
373
|
-
* @license lucide-react v0.564.0 - ISC
|
|
374
|
-
*
|
|
375
|
-
* This source code is licensed under the ISC license.
|
|
376
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
377
|
-
*/const H5=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],IN=na("monitor",H5);/**
|
|
378
|
-
* @license lucide-react v0.564.0 - ISC
|
|
379
|
-
*
|
|
380
|
-
* This source code is licensed under the ISC license.
|
|
381
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
382
|
-
*/const I5=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],B5=na("moon",I5);/**
|
|
383
|
-
* @license lucide-react v0.564.0 - ISC
|
|
384
|
-
*
|
|
385
|
-
* This source code is licensed under the ISC license.
|
|
386
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
387
|
-
*/const V5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],F5=na("panel-left",V5);/**
|
|
388
|
-
* @license lucide-react v0.564.0 - ISC
|
|
389
|
-
*
|
|
390
|
-
* This source code is licensed under the ISC license.
|
|
391
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
392
|
-
*/const Y5=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],$5=na("plus",Y5);/**
|
|
393
|
-
* @license lucide-react v0.564.0 - ISC
|
|
394
|
-
*
|
|
395
|
-
* This source code is licensed under the ISC license.
|
|
396
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
397
|
-
*/const q5=[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],G5=na("power-off",q5);/**
|
|
398
|
-
* @license lucide-react v0.564.0 - ISC
|
|
399
|
-
*
|
|
400
|
-
* This source code is licensed under the ISC license.
|
|
401
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
402
|
-
*/const X5=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Q5=na("power",X5);/**
|
|
403
|
-
* @license lucide-react v0.564.0 - ISC
|
|
404
|
-
*
|
|
405
|
-
* This source code is licensed under the ISC license.
|
|
406
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
407
|
-
*/const W5=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],K5=na("settings",W5);/**
|
|
408
|
-
* @license lucide-react v0.564.0 - ISC
|
|
409
|
-
*
|
|
410
|
-
* This source code is licensed under the ISC license.
|
|
411
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
412
|
-
*/const J5=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Z5=na("sun",J5);/**
|
|
413
|
-
* @license lucide-react v0.564.0 - ISC
|
|
414
|
-
*
|
|
415
|
-
* This source code is licensed under the ISC license.
|
|
416
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
417
|
-
*/const eB=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],BN=na("x",eB),OD={};function gr(o,n){const a=x.useRef(OD);return a.current===OD&&(a.current=o(n)),a}const E0=MS[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],tB=E0&&E0!==x.useLayoutEffect?E0:o=>o();function it(o){const n=gr(nB).current;return n.next=o,tB(n.effect),n.trampoline}function nB(){const o={next:void 0,callback:oB,trampoline:(...n)=>{var a;return(a=o.callback)==null?void 0:a.call(o,...n)},effect:()=>{o.callback=o.next}};return o}function oB(){throw new Error("Base UI: Cannot call an event handler while rendering.")}function Uf(o,n,a,i){const l=gr(VN).current;return aB(l,o,n,a,i)&&FN(l,[o,n,a,i]),l.callback}function rB(o){const n=gr(VN).current;return iB(n,o)&&FN(n,o),n.callback}function VN(){return{callback:null,cleanup:null,refs:[]}}function aB(o,n,a,i,l){return o.refs[0]!==n||o.refs[1]!==a||o.refs[2]!==i||o.refs[3]!==l}function iB(o,n){return o.refs.length!==n.length||o.refs.some((a,i)=>a!==n[i])}function FN(o,n){if(o.refs=n,n.every(a=>a==null)){o.callback=null;return}o.callback=a=>{if(o.cleanup&&(o.cleanup(),o.cleanup=null),a!=null){const i=Array(n.length).fill(null);for(let l=0;l<n.length;l+=1){const c=n[l];if(c!=null)switch(typeof c){case"function":{const f=c(a);typeof f=="function"&&(i[l]=f);break}case"object":{c.current=a;break}}}o.cleanup=()=>{for(let l=0;l<n.length;l+=1){const c=n[l];if(c!=null)switch(typeof c){case"function":{const f=i[l];typeof f=="function"?f():c(null);break}case"object":{c.current=null;break}}}}}}}const sB=parseInt(x.version,10);function XS(o){return sB>=o}function DD(o){if(!x.isValidElement(o))return null;const n=o,a=n.props;return(XS(19)?a==null?void 0:a.ref:n.ref)??null}function lS(o,n){if(o&&!n)return o;if(!o&&n)return n;if(o||n)return{...o,...n}}function lB(o,n){const a={};for(const i in o){const l=o[i];if(n!=null&&n.hasOwnProperty(i)){const c=n[i](l);c!=null&&Object.assign(a,c);continue}l===!0?a[`data-${i.toLowerCase()}`]="":l&&(a[`data-${i.toLowerCase()}`]=l.toString())}return a}function cB(o,n){return typeof o=="function"?o(n):o}function uB(o,n){return typeof o=="function"?o(n):o}const Ef={};function Ql(o,n,a,i,l){let c={...cS(o,Ef)};return n&&(c=bf(c,n)),a&&(c=bf(c,a)),i&&(c=bf(c,i)),l&&(c=bf(c,l)),c}function dB(o){if(o.length===0)return Ef;if(o.length===1)return cS(o[0],Ef);let n={...cS(o[0],Ef)};for(let a=1;a<o.length;a+=1)n=bf(n,o[a]);return n}function bf(o,n){return YN(n)?n(o):fB(o,n)}function fB(o,n){if(!n)return o;for(const a in n){const i=n[a];switch(a){case"style":{o[a]=lS(o.style,i);break}case"className":{o[a]=$N(o.className,i);break}default:hB(a,i)?o[a]=pB(o[a],i):o[a]=i}}return o}function hB(o,n){const a=o.charCodeAt(0),i=o.charCodeAt(1),l=o.charCodeAt(2);return a===111&&i===110&&l>=65&&l<=90&&(typeof n=="function"||typeof n>"u")}function YN(o){return typeof o=="function"}function cS(o,n){return YN(o)?o(n):o??Ef}function pB(o,n){return n?o?a=>{if(mB(a)){const l=a;uS(l);const c=n(l);return l.baseUIHandlerPrevented||o==null||o(l),c}const i=n(a);return o==null||o(a),i}:n:o}function uS(o){return o.preventBaseUIHandler=()=>{o.baseUIHandlerPrevented=!0},o}function $N(o,n){return n?o?n+" "+o:n:o}function mB(o){return o!=null&&typeof o=="object"&&"nativeEvent"in o}function qN(){}const AY=Object.freeze([]),hr=Object.freeze({}),NY=500,MY=500,gB={style:{transition:"none"}},yB="data-base-ui-click-trigger",_Y={fallbackAxisSide:"none"},bB={fallbackAxisSide:"end"},vB={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function Ln(o,n,a={}){const i=n.render,l=SB(n,a);if(a.enabled===!1)return null;const c=a.state??hr;return EB(o,i,l,c)}function SB(o,n={}){const{className:a,style:i,render:l}=o,{state:c=hr,ref:f,props:h,stateAttributesMapping:g,enabled:m=!0}=n,b=m?cB(a,c):void 0,p=m?uB(i,c):void 0,v=m?lB(c,g):hr,w=m?lS(v,Array.isArray(h)?dB(h):h)??hr:hr;return typeof document<"u"&&(m?Array.isArray(f)?w.ref=rB([w.ref,DD(l),...f]):w.ref=Uf(w.ref,DD(l),f):Uf(null,null)),m?(b!==void 0&&(w.className=$N(w.className,b)),p!==void 0&&(w.style=lS(w.style,p)),w):hr}const wB=Symbol.for("react.lazy");function EB(o,n,a,i){if(n){if(typeof n=="function")return n(a,i);const l=Ql(a,n.props);l.ref=a.ref;let c=n;if((c==null?void 0:c.$$typeof)===wB&&(c=x.Children.toArray(n)[0]),!x.isValidElement(c))throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.","A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.","https://base-ui.com/r/invalid-render-prop"].join(`
|
|
418
|
-
`));return x.cloneElement(c,l)}if(o&&typeof o=="string")return xB(o,a);throw new Error("Base UI: Render element or function are not defined.")}function xB(o,n){return o==="button"?x.createElement("button",{type:"button",...n,key:n.key}):o==="img"?x.createElement("img",{alt:"",...n,key:n.key}):x.createElement(o,n)}function RB({controlled:o,default:n,name:a,state:i="value"}){const{current:l}=x.useRef(o!==void 0),[c,f]=x.useState(n),h=l?o:c;{x.useEffect(()=>{l!==(o!==void 0)&&console.error([`Base UI: A component is changing the ${l?"":"un"}controlled ${i} state of ${a} to be ${l?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${a} 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(`
|
|
419
|
-
`))},[i,a,o]);const{current:m}=x.useRef(n);x.useEffect(()=>{!l&&JSON.stringify(m)!==JSON.stringify(n)&&console.error([`Base UI: A component is changing the default ${i} state of an uncontrolled ${a} after being initialized. To suppress this warning opt to use a controlled ${a}.`].join(`
|
|
420
|
-
`))},[JSON.stringify(n)])}const g=x.useCallback(m=>{l||f(m)},[]);return[h,g]}const TB=()=>{},pt=typeof document<"u"?x.useLayoutEffect:TB,Dl={...MS};let AD=0;function CB(o,n="mui"){const[a,i]=x.useState(o),l=o||a;return x.useEffect(()=>{a==null&&(AD+=1,i(`${n}-${AD}`))},[a,n]),l}const ND=Dl.useId;function Eu(o,n){if(ND!==void 0){const a=ND();return o??(n?`${n}-${a}`:a)}return CB(o,n)}function Wf(o){return Eu(o,"base-ui")}const fg="none",zf="trigger-press",ea="trigger-hover",jm="trigger-focus",GN="outside-press",kY="item-press",OB="close-press",XN="focus-out",QS="escape-key",LY="list-navigation",UY="cancel-open",zY="sibling-open",DB="disabled",QN="imperative-action",PY="window-resize";function yn(o,n,a,i){let l=!1,c=!1;const f=hr;return{reason:o,event:n??new Event("base-ui"),cancel(){l=!0},allowPropagation(){c=!0},get isCanceled(){return l},get isPropagationAllowed(){return c},trigger:a,...f}}const AB=[];function hg(o){x.useEffect(o,AB)}const wm=null;let MD=globalThis.requestAnimationFrame;class NB{constructor(){Xe(this,"callbacks",[]);Xe(this,"callbacksCount",0);Xe(this,"nextId",1);Xe(this,"startId",1);Xe(this,"isScheduled",!1);Xe(this,"tick",n=>{var l;this.isScheduled=!1;const a=this.callbacks,i=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,i>0)for(let c=0;c<a.length;c+=1)(l=a[c])==null||l.call(a,n)})}request(n){const a=this.nextId;this.nextId+=1,this.callbacks.push(n),this.callbacksCount+=1;const i=MD!==requestAnimationFrame&&(MD=requestAnimationFrame,!0);return(!this.isScheduled||i)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),a}cancel(n){const a=n-this.startId;a<0||a>=this.callbacks.length||(this.callbacks[a]=null,this.callbacksCount-=1)}}const Em=new NB;class Nn{constructor(){Xe(this,"currentId",wm);Xe(this,"cancel",()=>{this.currentId!==wm&&(Em.cancel(this.currentId),this.currentId=wm)});Xe(this,"disposeEffect",()=>this.cancel)}static create(){return new Nn}static request(n){return Em.request(n)}static cancel(n){return Em.cancel(n)}request(n){this.cancel(),this.currentId=Em.request(()=>{this.currentId=wm,n()})}}function WS(){const o=gr(Nn.create).current;return hg(o.disposeEffect),o}function wi(o){return o==null?o:"current"in o?o.current:o}let $l=(function(o){return o.startingStyle="data-starting-style",o.endingStyle="data-ending-style",o})({});const MB={[$l.startingStyle]:""},_B={[$l.endingStyle]:""},Kf={transitionStatus(o){return o==="starting"?MB:o==="ending"?_B:null}};function WN(o,n=!1,a=!0){const i=WS();return it((l,c=null)=>{i.cancel();function f(){zs.flushSync(l)}const h=wi(o);if(h==null)return;const g=h;if(typeof g.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)l();else{let m=function(){const p=$l.startingStyle;if(!g.hasAttribute(p)){i.request(b);return}const v=new MutationObserver(()=>{g.hasAttribute(p)||(v.disconnect(),b())});v.observe(g,{attributes:!0,attributeFilter:[p]}),c==null||c.addEventListener("abort",()=>v.disconnect(),{once:!0})},b=function(){Promise.all(g.getAnimations().map(p=>p.finished)).then(()=>{c!=null&&c.aborted||f()}).catch(()=>{const p=g.getAnimations();if(a){if(c!=null&&c.aborted)return;f()}else p.length>0&&p.some(v=>v.pending||v.playState!=="finished")&&b()})};if(n){m();return}i.request(b)}})}function KN(o,n=!1,a=!1){const[i,l]=x.useState(o&&n?"idle":void 0),[c,f]=x.useState(o);return o&&!c&&(f(!0),l("starting")),!o&&c&&i!=="ending"&&!a&&l("ending"),!o&&!c&&i==="ending"&&l(void 0),pt(()=>{if(!o&&c&&i!=="ending"&&a){const h=Nn.request(()=>{l("ending")});return()=>{Nn.cancel(h)}}},[o,c,i,a]),pt(()=>{if(!o||n)return;const h=Nn.request(()=>{l(void 0)});return()=>{Nn.cancel(h)}},[n,o]),pt(()=>{if(!o||!n)return;o&&c&&i!=="idle"&&l("starting");const h=Nn.request(()=>{l("idle")});return()=>{Nn.cancel(h)}},[n,o,c,l,i]),x.useMemo(()=>({mounted:c,setMounted:f,transitionStatus:i}),[c,i])}function kB(o){const{open:n,defaultOpen:a,onOpenChange:i,disabled:l}=o,c=n!==void 0,[f,h]=RB({controlled:n,default:a,name:"Collapsible",state:"open"}),{mounted:g,setMounted:m,transitionStatus:b}=KN(f,!0,!0),[p,v]=x.useState(f),[{height:w,width:E},T]=x.useState({height:void 0,width:void 0}),C=Wf(),[A,k]=x.useState(),U=A??C,[M,Y]=x.useState(!1),[$,_]=x.useState(!1),z=x.useRef(null),te=x.useRef(null),H=x.useRef(null),J=x.useRef(null),N=WN(J,!1),j=it(ne=>{const Z=!f,P=yn(zf,ne.nativeEvent);if(i(Z,P),P.isCanceled)return;const oe=J.current;te.current==="css-animation"&&oe!=null&&oe.style.removeProperty("animation-name"),!M&&!$&&(te.current!=null&&te.current!=="css-animation"&&!g&&Z&&m(!0),te.current==="css-animation"&&(!p&&Z&&v(!0),!g&&Z&&m(!0))),h(Z),te.current==="none"&&g&&!Z&&m(!1)});return pt(()=>{c&&te.current==="none"&&!$&&!f&&m(!1)},[c,$,f,n,m]),x.useMemo(()=>({abortControllerRef:z,animationTypeRef:te,disabled:l,handleTrigger:j,height:w,mounted:g,open:f,panelId:U,panelRef:J,runOnceAnimationsFinish:N,setDimensions:T,setHiddenUntilFound:Y,setKeepMounted:_,setMounted:m,setOpen:h,setPanelIdState:k,setVisible:v,transitionDimensionRef:H,transitionStatus:b,visible:p,width:E}),[z,te,l,j,w,g,f,U,J,N,T,Y,_,m,h,v,H,b,p,E])}const KS=x.createContext(void 0);KS.displayName="CollapsibleRootContext";function JN(){const o=x.useContext(KS);if(o===void 0)throw new Error("Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>.");return o}let xf=(function(o){return o.open="data-open",o.closed="data-closed",o[o.startingStyle=$l.startingStyle]="startingStyle",o[o.endingStyle=$l.endingStyle]="endingStyle",o})({}),LB=(function(o){return o.panelOpen="data-panel-open",o})({});const UB={[xf.open]:""},zB={[xf.closed]:""},PB={open(o){return o?{[LB.panelOpen]:""}:null}},jB={open(o){return o?UB:zB}},ZN={...jB,...Kf},eM=x.forwardRef(function(n,a){const{render:i,className:l,defaultOpen:c=!1,disabled:f=!1,onOpenChange:h,open:g,...m}=n,b=it(h),p=kB({open:g,defaultOpen:c,onOpenChange:b,disabled:f}),v=x.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),w=x.useMemo(()=>({...p,onOpenChange:b,state:v}),[p,b,v]),E=Ln("div",n,{state:v,ref:a,props:m,stateAttributesMapping:ZN});return nn.jsx(KS.Provider,{value:w,children:E})});eM.displayName="CollapsibleRoot";function pg(){return typeof window<"u"}function Ps(o){return JS(o)?(o.nodeName||"").toLowerCase():"#document"}function Gn(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Ya(o){var n;return(n=(JS(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function JS(o){return pg()?o instanceof Node||o instanceof Gn(o).Node:!1}function qt(o){return pg()?o instanceof Element||o instanceof Gn(o).Element:!1}function $n(o){return pg()?o instanceof HTMLElement||o instanceof Gn(o).HTMLElement:!1}function dS(o){return!pg()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Gn(o).ShadowRoot}const HB=new Set(["inline","contents"]);function js(o){const{overflow:n,overflowX:a,overflowY:i,display:l}=mr(o);return/auto|scroll|overlay|hidden|clip/.test(n+i+a)&&!HB.has(l)}const IB=new Set(["table","td","th"]);function BB(o){return IB.has(Ps(o))}const VB=[":popover-open",":modal"];function mg(o){return VB.some(n=>{try{return o.matches(n)}catch{return!1}})}const FB=["transform","translate","scale","rotate","perspective"],YB=["transform","translate","scale","rotate","perspective","filter"],$B=["paint","layout","strict","content"];function ZS(o){const n=gg(),a=qt(o)?mr(o):o;return FB.some(i=>a[i]?a[i]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!n&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!n&&(a.filter?a.filter!=="none":!1)||YB.some(i=>(a.willChange||"").includes(i))||$B.some(i=>(a.contain||"").includes(i))}function qB(o){let n=Oi(o);for(;$n(n)&&!Ci(n);){if(ZS(n))return n;if(mg(n))return null;n=Oi(n)}return null}function gg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const GB=new Set(["html","body","#document"]);function Ci(o){return GB.has(Ps(o))}function mr(o){return Gn(o).getComputedStyle(o)}function yg(o){return qt(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Oi(o){if(Ps(o)==="html")return o;const n=o.assignedSlot||o.parentNode||dS(o)&&o.host||Ya(o);return dS(n)?n.host:n}function tM(o){const n=Oi(o);return Ci(n)?o.ownerDocument?o.ownerDocument.body:o.body:$n(n)&&js(n)?n:tM(n)}function Ls(o,n,a){var i;n===void 0&&(n=[]),a===void 0&&(a=!0);const l=tM(o),c=l===((i=o.ownerDocument)==null?void 0:i.body),f=Gn(l);if(c){const h=fS(f);return n.concat(f,f.visualViewport||[],js(l)?l:[],h&&a?Ls(h):[])}return n.concat(l,Ls(l,[],a))}function fS(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}let hS;hS=new Set;function _D(...o){{const n=o.join(" ");hS.has(n)||(hS.add(n),console.error(`Base UI: ${n}`))}}const nM=x.createContext(void 0);nM.displayName="CompositeRootContext";function XB(o=!1){const n=x.useContext(nM);if(n===void 0&&!o)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return n}function QB(o){const{focusableWhenDisabled:n,disabled:a,composite:i=!1,tabIndex:l=0,isNativeButton:c}=o,f=i&&n!==!1,h=i&&n===!1;return{props:x.useMemo(()=>{const m={onKeyDown(b){a&&n&&b.key!=="Tab"&&b.preventDefault()}};return i||(m.tabIndex=l,!c&&a&&(m.tabIndex=n?l:-1)),(c&&(n||f)||!c&&a)&&(m["aria-disabled"]=a),c&&(!n||h)&&(m.disabled=a),m},[i,a,n,f,h,c,l])}}function ew(o={}){const{disabled:n=!1,focusableWhenDisabled:a,tabIndex:i=0,native:l=!0}=o,c=x.useRef(null),f=XB(!0)!==void 0,h=it(()=>{const v=c.current;return!!((v==null?void 0:v.tagName)==="A"&&(v!=null&&v.href))}),{props:g}=QB({focusableWhenDisabled:a,disabled:n,composite:f,tabIndex:i,isNativeButton:l});x.useEffect(()=>{var w,E;if(!c.current)return;const v=c.current.tagName==="BUTTON";if(l){if(!v){const T=((w=Dl.captureOwnerStack)==null?void 0:w.call(Dl))||"";_D(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${T}`)}}else if(v){const T=((E=Dl.captureOwnerStack)==null?void 0:E.call(Dl))||"";_D(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${T}`)}},[l]);const m=x.useCallback(()=>{const v=c.current;WB(v)&&f&&n&&g.disabled===void 0&&v.disabled&&(v.disabled=!1)},[n,g.disabled,f]);pt(m,[m]);const b=x.useCallback((v={})=>{const{onClick:w,onMouseDown:E,onKeyUp:T,onKeyDown:C,onPointerDown:A,...k}=v;return Ql({type:l?"button":void 0,onClick(M){if(n){M.preventDefault();return}w==null||w(M)},onMouseDown(M){n||E==null||E(M)},onKeyDown(M){if(n||(uS(M),C==null||C(M)),M.baseUIHandlerPrevented)return;const Y=M.target===M.currentTarget&&!l&&!h()&&!n,$=M.key==="Enter",_=M.key===" ";Y&&((_||$)&&M.preventDefault(),$&&(w==null||w(M)))},onKeyUp(M){n||(uS(M),T==null||T(M)),!M.baseUIHandlerPrevented&&M.target===M.currentTarget&&!l&&!n&&M.key===" "&&(w==null||w(M))},onPointerDown(M){if(n){M.preventDefault();return}A==null||A(M)}},l?void 0:{role:"button"},g,k)},[n,g,l,h]),p=it(v=>{c.current=v,m()});return{getButtonProps:b,buttonRef:p}}function WB(o){return $n(o)&&o.tagName==="BUTTON"}const KB={...PB,...Kf},oM=x.forwardRef(function(n,a){const{panelId:i,open:l,handleTrigger:c,state:f,disabled:h}=JN(),{className:g,disabled:m=h,id:b,render:p,nativeButton:v=!0,...w}=n,{getButtonProps:E,buttonRef:T}=ew({disabled:m,focusableWhenDisabled:!0,native:v}),C=x.useMemo(()=>({"aria-controls":l?i:void 0,"aria-expanded":l,onClick:c}),[i,l,c]);return Ln("button",n,{state:f,ref:[a,T],props:[C,w,E],stateAttributesMapping:KB})});oM.displayName="CollapsibleTrigger";let pS;pS=new Set;function rM(...o){{const n=o.join(" ");pS.has(n)||(pS.add(n),console.warn(`Base UI: ${n}`))}}let JB=(function(o){return o.disabled="data-disabled",o.orientation="data-orientation",o})({});function ZB(o){const{abortControllerRef:n,animationTypeRef:a,externalRef:i,height:l,hiddenUntilFound:c,keepMounted:f,id:h,mounted:g,onOpenChange:m,open:b,panelRef:p,runOnceAnimationsFinish:v,setDimensions:w,setMounted:E,setOpen:T,setVisible:C,transitionDimensionRef:A,visible:k,width:U}=o,M=x.useRef(!1),Y=x.useRef(null),$=x.useRef(b),_=x.useRef(b),z=WS(),te=x.useMemo(()=>a.current==="css-animation"?!k:!b&&!g,[b,g,k,a]),H=it(N=>{if(!N)return;if(a.current==null||A.current==null){const Z=getComputedStyle(N),P=Z.animationName!=="none"&&Z.animationName!=="",oe=Z.transitionDuration!=="0s"&&Z.transitionDuration!=="";P&&oe?rM("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.","Only one of either animation type should be used."):Z.animationName==="none"&&Z.transitionDuration!=="0s"?a.current="css-transition":Z.animationName!=="none"&&Z.transitionDuration==="0s"?a.current="css-animation":a.current="none",N.getAttribute(JB.orientation)==="horizontal"||Z.transitionProperty.indexOf("width")>-1?A.current="width":A.current="height"}if(a.current!=="css-transition")return;(l===void 0||U===void 0)&&(w({height:N.scrollHeight,width:N.scrollWidth}),_.current&&N.style.setProperty("transition-duration","0s"));let j=-1,ne=-1;return j=Nn.request(()=>{_.current=!1,ne=Nn.request(()=>{setTimeout(()=>{N.style.removeProperty("transition-duration")})})}),()=>{Nn.cancel(j),Nn.cancel(ne)}}),J=Uf(i,p,H);return pt(()=>{if(a.current!=="css-transition")return;const N=p.current;if(!N)return;let j=-1;if(n.current!=null&&(n.current.abort(),n.current=null),b){const ne={"justify-content":N.style.justifyContent,"align-items":N.style.alignItems,"align-content":N.style.alignContent,"justify-items":N.style.justifyItems};Object.keys(ne).forEach(Z=>{N.style.setProperty(Z,"initial","important")}),!_.current&&!f&&N.setAttribute(xf.startingStyle,""),w({height:N.scrollHeight,width:N.scrollWidth}),j=Nn.request(()=>{Object.entries(ne).forEach(([Z,P])=>{P===""?N.style.removeProperty(Z):N.style.setProperty(Z,P)})})}else{if(N.scrollHeight===0&&N.scrollWidth===0)return;w({height:N.scrollHeight,width:N.scrollWidth});const ne=new AbortController;n.current=ne;const Z=ne.signal;let P=null;const oe=xf.endingStyle;return P=new MutationObserver(I=>{I.some(pe=>pe.type==="attributes"&&pe.attributeName===oe)&&(P==null||P.disconnect(),P=null,v(()=>{w({height:0,width:0}),N.style.removeProperty("content-visibility"),E(!1),n.current===ne&&(n.current=null)},Z))}),P.observe(N,{attributes:!0,attributeFilter:[oe]}),()=>{P==null||P.disconnect(),z.cancel(),n.current===ne&&(ne.abort(),n.current=null)}}return()=>{Nn.cancel(j)}},[n,a,z,c,f,g,b,p,v,w,E]),pt(()=>{if(a.current!=="css-animation")return;const N=p.current;N&&(Y.current=N.style.animationName||Y.current,N.style.setProperty("animation-name","none"),w({height:N.scrollHeight,width:N.scrollWidth}),!$.current&&!M.current&&N.style.removeProperty("animation-name"),b?(n.current!=null&&(n.current.abort(),n.current=null),E(!0),C(!0)):(n.current=new AbortController,v(()=>{E(!1),C(!1),n.current=null},n.current.signal)))},[n,a,b,p,v,w,E,C,k]),hg(()=>{const N=Nn.request(()=>{$.current=!1});return()=>Nn.cancel(N)}),pt(()=>{if(!c)return;const N=p.current;if(!N)return;let j=-1,ne=-1;return b&&M.current&&(N.style.transitionDuration="0s",w({height:N.scrollHeight,width:N.scrollWidth}),j=Nn.request(()=>{M.current=!1,ne=Nn.request(()=>{setTimeout(()=>{N.style.removeProperty("transition-duration")})})})),()=>{Nn.cancel(j),Nn.cancel(ne)}},[c,b,p,w]),pt(()=>{const N=p.current;N&&c&&te&&(N.setAttribute("hidden","until-found"),a.current==="css-transition"&&N.setAttribute(xf.startingStyle,""))},[c,te,a,p]),x.useEffect(function(){const j=p.current;if(!j)return;function ne(Z){M.current=!0,T(!0),m(!0,yn(fg,Z))}return j.addEventListener("beforematch",ne),()=>{j.removeEventListener("beforematch",ne)}},[m,p,T]),x.useMemo(()=>({props:{hidden:te,id:h,ref:J}}),[te,h,J])}let kD=(function(o){return o.collapsiblePanelHeight="--collapsible-panel-height",o.collapsiblePanelWidth="--collapsible-panel-width",o})({});function bg(o){const{enabled:n=!0,open:a,ref:i,onComplete:l}=o,c=it(l),f=WN(i,a,!1);x.useEffect(()=>{if(!n)return;const h=new AbortController;return f(c,h.signal),()=>{h.abort()}},[n,a,c,f])}const aM=x.forwardRef(function(n,a){const{className:i,hiddenUntilFound:l,keepMounted:c,render:f,id:h,...g}=n;pt(()=>{l&&c===!1&&rM("The `keepMounted={false}` prop on a Collapsible will be ignored when using `hiddenUntilFound` since it requires the Panel to remain mounted even when closed.")},[l,c]);const{abortControllerRef:m,animationTypeRef:b,height:p,mounted:v,onOpenChange:w,open:E,panelId:T,panelRef:C,runOnceAnimationsFinish:A,setDimensions:k,setHiddenUntilFound:U,setKeepMounted:M,setMounted:Y,setPanelIdState:$,setOpen:_,setVisible:z,state:te,transitionDimensionRef:H,visible:J,width:N,transitionStatus:j}=JN(),ne=l??!1,Z=c??!1;pt(()=>{if(h)return $(h),()=>{$(void 0)}},[h,$]),pt(()=>{U(ne)},[U,ne]),pt(()=>{M(Z)},[M,Z]);const{props:P}=ZB({abortControllerRef:m,animationTypeRef:b,externalRef:a,height:p,hiddenUntilFound:ne,id:T,keepMounted:Z,mounted:v,onOpenChange:w,open:E,panelRef:C,runOnceAnimationsFinish:A,setDimensions:k,setMounted:Y,setOpen:_,setVisible:z,transitionDimensionRef:H,visible:J,width:N});bg({open:E&&j==="idle",ref:C,onComplete(){E&&k({height:void 0,width:void 0})}});const oe=x.useMemo(()=>({...te,transitionStatus:j}),[te,j]),I=Ln("div",n,{state:oe,ref:[a,C],props:[P,{style:{[kD.collapsiblePanelHeight]:p===void 0?"auto":`${p}px`,[kD.collapsiblePanelWidth]:N===void 0?"auto":`${N}px`}},g],stateAttributesMapping:ZN});return Z||ne||!Z&&v?I:null});aM.displayName="CollapsiblePanel";function e6({...o}){return re.jsxDEV(eM,{"data-slot":"collapsible",...o},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/collapsible.tsx",lineNumber:4,columnNumber:10},this)}function t6({...o}){return re.jsxDEV(oM,{"data-slot":"collapsible-trigger",...o},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/collapsible.tsx",lineNumber:9,columnNumber:5},this)}function n6({...o}){return re.jsxDEV(aM,{"data-slot":"collapsible-content",...o},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/collapsible.tsx",lineNumber:15,columnNumber:5},this)}function Jf(o){return Ln(o.defaultTagName??"div",o,o)}function iM(o){var n,a,i="";if(typeof o=="string"||typeof o=="number")i+=o;else if(typeof o=="object")if(Array.isArray(o)){var l=o.length;for(n=0;n<l;n++)o[n]&&(a=iM(o[n]))&&(i&&(i+=" "),i+=a)}else for(a in o)o[a]&&(i&&(i+=" "),i+=a);return i}function sM(){for(var o,n,a=0,i="",l=arguments.length;a<l;a++)(o=arguments[a])&&(n=iM(o))&&(i&&(i+=" "),i+=n);return i}const LD=o=>typeof o=="boolean"?`${o}`:o===0?"0":o,UD=sM,tw=(o,n)=>a=>{var i;if((n==null?void 0:n.variants)==null)return UD(o,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:l,defaultVariants:c}=n,f=Object.keys(l).map(m=>{const b=a==null?void 0:a[m],p=c==null?void 0:c[m];if(b===null)return null;const v=LD(b)||LD(p);return l[m][v]}),h=a&&Object.entries(a).reduce((m,b)=>{let[p,v]=b;return v===void 0||(m[p]=v),m},{}),g=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((m,b)=>{let{class:p,className:v,...w}=b;return Object.entries(w).every(E=>{let[T,C]=E;return Array.isArray(C)?C.includes({...c,...h}[T]):{...c,...h}[T]===C})?[...m,p,v]:m},[]);return UD(o,f,g,a==null?void 0:a.class,a==null?void 0:a.className)},x0=768;function o6(){const[o,n]=x.useState(void 0);return x.useEffect(()=>{const a=window.matchMedia(`(max-width: ${x0-1}px)`),i=()=>{n(window.innerWidth<x0)};return a.addEventListener("change",i),n(window.innerWidth<x0),()=>a.removeEventListener("change",i)},[]),!!o}const r6=(o,n)=>{const a=new Array(o.length+n.length);for(let i=0;i<o.length;i++)a[i]=o[i];for(let i=0;i<n.length;i++)a[o.length+i]=n[i];return a},a6=(o,n)=>({classGroupId:o,validator:n}),lM=(o=new Map,n=null,a)=>({nextPart:o,validators:n,classGroupId:a}),Gm="-",zD=[],i6="arbitrary..",s6=o=>{const n=c6(o),{conflictingClassGroups:a,conflictingClassGroupModifiers:i}=o;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return l6(f);const h=f.split(Gm),g=h[0]===""&&h.length>1?1:0;return cM(h,g,n)},getConflictingClassGroupIds:(f,h)=>{if(h){const g=i[f],m=a[f];return g?m?r6(m,g):g:m||zD}return a[f]||zD}}},cM=(o,n,a)=>{if(o.length-n===0)return a.classGroupId;const l=o[n],c=a.nextPart.get(l);if(c){const m=cM(o,n+1,c);if(m)return m}const f=a.validators;if(f===null)return;const h=n===0?o.join(Gm):o.slice(n).join(Gm),g=f.length;for(let m=0;m<g;m++){const b=f[m];if(b.validator(h))return b.classGroupId}},l6=o=>o.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=o.slice(1,-1),a=n.indexOf(":"),i=n.slice(0,a);return i?i6+i:void 0})(),c6=o=>{const{theme:n,classGroups:a}=o;return u6(a,n)},u6=(o,n)=>{const a=lM();for(const i in o){const l=o[i];nw(l,a,i,n)}return a},nw=(o,n,a,i)=>{const l=o.length;for(let c=0;c<l;c++){const f=o[c];d6(f,n,a,i)}},d6=(o,n,a,i)=>{if(typeof o=="string"){f6(o,n,a);return}if(typeof o=="function"){h6(o,n,a,i);return}p6(o,n,a,i)},f6=(o,n,a)=>{const i=o===""?n:uM(n,o);i.classGroupId=a},h6=(o,n,a,i)=>{if(m6(o)){nw(o(i),n,a,i);return}n.validators===null&&(n.validators=[]),n.validators.push(a6(a,o))},p6=(o,n,a,i)=>{const l=Object.entries(o),c=l.length;for(let f=0;f<c;f++){const[h,g]=l[f];nw(g,uM(n,h),a,i)}},uM=(o,n)=>{let a=o;const i=n.split(Gm),l=i.length;for(let c=0;c<l;c++){const f=i[c];let h=a.nextPart.get(f);h||(h=lM(),a.nextPart.set(f,h)),a=h}return a},m6=o=>"isThemeGetter"in o&&o.isThemeGetter===!0,g6=o=>{if(o<1)return{get:()=>{},set:()=>{}};let n=0,a=Object.create(null),i=Object.create(null);const l=(c,f)=>{a[c]=f,n++,n>o&&(n=0,i=a,a=Object.create(null))};return{get(c){let f=a[c];if(f!==void 0)return f;if((f=i[c])!==void 0)return l(c,f),f},set(c,f){c in a?a[c]=f:l(c,f)}}},mS="!",PD=":",y6=[],jD=(o,n,a,i,l)=>({modifiers:o,hasImportantModifier:n,baseClassName:a,maybePostfixModifierPosition:i,isExternal:l}),b6=o=>{const{prefix:n,experimentalParseClassName:a}=o;let i=l=>{const c=[];let f=0,h=0,g=0,m;const b=l.length;for(let T=0;T<b;T++){const C=l[T];if(f===0&&h===0){if(C===PD){c.push(l.slice(g,T)),g=T+1;continue}if(C==="/"){m=T;continue}}C==="["?f++:C==="]"?f--:C==="("?h++:C===")"&&h--}const p=c.length===0?l:l.slice(g);let v=p,w=!1;p.endsWith(mS)?(v=p.slice(0,-1),w=!0):p.startsWith(mS)&&(v=p.slice(1),w=!0);const E=m&&m>g?m-g:void 0;return jD(c,w,v,E)};if(n){const l=n+PD,c=i;i=f=>f.startsWith(l)?c(f.slice(l.length)):jD(y6,!1,f,void 0,!0)}if(a){const l=i;i=c=>a({className:c,parseClassName:l})}return i},v6=o=>{const n=new Map;return o.orderSensitiveModifiers.forEach((a,i)=>{n.set(a,1e6+i)}),a=>{const i=[];let l=[];for(let c=0;c<a.length;c++){const f=a[c],h=f[0]==="[",g=n.has(f);h||g?(l.length>0&&(l.sort(),i.push(...l),l=[]),i.push(f)):l.push(f)}return l.length>0&&(l.sort(),i.push(...l)),i}},S6=o=>({cache:g6(o.cacheSize),parseClassName:b6(o),sortModifiers:v6(o),...s6(o)}),w6=/\s+/,E6=(o,n)=>{const{parseClassName:a,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:c}=n,f=[],h=o.trim().split(w6);let g="";for(let m=h.length-1;m>=0;m-=1){const b=h[m],{isExternal:p,modifiers:v,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:T}=a(b);if(p){g=b+(g.length>0?" "+g:g);continue}let C=!!T,A=i(C?E.substring(0,T):E);if(!A){if(!C){g=b+(g.length>0?" "+g:g);continue}if(A=i(E),!A){g=b+(g.length>0?" "+g:g);continue}C=!1}const k=v.length===0?"":v.length===1?v[0]:c(v).join(":"),U=w?k+mS:k,M=U+A;if(f.indexOf(M)>-1)continue;f.push(M);const Y=l(A,C);for(let $=0;$<Y.length;++$){const _=Y[$];f.push(U+_)}g=b+(g.length>0?" "+g:g)}return g},x6=(...o)=>{let n=0,a,i,l="";for(;n<o.length;)(a=o[n++])&&(i=dM(a))&&(l&&(l+=" "),l+=i);return l},dM=o=>{if(typeof o=="string")return o;let n,a="";for(let i=0;i<o.length;i++)o[i]&&(n=dM(o[i]))&&(a&&(a+=" "),a+=n);return a},R6=(o,...n)=>{let a,i,l,c;const f=g=>{const m=n.reduce((b,p)=>p(b),o());return a=S6(m),i=a.cache.get,l=a.cache.set,c=h,h(g)},h=g=>{const m=i(g);if(m)return m;const b=E6(g,a);return l(g,b),b};return c=f,(...g)=>c(x6(...g))},T6=[],Jn=o=>{const n=a=>a[o]||T6;return n.isThemeGetter=!0,n},fM=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hM=/^\((?:(\w[\w-]*):)?(.+)\)$/i,C6=/^\d+\/\d+$/,O6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,D6=/\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$/,A6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,N6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jc=o=>C6.test(o),At=o=>!!o&&!Number.isNaN(Number(o)),vs=o=>!!o&&Number.isInteger(Number(o)),R0=o=>o.endsWith("%")&&At(o.slice(0,-1)),bi=o=>O6.test(o),_6=()=>!0,k6=o=>D6.test(o)&&!A6.test(o),pM=()=>!1,L6=o=>N6.test(o),U6=o=>M6.test(o),z6=o=>!qe(o)&&!Ge(o),P6=o=>xu(o,yM,pM),qe=o=>fM.test(o),Cl=o=>xu(o,bM,k6),T0=o=>xu(o,V6,At),HD=o=>xu(o,mM,pM),j6=o=>xu(o,gM,U6),xm=o=>xu(o,vM,L6),Ge=o=>hM.test(o),df=o=>Ru(o,bM),H6=o=>Ru(o,F6),ID=o=>Ru(o,mM),I6=o=>Ru(o,yM),B6=o=>Ru(o,gM),Rm=o=>Ru(o,vM,!0),xu=(o,n,a)=>{const i=fM.exec(o);return i?i[1]?n(i[1]):a(i[2]):!1},Ru=(o,n,a=!1)=>{const i=hM.exec(o);return i?i[1]?n(i[1]):a:!1},mM=o=>o==="position"||o==="percentage",gM=o=>o==="image"||o==="url",yM=o=>o==="length"||o==="size"||o==="bg-size",bM=o=>o==="length",V6=o=>o==="number",F6=o=>o==="family-name",vM=o=>o==="shadow",Y6=()=>{const o=Jn("color"),n=Jn("font"),a=Jn("text"),i=Jn("font-weight"),l=Jn("tracking"),c=Jn("leading"),f=Jn("breakpoint"),h=Jn("container"),g=Jn("spacing"),m=Jn("radius"),b=Jn("shadow"),p=Jn("inset-shadow"),v=Jn("text-shadow"),w=Jn("drop-shadow"),E=Jn("blur"),T=Jn("perspective"),C=Jn("aspect"),A=Jn("ease"),k=Jn("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Y=()=>[...M(),Ge,qe],$=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],z=()=>[Ge,qe,g],te=()=>[Jc,"full","auto",...z()],H=()=>[vs,"none","subgrid",Ge,qe],J=()=>["auto",{span:["full",vs,Ge,qe]},vs,Ge,qe],N=()=>[vs,"auto",Ge,qe],j=()=>["auto","min","max","fr",Ge,qe],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...z()],oe=()=>[Jc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],I=()=>[o,Ge,qe],se=()=>[...M(),ID,HD,{position:[Ge,qe]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",I6,P6,{size:[Ge,qe]}],ce=()=>[R0,df,Cl],ie=()=>["","none","full",m,Ge,qe],me=()=>["",At,df,Cl],Te=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[At,R0,ID,HD],ze=()=>["","none",E,Ge,qe],Pe=()=>["none",At,Ge,qe],at=()=>["none",At,Ge,qe],xe=()=>[At,Ge,qe],he=()=>[Jc,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[bi],breakpoint:[bi],color:[_6],container:[bi],"drop-shadow":[bi],ease:["in","out","in-out"],font:[z6],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[bi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[bi],shadow:[bi],spacing:["px",At],text:[bi],"text-shadow":[bi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jc,qe,Ge,C]}],container:["container"],columns:[{columns:[At,qe,Ge,h]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:Y()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[vs,"auto",Ge,qe]}],basis:[{basis:[Jc,"full","auto",h,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[At,Jc,"auto","initial","none",qe]}],grow:[{grow:["",At,Ge,qe]}],shrink:[{shrink:["",At,Ge,qe]}],order:[{order:[vs,"first","last","none",Ge,qe]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:oe()}],w:[{w:[h,"screen",...oe()]}],"min-w":[{"min-w":[h,"screen","none",...oe()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...oe()]}],h:[{h:["screen","lh",...oe()]}],"min-h":[{"min-h":["screen","lh","none",...oe()]}],"max-h":[{"max-h":["screen","lh",...oe()]}],"font-size":[{text:["base",a,df,Cl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Ge,T0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",R0,qe]}],"font-family":[{font:[H6,qe,n]}],"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:[l,Ge,qe]}],"line-clamp":[{"line-clamp":[At,"none",Ge,T0]}],leading:[{leading:[c,...z()]}],"list-image":[{"list-image":["none",Ge,qe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ge,qe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:[At,"from-font","auto",Ge,Cl]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[At,"auto",Ge,qe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ge,qe]}],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",Ge,qe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vs,Ge,qe],radial:["",Ge,qe],conic:[vs,Ge,qe]},B6,j6]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Te(),"hidden","none"]}],"divide-style":[{divide:[...Te(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...Te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[At,Ge,qe]}],"outline-w":[{outline:["",At,df,Cl]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",b,Rm,xm]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",p,Rm,xm]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[At,Cl]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",v,Rm,xm]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[At,Ge,qe]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"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":[At]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[Ge,qe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":M()}],"mask-image-conic-pos":[{"mask-conic":[At]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ge,qe]}],filter:[{filter:["","none",Ge,qe]}],blur:[{blur:ze()}],brightness:[{brightness:[At,Ge,qe]}],contrast:[{contrast:[At,Ge,qe]}],"drop-shadow":[{"drop-shadow":["","none",w,Rm,xm]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",At,Ge,qe]}],"hue-rotate":[{"hue-rotate":[At,Ge,qe]}],invert:[{invert:["",At,Ge,qe]}],saturate:[{saturate:[At,Ge,qe]}],sepia:[{sepia:["",At,Ge,qe]}],"backdrop-filter":[{"backdrop-filter":["","none",Ge,qe]}],"backdrop-blur":[{"backdrop-blur":ze()}],"backdrop-brightness":[{"backdrop-brightness":[At,Ge,qe]}],"backdrop-contrast":[{"backdrop-contrast":[At,Ge,qe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",At,Ge,qe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[At,Ge,qe]}],"backdrop-invert":[{"backdrop-invert":["",At,Ge,qe]}],"backdrop-opacity":[{"backdrop-opacity":[At,Ge,qe]}],"backdrop-saturate":[{"backdrop-saturate":[At,Ge,qe]}],"backdrop-sepia":[{"backdrop-sepia":["",At,Ge,qe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ge,qe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[At,"initial",Ge,qe]}],ease:[{ease:["linear","initial",A,Ge,qe]}],delay:[{delay:[At,Ge,qe]}],animate:[{animate:["none",k,Ge,qe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,Ge,qe]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:Pe()}],"rotate-x":[{"rotate-x":Pe()}],"rotate-y":[{"rotate-y":Pe()}],"rotate-z":[{"rotate-z":Pe()}],scale:[{scale:at()}],"scale-x":[{"scale-x":at()}],"scale-y":[{"scale-y":at()}],"scale-z":[{"scale-z":at()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[Ge,qe,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",Ge,qe]}],"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":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",Ge,qe]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[At,df,Cl,T0]}],stroke:[{stroke:["none",...I()]}],"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"]}},$6=R6(Y6);function Pt(...o){return $6(sM(o))}const SM=x.forwardRef(function(n,a){const{render:i,className:l,disabled:c=!1,focusableWhenDisabled:f=!1,nativeButton:h=!0,...g}=n,{getButtonProps:m,buttonRef:b}=ew({disabled:c,focusableWhenDisabled:f,native:h});return Ln("button",n,{state:{disabled:c},ref:[a,b],props:[g,m]})});SM.displayName="Button";const q6=tw("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 [&_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 [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 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-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function ow({className:o,variant:n="default",size:a="default",...i}){return re.jsxDEV(SM,{"data-slot":"button",className:Pt(q6({variant:n,size:a,className:o})),...i},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/button.tsx",lineNumber:43,columnNumber:5},this)}const ff=0;class Fa{constructor(){Xe(this,"currentId",ff);Xe(this,"clear",()=>{this.currentId!==ff&&(clearTimeout(this.currentId),this.currentId=ff)});Xe(this,"disposeEffect",()=>this.clear)}static create(){return new Fa}start(n,a){this.clear(),this.currentId=setTimeout(()=>{this.currentId=ff,a()},n)}isStarted(){return this.currentId!==ff}}function Di(){const o=gr(Fa.create).current;return hg(o.disposeEffect),o}function fn(o){return(o==null?void 0:o.ownerDocument)||document}const Tu=typeof navigator<"u",C0=X6(),wM=W6(),EM=Q6(),rw=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),xM=C0.platform==="MacIntel"&&C0.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(C0.platform),RM=Tu&&/apple/i.test(navigator.vendor),gS=Tu&&/android/i.test(wM)||/android/i.test(EM),G6=Tu&&wM.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,TM=EM.includes("jsdom/");function X6(){if(!Tu)return{platform:"",maxTouchPoints:-1};const o=navigator.userAgentData;return o!=null&&o.platform?{platform:o.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function Q6(){if(!Tu)return"";const o=navigator.userAgentData;return o&&Array.isArray(o.brands)?o.brands.map(({brand:n,version:a})=>`${n}/${a}`).join(" "):navigator.userAgent}function W6(){if(!Tu)return"";const o=navigator.userAgentData;return o!=null&&o.platform?o.platform:navigator.platform??""}const yS="data-base-ui-focusable",CM="active",OM="selected",DM="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",jY="ArrowLeft",HY="ArrowRight",IY="ArrowUp",BY="ArrowDown";function xi(o){var a;let n=o.activeElement;for(;((a=n==null?void 0:n.shadowRoot)==null?void 0:a.activeElement)!=null;)n=n.shadowRoot.activeElement;return n}function Yt(o,n){var i;if(!o||!n)return!1;const a=(i=n.getRootNode)==null?void 0:i.call(n);if(o.contains(n))return!0;if(a&&dS(a)){let l=n;for(;l;){if(o===l)return!0;l=l.parentNode||l.host}}return!1}function Xm(o,n){if(!qt(o))return!1;const a=o;if(n.hasElement(a))return!a.hasAttribute("data-trigger-disabled");for(const[,i]of n.entries())if(Yt(i,a))return!i.hasAttribute("data-trigger-disabled");return!1}function qo(o){return"composedPath"in o?o.composedPath()[0]:o.target}function Kr(o,n){if(n==null)return!1;if("composedPath"in o)return o.composedPath().includes(n);const a=o;return a.target!=null&&n.contains(a.target)}function K6(o){return o.matches("html,body")}function aw(o){return $n(o)&&o.matches(DM)}function BD(o){return o?o.getAttribute("role")==="combobox"&&aw(o):!1}function J6(o){if(!o||TM)return!0;try{return o.matches(":focus-visible")}catch{return!0}}function bS(o){return o?o.hasAttribute(yS)?o:o.querySelector(`[${yS}]`)||o:null}function Vl(o,n,a=!0){return o.filter(l=>{var c;return l.parentId===n&&(!a||((c=l.context)==null?void 0:c.open))}).flatMap(l=>[l,...Vl(o,l.id,a)])}function VD(o,n){var l;let a=[],i=(l=o.find(c=>c.id===n))==null?void 0:l.parentId;for(;i;){const c=o.find(f=>f.id===i);i=c==null?void 0:c.parentId,c&&(a=a.concat(c))}return a}function Z6(o){o.preventDefault(),o.stopPropagation()}function e8(o){return"nativeEvent"in o}function t8(o){return o.pointerType===""&&o.isTrusted?!0:gS&&o.pointerType?o.type==="click"&&o.buttons===1:o.detail===0&&!o.pointerType}function n8(o){return TM?!1:!gS&&o.width===0&&o.height===0||gS&&o.width===1&&o.height===1&&o.pressure===0&&o.detail===0&&o.pointerType==="mouse"||o.width<1&&o.height<1&&o.pressure===0&&o.detail===0&&o.pointerType==="touch"}function Pf(o,n){const a=["mouse","pen"];return n||a.push("",void 0),a.includes(o)}function o8(o){const n=o.type;return n==="click"||n==="mousedown"||n==="keydown"||n==="keyup"}const r8=["top","right","bottom","left"],vu=Math.min,fr=Math.max,Qm=Math.round,Tm=Math.floor,Ba=o=>({x:o,y:o}),a8={left:"right",right:"left",bottom:"top",top:"bottom"},i8={start:"end",end:"start"};function vS(o,n,a){return fr(o,vu(n,a))}function Ai(o,n){return typeof o=="function"?o(n):o}function Xo(o){return o.split("-")[0]}function Hs(o){return o.split("-")[1]}function iw(o){return o==="x"?"y":"x"}function sw(o){return o==="y"?"height":"width"}const s8=new Set(["top","bottom"]);function Ur(o){return s8.has(Xo(o))?"y":"x"}function lw(o){return iw(Ur(o))}function l8(o,n,a){a===void 0&&(a=!1);const i=Hs(o),l=lw(o),c=sw(l);let f=l==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Wm(f)),[f,Wm(f)]}function c8(o){const n=Wm(o);return[SS(o),n,SS(n)]}function SS(o){return o.replace(/start|end/g,n=>i8[n])}const FD=["left","right"],YD=["right","left"],u8=["top","bottom"],d8=["bottom","top"];function f8(o,n,a){switch(o){case"top":case"bottom":return a?n?YD:FD:n?FD:YD;case"left":case"right":return n?u8:d8;default:return[]}}function h8(o,n,a,i){const l=Hs(o);let c=f8(Xo(o),a==="start",i);return l&&(c=c.map(f=>f+"-"+l),n&&(c=c.concat(c.map(SS)))),c}function Wm(o){return o.replace(/left|right|bottom|top/g,n=>a8[n])}function p8(o){return{top:0,right:0,bottom:0,left:0,...o}}function AM(o){return typeof o!="number"?p8(o):{top:o,right:o,bottom:o,left:o}}function Km(o){const{x:n,y:a,width:i,height:l}=o;return{width:i,height:l,top:a,left:n,right:n+i,bottom:a+l,x:n,y:a}}/*!
|
|
421
|
-
* tabbable 6.4.0
|
|
422
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
423
|
-
*/var m8=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Jm=m8.join(","),NM=typeof Element>"u",Su=NM?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Zm=!NM&&Element.prototype.getRootNode?function(o){var n;return o==null||(n=o.getRootNode)===null||n===void 0?void 0:n.call(o)}:function(o){return o==null?void 0:o.ownerDocument},eg=function(n,a){var i;a===void 0&&(a=!0);var l=n==null||(i=n.getAttribute)===null||i===void 0?void 0:i.call(n,"inert"),c=l===""||l==="true",f=c||a&&n&&(typeof n.closest=="function"?n.closest("[inert]"):eg(n.parentNode));return f},g8=function(n){var a,i=n==null||(a=n.getAttribute)===null||a===void 0?void 0:a.call(n,"contenteditable");return i===""||i==="true"},MM=function(n,a,i){if(eg(n))return[];var l=Array.prototype.slice.apply(n.querySelectorAll(Jm));return a&&Su.call(n,Jm)&&l.unshift(n),l=l.filter(i),l},tg=function(n,a,i){for(var l=[],c=Array.from(n);c.length;){var f=c.shift();if(!eg(f,!1))if(f.tagName==="SLOT"){var h=f.assignedElements(),g=h.length?h:f.children,m=tg(g,!0,i);i.flatten?l.push.apply(l,m):l.push({scopeParent:f,candidates:m})}else{var b=Su.call(f,Jm);b&&i.filter(f)&&(a||!n.includes(f))&&l.push(f);var p=f.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(f),v=!eg(p,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(f));if(p&&v){var w=tg(p===!0?f.children:p.children,!0,i);i.flatten?l.push.apply(l,w):l.push({scopeParent:f,candidates:w})}else c.unshift.apply(c,f.children)}}return l},_M=function(n){return!isNaN(parseInt(n.getAttribute("tabindex"),10))},kM=function(n){if(!n)throw new Error("No node provided");return n.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||g8(n))&&!_M(n)?0:n.tabIndex},y8=function(n,a){var i=kM(n);return i<0&&a&&!_M(n)?0:i},b8=function(n,a){return n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex},LM=function(n){return n.tagName==="INPUT"},v8=function(n){return LM(n)&&n.type==="hidden"},S8=function(n){var a=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(i){return i.tagName==="SUMMARY"});return a},w8=function(n,a){for(var i=0;i<n.length;i++)if(n[i].checked&&n[i].form===a)return n[i]},E8=function(n){if(!n.name)return!0;var a=n.form||Zm(n),i=function(h){return a.querySelectorAll('input[type="radio"][name="'+h+'"]')},l;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")l=i(window.CSS.escape(n.name));else try{l=i(n.name)}catch(f){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",f.message),!1}var c=w8(l,n.form);return!c||c===n},x8=function(n){return LM(n)&&n.type==="radio"},R8=function(n){return x8(n)&&!E8(n)},T8=function(n){var a,i=n&&Zm(n),l=(a=i)===null||a===void 0?void 0:a.host,c=!1;if(i&&i!==n){var f,h,g;for(c=!!((f=l)!==null&&f!==void 0&&(h=f.ownerDocument)!==null&&h!==void 0&&h.contains(l)||n!=null&&(g=n.ownerDocument)!==null&&g!==void 0&&g.contains(n));!c&&l;){var m,b,p;i=Zm(l),l=(m=i)===null||m===void 0?void 0:m.host,c=!!((b=l)!==null&&b!==void 0&&(p=b.ownerDocument)!==null&&p!==void 0&&p.contains(l))}}return c},$D=function(n){var a=n.getBoundingClientRect(),i=a.width,l=a.height;return i===0&&l===0},C8=function(n,a){var i=a.displayCheck,l=a.getShadowRoot;if(i==="full-native"&&"checkVisibility"in n){var c=n.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!c}if(getComputedStyle(n).visibility==="hidden")return!0;var f=Su.call(n,"details>summary:first-of-type"),h=f?n.parentElement:n;if(Su.call(h,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="full-native"||i==="legacy-full"){if(typeof l=="function"){for(var g=n;n;){var m=n.parentElement,b=Zm(n);if(m&&!m.shadowRoot&&l(m)===!0)return $D(n);n.assignedSlot?n=n.assignedSlot:!m&&b!==n.ownerDocument?n=b.host:n=m}n=g}if(T8(n))return!n.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return $D(n);return!1},O8=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var a=n.parentElement;a;){if(a.tagName==="FIELDSET"&&a.disabled){for(var i=0;i<a.children.length;i++){var l=a.children.item(i);if(l.tagName==="LEGEND")return Su.call(a,"fieldset[disabled] *")?!0:!l.contains(n)}return!0}a=a.parentElement}return!1},wS=function(n,a){return!(a.disabled||v8(a)||C8(a,n)||S8(a)||O8(a))},ES=function(n,a){return!(R8(a)||kM(a)<0||!wS(n,a))},D8=function(n){var a=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},UM=function(n){var a=[],i=[];return n.forEach(function(l,c){var f=!!l.scopeParent,h=f?l.scopeParent:l,g=y8(h,f),m=f?UM(l.candidates):h;g===0?f?a.push.apply(a,m):a.push(h):i.push({documentOrder:c,tabIndex:g,item:l,isScope:f,content:m})}),i.sort(b8).reduce(function(l,c){return c.isScope?l.push.apply(l,c.content):l.push(c.content),l},[]).concat(a)},Zf=function(n,a){a=a||{};var i;return a.getShadowRoot?i=tg([n],a.includeContainer,{filter:ES.bind(null,a),flatten:!1,getShadowRoot:a.getShadowRoot,shadowRootFilter:D8}):i=MM(n,a.includeContainer,ES.bind(null,a)),UM(i)},A8=function(n,a){a=a||{};var i;return a.getShadowRoot?i=tg([n],a.includeContainer,{filter:wS.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):i=MM(n,a.includeContainer,wS.bind(null,a)),i},zM=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return Su.call(n,Jm)===!1?!1:ES(a,n)};const Cu=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function PM(o,n){const a=Zf(o,Cu()),i=a.length;if(i===0)return;const l=xi(fn(o)),c=a.indexOf(l),f=c===-1?n===1?0:i-1:c+n;return a[f]}function jM(o){return PM(fn(o).body,1)||o}function HM(o){return PM(fn(o).body,-1)||o}function IM(o,n){if(!o)return null;const a=Zf(fn(o).body,Cu()),i=a.length;if(i===0)return null;const l=a.indexOf(o);if(l===-1)return null;const c=(l+n+i)%i;return a[c]}function VY(o){return IM(o,1)}function FY(o){return IM(o,-1)}function Rf(o,n){const a=n||o.currentTarget,i=o.relatedTarget;return!i||!Yt(a,i)}function N8(o){Zf(o,Cu()).forEach(a=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")})}function qD(o){o.querySelectorAll("[data-tabindex]").forEach(a=>{const i=a.dataset.tabindex;delete a.dataset.tabindex,i?a.setAttribute("tabindex",i):a.removeAttribute("tabindex")})}const BM=x.forwardRef(function(n,a){const{className:i,render:l,orientation:c="horizontal",...f}=n;return Ln("div",n,{state:{orientation:c},ref:a,props:[{role:"separator","aria-orientation":c},f]})});BM.displayName="Separator";function M8({className:o,orientation:n="horizontal",...a}){return re.jsxDEV(BM,{"data-slot":"separator",orientation:n,className:Pt("bg-border shrink-0 data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",o),...a},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/separator.tsx",lineNumber:13,columnNumber:5},this)}const cw=x.createContext(void 0);cw.displayName="DialogRootContext";function Wl(o){const n=x.useContext(cw);if(o===!1&&n===void 0)throw new Error("Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");return n}let Ml=(function(o){return o.open="data-open",o.closed="data-closed",o[o.startingStyle=$l.startingStyle]="startingStyle",o[o.endingStyle=$l.endingStyle]="endingStyle",o.anchorHidden="data-anchor-hidden",o.side="data-side",o.align="data-align",o})({}),ng=(function(o){return o.popupOpen="data-popup-open",o.pressed="data-pressed",o})({});const _8={[ng.popupOpen]:""},k8={[ng.popupOpen]:"",[ng.pressed]:""},L8={[Ml.open]:""},U8={[Ml.closed]:""},z8={[Ml.anchorHidden]:""},P8={open(o){return o?_8:null}},YY={open(o){return o?k8:null}},eh={open(o){return o?L8:U8},anchorHidden(o){return o?z8:null}},j8={...eh,...Kf},VM=x.forwardRef(function(n,a){const{render:i,className:l,forceRender:c=!1,...f}=n,{store:h}=Wl(),g=h.useState("open"),m=h.useState("nested"),b=h.useState("mounted"),p=h.useState("transitionStatus");return Ln("div",n,{state:{open:g,transitionStatus:p},ref:[h.context.backdropRef,a],stateAttributesMapping:j8,props:[{role:"presentation",hidden:!b,style:{userSelect:"none",WebkitUserSelect:"none"}},f],enabled:c||!m})});VM.displayName="DialogBackdrop";const FM=x.forwardRef(function(n,a){const{render:i,className:l,disabled:c=!1,nativeButton:f=!0,...h}=n,{store:g}=Wl(),m=g.useState("open");function b(E){m&&g.setOpen(!1,yn(OB,E.nativeEvent))}const{getButtonProps:p,buttonRef:v}=ew({disabled:c,native:f});return Ln("button",n,{state:{disabled:c},ref:[a,v],props:[{onClick:b},h,p]})});FM.displayName="DialogClose";const YM=x.forwardRef(function(n,a){const{render:i,className:l,id:c,...f}=n,{store:h}=Wl(),g=Wf(c);return h.useSyncedValueWithCleanup("descriptionElementId",g),Ln("p",n,{ref:a,props:[{id:g},f]})});YM.displayName="DialogDescription";function Ha(o){const n=gr(H8,o).current;return n.next=o,pt(n.effect),n}function H8(o){const n={current:o,next:o,effect:()=>{n.current=n.next}};return n}function $M(){const o=new Map;return{emit(n,a){var i;(i=o.get(n))==null||i.forEach(l=>l(a))},on(n,a){o.has(n)||o.set(n,new Set),o.get(n).add(a)},off(n,a){var i;(i=o.get(n))==null||i.delete(a)}}}class I8{constructor(){Xe(this,"nodesRef",{current:[]});Xe(this,"events",$M())}addNode(n){this.nodesRef.current.push(n)}removeNode(n){const a=this.nodesRef.current.findIndex(i=>i===n);a!==-1&&this.nodesRef.current.splice(a,1)}}const uw=x.createContext(null);uw.displayName="FloatingNodeContext";const dw=x.createContext(null);dw.displayName="FloatingTreeContext";const Ou=()=>{var o;return((o=x.useContext(uw))==null?void 0:o.id)||null},Du=o=>{const n=x.useContext(dw);return o??n};function $Y(o){const n=Eu(),a=Du(o),i=Ou();return pt(()=>{if(!n)return;const l={id:n,parentId:i};return a==null||a.addNode(l),()=>{a==null||a.removeNode(l)}},[a,n,i]),n}function qY(o){const{children:n,id:a}=o,i=Ou();return nn.jsx(uw.Provider,{value:x.useMemo(()=>({id:a,parentId:i}),[a,i]),children:n})}function GY(o){const{children:n,externalTree:a}=o,i=gr(()=>a??new I8).current;return nn.jsx(dw.Provider,{value:i,children:n})}function wu(o){return`data-base-ui-${o}`}function Hm(o,n,a){if(a&&!Pf(a))return 0;if(typeof o=="number")return o;if(typeof o=="function"){const i=o();return typeof i=="number"?i:i==null?void 0:i[n]}return o==null?void 0:o[n]}const qM=x.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Fa,currentIdRef:{current:null},currentContextRef:{current:null}});qM.displayName="FloatingDelayGroupContext";function B8(o,n={open:!1}){const a="rootStore"in o?o.rootStore:o,i=a.useState("floatingId"),{open:l}=n,c=x.useContext(qM),{currentIdRef:f,delayRef:h,timeoutMs:g,initialDelayRef:m,currentContextRef:b,hasProvider:p,timeout:v}=c,[w,E]=x.useState(!1);return pt(()=>{function T(){var C;E(!1),(C=b.current)==null||C.setIsInstantPhase(!1),f.current=null,b.current=null,h.current=m.current}if(f.current&&!l&&f.current===i){if(E(!1),g){const C=i;return v.start(g,()=>{a.select("open")||f.current&&f.current!==C||T()}),()=>{v.clear()}}T()}},[l,i,f,h,g,m,b,v,a]),pt(()=>{if(!l)return;const T=b.current,C=f.current;v.clear(),b.current={onOpenChange:a.setOpen,setIsInstantPhase:E},f.current=i,h.current={open:0,close:Hm(m.current,"close")},C!==null&&C!==i?(E(!0),T==null||T.setIsInstantPhase(!0),T==null||T.onOpenChange(!1,yn(fg))):(E(!1),T==null||T.setIsInstantPhase(!1))},[l,i,a,f,h,g,m,b,v]),pt(()=>()=>{b.current=null},[b]),x.useMemo(()=>({hasProvider:p,delayRef:h,isInstantPhase:w}),[p,h,w])}const GM={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},XM={...GM,position:"fixed",top:0,left:0},XY={...GM,position:"absolute"},jf=x.forwardRef(function(n,a){const[i,l]=x.useState();pt(()=>{RM&&l("button")},[]);const c={tabIndex:0,role:i};return nn.jsx("span",{...n,ref:a,style:XM,"aria-hidden":i?void 0:!0,...c,"data-base-ui-focus-guard":""})});jf.displayName="FocusGuard";let GD=0;function O0(o,n={}){const{preventScroll:a=!1,cancelPrevious:i=!0,sync:l=!1}=n;i&&cancelAnimationFrame(GD);const c=()=>o==null?void 0:o.focus({preventScroll:a});l?c():GD=requestAnimationFrame(c)}const ru={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function XD(o){return o==="inert"?ru.inert:o==="aria-hidden"?ru["aria-hidden"]:ru.none}let Cm=new WeakSet,Om={},D0=0;const QM=o=>o&&(o.host||QM(o.parentNode)),V8=(o,n)=>n.map(a=>{if(o.contains(a))return a;const i=QM(a);return o.contains(i)?i:null}).filter(a=>a!=null);function F8(o,n,a,i){const l="data-base-ui-inert",c=i?"inert":a?"aria-hidden":null,f=V8(n,o),h=new Set,g=new Set(f),m=[];Om[l]||(Om[l]=new WeakMap);const b=Om[l];f.forEach(p),v(n),h.clear();function p(w){!w||h.has(w)||(h.add(w),w.parentNode&&p(w.parentNode))}function v(w){!w||g.has(w)||[].forEach.call(w.children,E=>{if(Ps(E)!=="script")if(h.has(E))v(E);else{const T=c?E.getAttribute(c):null,C=T!==null&&T!=="false",A=XD(c),k=(A.get(E)||0)+1,U=(b.get(E)||0)+1;A.set(E,k),b.set(E,U),m.push(E),k===1&&C&&Cm.add(E),U===1&&E.setAttribute(l,""),!C&&c&&E.setAttribute(c,c==="inert"?"":"true")}})}return D0+=1,()=>{m.forEach(w=>{const E=XD(c),C=(E.get(w)||0)-1,A=(b.get(w)||0)-1;E.set(w,C),b.set(w,A),C||(!Cm.has(w)&&c&&w.removeAttribute(c),Cm.delete(w)),A||w.removeAttribute(l)}),D0-=1,D0||(ru.inert=new WeakMap,ru["aria-hidden"]=new WeakMap,ru.none=new WeakMap,Cm=new WeakSet,Om={})}}function Y8(o,n=!1,a=!1){const i=fn(o[0]).body;return F8(o.concat(Array.from(i.querySelectorAll("[aria-live]"))),i,n,a)}const fw=x.createContext(null);fw.displayName="PortalContext";const WM=()=>x.useContext(fw),$8=wu("portal");function KM(o={}){const{ref:n,container:a,componentProps:i=hr,elementProps:l}=o,c=Eu(),f=WM(),h=f==null?void 0:f.portalNode,[g,m]=x.useState(null),[b,p]=x.useState(null),v=it(C=>{C!==null&&p(C)}),w=x.useRef(null);pt(()=>{if(a===null){w.current&&(w.current=null,p(null),m(null));return}if(c==null)return;const C=(a&&(JS(a)?a:a.current))??h??document.body;if(C==null){w.current&&(w.current=null,p(null),m(null));return}w.current!==C&&(w.current=C,p(null),m(C))},[a,h,c]);const E=Ln("div",i,{ref:[n,v],props:[{id:c,[$8]:""},l]});return{portalNode:b,portalSubtree:g&&E?zs.createPortal(E,g):null}}const JM=x.forwardRef(function(n,a){const{children:i,container:l,className:c,render:f,renderGuards:h,...g}=n,{portalNode:m,portalSubtree:b}=KM({container:l,ref:a,componentProps:n,elementProps:g}),p=x.useRef(null),v=x.useRef(null),w=x.useRef(null),E=x.useRef(null),[T,C]=x.useState(null),A=T==null?void 0:T.modal,k=T==null?void 0:T.open,U=typeof h=="boolean"?h:!!T&&!T.modal&&T.open&&!!m;x.useEffect(()=>{if(!m||A)return;function Y($){m&&$.relatedTarget&&Rf($)&&($.type==="focusin"?qD:N8)(m)}return m.addEventListener("focusin",Y,!0),m.addEventListener("focusout",Y,!0),()=>{m.removeEventListener("focusin",Y,!0),m.removeEventListener("focusout",Y,!0)}},[m,A]),x.useEffect(()=>{!m||k||qD(m)},[k,m]);const M=x.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:v,beforeInsideRef:w,afterInsideRef:E,portalNode:m,setFocusManagerState:C}),[m]);return nn.jsxs(x.Fragment,{children:[b,nn.jsxs(fw.Provider,{value:M,children:[U&&m&&nn.jsx(jf,{"data-type":"outside",ref:p,onFocus:Y=>{var $;if(Rf(Y,m))($=w.current)==null||$.focus();else{const _=T?T.domReference:null,z=HM(_);z==null||z.focus()}}}),U&&m&&nn.jsx("span",{"aria-owns":m.id,style:vB}),m&&zs.createPortal(i,m),U&&m&&nn.jsx(jf,{"data-type":"outside",ref:v,onFocus:Y=>{var $;if(Rf(Y,m))($=E.current)==null||$.focus();else{const _=T?T.domReference:null,z=jM(_);z==null||z.focus(),T!=null&&T.closeOnFocusOut&&(T==null||T.onOpenChange(!1,yn(XN,Y.nativeEvent)))}}})]})]})});JM.displayName="FloatingPortal";function q8(o,n){const a=Gn(o.target);return o instanceof a.KeyboardEvent?"keyboard":o instanceof a.FocusEvent?n||"keyboard":"pointerType"in o?o.pointerType||"keyboard":"touches"in o?"touch":o instanceof a.MouseEvent?n||(o.detail===0?"keyboard":"mouse"):""}const QD=20;let Ms=[];function hw(){Ms=Ms.filter(o=>{var n;return(n=o.deref())==null?void 0:n.isConnected})}function G8(o){hw(),o&&Ps(o)!=="body"&&(Ms.push(new WeakRef(o)),Ms.length>QD&&(Ms=Ms.slice(-QD)))}function A0(){var o;return hw(),(o=Ms[Ms.length-1])==null?void 0:o.deref()}function X8(o){if(!o)return null;const n=Cu();return zM(o,n)?o:Zf(o,n)[0]||o}function Q8(o){return!o||!o.isConnected?!1:typeof o.checkVisibility=="function"?o.checkVisibility():mr(o).display!=="none"}function WD(o,n){var f;if(!n.current.includes("floating")&&!((f=o.getAttribute("role"))!=null&&f.includes("dialog")))return;const a=Cu(),l=A8(o,a).filter(h=>{const g=h.getAttribute("data-tabindex")||"";return zM(h,a)||h.hasAttribute("data-tabindex")&&!g.startsWith("-")}),c=o.getAttribute("tabindex");n.current.includes("floating")||l.length===0?c!=="0"&&o.setAttribute("tabindex","0"):(c!=="-1"||o.hasAttribute("data-tabindex")&&o.getAttribute("data-tabindex")!=="-1")&&(o.setAttribute("tabindex","-1"),o.setAttribute("data-tabindex","-1"))}function W8(o){const{context:n,children:a,disabled:i=!1,initialFocus:l=!0,returnFocus:c=!0,restoreFocus:f=!1,modal:h=!0,closeOnFocusOut:g=!0,openInteractionType:m="",nextFocusableElement:b,previousFocusableElement:p,beforeContentFocusGuardRef:v,externalTree:w}=o,E="rootStore"in n?n.rootStore:n,T=E.useState("open"),C=E.useState("domReferenceElement"),A=E.useState("floatingElement"),{events:k,dataRef:U}=E.context,M=it(()=>{var we;return(we=U.current.floatingContext)==null?void 0:we.nodeId}),Y=l===!1,$=BD(C)&&Y,_=x.useRef(["content"]),z=Ha(l),te=Ha(c),H=Ha(m),J=Du(w),N=WM(),j=x.useRef(null),ne=x.useRef(null),Z=x.useRef(!1),P=x.useRef(!1),oe=x.useRef(!1),I=x.useRef(-1),se=x.useRef(""),pe=x.useRef(""),L=x.useRef(null),ce=x.useRef(null),ie=Uf(L,v,N==null?void 0:N.beforeInsideRef),me=Uf(ce,N==null?void 0:N.afterInsideRef),Te=Di(),Ue=Di(),ve=WS(),ze=N!=null,Pe=bS(A),at=it((we=Pe)=>we?Zf(we,Cu()):[]),xe=it(we=>{const De=at(we);return _.current.map(()=>De).filter(Boolean).flat()});x.useEffect(()=>{if(i||!h)return;function we(Ye){Ye.key==="Tab"&&Yt(Pe,xi(fn(Pe)))&&at().length===0&&!$&&Z6(Ye)}const De=fn(Pe);return De.addEventListener("keydown",we),()=>{De.removeEventListener("keydown",we)}},[i,C,Pe,h,_,$,at,xe]),x.useEffect(()=>{if(i||!T)return;const we=fn(Pe);function De(){oe.current=!1}function Ye(Ae){const Le=qo(Ae),tt=Yt(A,Le)||Yt(C,Le)||Yt(N==null?void 0:N.portalNode,Le);oe.current=!tt,pe.current=Ae.pointerType||"keyboard",Le!=null&&Le.closest(`[${yB}]`)&&(P.current=!0)}function Re(){pe.current="keyboard"}return we.addEventListener("pointerdown",Ye,!0),we.addEventListener("pointerup",De,!0),we.addEventListener("pointercancel",De,!0),we.addEventListener("keydown",Re,!0),()=>{we.removeEventListener("pointerdown",Ye,!0),we.removeEventListener("pointerup",De,!0),we.removeEventListener("pointercancel",De,!0),we.removeEventListener("keydown",Re,!0)}},[i,A,C,Pe,T,N]),x.useEffect(()=>{if(i||!g)return;const we=fn(Pe);function De(){P.current=!0,Ue.start(0,()=>{P.current=!1})}function Ye(Ce){const ot=qo(Ce),yt=at().indexOf(ot);yt!==-1&&(I.current=yt)}function Re(Ce){const ot=Ce.relatedTarget,gt=Ce.currentTarget,yt=qo(Ce);queueMicrotask(()=>{const ht=M(),$t=E.context.triggerElements,on=(ot==null?void 0:ot.hasAttribute(wu("focus-guard")))&&[L.current,ce.current,N==null?void 0:N.beforeInsideRef.current,N==null?void 0:N.afterInsideRef.current,N==null?void 0:N.beforeOutsideRef.current,N==null?void 0:N.afterOutsideRef.current,wi(p),wi(b)].includes(ot),bn=!(Yt(C,ot)||Yt(A,ot)||Yt(ot,A)||Yt(N==null?void 0:N.portalNode,ot)||ot!=null&&$t.hasElement(ot)||$t.hasMatchingElement(bt=>Yt(bt,ot))||on||J&&(Vl(J.nodesRef.current,ht).find(bt=>{var jt,Ft;return Yt((jt=bt.context)==null?void 0:jt.elements.floating,ot)||Yt((Ft=bt.context)==null?void 0:Ft.elements.domReference,ot)})||VD(J.nodesRef.current,ht).find(bt=>{var jt,Ft,vn;return[(jt=bt.context)==null?void 0:jt.elements.floating,bS((Ft=bt.context)==null?void 0:Ft.elements.floating)].includes(ot)||((vn=bt.context)==null?void 0:vn.elements.domReference)===ot})));if(gt===C&&Pe&&WD(Pe,_),f&>!==C&&!Q8(yt)&&xi(we)===we.body){if($n(Pe)&&(Pe.focus(),f==="popup")){ve.request(()=>{Pe.focus()});return}const bt=I.current,jt=at(),Ft=jt[bt]||jt[jt.length-1]||Pe;$n(Ft)&&Ft.focus()}if(U.current.insideReactTree){U.current.insideReactTree=!1;return}($||!h)&&ot&&bn&&!P.current&&($||ot!==A0())&&(Z.current=!0,E.setOpen(!1,yn(XN,Ce)))})}function Ae(){oe.current||(U.current.insideReactTree=!0,Te.start(0,()=>{U.current.insideReactTree=!1}))}const Le=$n(C)?C:null,tt=[];if(!(!A&&!Le))return Le&&(Le.addEventListener("focusout",Re),Le.addEventListener("pointerdown",De),tt.push(()=>{Le.removeEventListener("focusout",Re),Le.removeEventListener("pointerdown",De)})),A&&(A.addEventListener("focusin",Ye),A.addEventListener("focusout",Re),N&&(A.addEventListener("focusout",Ae,!0),tt.push(()=>{A.removeEventListener("focusout",Ae,!0)})),tt.push(()=>{A.removeEventListener("focusin",Ye),A.removeEventListener("focusout",Re)})),()=>{tt.forEach(Ce=>{Ce()})}},[i,C,A,Pe,h,J,N,E,g,f,at,$,M,_,U,Te,Ue,ve,b,p]),x.useEffect(()=>{var Ae,Le,tt;if(i||!A||!T)return;const we=Array.from(((Ae=N==null?void 0:N.portalNode)==null?void 0:Ae.querySelectorAll(`[${wu("portal")}]`))||[]),Ye=(tt=(Le=(J?VD(J.nodesRef.current,M()):[]).find(Ce=>{var ot;return BD(((ot=Ce.context)==null?void 0:ot.elements.domReference)||null)}))==null?void 0:Le.context)==null?void 0:tt.elements.domReference,Re=[A,Ye,...we,j.current,ne.current,L.current,ce.current,N==null?void 0:N.beforeOutsideRef.current,N==null?void 0:N.afterOutsideRef.current,wi(p),wi(b),$?C:null].filter(Ce=>Ce!=null);return Y8(Re,h||$)},[T,i,C,A,h,_,N,$,J,M,b,p]),pt(()=>{if(!T||i||!$n(Pe))return;const we=fn(Pe),De=xi(we);queueMicrotask(()=>{const Ye=xe(Pe),Re=z.current,Ae=typeof Re=="function"?Re(H.current||""):Re;if(Ae===void 0||Ae===!1)return;let Le;Ae===!0||Ae===null?Le=Ye[0]||Pe:Le=wi(Ae),Le=Le||Ye[0]||Pe,!Yt(Pe,De)&&O0(Le,{preventScroll:Le===Pe})})},[i,T,Pe,Y,xe,z,H]),pt(()=>{if(i||!Pe)return;const we=fn(Pe),De=xi(we);G8(De);function Ye(Le){if(Le.open||(se.current=q8(Le.nativeEvent,pe.current)),Le.reason===ea&&Le.nativeEvent.type==="mouseleave"&&(Z.current=!0),Le.reason===GN)if(Le.nested)Z.current=!1;else if(t8(Le.nativeEvent)||n8(Le.nativeEvent))Z.current=!1;else{let tt=!1;document.createElement("div").focus({get preventScroll(){return tt=!0,!1}}),tt?Z.current=!1:Z.current=!0}}k.on("openchange",Ye);const Re=we.createElement("span");Re.setAttribute("tabindex","-1"),Re.setAttribute("aria-hidden","true"),Object.assign(Re.style,XM),ze&&C&&C.insertAdjacentElement("afterend",Re);function Ae(){const Le=te.current;let tt=typeof Le=="function"?Le(se.current):Le;if(tt===void 0||tt===!1)return null;if(tt===null&&(tt=!0),typeof tt=="boolean"){const ot=C||A0();return ot&&ot.isConnected?ot:Re}const Ce=C||A0()||Re;return wi(tt)||Ce}return()=>{k.off("openchange",Ye);const Le=xi(we),tt=Yt(A,Le)||J&&Vl(J.nodesRef.current,M(),!1).some(ot=>{var gt;return Yt((gt=ot.context)==null?void 0:gt.elements.floating,Le)}),Ce=Ae();queueMicrotask(()=>{const ot=X8(Ce),gt=typeof te.current!="boolean";te.current&&!Z.current&&$n(ot)&&(!(!gt&&ot!==Le&&Le!==we.body)||tt)&&ot.focus({preventScroll:!0}),Re.remove(),Z.current=!1})}},[i,A,Pe,te,U,k,J,ze,C,M]),pt(()=>{if(!rw||T||!A)return;const we=xi(fn(A));!$n(we)||!aw(we)||Yt(A,we)&&we.blur()},[T,A]),pt(()=>{if(!(i||!N))return N.setFocusManagerState({modal:h,closeOnFocusOut:g,open:T,onOpenChange:E.setOpen,domReference:C}),()=>{N.setFocusManagerState(null)}},[i,N,h,T,E,g,C]),pt(()=>{if(!(i||!Pe))return WD(Pe,_),()=>{queueMicrotask(hw)}},[i,Pe,_]);const he=!i&&(h?!$:!0)&&(ze||h);return nn.jsxs(x.Fragment,{children:[he&&nn.jsx(jf,{"data-type":"inside",ref:ie,onFocus:we=>{var De;if(h){const Ye=xe();O0(Ye[Ye.length-1])}else if(N!=null&&N.portalNode)if(Z.current=!1,Rf(we,N.portalNode)){const Ye=jM(C);Ye==null||Ye.focus()}else(De=wi(p??N.beforeOutsideRef))==null||De.focus()}}),a,he&&nn.jsx(jf,{"data-type":"inside",ref:me,onFocus:we=>{var De;if(h)O0(xe()[0]);else if(N!=null&&N.portalNode)if(g&&(Z.current=!0),Rf(we,N.portalNode)){const Ye=HM(C);Ye==null||Ye.focus()}else(De=wi(b??N.afterOutsideRef))==null||De.focus()}})]})}function K8(o,n){let a=null,i=null,l=!1;return{contextElement:o||void 0,getBoundingClientRect(){var w;const c=(o==null?void 0:o.getBoundingClientRect())||{width:0,height:0,x:0,y:0},f=n.axis==="x"||n.axis==="both",h=n.axis==="y"||n.axis==="both",g=["mouseenter","mousemove"].includes(((w=n.dataRef.current.openEvent)==null?void 0:w.type)||"")&&n.pointerType!=="touch";let m=c.width,b=c.height,p=c.x,v=c.y;return a==null&&n.x&&f&&(a=c.x-n.x),i==null&&n.y&&h&&(i=c.y-n.y),p-=a||0,v-=i||0,m=0,b=0,!l||g?(m=n.axis==="y"?c.width:0,b=n.axis==="x"?c.height:0,p=f&&n.x!=null?n.x:p,v=h&&n.y!=null?n.y:v):l&&!g&&(b=n.axis==="x"?c.height:b,m=n.axis==="y"?c.width:m),l=!0,{width:m,height:b,x:p,y:v,top:v,right:p+m,bottom:v+b,left:p}}}}function KD(o){return o!=null&&o.clientX!=null}function J8(o,n={}){const a="rootStore"in o?o.rootStore:o,i=a.useState("open"),l=a.useState("floatingElement"),c=a.useState("domReferenceElement"),f=a.context.dataRef,{enabled:h=!0,axis:g="both"}=n,m=x.useRef(!1),b=x.useRef(null),[p,v]=x.useState(),[w,E]=x.useState([]),T=it((M,Y,$)=>{m.current||f.current.openEvent&&!KD(f.current.openEvent)||a.set("positionReference",K8($??c,{x:M,y:Y,axis:g,dataRef:f,pointerType:p}))}),C=it(M=>{i?b.current||E([]):T(M.clientX,M.clientY,M.currentTarget)}),A=Pf(p)?l:i,k=x.useCallback(()=>{if(!A||!h)return;const M=Gn(l);function Y($){const _=qo($);Yt(l,_)?(M.removeEventListener("mousemove",Y),b.current=null):T($.clientX,$.clientY)}if(!f.current.openEvent||KD(f.current.openEvent)){M.addEventListener("mousemove",Y);const $=()=>{M.removeEventListener("mousemove",Y),b.current=null};return b.current=$,$}a.set("positionReference",c)},[A,h,l,f,c,a,T]);x.useEffect(()=>k(),[k,w]),x.useEffect(()=>{h&&!l&&(m.current=!1)},[h,l]),x.useEffect(()=>{!h&&i&&(m.current=!0)},[h,i]);const U=x.useMemo(()=>{function M(Y){v(Y.pointerType)}return{onPointerDown:M,onPointerEnter:M,onMouseMove:C,onMouseEnter:C}},[C]);return x.useMemo(()=>h?{reference:U,trigger:U}:{},[h,U])}function JD(o,n,a){let{reference:i,floating:l}=o;const c=Ur(n),f=lw(n),h=sw(f),g=Xo(n),m=c==="y",b=i.x+i.width/2-l.width/2,p=i.y+i.height/2-l.height/2,v=i[h]/2-l[h]/2;let w;switch(g){case"top":w={x:b,y:i.y-l.height};break;case"bottom":w={x:b,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:p};break;case"left":w={x:i.x-l.width,y:p};break;default:w={x:i.x,y:i.y}}switch(Hs(n)){case"start":w[f]-=v*(a&&m?-1:1);break;case"end":w[f]+=v*(a&&m?-1:1);break}return w}async function Z8(o,n){var a;n===void 0&&(n={});const{x:i,y:l,platform:c,rects:f,elements:h,strategy:g}=o,{boundary:m="clippingAncestors",rootBoundary:b="viewport",elementContext:p="floating",altBoundary:v=!1,padding:w=0}=Ai(n,o),E=AM(w),C=h[v?p==="floating"?"reference":"floating":p],A=Km(await c.getClippingRect({element:(a=await(c.isElement==null?void 0:c.isElement(C)))==null||a?C:C.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(h.floating)),boundary:m,rootBoundary:b,strategy:g})),k=p==="floating"?{x:i,y:l,width:f.floating.width,height:f.floating.height}:f.reference,U=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h.floating)),M=await(c.isElement==null?void 0:c.isElement(U))?await(c.getScale==null?void 0:c.getScale(U))||{x:1,y:1}:{x:1,y:1},Y=Km(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:k,offsetParent:U,strategy:g}):k);return{top:(A.top-Y.top+E.top)/M.y,bottom:(Y.bottom-A.bottom+E.bottom)/M.y,left:(A.left-Y.left+E.left)/M.x,right:(Y.right-A.right+E.right)/M.x}}const eV=async(o,n,a)=>{const{placement:i="bottom",strategy:l="absolute",middleware:c=[],platform:f}=a,h=c.filter(Boolean),g=await(f.isRTL==null?void 0:f.isRTL(n));let m=await f.getElementRects({reference:o,floating:n,strategy:l}),{x:b,y:p}=JD(m,i,g),v=i,w={},E=0;for(let C=0;C<h.length;C++){var T;const{name:A,fn:k}=h[C],{x:U,y:M,data:Y,reset:$}=await k({x:b,y:p,initialPlacement:i,placement:v,strategy:l,middlewareData:w,rects:m,platform:{...f,detectOverflow:(T=f.detectOverflow)!=null?T:Z8},elements:{reference:o,floating:n}});b=U??b,p=M??p,w={...w,[A]:{...w[A],...Y}},$&&E<=50&&(E++,typeof $=="object"&&($.placement&&(v=$.placement),$.rects&&(m=$.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:l}):$.rects),{x:b,y:p}=JD(m,v,g)),C=-1)}return{x:b,y:p,placement:v,strategy:l,middlewareData:w}},tV=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var a,i;const{placement:l,middlewareData:c,rects:f,initialPlacement:h,platform:g,elements:m}=n,{mainAxis:b=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...C}=Ai(o,n);if((a=c.arrow)!=null&&a.alignmentOffset)return{};const A=Xo(l),k=Ur(h),U=Xo(h)===h,M=await(g.isRTL==null?void 0:g.isRTL(m.floating)),Y=v||(U||!T?[Wm(h)]:c8(h)),$=E!=="none";!v&&$&&Y.push(...h8(h,T,E,M));const _=[h,...Y],z=await g.detectOverflow(n,C),te=[];let H=((i=c.flip)==null?void 0:i.overflows)||[];if(b&&te.push(z[A]),p){const ne=l8(l,f,M);te.push(z[ne[0]],z[ne[1]])}if(H=[...H,{placement:l,overflows:te}],!te.every(ne=>ne<=0)){var J,N;const ne=(((J=c.flip)==null?void 0:J.index)||0)+1,Z=_[ne];if(Z&&(!(p==="alignment"?k!==Ur(Z):!1)||H.every(I=>Ur(I.placement)===k?I.overflows[0]>0:!0)))return{data:{index:ne,overflows:H},reset:{placement:Z}};let P=(N=H.filter(oe=>oe.overflows[0]<=0).sort((oe,I)=>oe.overflows[1]-I.overflows[1])[0])==null?void 0:N.placement;if(!P)switch(w){case"bestFit":{var j;const oe=(j=H.filter(I=>{if($){const se=Ur(I.placement);return se===k||se==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(se=>se>0).reduce((se,pe)=>se+pe,0)]).sort((I,se)=>I[1]-se[1])[0])==null?void 0:j[0];oe&&(P=oe);break}case"initialPlacement":P=h;break}if(l!==P)return{reset:{placement:P}}}return{}}}};function ZD(o,n){return{top:o.top-n.height,right:o.right-n.width,bottom:o.bottom-n.height,left:o.left-n.width}}function eA(o){return r8.some(n=>o[n]>=0)}const nV=function(o){return o===void 0&&(o={}),{name:"hide",options:o,async fn(n){const{rects:a,platform:i}=n,{strategy:l="referenceHidden",...c}=Ai(o,n);switch(l){case"referenceHidden":{const f=await i.detectOverflow(n,{...c,elementContext:"reference"}),h=ZD(f,a.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:eA(h)}}}case"escaped":{const f=await i.detectOverflow(n,{...c,altBoundary:!0}),h=ZD(f,a.floating);return{data:{escapedOffsets:h,escaped:eA(h)}}}default:return{}}}}},ZM=new Set(["left","top"]);async function oV(o,n){const{placement:a,platform:i,elements:l}=o,c=await(i.isRTL==null?void 0:i.isRTL(l.floating)),f=Xo(a),h=Hs(a),g=Ur(a)==="y",m=ZM.has(f)?-1:1,b=c&&g?-1:1,p=Ai(n,o);let{mainAxis:v,crossAxis:w,alignmentAxis:E}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return h&&typeof E=="number"&&(w=h==="end"?E*-1:E),g?{x:w*b,y:v*m}:{x:v*m,y:w*b}}const rV=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var a,i;const{x:l,y:c,placement:f,middlewareData:h}=n,g=await oV(n,o);return f===((a=h.offset)==null?void 0:a.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:l+g.x,y:c+g.y,data:{...g,placement:f}}}}},aV=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:a,y:i,placement:l,platform:c}=n,{mainAxis:f=!0,crossAxis:h=!1,limiter:g={fn:A=>{let{x:k,y:U}=A;return{x:k,y:U}}},...m}=Ai(o,n),b={x:a,y:i},p=await c.detectOverflow(n,m),v=Ur(Xo(l)),w=iw(v);let E=b[w],T=b[v];if(f){const A=w==="y"?"top":"left",k=w==="y"?"bottom":"right",U=E+p[A],M=E-p[k];E=vS(U,E,M)}if(h){const A=v==="y"?"top":"left",k=v==="y"?"bottom":"right",U=T+p[A],M=T-p[k];T=vS(U,T,M)}const C=g.fn({...n,[w]:E,[v]:T});return{...C,data:{x:C.x-a,y:C.y-i,enabled:{[w]:f,[v]:h}}}}}},iV=function(o){return o===void 0&&(o={}),{options:o,fn(n){const{x:a,y:i,placement:l,rects:c,middlewareData:f}=n,{offset:h=0,mainAxis:g=!0,crossAxis:m=!0}=Ai(o,n),b={x:a,y:i},p=Ur(l),v=iw(p);let w=b[v],E=b[p];const T=Ai(h,n),C=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(g){const U=v==="y"?"height":"width",M=c.reference[v]-c.floating[U]+C.mainAxis,Y=c.reference[v]+c.reference[U]-C.mainAxis;w<M?w=M:w>Y&&(w=Y)}if(m){var A,k;const U=v==="y"?"width":"height",M=ZM.has(Xo(l)),Y=c.reference[p]-c.floating[U]+(M&&((A=f.offset)==null?void 0:A[p])||0)+(M?0:C.crossAxis),$=c.reference[p]+c.reference[U]+(M?0:((k=f.offset)==null?void 0:k[p])||0)-(M?C.crossAxis:0);E<Y?E=Y:E>$&&(E=$)}return{[v]:w,[p]:E}}}},sV=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(n){var a,i;const{placement:l,rects:c,platform:f,elements:h}=n,{apply:g=()=>{},...m}=Ai(o,n),b=await f.detectOverflow(n,m),p=Xo(l),v=Hs(l),w=Ur(l)==="y",{width:E,height:T}=c.floating;let C,A;p==="top"||p==="bottom"?(C=p,A=v===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(A=p,C=v==="end"?"top":"bottom");const k=T-b.top-b.bottom,U=E-b.left-b.right,M=vu(T-b[C],k),Y=vu(E-b[A],U),$=!n.middlewareData.shift;let _=M,z=Y;if((a=n.middlewareData.shift)!=null&&a.enabled.x&&(z=U),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(_=k),$&&!v){const H=fr(b.left,0),J=fr(b.right,0),N=fr(b.top,0),j=fr(b.bottom,0);w?z=E-2*(H!==0||J!==0?H+J:fr(b.left,b.right)):_=T-2*(N!==0||j!==0?N+j:fr(b.top,b.bottom))}await g({...n,availableWidth:z,availableHeight:_});const te=await f.getDimensions(h.floating);return E!==te.width||T!==te.height?{reset:{rects:!0}}:{}}}};function e_(o){const n=mr(o);let a=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const l=$n(o),c=l?o.offsetWidth:a,f=l?o.offsetHeight:i,h=Qm(a)!==c||Qm(i)!==f;return h&&(a=c,i=f),{width:a,height:i,$:h}}function pw(o){return qt(o)?o:o.contextElement}function au(o){const n=pw(o);if(!$n(n))return Ba(1);const a=n.getBoundingClientRect(),{width:i,height:l,$:c}=e_(n);let f=(c?Qm(a.width):a.width)/i,h=(c?Qm(a.height):a.height)/l;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const lV=Ba(0);function t_(o){const n=Gn(o);return!gg()||!n.visualViewport?lV:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function cV(o,n,a){return n===void 0&&(n=!1),!a||n&&a!==Gn(o)?!1:n}function ql(o,n,a,i){n===void 0&&(n=!1),a===void 0&&(a=!1);const l=o.getBoundingClientRect(),c=pw(o);let f=Ba(1);n&&(i?qt(i)&&(f=au(i)):f=au(o));const h=cV(c,a,i)?t_(c):Ba(0);let g=(l.left+h.x)/f.x,m=(l.top+h.y)/f.y,b=l.width/f.x,p=l.height/f.y;if(c){const v=Gn(c),w=i&&qt(i)?Gn(i):i;let E=v,T=fS(E);for(;T&&i&&w!==E;){const C=au(T),A=T.getBoundingClientRect(),k=mr(T),U=A.left+(T.clientLeft+parseFloat(k.paddingLeft))*C.x,M=A.top+(T.clientTop+parseFloat(k.paddingTop))*C.y;g*=C.x,m*=C.y,b*=C.x,p*=C.y,g+=U,m+=M,E=Gn(T),T=fS(E)}}return Km({width:b,height:p,x:g,y:m})}function vg(o,n){const a=yg(o).scrollLeft;return n?n.left+a:ql(Ya(o)).left+a}function n_(o,n){const a=o.getBoundingClientRect(),i=a.left+n.scrollLeft-vg(o,a),l=a.top+n.scrollTop;return{x:i,y:l}}function uV(o){let{elements:n,rect:a,offsetParent:i,strategy:l}=o;const c=l==="fixed",f=Ya(i),h=n?mg(n.floating):!1;if(i===f||h&&c)return a;let g={scrollLeft:0,scrollTop:0},m=Ba(1);const b=Ba(0),p=$n(i);if((p||!p&&!c)&&((Ps(i)!=="body"||js(f))&&(g=yg(i)),$n(i))){const w=ql(i);m=au(i),b.x=w.x+i.clientLeft,b.y=w.y+i.clientTop}const v=f&&!p&&!c?n_(f,g):Ba(0);return{width:a.width*m.x,height:a.height*m.y,x:a.x*m.x-g.scrollLeft*m.x+b.x+v.x,y:a.y*m.y-g.scrollTop*m.y+b.y+v.y}}function dV(o){return Array.from(o.getClientRects())}function fV(o){const n=Ya(o),a=yg(o),i=o.ownerDocument.body,l=fr(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),c=fr(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let f=-a.scrollLeft+vg(o);const h=-a.scrollTop;return mr(i).direction==="rtl"&&(f+=fr(n.clientWidth,i.clientWidth)-l),{width:l,height:c,x:f,y:h}}const tA=25;function hV(o,n){const a=Gn(o),i=Ya(o),l=a.visualViewport;let c=i.clientWidth,f=i.clientHeight,h=0,g=0;if(l){c=l.width,f=l.height;const b=gg();(!b||b&&n==="fixed")&&(h=l.offsetLeft,g=l.offsetTop)}const m=vg(i);if(m<=0){const b=i.ownerDocument,p=b.body,v=getComputedStyle(p),w=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,E=Math.abs(i.clientWidth-p.clientWidth-w);E<=tA&&(c-=E)}else m<=tA&&(c+=m);return{width:c,height:f,x:h,y:g}}const pV=new Set(["absolute","fixed"]);function mV(o,n){const a=ql(o,!0,n==="fixed"),i=a.top+o.clientTop,l=a.left+o.clientLeft,c=$n(o)?au(o):Ba(1),f=o.clientWidth*c.x,h=o.clientHeight*c.y,g=l*c.x,m=i*c.y;return{width:f,height:h,x:g,y:m}}function nA(o,n,a){let i;if(n==="viewport")i=hV(o,a);else if(n==="document")i=fV(Ya(o));else if(qt(n))i=mV(n,a);else{const l=t_(o);i={x:n.x-l.x,y:n.y-l.y,width:n.width,height:n.height}}return Km(i)}function o_(o,n){const a=Oi(o);return a===n||!qt(a)||Ci(a)?!1:mr(a).position==="fixed"||o_(a,n)}function gV(o,n){const a=n.get(o);if(a)return a;let i=Ls(o,[],!1).filter(h=>qt(h)&&Ps(h)!=="body"),l=null;const c=mr(o).position==="fixed";let f=c?Oi(o):o;for(;qt(f)&&!Ci(f);){const h=mr(f),g=ZS(f);!g&&h.position==="fixed"&&(l=null),(c?!g&&!l:!g&&h.position==="static"&&!!l&&pV.has(l.position)||js(f)&&!g&&o_(o,f))?i=i.filter(b=>b!==f):l=h,f=Oi(f)}return n.set(o,i),i}function yV(o){let{element:n,boundary:a,rootBoundary:i,strategy:l}=o;const f=[...a==="clippingAncestors"?mg(n)?[]:gV(n,this._c):[].concat(a),i],h=f[0],g=f.reduce((m,b)=>{const p=nA(n,b,l);return m.top=fr(p.top,m.top),m.right=vu(p.right,m.right),m.bottom=vu(p.bottom,m.bottom),m.left=fr(p.left,m.left),m},nA(n,h,l));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function bV(o){const{width:n,height:a}=e_(o);return{width:n,height:a}}function vV(o,n,a){const i=$n(n),l=Ya(n),c=a==="fixed",f=ql(o,!0,c,n);let h={scrollLeft:0,scrollTop:0};const g=Ba(0);function m(){g.x=vg(l)}if(i||!i&&!c)if((Ps(n)!=="body"||js(l))&&(h=yg(n)),i){const w=ql(n,!0,c,n);g.x=w.x+n.clientLeft,g.y=w.y+n.clientTop}else l&&m();c&&!i&&l&&m();const b=l&&!i&&!c?n_(l,h):Ba(0),p=f.left+h.scrollLeft-g.x-b.x,v=f.top+h.scrollTop-g.y-b.y;return{x:p,y:v,width:f.width,height:f.height}}function N0(o){return mr(o).position==="static"}function oA(o,n){if(!$n(o)||mr(o).position==="fixed")return null;if(n)return n(o);let a=o.offsetParent;return Ya(o)===a&&(a=a.ownerDocument.body),a}function r_(o,n){const a=Gn(o);if(mg(o))return a;if(!$n(o)){let l=Oi(o);for(;l&&!Ci(l);){if(qt(l)&&!N0(l))return l;l=Oi(l)}return a}let i=oA(o,n);for(;i&&BB(i)&&N0(i);)i=oA(i,n);return i&&Ci(i)&&N0(i)&&!ZS(i)?a:i||qB(o)||a}const SV=async function(o){const n=this.getOffsetParent||r_,a=this.getDimensions,i=await a(o.floating);return{reference:vV(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function wV(o){return mr(o).direction==="rtl"}const EV={convertOffsetParentRelativeRectToViewportRelativeRect:uV,getDocumentElement:Ya,getClippingRect:yV,getOffsetParent:r_,getElementRects:SV,getClientRects:dV,getDimensions:bV,getScale:au,isElement:qt,isRTL:wV};function a_(o,n){return o.x===n.x&&o.y===n.y&&o.width===n.width&&o.height===n.height}function xV(o,n){let a=null,i;const l=Ya(o);function c(){var h;clearTimeout(i),(h=a)==null||h.disconnect(),a=null}function f(h,g){h===void 0&&(h=!1),g===void 0&&(g=1),c();const m=o.getBoundingClientRect(),{left:b,top:p,width:v,height:w}=m;if(h||n(),!v||!w)return;const E=Tm(p),T=Tm(l.clientWidth-(b+v)),C=Tm(l.clientHeight-(p+w)),A=Tm(b),U={rootMargin:-E+"px "+-T+"px "+-C+"px "+-A+"px",threshold:fr(0,vu(1,g))||1};let M=!0;function Y($){const _=$[0].intersectionRatio;if(_!==g){if(!M)return f();_?f(!1,_):i=setTimeout(()=>{f(!1,1e-7)},1e3)}_===1&&!a_(m,o.getBoundingClientRect())&&f(),M=!1}try{a=new IntersectionObserver(Y,{...U,root:l.ownerDocument})}catch{a=new IntersectionObserver(Y,U)}a.observe(o)}return f(!0),c}function rA(o,n,a,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:g=!1}=i,m=pw(o),b=l||c?[...m?Ls(m):[],...Ls(n)]:[];b.forEach(A=>{l&&A.addEventListener("scroll",a,{passive:!0}),c&&A.addEventListener("resize",a)});const p=m&&h?xV(m,a):null;let v=-1,w=null;f&&(w=new ResizeObserver(A=>{let[k]=A;k&&k.target===m&&w&&(w.unobserve(n),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var U;(U=w)==null||U.observe(n)})),a()}),m&&!g&&w.observe(m),w.observe(n));let E,T=g?ql(o):null;g&&C();function C(){const A=ql(o);T&&!a_(T,A)&&a(),T=A,E=requestAnimationFrame(C)}return a(),()=>{var A;b.forEach(k=>{l&&k.removeEventListener("scroll",a),c&&k.removeEventListener("resize",a)}),p==null||p(),(A=w)==null||A.disconnect(),w=null,g&&cancelAnimationFrame(E)}}const RV=rV,TV=aV,CV=tV,OV=sV,DV=nV,AV=iV,NV=(o,n,a)=>{const i=new Map,l={platform:EV,...a},c={...l.platform,_c:i};return eV(o,n,{...l,platform:c})};var MV=typeof document<"u",_V=function(){},Im=MV?x.useLayoutEffect:_V;function og(o,n){if(o===n)return!0;if(typeof o!=typeof n)return!1;if(typeof o=="function"&&o.toString()===n.toString())return!0;let a,i,l;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(a=o.length,a!==n.length)return!1;for(i=a;i--!==0;)if(!og(o[i],n[i]))return!1;return!0}if(l=Object.keys(o),a=l.length,a!==Object.keys(n).length)return!1;for(i=a;i--!==0;)if(!{}.hasOwnProperty.call(n,l[i]))return!1;for(i=a;i--!==0;){const c=l[i];if(!(c==="_owner"&&o.$$typeof)&&!og(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function i_(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function aA(o,n){const a=i_(o);return Math.round(n*a)/a}function M0(o){const n=x.useRef(o);return Im(()=>{n.current=o}),n}function kV(o){o===void 0&&(o={});const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:l,elements:{reference:c,floating:f}={},transform:h=!0,whileElementsMounted:g,open:m}=o,[b,p]=x.useState({x:0,y:0,strategy:a,placement:n,middlewareData:{},isPositioned:!1}),[v,w]=x.useState(i);og(v,i)||w(i);const[E,T]=x.useState(null),[C,A]=x.useState(null),k=x.useCallback(I=>{I!==$.current&&($.current=I,T(I))},[]),U=x.useCallback(I=>{I!==_.current&&(_.current=I,A(I))},[]),M=c||E,Y=f||C,$=x.useRef(null),_=x.useRef(null),z=x.useRef(b),te=g!=null,H=M0(g),J=M0(l),N=M0(m),j=x.useCallback(()=>{if(!$.current||!_.current)return;const I={placement:n,strategy:a,middleware:v};J.current&&(I.platform=J.current),NV($.current,_.current,I).then(se=>{const pe={...se,isPositioned:N.current!==!1};ne.current&&!og(z.current,pe)&&(z.current=pe,zs.flushSync(()=>{p(pe)}))})},[v,n,a,J,N]);Im(()=>{m===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[m]);const ne=x.useRef(!1);Im(()=>(ne.current=!0,()=>{ne.current=!1}),[]),Im(()=>{if(M&&($.current=M),Y&&(_.current=Y),M&&Y){if(H.current)return H.current(M,Y,j);j()}},[M,Y,j,H,te]);const Z=x.useMemo(()=>({reference:$,floating:_,setReference:k,setFloating:U}),[k,U]),P=x.useMemo(()=>({reference:M,floating:Y}),[M,Y]),oe=x.useMemo(()=>{const I={position:a,left:0,top:0};if(!P.floating)return I;const se=aA(P.floating,b.x),pe=aA(P.floating,b.y);return h?{...I,transform:"translate("+se+"px, "+pe+"px)",...i_(P.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:se,top:pe}},[a,h,P.floating,b.x,b.y]);return x.useMemo(()=>({...b,update:j,refs:Z,elements:P,floatingStyles:oe}),[b,j,Z,P,oe])}const LV=(o,n)=>({...RV(o),options:[o,n]}),UV=(o,n)=>({...TV(o),options:[o,n]}),zV=(o,n)=>({...AV(o),options:[o,n]}),PV=(o,n)=>({...CV(o),options:[o,n]}),jV=(o,n)=>({...OV(o),options:[o,n]}),HV=(o,n)=>({...DV(o),options:[o,n]}),IV={intentional:"onClick",sloppy:"onPointerDown"};function BV(o){return{escapeKey:typeof o=="boolean"?o:(o==null?void 0:o.escapeKey)??!1,outsidePress:typeof o=="boolean"?o:(o==null?void 0:o.outsidePress)??!0}}function s_(o,n={}){const a="rootStore"in o?o.rootStore:o,i=a.useState("open"),l=a.useState("floatingElement"),c=a.useState("referenceElement"),f=a.useState("domReferenceElement"),{onOpenChange:h,dataRef:g}=a.context,{enabled:m=!0,escapeKey:b=!0,outsidePress:p=!0,outsidePressEvent:v="sloppy",referencePress:w=!1,referencePressEvent:E="sloppy",ancestorScroll:T=!1,bubbles:C,externalTree:A}=n,k=Du(A),U=it(typeof p=="function"?p:()=>!1),M=typeof p=="function"?U:p,Y=x.useRef(!1),{escapeKey:$,outsidePress:_}=BV(C),z=x.useRef(null),te=Di(),H=Di(),J=it(()=>{H.clear(),g.current.insideReactTree=!1}),N=x.useRef(!1),j=x.useRef(""),ne=it(he=>{j.current=he.pointerType}),Z=it(()=>{const he=j.current,we=he==="pen"||!he?"mouse":he,De=typeof v=="function"?v():v;return typeof De=="string"?De:De[we]}),P=it(he=>{var Ae;if(!i||!m||!b||he.key!=="Escape"||N.current)return;const we=(Ae=g.current.floatingContext)==null?void 0:Ae.nodeId,De=k?Vl(k.nodesRef.current,we):[];if(!$&&De.length>0){let Le=!0;if(De.forEach(tt=>{var Ce;(Ce=tt.context)!=null&&Ce.open&&!tt.context.dataRef.current.__escapeKeyBubbles&&(Le=!1)}),!Le)return}const Ye=e8(he)?he.nativeEvent:he,Re=yn(QS,Ye);a.setOpen(!1,Re),!$&&!Re.isPropagationAllowed&&he.stopPropagation()}),oe=it(he=>{const we=Z();return we==="intentional"&&he.type!=="click"||we==="sloppy"&&he.type==="click"}),I=it(()=>{g.current.insideReactTree=!0,H.start(0,J)}),se=it((he,we=!1)=>{var gt;if(oe(he)){J();return}if(g.current.insideReactTree){J();return}if(Z()==="intentional"&&we||typeof M=="function"&&!M(he))return;const De=qo(he),Ye=`[${wu("inert")}]`,Re=fn(a.select("floatingElement")).querySelectorAll(Ye),Ae=a.context.triggerElements;if(De&&(Ae.hasElement(De)||Ae.hasMatchingElement(yt=>Yt(yt,De))))return;let Le=qt(De)?De:null;for(;Le&&!Ci(Le);){const yt=Oi(Le);if(Ci(yt)||!qt(yt))break;Le=yt}if(Re.length&&qt(De)&&!K6(De)&&!Yt(De,a.select("floatingElement"))&&Array.from(Re).every(yt=>!Yt(Le,yt)))return;if($n(De)&&!("touches"in he)){const yt=Ci(De),ht=mr(De),$t=/auto|scroll/,on=yt||$t.test(ht.overflowX),bn=yt||$t.test(ht.overflowY),bt=on&&De.clientWidth>0&&De.scrollWidth>De.clientWidth,jt=bn&&De.clientHeight>0&&De.scrollHeight>De.clientHeight,Ft=ht.direction==="rtl",vn=jt&&(Ft?he.offsetX<=De.offsetWidth-De.clientWidth:he.offsetX>De.clientWidth),ln=bt&&he.offsetY>De.clientHeight;if(vn||ln)return}const tt=(gt=g.current.floatingContext)==null?void 0:gt.nodeId,Ce=k&&Vl(k.nodesRef.current,tt).some(yt=>{var ht;return Kr(he,(ht=yt.context)==null?void 0:ht.elements.floating)});if(Kr(he,a.select("floatingElement"))||Kr(he,a.select("domReferenceElement"))||Ce)return;const ot=k?Vl(k.nodesRef.current,tt):[];if(ot.length>0){let yt=!0;if(ot.forEach(ht=>{var $t;($t=ht.context)!=null&&$t.open&&!ht.context.dataRef.current.__outsidePressBubbles&&(yt=!1)}),!yt)return}a.setOpen(!1,yn(GN,he)),J()}),pe=it(he=>{Z()!=="sloppy"||he.pointerType==="touch"||!a.select("open")||!m||Kr(he,a.select("floatingElement"))||Kr(he,a.select("domReferenceElement"))||se(he)}),L=it(he=>{if(Z()!=="sloppy"||!a.select("open")||!m||Kr(he,a.select("floatingElement"))||Kr(he,a.select("domReferenceElement")))return;const we=he.touches[0];we&&(z.current={startTime:Date.now(),startX:we.clientX,startY:we.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},te.start(1e3,()=>{z.current&&(z.current.dismissOnTouchEnd=!1,z.current.dismissOnMouseDown=!1)}))}),ce=it(he=>{const we=qo(he);function De(){L(he),we==null||we.removeEventListener(he.type,De)}we==null||we.addEventListener(he.type,De)}),ie=it(he=>{const we=Y.current;if(Y.current=!1,te.clear(),he.type==="mousedown"&&z.current&&!z.current.dismissOnMouseDown)return;const De=qo(he);function Ye(){he.type==="pointerdown"?pe(he):se(he,we),De==null||De.removeEventListener(he.type,Ye)}De==null||De.addEventListener(he.type,Ye)}),me=it(he=>{if(Z()!=="sloppy"||!z.current||Kr(he,a.select("floatingElement"))||Kr(he,a.select("domReferenceElement")))return;const we=he.touches[0];if(!we)return;const De=Math.abs(we.clientX-z.current.startX),Ye=Math.abs(we.clientY-z.current.startY),Re=Math.sqrt(De*De+Ye*Ye);Re>5&&(z.current.dismissOnTouchEnd=!0),Re>10&&(se(he),te.clear(),z.current=null)}),Te=it(he=>{const we=qo(he);function De(){me(he),we==null||we.removeEventListener(he.type,De)}we==null||we.addEventListener(he.type,De)}),Ue=it(he=>{Z()!=="sloppy"||!z.current||Kr(he,a.select("floatingElement"))||Kr(he,a.select("domReferenceElement"))||(z.current.dismissOnTouchEnd&&se(he),te.clear(),z.current=null)}),ve=it(he=>{const we=qo(he);function De(){Ue(he),we==null||we.removeEventListener(he.type,De)}we==null||we.addEventListener(he.type,De)});x.useEffect(()=>{if(!i||!m)return;g.current.__escapeKeyBubbles=$,g.current.__outsidePressBubbles=_;const he=new Fa;function we(Le){a.setOpen(!1,yn(fg,Le))}function De(){he.clear(),N.current=!0}function Ye(){he.start(gg()?5:0,()=>{N.current=!1})}const Re=fn(l);Re.addEventListener("pointerdown",ne,!0),b&&(Re.addEventListener("keydown",P),Re.addEventListener("compositionstart",De),Re.addEventListener("compositionend",Ye)),M&&(Re.addEventListener("click",ie,!0),Re.addEventListener("pointerdown",ie,!0),Re.addEventListener("touchstart",ce,!0),Re.addEventListener("touchmove",Te,!0),Re.addEventListener("touchend",ve,!0),Re.addEventListener("mousedown",ie,!0));let Ae=[];return T&&(qt(f)&&(Ae=Ls(f)),qt(l)&&(Ae=Ae.concat(Ls(l))),!qt(c)&&c&&c.contextElement&&(Ae=Ae.concat(Ls(c.contextElement)))),Ae=Ae.filter(Le=>{var tt;return Le!==((tt=Re.defaultView)==null?void 0:tt.visualViewport)}),Ae.forEach(Le=>{Le.addEventListener("scroll",we,{passive:!0})}),()=>{Re.removeEventListener("pointerdown",ne,!0),b&&(Re.removeEventListener("keydown",P),Re.removeEventListener("compositionstart",De),Re.removeEventListener("compositionend",Ye)),M&&(Re.removeEventListener("click",ie,!0),Re.removeEventListener("pointerdown",ie,!0),Re.removeEventListener("touchstart",ce,!0),Re.removeEventListener("touchmove",Te,!0),Re.removeEventListener("touchend",ve,!0),Re.removeEventListener("mousedown",ie,!0)),Ae.forEach(Le=>{Le.removeEventListener("scroll",we)}),he.clear(),Y.current=!1}},[g,l,c,f,b,M,i,h,T,m,$,_,P,se,ie,pe,ce,Te,ve,ne,a]),x.useEffect(J,[M,J]);const ze=x.useMemo(()=>({onKeyDown:P,...w&&{[IV[E]]:he=>{a.setOpen(!1,yn(zf,he.nativeEvent))},...E!=="intentional"&&{onClick(he){a.setOpen(!1,yn(zf,he.nativeEvent))}}}}),[P,a,w,E]),Pe=it(he=>{const we=qo(he.nativeEvent);!Yt(a.select("floatingElement"),we)||he.button!==0||(Y.current=!0)}),at=it(he=>{!i||!m||he.button!==0||(Y.current=!0)}),xe=x.useMemo(()=>({onKeyDown:P,onPointerDown:Pe,onMouseDown:Pe,onMouseUp:Pe,onClickCapture:I,onMouseDownCapture(he){I(),at(he)},onPointerDownCapture(he){I(),at(he)},onMouseUpCapture:I,onTouchEndCapture:I,onTouchMoveCapture:I}),[P,Pe,I,at]);return x.useMemo(()=>m?{reference:ze,floating:xe,trigger:ze}:{},[m,ze,xe])}var VV=(o,n,a)=>{if(n.length===1&&n[0]===a){let i=!1;try{const l={};o(l)===l&&(i=!0)}catch{}if(i){let l;try{throw new Error}catch(c){({stack:l}=c)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
424
|
-
\`createSelector([state => state.todos], todos => todos)\`
|
|
425
|
-
This could lead to inefficient memoization and unnecessary re-renders.
|
|
426
|
-
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:l})}}},FV=(o,n,a)=>{const{memoize:i,memoizeOptions:l}=n,{inputSelectorResults:c,inputSelectorResultsCopy:f}=o,h=i(()=>({}),...l);if(!(h.apply(null,c)===h.apply(null,f))){let m;try{throw new Error}catch(b){({stack:m}=b)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
427
|
-
This means your output selector will likely run more frequently than intended.
|
|
428
|
-
Avoid returning a new reference inside your input selector, e.g.
|
|
429
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:a,firstInputs:c,secondInputs:f,stack:m})}},YV={inputStabilityCheck:"once",identityFunctionCheck:"once"},rg=Symbol("NOT_FOUND");function $V(o,n=`expected a function, instead received ${typeof o}`){if(typeof o!="function")throw new TypeError(n)}function qV(o,n=`expected an object, instead received ${typeof o}`){if(typeof o!="object")throw new TypeError(n)}function GV(o,n="expected all items to be functions, instead received the following types: "){if(!o.every(a=>typeof a=="function")){const a=o.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${n}[${a}]`)}}var iA=o=>Array.isArray(o)?o:[o];function XV(o){const n=Array.isArray(o[0])?o[0]:o;return GV(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function sA(o,n){const a=[],{length:i}=o;for(let l=0;l<i;l++)a.push(o[l].apply(null,n));return a}var QV=(o,n)=>{const{identityFunctionCheck:a,inputStabilityCheck:i}={...YV,...n};return{identityFunctionCheck:{shouldRun:a==="always"||a==="once"&&o,run:VV},inputStabilityCheck:{shouldRun:i==="always"||i==="once"&&o,run:FV}}};function WV(o){let n;return{get(a){return n&&o(n.key,a)?n.value:rg},put(a,i){n={key:a,value:i}},getEntries(){return n?[n]:[]},clear(){n=void 0}}}function KV(o,n){let a=[];function i(h){const g=a.findIndex(m=>n(h,m.key));if(g>-1){const m=a[g];return g>0&&(a.splice(g,1),a.unshift(m)),m.value}return rg}function l(h,g){i(h)===rg&&(a.unshift({key:h,value:g}),a.length>o&&a.pop())}function c(){return a}function f(){a=[]}return{get:i,put:l,getEntries:c,clear:f}}var JV=(o,n)=>o===n;function ZV(o){return function(a,i){if(a===null||i===null||a.length!==i.length)return!1;const{length:l}=a;for(let c=0;c<l;c++)if(!o(a[c],i[c]))return!1;return!0}}function eF(o,n){const a=typeof n=="object"?n:{equalityCheck:n},{equalityCheck:i=JV,maxSize:l=1,resultEqualityCheck:c}=a,f=ZV(i);let h=0;const g=l<=1?WV(f):KV(l,f);function m(){let b=g.get(arguments);if(b===rg){if(b=o.apply(null,arguments),h++,c){const v=g.getEntries().find(w=>c(w.value,b));v&&(b=v.value,h!==0&&h--)}g.put(arguments,b)}return b}return m.clearCache=()=>{g.clear(),m.resetResultsCount()},m.resultsCount=()=>h,m.resetResultsCount=()=>{h=0},m}var tF=class{constructor(o){this.value=o}deref(){return this.value}},nF=typeof WeakRef<"u"?WeakRef:tF,oF=0,lA=1;function Dm(){return{s:oF,v:void 0,o:null,p:null}}function l_(o,n={}){let a=Dm();const{resultEqualityCheck:i}=n;let l,c=0;function f(){var p;let h=a;const{length:g}=arguments;for(let v=0,w=g;v<w;v++){const E=arguments[v];if(typeof E=="function"||typeof E=="object"&&E!==null){let T=h.o;T===null&&(h.o=T=new WeakMap);const C=T.get(E);C===void 0?(h=Dm(),T.set(E,h)):h=C}else{let T=h.p;T===null&&(h.p=T=new Map);const C=T.get(E);C===void 0?(h=Dm(),T.set(E,h)):h=C}}const m=h;let b;if(h.s===lA)b=h.v;else if(b=o.apply(null,arguments),c++,i){const v=((p=l==null?void 0:l.deref)==null?void 0:p.call(l))??l;v!=null&&i(v,b)&&(b=v,c!==0&&c--),l=typeof b=="object"&&b!==null||typeof b=="function"?new nF(b):b}return m.s=lA,m.v=b,b}return f.clearCache=()=>{a=Dm(),f.resetResultsCount()},f.resultsCount=()=>c,f.resetResultsCount=()=>{c=0},f}function c_(o,...n){const a=typeof o=="function"?{memoize:o,memoizeOptions:n}:o,i=(...l)=>{let c=0,f=0,h,g={},m=l.pop();typeof m=="object"&&(g=m,m=l.pop()),$V(m,`createSelector expects an output function after the inputs, but received: [${typeof m}]`);const b={...a,...g},{memoize:p,memoizeOptions:v=[],argsMemoize:w=l_,argsMemoizeOptions:E=[],devModeChecks:T={}}=b,C=iA(v),A=iA(E),k=XV(l),U=p(function(){return c++,m.apply(null,arguments)},...C);let M=!0;const Y=w(function(){f++;const _=sA(k,arguments);h=U.apply(null,_);{const{identityFunctionCheck:z,inputStabilityCheck:te}=QV(M,T);if(z.shouldRun&&z.run(m,_,h),te.shouldRun){const H=sA(k,arguments);te.run({inputSelectorResults:_,inputSelectorResultsCopy:H},{memoize:p,memoizeOptions:C},arguments)}M&&(M=!1)}return h},...A);return Object.assign(Y,{resultFunc:m,memoizedResultFunc:U,dependencies:k,dependencyRecomputations:()=>f,resetDependencyRecomputations:()=>{f=0},lastResult:()=>h,recomputations:()=>c,resetRecomputations:()=>{c=0},memoize:p,argsMemoize:w})};return Object.assign(i,{withTypes:()=>i}),i}var rF=c_(l_),aF=Object.assign((o,n=rF)=>{qV(o,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof o}`);const a=Object.keys(o),i=a.map(c=>o[c]);return n(i,(...c)=>c.reduce((f,h,g)=>(f[a[g]]=h,f),{}))},{withTypes:()=>aF});c_({memoize:eF,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const zt=(o,n,a,i,l,c,...f)=>{if(f.length>0)throw new Error("Unsupported number of selectors");let h;if(o)h=o;else throw new Error("Missing arguments");return h};var _0={exports:{}},k0={},cA;function iF(){if(cA)return k0;cA=1;/**
|
|
430
|
-
* @license React
|
|
431
|
-
* use-sync-external-store-shim/with-selector.development.js
|
|
432
|
-
*
|
|
433
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
434
|
-
*
|
|
435
|
-
* This source code is licensed under the MIT license found in the
|
|
436
|
-
* LICENSE file in the root directory of this source tree.
|
|
437
|
-
*/return(function(){function o(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=Gl(),a=MN(),i=typeof Object.is=="function"?Object.is:o,l=a.useSyncExternalStore,c=n.useRef,f=n.useEffect,h=n.useMemo,g=n.useDebugValue;k0.useSyncExternalStoreWithSelector=function(m,b,p,v,w){var E=c(null);if(E.current===null){var T={hasValue:!1,value:null};E.current=T}else T=E.current;E=h(function(){function A($){if(!k){if(k=!0,U=$,$=v($),w!==void 0&&T.hasValue){var _=T.value;if(w(_,$))return M=_}return M=$}if(_=M,i(U,$))return _;var z=v($);return w!==void 0&&w(_,z)?(U=$,_):(U=$,M=z)}var k=!1,U,M,Y=p===void 0?null:p;return[function(){return A(b())},Y===null?void 0:function(){return A(Y())}]},[b,p,v,w]);var C=l(m,E[0],E[1]);return f(function(){T.hasValue=!0,T.value=C},[C]),g(C),C},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),k0}var uA;function sF(){return uA||(uA=1,_0.exports=iF()),_0.exports}var lF=sF();const xS=[];let RS;function cF(){return RS}function uF(o){xS.push(o)}function u_(o){const n=(a,i)=>{const l=gr(fF).current;let c;try{RS=l;for(const f of xS)f.before(l);c=o(a,i);for(const f of xS)f.after(l);l.didInitialize=!0}finally{RS=void 0}return c};return n.displayName=o.displayName||o.name,n}function dF(o){return x.forwardRef(u_(o))}function fF(){return{didInitialize:!1}}const hF=XS(19),pF=hF?gF:yF;function d_(o,n,a,i,l){return pF(o,n,a,i,l)}function mF(o,n,a,i,l){const c=x.useCallback(()=>n(o.getSnapshot(),a,i,l),[o,n,a,i,l]);return $S.useSyncExternalStore(o.subscribe,c,c)}uF({before(o){o.syncIndex=0,o.didInitialize||(o.syncTick=1,o.syncHooks=[],o.didChangeStore=!0,o.getSnapshot=()=>{let n=!1;for(let a=0;a<o.syncHooks.length;a+=1){const i=o.syncHooks[a],l=i.selector(i.store.state,i.a1,i.a2,i.a3);(i.didChange||!Object.is(i.value,l))&&(n=!0,i.value=l,i.didChange=!1)}return n&&(o.syncTick+=1),o.syncTick})},after(o){o.syncHooks.length>0&&(o.didChangeStore&&(o.didChangeStore=!1,o.subscribe=n=>{const a=new Set;for(const l of o.syncHooks)a.add(l.store);const i=[];for(const l of a)i.push(l.subscribe(n));return()=>{for(const l of i)l()}}),$S.useSyncExternalStore(o.subscribe,o.getSnapshot,o.getSnapshot))}});function gF(o,n,a,i,l){const c=cF();if(!c)return mF(o,n,a,i,l);const f=c.syncIndex;c.syncIndex+=1;let h;return c.didInitialize?(h=c.syncHooks[f],(h.store!==o||h.selector!==n||!Object.is(h.a1,a)||!Object.is(h.a2,i)||!Object.is(h.a3,l))&&(h.store!==o&&(c.didChangeStore=!0),h.store=o,h.selector=n,h.a1=a,h.a2=i,h.a3=l,h.didChange=!0)):(h={store:o,selector:n,a1:a,a2:i,a3:l,value:n(o.getSnapshot(),a,i,l),didChange:!1},c.syncHooks.push(h)),h.value}function yF(o,n,a,i,l){return lF.useSyncExternalStoreWithSelector(o.subscribe,o.getSnapshot,o.getSnapshot,c=>n(c,a,i,l))}class bF{constructor(n){Xe(this,"subscribe",n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}));Xe(this,"getSnapshot",()=>this.state);this.state=n,this.listeners=new Set,this.updateTick=0}setState(n){if(this.state===n)return;this.state=n,this.updateTick+=1;const a=this.updateTick;for(const i of this.listeners){if(a!==this.updateTick)return;i(n)}}update(n){for(const a in n)if(!Object.is(this.state[a],n[a])){this.setState({...this.state,...n});return}}set(n,a){Object.is(this.state[n],a)||this.setState({...this.state,[n]:a})}notifyAll(){const n={...this.state};this.setState(n)}use(n,a,i,l){return d_(this,n,a,i,l)}}class mw extends bF{constructor(n,a={},i){super(n),this.context=a,this.selectors=i}useSyncedValue(n,a){x.useDebugValue(n),pt(()=>{this.state[n]!==a&&this.set(n,a)},[n,a])}useSyncedValueWithCleanup(n,a){const i=this;pt(()=>(i.state[n]!==a&&i.set(n,a),()=>{i.set(n,void 0)}),[i,n,a])}useSyncedValues(n){const a=this;{x.useDebugValue(n,f=>Object.keys(f));const l=x.useRef(Object.keys(n)).current,c=Object.keys(n);(l.length!==c.length||l.some((f,h)=>f!==c[h]))&&console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.")}const i=Object.values(n);pt(()=>{a.update(n)},[a,...i])}useControlledProp(n,a){x.useDebugValue(n);const i=a!==void 0;pt(()=>{i&&!Object.is(this.state[n],a)&&super.setState({...this.state,[n]:a})},[n,a,i]);{const l=this.controlledValues??(this.controlledValues=new Map);l.has(n)||l.set(n,i);const c=l.get(n);c!==void 0&&c!==i&&console.error(`A component is changing the ${i?"":"un"}controlled state of ${n.toString()} to be ${i?"un":""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}}select(n,a,i,l){const c=this.selectors[n];return c(this.state,a,i,l)}useState(n,a,i,l){return x.useDebugValue(n),d_(this,this.selectors[n],a,i,l)}useContextCallback(n,a){x.useDebugValue(n);const i=it(a??qN);this.context[n]=i}useStateSetter(n){const a=x.useRef(void 0);return a.current===void 0&&(a.current=i=>{this.set(n,i)}),a.current}observe(n,a){let i;typeof n=="function"?i=n:i=this.selectors[n];let l=i(this.state);return a(l,l,this),this.subscribe(c=>{const f=i(c);if(!Object.is(l,f)){const h=l;l=f,a(f,h,this)}})}}const vF={open:zt(o=>o.open),domReferenceElement:zt(o=>o.domReferenceElement),referenceElement:zt(o=>o.positionReference??o.referenceElement),floatingElement:zt(o=>o.floatingElement),floatingId:zt(o=>o.floatingId)};class gw extends mw{constructor(a){const{nested:i,noEmit:l,onOpenChange:c,triggerElements:f,...h}=a;super({...h,positionReference:h.referenceElement,domReferenceElement:h.referenceElement},{onOpenChange:c,dataRef:{current:{}},events:$M(),nested:i,noEmit:l,triggerElements:f},vF);Xe(this,"setOpen",(a,i)=>{var l,c;if((!a||!this.state.open||o8(i.event))&&(this.context.dataRef.current.openEvent=a?i.event:void 0),!this.context.noEmit){const f={open:a,reason:i.reason,nativeEvent:i.event,nested:this.context.nested,triggerElement:i.trigger};this.context.events.emit("openchange",f)}(c=(l=this.context).onOpenChange)==null||c.call(l,a,i)})}}function SF(o,n){const a=x.useRef(null),i=x.useRef(null);return x.useCallback(l=>{if(o!==void 0){if(a.current!==null){const c=a.current,f=i.current,h=n.context.triggerElements.getById(c);f&&h===f&&n.context.triggerElements.delete(c),a.current=null,i.current=null}l!==null&&(a.current=o,i.current=l,n.context.triggerElements.add(o,l))}},[n,o])}function wF(o,n,a,i){const l=a.useState("isMountedByTrigger",o),c=SF(o,a),f=it(h=>{if(c(h),!h||!a.select("open"))return;const g=a.select("activeTriggerId");if(g===o){a.update({activeTriggerElement:h,...i});return}g==null&&a.update({activeTriggerId:o,activeTriggerElement:h,...i})});return pt(()=>{l&&a.update({activeTriggerElement:n.current,...i})},[l,a,n,...Object.values(i)]),{registerTrigger:f,isMountedByThisTrigger:l}}function f_(o){const n=o.useState("open");pt(()=>{if(n&&!o.select("activeTriggerId")&&o.context.triggerElements.size===1){const a=o.context.triggerElements.entries().next();if(!a.done){const[i,l]=a.value;o.update({activeTriggerId:i,activeTriggerElement:l})}}},[n,o])}function h_(o,n,a){const{mounted:i,setMounted:l,transitionStatus:c}=KN(o);n.useSyncedValues({mounted:i,transitionStatus:c});const f=it(()=>{var g,m;l(!1),n.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),a==null||a(),(m=(g=n.context).onOpenChangeComplete)==null||m.call(g,!1)}),h=n.useState("preventUnmountingOnClose");return bg({enabled:!h,open:o,ref:n.context.popupRef,onComplete(){o||f()}}),{forceUnmount:f,transitionStatus:c}}class Sg{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(n,a){const i=this.idMap.get(n);if(i!==a&&(i!==void 0&&this.elementsSet.delete(i),this.elementsSet.add(a),this.idMap.set(n,a),this.elementsSet.size!==this.idMap.size))throw new Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.")}delete(n){const a=this.idMap.get(n);a&&(this.elementsSet.delete(a),this.idMap.delete(n))}hasElement(n){return this.elementsSet.has(n)}hasMatchingElement(n){for(const a of this.elementsSet)if(n(a))return!0;return!1}getById(n){return this.idMap.get(n)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function EF(){return new gw({open:!1,floatingElement:null,referenceElement:null,triggerElements:new Sg,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function p_(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:"idle",floatingRootContext:EF(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:hr,inactiveTriggerProps:hr,popupProps:hr}}const Am=zt(o=>o.triggerIdProp??o.activeTriggerId),m_={open:zt(o=>o.openProp??o.open),mounted:zt(o=>o.mounted),transitionStatus:zt(o=>o.transitionStatus),floatingRootContext:zt(o=>o.floatingRootContext),preventUnmountingOnClose:zt(o=>o.preventUnmountingOnClose),payload:zt(o=>o.payload),activeTriggerId:Am,activeTriggerElement:zt(o=>o.mounted?o.activeTriggerElement:null),isTriggerActive:zt((o,n)=>n!==void 0&&Am(o)===n),isOpenedByTrigger:zt((o,n)=>n!==void 0&&Am(o)===n&&o.open),isMountedByTrigger:zt((o,n)=>n!==void 0&&Am(o)===n&&o.mounted),triggerProps:zt((o,n)=>n?o.activeTriggerProps:o.inactiveTriggerProps),popupProps:zt(o=>o.popupProps),popupElement:zt(o=>o.popupElement),positionerElement:zt(o=>o.positionerElement)};function xF(o){const{open:n=!1,onOpenChange:a,elements:i={}}=o,l=Eu(),c=Ou()!=null;{const h=i.reference;h&&!qt(h)&&console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`","instead.")}const f=gr(()=>new gw({open:n,onOpenChange:a,referenceElement:i.reference??null,floatingElement:i.floating??null,triggerElements:new Sg,floatingId:l,nested:c,noEmit:!1})).current;return pt(()=>{const h={open:n,floatingId:l};i.reference!==void 0&&(h.referenceElement=i.reference,h.domReferenceElement=qt(i.reference)?i.reference:null),i.floating!==void 0&&(h.floatingElement=i.floating),f.update(h)},[n,l,i.reference,i.floating,f]),f.context.onOpenChange=a,f.context.nested=c,f.context.noEmit=!1,f}function RF(o={}){const{nodeId:n,externalTree:a}=o,i=xF(o),l=o.rootContext||i,c={reference:l.useState("referenceElement"),floating:l.useState("floatingElement"),domReference:l.useState("domReferenceElement")},[f,h]=x.useState(null),g=x.useRef(null),m=Du(a);pt(()=>{c.domReference&&(g.current=c.domReference)},[c.domReference]);const b=kV({...o,elements:{...c,...f&&{reference:f}}}),p=x.useCallback(_=>{const z=qt(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),getClientRects:()=>_.getClientRects(),contextElement:_}:_;h(z),b.refs.setReference(z)},[b.refs]),[v,w]=x.useState(null),[E,T]=x.useState(null);l.useSyncedValue("referenceElement",v),l.useSyncedValue("domReferenceElement",qt(v)?v:null),l.useSyncedValue("floatingElement",E);const C=x.useCallback(_=>{(qt(_)||_===null)&&(g.current=_,w(_)),(qt(b.refs.reference.current)||b.refs.reference.current===null||_!==null&&!qt(_))&&b.refs.setReference(_)},[b.refs,w]),A=x.useCallback(_=>{T(_),b.refs.setFloating(_)},[b.refs]),k=x.useMemo(()=>({...b.refs,setReference:C,setFloating:A,setPositionReference:p,domReference:g}),[b.refs,C,A,p]),U=x.useMemo(()=>({...b.elements,domReference:c.domReference}),[b.elements,c.domReference]),M=l.useState("open"),Y=l.useState("floatingId"),$=x.useMemo(()=>({...b,dataRef:l.context.dataRef,open:M,onOpenChange:l.setOpen,events:l.context.events,floatingId:Y,refs:k,elements:U,nodeId:n,rootStore:l}),[b,k,U,n,l,M,Y]);return pt(()=>{l.context.dataRef.current.floatingContext=$;const _=m==null?void 0:m.nodesRef.current.find(z=>z.id===n);_&&(_.context=$)}),x.useMemo(()=>({...b,context:$,refs:k,elements:U,rootStore:l}),[b,k,U,$,l])}function g_(o){const{popupStore:n,noEmit:a=!1,treatPopupAsFloatingElement:i=!1,onOpenChange:l}=o,c=Eu(),f=Ou()!=null,h=n.useState("open"),g=n.useState("activeTriggerElement"),m=n.useState(i?"popupElement":"positionerElement"),b=n.context.triggerElements,p=gr(()=>new gw({open:h,referenceElement:g,floatingElement:m,triggerElements:b,onOpenChange:l,floatingId:c,nested:f,noEmit:a})).current;return pt(()=>{const v={open:h,floatingId:c,referenceElement:g,floatingElement:m};qt(g)&&(v.domReferenceElement=g),p.state.positionReference===p.state.referenceElement&&(v.positionReference=g),p.update(v)},[h,c,g,m,p]),p.context.onOpenChange=l,p.context.nested=f,p.context.noEmit=a,p}const L0=G6&&RM;function TF(o,n={}){const a="rootStore"in o?o.rootStore:o,{events:i,dataRef:l}=a.context,{enabled:c=!0,delay:f}=n,h=x.useRef(!1),g=x.useRef(null),m=Di(),b=x.useRef(!0);x.useEffect(()=>{const v=a.select("domReferenceElement");if(!c)return;const w=Gn(v);function E(){const A=a.select("domReferenceElement");!a.select("open")&&$n(A)&&A===xi(fn(A))&&(h.current=!0)}function T(){b.current=!0}function C(){b.current=!1}return w.addEventListener("blur",E),L0&&(w.addEventListener("keydown",T,!0),w.addEventListener("pointerdown",C,!0)),()=>{w.removeEventListener("blur",E),L0&&(w.removeEventListener("keydown",T,!0),w.removeEventListener("pointerdown",C,!0))}},[a,c]),x.useEffect(()=>{if(!c)return;function v(w){if(w.reason===zf||w.reason===QS){const E=a.select("domReferenceElement");qt(E)&&(g.current=E,h.current=!0)}}return i.on("openchange",v),()=>{i.off("openchange",v)}},[i,c,a]);const p=x.useMemo(()=>({onMouseLeave(){h.current=!1,g.current=null},onFocus(v){const w=v.currentTarget;if(h.current){if(g.current===w)return;h.current=!1,g.current=null}const E=qo(v.nativeEvent);if(qt(E)){if(L0&&!v.relatedTarget){if(!b.current&&!aw(E))return}else if(!J6(E))return}const T=Xm(v.relatedTarget,a.context.triggerElements),{nativeEvent:C,currentTarget:A}=v,k=typeof f=="function"?f():f;if(a.select("open")&&T||k===0||k===void 0){a.setOpen(!0,yn(jm,C,A));return}m.start(k,()=>{h.current||a.setOpen(!0,yn(jm,C,A))})},onBlur(v){h.current=!1,g.current=null;const w=v.relatedTarget,E=v.nativeEvent,T=qt(w)&&w.hasAttribute(wu("focus-guard"))&&w.getAttribute("data-type")==="outside";m.start(0,()=>{var U;const C=a.select("domReferenceElement"),A=xi(C?C.ownerDocument:document);!w&&A===C||Yt((U=l.current.floatingContext)==null?void 0:U.refs.floating.current,A)||Yt(C,A)||T||Xm(w??A,a.context.triggerElements)||a.setOpen(!1,yn(jm,E))})}}),[l,a,m,f]);return x.useMemo(()=>c?{reference:p,trigger:p}:{},[c,p])}const TS=wu("safe-polygon"),CF=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${DM}`;function OF(o){return o?!!o.closest(CF):!1}class yw{constructor(){Xe(this,"dispose",()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()});Xe(this,"disposeEffect",()=>this.dispose);this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.unbindMouseMove=()=>{},this.restTimeoutPending=!1,this.openChangeTimeout=new Fa,this.restTimeout=new Fa,this.handleCloseOptions=void 0}static create(){return new yw}}function y_(o){const n=gr(yw.create).current,a=o.context.dataRef.current;return a.hoverInteractionState||(a.hoverInteractionState=n),hg(a.hoverInteractionState.disposeEffect),a.hoverInteractionState}const DF=new Set(["click","mousedown"]);function AF(o,n={}){const a="rootStore"in o?o.rootStore:o,i=a.useState("open"),l=a.useState("floatingElement"),c=a.useState("domReferenceElement"),{dataRef:f}=a.context,{enabled:h=!0,closeDelay:g=0}=n,m=y_(a),b=Du(),p=Ou(),v=it(()=>m.interactedInside?!0:f.current.openEvent?DF.has(f.current.openEvent.type):!1),w=it(()=>{var M;const U=(M=f.current.openEvent)==null?void 0:M.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"}),E=it(U=>Xm(U,a.context.triggerElements)),T=x.useCallback((U,M=!0)=>{const Y=NF(g,m.pointerType);Y&&!m.handler?m.openChangeTimeout.start(Y,()=>a.setOpen(!1,yn(ea,U))):M&&(m.openChangeTimeout.clear(),a.setOpen(!1,yn(ea,U)))},[g,a,m]),C=it(()=>{m.unbindMouseMove(),m.handler=void 0}),A=it(()=>{if(m.performedPointerEventsMutation){const U=fn(l).body;U.style.pointerEvents="",U.removeAttribute(TS),m.performedPointerEventsMutation=!1}}),k=it(U=>{const M=qo(U);if(!OF(M)){m.interactedInside=!1;return}m.interactedInside=!0});pt(()=>{i||(m.pointerType=void 0,m.restTimeoutPending=!1,m.interactedInside=!1,C(),A())},[i,m,C,A]),x.useEffect(()=>()=>{C()},[C]),x.useEffect(()=>A,[A]),pt(()=>{var U,M,Y;if(h&&i&&(U=m.handleCloseOptions)!=null&&U.blockPointerEvents&&w()&&qt(c)&&l){m.performedPointerEventsMutation=!0;const $=fn(l).body;$.setAttribute(TS,"");const _=c,z=l,te=(Y=(M=b==null?void 0:b.nodesRef.current.find(H=>H.id===p))==null?void 0:M.context)==null?void 0:Y.elements.floating;return te&&(te.style.pointerEvents=""),$.style.pointerEvents="none",_.style.pointerEvents="auto",z.style.pointerEvents="auto",()=>{$.style.pointerEvents="",_.style.pointerEvents="",z.style.pointerEvents=""}}},[h,i,c,l,m,w,b,p]),x.useEffect(()=>{if(!h)return;function U(_){v()||!f.current.floatingContext||!a.select("open")||E(_.relatedTarget)||(A(),C(),v()||T(_))}function M(_){var z;m.openChangeTimeout.clear(),A(),(z=m.handler)==null||z.call(m,_),C()}function Y(_){v()||T(_,!1)}const $=l;return $&&($.addEventListener("mouseleave",U),$.addEventListener("mouseenter",M),$.addEventListener("mouseleave",Y),$.addEventListener("pointerdown",k,!0)),()=>{$&&($.removeEventListener("mouseleave",U),$.removeEventListener("mouseenter",M),$.removeEventListener("mouseleave",Y),$.removeEventListener("pointerdown",k,!0))}},[h,l,a,f,v,E,T,A,C,k,m])}function NF(o,n){return n&&!Pf(n)?0:typeof o=="function"?o():o}function U0(o){return typeof o=="function"?o():o}const MF={current:null};function _F(o,n={}){var H;const a="rootStore"in o?o.rootStore:o,{dataRef:i,events:l}=a.context,{enabled:c=!0,delay:f=0,handleClose:h=null,mouseOnly:g=!1,restMs:m=0,move:b=!0,triggerElementRef:p=MF,externalTree:v,isActiveTrigger:w=!0}=n,E=Du(v),T=y_(a),C=Ha(h),A=Ha(f),k=Ha(m),U=Ha(c);w&&(T.handleCloseOptions=(H=C.current)==null?void 0:H.__options);const M=it(()=>T.interactedInside?!0:i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1),Y=it(J=>Xm(J,a.context.triggerElements)),$=x.useCallback((J,N=!0)=>{const j=Hm(A.current,"close",T.pointerType);j&&!T.handler?T.openChangeTimeout.start(j,()=>a.setOpen(!1,yn(ea,J))):N&&(T.openChangeTimeout.clear(),a.setOpen(!1,yn(ea,J)))},[A,a,T]),_=it(()=>{T.unbindMouseMove(),T.handler=void 0}),z=it(()=>{if(T.performedPointerEventsMutation){const J=fn(a.select("domReferenceElement")).body;J.style.pointerEvents="",J.removeAttribute(TS),T.performedPointerEventsMutation=!1}});x.useEffect(()=>{if(!c)return;function J(N){N.open||(T.openChangeTimeout.clear(),T.restTimeout.clear(),T.blockMouseMove=!0,T.restTimeoutPending=!1)}return l.on("openchange",J),()=>{l.off("openchange",J)}},[c,l,T]);const te=it(J=>{var j;if(M()||!i.current.floatingContext||Y(J.relatedTarget))return;const N=p.current;(j=C.current)==null||j.call(C,{...i.current.floatingContext,tree:E,x:J.clientX,y:J.clientY,onClose(){z(),_(),!M()&&N===a.select("domReferenceElement")&&$(J)}})(J)});return x.useEffect(()=>{if(!c)return;const J=p.current??(w?a.select("domReferenceElement"):null);if(!qt(J))return;function N(Z){if(T.openChangeTimeout.clear(),T.blockMouseMove=!1,g&&!Pf(T.pointerType)||U0(k.current)>0&&!Hm(A.current,"open"))return;const P=Hm(A.current,"open",T.pointerType),oe=a.select("domReferenceElement"),I=a.context.triggerElements,se=(I.hasElement(Z.target)||I.hasMatchingElement(ie=>Yt(ie,Z.target)))&&(!oe||!Yt(oe,Z.target)),pe=Z.currentTarget??null,L=a.select("open"),ce=!L||se;se&&L?a.setOpen(!0,yn(ea,Z,pe)):P?T.openChangeTimeout.start(P,()=>{ce&&a.setOpen(!0,yn(ea,Z,pe))}):ce&&a.setOpen(!0,yn(ea,Z,pe))}function j(Z){if(M()){z();return}T.unbindMouseMove();const P=a.select("domReferenceElement"),oe=fn(P);if(T.restTimeout.clear(),T.restTimeoutPending=!1,Y(Z.relatedTarget))return;if(C.current&&i.current.floatingContext){a.select("open")||T.openChangeTimeout.clear();const se=p.current;T.handler=C.current({...i.current.floatingContext,tree:E,x:Z.clientX,y:Z.clientY,onClose(){z(),_(),U.current&&!M()&&se===a.select("domReferenceElement")&&$(Z,!0)}});const pe=T.handler;pe(Z),oe.addEventListener("mousemove",pe),T.unbindMouseMove=()=>{oe.removeEventListener("mousemove",pe)};return}(T.pointerType==="touch"?!Yt(a.select("floatingElement"),Z.relatedTarget):!0)&&$(Z)}function ne(Z){te(Z)}return a.select("open")&&J.addEventListener("mouseleave",ne),b&&J.addEventListener("mousemove",N,{once:!0}),J.addEventListener("mouseenter",N),J.addEventListener("mouseleave",j),()=>{J.removeEventListener("mouseleave",ne),b&&J.removeEventListener("mousemove",N),J.removeEventListener("mouseenter",N),J.removeEventListener("mouseleave",j)}},[_,z,i,A,$,a,c,C,te,T,w,M,Y,g,b,k,p,E,U]),x.useMemo(()=>{if(!c)return;function J(N){T.pointerType=N.pointerType}return{onPointerDown:J,onPointerEnter:J,onMouseMove(N){const{nativeEvent:j}=N,ne=N.currentTarget,Z=a.select("domReferenceElement"),P=a.context.triggerElements,oe=a.select("open"),I=(P.hasElement(N.target)||P.hasMatchingElement(pe=>Yt(pe,N.target)))&&(!Z||!Yt(Z,N.target));if(g&&!Pf(T.pointerType)||oe&&!I||U0(k.current)===0||!I&&T.restTimeoutPending&&N.movementX**2+N.movementY**2<2)return;T.restTimeout.clear();function se(){if(T.restTimeoutPending=!1,M())return;const pe=a.select("open");!T.blockMouseMove&&(!pe||I)&&a.setOpen(!0,yn(ea,j,ne))}T.pointerType==="touch"?zs.flushSync(()=>{se()}):I&&oe?se():(T.restTimeoutPending=!0,T.restTimeout.start(U0(k.current),se))}}},[c,T,M,g,a,k])}function b_(o=[]){const n=o.map(m=>m==null?void 0:m.reference),a=o.map(m=>m==null?void 0:m.floating),i=o.map(m=>m==null?void 0:m.item),l=o.map(m=>m==null?void 0:m.trigger),c=x.useCallback(m=>Nm(m,o,"reference"),n),f=x.useCallback(m=>Nm(m,o,"floating"),a),h=x.useCallback(m=>Nm(m,o,"item"),i),g=x.useCallback(m=>Nm(m,o,"trigger"),l);return x.useMemo(()=>({getReferenceProps:c,getFloatingProps:f,getItemProps:h,getTriggerProps:g}),[c,f,h,g])}function Nm(o,n,a){var f;const i=new Map,l=a==="item",c={};a==="floating"&&(c.tabIndex=-1,c[yS]="");for(const h in o)l&&o&&(h===CM||h===OM)||(c[h]=o[h]);for(let h=0;h<n.length;h+=1){let g;const m=(f=n[h])==null?void 0:f[a];typeof m=="function"?g=o?m(o):null:g=m,g&&dA(c,g,l,i)}return dA(c,o,l,i),c}function dA(o,n,a,i){var l;for(const c in n){const f=n[c];a&&(c===CM||c===OM)||(c.startsWith("on")?(i.has(c)||i.set(c,[]),typeof f=="function"&&((l=i.get(c))==null||l.push(f),o[c]=(...h)=>{var g;return(g=i.get(c))==null?void 0:g.map(m=>m(...h)).find(m=>m!==void 0)})):o[c]=f)}}const kF=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function LF(o,n={}){const a="rootStore"in o?o.rootStore:o,i=a.useState("open"),l=a.useState("floatingId"),c=a.useState("domReferenceElement"),f=a.useState("floatingElement"),{role:h="dialog"}=n,g=Eu(),m=(c==null?void 0:c.id)||g,b=x.useMemo(()=>{var k;return((k=bS(f))==null?void 0:k.id)||l},[f,l]),p=kF.get(h)??h,w=Ou()!=null,E=x.useMemo(()=>p==="tooltip"||h==="label"?hr:{"aria-haspopup":p==="alertdialog"?"dialog":p,"aria-expanded":"false",...p==="listbox"&&{role:"combobox"},...p==="menu"&&w&&{role:"menuitem"},...h==="select"&&{"aria-autocomplete":"none"},...h==="combobox"&&{"aria-autocomplete":"list"}},[p,w,h]),T=x.useMemo(()=>p==="tooltip"||h==="label"?{[`aria-${h==="label"?"labelledby":"describedby"}`]:i?b:void 0}:{...E,"aria-expanded":i?"true":"false","aria-controls":i?b:void 0,...p==="menu"&&{id:m}},[p,b,i,m,h,E]),C=x.useMemo(()=>{const k={id:b,...p&&{role:p}};return p==="tooltip"||h==="label"?k:{...k,...p==="menu"&&{"aria-labelledby":m}}},[p,b,m,h]),A=x.useCallback(({active:k,selected:U})=>{const M={role:"option",...k&&{id:`${b}-fui-option`}};switch(h){case"select":case"combobox":return{...M,"aria-selected":U}}return{}},[b,h]);return x.useMemo(()=>({reference:T,floating:C,item:A,trigger:E}),[T,C,E,A])}function fA(o,n){const[a,i]=o;let l=!1;const c=n.length;for(let f=0,h=c-1;f<c;h=f++){const[g,m]=n[f]||[0,0],[b,p]=n[h]||[0,0];m>=i!=p>=i&&a<=(b-g)*(i-m)/(p-m)+g&&(l=!l)}return l}function UF(o,n){return o[0]>=n.x&&o[0]<=n.x+n.width&&o[1]>=n.y&&o[1]<=n.y+n.height}function zF(o={}){const{buffer:n=.5,blockPointerEvents:a=!1,requireIntent:i=!0}=o,l=new Fa;let c=!1,f=null,h=null,g=typeof performance<"u"?performance.now():0;function m(p,v){const w=performance.now(),E=w-g;if(f===null||h===null||E===0)return f=p,h=v,g=w,null;const T=p-f,C=v-h,k=Math.sqrt(T*T+C*C)/E;return f=p,h=v,g=w,k}const b=({x:p,y:v,placement:w,elements:E,onClose:T,nodeId:C,tree:A})=>function(U){function M(){l.clear(),T()}if(l.clear(),!E.domReference||!E.floating||w==null||p==null||v==null)return;const{clientX:Y,clientY:$}=U,_=[Y,$],z=qo(U),te=U.type==="mouseleave",H=Yt(E.floating,z),J=Yt(E.domReference,z),N=E.domReference.getBoundingClientRect(),j=E.floating.getBoundingClientRect(),ne=w.split("-")[0],Z=p>j.right-j.width/2,P=v>j.bottom-j.height/2,oe=UF(_,N),I=j.width>N.width,se=j.height>N.height,pe=(I?N:j).left,L=(I?N:j).right,ce=(se?N:j).top,ie=(se?N:j).bottom;if(H&&(c=!0,!te))return;if(J&&(c=!1),J&&!te){c=!0;return}if(te&&qt(U.relatedTarget)&&Yt(E.floating,U.relatedTarget)||A&&Vl(A.nodesRef.current,C).some(({context:Ue})=>Ue==null?void 0:Ue.open))return;if(ne==="top"&&v>=N.bottom-1||ne==="bottom"&&v<=N.top+1||ne==="left"&&p>=N.right-1||ne==="right"&&p<=N.left+1)return M();let me=[];switch(ne){case"top":me=[[pe,N.top+1],[pe,j.bottom-1],[L,j.bottom-1],[L,N.top+1]];break;case"bottom":me=[[pe,j.top+1],[pe,N.bottom-1],[L,N.bottom-1],[L,j.top+1]];break;case"left":me=[[j.right-1,ie],[j.right-1,ce],[N.left+1,ce],[N.left+1,ie]];break;case"right":me=[[N.right-1,ie],[N.right-1,ce],[j.left+1,ce],[j.left+1,ie]];break}function Te([Ue,ve]){switch(ne){case"top":{const ze=[I?Ue+n/2:Z?Ue+n*4:Ue-n*4,ve+n+1],Pe=[I?Ue-n/2:Z?Ue+n*4:Ue-n*4,ve+n+1],at=[[j.left,Z||I?j.bottom-n:j.top],[j.right,Z?I?j.bottom-n:j.top:j.bottom-n]];return[ze,Pe,...at]}case"bottom":{const ze=[I?Ue+n/2:Z?Ue+n*4:Ue-n*4,ve-n],Pe=[I?Ue-n/2:Z?Ue+n*4:Ue-n*4,ve-n],at=[[j.left,Z||I?j.top+n:j.bottom],[j.right,Z?I?j.top+n:j.bottom:j.top+n]];return[ze,Pe,...at]}case"left":{const ze=[Ue+n+1,se?ve+n/2:P?ve+n*4:ve-n*4],Pe=[Ue+n+1,se?ve-n/2:P?ve+n*4:ve-n*4];return[...[[P||se?j.right-n:j.left,j.top],[P?se?j.right-n:j.left:j.right-n,j.bottom]],ze,Pe]}case"right":{const ze=[Ue-n,se?ve+n/2:P?ve+n*4:ve-n*4],Pe=[Ue-n,se?ve-n/2:P?ve+n*4:ve-n*4],at=[[P||se?j.left+n:j.right,j.top],[P?se?j.left+n:j.right:j.left+n,j.bottom]];return[ze,Pe,...at]}default:return[]}}if(!fA([Y,$],me)){if(c&&!oe)return M();if(!te&&i){const Ue=m(U.clientX,U.clientY);if(Ue!==null&&Ue<.1)return M()}fA([Y,$],Te([p,v]))?!c&&i&&l.start(40,M):M()}};return b.__options={blockPointerEvents:a},b}let PF=(function(o){return o.nestedDialogs="--nested-dialogs",o})({}),jF=(function(o){return o[o.open=Ml.open]="open",o[o.closed=Ml.closed]="closed",o[o.startingStyle=Ml.startingStyle]="startingStyle",o[o.endingStyle=Ml.endingStyle]="endingStyle",o.nested="data-nested",o.nestedDialogOpen="data-nested-dialog-open",o})({});const bw=x.createContext(void 0);bw.displayName="DialogPortalContext";function HF(){const o=x.useContext(bw);if(o===void 0)throw new Error("Base UI: <Dialog.Portal> is missing.");return o}const v_="ArrowUp",S_="ArrowDown",w_="ArrowLeft",E_="ArrowRight",x_="Home",R_="End",IF=new Set([w_,E_]),BF=new Set([v_,S_]),VF=new Set([...IF,...BF]);[...VF];const FF=new Set([v_,S_,w_,E_,x_,R_]),YF={...eh,...Kf,nestedDialogOpen(o){return o?{[jF.nestedDialogOpen]:""}:null}},T_=x.forwardRef(function(n,a){const{className:i,finalFocus:l,initialFocus:c,render:f,...h}=n,{store:g}=Wl(),m=g.useState("descriptionElementId"),b=g.useState("disablePointerDismissal"),p=g.useState("floatingRootContext"),v=g.useState("popupProps"),w=g.useState("modal"),E=g.useState("mounted"),T=g.useState("nested"),C=g.useState("nestedOpenDialogCount"),A=g.useState("open"),k=g.useState("openMethod"),U=g.useState("titleElementId"),M=g.useState("transitionStatus"),Y=g.useState("role");HF(),bg({open:A,ref:g.context.popupRef,onComplete(){var J,N;A&&((N=(J=g.context).onOpenChangeComplete)==null||N.call(J,!0))}});function $(J){return J==="touch"?g.context.popupRef.current:!0}const _=c===void 0?$:c,z=C>0,H=Ln("div",n,{state:{open:A,nested:T,transitionStatus:M,nestedDialogOpen:z},props:[v,{"aria-labelledby":U??void 0,"aria-describedby":m??void 0,role:Y,tabIndex:-1,hidden:!E,onKeyDown(J){FF.has(J.key)&&J.stopPropagation()},style:{[PF.nestedDialogs]:C}},h],ref:[a,g.context.popupRef,g.useStateSetter("popupElement")],stateAttributesMapping:YF});return nn.jsx(W8,{context:p,openInteractionType:k,disabled:!E,closeOnFocusOut:!b,initialFocus:_,returnFocus:l,modal:w!==!1,restoreFocus:"popup",children:H})});T_.displayName="DialogPopup";function $F(o){return XS(19)?o:o?"true":void 0}const C_=x.forwardRef(function(n,a){const{cutout:i,...l}=n;let c;if(i){const f=i==null?void 0:i.getBoundingClientRect();c=`polygon(
|
|
438
|
-
0% 0%,
|
|
439
|
-
100% 0%,
|
|
440
|
-
100% 100%,
|
|
441
|
-
0% 100%,
|
|
442
|
-
0% 0%,
|
|
443
|
-
${f.left}px ${f.top}px,
|
|
444
|
-
${f.left}px ${f.bottom}px,
|
|
445
|
-
${f.right}px ${f.bottom}px,
|
|
446
|
-
${f.right}px ${f.top}px,
|
|
447
|
-
${f.left}px ${f.top}px
|
|
448
|
-
)`}return nn.jsx("div",{ref:a,role:"presentation","data-base-ui-inert":"",...l,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})});C_.displayName="InternalBackdrop";const O_=x.forwardRef(function(n,a){const{keepMounted:i=!1,...l}=n,{store:c}=Wl(),f=c.useState("mounted"),h=c.useState("modal"),g=c.useState("open");return f||i?nn.jsx(bw.Provider,{value:i,children:nn.jsxs(JM,{ref:a,...l,children:[f&&h===!0&&nn.jsx(C_,{ref:c.context.internalBackdropRef,inert:$F(!g)}),n.children]})}):null});O_.displayName="DialogPortal";function D_(o){const n=x.useRef(!0);n.current&&(n.current=!1,o())}let hA={},pA={},mA="";function qF(o){if(typeof document>"u")return!1;const n=fn(o);return Gn(n).innerWidth-n.documentElement.clientWidth>0}function GF(o){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const a=fn(o),i=a.documentElement,l=a.body,c=js(i)?i:l,f=c.style.overflowY,h=i.style.scrollbarGutter;i.style.scrollbarGutter="stable",c.style.overflowY="scroll";const g=c.offsetWidth;c.style.overflowY="hidden";const m=c.offsetWidth;return c.style.overflowY=f,i.style.scrollbarGutter=h,g===m}function XF(o){const n=fn(o),a=n.documentElement,i=n.body,l=js(a)?a:i,c={overflowY:l.style.overflowY,overflowX:l.style.overflowX};return Object.assign(l.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(l.style,c)}}function QF(o){var v;const n=fn(o),a=n.documentElement,i=n.body,l=Gn(a);let c=0,f=0,h=!1;const g=Nn.create();if(rw&&(((v=l.visualViewport)==null?void 0:v.scale)??1)!==1)return()=>{};function m(){const w=l.getComputedStyle(a),E=l.getComputedStyle(i),A=(w.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=a.scrollTop,f=a.scrollLeft,hA={scrollbarGutter:a.style.scrollbarGutter,overflowY:a.style.overflowY,overflowX:a.style.overflowX},mA=a.style.scrollBehavior,pA={position:i.style.position,height:i.style.height,width:i.style.width,boxSizing:i.style.boxSizing,overflowY:i.style.overflowY,overflowX:i.style.overflowX,scrollBehavior:i.style.scrollBehavior};const k=a.scrollHeight>a.clientHeight,U=a.scrollWidth>a.clientWidth,M=w.overflowY==="scroll"||E.overflowY==="scroll",Y=w.overflowX==="scroll"||E.overflowX==="scroll",$=Math.max(0,l.innerWidth-i.clientWidth),_=Math.max(0,l.innerHeight-i.clientHeight),z=parseFloat(E.marginTop)+parseFloat(E.marginBottom),te=parseFloat(E.marginLeft)+parseFloat(E.marginRight),H=js(a)?a:i;if(h=GF(o),h){a.style.scrollbarGutter=A,H.style.overflowY="hidden",H.style.overflowX="hidden";return}Object.assign(a.style,{scrollbarGutter:A,overflowY:"hidden",overflowX:"hidden"}),(k||M)&&(a.style.overflowY="scroll"),(U||Y)&&(a.style.overflowX="scroll"),Object.assign(i.style,{position:"relative",height:z||_?`calc(100dvh - ${z+_}px)`:"100dvh",width:te||$?`calc(100vw - ${te+$}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),i.scrollTop=c,i.scrollLeft=f,a.setAttribute("data-base-ui-scroll-locked",""),a.style.scrollBehavior="unset"}function b(){Object.assign(a.style,hA),Object.assign(i.style,pA),h||(a.scrollTop=c,a.scrollLeft=f,a.removeAttribute("data-base-ui-scroll-locked"),a.style.scrollBehavior=mA)}function p(){b(),g.request(m)}return m(),l.addEventListener("resize",p),()=>{g.cancel(),b(),typeof l.removeEventListener=="function"&&l.removeEventListener("resize",p)}}class WF{constructor(){Xe(this,"lockCount",0);Xe(this,"restore",null);Xe(this,"timeoutLock",Fa.create());Xe(this,"timeoutUnlock",Fa.create());Xe(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});Xe(this,"unlock",()=>{var n;this.lockCount===0&&this.restore&&((n=this.restore)==null||n.call(this),this.restore=null)})}acquire(n){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(n)),this.release}lock(n){if(this.lockCount===0||this.restore!==null)return;const i=fn(n).documentElement,l=Gn(i).getComputedStyle(i).overflowY;if(l==="hidden"||l==="clip"){this.restore=qN;return}const c=xM||!qF(n);this.restore=c?XF(n):QF(n)}}const KF=new WF;function JF(o=!0,n=null){pt(()=>{if(o)return KF.acquire(n)},[o,n])}function ZF(o){const n=x.useRef(""),a=x.useCallback(l=>{l.defaultPrevented||(n.current=l.pointerType,o(l,l.pointerType))},[o]);return{onClick:x.useCallback(l=>{if(l.detail===0){o(l,"keyboard");return}"pointerType"in l?o(l,l.pointerType):o(l,n.current),n.current=""},[o]),onPointerDown:a}}function e7(o){const[n,a]=x.useState(null),i=it((h,g)=>{o||a(g||(xM?"touch":""))}),l=x.useCallback(()=>{a(null)},[]),{onClick:c,onPointerDown:f}=ZF(i);return x.useMemo(()=>({openMethod:n,reset:l,triggerProps:{onClick:c,onPointerDown:f}}),[n,l,c,f])}function t7(o){const{store:n,parentContext:a,actionsRef:i}=o,l=n.useState("open"),c=n.useState("disablePointerDismissal"),f=n.useState("modal"),h=n.useState("popupElement"),{openMethod:g,triggerProps:m,reset:b}=e7(l);f_(n);const{forceUnmount:p}=h_(l,n,()=>{b()}),v=it(H=>{const J=yn(H);return J.preventUnmountOnClose=()=>{n.set("preventUnmountingOnClose",!0)},J}),w=x.useCallback(()=>{n.setOpen(!1,v(QN))},[n,v]);x.useImperativeHandle(i,()=>({unmount:p,close:w}),[p,w]);const E=g_({popupStore:n,onOpenChange:n.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[T,C]=x.useState(0),A=T===0,k=LF(E),U=s_(E,{outsidePressEvent(){return n.context.internalBackdropRef.current||n.context.backdropRef.current?"intentional":{mouse:f==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(H){if(!n.context.outsidePressEnabledRef.current||"button"in H&&H.button!==0||"touches"in H&&H.touches.length!==1)return!1;const J=qo(H);if(A&&!c){const N=J;return f&&(n.context.internalBackdropRef.current||n.context.backdropRef.current)?n.context.internalBackdropRef.current===N||n.context.backdropRef.current===N||Yt(N,h)&&!(N!=null&&N.hasAttribute("data-base-ui-portal")):!0}return!1},escapeKey:A});JF(l&&f===!0,h);const{getReferenceProps:M,getFloatingProps:Y,getTriggerProps:$}=b_([k,U]);n.useContextCallback("onNestedDialogOpen",H=>{C(H+1)}),n.useContextCallback("onNestedDialogClose",()=>{C(0)}),x.useEffect(()=>(a!=null&&a.onNestedDialogOpen&&l&&a.onNestedDialogOpen(T),a!=null&&a.onNestedDialogClose&&!l&&a.onNestedDialogClose(),()=>{a!=null&&a.onNestedDialogClose&&l&&a.onNestedDialogClose()}),[l,a,T]);const _=x.useMemo(()=>M(m),[M,m]),z=x.useMemo(()=>$(m),[$,m]),te=x.useMemo(()=>Y(),[Y]);n.useSyncedValues({openMethod:g,activeTriggerProps:_,inactiveTriggerProps:z,popupProps:te,floatingRootContext:E,nestedOpenDialogCount:T})}const n7={...m_,modal:zt(o=>o.modal),nested:zt(o=>o.nested),nestedOpenDialogCount:zt(o=>o.nestedOpenDialogCount),disablePointerDismissal:zt(o=>o.disablePointerDismissal),openMethod:zt(o=>o.openMethod),descriptionElementId:zt(o=>o.descriptionElementId),titleElementId:zt(o=>o.titleElementId),viewportElement:zt(o=>o.viewportElement),role:zt(o=>o.role)};class o7 extends mw{constructor(a){super(r7(a),{popupRef:x.createRef(),backdropRef:x.createRef(),internalBackdropRef:x.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Sg,onOpenChange:void 0,onOpenChangeComplete:void 0},n7);Xe(this,"setOpen",(a,i)=>{var h,g,m,b;if(i.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!a&&i.trigger==null&&this.state.activeTriggerId!=null&&(i.trigger=this.state.activeTriggerElement??void 0),(g=(h=this.context).onOpenChange)==null||g.call(h,a,i),i.isCanceled)return;const l={open:a,nativeEvent:i.event,reason:i.reason,nested:this.state.nested};(m=this.state.floatingRootContext.context.events)==null||m.emit("openchange",l);const c={open:a},f=((b=i.trigger)==null?void 0:b.id)??null;(f||a)&&(c.activeTriggerId=f,c.activeTriggerElement=i.trigger??null),this.update(c)})}}function r7(o={}){return{...p_(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...o}}function a7(o){const{children:n,open:a,defaultOpen:i=!1,onOpenChange:l,onOpenChangeComplete:c,disablePointerDismissal:f=!1,modal:h=!0,actionsRef:g,handle:m,triggerId:b,defaultTriggerId:p=null}=o,v=Wl(!0),w=!!v,E=gr(()=>(m==null?void 0:m.store)??new o7({open:i,openProp:a,activeTriggerId:p,triggerIdProp:b,modal:h,disablePointerDismissal:f,nested:w})).current;D_(()=>{a===void 0&&E.state.open===!1&&i===!0&&E.update({open:!0,activeTriggerId:p})}),E.useControlledProp("openProp",a),E.useControlledProp("triggerIdProp",b),E.useSyncedValues({disablePointerDismissal:f,nested:w,modal:h}),E.useContextCallback("onOpenChange",l),E.useContextCallback("onOpenChangeComplete",c);const T=E.useState("payload");t7({store:E,actionsRef:g,parentContext:v==null?void 0:v.store.context});const C=x.useMemo(()=>({store:E}),[E]);return nn.jsx(cw.Provider,{value:C,children:typeof n=="function"?n({payload:T}):n})}const A_=x.forwardRef(function(n,a){const{render:i,className:l,id:c,...f}=n,{store:h}=Wl(),g=Wf(c);return h.useSyncedValueWithCleanup("titleElementId",g),Ln("h2",n,{ref:a,props:[{id:g},f]})});A_.displayName="DialogTitle";function i7({...o}){return re.jsxDEV(a7,{"data-slot":"sheet",...o},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:11,columnNumber:10},this)}function s7({...o}){return re.jsxDEV(O_,{"data-slot":"sheet-portal",...o},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:23,columnNumber:10},this)}function l7({className:o,...n}){return re.jsxDEV(VM,{"data-slot":"sheet-overlay",className:Pt("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:28,columnNumber:5},this)}function c7({className:o,children:n,side:a="right",showCloseButton:i=!0,...l}){return re.jsxDEV(s7,{children:[re.jsxDEV(l7,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:48,columnNumber:7},this),re.jsxDEV(T_,{"data-slot":"sheet-content","data-side":a,className:Pt("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 gap-4 bg-clip-padding text-sm 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",o),...l,children:[n,i&&re.jsxDEV(FM,{"data-slot":"sheet-close",render:re.jsxDEV(ow,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:60,columnNumber:15},this),children:[re.jsxDEV(BN,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:67,columnNumber:13},this),re.jsxDEV("span",{className:"sr-only",children:"Close"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:69,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:57,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:49,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:47,columnNumber:5},this)}function u7({className:o,...n}){return re.jsxDEV("div",{"data-slot":"sheet-header",className:Pt("gap-0.5 p-4 flex flex-col",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:79,columnNumber:5},this)}function d7({className:o,...n}){return re.jsxDEV(A_,{"data-slot":"sheet-title",className:Pt("text-foreground text-base font-medium",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:99,columnNumber:5},this)}function f7({className:o,...n}){return re.jsxDEV(YM,{"data-slot":"sheet-description",className:Pt("text-muted-foreground text-sm",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sheet.tsx",lineNumber:112,columnNumber:5},this)}const vw=x.createContext(void 0);vw.displayName="TooltipRootContext";function th(o){const n=x.useContext(vw);if(n===void 0&&!o)throw new Error("Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.");return n}const h7={...m_,disabled:zt(o=>o.disabled),instantType:zt(o=>o.instantType),isInstantPhase:zt(o=>o.isInstantPhase),trackCursorAxis:zt(o=>o.trackCursorAxis),disableHoverablePopup:zt(o=>o.disableHoverablePopup),lastOpenChangeReason:zt(o=>o.openChangeReason),closeDelay:zt(o=>o.closeDelay),hasViewport:zt(o=>o.hasViewport)};class Sw extends mw{constructor(a){super({...p7(),...a},{popupRef:x.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Sg},h7);Xe(this,"setOpen",(a,i)=>{var m,b;const l=i.reason,c=l===ea,f=a&&l===jm,h=!a&&(l===zf||l===QS);if(i.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},(b=(m=this.context).onOpenChange)==null||b.call(m,a,i),i.isCanceled)return;const g=()=>{var w;const p={open:a,openChangeReason:l};f?p.instantType="focus":h?p.instantType="dismiss":l===ea&&(p.instantType=void 0);const v=((w=i.trigger)==null?void 0:w.id)??null;(v||a)&&(p.activeTriggerId=v,p.activeTriggerElement=i.trigger??null),this.update(p)};c?zs.flushSync(g):g()})}static useStore(a,i){const l=gr(()=>new Sw(i)).current,c=a??l,f=g_({popupStore:c,onOpenChange:c.setOpen});return c.state.floatingRootContext=f,c}}function p7(){return{...p_(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}const N_=u_(function(n){const{disabled:a=!1,defaultOpen:i=!1,open:l,disableHoverablePopup:c=!1,trackCursorAxis:f="none",actionsRef:h,onOpenChange:g,onOpenChangeComplete:m,handle:b,triggerId:p,defaultTriggerId:v=null,children:w}=n,E=Sw.useStore(b==null?void 0:b.store,{open:i,openProp:l,activeTriggerId:v,triggerIdProp:p});D_(()=>{l===void 0&&E.state.open===!1&&i===!0&&E.update({open:!0,activeTriggerId:v})}),E.useControlledProp("openProp",l),E.useControlledProp("triggerIdProp",p),E.useContextCallback("onOpenChange",g),E.useContextCallback("onOpenChangeComplete",m);const T=E.useState("open"),C=!a&&T,A=E.useState("activeTriggerId"),k=E.useState("payload");E.useSyncedValues({trackCursorAxis:f,disableHoverablePopup:c}),pt(()=>{T&&a&&E.setOpen(!1,yn(DB))},[T,a,E]),E.useSyncedValue("disabled",a),f_(E);const{forceUnmount:U,transitionStatus:M}=h_(C,E),Y=E.useState("isInstantPhase"),$=E.useState("instantType"),_=E.useState("lastOpenChangeReason"),z=x.useRef(null);pt(()=>{M==="ending"&&_===fg||M!=="ending"&&Y?($!=="delay"&&(z.current=$),E.set("instantType","delay")):z.current!==null&&(E.set("instantType",z.current),z.current=null)},[M,Y,_,$,E]),pt(()=>{C&&A==null&&E.set("payload",void 0)},[E,A,C]);const te=x.useCallback(()=>{E.setOpen(!1,m7(E,QN))},[E]);x.useImperativeHandle(h,()=>({unmount:U,close:te}),[U,te]);const H=E.useState("floatingRootContext"),J=s_(H,{enabled:!a,referencePress:!0}),N=J8(H,{enabled:!a&&f!=="none",axis:f==="none"?void 0:f}),{getReferenceProps:j,getFloatingProps:ne,getTriggerProps:Z}=b_([J,N]),P=x.useMemo(()=>j(),[j]),oe=x.useMemo(()=>Z(),[Z]),I=x.useMemo(()=>ne(),[ne]);return E.useSyncedValues({activeTriggerProps:P,inactiveTriggerProps:oe,popupProps:I}),nn.jsx(vw.Provider,{value:E,children:typeof w=="function"?w({payload:k}):w})});N_.displayName="TooltipRoot";function m7(o,n){const a=yn(n);return a.preventUnmountOnClose=()=>{o.set("preventUnmountingOnClose",!0)},a}const M_=x.createContext(void 0);M_.displayName="TooltipProviderContext";function g7(){return x.useContext(M_)}let y7=(function(o){return o[o.popupOpen=ng.popupOpen]="popupOpen",o.triggerDisabled="data-trigger-disabled",o})({});const b7=600,__=dF(function(n,a){const{className:i,render:l,handle:c,payload:f,disabled:h,delay:g,closeDelay:m,id:b,...p}=n,v=th(!0),w=(c==null?void 0:c.store)??v;if(!w)throw new Error("Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.");const E=Wf(b),T=w.useState("isTriggerActive",E),C=w.useState("isOpenedByTrigger",E),A=w.useState("floatingRootContext"),k=x.useRef(null),U=g??b7,M=m??0,{registerTrigger:Y,isMountedByThisTrigger:$}=wF(E,k,w,{payload:f,closeDelay:M}),_=g7(),{delayRef:z,isInstantPhase:te,hasProvider:H}=B8(A,{open:C});w.useSyncedValue("isInstantPhase",te);const J=w.useState("disabled"),N=h??J,j=w.useState("trackCursorAxis"),ne=w.useState("disableHoverablePopup"),Z=_F(A,{enabled:!N,mouseOnly:!0,move:!1,handleClose:!ne&&j!=="both"?zF():null,restMs(){const pe=_==null?void 0:_.delay,L=typeof z.current=="object"?z.current.open:void 0;let ce=U;return H&&(L!==0?ce=g??pe??U:ce=0),ce},delay(){const pe=typeof z.current=="object"?z.current.close:void 0;let L=M;return m==null&&H&&(L=pe),{close:L}},triggerElementRef:k,isActiveTrigger:T}),P=TF(A,{enabled:!N}).reference,oe={open:C},I=w.useState("triggerProps",$);return Ln("button",n,{state:oe,ref:[a,Y,k],props:[Z,P,I,{id:E,[y7.triggerDisabled]:N?"":void 0},p],stateAttributesMapping:P8})});__.displayName="TooltipTrigger";const ww=x.createContext(void 0);ww.displayName="TooltipPortalContext";function v7(){const o=x.useContext(ww);if(o===void 0)throw new Error("Base UI: <Tooltip.Portal> is missing.");return o}const k_=x.forwardRef(function(n,a){const{children:i,container:l,className:c,render:f,...h}=n,{portalNode:g,portalSubtree:m}=KM({container:l,ref:a,componentProps:n,elementProps:h});return!m&&!g?null:nn.jsxs(x.Fragment,{children:[m,g&&zs.createPortal(i,g)]})});k_.displayName="FloatingPortalLite";const L_=x.forwardRef(function(n,a){const{keepMounted:i=!1,...l}=n;return th().useState("mounted")||i?nn.jsx(ww.Provider,{value:i,children:nn.jsx(k_,{ref:a,...l})}):null});L_.displayName="TooltipPortal";const Ew=x.createContext(void 0);Ew.displayName="TooltipPositionerContext";function U_(){const o=x.useContext(Ew);if(o===void 0)throw new Error("Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.");return o}const z_=x.createContext(void 0);z_.displayName="DirectionContext";function xw(){const o=x.useContext(z_);return(o==null?void 0:o.direction)??"ltr"}const S7=o=>({name:"arrow",options:o,async fn(n){var se,pe;const{x:a,y:i,placement:l,rects:c,platform:f,elements:h,middlewareData:g}=n,{element:m,padding:b=0,offsetParent:p="real"}=Ai(o,n)||{};if(m==null)return{};const v=AM(b),w={x:a,y:i},E=lw(l),T=sw(E),C=await f.getDimensions(m),A=E==="y",k=A?"top":"left",U=A?"bottom":"right",M=A?"clientHeight":"clientWidth",Y=c.reference[T]+c.reference[E]-w[E]-c.floating[T],$=w[E]-c.reference[E],_=p==="real"?await((se=f.getOffsetParent)==null?void 0:se.call(f,m)):h.floating;let z=h.floating[M]||c.floating[T];(!z||!await((pe=f.isElement)==null?void 0:pe.call(f,_)))&&(z=h.floating[M]||c.floating[T]);const te=Y/2-$/2,H=z/2-C[T]/2-1,J=Math.min(v[k],H),N=Math.min(v[U],H),j=J,ne=z-C[T]-N,Z=z/2-C[T]/2+te,P=vS(j,Z,ne),oe=!g.arrow&&Hs(l)!=null&&Z!==P&&c.reference[T]/2-(Z<j?J:N)-C[T]/2<0,I=oe?Z<j?Z-j:Z-ne:0;return{[E]:w[E]+I,data:{[E]:P,centerOffset:Z-P-I,...oe&&{alignmentOffset:I}},reset:oe}}}),w7=(o,n)=>({...S7(o),options:[o,n]}),E7={name:"hide",async fn(o){var h;const{width:n,height:a,x:i,y:l}=o.rects.reference,c=n===0&&a===0&&i===0&&l===0;return{data:{referenceHidden:((h=(await HV().fn(o)).data)==null?void 0:h.referenceHidden)||c}}}},Bm={sideX:"left",sideY:"top"},x7={name:"adaptiveOrigin",async fn(o){var k,U;const{x:n,y:a,rects:{floating:i},elements:{floating:l},platform:c,strategy:f,placement:h}=o,g=Gn(l),m=g.getComputedStyle(l);if(!(m.transitionDuration!=="0s"&&m.transitionDuration!==""))return{x:n,y:a,data:Bm};const p=await((k=c.getOffsetParent)==null?void 0:k.call(c,l));let v={width:0,height:0};if(f==="fixed"&&(g!=null&&g.visualViewport))v={width:g.visualViewport.width,height:g.visualViewport.height};else if(p===g){const M=fn(l);v={width:M.documentElement.clientWidth,height:M.documentElement.clientHeight}}else await((U=c.isElement)==null?void 0:U.call(c,p))&&(v=await c.getDimensions(p));const w=Xo(h);let E=n,T=a;w==="left"&&(E=v.width-(n+i.width)),w==="top"&&(T=v.height-(a+i.height));const C=w==="left"?"right":Bm.sideX,A=w==="top"?"bottom":Bm.sideY;return{x:E,y:T,data:{sideX:C,sideY:A}}}};function P_(o,n,a){const i=o==="inline-start"||o==="inline-end";return{top:"top",right:i?a?"inline-start":"inline-end":"right",bottom:"bottom",left:i?a?"inline-end":"inline-start":"left"}[n]}function gA(o,n,a){const{rects:i,placement:l}=o;return{side:P_(n,Xo(l),a),align:Hs(l)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function R7(o){var Un,D;const{anchor:n,positionMethod:a="absolute",side:i="bottom",sideOffset:l=0,align:c="center",alignOffset:f=0,collisionBoundary:h,collisionPadding:g=5,sticky:m=!1,arrowPadding:b=5,disableAnchorTracking:p=!1,keepMounted:v=!1,floatingRootContext:w,mounted:E,collisionAvoidance:T,shiftCrossAxis:C=!1,nodeId:A,adaptiveOrigin:k,lazyFlip:U=!1,externalTree:M}=o,[Y,$]=x.useState(null);!E&&Y!==null&&$(null);const _=T.side||"flip",z=T.align||"flip",te=T.fallbackAxisSide||"end",H=typeof n=="function"?n:void 0,J=it(H),N=H?J:n,j=Ha(n),Z=xw()==="rtl",P=Y||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":Z?"left":"right","inline-start":Z?"right":"left"}[i],oe=c==="center"?P:`${P}-${c}`;let I=g;const se=1,pe=i==="bottom"?se:0,L=i==="top"?se:0,ce=i==="right"?se:0,ie=i==="left"?se:0;typeof I=="number"?I={top:I+pe,right:I+ie,bottom:I+L,left:I+ce}:I&&(I={top:(I.top||0)+pe,right:(I.right||0)+ie,bottom:(I.bottom||0)+L,left:(I.left||0)+ce});const me={boundary:h==="clipping-ancestors"?"clippingAncestors":h,padding:I},Te=x.useRef(null),Ue=Ha(l),ve=Ha(f),at=[LV(G=>{const ge=gA(G,i,Z),ye=typeof Ue.current=="function"?Ue.current(ge):Ue.current,Ne=typeof ve.current=="function"?ve.current(ge):ve.current;return{mainAxis:ye,crossAxis:Ne,alignmentAxis:Ne}},[typeof l!="function"?l:0,typeof f!="function"?f:0,Z,i])],xe=z==="none"&&_!=="shift",he=!xe&&(m||C||_==="shift"),we=_==="none"?null:PV({...me,padding:{top:I.top+se,right:I.right+se,bottom:I.bottom+se,left:I.left+se},mainAxis:!C&&_==="flip",crossAxis:z==="flip"?"alignment":!1,fallbackAxisSideDirection:te}),De=xe?null:UV(G=>{const ge=fn(G.elements.floating).documentElement;return{...me,rootBoundary:C?{x:0,y:0,width:ge.clientWidth,height:ge.clientHeight}:void 0,mainAxis:z!=="none",crossAxis:he,limiter:m||C?void 0:zV(ye=>{if(!Te.current)return{};const{width:Ne,height:$e}=Te.current.getBoundingClientRect(),Se=Ur(Xo(ye.placement)),Ke=Se==="y"?Ne:$e,Ve=Se==="y"?I.left+I.right:I.top+I.bottom;return{offset:Ke/2+Ve/2}})}},[me,m,C,I,z]);_==="shift"||z==="shift"||c==="center"?at.push(De,we):at.push(we,De),at.push(jV({...me,apply({elements:{floating:G},rects:{reference:ge},availableWidth:ye,availableHeight:Ne}){const $e=G.style;$e.setProperty("--available-width",`${ye}px`),$e.setProperty("--available-height",`${Ne}px`),$e.setProperty("--anchor-width",`${ge.width}px`),$e.setProperty("--anchor-height",`${ge.height}px`)}}),w7(()=>({element:Te.current||document.createElement("div"),padding:b,offsetParent:"floating"}),[b]),{name:"transformOrigin",fn(G){var Fe,Qe,ut;const{elements:ge,middlewareData:ye,placement:Ne,rects:$e,y:Se}=G,Ke=Xo(Ne),Ve=Ur(Ke),Rt=Te.current,Cn=((Fe=ye.arrow)==null?void 0:Fe.x)||0,rn=((Qe=ye.arrow)==null?void 0:Qe.y)||0,xn=(Rt==null?void 0:Rt.clientWidth)||0,Qo=(Rt==null?void 0:Rt.clientHeight)||0,B=Cn+xn/2,Q=rn+Qo/2,ue=Math.abs(((ut=ye.shift)==null?void 0:ut.y)||0),Ee=$e.reference.height/2,Me=typeof l=="function"?l(gA(G,i,Z)):l,Je=ue>Me,Ze={top:`${B}px calc(100% + ${Me}px)`,bottom:`${B}px ${-Me}px`,left:`calc(100% + ${Me}px) ${Q}px`,right:`${-Me}px ${Q}px`}[Ke],je=`${B}px ${$e.reference.y+Ee-Se}px`;return ge.floating.style.setProperty("--transform-origin",he&&Ve==="y"&&Je?je:Ze),{}}},E7,k),pt(()=>{!E&&w&&w.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[E,w]);const Ye=x.useMemo(()=>({elementResize:!p&&typeof ResizeObserver<"u",layoutShift:!p&&typeof IntersectionObserver<"u"}),[p]),{refs:Re,elements:Ae,x:Le,y:tt,middlewareData:Ce,update:ot,placement:gt,context:yt,isPositioned:ht,floatingStyles:$t}=RF({rootContext:w,placement:oe,middleware:at,strategy:a,whileElementsMounted:v?void 0:(...G)=>rA(...G,Ye),nodeId:A,externalTree:M}),{sideX:on,sideY:bn}=Ce.adaptiveOrigin||Bm,bt=ht?a:"fixed",jt=x.useMemo(()=>{const G=k?{position:bt,[on]:Le,[bn]:tt}:{position:bt,...$t};return ht||(G.opacity=0),G},[k,bt,on,Le,bn,tt,$t,ht]),Ft=x.useRef(null);pt(()=>{if(!E)return;const G=j.current,ge=typeof G=="function"?G():G,Ne=(yA(ge)?ge.current:ge)||null||null;Ne!==Ft.current&&(Re.setPositionReference(Ne),Ft.current=Ne)},[E,Re,N,j]),x.useEffect(()=>{if(!E)return;const G=j.current;typeof G!="function"&&yA(G)&&G.current!==Ft.current&&(Re.setPositionReference(G.current),Ft.current=G.current)},[E,Re,N,j]),x.useEffect(()=>{if(v&&E&&Ae.domReference&&Ae.floating)return rA(Ae.domReference,Ae.floating,ot,Ye)},[v,E,Ae,ot,Ye]);const vn=Xo(gt),ln=P_(i,vn,Z),Zn=Hs(gt)||"center",hn=!!((Un=Ce.hide)!=null&&Un.referenceHidden);pt(()=>{U&&E&&ht&&$(vn)},[U,E,ht,vn]);const co=x.useMemo(()=>{var G,ge;return{position:"absolute",top:(G=Ce.arrow)==null?void 0:G.y,left:(ge=Ce.arrow)==null?void 0:ge.x}},[Ce.arrow]),uo=((D=Ce.arrow)==null?void 0:D.centerOffset)!==0;return x.useMemo(()=>({positionerStyles:jt,arrowStyles:co,arrowRef:Te,arrowUncentered:uo,side:ln,align:Zn,physicalSide:vn,anchorHidden:hn,refs:Re,context:yt,isPositioned:ht,update:ot}),[jt,co,Te,uo,ln,Zn,vn,hn,Re,yt,ht,ot])}function yA(o){return o!=null&&"current"in o}function j_(o){return o==="starting"?gB:hr}const H_=x.forwardRef(function(n,a){const{render:i,className:l,anchor:c,positionMethod:f="absolute",side:h="top",align:g="center",sideOffset:m=0,alignOffset:b=0,collisionBoundary:p="clipping-ancestors",collisionPadding:v=5,arrowPadding:w=5,sticky:E=!1,disableAnchorTracking:T=!1,collisionAvoidance:C=bB,...A}=n,k=th(),U=v7(),M=k.useState("open"),Y=k.useState("mounted"),$=k.useState("trackCursorAxis"),_=k.useState("disableHoverablePopup"),z=k.useState("floatingRootContext"),te=k.useState("instantType"),H=k.useState("transitionStatus"),J=k.useState("hasViewport"),N=R7({anchor:c,positionMethod:f,floatingRootContext:z,mounted:Y,side:h,sideOffset:m,align:g,alignOffset:b,collisionBoundary:p,collisionPadding:v,sticky:E,arrowPadding:w,disableAnchorTracking:T,keepMounted:U,collisionAvoidance:C,adaptiveOrigin:J?x7:void 0}),j=x.useMemo(()=>{const oe={};return(!M||$==="both"||_)&&(oe.pointerEvents="none"),{role:"presentation",hidden:!Y,style:{...N.positionerStyles,...oe}}},[M,$,_,Y,N.positionerStyles]),ne=x.useMemo(()=>({open:M,side:N.side,align:N.align,anchorHidden:N.anchorHidden,instant:$!=="none"?"tracking-cursor":te}),[M,N.side,N.align,N.anchorHidden,$,te]),Z=x.useMemo(()=>({...ne,arrowRef:N.arrowRef,arrowStyles:N.arrowStyles,arrowUncentered:N.arrowUncentered}),[ne,N.arrowRef,N.arrowStyles,N.arrowUncentered]),P=Ln("div",n,{state:ne,props:[j,j_(H),A],ref:[a,k.useStateSetter("positionerElement")],stateAttributesMapping:eh});return nn.jsx(Ew.Provider,{value:Z,children:P})});H_.displayName="TooltipPositioner";const T7={...eh,...Kf},I_=x.forwardRef(function(n,a){const{className:i,render:l,...c}=n,f=th(),{side:h,align:g}=U_(),m=f.useState("open"),b=f.useState("instantType"),p=f.useState("transitionStatus"),v=f.useState("popupProps"),w=f.useState("floatingRootContext");bg({open:m,ref:f.context.popupRef,onComplete(){var k,U;m&&((U=(k=f.context).onOpenChangeComplete)==null||U.call(k,!0))}});const E=f.useState("disabled"),T=f.useState("closeDelay");return AF(w,{enabled:!E,closeDelay:T}),Ln("div",n,{state:{open:m,side:h,align:g,instant:b,transitionStatus:p},ref:[a,f.context.popupRef,f.useStateSetter("popupElement")],props:[v,j_(p),c],stateAttributesMapping:T7})});I_.displayName="TooltipPopup";const B_=x.forwardRef(function(n,a){const{className:i,render:l,...c}=n,h=th().useState("instantType"),{open:g,arrowRef:m,side:b,align:p,arrowUncentered:v,arrowStyles:w}=U_();return Ln("div",n,{state:{open:g,side:b,align:p,uncentered:v,instant:h},ref:[a,m],props:[{style:w,"aria-hidden":!0},c],stateAttributesMapping:eh})});B_.displayName="TooltipArrow";function C7({...o}){return re.jsxDEV(N_,{"data-slot":"tooltip",...o},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/tooltip.tsx",lineNumber:19,columnNumber:10},this)}function O7({...o}){return re.jsxDEV(__,{"data-slot":"tooltip-trigger",...o},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/tooltip.tsx",lineNumber:23,columnNumber:10},this)}function D7({className:o,side:n="top",sideOffset:a=4,align:i="center",alignOffset:l=0,children:c,...f}){return re.jsxDEV(L_,{children:re.jsxDEV(H_,{align:i,alignOffset:l,side:n,sideOffset:a,className:"isolate z-50",children:re.jsxDEV(I_,{"data-slot":"tooltip-content",className:Pt("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-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin)",o),...f,children:[c,re.jsxDEV(B_,{className:"size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 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,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/tooltip.tsx",lineNumber:57,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/tooltip.tsx",lineNumber:48,columnNumber:9},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/tooltip.tsx",lineNumber:41,columnNumber:7},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/tooltip.tsx",lineNumber:40,columnNumber:5},this)}const A7="sidebar_state",N7=3600*24*7,M7="16rem",_7="18rem",k7="3rem",L7="b",V_=x.createContext(null);function Au(){const o=x.useContext(V_);if(!o)throw new Error("useSidebar must be used within a SidebarProvider.");return o}function U7({defaultOpen:o=!0,open:n,onOpenChange:a,className:i,style:l,children:c,...f}){const h=o6(),[g,m]=x.useState(!1),[b,p]=x.useState(o),v=n??b,w=x.useCallback(A=>{const k=typeof A=="function"?A(v):A;a?a(k):p(k),document.cookie=`${A7}=${k}; path=/; max-age=${N7}`},[a,v]),E=x.useCallback(()=>h?m(A=>!A):w(A=>!A),[h,w,m]);x.useEffect(()=>{const A=k=>{k.key===L7&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),E())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[E]);const T=v?"expanded":"collapsed",C=x.useMemo(()=>({state:T,open:v,setOpen:w,isMobile:h,openMobile:g,setOpenMobile:m,toggleSidebar:E}),[T,v,w,h,g,m,E]);return re.jsxDEV(V_.Provider,{value:C,children:re.jsxDEV("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":M7,"--sidebar-width-icon":k7,...l},className:Pt("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",i),...f,children:c},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:129,columnNumber:7},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:128,columnNumber:5},this)}function z7({side:o="left",variant:n="sidebar",collapsible:a="offcanvas",className:i,children:l,dir:c,...f}){const{isMobile:h,state:g,openMobile:m,setOpenMobile:b}=Au();return a==="none"?re.jsxDEV("div",{"data-slot":"sidebar",className:Pt("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",i),...f,children:l},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:167,columnNumber:7},this):h?re.jsxDEV(i7,{open:m,onOpenChange:b,...f,children:re.jsxDEV(c7,{dir:c,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true","data-testid":"mobile-sidebar-sheet",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":_7},side:o,children:[re.jsxDEV(u7,{className:"sr-only",children:[re.jsxDEV(d7,{children:"Sidebar"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:198,columnNumber:13},this),re.jsxDEV(f7,{children:"Displays the mobile sidebar."},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:199,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:197,columnNumber:11},this),re.jsxDEV("div",{className:"flex h-full w-full flex-col","data-testid":"sidebar",style:{paddingBottom:"var(--tmex-safe-area-bottom)"},children:l},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:201,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:183,columnNumber:9},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:182,columnNumber:7},this):re.jsxDEV("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":g,"data-collapsible":g==="collapsed"?a:"","data-variant":n,"data-side":o,"data-slot":"sidebar",children:[re.jsxDEV("div",{"data-slot":"sidebar-gap",className:Pt("transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:223,columnNumber:7},this),re.jsxDEV("div",{"data-slot":"sidebar-container","data-side":o,className:Pt("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",n==="floating"||n==="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",i),...f,children:re.jsxDEV("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner","data-testid":"sidebar",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",style:{paddingBottom:"var(--tmex-safe-area-bottom)"},children:l},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:247,columnNumber:9},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:234,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:214,columnNumber:5},this)}function P7({className:o,onClick:n,...a}){const{toggleSidebar:i}=Au();return re.jsxDEV(ow,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:Pt(o),onClick:l=>{n==null||n(l),i()},...a,children:[re.jsxDEV(F5,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:282,columnNumber:7},this),re.jsxDEV("span",{className:"sr-only",children:"Toggle Sidebar"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:283,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:270,columnNumber:5},this)}function j7({className:o,...n}){return re.jsxDEV("main",{"data-slot":"sidebar-inset",className:Pt("bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 relative flex w-full flex-1 flex-col",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:315,columnNumber:5},this)}function H7({className:o,...n}){return re.jsxDEV("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:Pt("gap-2 p-2 flex flex-col",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:342,columnNumber:5},this)}function I7({className:o,...n}){return re.jsxDEV("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:Pt("gap-2 p-2 flex flex-col",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:353,columnNumber:5},this)}function B7({className:o,...n}){return re.jsxDEV("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:Pt("no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:378,columnNumber:5},this)}function F_({className:o,...n}){return re.jsxDEV("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:Pt("p-2 relative flex w-full min-w-0 flex-col",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:392,columnNumber:5},this)}function V7({className:o,render:n,...a}){return Jf({defaultTagName:"div",props:Ql({className:Pt("text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium 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",o)},a),render:n,state:{slot:"sidebar-group-label",sidebar:"group-label"}})}function F7({className:o,...n}){return re.jsxDEV("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:Pt("gap-0 flex w-full min-w-0 flex-col",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:468,columnNumber:5},this)}function Y7({className:o,...n}){return re.jsxDEV("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:Pt("group/menu-item relative",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:479,columnNumber:5},this)}const $7=tw("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-md p-2 text-left text-sm 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-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function q7({render:o,isActive:n=!1,variant:a="default",size:i="default",tooltip:l,className:c,...f}){const{isMobile:h,state:g}=Au(),m=Jf({defaultTagName:"button",props:Ql({className:Pt($7({variant:a,size:i}),c)},f),render:l?O7:o,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:i,active:n}});return l?(typeof l=="string"&&(l={children:l}),re.jsxDEV(C7,{children:[m,re.jsxDEV(D7,{side:"right",align:"center",hidden:g!=="collapsed"||h,...l},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:553,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:551,columnNumber:5},this)):m}function G7({className:o,render:n,showOnHover:a=!1,...i}){return Jf({defaultTagName:"button",props:Ql({className:Pt("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 aspect-square w-5 rounded-md p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 focus-visible:ring-2 [&>svg]:size-4 flex items-center justify-center outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 md:after:hidden [&>svg]:shrink-0",a&&"peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 aria-expanded:opacity-100 md:opacity-0",o)},i),render:n,state:{slot:"sidebar-menu-action",sidebar:"menu-action"}})}function X7({className:o,...n}){return re.jsxDEV("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:Pt("border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden flex min-w-0 flex-col",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:650,columnNumber:5},this)}function Q7({className:o,...n}){return re.jsxDEV("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:Pt("group/menu-sub-item relative",o),...n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/sidebar.tsx",lineNumber:664,columnNumber:5},this)}function W7({render:o,size:n="md",isActive:a=!1,className:i,...l}){return Jf({defaultTagName:"a",props:Ql({className:Pt("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 focus-visible:ring-2 data-[size=md]:text-sm data-[size=sm]:text-xs [&>svg]:size-4 flex min-w-0 -translate-x-px items-center overflow-hidden outline-hidden group-data-[collapsible=icon]:hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0",i)},l),render:o,state:{slot:"sidebar-menu-sub-button",sidebar:"menu-sub-button",size:n,active:a}})}function ag({children:o,onClick:n,...a}){const{isMobile:i,setOpenMobile:l}=Au(),c=f=>{i&&l(!1),n==null||n(f)};return re.jsxDEV(YS,{...a,onClick:c,children:o},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-link.tsx",lineNumber:19,columnNumber:5},this)}function K7({items:o}){const{t:n}=dg();return re.jsxDEV(F_,{children:re.jsxDEV(F7,{children:o.map(a=>{var i,l;return re.jsxDEV(e6,{defaultOpen:a.isActive,render:re.jsxDEV(Y7,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:35,columnNumber:77},this),children:[re.jsxDEV(ag,{to:a.url,children:re.jsxDEV(q7,{tooltip:n(a.title),children:[re.jsxDEV(a.icon,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:38,columnNumber:17},this),re.jsxDEV("span",{children:n(a.title)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:39,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:37,columnNumber:15},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:36,columnNumber:13},this),(i=a.items)!=null&&i.length?re.jsxDEV(re.Fragment,{children:[re.jsxDEV(t6,{render:re.jsxDEV(G7,{className:"data-[state=open]:rotate-90"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:44,columnNumber:45},this),children:[re.jsxDEV(z5,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:45,columnNumber:19},this),re.jsxDEV("span",{className:"sr-only",children:"Toggle"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:46,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:44,columnNumber:17},this),re.jsxDEV(n6,{children:re.jsxDEV(X7,{children:(l=a.items)==null?void 0:l.map(c=>re.jsxDEV(Q7,{children:re.jsxDEV(ag,{to:c.url,children:re.jsxDEV(W7,{children:re.jsxDEV("span",{children:n(c.title)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:54,columnNumber:29},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:53,columnNumber:27},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:52,columnNumber:25},this)},c.title,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:51,columnNumber:23},this))},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:49,columnNumber:19},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:48,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:43,columnNumber:15},this):null]},a.title,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:35,columnNumber:11},this)})},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:33,columnNumber:7},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/nav-main.tsx",lineNumber:32,columnNumber:5},this)}const J7=tw("h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive overflow-hidden group/badge",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function Z7({className:o,variant:n="default",render:a,...i}){return Jf({defaultTagName:"span",props:Ql({className:Pt(J7({className:o,variant:n}))},i),render:a,state:{slot:"badge",variant:n}})}const Rw=x.createContext(void 0);Rw.displayName="ScrollAreaRootContext";function wg(){const o=x.useContext(Rw);if(o===void 0)throw new Error("Base UI: ScrollAreaRootContext is missing. ScrollArea parts must be placed within <ScrollArea.Root>.");return o}let ig=(function(o){return o.scrollAreaCornerHeight="--scroll-area-corner-height",o.scrollAreaCornerWidth="--scroll-area-corner-width",o})({});const Mm=500,bA=16;function zr(o,n,a){if(!o)return 0;const i=getComputedStyle(o),l=a==="x"?"Inline":"Block";return a==="x"&&n==="margin"?parseFloat(i[`${n}InlineStart`])*2:parseFloat(i[`${n}${l}Start`])+parseFloat(i[`${n}${l}End`])}let eY=(function(o){return o.orientation="data-orientation",o.hovering="data-hovering",o.scrolling="data-scrolling",o.hasOverflowX="data-has-overflow-x",o.hasOverflowY="data-has-overflow-y",o.overflowXStart="data-overflow-x-start",o.overflowXEnd="data-overflow-x-end",o.overflowYStart="data-overflow-y-start",o.overflowYEnd="data-overflow-y-end",o})({});const _m="base-ui-disable-scrollbar",Tw={className:_m,getElement(o){return nn.jsx("style",{nonce:o,href:_m,precedence:"base-ui:low",children:`.${_m}{scrollbar-width:none}.${_m}::-webkit-scrollbar{display:none}`})}};Tw.getElement.displayName="styleDisableScrollbar.getElement";let Zc=(function(o){return o.scrolling="data-scrolling",o.hasOverflowX="data-has-overflow-x",o.hasOverflowY="data-has-overflow-y",o.overflowXStart="data-overflow-x-start",o.overflowXEnd="data-overflow-x-end",o.overflowYStart="data-overflow-y-start",o.overflowYEnd="data-overflow-y-end",o})({});const Cw={hasOverflowX:o=>o?{[Zc.hasOverflowX]:""}:null,hasOverflowY:o=>o?{[Zc.hasOverflowY]:""}:null,overflowXStart:o=>o?{[Zc.overflowXStart]:""}:null,overflowXEnd:o=>o?{[Zc.overflowXEnd]:""}:null,overflowYStart:o=>o?{[Zc.overflowYStart]:""}:null,overflowYEnd:o=>o?{[Zc.overflowYEnd]:""}:null,cornerHidden:()=>null},Y_=x.createContext(void 0);Y_.displayName="CSPContext";const tY={disableStyleElements:!1};function nY(){return x.useContext(Y_)??tY}const oY={x:0,y:0},vA={width:0,height:0},rY={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},aY={x:!1,y:!1,corner:!1},$_=x.forwardRef(function(n,a){const{render:i,className:l,overflowEdgeThreshold:c,...f}=n,h=iY(c),g=Wf(),m=Di(),b=Di(),{nonce:p,disableStyleElements:v}=nY(),[w,E]=x.useState(!1),[T,C]=x.useState(!1),[A,k]=x.useState(!1),[U,M]=x.useState(!1),[Y,$]=x.useState(vA),[_,z]=x.useState(vA),[te,H]=x.useState(rY),[J,N]=x.useState(aY),j=x.useRef(null),ne=x.useRef(null),Z=x.useRef(null),P=x.useRef(null),oe=x.useRef(null),I=x.useRef(null),se=x.useRef(null),pe=x.useRef(!1),L=x.useRef(0),ce=x.useRef(0),ie=x.useRef(0),me=x.useRef(0),Te=x.useRef("vertical"),Ue=x.useRef(oY),ve=it(Ae=>{const Le=Ae.x-Ue.current.x,tt=Ae.y-Ue.current.y;Ue.current=Ae,tt!==0&&(k(!0),m.start(Mm,()=>{k(!1)})),Le!==0&&(C(!0),b.start(Mm,()=>{C(!1)}))}),ze=it(Ae=>{Ae.button===0&&(pe.current=!0,L.current=Ae.clientY,ce.current=Ae.clientX,Te.current=Ae.currentTarget.getAttribute(eY.orientation),ne.current&&(ie.current=ne.current.scrollTop,me.current=ne.current.scrollLeft),oe.current&&Te.current==="vertical"&&oe.current.setPointerCapture(Ae.pointerId),I.current&&Te.current==="horizontal"&&I.current.setPointerCapture(Ae.pointerId))}),Pe=it(Ae=>{if(!pe.current)return;const Le=Ae.clientY-L.current,tt=Ae.clientX-ce.current;if(ne.current){const Ce=ne.current.scrollHeight,ot=ne.current.clientHeight,gt=ne.current.scrollWidth,yt=ne.current.clientWidth;if(oe.current&&Z.current&&Te.current==="vertical"){const ht=zr(Z.current,"padding","y"),$t=zr(oe.current,"margin","y"),on=oe.current.offsetHeight,bn=Z.current.offsetHeight-on-ht-$t,bt=Le/bn;ne.current.scrollTop=ie.current+bt*(Ce-ot),Ae.preventDefault(),k(!0),m.start(Mm,()=>{k(!1)})}if(I.current&&P.current&&Te.current==="horizontal"){const ht=zr(P.current,"padding","x"),$t=zr(I.current,"margin","x"),on=I.current.offsetWidth,bn=P.current.offsetWidth-on-ht-$t,bt=tt/bn;ne.current.scrollLeft=me.current+bt*(gt-yt),Ae.preventDefault(),C(!0),b.start(Mm,()=>{C(!1)})}}}),at=it(Ae=>{pe.current=!1,oe.current&&Te.current==="vertical"&&oe.current.releasePointerCapture(Ae.pointerId),I.current&&Te.current==="horizontal"&&I.current.releasePointerCapture(Ae.pointerId)});function xe(Ae){M(Ae.pointerType==="touch")}function he(Ae){if(xe(Ae),Ae.pointerType!=="touch"){const Le=Yt(j.current,Ae.target);E(Le)}}const we=x.useMemo(()=>({scrolling:T||A,hasOverflowX:!J.x,hasOverflowY:!J.y,overflowXStart:te.xStart,overflowXEnd:te.xEnd,overflowYStart:te.yStart,overflowYEnd:te.yEnd,cornerHidden:J.corner}),[T,A,J.x,J.y,J.corner,te]),De={role:"presentation",onPointerEnter:he,onPointerMove:he,onPointerDown:xe,onPointerLeave(){E(!1)},style:{position:"relative",[ig.scrollAreaCornerHeight]:`${Y.height}px`,[ig.scrollAreaCornerWidth]:`${Y.width}px`}},Ye=Ln("div",n,{state:we,ref:[a,j],props:[De,f],stateAttributesMapping:Cw}),Re=x.useMemo(()=>({handlePointerDown:ze,handlePointerMove:Pe,handlePointerUp:at,handleScroll:ve,cornerSize:Y,setCornerSize:$,thumbSize:_,setThumbSize:z,touchModality:U,cornerRef:se,scrollingX:T,setScrollingX:C,scrollingY:A,setScrollingY:k,hovering:w,setHovering:E,viewportRef:ne,rootRef:j,scrollbarYRef:Z,scrollbarXRef:P,thumbYRef:oe,thumbXRef:I,rootId:g,hiddenState:J,setHiddenState:N,overflowEdges:te,setOverflowEdges:H,viewportState:we,overflowEdgeThreshold:h}),[ze,Pe,at,ve,Y,_,U,T,C,A,k,w,E,g,J,te,we,h]);return nn.jsxs(Rw.Provider,{value:Re,children:[!v&&Tw.getElement(p),Ye]})});$_.displayName="ScrollAreaRoot";function iY(o){if(typeof o=="number"){const n=Math.max(0,o);return{xStart:n,xEnd:n,yStart:n,yEnd:n}}return{xStart:Math.max(0,(o==null?void 0:o.xStart)||0),xEnd:Math.max(0,(o==null?void 0:o.xEnd)||0),yStart:Math.max(0,(o==null?void 0:o.yStart)||0),yEnd:Math.max(0,(o==null?void 0:o.yEnd)||0)}}const q_=x.createContext(void 0);q_.displayName="ScrollAreaViewportContext";function tu(o,n=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(o,a))}function sY(o,n){if(typeof IntersectionObserver>"u")return()=>{};const a=new IntersectionObserver(i=>{i.forEach(l=>{l.intersectionRatio>0&&(n(),a.disconnect())})});return a.observe(o),()=>{a.disconnect()}}let _s=(function(o){return o.scrollAreaOverflowXStart="--scroll-area-overflow-x-start",o.scrollAreaOverflowXEnd="--scroll-area-overflow-x-end",o.scrollAreaOverflowYStart="--scroll-area-overflow-y-start",o.scrollAreaOverflowYEnd="--scroll-area-overflow-y-end",o})({});const SA=1;function wA(o,n){if(n<=0)return 0;const a=tu(o,0,n),i=a,l=n-a,c=i<=SA,f=l<=SA;return c&&f?i<=l?0:n:c?0:f?n:a}let EA=!1;function lY(){EA||rw||(typeof CSS<"u"&&"registerProperty"in CSS&&[_s.scrollAreaOverflowXStart,_s.scrollAreaOverflowXEnd,_s.scrollAreaOverflowYStart,_s.scrollAreaOverflowYEnd].forEach(o=>{try{CSS.registerProperty({name:o,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),EA=!0)}const G_=x.forwardRef(function(n,a){const{render:i,className:l,...c}=n,{viewportRef:f,scrollbarYRef:h,scrollbarXRef:g,thumbYRef:m,thumbXRef:b,cornerRef:p,cornerSize:v,setCornerSize:w,setThumbSize:E,rootId:T,setHiddenState:C,hiddenState:A,handleScroll:k,setHovering:U,setOverflowEdges:M,overflowEdges:Y,overflowEdgeThreshold:$,scrollingX:_,scrollingY:z}=wg(),te=xw(),H=x.useRef(!0),J=Di(),N=Di(),j=it(()=>{const se=f.current,pe=h.current,L=g.current,ce=m.current,ie=b.current,me=p.current;if(!se)return;const Te=se.scrollHeight,Ue=se.scrollWidth,ve=se.clientHeight,ze=se.clientWidth,Pe=se.scrollTop,at=se.scrollLeft;if(Te===0||Ue===0)return;const xe=ve>=Te,he=ze>=Ue,we=ze/Ue,De=ve/Te,Ye=Math.max(0,Ue-ze),Re=Math.max(0,Te-ve);let Ae=0,Le=0;if(!he){let ye=0;te==="rtl"?ye=tu(-at,0,Ye):ye=tu(at,0,Ye),Ae=wA(ye,Ye),Le=Ye-Ae}const tt=xe?0:tu(Pe,0,Re),Ce=xe?0:wA(tt,Re),ot=xe?0:Re-Ce,gt=he?0:ze,yt=xe?0:ve;let ht=0,$t=0;!he&&!xe&&(ht=(pe==null?void 0:pe.offsetWidth)||0,$t=(L==null?void 0:L.offsetHeight)||0);const on=v.width===0&&v.height===0,bn=on?ht:0,bt=on?$t:0,jt=zr(L,"padding","x"),Ft=zr(pe,"padding","y"),vn=zr(ie,"margin","x"),ln=zr(ce,"margin","y"),Zn=gt-jt-vn,hn=yt-Ft-ln,co=L?Math.min(L.offsetWidth-bn,Zn):Zn,uo=pe?Math.min(pe.offsetHeight-bt,hn):hn,Un=Math.max(bA,co*we),D=Math.max(bA,uo*De);if(E(ye=>ye.height===D&&ye.width===Un?ye:{width:Un,height:D}),pe&&ce){const ye=pe.offsetHeight-D-Ft-ln,Ne=Te-ve,$e=Ne===0?0:Pe/Ne,Se=Math.min(ye,Math.max(0,$e*ye));ce.style.transform=`translate3d(0,${Se}px,0)`}if(L&&ie){const ye=L.offsetWidth-Un-jt-vn,Ne=Ue-ze,$e=Ne===0?0:at/Ne,Se=te==="rtl"?tu($e*ye,-ye,0):tu($e*ye,0,ye);ie.style.transform=`translate3d(${Se}px,0,0)`}const G=[[_s.scrollAreaOverflowXStart,Ae],[_s.scrollAreaOverflowXEnd,Le],[_s.scrollAreaOverflowYStart,Ce],[_s.scrollAreaOverflowYEnd,ot]];for(const[ye,Ne]of G)se.style.setProperty(ye,`${Ne}px`);me&&(he||xe?w({width:0,height:0}):!he&&!xe&&w({width:ht,height:$t})),C(ye=>{const Ne=xe||he;return ye.y===xe&&ye.x===he&&ye.corner===Ne?ye:{y:xe,x:he,corner:Ne}});const ge={xStart:!he&&Ae>$.xStart,xEnd:!he&&Le>$.xEnd,yStart:!xe&&Ce>$.yStart,yEnd:!xe&&ot>$.yEnd};M(ye=>ye.xStart===ge.xStart&&ye.xEnd===ge.xEnd&&ye.yStart===ge.yStart&&ye.yEnd===ge.yEnd?ye:ge)});pt(()=>{if(!f.current)return;lY();let se=!1;return sY(f.current,()=>{if(!se){se=!0;return}j()})},[j,f]),pt(()=>{queueMicrotask(j)},[j,A,te]),pt(()=>{var se;(se=f.current)!=null&&se.matches(":hover")&&U(!0)},[f,U]),x.useEffect(()=>{const se=f.current;if(typeof ResizeObserver>"u"||!se)return;let pe=!1;const L=new ResizeObserver(()=>{if(!pe){pe=!0;return}j()});return L.observe(se),N.start(0,()=>{const ce=se.getAnimations({subtree:!0});ce.length!==0&&Promise.allSettled(ce.map(ie=>ie.finished)).then(j).catch(()=>{})}),()=>{L.disconnect(),N.clear()}},[j,f,N]);function ne(){H.current=!1}const Z={role:"presentation",...T&&{"data-id":`${T}-viewport`},...(!A.x||!A.y)&&{tabIndex:0},className:Tw.className,style:{overflow:"scroll"},onScroll(){f.current&&(j(),H.current||k({x:f.current.scrollLeft,y:f.current.scrollTop}),J.start(100,()=>{H.current=!0}))},onWheel:ne,onTouchMove:ne,onPointerMove:ne,onPointerEnter:ne,onKeyDown:ne},P=x.useMemo(()=>({scrolling:_||z,hasOverflowX:!A.x,hasOverflowY:!A.y,overflowXStart:Y.xStart,overflowXEnd:Y.xEnd,overflowYStart:Y.yStart,overflowYEnd:Y.yEnd,cornerHidden:A.corner}),[_,z,A.x,A.y,A.corner,Y]),oe=Ln("div",n,{ref:[a,f],state:P,props:[Z,c],stateAttributesMapping:Cw}),I=x.useMemo(()=>({computeThumbPosition:j}),[j]);return nn.jsx(q_.Provider,{value:I,children:oe})});G_.displayName="ScrollAreaViewport";const Ow=x.createContext(void 0);Ow.displayName="ScrollAreaScrollbarContext";function cY(){const o=x.useContext(Ow);if(o===void 0)throw new Error("Base UI: ScrollAreaScrollbarContext is missing. ScrollAreaScrollbar parts must be placed within <ScrollArea.Scrollbar>.");return o}let sg=(function(o){return o.scrollAreaThumbHeight="--scroll-area-thumb-height",o.scrollAreaThumbWidth="--scroll-area-thumb-width",o})({});const X_=x.forwardRef(function(n,a){const{render:i,className:l,orientation:c="vertical",keepMounted:f=!1,...h}=n,{hovering:g,scrollingX:m,scrollingY:b,hiddenState:p,overflowEdges:v,scrollbarYRef:w,scrollbarXRef:E,viewportRef:T,thumbYRef:C,thumbXRef:A,handlePointerDown:k,handlePointerUp:U,rootId:M,thumbSize:Y}=wg(),$={hovering:g,scrolling:{horizontal:m,vertical:b}[c],orientation:c,hasOverflowX:!p.x,hasOverflowY:!p.y,overflowXStart:v.xStart,overflowXEnd:v.xEnd,overflowYStart:v.yStart,overflowYEnd:v.yEnd,cornerHidden:p.corner},_=xw();x.useEffect(()=>{const j=T.current,ne=c==="vertical"?w.current:E.current;if(!ne)return;function Z(P){if(!(!j||!ne||P.ctrlKey)){if(P.preventDefault(),c==="vertical"){if(j.scrollTop===0&&P.deltaY<0)return}else if(j.scrollLeft===0&&P.deltaX<0)return;if(c==="vertical"){if(j.scrollTop===j.scrollHeight-j.clientHeight&&P.deltaY>0)return}else if(j.scrollLeft===j.scrollWidth-j.clientWidth&&P.deltaX>0)return;c==="vertical"?j.scrollTop+=P.deltaY:j.scrollLeft+=P.deltaX}}return ne.addEventListener("wheel",Z,{passive:!1}),()=>{ne.removeEventListener("wheel",Z)}},[c,E,w,T]);const z={...M&&{"data-id":`${M}-scrollbar`},onPointerDown(j){if(j.button===0&&j.currentTarget===j.target&&T.current){if(C.current&&w.current&&c==="vertical"){const ne=zr(C.current,"margin","y"),Z=zr(w.current,"padding","y"),P=C.current.offsetHeight,oe=w.current.getBoundingClientRect(),I=j.clientY-oe.top-P/2-Z+ne/2,se=T.current.scrollHeight,pe=T.current.clientHeight,L=w.current.offsetHeight-P-Z-ne,ie=I/L*(se-pe);T.current.scrollTop=ie}if(A.current&&E.current&&c==="horizontal"){const ne=zr(A.current,"margin","x"),Z=zr(E.current,"padding","x"),P=A.current.offsetWidth,oe=E.current.getBoundingClientRect(),I=j.clientX-oe.left-P/2-Z+ne/2,se=T.current.scrollWidth,pe=T.current.clientWidth,L=E.current.offsetWidth-P-Z-ne,ce=I/L;let ie;_==="rtl"?(ie=(1-ce)*(se-pe),T.current.scrollLeft<=0&&(ie=-ie)):ie=ce*(se-pe),T.current.scrollLeft=ie}k(j)}},onPointerUp:U,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",...c==="vertical"&&{top:0,bottom:`var(${ig.scrollAreaCornerHeight})`,insetInlineEnd:0,[sg.scrollAreaThumbHeight]:`${Y.height}px`},...c==="horizontal"&&{insetInlineStart:0,insetInlineEnd:`var(${ig.scrollAreaCornerWidth})`,bottom:0,[sg.scrollAreaThumbWidth]:`${Y.width}px`}}},te=Ln("div",n,{ref:[a,c==="vertical"?w:E],state:$,props:[z,h],stateAttributesMapping:Cw}),H=x.useMemo(()=>({orientation:c}),[c]),J=c==="vertical"?p.y:p.x;return f||!J?nn.jsx(Ow.Provider,{value:H,children:te}):null});X_.displayName="ScrollAreaScrollbar";const Q_=x.forwardRef(function(n,a){const{render:i,className:l,...c}=n,{thumbYRef:f,thumbXRef:h,handlePointerDown:g,handlePointerMove:m,handlePointerUp:b,setScrollingX:p,setScrollingY:v}=wg(),{orientation:w}=cY();return Ln("div",n,{ref:[a,w==="vertical"?f:h],state:{orientation:w},props:[{onPointerDown:g,onPointerMove:m,onPointerUp(C){w==="vertical"&&v(!1),w==="horizontal"&&p(!1),b(C)},style:{...w==="vertical"&&{height:`var(${sg.scrollAreaThumbHeight})`},...w==="horizontal"&&{width:`var(${sg.scrollAreaThumbWidth})`}}},c]})});Q_.displayName="ScrollAreaThumb";const W_=x.forwardRef(function(n,a){const{render:i,className:l,...c}=n,{cornerRef:f,cornerSize:h,hiddenState:g}=wg(),m=Ln("div",n,{ref:[a,f],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:h.width,height:h.height}},c]});return g.corner?null:m});W_.displayName="ScrollAreaCorner";function uY({className:o,children:n,...a}){return re.jsxDEV($_,{"data-slot":"scroll-area",className:Pt("relative",o),...a,children:[re.jsxDEV(G_,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:n},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/scroll-area.tsx",lineNumber:16,columnNumber:7},this),re.jsxDEV(dY,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/scroll-area.tsx",lineNumber:22,columnNumber:7},this),re.jsxDEV(W_,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/scroll-area.tsx",lineNumber:23,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/scroll-area.tsx",lineNumber:11,columnNumber:5},this)}function dY({className:o,orientation:n="vertical",...a}){return re.jsxDEV(X_,{"data-slot":"scroll-area-scrollbar","data-orientation":n,orientation:n,className:Pt("data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent flex touch-none p-px transition-colors select-none","[@media(any-pointer:coarse)]:hidden",o),...a,children:re.jsxDEV(Q_,{"data-slot":"scroll-area-thumb",className:"rounded-full bg-border relative flex-1"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/scroll-area.tsx",lineNumber:45,columnNumber:7},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/ui/scroll-area.tsx",lineNumber:34,columnNumber:5},this)}function QY(o){return o}function fY(o){return encodeURIComponent(o)}function hY(){const{t:o}=dg(),n=Ni(),a=bN(),{isMobile:i,setOpenMobile:l}=Au(),{toggleDevice:c}=D5(),f=Af("/devices/:deviceId/windows/:windowId/panes/:paneId",n.pathname),h=f==null?void 0:f.params.deviceId,g=f==null?void 0:f.params.windowId,m=f==null?void 0:f.params.paneId,b=Ei(H=>H.snapshots),p=Ei(H=>H.connectedDevices),v=Ei(H=>H.closeWindow),w=Ei(H=>H.closePane),E=Lf(H=>{var J;return((J=H.settings)==null?void 0:J.language)??"en_US"}),{data:T}=R3({queryKey:["devices"],queryFn:async()=>{const H=await fetch("/api/devices");if(!H.ok)throw new Error("Failed to fetch devices");return H.json()},throwOnError:!1}),C=x.useCallback((H,J)=>{a(H,{replace:(J==null?void 0:J.replace)??!0}),i&&l(!1)},[a,i,l]),A=x.useCallback((H,J,N)=>{U.current=null,window.dispatchEvent(new CustomEvent("tmex:user-initiated-selection",{detail:{deviceId:H,windowId:J,paneId:N}})),C(`/devices/${H}/windows/${J}/panes/${fY(N)}`)},[C]),k=Ei(H=>H.selectWindow),U=x.useRef(null);x.useEffect(()=>{var oe,I;const H=U.current;if(!H)return;if(Date.now()-H.at>5e3){U.current=null;return}const{deviceId:J,windowId:N}=H,j=b[J],ne=(oe=j==null?void 0:j.session)==null?void 0:oe.windows;if(!ne)return;const Z=ne.find(se=>se.id===N);if(!((I=Z==null?void 0:Z.panes)!=null&&I.length))return;U.current=null;const P=Z.panes.find(se=>se.active)??Z.panes[0];A(J,N,P.id)},[b,A]);const M=x.useCallback((H,J,N)=>{k(H,J);const j=N.find(ne=>ne.active)??N[0];j?(A(H,J,j.id),U.current=null):U.current={deviceId:H,windowId:J,at:Date.now()}},[A,k]),Y=x.useCallback((H,J)=>{J?H===h&&C("/devices"):C(`/devices/${H}`),c(H,J)},[c,h,C]),$=x.useCallback((H,J)=>{H===h&&J===g&&C("/devices"),v(H,J)},[v,h,g,C]),_=x.useCallback(H=>{Ei.getState().createWindow(H)},[]),z=(T==null?void 0:T.devices)??[],te=x.useMemo(()=>[...z].sort((H,J)=>H.name.localeCompare(J.name,gH(E),{numeric:!0,sensitivity:"base"})),[z,E]);return re.jsxDEV(F_,{className:"flex flex-col flex-1 min-h-0",children:[re.jsxDEV(V7,{children:o("device.devices")},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:170,columnNumber:7},this),re.jsxDEV(uY,{className:"flex-1 min-h-0",children:re.jsxDEV("div",{className:"space-y-1.5 py-2",children:[te.map(H=>{var J,N;return re.jsxDEV(pY,{device:H,windows:((N=(J=b[H.id])==null?void 0:J.session)==null?void 0:N.windows)??null,isConnected:p.has(H.id),selectedWindowId:g,selectedPaneId:m,onConnectToggle:()=>Y(H.id,p.has(H.id)),onCreateWindow:_,onCloseWindow:$,onClosePane:w,onPaneClick:A,onWindowClick:M},H.id,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:174,columnNumber:13},this)}),te.length===0&&re.jsxDEV("div",{className:"text-center text-sm text-muted-foreground py-4",children:o("sidebar.noDevices")},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:192,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:172,columnNumber:9},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:171,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:169,columnNumber:5},this)}function pY({device:o,windows:n,isConnected:a,selectedWindowId:i,selectedPaneId:l,onConnectToggle:c,onCreateWindow:f,onCloseWindow:h,onClosePane:g,onPaneClick:m,onWindowClick:b}){const{t:p}=dg(),v=o.type==="local"?IN:j5;return re.jsxDEV("div",{"data-testid":`device-item-${o.id}`,className:Pt("rounded-lg border overflow-hidden text-select-none",a?"bg-card/50":"bg-muted/20"),onClick:a?void 0:c,children:[re.jsxDEV("div",{className:"px-3 py-1 bg-muted/30 border-b",children:re.jsxDEV("div",{className:"flex items-center gap-2",children:[re.jsxDEV(v,{className:"ml-1 h-4 w-4 text-muted-foreground shrink-0"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:244,columnNumber:11},this),re.jsxDEV("span",{className:"flex-1 truncate text-xs font-medium text-select-none",children:o.name},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:245,columnNumber:11},this),re.jsxDEV("div",{className:Pt("h-2 w-2 rounded-full shrink-0",a?"bg-emerald-500":"bg-gray-400")},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:250,columnNumber:11},this),re.jsxDEV(ow,{variant:"ghost",size:"icon-xs",onClick:w=>{w.stopPropagation(),c()},"data-testid":a?`device-disconnect-${o.id}`:`device-connect-${o.id}`,title:p(a?"device.disconnect":"device.connect"),children:a?re.jsxDEV(G5,{className:"h-3.5 w-3.5 text-orange-500"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:271,columnNumber:15},this):re.jsxDEV(Q5,{className:"h-3.5 w-3.5 text-emerald-500"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:273,columnNumber:15},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:258,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:243,columnNumber:9},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:242,columnNumber:7},this),a&&re.jsxDEV("div",{className:"p-1 space-y-0.5",children:[!n&&re.jsxDEV("div",{className:"text-xs text-muted-foreground px-2 py-1.5 text-center",children:p("device.connecting")},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:283,columnNumber:13},this),(n==null?void 0:n.length)===0&&re.jsxDEV("div",{className:"text-xs text-muted-foreground px-2 py-1.5 text-center",children:p("window.noWindows")},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:289,columnNumber:13},this),n==null?void 0:n.map(w=>re.jsxDEV(mY,{deviceId:o.id,window:w,isSelected:w.id===i,selectedPaneId:l,onPaneClick:m,onWindowClick:b,onCloseWindow:h,onClosePane:g},w.id,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:295,columnNumber:13},this)),re.jsxDEV("button",{type:"button","data-testid":`window-create-${o.id}`,onPointerDown:w=>w.stopPropagation(),onMouseDown:w=>w.stopPropagation(),onClick:()=>f(o.id),className:"w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-left transition-colors text-muted-foreground hover:text-foreground hover:bg-accent/30 border border-dashed border-border/50 hover:border-border",children:[re.jsxDEV($5,{className:"h-3.5 w-3.5 shrink-0"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:317,columnNumber:13},this),re.jsxDEV("span",{className:"text-xs",children:p("window.new")},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:318,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:309,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:281,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:233,columnNumber:5},this)}function mY({deviceId:o,window:n,isSelected:a,selectedPaneId:i,onPaneClick:l,onWindowClick:c,onCloseWindow:f,onClosePane:h}){const g=n.panes.length>1,m=n.panes.find(p=>p.id===i),b=a&&!!m;return re.jsxDEV("div",{className:"space-y-0.5",children:[re.jsxDEV("div",{className:"group relative",children:[re.jsxDEV("button",{type:"button",onClick:()=>c(o,n.id,n.panes),"data-testid":`window-item-${n.id}`,className:Pt("w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-left transition-colors pr-7",b?"bg-primary/15 text-primary border border-primary/30":"hover:bg-accent/50 text-foreground border border-transparent"),children:[re.jsxDEV(Z7,{variant:b?"default":"outline",className:"h-5 text-[10px] px-1.5 shrink-0",children:n.index},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:368,columnNumber:11},this),re.jsxDEV("span",{className:"flex-1 truncate text-xs font-medium",children:n.name},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:375,columnNumber:11},this),n.active&&re.jsxDEV("span",{className:Pt("h-1.5 w-1.5 rounded-full shrink-0",b?"bg-foreground/80":"bg-foreground/50")},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:378,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:357,columnNumber:9},this),re.jsxDEV("button",{type:"button",onClick:p=>{p.stopPropagation(),f(o,n.id)},className:Pt("absolute right-1.5 top-1/2 -translate-y-1/2 h-5 w-5 flex items-center justify-center rounded text-muted-foreground hover:bg-background hover:text-foreground transition-opacity",b?"opacity-100":"opacity-0 group-hover:opacity-100"),title:"Close window",children:re.jsxDEV("span",{className:"text-xs leading-none",children:"×"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:400,columnNumber:11},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:388,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:356,columnNumber:7},this),g&&re.jsxDEV("div",{className:"ml-4 pl-2 border-l border-border/50 space-y-0.5",children:n.panes.map(p=>{const v=p.id===i;return re.jsxDEV("div",{className:"group relative",children:[re.jsxDEV("button",{type:"button",onClick:()=>l(o,n.id,p.id),"data-testid":`pane-item-${p.id}`,className:Pt("w-full flex items-center gap-2 px-2 py-1 rounded-md text-left transition-colors pr-7",v?"bg-primary/10 text-primary border border-primary/20":"hover:bg-accent/30 text-muted-foreground border border-transparent"),children:[re.jsxDEV("span",{className:"text-[10px] font-mono opacity-60 w-4",children:p.index},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:423,columnNumber:19},this),re.jsxDEV("span",{className:"flex-1 truncate text-xs",children:p.title||`Pane ${p.index}`},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:425,columnNumber:19},this),p.active&&re.jsxDEV("span",{className:Pt("h-1 w-1 rounded-full shrink-0",v?"bg-foreground/80":"bg-foreground/50")},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:430,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:412,columnNumber:17},this),re.jsxDEV("button",{type:"button",onClick:w=>{w.stopPropagation(),h(o,n.id,p.id,n.panes.length)},className:Pt("absolute right-1.5 top-1/2 -translate-y-1/2 h-5 w-5 flex items-center justify-center rounded text-muted-foreground hover:bg-background hover:text-foreground transition-opacity",v?"opacity-100":"opacity-0 group-hover:opacity-100"),title:"Close pane",children:re.jsxDEV("span",{className:"text-xs leading-none",children:"×"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:452,columnNumber:19},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:440,columnNumber:17},this)]},p.id,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:411,columnNumber:15},this)})},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:406,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-device-list.tsx",lineNumber:354,columnNumber:5},this)}function gY(o,n){let a;try{a=o()}catch{return}return{getItem:l=>{var c;const f=g=>g===null?null:JSON.parse(g,void 0),h=(c=a.getItem(l))!=null?c:null;return h instanceof Promise?h.then(f):f(h)},setItem:(l,c)=>a.setItem(l,JSON.stringify(c,void 0)),removeItem:l=>a.removeItem(l)}}const CS=o=>n=>{try{const a=o(n);return a instanceof Promise?a:{then(i){return CS(i)(a)},catch(i){return this}}}catch(a){return{then(i){return this},catch(i){return CS(i)(a)}}}},yY=(o,n)=>(a,i,l)=>{let c={storage:gY(()=>window.localStorage),partialize:C=>C,version:0,merge:(C,A)=>({...A,...C}),...n},f=!1,h=0;const g=new Set,m=new Set;let b=c.storage;if(!b)return o((...C)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),a(...C)},i,l);const p=()=>{const C=c.partialize({...i()});return b.setItem(c.name,{state:C,version:c.version})},v=l.setState;l.setState=(C,A)=>(v(C,A),p());const w=o((...C)=>(a(...C),p()),i,l);l.getInitialState=()=>w;let E;const T=()=>{var C,A;if(!b)return;const k=++h;f=!1,g.forEach(M=>{var Y;return M((Y=i())!=null?Y:w)});const U=((A=c.onRehydrateStorage)==null?void 0:A.call(c,(C=i())!=null?C:w))||void 0;return CS(b.getItem.bind(b))(c.name).then(M=>{if(M)if(typeof M.version=="number"&&M.version!==c.version){if(c.migrate){const Y=c.migrate(M.state,M.version);return Y instanceof Promise?Y.then($=>[!0,$]):[!0,Y]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,M.state];return[!1,void 0]}).then(M=>{var Y;if(k!==h)return;const[$,_]=M;if(E=c.merge(_,(Y=i())!=null?Y:w),a(E,!0),$)return p()}).then(()=>{k===h&&(U==null||U(E,void 0),E=i(),f=!0,m.forEach(M=>M(E)))}).catch(M=>{k===h&&(U==null||U(void 0,M))})};return l.persist={setOptions:C=>{c={...c,...C},C.storage&&(b=C.storage)},clearStorage:()=>{b==null||b.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>T(),hasHydrated:()=>f,onHydrate:C=>(g.add(C),()=>{g.delete(C)}),onFinishHydration:C=>(m.add(C),()=>{m.delete(C)})},c.skipHydration||T(),E||w},bY=yY,xA=GS()(bY(o=>({sidebarCollapsed:!1,inputMode:"direct",editorSendWithEnter:!0,theme:"dark",editorHistory:[],editorDrafts:{},setSidebarCollapsed:n=>o({sidebarCollapsed:n}),setInputMode:n=>o({inputMode:n}),setEditorSendWithEnter:n=>o({editorSendWithEnter:n}),setTheme:n=>o({theme:n}),addEditorHistory:n=>o(a=>({editorHistory:[n,...a.editorHistory.slice(0,49)]})),setEditorDraft:(n,a)=>o(i=>({editorDrafts:{...i.editorDrafts,[n]:a}})),removeEditorDraft:n=>o(a=>{if(!(n in a.editorDrafts))return a;const i={...a.editorDrafts};return delete i[n],{editorDrafts:i}})}),{name:"tmex-ui",partialize:o=>({sidebarCollapsed:o.sidebarCollapsed,inputMode:o.inputMode,editorSendWithEnter:o.editorSendWithEnter,theme:o.theme,editorHistory:o.editorHistory,editorDrafts:o.editorDrafts})}));function vY(){const{t:o}=dg(),{isMobile:n,setOpenMobile:a}=Au(),i=Lf(b=>{var p;return(p=b.settings)==null?void 0:p.siteName}),l=Lf(b=>b.fetchSettings);x.useEffect(()=>{l()},[l]);const c=i??"tmex",f=xA(b=>b.theme),h=xA(b=>b.setTheme),g=f==="dark",m=()=>{const b=g?"light":"dark";h(b),document.documentElement.classList.toggle("dark",b==="dark")};return re.jsxDEV("div",{className:"flex items-center gap-2 px-2",children:[re.jsxDEV(ag,{to:"/",className:"flex flex-1 items-center gap-3 overflow-hidden",children:[re.jsxDEV("div",{className:"h-8 w-8 shrink-0 overflow-hidden rounded-lg border-2 border-black",children:re.jsxDEV("img",{src:"/logo.png",alt:c,className:"h-full w-full object-cover"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-title.tsx",lineNumber:37,columnNumber:11},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-title.tsx",lineNumber:36,columnNumber:9},this),re.jsxDEV("span",{className:"truncate text-sm font-semibold tracking-tight",children:c},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-title.tsx",lineNumber:43,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-title.tsx",lineNumber:35,columnNumber:7},this),re.jsxDEV("button",{type:"button",onClick:m,className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-sidebar-accent hover:text-foreground","aria-label":o(g?"settings.themeLight":"settings.themeDark"),title:o(g?"settings.themeLight":"settings.themeDark"),children:g?re.jsxDEV(Z5,{className:"h-4 w-4"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-title.tsx",lineNumber:54,columnNumber:19},this):re.jsxDEV(B5,{className:"h-4 w-4"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-title.tsx",lineNumber:54,columnNumber:49},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-title.tsx",lineNumber:47,columnNumber:7},this),re.jsxDEV(ag,{to:"/settings",className:"inline-flex h-8 w-8 mr-[-8px] shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-sidebar-accent hover:text-foreground","aria-label":o("sidebar.settings"),title:o("sidebar.settings"),children:re.jsxDEV(K5,{className:"h-4 w-4"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-title.tsx",lineNumber:62,columnNumber:9},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-title.tsx",lineNumber:56,columnNumber:7},this),n&&re.jsxDEV("button",{type:"button","data-testid":"mobile-sidebar-close",onClick:()=>a(!1),className:"inline-flex h-8 w-8 mr-[-8px] shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-sidebar-accent hover:text-foreground","aria-label":o("nav.closeSidebar"),title:o("nav.closeSidebar"),children:re.jsxDEV(BN,{className:"h-4 w-4"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-title.tsx",lineNumber:73,columnNumber:11},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-title.tsx",lineNumber:65,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/sidebar-title.tsx",lineNumber:34,columnNumber:5},this)}const SY=[{title:"nav.manageDevices",url:"/devices",icon:IN}];function wY({...o}){return re.jsxDEV(z7,{variant:"inset",...o,children:[re.jsxDEV("div",{className:"h-[var(--tmex-safe-area-top)]"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/app-sidebar.tsx",lineNumber:25,columnNumber:7},this),re.jsxDEV(H7,{className:"py-3",children:re.jsxDEV(vY,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/app-sidebar.tsx",lineNumber:27,columnNumber:9},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/app-sidebar.tsx",lineNumber:26,columnNumber:7},this),re.jsxDEV(B7,{className:"flex flex-col",children:re.jsxDEV(hY,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/app-sidebar.tsx",lineNumber:30,columnNumber:9},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/app-sidebar.tsx",lineNumber:29,columnNumber:7},this),re.jsxDEV(I7,{children:[re.jsxDEV(K7,{items:SY},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/app-sidebar.tsx",lineNumber:33,columnNumber:9},this),re.jsxDEV("div",{className:"h-[var(--tmex-safe-area-bottom)]"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/app-sidebar.tsx",lineNumber:34,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/app-sidebar.tsx",lineNumber:32,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/components/page-layouts/components/app-sidebar.tsx",lineNumber:24,columnNumber:5},this)}function EY(){var o;try{const n=localStorage.getItem("tmex-ui");if(!n){document.documentElement.classList.add("dark");return}const a=JSON.parse(n),i=(o=a==null?void 0:a.state)==null?void 0:o.theme,l=i==="dark"||i===void 0;document.documentElement.classList.toggle("dark",l)}catch{document.documentElement.classList.add("dark")}}EY();const xY=new l3({defaultOptions:{queries:{staleTime:5e3,retry:1}}});function RY(){return re.jsxDEV(A5,{children:re.jsxDEV(U7,{children:[re.jsxDEV(wY,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:50,columnNumber:9},this),re.jsxDEV(j7,{className:"h-dvh overflow-hidden",children:[re.jsxDEV("div",{className:"h-[var(--tmex-safe-area-top)]"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:52,columnNumber:11},this),re.jsxDEV(Sj,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:53,columnNumber:11},this),re.jsxDEV("div",{className:"h-[var(--tmex-safe-area-bottom)]"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:54,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:51,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:49,columnNumber:7},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:48,columnNumber:5},this)}function hf({moduleLoader:o}){const[n,a]=x.useState(null),i=JP();x.useEffect(()=>{o().then(a)},[o]);const l=n==null?void 0:n.default,c=n==null?void 0:n.PageTitle,f=n==null?void 0:n.PageActions;return re.jsxDEV(re.Fragment,{children:[re.jsxDEV("header",{className:"sticky top-0 z-10 flex h-12 md:h-16 shrink-0 items-center justify-between gap-2 bg-background/95 backdrop-blur-sm","data-testid":"mobile-topbar",children:[re.jsxDEV("div",{className:"flex min-w-0 flex-1 items-center gap-2 px-4",children:[re.jsxDEV(P7,{className:"-ml-1 shrink-0","data-testid":"mobile-sidebar-open"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:81,columnNumber:11},this),re.jsxDEV(M8,{orientation:"vertical",className:"mr-2 shrink-0 data-[orientation=vertical]:h-4"},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:82,columnNumber:11},this),re.jsxDEV("span",{className:"min-w-0 flex-1 truncate text-sm font-semibold",children:c?re.jsxDEV(c,{...i},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:87,columnNumber:26},this):""},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:86,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:80,columnNumber:9},this),re.jsxDEV("div",{className:"flex shrink-0 items-center gap-1 px-4",children:f&&re.jsxDEV(f,{...i},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:91,columnNumber:27},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:90,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:76,columnNumber:7},this),re.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col gap-4 !pt-0 p-2 md:p-4 mb-2",children:re.jsxDEV("div",{className:"bg-muted/50 min-h-0 flex-1 overflow-auto overscroll-auto rounded-xl [-webkit-overflow-scrolling:touch]",children:l?re.jsxDEV(l,{},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:98,columnNumber:19},this):null},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:97,columnNumber:9},this)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:96,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:75,columnNumber:5},this)}const TY=()=>OS(()=>import("./SettingsPage-BfkOW0fc.js"),__vite__mapDeps([0,1,2,3])),RA=()=>OS(()=>import("./DevicesPage-FqU-Dxhu.js"),__vite__mapDeps([4,1,2])),TA=()=>OS(()=>import("./DevicePage-CKaPUo7L.js"),__vite__mapDeps([5,2,3])),CY=$j([{path:"/",Component:RY,children:[{index:!0,element:re.jsxDEV(hf,{moduleLoader:RA},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:118,columnNumber:18},void 0)},{path:"devices",element:re.jsxDEV(hf,{moduleLoader:RA},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:122,columnNumber:18},void 0)},{path:"devices/:deviceId",element:re.jsxDEV(hf,{moduleLoader:TA},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:126,columnNumber:18},void 0)},{path:"devices/:deviceId/windows/:windowId/panes/:paneId",element:re.jsxDEV(hf,{moduleLoader:TA},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:130,columnNumber:18},void 0)},{path:"settings",element:re.jsxDEV(hf,{moduleLoader:TY},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:134,columnNumber:18},void 0)}]}]),K_=document.getElementById("root");if(!K_)throw new Error("Root element not found");N3.createRoot(K_).render(re.jsxDEV(x.StrictMode,{children:re.jsxDEV(f3,{client:xY,children:[re.jsxDEV(yj,{router:CY},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:149,columnNumber:7},void 0),re.jsxDEV(N4,{richColors:!0,position:"top-right",closeButton:!0,offset:{top:"calc(16px + var(--tmex-safe-area-top))",right:"16px",bottom:"16px",left:"16px"},mobileOffset:{top:"calc(12px + var(--tmex-safe-area-top))",right:"12px",bottom:"12px",left:"12px"},toastOptions:{duration:6e3}},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:150,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:148,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/krhougs/LocalCodes/tmex/apps/fe/src/main.tsx",lineNumber:147,columnNumber:3},void 0));export{p_ as $,GN as A,ow as B,nn as C,a7 as D,yn as E,W8 as F,Kf as G,eh as H,DY as I,FF as J,j_ as K,JM as L,_Y as M,R7 as N,ea as O,bB as P,C_ as Q,$F as R,qY as S,zY as T,mw as U,Sg as V,m_ as W,BN as X,gr as Y,hr as Z,I8 as _,d3 as a,IY as a$,zt as a0,u_ as a1,D_ as a2,$Y as a3,Ou as a4,pt as a5,Eu as a6,e7 as a7,f_ as a8,h_ as a9,UY as aA,_F as aB,zF as aC,TF as aD,zs as aE,FY as aF,Rf as aG,VY as aH,jM as aI,YY as aJ,jf as aK,MY as aL,BM as aM,IN as aN,$5 as aO,j5 as aP,Z7 as aQ,M8 as aR,YS as aS,q6 as aT,Yf as aU,j0 as aV,Tf as aW,a3 as aX,yo as aY,$o as aZ,HA as a_,Di as aa,JF as ab,it as ac,jm as ad,zf as ae,QS as af,XN as ag,LY as ah,QN as ai,g_ as aj,s_ as ak,LF as al,xw as am,AY as an,NY as ao,b_ as ap,GY as aq,XB as ar,$n as as,Ci as at,Oi as au,fn as av,dF as aw,Du as ax,wF as ay,Yt as az,Lf as b,Z6 as b0,BY as b1,jY as b2,HY as b3,Tm as b4,xi as b5,RB as b6,fg as b7,WS as b8,Pf as b9,QY as bA,fY as bB,qN as bC,qt as bD,Wl as bE,t7 as bF,cw as bG,o7 as bH,o8 as ba,aw as bb,bS as bc,Ha as bd,BD as be,O0 as bf,qo as bg,t8 as bh,n8 as bi,KN as bj,d_ as bk,xF as bl,XY as bm,XM as bn,bF as bo,P8 as bp,nY as bq,tu as br,Gn as bs,rw as bt,Tw as bu,PY as bv,Ei as bw,kf as bx,JP as by,bN as bz,na as c,xA as d,R3 as e,nS as f,T_ as g,FM as h,lo as i,re as j,Pt as k,A_ as l,YM as m,O_ as n,VM as o,kY as p,ew as q,x as r,Ql as s,gH as t,dg as u,Uf as v,Wf as w,Ln as x,bg as y,AF as z};
|
|
449
|
-
//# sourceMappingURL=index-EgHfq93I.js.map
|