var yd=t=>{throw TypeError(t)};var Ys=(t,e,n)=>e.has(t)||yd("Cannot "+n);var A=(t,e,n)=>(Ys(t,e,"read from private field"),n?n.call(t):e.get(t)),F=(t,e,n)=>e.has(t)?yd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Y=(t,e,n,a)=>(Ys(t,e,"write to private field"),a?a.call(t,n):e.set(t,n),n),Lt=(t,e,n)=>(Ys(t,e,"access private method"),n);var Dr=(t,e,n,a)=>({set _(l){Y(t,e,l,n)},get _(){return A(t,e,a)}});function Gp(t,e){for(var n=0;n<e.length;n++){const a=e[n];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in t)){const i=Object.getOwnPropertyDescriptor(a,l);i&&Object.defineProperty(t,l,i.get?i:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function Gm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Qm={exports:{}},is={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Qp=Symbol.for("react.transitional.element"),Vp=Symbol.for("react.fragment");function Vm(t,e,n){var a=null;if(n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),"key"in e){n={};for(var l in e)l!=="key"&&(n[l]=e[l])}else n=e;return e=n.ref,{$$typeof:Qp,type:t,key:a,ref:e!==void 0?e:null,props:n}}is.Fragment=Vp;is.jsx=Vm;is.jsxs=Vm;Qm.exports=is;var x=Qm.exports,Xm={exports:{}},rs={},Zm={exports:{}},km={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(t){function e(R,U){var M=R.length;R.push(U);t:for(;0<M;){var D=M-1>>>1,L=R[D];if(0<l(L,U))R[D]=U,R[M]=L,M=D;else break t}}function n(R){return R.length===0?null:R[0]}function a(R){if(R.length===0)return null;var U=R[0],M=R.pop();if(M!==U){R[0]=M;t:for(var D=0,L=R.length,yt=L>>>1;D<yt;){var P=2*(D+1)-1,W=R[P],J=P+1,Et=R[J];if(0>l(W,M))J<L&&0>l(Et,W)?(R[D]=Et,R[J]=M,D=J):(R[D]=W,R[P]=M,D=P);else if(J<L&&0>l(Et,M))R[D]=Et,R[J]=M,D=J;else break t}}return U}function l(R,U){var M=R.sortIndex-U.sortIndex;return M!==0?M:R.id-U.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var r=Date,o=r.now();t.unstable_now=function(){return r.now()-o}}var s=[],u=[],f=1,h=null,d=3,c=!1,w=!1,g=!1,b=!1,m=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;function S(R){for(var U=n(u);U!==null;){if(U.callback===null)a(u);else if(U.startTime<=R)a(u),U.sortIndex=U.expirationTime,e(s,U);else break;U=n(u)}}function E(R){if(g=!1,S(R),!w)if(n(s)!==null)w=!0,C||(C=!0,B());else{var U=n(u);U!==null&&ut(E,U.startTime-R)}}var C=!1,T=-1,N=5,j=-1;function z(){return b?!0:!(t.unstable_now()-j<N)}function Q(){if(b=!1,C){var R=t.unstable_now();j=R;var U=!0;try{t:{w=!1,g&&(g=!1,v(T),T=-1),c=!0;var M=d;try{e:{for(S(R),h=n(s);h!==null&&!(h.expirationTime>R&&z());){var D=h.callback;if(typeof D=="function"){h.callback=null,d=h.priorityLevel;var L=D(h.expirationTime<=R);if(R=t.unstable_now(),typeof L=="function"){h.callback=L,S(R),U=!0;break e}h===n(s)&&a(s),S(R)}else a(s);h=n(s)}if(h!==null)U=!0;else{var yt=n(u);yt!==null&&ut(E,yt.startTime-R),U=!1}}break t}finally{h=null,d=M,c=!1}U=void 0}}finally{U?B():C=!1}}}var B;if(typeof p=="function")B=function(){p(Q)};else if(typeof MessageChannel<"u"){var et=new MessageChannel,K=et.port2;et.port1.onmessage=Q,B=function(){K.postMessage(null)}}else B=function(){m(Q,0)};function ut(R,U){T=m(function(){R(t.unstable_now())},U)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(R){R.callback=null},t.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<R?Math.floor(1e3/R):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_next=function(R){switch(d){case 1:case 2:case 3:var U=3;break;default:U=d}var M=d;d=U;try{return R()}finally{d=M}},t.unstable_requestPaint=function(){b=!0},t.unstable_runWithPriority=function(R,U){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var M=d;d=R;try{return U()}finally{d=M}},t.unstable_scheduleCallback=function(R,U,M){var D=t.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?D+M:D):M=D,R){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=M+L,R={id:f++,callback:U,priorityLevel:R,startTime:M,expirationTime:L,sortIndex:-1},M>D?(R.sortIndex=M,e(u,R),n(s)===null&&R===n(u)&&(g?(v(T),T=-1):g=!0,ut(E,M-D))):(R.sortIndex=L,e(s,R),w||c||(w=!0,C||(C=!0,B()))),R},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(R){var U=d;return function(){var M=d;d=U;try{return R.apply(this,arguments)}finally{d=M}}}})(km);Zm.exports=km;var Xp=Zm.exports,Km={exports:{}},V={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Zc=Symbol.for("react.transitional.element"),Zp=Symbol.for("react.portal"),kp=Symbol.for("react.fragment"),Kp=Symbol.for("react.strict_mode"),Pp=Symbol.for("react.profiler"),$p=Symbol.for("react.consumer"),Jp=Symbol.for("react.context"),Fp=Symbol.for("react.forward_ref"),Wp=Symbol.for("react.suspense"),Ip=Symbol.for("react.memo"),Pm=Symbol.for("react.lazy"),pd=Symbol.iterator;function tb(t){return t===null||typeof t!="object"?null:(t=pd&&t[pd]||t["@@iterator"],typeof t=="function"?t:null)}var $m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jm=Object.assign,Fm={};function ti(t,e,n){this.props=t,this.context=e,this.refs=Fm,this.updater=n||$m}ti.prototype.isReactComponent={};ti.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};ti.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Wm(){}Wm.prototype=ti.prototype;function kc(t,e,n){this.props=t,this.context=e,this.refs=Fm,this.updater=n||$m}var Kc=kc.prototype=new Wm;Kc.constructor=kc;Jm(Kc,ti.prototype);Kc.isPureReactComponent=!0;var bd=Array.isArray,vt={H:null,A:null,T:null,S:null,V:null},Im=Object.prototype.hasOwnProperty;function Pc(t,e,n,a,l,i){return n=i.ref,{$$typeof:Zc,type:t,key:e,ref:n!==void 0?n:null,props:i}}function eb(t,e){return Pc(t.type,e,void 0,void 0,void 0,t.props)}function $c(t){return typeof t=="object"&&t!==null&&t.$$typeof===Zc}function nb(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var xd=/\/+/g;function Gs(t,e){return typeof t=="object"&&t!==null&&t.key!=null?nb(""+t.key):e.toString(36)}function Sd(){}function ab(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Sd,Sd):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function al(t,e,n,a,l){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var r=!1;if(t===null)r=!0;else switch(i){case"bigint":case"string":case"number":r=!0;break;case"object":switch(t.$$typeof){case Zc:case Zp:r=!0;break;case Pm:return r=t._init,al(r(t._payload),e,n,a,l)}}if(r)return l=l(t),r=a===""?"."+Gs(t,0):a,bd(l)?(n="",r!=null&&(n=r.replace(xd,"$&/")+"/"),al(l,e,n,"",function(u){return u})):l!=null&&($c(l)&&(l=eb(l,n+(l.key==null||t&&t.key===l.key?"":(""+l.key).replace(xd,"$&/")+"/")+r)),e.push(l)),1;r=0;var o=a===""?".":a+":";if(bd(t))for(var s=0;s<t.length;s++)a=t[s],i=o+Gs(a,s),r+=al(a,e,n,i,l);else if(s=tb(t),typeof s=="function")for(t=s.call(t),s=0;!(a=t.next()).done;)a=a.value,i=o+Gs(a,s++),r+=al(a,e,n,i,l);else if(i==="object"){if(typeof t.then=="function")return al(ab(t),e,n,a,l);throw e=String(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.")}return r}function _r(t,e,n){if(t==null)return t;var a=[],l=0;return al(t,a,"","",function(i){return e.call(n,i,l++)}),a}function lb(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var wd=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function ib(){}V.Children={map:_r,forEach:function(t,e,n){_r(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _r(t,function(){e++}),e},toArray:function(t){return _r(t,function(e){return e})||[]},only:function(t){if(!$c(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};V.Component=ti;V.Fragment=kp;V.Profiler=Pp;V.PureComponent=kc;V.StrictMode=Kp;V.Suspense=Wp;V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=vt;V.__COMPILER_RUNTIME={__proto__:null,c:function(t){return vt.H.useMemoCache(t)}};V.cache=function(t){return function(){return t.apply(null,arguments)}};V.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var a=Jm({},t.props),l=t.key,i=void 0;if(e!=null)for(r in e.ref!==void 0&&(i=void 0),e.key!==void 0&&(l=""+e.key),e)!Im.call(e,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&e.ref===void 0||(a[r]=e[r]);var r=arguments.length-2;if(r===1)a.children=n;else if(1<r){for(var o=Array(r),s=0;s<r;s++)o[s]=arguments[s+2];a.children=o}return Pc(t.type,l,void 0,void 0,i,a)};V.createContext=function(t){return t={$$typeof:Jp,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:$p,_context:t},t};V.createElement=function(t,e,n){var a,l={},i=null;if(e!=null)for(a in e.key!==void 0&&(i=""+e.key),e)Im.call(e,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(l[a]=e[a]);var r=arguments.length-2;if(r===1)l.children=n;else if(1<r){for(var o=Array(r),s=0;s<r;s++)o[s]=arguments[s+2];l.children=o}if(t&&t.defaultProps)for(a in r=t.defaultProps,r)l[a]===void 0&&(l[a]=r[a]);return Pc(t,i,void 0,void 0,null,l)};V.createRef=function(){return{current:null}};V.forwardRef=function(t){return{$$typeof:Fp,render:t}};V.isValidElement=$c;V.lazy=function(t){return{$$typeof:Pm,_payload:{_status:-1,_result:t},_init:lb}};V.memo=function(t,e){return{$$typeof:Ip,type:t,compare:e===void 0?null:e}};V.startTransition=function(t){var e=vt.T,n={};vt.T=n;try{var a=t(),l=vt.S;l!==null&&l(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(ib,wd)}catch(i){wd(i)}finally{vt.T=e}};V.unstable_useCacheRefresh=function(){return vt.H.useCacheRefresh()};V.use=function(t){return vt.H.use(t)};V.useActionState=function(t,e,n){return vt.H.useActionState(t,e,n)};V.useCallback=function(t,e){return vt.H.useCallback(t,e)};V.useContext=function(t){return vt.H.useContext(t)};V.useDebugValue=function(){};V.useDeferredValue=function(t,e){return vt.H.useDeferredValue(t,e)};V.useEffect=function(t,e,n){var a=vt.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return a.useEffect(t,e)};V.useId=function(){return vt.H.useId()};V.useImperativeHandle=function(t,e,n){return vt.H.useImperativeHandle(t,e,n)};V.useInsertionEffect=function(t,e){return vt.H.useInsertionEffect(t,e)};V.useLayoutEffect=function(t,e){return vt.H.useLayoutEffect(t,e)};V.useMemo=function(t,e){return vt.H.useMemo(t,e)};V.useOptimistic=function(t,e){return vt.H.useOptimistic(t,e)};V.useReducer=function(t,e,n){return vt.H.useReducer(t,e,n)};V.useRef=function(t){return vt.H.useRef(t)};V.useState=function(t){return vt.H.useState(t)};V.useSyncExternalStore=function(t,e,n){return vt.H.useSyncExternalStore(t,e,n)};V.useTransition=function(){return vt.H.useTransition()};V.version="19.1.1";Km.exports=V;var y=Km.exports;const _=Gm(y),Jc=Gp({__proto__:null,default:_},[y]);var tv={exports:{}},kt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rb=y;function ev(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Mn(){}var Zt={d:{f:Mn,r:function(){throw Error(ev(522))},D:Mn,C:Mn,L:Mn,m:Mn,X:Mn,S:Mn,M:Mn},p:0,findDOMNode:null},ob=Symbol.for("react.portal");function sb(t,e,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ob,key:a==null?null:""+a,children:t,containerInfo:e,implementation:n}}var Ri=rb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function os(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Zt;kt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(ev(299));return sb(t,e,null,n)};kt.flushSync=function(t){var e=Ri.T,n=Zt.p;try{if(Ri.T=null,Zt.p=2,t)return t()}finally{Ri.T=e,Zt.p=n,Zt.d.f()}};kt.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,Zt.d.C(t,e))};kt.prefetchDNS=function(t){typeof t=="string"&&Zt.d.D(t)};kt.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var n=e.as,a=os(n,e.crossOrigin),l=typeof e.integrity=="string"?e.integrity:void 0,i=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;n==="style"?Zt.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:a,integrity:l,fetchPriority:i}):n==="script"&&Zt.d.X(t,{crossOrigin:a,integrity:l,fetchPriority:i,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};kt.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var n=os(e.as,e.crossOrigin);Zt.d.M(t,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&Zt.d.M(t)};kt.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var n=e.as,a=os(n,e.crossOrigin);Zt.d.L(t,n,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};kt.preloadModule=function(t,e){if(typeof t=="string")if(e){var n=os(e.as,e.crossOrigin);Zt.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else Zt.d.m(t)};kt.requestFormReset=function(t){Zt.d.r(t)};kt.unstable_batchedUpdates=function(t,e){return t(e)};kt.useFormState=function(t,e,n){return Ri.H.useFormState(t,e,n)};kt.useFormStatus=function(){return Ri.H.useHostTransitionStatus()};kt.version="19.1.1";function nv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nv)}catch(t){console.error(t)}}nv(),tv.exports=kt;var ss=tv.exports;const av=Gm(ss);/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Mt=Xp,lv=y,ub=ss;function O(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function iv(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ur(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function rv(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Ed(t){if(ur(t)!==t)throw Error(O(188))}function cb(t){var e=t.alternate;if(!e){if(e=ur(t),e===null)throw Error(O(188));return e!==t?null:t}for(var n=t,a=e;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(a=l.return,a!==null){n=a;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return Ed(l),t;if(i===a)return Ed(l),e;i=i.sibling}throw Error(O(188))}if(n.return!==a.return)n=l,a=i;else{for(var r=!1,o=l.child;o;){if(o===n){r=!0,n=l,a=i;break}if(o===a){r=!0,a=l,n=i;break}o=o.sibling}if(!r){for(o=i.child;o;){if(o===n){r=!0,n=i,a=l;break}if(o===a){r=!0,a=i,n=l;break}o=o.sibling}if(!r)throw Error(O(189))}}if(n.alternate!==a)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?t:e}function ov(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=ov(t),e!==null)return e;t=t.sibling}return null}var dt=Object.assign,fb=Symbol.for("react.element"),zr=Symbol.for("react.transitional.element"),wi=Symbol.for("react.portal"),ol=Symbol.for("react.fragment"),sv=Symbol.for("react.strict_mode"),Uu=Symbol.for("react.profiler"),db=Symbol.for("react.provider"),uv=Symbol.for("react.consumer"),un=Symbol.for("react.context"),Fc=Symbol.for("react.forward_ref"),Bu=Symbol.for("react.suspense"),Hu=Symbol.for("react.suspense_list"),Wc=Symbol.for("react.memo"),Hn=Symbol.for("react.lazy"),Lu=Symbol.for("react.activity"),hb=Symbol.for("react.memo_cache_sentinel"),Td=Symbol.iterator;function di(t){return t===null||typeof t!="object"?null:(t=Td&&t[Td]||t["@@iterator"],typeof t=="function"?t:null)}var mb=Symbol.for("react.client.reference");function qu(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===mb?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ol:return"Fragment";case Uu:return"Profiler";case sv:return"StrictMode";case Bu:return"Suspense";case Hu:return"SuspenseList";case Lu:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case wi:return"Portal";case un:return(t.displayName||"Context")+".Provider";case uv:return(t._context.displayName||"Context")+".Consumer";case Fc:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Wc:return e=t.displayName||null,e!==null?e:qu(t.type)||"Memo";case Hn:e=t._payload,t=t._init;try{return qu(t(e))}catch{}}return null}var Ei=Array.isArray,H=lv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tt=ub.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Na={pending:!1,data:null,method:null,action:null},Yu=[],sl=-1;function We(t){return{current:t}}function jt(t){0>sl||(t.current=Yu[sl],Yu[sl]=null,sl--)}function gt(t,e){sl++,Yu[sl]=t.current,t.current=e}var Ke=We(null),Vi=We(null),In=We(null),bo=We(null);function xo(t,e){switch(gt(In,e),gt(Vi,t),gt(Ke,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Nh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Nh(e),t=Og(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}jt(Ke),gt(Ke,t)}function Yl(){jt(Ke),jt(Vi),jt(In)}function Gu(t){t.memoizedState!==null&&gt(bo,t);var e=Ke.current,n=Og(e,t.type);e!==n&&(gt(Vi,t),gt(Ke,n))}function So(t){Vi.current===t&&(jt(Ke),jt(Vi)),bo.current===t&&(jt(bo),Ii._currentValue=Na)}var Qu=Object.prototype.hasOwnProperty,Ic=Mt.unstable_scheduleCallback,Qs=Mt.unstable_cancelCallback,vb=Mt.unstable_shouldYield,gb=Mt.unstable_requestPaint,Pe=Mt.unstable_now,yb=Mt.unstable_getCurrentPriorityLevel,cv=Mt.unstable_ImmediatePriority,fv=Mt.unstable_UserBlockingPriority,wo=Mt.unstable_NormalPriority,pb=Mt.unstable_LowPriority,dv=Mt.unstable_IdlePriority,bb=Mt.log,xb=Mt.unstable_setDisableYieldValue,cr=null,se=null;function Pn(t){if(typeof bb=="function"&&xb(t),se&&typeof se.setStrictMode=="function")try{se.setStrictMode(cr,t)}catch{}}var ue=Math.clz32?Math.clz32:Eb,Sb=Math.log,wb=Math.LN2;function Eb(t){return t>>>=0,t===0?32:31-(Sb(t)/wb|0)|0}var jr=256,Ur=4194304;function ba(t){var e=t&42;if(e!==0)return e;switch(t&-t){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:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function us(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var l=0,i=t.suspendedLanes,r=t.pingedLanes;t=t.warmLanes;var o=a&134217727;return o!==0?(a=o&~i,a!==0?l=ba(a):(r&=o,r!==0?l=ba(r):n||(n=o&~t,n!==0&&(l=ba(n))))):(o=a&~i,o!==0?l=ba(o):r!==0?l=ba(r):n||(n=a&~t,n!==0&&(l=ba(n)))),l===0?0:e!==0&&e!==l&&!(e&i)&&(i=l&-l,n=e&-e,i>=n||i===32&&(n&4194048)!==0)?e:l}function fr(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Tb(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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-1}}function hv(){var t=jr;return jr<<=1,!(jr&4194048)&&(jr=256),t}function mv(){var t=Ur;return Ur<<=1,!(Ur&62914560)&&(Ur=4194304),t}function Vs(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function dr(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ab(t,e,n,a,l,i){var r=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var o=t.entanglements,s=t.expirationTimes,u=t.hiddenUpdates;for(n=r&~n;0<n;){var f=31-ue(n),h=1<<f;o[f]=0,s[f]=-1;var d=u[f];if(d!==null)for(u[f]=null,f=0;f<d.length;f++){var c=d[f];c!==null&&(c.lane&=-536870913)}n&=~h}a!==0&&vv(t,a,0),i!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=i&~(r&~e))}function vv(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ue(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&4194090}function gv(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ue(n),l=1<<a;l&e|t[a]&e&&(t[a]|=e),n&=~l}}function tf(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ef(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function yv(){var t=tt.p;return t!==0?t:(t=window.event,t===void 0?32:Bg(t.type))}function Ob(t,e){var n=tt.p;try{return tt.p=t,e()}finally{tt.p=n}}var ha=Math.random().toString(36).slice(2),Yt="__reactFiber$"+ha,It="__reactProps$"+ha,ei="__reactContainer$"+ha,Vu="__reactEvents$"+ha,Cb="__reactListeners$"+ha,Rb="__reactHandles$"+ha,Ad="__reactResources$"+ha,hr="__reactMarker$"+ha;function nf(t){delete t[Yt],delete t[It],delete t[Vu],delete t[Cb],delete t[Rb]}function ul(t){var e=t[Yt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ei]||n[Yt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=_h(t);t!==null;){if(n=t[Yt])return n;t=_h(t)}return e}t=n,n=t.parentNode}return null}function ni(t){if(t=t[Yt]||t[ei]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Ti(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(O(33))}function bl(t){var e=t[Ad];return e||(e=t[Ad]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function _t(t){t[hr]=!0}var pv=new Set,bv={};function Qa(t,e){Gl(t,e),Gl(t+"Capture",e)}function Gl(t,e){for(bv[t]=e,t=0;t<e.length;t++)pv.add(e[t])}var Nb=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]*$"),Od={},Cd={};function Mb(t){return Qu.call(Cd,t)?!0:Qu.call(Od,t)?!1:Nb.test(t)?Cd[t]=!0:(Od[t]=!0,!1)}function eo(t,e,n){if(Mb(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Br(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function en(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}var Xs,Rd;function ll(t){if(Xs===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Xs=e&&e[1]||"",Rd=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Xs+t+Rd}var Zs=!1;function ks(t,e){if(!t||Zs)return"";Zs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(c){var d=c}Reflect.construct(t,[],h)}else{try{h.call()}catch(c){d=c}t.call(h.prototype)}}else{try{throw Error()}catch(c){d=c}(h=t())&&typeof h.catch=="function"&&h.catch(function(){})}}catch(c){if(c&&d&&typeof c.stack=="string")return[c.stack,d.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),r=i[0],o=i[1];if(r&&o){var s=r.split(`
`),u=o.split(`
`);for(l=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;l<u.length&&!u[l].includes("DetermineComponentFrameRoot");)l++;if(a===s.length||l===u.length)for(a=s.length-1,l=u.length-1;1<=a&&0<=l&&s[a]!==u[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==u[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==u[l]){var f=`
`+s[a].replace(" at new "," at ");return t.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",t.displayName)),f}while(1<=a&&0<=l);break}}}finally{Zs=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ll(n):""}function Db(t){switch(t.tag){case 26:case 27:case 5:return ll(t.type);case 16:return ll("Lazy");case 13:return ll("Suspense");case 19:return ll("SuspenseList");case 0:case 15:return ks(t.type,!1);case 11:return ks(t.type.render,!1);case 1:return ks(t.type,!0);case 31:return ll("Activity");default:return""}}function Nd(t){try{var e="";do e+=Db(t),t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function ye(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function xv(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _b(t){var e=xv(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(r){a=""+r,i.call(this,r)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(r){a=""+r},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Eo(t){t._valueTracker||(t._valueTracker=_b(t))}function Sv(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=xv(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function To(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var zb=/[\n"\\]/g;function xe(t){return t.replace(zb,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Xu(t,e,n,a,l,i,r,o){t.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.type=r:t.removeAttribute("type"),e!=null?r==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ye(e)):t.value!==""+ye(e)&&(t.value=""+ye(e)):r!=="submit"&&r!=="reset"||t.removeAttribute("value"),e!=null?Zu(t,r,ye(e)):n!=null?Zu(t,r,ye(n)):a!=null&&t.removeAttribute("value"),l==null&&i!=null&&(t.defaultChecked=!!i),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+ye(o):t.removeAttribute("name")}function wv(t,e,n,a,l,i,r,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||e!=null))return;n=n!=null?""+ye(n):"",e=e!=null?""+ye(e):n,o||e===t.value||(t.value=e),t.defaultValue=e}a=a??l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=o?t.checked:!!a,t.defaultChecked=!!a,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.name=r)}function Zu(t,e,n){e==="number"&&To(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function xl(t,e,n,a){if(t=t.options,e){e={};for(var l=0;l<n.length;l++)e["$"+n[l]]=!0;for(n=0;n<t.length;n++)l=e.hasOwnProperty("$"+t[n].value),t[n].selected!==l&&(t[n].selected=l),l&&a&&(t[n].defaultSelected=!0)}else{for(n=""+ye(n),e=null,l=0;l<t.length;l++){if(t[l].value===n){t[l].selected=!0,a&&(t[l].defaultSelected=!0);return}e!==null||t[l].disabled||(e=t[l])}e!==null&&(e.selected=!0)}}function Ev(t,e,n){if(e!=null&&(e=""+ye(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+ye(n):""}function Tv(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(O(92));if(Ei(a)){if(1<a.length)throw Error(O(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=ye(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a)}function Ql(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var jb=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(" "));function Md(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||jb.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Av(t,e,n){if(e!=null&&typeof e!="object")throw Error(O(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var l in e)a=e[l],e.hasOwnProperty(l)&&n[l]!==a&&Md(t,l,a)}else for(var i in e)e.hasOwnProperty(i)&&Md(t,i,e[i])}function af(t){if(t.indexOf("-")===-1)return!1;switch(t){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}}var Ub=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"]]),Bb=/^[\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;function no(t){return Bb.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var ku=null;function lf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var cl=null,Sl=null;function Dd(t){var e=ni(t);if(e&&(t=e.stateNode)){var n=t[It]||null;t:switch(t=e.stateNode,e.type){case"input":if(Xu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+xe(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var l=a[It]||null;if(!l)throw Error(O(90));Xu(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Sv(a)}break t;case"textarea":Ev(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&xl(t,!!n.multiple,e,!1)}}}var Ks=!1;function Ov(t,e,n){if(Ks)return t(e,n);Ks=!0;try{var a=t(e);return a}finally{if(Ks=!1,(cl!==null||Sl!==null)&&(bs(),cl&&(e=cl,t=Sl,Sl=cl=null,Dd(e),t)))for(e=0;e<t.length;e++)Dd(t[e])}}function Xi(t,e){var n=t.stateNode;if(n===null)return null;var a=n[It]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(O(231,e,typeof n));return n}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ku=!1;if(gn)try{var hi={};Object.defineProperty(hi,"passive",{get:function(){Ku=!0}}),window.addEventListener("test",hi,hi),window.removeEventListener("test",hi,hi)}catch{Ku=!1}var $n=null,rf=null,ao=null;function Cv(){if(ao)return ao;var t,e=rf,n=e.length,a,l="value"in $n?$n.value:$n.textContent,i=l.length;for(t=0;t<n&&e[t]===l[t];t++);var r=n-t;for(a=1;a<=r&&e[n-a]===l[i-a];a++);return ao=l.slice(t,1<a?1-a:void 0)}function lo(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Hr(){return!0}function _d(){return!1}function ee(t){function e(n,a,l,i,r){this._reactName=n,this._targetInst=l,this.type=a,this.nativeEvent=i,this.target=r,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(n=t[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Hr:_d,this.isPropagationStopped=_d,this}return dt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Hr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hr)},persist:function(){},isPersistent:Hr}),e}var Va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cs=ee(Va),mr=dt({},Va,{view:0,detail:0}),Hb=ee(mr),Ps,$s,mi,fs=dt({},mr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:of,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==mi&&(mi&&t.type==="mousemove"?(Ps=t.screenX-mi.screenX,$s=t.screenY-mi.screenY):$s=Ps=0,mi=t),Ps)},movementY:function(t){return"movementY"in t?t.movementY:$s}}),zd=ee(fs),Lb=dt({},fs,{dataTransfer:0}),qb=ee(Lb),Yb=dt({},mr,{relatedTarget:0}),Js=ee(Yb),Gb=dt({},Va,{animationName:0,elapsedTime:0,pseudoElement:0}),Qb=ee(Gb),Vb=dt({},Va,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Xb=ee(Vb),Zb=dt({},Va,{data:0}),jd=ee(Zb),kb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kb={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"},Pb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $b(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Pb[t])?!!e[t]:!1}function of(){return $b}var Jb=dt({},mr,{key:function(t){if(t.key){var e=kb[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=lo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Kb[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:of,charCode:function(t){return t.type==="keypress"?lo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?lo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Fb=ee(Jb),Wb=dt({},fs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=ee(Wb),Ib=dt({},mr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:of}),t1=ee(Ib),e1=dt({},Va,{propertyName:0,elapsedTime:0,pseudoElement:0}),n1=ee(e1),a1=dt({},fs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),l1=ee(a1),i1=dt({},Va,{newState:0,oldState:0}),r1=ee(i1),o1=[9,13,27,32],sf=gn&&"CompositionEvent"in window,Ni=null;gn&&"documentMode"in document&&(Ni=document.documentMode);var s1=gn&&"TextEvent"in window&&!Ni,Rv=gn&&(!sf||Ni&&8<Ni&&11>=Ni),Bd=" ",Hd=!1;function Nv(t,e){switch(t){case"keyup":return o1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mv(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var fl=!1;function u1(t,e){switch(t){case"compositionend":return Mv(e);case"keypress":return e.which!==32?null:(Hd=!0,Bd);case"textInput":return t=e.data,t===Bd&&Hd?null:t;default:return null}}function c1(t,e){if(fl)return t==="compositionend"||!sf&&Nv(t,e)?(t=Cv(),ao=rf=$n=null,fl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Rv&&e.locale!=="ko"?null:e.data;default:return null}}var f1={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};function Ld(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!f1[t.type]:e==="textarea"}function Dv(t,e,n,a){cl?Sl?Sl.push(a):Sl=[a]:cl=a,e=Qo(e,"onChange"),0<e.length&&(n=new cs("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Mi=null,Zi=null;function d1(t){Eg(t,0)}function ds(t){var e=Ti(t);if(Sv(e))return t}function qd(t,e){if(t==="change")return e}var _v=!1;if(gn){var Fs;if(gn){var Ws="oninput"in document;if(!Ws){var Yd=document.createElement("div");Yd.setAttribute("oninput","return;"),Ws=typeof Yd.oninput=="function"}Fs=Ws}else Fs=!1;_v=Fs&&(!document.documentMode||9<document.documentMode)}function Gd(){Mi&&(Mi.detachEvent("onpropertychange",zv),Zi=Mi=null)}function zv(t){if(t.propertyName==="value"&&ds(Zi)){var e=[];Dv(e,Zi,t,lf(t)),Ov(d1,e)}}function h1(t,e,n){t==="focusin"?(Gd(),Mi=e,Zi=n,Mi.attachEvent("onpropertychange",zv)):t==="focusout"&&Gd()}function m1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ds(Zi)}function v1(t,e){if(t==="click")return ds(e)}function g1(t,e){if(t==="input"||t==="change")return ds(e)}function y1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var he=typeof Object.is=="function"?Object.is:y1;function ki(t,e){if(he(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var l=n[a];if(!Qu.call(e,l)||!he(t[l],e[l]))return!1}return!0}function Qd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Vd(t,e){var n=Qd(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Qd(n)}}function jv(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?jv(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Uv(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=To(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=To(t.document)}return e}function uf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var p1=gn&&"documentMode"in document&&11>=document.documentMode,dl=null,Pu=null,Di=null,$u=!1;function Xd(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$u||dl==null||dl!==To(a)||(a=dl,"selectionStart"in a&&uf(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Di&&ki(Di,a)||(Di=a,a=Qo(Pu,"onSelect"),0<a.length&&(e=new cs("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=dl)))}function pa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var hl={animationend:pa("Animation","AnimationEnd"),animationiteration:pa("Animation","AnimationIteration"),animationstart:pa("Animation","AnimationStart"),transitionrun:pa("Transition","TransitionRun"),transitionstart:pa("Transition","TransitionStart"),transitioncancel:pa("Transition","TransitionCancel"),transitionend:pa("Transition","TransitionEnd")},Is={},Bv={};gn&&(Bv=document.createElement("div").style,"AnimationEvent"in window||(delete hl.animationend.animation,delete hl.animationiteration.animation,delete hl.animationstart.animation),"TransitionEvent"in window||delete hl.transitionend.transition);function Xa(t){if(Is[t])return Is[t];if(!hl[t])return t;var e=hl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Bv)return Is[t]=e[n];return t}var Hv=Xa("animationend"),Lv=Xa("animationiteration"),qv=Xa("animationstart"),b1=Xa("transitionrun"),x1=Xa("transitionstart"),S1=Xa("transitioncancel"),Yv=Xa("transitionend"),Gv=new Map,Ju="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(" ");Ju.push("scrollEnd");function Be(t,e){Gv.set(t,e),Qa(e,[t])}var Zd=new WeakMap;function Se(t,e){if(typeof t=="object"&&t!==null){var n=Zd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Nd(e)},Zd.set(t,e),e)}return{value:t,source:e,stack:Nd(e)}}var ge=[],ml=0,cf=0;function hs(){for(var t=ml,e=cf=ml=0;e<t;){var n=ge[e];ge[e++]=null;var a=ge[e];ge[e++]=null;var l=ge[e];ge[e++]=null;var i=ge[e];if(ge[e++]=null,a!==null&&l!==null){var r=a.pending;r===null?l.next=l:(l.next=r.next,r.next=l),a.pending=l}i!==0&&Qv(n,l,i)}}function ms(t,e,n,a){ge[ml++]=t,ge[ml++]=e,ge[ml++]=n,ge[ml++]=a,cf|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function ff(t,e,n,a){return ms(t,e,n,a),Ao(t)}function ai(t,e){return ms(t,null,null,e),Ao(t)}function Qv(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var l=!1,i=t.return;i!==null;)i.childLanes|=n,a=i.alternate,a!==null&&(a.childLanes|=n),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(l=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,l&&e!==null&&(l=31-ue(n),t=i.hiddenUpdates,a=t[l],a===null?t[l]=[e]:a.push(e),e.lane=n|536870912),i):null}function Ao(t){if(50<Gi)throw Gi=0,yc=null,Error(O(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var vl={};function w1(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function re(t,e,n,a){return new w1(t,e,n,a)}function df(t){return t=t.prototype,!(!t||!t.isReactComponent)}function mn(t,e){var n=t.alternate;return n===null?(n=re(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Vv(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function io(t,e,n,a,l,i){var r=0;if(a=t,typeof t=="function")df(t)&&(r=1);else if(typeof t=="string")r=Tx(t,n,Ke.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Lu:return t=re(31,n,e,l),t.elementType=Lu,t.lanes=i,t;case ol:return Ma(n.children,l,i,e);case sv:r=8,l|=24;break;case Uu:return t=re(12,n,e,l|2),t.elementType=Uu,t.lanes=i,t;case Bu:return t=re(13,n,e,l),t.elementType=Bu,t.lanes=i,t;case Hu:return t=re(19,n,e,l),t.elementType=Hu,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case db:case un:r=10;break t;case uv:r=9;break t;case Fc:r=11;break t;case Wc:r=14;break t;case Hn:r=16,a=null;break t}r=29,n=Error(O(130,t===null?"null":typeof t,"")),a=null}return e=re(r,n,e,l),e.elementType=t,e.type=a,e.lanes=i,e}function Ma(t,e,n,a){return t=re(7,t,a,e),t.lanes=n,t}function tu(t,e,n){return t=re(6,t,null,e),t.lanes=n,t}function eu(t,e,n){return e=re(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var gl=[],yl=0,Oo=null,Co=0,pe=[],be=0,Da=null,cn=1,fn="";function xa(t,e){gl[yl++]=Co,gl[yl++]=Oo,Oo=t,Co=e}function Xv(t,e,n){pe[be++]=cn,pe[be++]=fn,pe[be++]=Da,Da=t;var a=cn;t=fn;var l=32-ue(a)-1;a&=~(1<<l),n+=1;var i=32-ue(e)+l;if(30<i){var r=l-l%5;i=(a&(1<<r)-1).toString(32),a>>=r,l-=r,cn=1<<32-ue(e)+l|n<<l|a,fn=i+t}else cn=1<<i|n<<l|a,fn=t}function hf(t){t.return!==null&&(xa(t,1),Xv(t,1,0))}function mf(t){for(;t===Oo;)Oo=gl[--yl],gl[yl]=null,Co=gl[--yl],gl[yl]=null;for(;t===Da;)Da=pe[--be],pe[be]=null,fn=pe[--be],pe[be]=null,cn=pe[--be],pe[be]=null}var Xt=null,St=null,I=!1,_a=null,Ve=!1,Fu=Error(O(519));function Ba(t){var e=Error(O(418,""));throw Ki(Se(e,t)),Fu}function kd(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Yt]=t,e[It]=a,n){case"dialog":Z("cancel",e),Z("close",e);break;case"iframe":case"object":case"embed":Z("load",e);break;case"video":case"audio":for(n=0;n<Ji.length;n++)Z(Ji[n],e);break;case"source":Z("error",e);break;case"img":case"image":case"link":Z("error",e),Z("load",e);break;case"details":Z("toggle",e);break;case"input":Z("invalid",e),wv(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Eo(e);break;case"select":Z("invalid",e);break;case"textarea":Z("invalid",e),Tv(e,a.value,a.defaultValue,a.children),Eo(e)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||Ag(e.textContent,n)?(a.popover!=null&&(Z("beforetoggle",e),Z("toggle",e)),a.onScroll!=null&&Z("scroll",e),a.onScrollEnd!=null&&Z("scrollend",e),a.onClick!=null&&(e.onclick=ws),e=!0):e=!1,e||Ba(t)}function Kd(t){for(Xt=t.return;Xt;)switch(Xt.tag){case 5:case 13:Ve=!1;return;case 27:case 3:Ve=!0;return;default:Xt=Xt.return}}function vi(t){if(t!==Xt)return!1;if(!I)return Kd(t),I=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Ec(t.type,t.memoizedProps)),n=!n),n&&St&&Ba(t),Kd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(O(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){St=ze(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}St=null}}else e===27?(e=St,ma(t.type)?(t=Oc,Oc=null,St=t):St=e):St=Xt?ze(t.stateNode.nextSibling):null;return!0}function vr(){St=Xt=null,I=!1}function Pd(){var t=_a;return t!==null&&(Jt===null?Jt=t:Jt.push.apply(Jt,t),_a=null),t}function Ki(t){_a===null?_a=[t]:_a.push(t)}var Wu=We(null),Za=null,dn=null;function qn(t,e,n){gt(Wu,e._currentValue),e._currentValue=n}function vn(t){t._currentValue=Wu.current,jt(Wu)}function Iu(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function tc(t,e,n,a){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var i=l.dependencies;if(i!==null){var r=l.child;i=i.firstContext;t:for(;i!==null;){var o=i;i=l;for(var s=0;s<e.length;s++)if(o.context===e[s]){i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),Iu(i.return,n,t),a||(r=null);break t}i=o.next}}else if(l.tag===18){if(r=l.return,r===null)throw Error(O(341));r.lanes|=n,i=r.alternate,i!==null&&(i.lanes|=n),Iu(r,n,t),r=null}else r=l.child;if(r!==null)r.return=l;else for(r=l;r!==null;){if(r===t){r=null;break}if(l=r.sibling,l!==null){l.return=r.return,r=l;break}r=r.return}l=r}}function gr(t,e,n,a){t=null;for(var l=e,i=!1;l!==null;){if(!i){if(l.flags&524288)i=!0;else if(l.flags&262144)break}if(l.tag===10){var r=l.alternate;if(r===null)throw Error(O(387));if(r=r.memoizedProps,r!==null){var o=l.type;he(l.pendingProps.value,r.value)||(t!==null?t.push(o):t=[o])}}else if(l===bo.current){if(r=l.alternate,r===null)throw Error(O(387));r.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(Ii):t=[Ii])}l=l.return}t!==null&&tc(e,t,n,a),e.flags|=262144}function Ro(t){for(t=t.firstContext;t!==null;){if(!he(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ha(t){Za=t,dn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Gt(t){return Zv(Za,t)}function Lr(t,e){return Za===null&&Ha(t),Zv(t,e)}function Zv(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},dn===null){if(t===null)throw Error(O(308));dn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else dn=dn.next=e;return n}var E1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},T1=Mt.unstable_scheduleCallback,A1=Mt.unstable_NormalPriority,Rt={$$typeof:un,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vf(){return{controller:new E1,data:new Map,refCount:0}}function yr(t){t.refCount--,t.refCount===0&&T1(A1,function(){t.controller.abort()})}var _i=null,ec=0,Vl=0,wl=null;function O1(t,e){if(_i===null){var n=_i=[];ec=0,Vl=Lf(),wl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ec++,e.then($d,$d),e}function $d(){if(--ec===0&&_i!==null){wl!==null&&(wl.status="fulfilled");var t=_i;_i=null,Vl=0,wl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function C1(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var l=0;l<n.length;l++)(0,n[l])(e)},function(l){for(a.status="rejected",a.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),a}var Jd=H.S;H.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&O1(t,e),Jd!==null&&Jd(t,e)};var za=We(null);function gf(){var t=za.current;return t!==null?t:st.pooledCache}function ro(t,e){e===null?gt(za,za.current):gt(za,e.pool)}function kv(){var t=gf();return t===null?null:{parent:Rt._currentValue,pool:t}}var pr=Error(O(460)),Kv=Error(O(474)),vs=Error(O(542)),nc={then:function(){}};function Fd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function qr(){}function Pv(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(qr,qr),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Id(t),t;default:if(typeof e.status=="string")e.then(qr,qr);else{if(t=st,t!==null&&100<t.shellSuspendCounter)throw Error(O(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var l=e;l.status="fulfilled",l.value=a}},function(a){if(e.status==="pending"){var l=e;l.status="rejected",l.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Id(t),t}throw zi=e,pr}}var zi=null;function Wd(){if(zi===null)throw Error(O(459));var t=zi;return zi=null,t}function Id(t){if(t===pr||t===vs)throw Error(O(483))}var Ln=!1;function yf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ac(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ta(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ea(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,at&2){var l=a.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),a.pending=e,e=Ao(t),Qv(t,null,n),e}return ms(t,a,e,n),Ao(t)}function ji(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,gv(t,n)}}function nu(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var r={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?l=i=r:i=i.next=r,n=n.next}while(n!==null);i===null?l=i=e:i=i.next=e}else l=i=e;n={baseState:a.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var lc=!1;function Ui(){if(lc){var t=wl;if(t!==null)throw t}}function Bi(t,e,n,a){lc=!1;var l=t.updateQueue;Ln=!1;var i=l.firstBaseUpdate,r=l.lastBaseUpdate,o=l.shared.pending;if(o!==null){l.shared.pending=null;var s=o,u=s.next;s.next=null,r===null?i=u:r.next=u,r=s;var f=t.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==r&&(o===null?f.firstBaseUpdate=u:o.next=u,f.lastBaseUpdate=s))}if(i!==null){var h=l.baseState;r=0,f=u=s=null,o=i;do{var d=o.lane&-536870913,c=d!==o.lane;if(c?($&d)===d:(a&d)===d){d!==0&&d===Vl&&(lc=!0),f!==null&&(f=f.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var w=t,g=o;d=e;var b=n;switch(g.tag){case 1:if(w=g.payload,typeof w=="function"){h=w.call(b,h,d);break t}h=w;break t;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,d=typeof w=="function"?w.call(b,h,d):w,d==null)break t;h=dt({},h,d);break t;case 2:Ln=!0}}d=o.callback,d!==null&&(t.flags|=64,c&&(t.flags|=8192),c=l.callbacks,c===null?l.callbacks=[d]:c.push(d))}else c={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=c,s=h):f=f.next=c,r|=d;if(o=o.next,o===null){if(o=l.shared.pending,o===null)break;c=o,o=c.next,c.next=null,l.lastBaseUpdate=c,l.shared.pending=null}}while(!0);f===null&&(s=h),l.baseState=s,l.firstBaseUpdate=u,l.lastBaseUpdate=f,i===null&&(l.shared.lanes=0),ua|=r,t.lanes=r,t.memoizedState=h}}function $v(t,e){if(typeof t!="function")throw Error(O(191,t));t.call(e)}function Jv(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)$v(n[t],e)}var Xl=We(null),No=We(0);function th(t,e){t=bn,gt(No,t),gt(Xl,e),bn=t|e.baseLanes}function ic(){gt(No,bn),gt(Xl,Xl.current)}function pf(){bn=No.current,jt(Xl),jt(No)}var oa=0,X=null,rt=null,Ot=null,Mo=!1,El=!1,La=!1,Do=0,Pi=0,Tl=null,R1=0;function Tt(){throw Error(O(321))}function bf(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!he(t[n],e[n]))return!1;return!0}function xf(t,e,n,a,l,i){return oa=i,X=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,H.H=t===null||t.memoizedState===null?C0:R0,La=!1,i=n(a,l),La=!1,El&&(i=Wv(e,n,a,l)),Fv(t),i}function Fv(t){H.H=_o;var e=rt!==null&&rt.next!==null;if(oa=0,Ot=rt=X=null,Mo=!1,Pi=0,Tl=null,e)throw Error(O(300));t===null||zt||(t=t.dependencies,t!==null&&Ro(t)&&(zt=!0))}function Wv(t,e,n,a){X=t;var l=0;do{if(El&&(Tl=null),Pi=0,El=!1,25<=l)throw Error(O(301));if(l+=1,Ot=rt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}H.H=U1,i=e(n,a)}while(El);return i}function N1(){var t=H.H,e=t.useState()[0];return e=typeof e.then=="function"?br(e):e,t=t.useState()[0],(rt!==null?rt.memoizedState:null)!==t&&(X.flags|=1024),e}function Sf(){var t=Do!==0;return Do=0,t}function wf(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Ef(t){if(Mo){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Mo=!1}oa=0,Ot=rt=X=null,El=!1,Pi=Do=0,Tl=null}function Pt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?X.memoizedState=Ot=t:Ot=Ot.next=t,Ot}function Ct(){if(rt===null){var t=X.alternate;t=t!==null?t.memoizedState:null}else t=rt.next;var e=Ot===null?X.memoizedState:Ot.next;if(e!==null)Ot=e,rt=t;else{if(t===null)throw X.alternate===null?Error(O(467)):Error(O(310));rt=t,t={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},Ot===null?X.memoizedState=Ot=t:Ot=Ot.next=t}return Ot}function Tf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function br(t){var e=Pi;return Pi+=1,Tl===null&&(Tl=[]),t=Pv(Tl,t,e),e=X,(Ot===null?e.memoizedState:Ot.next)===null&&(e=e.alternate,H.H=e===null||e.memoizedState===null?C0:R0),t}function gs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return br(t);if(t.$$typeof===un)return Gt(t)}throw Error(O(438,String(t)))}function Af(t){var e=null,n=X.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=X.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(l){return l.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Tf(),X.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=hb;return e.index++,n}function yn(t,e){return typeof e=="function"?e(t):e}function oo(t){var e=Ct();return Of(e,rt,t)}function Of(t,e,n){var a=t.queue;if(a===null)throw Error(O(311));a.lastRenderedReducer=n;var l=t.baseQueue,i=a.pending;if(i!==null){if(l!==null){var r=l.next;l.next=i.next,i.next=r}e.baseQueue=l=i,a.pending=null}if(i=t.baseState,l===null)t.memoizedState=i;else{e=l.next;var o=r=null,s=null,u=e,f=!1;do{var h=u.lane&-536870913;if(h!==u.lane?($&h)===h:(oa&h)===h){var d=u.revertLane;if(d===0)s!==null&&(s=s.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),h===Vl&&(f=!0);else if((oa&d)===d){u=u.next,d===Vl&&(f=!0);continue}else h={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=h,r=i):s=s.next=h,X.lanes|=d,ua|=d;h=u.action,La&&n(i,h),i=u.hasEagerState?u.eagerState:n(i,h)}else d={lane:h,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=d,r=i):s=s.next=d,X.lanes|=h,ua|=h;u=u.next}while(u!==null&&u!==e);if(s===null?r=i:s.next=o,!he(i,t.memoizedState)&&(zt=!0,f&&(n=wl,n!==null)))throw n;t.memoizedState=i,t.baseState=r,t.baseQueue=s,a.lastRenderedState=i}return l===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function au(t){var e=Ct(),n=e.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=t;var a=n.dispatch,l=n.pending,i=e.memoizedState;if(l!==null){n.pending=null;var r=l=l.next;do i=t(i,r.action),r=r.next;while(r!==l);he(i,e.memoizedState)||(zt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,a]}function Iv(t,e,n){var a=X,l=Ct(),i=I;if(i){if(n===void 0)throw Error(O(407));n=n()}else n=e();var r=!he((rt||l).memoizedState,n);r&&(l.memoizedState=n,zt=!0),l=l.queue;var o=n0.bind(null,a,l,t);if(xr(2048,8,o,[t]),l.getSnapshot!==e||r||Ot!==null&&Ot.memoizedState.tag&1){if(a.flags|=2048,Zl(9,ys(),e0.bind(null,a,l,n,e),null),st===null)throw Error(O(349));i||oa&124||t0(a,e,n)}return n}function t0(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=X.updateQueue,e===null?(e=Tf(),X.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function e0(t,e,n,a){e.value=n,e.getSnapshot=a,a0(e)&&l0(t)}function n0(t,e,n){return n(function(){a0(e)&&l0(t)})}function a0(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!he(t,n)}catch{return!0}}function l0(t){var e=ai(t,2);e!==null&&fe(e,t,2)}function rc(t){var e=Pt();if(typeof t=="function"){var n=t;if(t=n(),La){Pn(!0);try{n()}finally{Pn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:t},e}function i0(t,e,n,a){return t.baseState=n,Of(t,rt,typeof a=="function"?a:yn)}function M1(t,e,n,a,l){if(ps(t))throw Error(O(485));if(t=e.action,t!==null){var i={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){i.listeners.push(r)}};H.T!==null?n(!0):i.isTransition=!1,a(i),n=e.pending,n===null?(i.next=e.pending=i,r0(e,i)):(i.next=n.next,e.pending=n.next=i)}}function r0(t,e){var n=e.action,a=e.payload,l=t.state;if(e.isTransition){var i=H.T,r={};H.T=r;try{var o=n(l,a),s=H.S;s!==null&&s(r,o),eh(t,e,o)}catch(u){oc(t,e,u)}finally{H.T=i}}else try{i=n(l,a),eh(t,e,i)}catch(u){oc(t,e,u)}}function eh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){nh(t,e,a)},function(a){return oc(t,e,a)}):nh(t,e,n)}function nh(t,e,n){e.status="fulfilled",e.value=n,o0(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,r0(t,n)))}function oc(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,o0(e),e=e.next;while(e!==a)}t.action=null}function o0(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function s0(t,e){return e}function ah(t,e){if(I){var n=st.formState;if(n!==null){t:{var a=X;if(I){if(St){e:{for(var l=St,i=Ve;l.nodeType!==8;){if(!i){l=null;break e}if(l=ze(l.nextSibling),l===null){l=null;break e}}i=l.data,l=i==="F!"||i==="F"?l:null}if(l){St=ze(l.nextSibling),a=l.data==="F!";break t}}Ba(a)}a=!1}a&&(e=n[0])}}return n=Pt(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s0,lastRenderedState:e},n.queue=a,n=T0.bind(null,X,a),a.dispatch=n,a=rc(!1),i=Mf.bind(null,X,!1,a.queue),a=Pt(),l={state:e,dispatch:null,action:t,pending:null},a.queue=l,n=M1.bind(null,X,l,i,n),l.dispatch=n,a.memoizedState=t,[e,n,!1]}function lh(t){var e=Ct();return u0(e,rt,t)}function u0(t,e,n){if(e=Of(t,e,s0)[0],t=oo(yn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=br(e)}catch(r){throw r===pr?vs:r}else a=e;e=Ct();var l=e.queue,i=l.dispatch;return n!==e.memoizedState&&(X.flags|=2048,Zl(9,ys(),D1.bind(null,l,n),null)),[a,i,t]}function D1(t,e){t.action=e}function ih(t){var e=Ct(),n=rt;if(n!==null)return u0(e,n,t);Ct(),e=e.memoizedState,n=Ct();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Zl(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=X.updateQueue,e===null&&(e=Tf(),X.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function ys(){return{destroy:void 0,resource:void 0}}function c0(){return Ct().memoizedState}function so(t,e,n,a){var l=Pt();a=a===void 0?null:a,X.flags|=t,l.memoizedState=Zl(1|e,ys(),n,a)}function xr(t,e,n,a){var l=Ct();a=a===void 0?null:a;var i=l.memoizedState.inst;rt!==null&&a!==null&&bf(a,rt.memoizedState.deps)?l.memoizedState=Zl(e,i,n,a):(X.flags|=t,l.memoizedState=Zl(1|e,i,n,a))}function rh(t,e){so(8390656,8,t,e)}function f0(t,e){xr(2048,8,t,e)}function d0(t,e){return xr(4,2,t,e)}function h0(t,e){return xr(4,4,t,e)}function m0(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function v0(t,e,n){n=n!=null?n.concat([t]):null,xr(4,4,m0.bind(null,e,t),n)}function Cf(){}function g0(t,e){var n=Ct();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&bf(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function y0(t,e){var n=Ct();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&bf(e,a[1]))return a[0];if(a=t(),La){Pn(!0);try{t()}finally{Pn(!1)}}return n.memoizedState=[a,e],a}function Rf(t,e,n){return n===void 0||oa&1073741824?t.memoizedState=e:(t.memoizedState=n,t=og(),X.lanes|=t,ua|=t,n)}function p0(t,e,n,a){return he(n,e)?n:Xl.current!==null?(t=Rf(t,n,a),he(t,e)||(zt=!0),t):oa&42?(t=og(),X.lanes|=t,ua|=t,e):(zt=!0,t.memoizedState=n)}function b0(t,e,n,a,l){var i=tt.p;tt.p=i!==0&&8>i?i:8;var r=H.T,o={};H.T=o,Mf(t,!1,e,n);try{var s=l(),u=H.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=C1(s,a);Hi(t,e,f,ce(t))}else Hi(t,e,a,ce(t))}catch(h){Hi(t,e,{then:function(){},status:"rejected",reason:h},ce())}finally{tt.p=i,H.T=r}}function _1(){}function sc(t,e,n,a){if(t.tag!==5)throw Error(O(476));var l=x0(t).queue;b0(t,l,e,Na,n===null?_1:function(){return S0(t),n(a)})}function x0(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Na,baseState:Na,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:Na},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function S0(t){var e=x0(t).next.queue;Hi(t,e,{},ce())}function Nf(){return Gt(Ii)}function w0(){return Ct().memoizedState}function E0(){return Ct().memoizedState}function z1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=ce();t=ta(n);var a=ea(e,t,n);a!==null&&(fe(a,e,n),ji(a,e,n)),e={cache:vf()},t.payload=e;return}e=e.return}}function j1(t,e,n){var a=ce();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ps(t)?A0(e,n):(n=ff(t,e,n,a),n!==null&&(fe(n,t,a),O0(n,e,a)))}function T0(t,e,n){var a=ce();Hi(t,e,n,a)}function Hi(t,e,n,a){var l={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ps(t))A0(e,l);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var r=e.lastRenderedState,o=i(r,n);if(l.hasEagerState=!0,l.eagerState=o,he(o,r))return ms(t,e,l,0),st===null&&hs(),!1}catch{}finally{}if(n=ff(t,e,l,a),n!==null)return fe(n,t,a),O0(n,e,a),!0}return!1}function Mf(t,e,n,a){if(a={lane:2,revertLane:Lf(),action:a,hasEagerState:!1,eagerState:null,next:null},ps(t)){if(e)throw Error(O(479))}else e=ff(t,n,a,2),e!==null&&fe(e,t,2)}function ps(t){var e=t.alternate;return t===X||e!==null&&e===X}function A0(t,e){El=Mo=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function O0(t,e,n){if(n&4194048){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,gv(t,n)}}var _o={readContext:Gt,use:gs,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt,useHostTransitionStatus:Tt,useFormState:Tt,useActionState:Tt,useOptimistic:Tt,useMemoCache:Tt,useCacheRefresh:Tt},C0={readContext:Gt,use:gs,useCallback:function(t,e){return Pt().memoizedState=[t,e===void 0?null:e],t},useContext:Gt,useEffect:rh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,so(4194308,4,m0.bind(null,e,t),n)},useLayoutEffect:function(t,e){return so(4194308,4,t,e)},useInsertionEffect:function(t,e){so(4,2,t,e)},useMemo:function(t,e){var n=Pt();e=e===void 0?null:e;var a=t();if(La){Pn(!0);try{t()}finally{Pn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=Pt();if(n!==void 0){var l=n(e);if(La){Pn(!0);try{n(e)}finally{Pn(!1)}}}else l=e;return a.memoizedState=a.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},a.queue=t,t=t.dispatch=j1.bind(null,X,t),[a.memoizedState,t]},useRef:function(t){var e=Pt();return t={current:t},e.memoizedState=t},useState:function(t){t=rc(t);var e=t.queue,n=T0.bind(null,X,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Cf,useDeferredValue:function(t,e){var n=Pt();return Rf(n,t,e)},useTransition:function(){var t=rc(!1);return t=b0.bind(null,X,t.queue,!0,!1),Pt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=X,l=Pt();if(I){if(n===void 0)throw Error(O(407));n=n()}else{if(n=e(),st===null)throw Error(O(349));$&124||t0(a,e,n)}l.memoizedState=n;var i={value:n,getSnapshot:e};return l.queue=i,rh(n0.bind(null,a,i,t),[t]),a.flags|=2048,Zl(9,ys(),e0.bind(null,a,i,n,e),null),n},useId:function(){var t=Pt(),e=st.identifierPrefix;if(I){var n=fn,a=cn;n=(a&~(1<<32-ue(a)-1)).toString(32)+n,e="«"+e+"R"+n,n=Do++,0<n&&(e+="H"+n.toString(32)),e+="»"}else n=R1++,e="«"+e+"r"+n.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:Nf,useFormState:ah,useActionState:ah,useOptimistic:function(t){var e=Pt();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Mf.bind(null,X,!0,n),n.dispatch=e,[t,e]},useMemoCache:Af,useCacheRefresh:function(){return Pt().memoizedState=z1.bind(null,X)}},R0={readContext:Gt,use:gs,useCallback:g0,useContext:Gt,useEffect:f0,useImperativeHandle:v0,useInsertionEffect:d0,useLayoutEffect:h0,useMemo:y0,useReducer:oo,useRef:c0,useState:function(){return oo(yn)},useDebugValue:Cf,useDeferredValue:function(t,e){var n=Ct();return p0(n,rt.memoizedState,t,e)},useTransition:function(){var t=oo(yn)[0],e=Ct().memoizedState;return[typeof t=="boolean"?t:br(t),e]},useSyncExternalStore:Iv,useId:w0,useHostTransitionStatus:Nf,useFormState:lh,useActionState:lh,useOptimistic:function(t,e){var n=Ct();return i0(n,rt,t,e)},useMemoCache:Af,useCacheRefresh:E0},U1={readContext:Gt,use:gs,useCallback:g0,useContext:Gt,useEffect:f0,useImperativeHandle:v0,useInsertionEffect:d0,useLayoutEffect:h0,useMemo:y0,useReducer:au,useRef:c0,useState:function(){return au(yn)},useDebugValue:Cf,useDeferredValue:function(t,e){var n=Ct();return rt===null?Rf(n,t,e):p0(n,rt.memoizedState,t,e)},useTransition:function(){var t=au(yn)[0],e=Ct().memoizedState;return[typeof t=="boolean"?t:br(t),e]},useSyncExternalStore:Iv,useId:w0,useHostTransitionStatus:Nf,useFormState:ih,useActionState:ih,useOptimistic:function(t,e){var n=Ct();return rt!==null?i0(n,rt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Af,useCacheRefresh:E0},Al=null,$i=0;function Yr(t){var e=$i;return $i+=1,Al===null&&(Al=[]),Pv(Al,t,e)}function gi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Gr(t,e){throw e.$$typeof===fb?Error(O(525)):(t=Object.prototype.toString.call(e),Error(O(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function oh(t){var e=t._init;return e(t._payload)}function N0(t){function e(m,v){if(t){var p=m.deletions;p===null?(m.deletions=[v],m.flags|=16):p.push(v)}}function n(m,v){if(!t)return null;for(;v!==null;)e(m,v),v=v.sibling;return null}function a(m){for(var v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function l(m,v){return m=mn(m,v),m.index=0,m.sibling=null,m}function i(m,v,p){return m.index=p,t?(p=m.alternate,p!==null?(p=p.index,p<v?(m.flags|=67108866,v):p):(m.flags|=67108866,v)):(m.flags|=1048576,v)}function r(m){return t&&m.alternate===null&&(m.flags|=67108866),m}function o(m,v,p,S){return v===null||v.tag!==6?(v=tu(p,m.mode,S),v.return=m,v):(v=l(v,p),v.return=m,v)}function s(m,v,p,S){var E=p.type;return E===ol?f(m,v,p.props.children,S,p.key):v!==null&&(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Hn&&oh(E)===v.type)?(v=l(v,p.props),gi(v,p),v.return=m,v):(v=io(p.type,p.key,p.props,null,m.mode,S),gi(v,p),v.return=m,v)}function u(m,v,p,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==p.containerInfo||v.stateNode.implementation!==p.implementation?(v=eu(p,m.mode,S),v.return=m,v):(v=l(v,p.children||[]),v.return=m,v)}function f(m,v,p,S,E){return v===null||v.tag!==7?(v=Ma(p,m.mode,S,E),v.return=m,v):(v=l(v,p),v.return=m,v)}function h(m,v,p){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=tu(""+v,m.mode,p),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case zr:return p=io(v.type,v.key,v.props,null,m.mode,p),gi(p,v),p.return=m,p;case wi:return v=eu(v,m.mode,p),v.return=m,v;case Hn:var S=v._init;return v=S(v._payload),h(m,v,p)}if(Ei(v)||di(v))return v=Ma(v,m.mode,p,null),v.return=m,v;if(typeof v.then=="function")return h(m,Yr(v),p);if(v.$$typeof===un)return h(m,Lr(m,v),p);Gr(m,v)}return null}function d(m,v,p,S){var E=v!==null?v.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return E!==null?null:o(m,v,""+p,S);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case zr:return p.key===E?s(m,v,p,S):null;case wi:return p.key===E?u(m,v,p,S):null;case Hn:return E=p._init,p=E(p._payload),d(m,v,p,S)}if(Ei(p)||di(p))return E!==null?null:f(m,v,p,S,null);if(typeof p.then=="function")return d(m,v,Yr(p),S);if(p.$$typeof===un)return d(m,v,Lr(m,p),S);Gr(m,p)}return null}function c(m,v,p,S,E){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return m=m.get(p)||null,o(v,m,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case zr:return m=m.get(S.key===null?p:S.key)||null,s(v,m,S,E);case wi:return m=m.get(S.key===null?p:S.key)||null,u(v,m,S,E);case Hn:var C=S._init;return S=C(S._payload),c(m,v,p,S,E)}if(Ei(S)||di(S))return m=m.get(p)||null,f(v,m,S,E,null);if(typeof S.then=="function")return c(m,v,p,Yr(S),E);if(S.$$typeof===un)return c(m,v,p,Lr(v,S),E);Gr(v,S)}return null}function w(m,v,p,S){for(var E=null,C=null,T=v,N=v=0,j=null;T!==null&&N<p.length;N++){T.index>N?(j=T,T=null):j=T.sibling;var z=d(m,T,p[N],S);if(z===null){T===null&&(T=j);break}t&&T&&z.alternate===null&&e(m,T),v=i(z,v,N),C===null?E=z:C.sibling=z,C=z,T=j}if(N===p.length)return n(m,T),I&&xa(m,N),E;if(T===null){for(;N<p.length;N++)T=h(m,p[N],S),T!==null&&(v=i(T,v,N),C===null?E=T:C.sibling=T,C=T);return I&&xa(m,N),E}for(T=a(T);N<p.length;N++)j=c(T,m,N,p[N],S),j!==null&&(t&&j.alternate!==null&&T.delete(j.key===null?N:j.key),v=i(j,v,N),C===null?E=j:C.sibling=j,C=j);return t&&T.forEach(function(Q){return e(m,Q)}),I&&xa(m,N),E}function g(m,v,p,S){if(p==null)throw Error(O(151));for(var E=null,C=null,T=v,N=v=0,j=null,z=p.next();T!==null&&!z.done;N++,z=p.next()){T.index>N?(j=T,T=null):j=T.sibling;var Q=d(m,T,z.value,S);if(Q===null){T===null&&(T=j);break}t&&T&&Q.alternate===null&&e(m,T),v=i(Q,v,N),C===null?E=Q:C.sibling=Q,C=Q,T=j}if(z.done)return n(m,T),I&&xa(m,N),E;if(T===null){for(;!z.done;N++,z=p.next())z=h(m,z.value,S),z!==null&&(v=i(z,v,N),C===null?E=z:C.sibling=z,C=z);return I&&xa(m,N),E}for(T=a(T);!z.done;N++,z=p.next())z=c(T,m,N,z.value,S),z!==null&&(t&&z.alternate!==null&&T.delete(z.key===null?N:z.key),v=i(z,v,N),C===null?E=z:C.sibling=z,C=z);return t&&T.forEach(function(B){return e(m,B)}),I&&xa(m,N),E}function b(m,v,p,S){if(typeof p=="object"&&p!==null&&p.type===ol&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case zr:t:{for(var E=p.key;v!==null;){if(v.key===E){if(E=p.type,E===ol){if(v.tag===7){n(m,v.sibling),S=l(v,p.props.children),S.return=m,m=S;break t}}else if(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Hn&&oh(E)===v.type){n(m,v.sibling),S=l(v,p.props),gi(S,p),S.return=m,m=S;break t}n(m,v);break}else e(m,v);v=v.sibling}p.type===ol?(S=Ma(p.props.children,m.mode,S,p.key),S.return=m,m=S):(S=io(p.type,p.key,p.props,null,m.mode,S),gi(S,p),S.return=m,m=S)}return r(m);case wi:t:{for(E=p.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===p.containerInfo&&v.stateNode.implementation===p.implementation){n(m,v.sibling),S=l(v,p.children||[]),S.return=m,m=S;break t}else{n(m,v);break}else e(m,v);v=v.sibling}S=eu(p,m.mode,S),S.return=m,m=S}return r(m);case Hn:return E=p._init,p=E(p._payload),b(m,v,p,S)}if(Ei(p))return w(m,v,p,S);if(di(p)){if(E=di(p),typeof E!="function")throw Error(O(150));return p=E.call(p),g(m,v,p,S)}if(typeof p.then=="function")return b(m,v,Yr(p),S);if(p.$$typeof===un)return b(m,v,Lr(m,p),S);Gr(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,v!==null&&v.tag===6?(n(m,v.sibling),S=l(v,p),S.return=m,m=S):(n(m,v),S=tu(p,m.mode,S),S.return=m,m=S),r(m)):n(m,v)}return function(m,v,p,S){try{$i=0;var E=b(m,v,p,S);return Al=null,E}catch(T){if(T===pr||T===vs)throw T;var C=re(29,T,null,m.mode);return C.lanes=S,C.return=m,C}finally{}}}var kl=N0(!0),M0=N0(!1),Ee=We(null),$e=null;function Yn(t){var e=t.alternate;gt(Nt,Nt.current&1),gt(Ee,t),$e===null&&(e===null||Xl.current!==null||e.memoizedState!==null)&&($e=t)}function D0(t){if(t.tag===22){if(gt(Nt,Nt.current),gt(Ee,t),$e===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&($e=t)}}else Gn()}function Gn(){gt(Nt,Nt.current),gt(Ee,Ee.current)}function hn(t){jt(Ee),$e===t&&($e=null),jt(Nt)}var Nt=We(0);function zo(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Ac(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function lu(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:dt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var uc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=ce(),l=ta(a);l.payload=e,n!=null&&(l.callback=n),e=ea(t,l,a),e!==null&&(fe(e,t,a),ji(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=ce(),l=ta(a);l.tag=1,l.payload=e,n!=null&&(l.callback=n),e=ea(t,l,a),e!==null&&(fe(e,t,a),ji(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=ce(),a=ta(n);a.tag=2,e!=null&&(a.callback=e),e=ea(t,a,n),e!==null&&(fe(e,t,n),ji(e,t,n))}};function sh(t,e,n,a,l,i,r){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,i,r):e.prototype&&e.prototype.isPureReactComponent?!ki(n,a)||!ki(l,i):!0}function uh(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&uc.enqueueReplaceState(e,e.state,null)}function qa(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=dt({},n));for(var l in t)n[l]===void 0&&(n[l]=t[l])}return n}var jo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function _0(t){jo(t)}function z0(t){console.error(t)}function j0(t){jo(t)}function Uo(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function ch(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function cc(t,e,n){return n=ta(n),n.tag=3,n.payload={element:null},n.callback=function(){Uo(t,e)},n}function U0(t){return t=ta(t),t.tag=3,t}function B0(t,e,n,a){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var i=a.value;t.payload=function(){return l(i)},t.callback=function(){ch(e,n,a)}}var r=n.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(t.callback=function(){ch(e,n,a),typeof l!="function"&&(na===null?na=new Set([this]):na.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function B1(t,e,n,a,l){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&gr(e,n,l,!0),n=Ee.current,n!==null){switch(n.tag){case 13:return $e===null?pc():n.alternate===null&&wt===0&&(wt=3),n.flags&=-257,n.flags|=65536,n.lanes=l,a===nc?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),vu(t,a,l)),!1;case 22:return n.flags|=65536,a===nc?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),vu(t,a,l)),!1}throw Error(O(435,n.tag))}return vu(t,a,l),pc(),!1}if(I)return e=Ee.current,e!==null?(!(e.flags&65536)&&(e.flags|=256),e.flags|=65536,e.lanes=l,a!==Fu&&(t=Error(O(422),{cause:a}),Ki(Se(t,n)))):(a!==Fu&&(e=Error(O(423),{cause:a}),Ki(Se(e,n))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,a=Se(a,n),l=cc(t.stateNode,a,l),nu(t,l),wt!==4&&(wt=2)),!1;var i=Error(O(520),{cause:a});if(i=Se(i,n),Yi===null?Yi=[i]:Yi.push(i),wt!==4&&(wt=2),e===null)return!0;a=Se(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=l&-l,n.lanes|=t,t=cc(n.stateNode,a,t),nu(n,t),!1;case 1:if(e=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(na===null||!na.has(i))))return n.flags|=65536,l&=-l,n.lanes|=l,l=U0(l),B0(l,t,n,a),nu(n,l),!1}n=n.return}while(n!==null);return!1}var H0=Error(O(461)),zt=!1;function Ut(t,e,n,a){e.child=t===null?M0(e,null,n,a):kl(e,t.child,n,a)}function fh(t,e,n,a,l){n=n.render;var i=e.ref;if("ref"in a){var r={};for(var o in a)o!=="ref"&&(r[o]=a[o])}else r=a;return Ha(e),a=xf(t,e,n,r,i,l),o=Sf(),t!==null&&!zt?(wf(t,e,l),pn(t,e,l)):(I&&o&&hf(e),e.flags|=1,Ut(t,e,a,l),e.child)}function dh(t,e,n,a,l){if(t===null){var i=n.type;return typeof i=="function"&&!df(i)&&i.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=i,L0(t,e,i,a,l)):(t=io(n.type,null,a,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Df(t,l)){var r=i.memoizedProps;if(n=n.compare,n=n!==null?n:ki,n(r,a)&&t.ref===e.ref)return pn(t,e,l)}return e.flags|=1,t=mn(i,a),t.ref=e.ref,t.return=e,e.child=t}function L0(t,e,n,a,l){if(t!==null){var i=t.memoizedProps;if(ki(i,a)&&t.ref===e.ref)if(zt=!1,e.pendingProps=a=i,Df(t,l))t.flags&131072&&(zt=!0);else return e.lanes=t.lanes,pn(t,e,l)}return fc(t,e,n,a,l)}function q0(t,e,n){var a=e.pendingProps,l=a.children,i=t!==null?t.memoizedState:null;if(a.mode==="hidden"){if(e.flags&128){if(a=i!==null?i.baseLanes|n:n,t!==null){for(l=e.child=t.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;e.childLanes=i&~a}else e.childLanes=0,e.child=null;return hh(t,e,a,n)}if(n&536870912)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ro(e,i!==null?i.cachePool:null),i!==null?th(e,i):ic(),D0(e);else return e.lanes=e.childLanes=536870912,hh(t,e,i!==null?i.baseLanes|n:n,n)}else i!==null?(ro(e,i.cachePool),th(e,i),Gn(),e.memoizedState=null):(t!==null&&ro(e,null),ic(),Gn());return Ut(t,e,l,n),e.child}function hh(t,e,n,a){var l=gf();return l=l===null?null:{parent:Rt._currentValue,pool:l},e.memoizedState={baseLanes:n,cachePool:l},t!==null&&ro(e,null),ic(),D0(e),t!==null&&gr(t,e,a,!0),null}function uo(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(O(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function fc(t,e,n,a,l){return Ha(e),n=xf(t,e,n,a,void 0,l),a=Sf(),t!==null&&!zt?(wf(t,e,l),pn(t,e,l)):(I&&a&&hf(e),e.flags|=1,Ut(t,e,n,l),e.child)}function mh(t,e,n,a,l,i){return Ha(e),e.updateQueue=null,n=Wv(e,a,n,l),Fv(t),a=Sf(),t!==null&&!zt?(wf(t,e,i),pn(t,e,i)):(I&&a&&hf(e),e.flags|=1,Ut(t,e,n,i),e.child)}function vh(t,e,n,a,l){if(Ha(e),e.stateNode===null){var i=vl,r=n.contextType;typeof r=="object"&&r!==null&&(i=Gt(r)),i=new n(a,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=uc,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=a,i.state=e.memoizedState,i.refs={},yf(e),r=n.contextType,i.context=typeof r=="object"&&r!==null?Gt(r):vl,i.state=e.memoizedState,r=n.getDerivedStateFromProps,typeof r=="function"&&(lu(e,n,r,a),i.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(r=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),r!==i.state&&uc.enqueueReplaceState(i,i.state,null),Bi(e,a,i,l),Ui(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){i=e.stateNode;var o=e.memoizedProps,s=qa(n,o);i.props=s;var u=i.context,f=n.contextType;r=vl,typeof f=="object"&&f!==null&&(r=Gt(f));var h=n.getDerivedStateFromProps;f=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||u!==r)&&uh(e,i,a,r),Ln=!1;var d=e.memoizedState;i.state=d,Bi(e,a,i,l),Ui(),u=e.memoizedState,o||d!==u||Ln?(typeof h=="function"&&(lu(e,n,h,a),u=e.memoizedState),(s=Ln||sh(e,n,s,a,d,u,r))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=u),i.props=a,i.state=u,i.context=r,a=s):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{i=e.stateNode,ac(t,e),r=e.memoizedProps,f=qa(n,r),i.props=f,h=e.pendingProps,d=i.context,u=n.contextType,s=vl,typeof u=="object"&&u!==null&&(s=Gt(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r!==h||d!==s)&&uh(e,i,a,s),Ln=!1,d=e.memoizedState,i.state=d,Bi(e,a,i,l),Ui();var c=e.memoizedState;r!==h||d!==c||Ln||t!==null&&t.dependencies!==null&&Ro(t.dependencies)?(typeof o=="function"&&(lu(e,n,o,a),c=e.memoizedState),(f=Ln||sh(e,n,f,a,d,c,s)||t!==null&&t.dependencies!==null&&Ro(t.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,c,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,c,s)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||r===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=c),i.props=a,i.state=c,i.context=s,a=f):(typeof i.componentDidUpdate!="function"||r===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),a=!1)}return i=a,uo(t,e),a=(e.flags&128)!==0,i||a?(i=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&a?(e.child=kl(e,t.child,null,l),e.child=kl(e,null,n,l)):Ut(t,e,n,l),e.memoizedState=i.state,t=e.child):t=pn(t,e,l),t}function gh(t,e,n,a){return vr(),e.flags|=256,Ut(t,e,n,a),e.child}var iu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ru(t){return{baseLanes:t,cachePool:kv()}}function ou(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=we),t}function Y0(t,e,n){var a=e.pendingProps,l=!1,i=(e.flags&128)!==0,r;if((r=i)||(r=t!==null&&t.memoizedState===null?!1:(Nt.current&2)!==0),r&&(l=!0,e.flags&=-129),r=(e.flags&32)!==0,e.flags&=-33,t===null){if(I){if(l?Yn(e):Gn(),I){var o=St,s;if(s=o){t:{for(s=o,o=Ve;s.nodeType!==8;){if(!o){o=null;break t}if(s=ze(s.nextSibling),s===null){o=null;break t}}o=s}o!==null?(e.memoizedState={dehydrated:o,treeContext:Da!==null?{id:cn,overflow:fn}:null,retryLane:536870912,hydrationErrors:null},s=re(18,null,null,0),s.stateNode=o,s.return=e,e.child=s,Xt=e,St=null,s=!0):s=!1}s||Ba(e)}if(o=e.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return Ac(o)?e.lanes=32:e.lanes=536870912,null;hn(e)}return o=a.children,a=a.fallback,l?(Gn(),l=e.mode,o=Bo({mode:"hidden",children:o},l),a=Ma(a,l,n,null),o.return=e,a.return=e,o.sibling=a,e.child=o,l=e.child,l.memoizedState=ru(n),l.childLanes=ou(t,r,n),e.memoizedState=iu,a):(Yn(e),dc(e,o))}if(s=t.memoizedState,s!==null&&(o=s.dehydrated,o!==null)){if(i)e.flags&256?(Yn(e),e.flags&=-257,e=su(t,e,n)):e.memoizedState!==null?(Gn(),e.child=t.child,e.flags|=128,e=null):(Gn(),l=a.fallback,o=e.mode,a=Bo({mode:"visible",children:a.children},o),l=Ma(l,o,n,null),l.flags|=2,a.return=e,l.return=e,a.sibling=l,e.child=a,kl(e,t.child,null,n),a=e.child,a.memoizedState=ru(n),a.childLanes=ou(t,r,n),e.memoizedState=iu,e=l);else if(Yn(e),Ac(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;r=u,a=Error(O(419)),a.stack="",a.digest=r,Ki({value:a,source:null,stack:null}),e=su(t,e,n)}else if(zt||gr(t,e,n,!1),r=(n&t.childLanes)!==0,zt||r){if(r=st,r!==null&&(a=n&-n,a=a&42?1:tf(a),a=a&(r.suspendedLanes|n)?0:a,a!==0&&a!==s.retryLane))throw s.retryLane=a,ai(t,a),fe(r,t,a),H0;o.data==="$?"||pc(),e=su(t,e,n)}else o.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=s.treeContext,St=ze(o.nextSibling),Xt=e,I=!0,_a=null,Ve=!1,t!==null&&(pe[be++]=cn,pe[be++]=fn,pe[be++]=Da,cn=t.id,fn=t.overflow,Da=e),e=dc(e,a.children),e.flags|=4096);return e}return l?(Gn(),l=a.fallback,o=e.mode,s=t.child,u=s.sibling,a=mn(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=mn(u,l):(l=Ma(l,o,n,null),l.flags|=2),l.return=e,a.return=e,a.sibling=l,e.child=a,a=l,l=e.child,o=t.child.memoizedState,o===null?o=ru(n):(s=o.cachePool,s!==null?(u=Rt._currentValue,s=s.parent!==u?{parent:u,pool:u}:s):s=kv(),o={baseLanes:o.baseLanes|n,cachePool:s}),l.memoizedState=o,l.childLanes=ou(t,r,n),e.memoizedState=iu,a):(Yn(e),n=t.child,t=n.sibling,n=mn(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n)}function dc(t,e){return e=Bo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Bo(t,e){return t=re(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function su(t,e,n){return kl(e,t.child,null,n),t=dc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function yh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Iu(t.return,e,n)}function uu(t,e,n,a,l){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:l}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=l)}function G0(t,e,n){var a=e.pendingProps,l=a.revealOrder,i=a.tail;if(Ut(t,e,a.children,n),a=Nt.current,a&2)a=a&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&yh(t,n,e);else if(t.tag===19)yh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}switch(gt(Nt,a),l){case"forwards":for(n=e.child,l=null;n!==null;)t=n.alternate,t!==null&&zo(t)===null&&(l=n),n=n.sibling;n=l,n===null?(l=e.child,e.child=null):(l=n.sibling,n.sibling=null),uu(e,!1,l,n,i);break;case"backwards":for(n=null,l=e.child,e.child=null;l!==null;){if(t=l.alternate,t!==null&&zo(t)===null){e.child=l;break}t=l.sibling,l.sibling=n,n=l,l=t}uu(e,!0,n,null,i);break;case"together":uu(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function pn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ua|=e.lanes,!(n&e.childLanes))if(t!==null){if(gr(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(O(153));if(e.child!==null){for(t=e.child,n=mn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=mn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Df(t,e){return t.lanes&e?!0:(t=t.dependencies,!!(t!==null&&Ro(t)))}function H1(t,e,n){switch(e.tag){case 3:xo(e,e.stateNode.containerInfo),qn(e,Rt,t.memoizedState.cache),vr();break;case 27:case 5:Gu(e);break;case 4:xo(e,e.stateNode.containerInfo);break;case 10:qn(e,e.type,e.memoizedProps.value);break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Yn(e),e.flags|=128,null):n&e.child.childLanes?Y0(t,e,n):(Yn(e),t=pn(t,e,n),t!==null?t.sibling:null);Yn(e);break;case 19:var l=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(gr(t,e,n,!1),a=(n&e.childLanes)!==0),l){if(a)return G0(t,e,n);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),gt(Nt,Nt.current),a)break;return null;case 22:case 23:return e.lanes=0,q0(t,e,n);case 24:qn(e,Rt,t.memoizedState.cache)}return pn(t,e,n)}function Q0(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)zt=!0;else{if(!Df(t,n)&&!(e.flags&128))return zt=!1,H1(t,e,n);zt=!!(t.flags&131072)}else zt=!1,I&&e.flags&1048576&&Xv(e,Co,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var a=e.elementType,l=a._init;if(a=l(a._payload),e.type=a,typeof a=="function")df(a)?(t=qa(a,t),e.tag=1,e=vh(null,e,a,t,n)):(e.tag=0,e=fc(null,e,a,t,n));else{if(a!=null){if(l=a.$$typeof,l===Fc){e.tag=11,e=fh(null,e,a,t,n);break t}else if(l===Wc){e.tag=14,e=dh(null,e,a,t,n);break t}}throw e=qu(a)||a,Error(O(306,e,""))}}return e;case 0:return fc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,l=qa(a,e.pendingProps),vh(t,e,a,l,n);case 3:t:{if(xo(e,e.stateNode.containerInfo),t===null)throw Error(O(387));a=e.pendingProps;var i=e.memoizedState;l=i.element,ac(t,e),Bi(e,a,null,n);var r=e.memoizedState;if(a=r.cache,qn(e,Rt,a),a!==i.cache&&tc(e,[Rt],n,!0),Ui(),a=r.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:r.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=gh(t,e,a,n);break t}else if(a!==l){l=Se(Error(O(424)),e),Ki(l),e=gh(t,e,a,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(St=ze(t.firstChild),Xt=e,I=!0,_a=null,Ve=!0,n=M0(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(vr(),a===l){e=pn(t,e,n);break t}Ut(t,e,a,n)}e=e.child}return e;case 26:return uo(t,e),t===null?(n=jh(e.type,null,e.pendingProps,null))?e.memoizedState=n:I||(n=e.type,t=e.pendingProps,a=Vo(In.current).createElement(n),a[Yt]=e,a[It]=t,Ht(a,n,t),_t(a),e.stateNode=a):e.memoizedState=jh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Gu(e),t===null&&I&&(a=e.stateNode=Rg(e.type,e.pendingProps,In.current),Xt=e,Ve=!0,l=St,ma(e.type)?(Oc=l,St=ze(a.firstChild)):St=l),Ut(t,e,e.pendingProps.children,n),uo(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&I&&((l=a=St)&&(a=fx(a,e.type,e.pendingProps,Ve),a!==null?(e.stateNode=a,Xt=e,St=ze(a.firstChild),Ve=!1,l=!0):l=!1),l||Ba(e)),Gu(e),l=e.type,i=e.pendingProps,r=t!==null?t.memoizedProps:null,a=i.children,Ec(l,i)?a=null:r!==null&&Ec(l,r)&&(e.flags|=32),e.memoizedState!==null&&(l=xf(t,e,N1,null,null,n),Ii._currentValue=l),uo(t,e),Ut(t,e,a,n),e.child;case 6:return t===null&&I&&((t=n=St)&&(n=dx(n,e.pendingProps,Ve),n!==null?(e.stateNode=n,Xt=e,St=null,t=!0):t=!1),t||Ba(e)),null;case 13:return Y0(t,e,n);case 4:return xo(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=kl(e,null,a,n):Ut(t,e,a,n),e.child;case 11:return fh(t,e,e.type,e.pendingProps,n);case 7:return Ut(t,e,e.pendingProps,n),e.child;case 8:return Ut(t,e,e.pendingProps.children,n),e.child;case 12:return Ut(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,qn(e,e.type,a.value),Ut(t,e,a.children,n),e.child;case 9:return l=e.type._context,a=e.pendingProps.children,Ha(e),l=Gt(l),a=a(l),e.flags|=1,Ut(t,e,a,n),e.child;case 14:return dh(t,e,e.type,e.pendingProps,n);case 15:return L0(t,e,e.type,e.pendingProps,n);case 19:return G0(t,e,n);case 31:return a=e.pendingProps,n=e.mode,a={mode:a.mode,children:a.children},t===null?(n=Bo(a,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=mn(t.child,a),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return q0(t,e,n);case 24:return Ha(e),a=Gt(Rt),t===null?(l=gf(),l===null&&(l=st,i=vf(),l.pooledCache=i,i.refCount++,i!==null&&(l.pooledCacheLanes|=n),l=i),e.memoizedState={parent:a,cache:l},yf(e),qn(e,Rt,l)):(t.lanes&n&&(ac(t,e),Bi(e,null,null,n),Ui()),l=t.memoizedState,i=e.memoizedState,l.parent!==a?(l={parent:a,cache:a},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),qn(e,Rt,a)):(a=i.cache,qn(e,Rt,a),a!==l.cache&&tc(e,[Rt],n,!0))),Ut(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(O(156,e.tag))}function nn(t){t.flags|=4}function ph(t,e){if(e.type!=="stylesheet"||e.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!Dg(e)){if(e=Ee.current,e!==null&&(($&4194048)===$?$e!==null:($&62914560)!==$&&!($&536870912)||e!==$e))throw zi=nc,Kv;t.flags|=8192}}function Qr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?mv():536870912,t.lanes|=e,Kl|=e)}function yi(t,e){if(!I)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function pt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var l=t.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&65011712,a|=l.flags&65011712,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags,a|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function L1(t,e,n){var a=e.pendingProps;switch(mf(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(e),null;case 1:return pt(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),vn(Rt),Yl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(vi(e)?nn(e):t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Pd())),pt(e),null;case 26:return n=e.memoizedState,t===null?(nn(e),n!==null?(pt(e),ph(e,n)):(pt(e),e.flags&=-16777217)):n?n!==t.memoizedState?(nn(e),pt(e),ph(e,n)):(pt(e),e.flags&=-16777217):(t.memoizedProps!==a&&nn(e),pt(e),e.flags&=-16777217),null;case 27:So(e),n=In.current;var l=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==a&&nn(e);else{if(!a){if(e.stateNode===null)throw Error(O(166));return pt(e),null}t=Ke.current,vi(e)?kd(e):(t=Rg(l,a,n),e.stateNode=t,nn(e))}return pt(e),null;case 5:if(So(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&nn(e);else{if(!a){if(e.stateNode===null)throw Error(O(166));return pt(e),null}if(t=Ke.current,vi(e))kd(e);else{switch(l=Vo(In.current),t){case 1:t=l.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=l.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=l.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=l.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=l.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof a.is=="string"?l.createElement("select",{is:a.is}):l.createElement("select"),a.multiple?t.multiple=!0:a.size&&(t.size=a.size);break;default:t=typeof a.is=="string"?l.createElement(n,{is:a.is}):l.createElement(n)}}t[Yt]=e,t[It]=a;t:for(l=e.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break t;for(;l.sibling===null;){if(l.return===null||l.return===e)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}e.stateNode=t;t:switch(Ht(t,n,a),n){case"button":case"input":case"select":case"textarea":t=!!a.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&nn(e)}}return pt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&nn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(O(166));if(t=In.current,vi(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,l=Xt,l!==null)switch(l.tag){case 27:case 5:a=l.memoizedProps}t[Yt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Ag(t.nodeValue,n)),t||Ba(e)}else t=Vo(t).createTextNode(a),t[Yt]=e,e.stateNode=t}return pt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=vi(e),a!==null&&a.dehydrated!==null){if(t===null){if(!l)throw Error(O(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(O(317));l[Yt]=e}else vr(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;pt(e),l=!1}else l=Pd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return e.flags&256?(hn(e),e):(hn(e),null)}if(hn(e),e.flags&128)return e.lanes=n,e;if(n=a!==null,t=t!==null&&t.memoizedState!==null,n){a=e.child,l=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(l=a.alternate.memoizedState.cachePool.pool);var i=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==l&&(a.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),Qr(e,e.updateQueue),pt(e),null;case 4:return Yl(),t===null&&qf(e.stateNode.containerInfo),pt(e),null;case 10:return vn(e.type),pt(e),null;case 19:if(jt(Nt),l=e.memoizedState,l===null)return pt(e),null;if(a=(e.flags&128)!==0,i=l.rendering,i===null)if(a)yi(l,!1);else{if(wt!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(i=zo(t),i!==null){for(e.flags|=128,yi(l,!1),t=i.updateQueue,e.updateQueue=t,Qr(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Vv(n,t),n=n.sibling;return gt(Nt,Nt.current&1|2),e.child}t=t.sibling}l.tail!==null&&Pe()>Lo&&(e.flags|=128,a=!0,yi(l,!1),e.lanes=4194304)}else{if(!a)if(t=zo(i),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Qr(e,t),yi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!I)return pt(e),null}else 2*Pe()-l.renderingStartTime>Lo&&n!==536870912&&(e.flags|=128,a=!0,yi(l,!1),e.lanes=4194304);l.isBackwards?(i.sibling=e.child,e.child=i):(t=l.last,t!==null?t.sibling=i:e.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Pe(),e.sibling=null,t=Nt.current,gt(Nt,a?t&1|2:t&1),e):(pt(e),null);case 22:case 23:return hn(e),pf(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?n&536870912&&!(e.flags&128)&&(pt(e),e.subtreeFlags&6&&(e.flags|=8192)):pt(e),n=e.updateQueue,n!==null&&Qr(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&jt(za),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),vn(Rt),pt(e),null;case 25:return null;case 30:return null}throw Error(O(156,e.tag))}function q1(t,e){switch(mf(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return vn(Rt),Yl(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return So(e),null;case 13:if(hn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(O(340));vr()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return jt(Nt),null;case 4:return Yl(),null;case 10:return vn(e.type),null;case 22:case 23:return hn(e),pf(),t!==null&&jt(za),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return vn(Rt),null;case 25:return null;default:return null}}function V0(t,e){switch(mf(e),e.tag){case 3:vn(Rt),Yl();break;case 26:case 27:case 5:So(e);break;case 4:Yl();break;case 13:hn(e);break;case 19:jt(Nt);break;case 10:vn(e.type);break;case 22:case 23:hn(e),pf(),t!==null&&jt(za);break;case 24:vn(Rt)}}function Sr(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&t)===t){a=void 0;var i=n.create,r=n.inst;a=i(),r.destroy=a}n=n.next}while(n!==l)}}catch(o){ot(e,e.return,o)}}function sa(t,e,n){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&t)===t){var r=a.inst,o=r.destroy;if(o!==void 0){r.destroy=void 0,l=e;var s=n,u=o;try{u()}catch(f){ot(l,s,f)}}}a=a.next}while(a!==i)}}catch(f){ot(e,e.return,f)}}function X0(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Jv(e,n)}catch(a){ot(t,t.return,a)}}}function Z0(t,e,n){n.props=qa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){ot(t,e,a)}}function Li(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(l){ot(t,e,l)}}function Ze(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(l){ot(t,e,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){ot(t,e,l)}else n.current=null}function k0(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(l){ot(t,t.return,l)}}function cu(t,e,n){try{var a=t.stateNode;rx(a,t.type,n,e),a[It]=e}catch(l){ot(t,t.return,l)}}function K0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ma(t.type)||t.tag===4}function fu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||K0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ma(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function hc(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ws));else if(a!==4&&(a===27&&ma(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(hc(t,e,n),t=t.sibling;t!==null;)hc(t,e,n),t=t.sibling}function Ho(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&ma(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Ho(t,e,n),t=t.sibling;t!==null;)Ho(t,e,n),t=t.sibling}function P0(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,l=e.attributes;l.length;)e.removeAttributeNode(l[0]);Ht(e,a,n),e[Yt]=t,e[It]=n}catch(i){ot(t,t.return,i)}}var sn=!1,At=!1,du=!1,bh=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function Y1(t,e){if(t=t.containerInfo,Sc=Ko,t=Uv(t),uf(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var l=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break t}var r=0,o=-1,s=-1,u=0,f=0,h=t,d=null;e:for(;;){for(var c;h!==n||l!==0&&h.nodeType!==3||(o=r+l),h!==i||a!==0&&h.nodeType!==3||(s=r+a),h.nodeType===3&&(r+=h.nodeValue.length),(c=h.firstChild)!==null;)d=h,h=c;for(;;){if(h===t)break e;if(d===n&&++u===l&&(o=r),d===i&&++f===a&&(s=r),(c=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=c}n=o===-1||s===-1?null:{start:o,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(wc={focusedElem:t,selectionRange:n},Ko=!1,Dt=e;Dt!==null;)if(e=Dt,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,Dt=t;else for(;Dt!==null;){switch(e=Dt,i=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if(t&1024&&i!==null){t=void 0,n=e,l=i.memoizedProps,i=i.memoizedState,a=n.stateNode;try{var w=qa(n.type,l,n.elementType===n.type);t=a.getSnapshotBeforeUpdate(w,i),a.__reactInternalSnapshotBeforeUpdate=t}catch(g){ot(n,n.return,g)}}break;case 3:if(t&1024){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Tc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Tc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(O(163))}if(t=e.sibling,t!==null){t.return=e.return,Dt=t;break}Dt=e.return}}function $0(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Dn(t,n),a&4&&Sr(5,n);break;case 1:if(Dn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(r){ot(n,n.return,r)}else{var l=qa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(r){ot(n,n.return,r)}}a&64&&X0(n),a&512&&Li(n,n.return);break;case 3:if(Dn(t,n),a&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Jv(t,e)}catch(r){ot(n,n.return,r)}}break;case 27:e===null&&a&4&&P0(n);case 26:case 5:Dn(t,n),e===null&&a&4&&k0(n),a&512&&Li(n,n.return);break;case 12:Dn(t,n);break;case 13:Dn(t,n),a&4&&W0(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=$1.bind(null,n),hx(t,n))));break;case 22:if(a=n.memoizedState!==null||sn,!a){e=e!==null&&e.memoizedState!==null||At,l=sn;var i=At;sn=a,(At=e)&&!i?jn(t,n,(n.subtreeFlags&8772)!==0):Dn(t,n),sn=l,At=i}break;case 30:break;default:Dn(t,n)}}function J0(t){var e=t.alternate;e!==null&&(t.alternate=null,J0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&nf(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var mt=null,$t=!1;function an(t,e,n){for(n=n.child;n!==null;)F0(t,e,n),n=n.sibling}function F0(t,e,n){if(se&&typeof se.onCommitFiberUnmount=="function")try{se.onCommitFiberUnmount(cr,n)}catch{}switch(n.tag){case 26:At||Ze(n,e),an(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:At||Ze(n,e);var a=mt,l=$t;ma(n.type)&&(mt=n.stateNode,$t=!1),an(t,e,n),Qi(n.stateNode),mt=a,$t=l;break;case 5:At||Ze(n,e);case 6:if(a=mt,l=$t,mt=null,an(t,e,n),mt=a,$t=l,mt!==null)if($t)try{(mt.nodeType===9?mt.body:mt.nodeName==="HTML"?mt.ownerDocument.body:mt).removeChild(n.stateNode)}catch(i){ot(n,e,i)}else try{mt.removeChild(n.stateNode)}catch(i){ot(n,e,i)}break;case 18:mt!==null&&($t?(t=mt,Dh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),nr(t)):Dh(mt,n.stateNode));break;case 4:a=mt,l=$t,mt=n.stateNode.containerInfo,$t=!0,an(t,e,n),mt=a,$t=l;break;case 0:case 11:case 14:case 15:At||sa(2,n,e),At||sa(4,n,e),an(t,e,n);break;case 1:At||(Ze(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Z0(n,e,a)),an(t,e,n);break;case 21:an(t,e,n);break;case 22:At=(a=At)||n.memoizedState!==null,an(t,e,n),At=a;break;default:an(t,e,n)}}function W0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{nr(t)}catch(n){ot(e,e.return,n)}}function G1(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new bh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new bh),e;default:throw Error(O(435,t.tag))}}function hu(t,e){var n=G1(t);e.forEach(function(a){var l=J1.bind(null,t,a);n.has(a)||(n.add(a),a.then(l,l))})}function ne(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var l=n[a],i=t,r=e,o=r;t:for(;o!==null;){switch(o.tag){case 27:if(ma(o.type)){mt=o.stateNode,$t=!1;break t}break;case 5:mt=o.stateNode,$t=!1;break t;case 3:case 4:mt=o.stateNode.containerInfo,$t=!0;break t}o=o.return}if(mt===null)throw Error(O(160));F0(i,r,l),mt=null,$t=!1,i=l.alternate,i!==null&&(i.return=null),l.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)I0(e,t),e=e.sibling}var _e=null;function I0(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ne(e,t),ae(t),a&4&&(sa(3,t,t.return),Sr(3,t),sa(5,t,t.return));break;case 1:ne(e,t),ae(t),a&512&&(At||n===null||Ze(n,n.return)),a&64&&sn&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var l=_e;if(ne(e,t),ae(t),a&512&&(At||n===null||Ze(n,n.return)),a&4){var i=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,l=l.ownerDocument||l;e:switch(a){case"title":i=l.getElementsByTagName("title")[0],(!i||i[hr]||i[Yt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=l.createElement(a),l.head.insertBefore(i,l.querySelector("head > title"))),Ht(i,a,n),i[Yt]=t,_t(i),a=i;break t;case"link":var r=Bh("link","href",l).get(a+(n.href||""));if(r){for(var o=0;o<r.length;o++)if(i=r[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(o,1);break e}}i=l.createElement(a),Ht(i,a,n),l.head.appendChild(i);break;case"meta":if(r=Bh("meta","content",l).get(a+(n.content||""))){for(o=0;o<r.length;o++)if(i=r[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(o,1);break e}}i=l.createElement(a),Ht(i,a,n),l.head.appendChild(i);break;default:throw Error(O(468,a))}i[Yt]=t,_t(i),a=i}t.stateNode=a}else Hh(l,t.type,t.stateNode);else t.stateNode=Uh(l,a,t.memoizedProps);else i!==a?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,a===null?Hh(l,t.type,t.stateNode):Uh(l,a,t.memoizedProps)):a===null&&t.stateNode!==null&&cu(t,t.memoizedProps,n.memoizedProps)}break;case 27:ne(e,t),ae(t),a&512&&(At||n===null||Ze(n,n.return)),n!==null&&a&4&&cu(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ne(e,t),ae(t),a&512&&(At||n===null||Ze(n,n.return)),t.flags&32){l=t.stateNode;try{Ql(l,"")}catch(c){ot(t,t.return,c)}}a&4&&t.stateNode!=null&&(l=t.memoizedProps,cu(t,l,n!==null?n.memoizedProps:l)),a&1024&&(du=!0);break;case 6:if(ne(e,t),ae(t),a&4){if(t.stateNode===null)throw Error(O(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(c){ot(t,t.return,c)}}break;case 3:if(ho=null,l=_e,_e=Xo(e.containerInfo),ne(e,t),_e=l,ae(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{nr(e.containerInfo)}catch(c){ot(t,t.return,c)}du&&(du=!1,tg(t));break;case 4:a=_e,_e=Xo(t.stateNode.containerInfo),ne(e,t),ae(t),_e=a;break;case 12:ne(e,t),ae(t);break;case 13:ne(e,t),ae(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Bf=Pe()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,hu(t,a)));break;case 22:l=t.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=sn,f=At;if(sn=u||l,At=f||s,ne(e,t),At=f,sn=u,ae(t),a&8192)t:for(e=t.stateNode,e._visibility=l?e._visibility&-2:e._visibility|1,l&&(n===null||s||sn||At||Sa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){s=n=e;try{if(i=s.stateNode,l)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{o=s.stateNode;var h=s.memoizedProps.style,d=h!=null&&h.hasOwnProperty("display")?h.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(c){ot(s,s.return,c)}}}else if(e.tag===6){if(n===null){s=e;try{s.stateNode.nodeValue=l?"":s.memoizedProps}catch(c){ot(s,s.return,c)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,hu(t,n))));break;case 19:ne(e,t),ae(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,hu(t,a)));break;case 30:break;case 21:break;default:ne(e,t),ae(t)}}function ae(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(K0(a)){n=a;break}a=a.return}if(n==null)throw Error(O(160));switch(n.tag){case 27:var l=n.stateNode,i=fu(t);Ho(t,i,l);break;case 5:var r=n.stateNode;n.flags&32&&(Ql(r,""),n.flags&=-33);var o=fu(t);Ho(t,o,r);break;case 3:case 4:var s=n.stateNode.containerInfo,u=fu(t);hc(t,u,s);break;default:throw Error(O(161))}}catch(f){ot(t,t.return,f)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function tg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;tg(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Dn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)$0(t,e.alternate,e),e=e.sibling}function Sa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:sa(4,e,e.return),Sa(e);break;case 1:Ze(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Z0(e,e.return,n),Sa(e);break;case 27:Qi(e.stateNode);case 26:case 5:Ze(e,e.return),Sa(e);break;case 22:e.memoizedState===null&&Sa(e);break;case 30:Sa(e);break;default:Sa(e)}t=t.sibling}}function jn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,l=t,i=e,r=i.flags;switch(i.tag){case 0:case 11:case 15:jn(l,i,n),Sr(4,i);break;case 1:if(jn(l,i,n),a=i,l=a.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(u){ot(a,a.return,u)}if(a=i,l=a.updateQueue,l!==null){var o=a.stateNode;try{var s=l.shared.hiddenCallbacks;if(s!==null)for(l.shared.hiddenCallbacks=null,l=0;l<s.length;l++)$v(s[l],o)}catch(u){ot(a,a.return,u)}}n&&r&64&&X0(i),Li(i,i.return);break;case 27:P0(i);case 26:case 5:jn(l,i,n),n&&a===null&&r&4&&k0(i),Li(i,i.return);break;case 12:jn(l,i,n);break;case 13:jn(l,i,n),n&&r&4&&W0(l,i);break;case 22:i.memoizedState===null&&jn(l,i,n),Li(i,i.return);break;case 30:break;default:jn(l,i,n)}e=e.sibling}}function _f(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&yr(n))}function zf(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yr(t))}function qe(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)eg(t,e,n,a),e=e.sibling}function eg(t,e,n,a){var l=e.flags;switch(e.tag){case 0:case 11:case 15:qe(t,e,n,a),l&2048&&Sr(9,e);break;case 1:qe(t,e,n,a);break;case 3:qe(t,e,n,a),l&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yr(t)));break;case 12:if(l&2048){qe(t,e,n,a),t=e.stateNode;try{var i=e.memoizedProps,r=i.id,o=i.onPostCommit;typeof o=="function"&&o(r,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(s){ot(e,e.return,s)}}else qe(t,e,n,a);break;case 13:qe(t,e,n,a);break;case 23:break;case 22:i=e.stateNode,r=e.alternate,e.memoizedState!==null?i._visibility&2?qe(t,e,n,a):qi(t,e):i._visibility&2?qe(t,e,n,a):(i._visibility|=2,il(t,e,n,a,(e.subtreeFlags&10256)!==0)),l&2048&&_f(r,e);break;case 24:qe(t,e,n,a),l&2048&&zf(e.alternate,e);break;default:qe(t,e,n,a)}}function il(t,e,n,a,l){for(l=l&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var i=t,r=e,o=n,s=a,u=r.flags;switch(r.tag){case 0:case 11:case 15:il(i,r,o,s,l),Sr(8,r);break;case 23:break;case 22:var f=r.stateNode;r.memoizedState!==null?f._visibility&2?il(i,r,o,s,l):qi(i,r):(f._visibility|=2,il(i,r,o,s,l)),l&&u&2048&&_f(r.alternate,r);break;case 24:il(i,r,o,s,l),l&&u&2048&&zf(r.alternate,r);break;default:il(i,r,o,s,l)}e=e.sibling}}function qi(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,l=a.flags;switch(a.tag){case 22:qi(n,a),l&2048&&_f(a.alternate,a);break;case 24:qi(n,a),l&2048&&zf(a.alternate,a);break;default:qi(n,a)}e=e.sibling}}var Ai=8192;function Wa(t){if(t.subtreeFlags&Ai)for(t=t.child;t!==null;)ng(t),t=t.sibling}function ng(t){switch(t.tag){case 26:Wa(t),t.flags&Ai&&t.memoizedState!==null&&Ox(_e,t.memoizedState,t.memoizedProps);break;case 5:Wa(t);break;case 3:case 4:var e=_e;_e=Xo(t.stateNode.containerInfo),Wa(t),_e=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=Ai,Ai=16777216,Wa(t),Ai=e):Wa(t));break;default:Wa(t)}}function ag(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function pi(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Dt=a,ig(a,t)}ag(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)lg(t),t=t.sibling}function lg(t){switch(t.tag){case 0:case 11:case 15:pi(t),t.flags&2048&&sa(9,t,t.return);break;case 3:pi(t);break;case 12:pi(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,co(t)):pi(t);break;default:pi(t)}}function co(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Dt=a,ig(a,t)}ag(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:sa(8,e,e.return),co(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,co(e));break;default:co(e)}t=t.sibling}}function ig(t,e){for(;Dt!==null;){var n=Dt;switch(n.tag){case 0:case 11:case 15:sa(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:yr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Dt=a;else t:for(n=t;Dt!==null;){a=Dt;var l=a.sibling,i=a.return;if(J0(a),a===n){Dt=null;break t}if(l!==null){l.return=i,Dt=l;break t}Dt=i}}}var Q1={getCacheForType:function(t){var e=Gt(Rt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},V1=typeof WeakMap=="function"?WeakMap:Map,at=0,st=null,k=null,$=0,nt=0,le=null,Jn=!1,li=!1,jf=!1,bn=0,wt=0,ua=0,ja=0,Uf=0,we=0,Kl=0,Yi=null,Jt=null,mc=!1,Bf=0,Lo=1/0,qo=null,na=null,Bt=0,aa=null,Pl=null,Ol=0,vc=0,gc=null,rg=null,Gi=0,yc=null;function ce(){if(at&2&&$!==0)return $&-$;if(H.T!==null){var t=Vl;return t!==0?t:Lf()}return yv()}function og(){we===0&&(we=!($&536870912)||I?hv():536870912);var t=Ee.current;return t!==null&&(t.flags|=32),we}function fe(t,e,n){(t===st&&(nt===2||nt===9)||t.cancelPendingCommit!==null)&&($l(t,0),Fn(t,$,we,!1)),dr(t,n),(!(at&2)||t!==st)&&(t===st&&(!(at&2)&&(ja|=n),wt===4&&Fn(t,$,we,!1)),Ie(t))}function sg(t,e,n){if(at&6)throw Error(O(327));var a=!n&&(e&124)===0&&(e&t.expiredLanes)===0||fr(t,e),l=a?k1(t,e):mu(t,e,!0),i=a;do{if(l===0){li&&!a&&Fn(t,e,0,!1);break}else{if(n=t.current.alternate,i&&!X1(n)){l=mu(t,e,!1),i=!1;continue}if(l===2){if(i=e,t.errorRecoveryDisabledLanes&i)var r=0;else r=t.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){e=r;t:{var o=t;l=Yi;var s=o.current.memoizedState.isDehydrated;if(s&&($l(o,r).flags|=256),r=mu(o,r,!1),r!==2){if(jf&&!s){o.errorRecoveryDisabledLanes|=i,ja|=i,l=4;break t}i=Jt,Jt=l,i!==null&&(Jt===null?Jt=i:Jt.push.apply(Jt,i))}l=r}if(i=!1,l!==2)continue}}if(l===1){$l(t,0),Fn(t,e,0,!0);break}t:{switch(a=t,i=l,i){case 0:case 1:throw Error(O(345));case 4:if((e&4194048)!==e)break;case 6:Fn(a,e,we,!Jn);break t;case 2:Jt=null;break;case 3:case 5:break;default:throw Error(O(329))}if((e&62914560)===e&&(l=Bf+300-Pe(),10<l)){if(Fn(a,e,we,!Jn),us(a,0,!0)!==0)break t;a.timeoutHandle=Cg(xh.bind(null,a,n,Jt,qo,mc,e,we,ja,Kl,Jn,i,2,-0,0),l);break t}xh(a,n,Jt,qo,mc,e,we,ja,Kl,Jn,i,0,-0,0)}}break}while(!0);Ie(t)}function xh(t,e,n,a,l,i,r,o,s,u,f,h,d,c){if(t.timeoutHandle=-1,h=e.subtreeFlags,(h&8192||(h&16785408)===16785408)&&(Wi={stylesheets:null,count:0,unsuspend:Ax},ng(e),h=Cx(),h!==null)){t.cancelPendingCommit=h(wh.bind(null,t,e,i,n,a,l,r,o,s,f,1,d,c)),Fn(t,i,r,!u);return}wh(t,e,i,n,a,l,r,o,s)}function X1(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var l=n[a],i=l.getSnapshot;l=l.value;try{if(!he(i(),l))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Fn(t,e,n,a){e&=~Uf,e&=~ja,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var l=e;0<l;){var i=31-ue(l),r=1<<i;a[i]=-1,l&=~r}n!==0&&vv(t,n,e)}function bs(){return at&6?!0:(wr(0),!1)}function Hf(){if(k!==null){if(nt===0)var t=k.return;else t=k,dn=Za=null,Ef(t),Al=null,$i=0,t=k;for(;t!==null;)V0(t.alternate,t),t=t.return;k=null}}function $l(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,sx(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Hf(),st=t,k=n=mn(t.current,null),$=e,nt=0,le=null,Jn=!1,li=fr(t,e),jf=!1,Kl=we=Uf=ja=ua=wt=0,Jt=Yi=null,mc=!1,e&8&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var l=31-ue(a),i=1<<l;e|=t[l],a&=~i}return bn=e,hs(),n}function ug(t,e){X=null,H.H=_o,e===pr||e===vs?(e=Wd(),nt=3):e===Kv?(e=Wd(),nt=4):nt=e===H0?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,le=e,k===null&&(wt=1,Uo(t,Se(e,t.current)))}function cg(){var t=H.H;return H.H=_o,t===null?_o:t}function fg(){var t=H.A;return H.A=Q1,t}function pc(){wt=4,Jn||($&4194048)!==$&&Ee.current!==null||(li=!0),!(ua&134217727)&&!(ja&134217727)||st===null||Fn(st,$,we,!1)}function mu(t,e,n){var a=at;at|=2;var l=cg(),i=fg();(st!==t||$!==e)&&(qo=null,$l(t,e)),e=!1;var r=wt;t:do try{if(nt!==0&&k!==null){var o=k,s=le;switch(nt){case 8:Hf(),r=6;break t;case 3:case 2:case 9:case 6:Ee.current===null&&(e=!0);var u=nt;if(nt=0,le=null,pl(t,o,s,u),n&&li){r=0;break t}break;default:u=nt,nt=0,le=null,pl(t,o,s,u)}}Z1(),r=wt;break}catch(f){ug(t,f)}while(!0);return e&&t.shellSuspendCounter++,dn=Za=null,at=a,H.H=l,H.A=i,k===null&&(st=null,$=0,hs()),r}function Z1(){for(;k!==null;)dg(k)}function k1(t,e){var n=at;at|=2;var a=cg(),l=fg();st!==t||$!==e?(qo=null,Lo=Pe()+500,$l(t,e)):li=fr(t,e);t:do try{if(nt!==0&&k!==null){e=k;var i=le;e:switch(nt){case 1:nt=0,le=null,pl(t,e,i,1);break;case 2:case 9:if(Fd(i)){nt=0,le=null,Sh(e);break}e=function(){nt!==2&&nt!==9||st!==t||(nt=7),Ie(t)},i.then(e,e);break t;case 3:nt=7;break t;case 4:nt=5;break t;case 7:Fd(i)?(nt=0,le=null,Sh(e)):(nt=0,le=null,pl(t,e,i,7));break;case 5:var r=null;switch(k.tag){case 26:r=k.memoizedState;case 5:case 27:var o=k;if(!r||Dg(r)){nt=0,le=null;var s=o.sibling;if(s!==null)k=s;else{var u=o.return;u!==null?(k=u,xs(u)):k=null}break e}}nt=0,le=null,pl(t,e,i,5);break;case 6:nt=0,le=null,pl(t,e,i,6);break;case 8:Hf(),wt=6;break t;default:throw Error(O(462))}}K1();break}catch(f){ug(t,f)}while(!0);return dn=Za=null,H.H=a,H.A=l,at=n,k!==null?0:(st=null,$=0,hs(),wt)}function K1(){for(;k!==null&&!vb();)dg(k)}function dg(t){var e=Q0(t.alternate,t,bn);t.memoizedProps=t.pendingProps,e===null?xs(t):k=e}function Sh(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=mh(n,e,e.pendingProps,e.type,void 0,$);break;case 11:e=mh(n,e,e.pendingProps,e.type.render,e.ref,$);break;case 5:Ef(e);default:V0(n,e),e=k=Vv(e,bn),e=Q0(n,e,bn)}t.memoizedProps=t.pendingProps,e===null?xs(t):k=e}function pl(t,e,n,a){dn=Za=null,Ef(e),Al=null,$i=0;var l=e.return;try{if(B1(t,l,e,n,$)){wt=1,Uo(t,Se(n,t.current)),k=null;return}}catch(i){if(l!==null)throw k=l,i;wt=1,Uo(t,Se(n,t.current)),k=null;return}e.flags&32768?(I||a===1?t=!0:li||$&536870912?t=!1:(Jn=t=!0,(a===2||a===9||a===3||a===6)&&(a=Ee.current,a!==null&&a.tag===13&&(a.flags|=16384))),hg(e,t)):xs(e)}function xs(t){var e=t;do{if(e.flags&32768){hg(e,Jn);return}t=e.return;var n=L1(e.alternate,e,bn);if(n!==null){k=n;return}if(e=e.sibling,e!==null){k=e;return}k=e=t}while(e!==null);wt===0&&(wt=5)}function hg(t,e){do{var n=q1(t.alternate,t);if(n!==null){n.flags&=32767,k=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){k=t;return}k=t=n}while(t!==null);wt=6,k=null}function wh(t,e,n,a,l,i,r,o,s){t.cancelPendingCommit=null;do Ss();while(Bt!==0);if(at&6)throw Error(O(327));if(e!==null){if(e===t.current)throw Error(O(177));if(i=e.lanes|e.childLanes,i|=cf,Ab(t,n,i,r,o,s),t===st&&(k=st=null,$=0),Pl=e,aa=t,Ol=n,vc=i,gc=l,rg=a,e.subtreeFlags&10256||e.flags&10256?(t.callbackNode=null,t.callbackPriority=0,F1(wo,function(){return pg(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,e.subtreeFlags&13878||a){a=H.T,H.T=null,l=tt.p,tt.p=2,r=at,at|=4;try{Y1(t,e,n)}finally{at=r,tt.p=l,H.T=a}}Bt=1,mg(),vg(),gg()}}function mg(){if(Bt===1){Bt=0;var t=aa,e=Pl,n=(e.flags&13878)!==0;if(e.subtreeFlags&13878||n){n=H.T,H.T=null;var a=tt.p;tt.p=2;var l=at;at|=4;try{I0(e,t);var i=wc,r=Uv(t.containerInfo),o=i.focusedElem,s=i.selectionRange;if(r!==o&&o&&o.ownerDocument&&jv(o.ownerDocument.documentElement,o)){if(s!==null&&uf(o)){var u=s.start,f=s.end;if(f===void 0&&(f=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(f,o.value.length);else{var h=o.ownerDocument||document,d=h&&h.defaultView||window;if(d.getSelection){var c=d.getSelection(),w=o.textContent.length,g=Math.min(s.start,w),b=s.end===void 0?g:Math.min(s.end,w);!c.extend&&g>b&&(r=b,b=g,g=r);var m=Vd(o,g),v=Vd(o,b);if(m&&v&&(c.rangeCount!==1||c.anchorNode!==m.node||c.anchorOffset!==m.offset||c.focusNode!==v.node||c.focusOffset!==v.offset)){var p=h.createRange();p.setStart(m.node,m.offset),c.removeAllRanges(),g>b?(c.addRange(p),c.extend(v.node,v.offset)):(p.setEnd(v.node,v.offset),c.addRange(p))}}}}for(h=[],c=o;c=c.parentNode;)c.nodeType===1&&h.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<h.length;o++){var S=h[o];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Ko=!!Sc,wc=Sc=null}finally{at=l,tt.p=a,H.T=n}}t.current=e,Bt=2}}function vg(){if(Bt===2){Bt=0;var t=aa,e=Pl,n=(e.flags&8772)!==0;if(e.subtreeFlags&8772||n){n=H.T,H.T=null;var a=tt.p;tt.p=2;var l=at;at|=4;try{$0(t,e.alternate,e)}finally{at=l,tt.p=a,H.T=n}}Bt=3}}function gg(){if(Bt===4||Bt===3){Bt=0,gb();var t=aa,e=Pl,n=Ol,a=rg;e.subtreeFlags&10256||e.flags&10256?Bt=5:(Bt=0,Pl=aa=null,yg(t,t.pendingLanes));var l=t.pendingLanes;if(l===0&&(na=null),ef(n),e=e.stateNode,se&&typeof se.onCommitFiberRoot=="function")try{se.onCommitFiberRoot(cr,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=H.T,l=tt.p,tt.p=2,H.T=null;try{for(var i=t.onRecoverableError,r=0;r<a.length;r++){var o=a[r];i(o.value,{componentStack:o.stack})}}finally{H.T=e,tt.p=l}}Ol&3&&Ss(),Ie(t),l=t.pendingLanes,n&4194090&&l&42?t===yc?Gi++:(Gi=0,yc=t):Gi=0,wr(0)}}function yg(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,yr(e)))}function Ss(t){return mg(),vg(),gg(),pg()}function pg(){if(Bt!==5)return!1;var t=aa,e=vc;vc=0;var n=ef(Ol),a=H.T,l=tt.p;try{tt.p=32>n?32:n,H.T=null,n=gc,gc=null;var i=aa,r=Ol;if(Bt=0,Pl=aa=null,Ol=0,at&6)throw Error(O(331));var o=at;if(at|=4,lg(i.current),eg(i,i.current,r,n),at=o,wr(0,!1),se&&typeof se.onPostCommitFiberRoot=="function")try{se.onPostCommitFiberRoot(cr,i)}catch{}return!0}finally{tt.p=l,H.T=a,yg(t,e)}}function Eh(t,e,n){e=Se(n,e),e=cc(t.stateNode,e,2),t=ea(t,e,2),t!==null&&(dr(t,2),Ie(t))}function ot(t,e,n){if(t.tag===3)Eh(t,t,n);else for(;e!==null;){if(e.tag===3){Eh(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(na===null||!na.has(a))){t=Se(n,t),n=U0(2),a=ea(e,n,2),a!==null&&(B0(n,a,e,t),dr(a,2),Ie(a));break}}e=e.return}}function vu(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new V1;var l=new Set;a.set(e,l)}else l=a.get(e),l===void 0&&(l=new Set,a.set(e,l));l.has(n)||(jf=!0,l.add(n),t=P1.bind(null,t,e,n),e.then(t,t))}function P1(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,st===t&&($&n)===n&&(wt===4||wt===3&&($&62914560)===$&&300>Pe()-Bf?!(at&2)&&$l(t,0):Uf|=n,Kl===$&&(Kl=0)),Ie(t)}function bg(t,e){e===0&&(e=mv()),t=ai(t,e),t!==null&&(dr(t,e),Ie(t))}function $1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),bg(t,n)}function J1(t,e){var n=0;switch(t.tag){case 13:var a=t.stateNode,l=t.memoizedState;l!==null&&(n=l.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(O(314))}a!==null&&a.delete(e),bg(t,n)}function F1(t,e){return Ic(t,e)}var Yo=null,rl=null,bc=!1,Go=!1,gu=!1,Ua=0;function Ie(t){t!==rl&&t.next===null&&(rl===null?Yo=rl=t:rl=rl.next=t),Go=!0,bc||(bc=!0,I1())}function wr(t,e){if(!gu&&Go){gu=!0;do for(var n=!1,a=Yo;a!==null;){if(t!==0){var l=a.pendingLanes;if(l===0)var i=0;else{var r=a.suspendedLanes,o=a.pingedLanes;i=(1<<31-ue(42|t)+1)-1,i&=l&~(r&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,Th(a,i))}else i=$,i=us(a,a===st?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(i&3)||fr(a,i)||(n=!0,Th(a,i));a=a.next}while(n);gu=!1}}function W1(){xg()}function xg(){Go=bc=!1;var t=0;Ua!==0&&(ox()&&(t=Ua),Ua=0);for(var e=Pe(),n=null,a=Yo;a!==null;){var l=a.next,i=Sg(a,e);i===0?(a.next=null,n===null?Yo=l:n.next=l,l===null&&(rl=n)):(n=a,(t!==0||i&3)&&(Go=!0)),a=l}wr(t)}function Sg(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,l=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var r=31-ue(i),o=1<<r,s=l[r];s===-1?(!(o&n)||o&a)&&(l[r]=Tb(o,e)):s<=e&&(t.expiredLanes|=o),i&=~o}if(e=st,n=$,n=us(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(nt===2||nt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Qs(a),t.callbackNode=null,t.callbackPriority=0;if(!(n&3)||fr(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Qs(a),ef(n)){case 2:case 8:n=fv;break;case 32:n=wo;break;case 268435456:n=dv;break;default:n=wo}return a=wg.bind(null,t),n=Ic(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Qs(a),t.callbackPriority=2,t.callbackNode=null,2}function wg(t,e){if(Bt!==0&&Bt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Ss()&&t.callbackNode!==n)return null;var a=$;return a=us(t,t===st?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(sg(t,a,e),Sg(t,Pe()),t.callbackNode!=null&&t.callbackNode===n?wg.bind(null,t):null)}function Th(t,e){if(Ss())return null;sg(t,e,!0)}function I1(){ux(function(){at&6?Ic(cv,W1):xg()})}function Lf(){return Ua===0&&(Ua=hv()),Ua}function Ah(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:no(""+t)}function Oh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function tx(t,e,n,a,l){if(e==="submit"&&n&&n.stateNode===l){var i=Ah((l[It]||null).action),r=a.submitter;r&&(e=(e=r[It]||null)?Ah(e.formAction):r.getAttribute("formAction"),e!==null&&(i=e,r=null));var o=new cs("action","action",null,a,l);t.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ua!==0){var s=r?Oh(l,r):new FormData(l);sc(n,{pending:!0,data:s,method:l.method,action:i},null,s)}}else typeof i=="function"&&(o.preventDefault(),s=r?Oh(l,r):new FormData(l),sc(n,{pending:!0,data:s,method:l.method,action:i},i,s))},currentTarget:l}]})}}for(var yu=0;yu<Ju.length;yu++){var pu=Ju[yu],ex=pu.toLowerCase(),nx=pu[0].toUpperCase()+pu.slice(1);Be(ex,"on"+nx)}Be(Hv,"onAnimationEnd");Be(Lv,"onAnimationIteration");Be(qv,"onAnimationStart");Be("dblclick","onDoubleClick");Be("focusin","onFocus");Be("focusout","onBlur");Be(b1,"onTransitionRun");Be(x1,"onTransitionStart");Be(S1,"onTransitionCancel");Be(Yv,"onTransitionEnd");Gl("onMouseEnter",["mouseout","mouseover"]);Gl("onMouseLeave",["mouseout","mouseover"]);Gl("onPointerEnter",["pointerout","pointerover"]);Gl("onPointerLeave",["pointerout","pointerover"]);Qa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ji="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(" "),ax=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ji));function Eg(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],l=a.event;a=a.listeners;t:{var i=void 0;if(e)for(var r=a.length-1;0<=r;r--){var o=a[r],s=o.instance,u=o.currentTarget;if(o=o.listener,s!==i&&l.isPropagationStopped())break t;i=o,l.currentTarget=u;try{i(l)}catch(f){jo(f)}l.currentTarget=null,i=s}else for(r=0;r<a.length;r++){if(o=a[r],s=o.instance,u=o.currentTarget,o=o.listener,s!==i&&l.isPropagationStopped())break t;i=o,l.currentTarget=u;try{i(l)}catch(f){jo(f)}l.currentTarget=null,i=s}}}}function Z(t,e){var n=e[Vu];n===void 0&&(n=e[Vu]=new Set);var a=t+"__bubble";n.has(a)||(Tg(e,t,2,!1),n.add(a))}function bu(t,e,n){var a=0;e&&(a|=4),Tg(n,t,a,e)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function qf(t){if(!t[Vr]){t[Vr]=!0,pv.forEach(function(n){n!=="selectionchange"&&(ax.has(n)||bu(n,!1,t),bu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Vr]||(e[Vr]=!0,bu("selectionchange",!1,e))}}function Tg(t,e,n,a){switch(Bg(e)){case 2:var l=Mx;break;case 8:l=Dx;break;default:l=Vf}n=l.bind(null,e,n,t),l=void 0,!Ku||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(l=!0),a?l!==void 0?t.addEventListener(e,n,{capture:!0,passive:l}):t.addEventListener(e,n,!0):l!==void 0?t.addEventListener(e,n,{passive:l}):t.addEventListener(e,n,!1)}function xu(t,e,n,a,l){var i=a;if(!(e&1)&&!(e&2)&&a!==null)t:for(;;){if(a===null)return;var r=a.tag;if(r===3||r===4){var o=a.stateNode.containerInfo;if(o===l)break;if(r===4)for(r=a.return;r!==null;){var s=r.tag;if((s===3||s===4)&&r.stateNode.containerInfo===l)return;r=r.return}for(;o!==null;){if(r=ul(o),r===null)return;if(s=r.tag,s===5||s===6||s===26||s===27){a=i=r;continue t}o=o.parentNode}}a=a.return}Ov(function(){var u=i,f=lf(n),h=[];t:{var d=Gv.get(t);if(d!==void 0){var c=cs,w=t;switch(t){case"keypress":if(lo(n)===0)break t;case"keydown":case"keyup":c=Fb;break;case"focusin":w="focus",c=Js;break;case"focusout":w="blur",c=Js;break;case"beforeblur":case"afterblur":c=Js;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=qb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=t1;break;case Hv:case Lv:case qv:c=Qb;break;case Yv:c=n1;break;case"scroll":case"scrollend":c=Hb;break;case"wheel":c=l1;break;case"copy":case"cut":case"paste":c=Xb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Ud;break;case"toggle":case"beforetoggle":c=r1}var g=(e&4)!==0,b=!g&&(t==="scroll"||t==="scrollend"),m=g?d!==null?d+"Capture":null:d;g=[];for(var v=u,p;v!==null;){var S=v;if(p=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||p===null||m===null||(S=Xi(v,m),S!=null&&g.push(Fi(v,S,p))),b)break;v=v.return}0<g.length&&(d=new c(d,w,null,n,f),h.push({event:d,listeners:g}))}}if(!(e&7)){t:{if(d=t==="mouseover"||t==="pointerover",c=t==="mouseout"||t==="pointerout",d&&n!==ku&&(w=n.relatedTarget||n.fromElement)&&(ul(w)||w[ei]))break t;if((c||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,c?(w=n.relatedTarget||n.toElement,c=u,w=w?ul(w):null,w!==null&&(b=ur(w),g=w.tag,w!==b||g!==5&&g!==27&&g!==6)&&(w=null)):(c=null,w=u),c!==w)){if(g=zd,S="onMouseLeave",m="onMouseEnter",v="mouse",(t==="pointerout"||t==="pointerover")&&(g=Ud,S="onPointerLeave",m="onPointerEnter",v="pointer"),b=c==null?d:Ti(c),p=w==null?d:Ti(w),d=new g(S,v+"leave",c,n,f),d.target=b,d.relatedTarget=p,S=null,ul(f)===u&&(g=new g(m,v+"enter",w,n,f),g.target=p,g.relatedTarget=b,S=g),b=S,c&&w)e:{for(g=c,m=w,v=0,p=g;p;p=Ia(p))v++;for(p=0,S=m;S;S=Ia(S))p++;for(;0<v-p;)g=Ia(g),v--;for(;0<p-v;)m=Ia(m),p--;for(;v--;){if(g===m||m!==null&&g===m.alternate)break e;g=Ia(g),m=Ia(m)}g=null}else g=null;c!==null&&Ch(h,d,c,g,!1),w!==null&&b!==null&&Ch(h,b,w,g,!0)}}t:{if(d=u?Ti(u):window,c=d.nodeName&&d.nodeName.toLowerCase(),c==="select"||c==="input"&&d.type==="file")var E=qd;else if(Ld(d))if(_v)E=g1;else{E=m1;var C=h1}else c=d.nodeName,!c||c.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&af(u.elementType)&&(E=qd):E=v1;if(E&&(E=E(t,u))){Dv(h,E,n,f);break t}C&&C(t,d,u),t==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&Zu(d,"number",d.value)}switch(C=u?Ti(u):window,t){case"focusin":(Ld(C)||C.contentEditable==="true")&&(dl=C,Pu=u,Di=null);break;case"focusout":Di=Pu=dl=null;break;case"mousedown":$u=!0;break;case"contextmenu":case"mouseup":case"dragend":$u=!1,Xd(h,n,f);break;case"selectionchange":if(p1)break;case"keydown":case"keyup":Xd(h,n,f)}var T;if(sf)t:{switch(t){case"compositionstart":var N="onCompositionStart";break t;case"compositionend":N="onCompositionEnd";break t;case"compositionupdate":N="onCompositionUpdate";break t}N=void 0}else fl?Nv(t,n)&&(N="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Rv&&n.locale!=="ko"&&(fl||N!=="onCompositionStart"?N==="onCompositionEnd"&&fl&&(T=Cv()):($n=f,rf="value"in $n?$n.value:$n.textContent,fl=!0)),C=Qo(u,N),0<C.length&&(N=new jd(N,t,null,n,f),h.push({event:N,listeners:C}),T?N.data=T:(T=Mv(n),T!==null&&(N.data=T)))),(T=s1?u1(t,n):c1(t,n))&&(N=Qo(u,"onBeforeInput"),0<N.length&&(C=new jd("onBeforeInput","beforeinput",null,n,f),h.push({event:C,listeners:N}),C.data=T)),tx(h,t,u,n,f)}Eg(h,e)})}function Fi(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Qo(t,e){for(var n=e+"Capture",a=[];t!==null;){var l=t,i=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||i===null||(l=Xi(t,n),l!=null&&a.unshift(Fi(t,l,i)),l=Xi(t,e),l!=null&&a.push(Fi(t,l,i))),t.tag===3)return a;t=t.return}return[]}function Ia(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Ch(t,e,n,a,l){for(var i=e._reactName,r=[];n!==null&&n!==a;){var o=n,s=o.alternate,u=o.stateNode;if(o=o.tag,s!==null&&s===a)break;o!==5&&o!==26&&o!==27||u===null||(s=u,l?(u=Xi(n,i),u!=null&&r.unshift(Fi(n,u,s))):l||(u=Xi(n,i),u!=null&&r.push(Fi(n,u,s)))),n=n.return}r.length!==0&&t.push({event:e,listeners:r})}var lx=/\r\n?/g,ix=/\u0000|\uFFFD/g;function Rh(t){return(typeof t=="string"?t:""+t).replace(lx,`
`).replace(ix,"")}function Ag(t,e){return e=Rh(e),Rh(t)===e}function ws(){}function it(t,e,n,a,l,i){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ql(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ql(t,""+a);break;case"className":Br(t,"class",a);break;case"tabIndex":Br(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Br(t,n,a);break;case"style":Av(t,a,i);break;case"data":if(e!=="object"){Br(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=no(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(e!=="input"&&it(t,e,"name",l.name,l,null),it(t,e,"formEncType",l.formEncType,l,null),it(t,e,"formMethod",l.formMethod,l,null),it(t,e,"formTarget",l.formTarget,l,null)):(it(t,e,"encType",l.encType,l,null),it(t,e,"method",l.method,l,null),it(t,e,"target",l.target,l,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=no(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=ws);break;case"onScroll":a!=null&&Z("scroll",t);break;case"onScrollEnd":a!=null&&Z("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(O(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(O(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=no(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):t.removeAttribute(n);break;case"inert":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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":Z("beforetoggle",t),Z("toggle",t),eo(t,"popover",a);break;case"xlinkActuate":en(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":en(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":en(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":en(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":en(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":en(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":en(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":en(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":en(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":eo(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ub.get(n)||n,eo(t,n,a))}}function xc(t,e,n,a,l,i){switch(n){case"style":Av(t,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(O(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(O(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Ql(t,a):(typeof a=="number"||typeof a=="bigint")&&Ql(t,""+a);break;case"onScroll":a!=null&&Z("scroll",t);break;case"onScrollEnd":a!=null&&Z("scrollend",t);break;case"onClick":a!=null&&(t.onclick=ws);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bv.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),e=n.slice(2,l?n.length-7:void 0),i=t[It]||null,i=i!=null?i[n]:null,typeof i=="function"&&t.removeEventListener(e,i,l),typeof a=="function")){typeof i!="function"&&i!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,l);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):eo(t,n,a)}}}function Ht(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Z("error",t),Z("load",t);var a=!1,l=!1,i;for(i in n)if(n.hasOwnProperty(i)){var r=n[i];if(r!=null)switch(i){case"src":a=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(O(137,e));default:it(t,e,i,r,n,null)}}l&&it(t,e,"srcSet",n.srcSet,n,null),a&&it(t,e,"src",n.src,n,null);return;case"input":Z("invalid",t);var o=i=r=l=null,s=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var f=n[a];if(f!=null)switch(a){case"name":l=f;break;case"type":r=f;break;case"checked":s=f;break;case"defaultChecked":u=f;break;case"value":i=f;break;case"defaultValue":o=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(O(137,e));break;default:it(t,e,a,f,n,null)}}wv(t,i,o,s,u,r,l,!1),Eo(t);return;case"select":Z("invalid",t),a=r=i=null;for(l in n)if(n.hasOwnProperty(l)&&(o=n[l],o!=null))switch(l){case"value":i=o;break;case"defaultValue":r=o;break;case"multiple":a=o;default:it(t,e,l,o,n,null)}e=i,n=r,t.multiple=!!a,e!=null?xl(t,!!a,e,!1):n!=null&&xl(t,!!a,n,!0);return;case"textarea":Z("invalid",t),i=l=a=null;for(r in n)if(n.hasOwnProperty(r)&&(o=n[r],o!=null))switch(r){case"value":a=o;break;case"defaultValue":l=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(O(91));break;default:it(t,e,r,o,n,null)}Tv(t,a,l,i),Eo(t);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(a=n[s],a!=null))switch(s){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:it(t,e,s,a,n,null)}return;case"dialog":Z("beforetoggle",t),Z("toggle",t),Z("cancel",t),Z("close",t);break;case"iframe":case"object":Z("load",t);break;case"video":case"audio":for(a=0;a<Ji.length;a++)Z(Ji[a],t);break;case"image":Z("error",t),Z("load",t);break;case"details":Z("toggle",t);break;case"embed":case"source":case"link":Z("error",t),Z("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(a=n[u],a!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(O(137,e));default:it(t,e,u,a,n,null)}return;default:if(af(e)){for(f in n)n.hasOwnProperty(f)&&(a=n[f],a!==void 0&&xc(t,e,f,a,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(a=n[o],a!=null&&it(t,e,o,a,n,null))}function rx(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,i=null,r=null,o=null,s=null,u=null,f=null;for(c in n){var h=n[c];if(n.hasOwnProperty(c)&&h!=null)switch(c){case"checked":break;case"value":break;case"defaultValue":s=h;default:a.hasOwnProperty(c)||it(t,e,c,null,a,h)}}for(var d in a){var c=a[d];if(h=n[d],a.hasOwnProperty(d)&&(c!=null||h!=null))switch(d){case"type":i=c;break;case"name":l=c;break;case"checked":u=c;break;case"defaultChecked":f=c;break;case"value":r=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(O(137,e));break;default:c!==h&&it(t,e,d,c,a,h)}}Xu(t,r,o,s,u,f,i,l);return;case"select":c=r=o=d=null;for(i in n)if(s=n[i],n.hasOwnProperty(i)&&s!=null)switch(i){case"value":break;case"multiple":c=s;default:a.hasOwnProperty(i)||it(t,e,i,null,a,s)}for(l in a)if(i=a[l],s=n[l],a.hasOwnProperty(l)&&(i!=null||s!=null))switch(l){case"value":d=i;break;case"defaultValue":o=i;break;case"multiple":r=i;default:i!==s&&it(t,e,l,i,a,s)}e=o,n=r,a=c,d!=null?xl(t,!!n,d,!1):!!a!=!!n&&(e!=null?xl(t,!!n,e,!0):xl(t,!!n,n?[]:"",!1));return;case"textarea":c=d=null;for(o in n)if(l=n[o],n.hasOwnProperty(o)&&l!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:it(t,e,o,null,a,l)}for(r in a)if(l=a[r],i=n[r],a.hasOwnProperty(r)&&(l!=null||i!=null))switch(r){case"value":d=l;break;case"defaultValue":c=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(O(91));break;default:l!==i&&it(t,e,r,l,a,i)}Ev(t,d,c);return;case"option":for(var w in n)if(d=n[w],n.hasOwnProperty(w)&&d!=null&&!a.hasOwnProperty(w))switch(w){case"selected":t.selected=!1;break;default:it(t,e,w,null,a,d)}for(s in a)if(d=a[s],c=n[s],a.hasOwnProperty(s)&&d!==c&&(d!=null||c!=null))switch(s){case"selected":t.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:it(t,e,s,d,a,c)}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 g in n)d=n[g],n.hasOwnProperty(g)&&d!=null&&!a.hasOwnProperty(g)&&it(t,e,g,null,a,d);for(u in a)if(d=a[u],c=n[u],a.hasOwnProperty(u)&&d!==c&&(d!=null||c!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(O(137,e));break;default:it(t,e,u,d,a,c)}return;default:if(af(e)){for(var b in n)d=n[b],n.hasOwnProperty(b)&&d!==void 0&&!a.hasOwnProperty(b)&&xc(t,e,b,void 0,a,d);for(f in a)d=a[f],c=n[f],!a.hasOwnProperty(f)||d===c||d===void 0&&c===void 0||xc(t,e,f,d,a,c);return}}for(var m in n)d=n[m],n.hasOwnProperty(m)&&d!=null&&!a.hasOwnProperty(m)&&it(t,e,m,null,a,d);for(h in a)d=a[h],c=n[h],!a.hasOwnProperty(h)||d===c||d==null&&c==null||it(t,e,h,d,a,c)}var Sc=null,wc=null;function Vo(t){return t.nodeType===9?t:t.ownerDocument}function Nh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Og(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Ec(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Su=null;function ox(){var t=window.event;return t&&t.type==="popstate"?t===Su?!1:(Su=t,!0):(Su=null,!1)}var Cg=typeof setTimeout=="function"?setTimeout:void 0,sx=typeof clearTimeout=="function"?clearTimeout:void 0,Mh=typeof Promise=="function"?Promise:void 0,ux=typeof queueMicrotask=="function"?queueMicrotask:typeof Mh<"u"?function(t){return Mh.resolve(null).then(t).catch(cx)}:Cg;function cx(t){setTimeout(function(){throw t})}function ma(t){return t==="head"}function Dh(t,e){var n=e,a=0,l=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(0<a&&8>a){n=a;var r=t.ownerDocument;if(n&1&&Qi(r.documentElement),n&2&&Qi(r.body),n&4)for(n=r.head,Qi(n),r=n.firstChild;r;){var o=r.nextSibling,s=r.nodeName;r[hr]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=o}}if(l===0){t.removeChild(i),nr(e);return}l--}else n==="$"||n==="$?"||n==="$!"?l++:a=n.charCodeAt(0)-48;else a=0;n=i}while(n);nr(e)}function Tc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Tc(n),nf(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function fx(t,e,n,a){for(;t.nodeType===1;){var l=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[hr])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==l.rel||t.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=ze(t.nextSibling),t===null)break}return null}function dx(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=ze(t.nextSibling),t===null))return null;return t}function Ac(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function hx(t,e){var n=t.ownerDocument;if(t.data!=="$?"||n.readyState==="complete")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function ze(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var Oc=null;function _h(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}function Rg(t,e,n){switch(e=Vo(n),t){case"html":if(t=e.documentElement,!t)throw Error(O(452));return t;case"head":if(t=e.head,!t)throw Error(O(453));return t;case"body":if(t=e.body,!t)throw Error(O(454));return t;default:throw Error(O(451))}}function Qi(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);nf(t)}var Te=new Map,zh=new Set;function Xo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var wn=tt.d;tt.d={f:mx,r:vx,D:gx,C:yx,L:px,m:bx,X:Sx,S:xx,M:wx};function mx(){var t=wn.f(),e=bs();return t||e}function vx(t){var e=ni(t);e!==null&&e.tag===5&&e.type==="form"?S0(e):wn.r(t)}var ii=typeof document>"u"?null:document;function Ng(t,e,n){var a=ii;if(a&&typeof e=="string"&&e){var l=xe(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),zh.has(l)||(zh.add(l),t={rel:t,crossOrigin:n,href:e},a.querySelector(l)===null&&(e=a.createElement("link"),Ht(e,"link",t),_t(e),a.head.appendChild(e)))}}function gx(t){wn.D(t),Ng("dns-prefetch",t,null)}function yx(t,e){wn.C(t,e),Ng("preconnect",t,e)}function px(t,e,n){wn.L(t,e,n);var a=ii;if(a&&t&&e){var l='link[rel="preload"][as="'+xe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+xe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+xe(n.imageSizes)+'"]')):l+='[href="'+xe(t)+'"]';var i=l;switch(e){case"style":i=Jl(t);break;case"script":i=ri(t)}Te.has(i)||(t=dt({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Te.set(i,t),a.querySelector(l)!==null||e==="style"&&a.querySelector(Er(i))||e==="script"&&a.querySelector(Tr(i))||(e=a.createElement("link"),Ht(e,"link",t),_t(e),a.head.appendChild(e)))}}function bx(t,e){wn.m(t,e);var n=ii;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+xe(a)+'"][href="'+xe(t)+'"]',i=l;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ri(t)}if(!Te.has(i)&&(t=dt({rel:"modulepreload",href:t},e),Te.set(i,t),n.querySelector(l)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Tr(i)))return}a=n.createElement("link"),Ht(a,"link",t),_t(a),n.head.appendChild(a)}}}function xx(t,e,n){wn.S(t,e,n);var a=ii;if(a&&t){var l=bl(a).hoistableStyles,i=Jl(t);e=e||"default";var r=l.get(i);if(!r){var o={loading:0,preload:null};if(r=a.querySelector(Er(i)))o.loading=5;else{t=dt({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Te.get(i))&&Yf(t,n);var s=r=a.createElement("link");_t(s),Ht(s,"link",t),s._p=new Promise(function(u,f){s.onload=u,s.onerror=f}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,fo(r,e,a)}r={type:"stylesheet",instance:r,count:1,state:o},l.set(i,r)}}}function Sx(t,e){wn.X(t,e);var n=ii;if(n&&t){var a=bl(n).hoistableScripts,l=ri(t),i=a.get(l);i||(i=n.querySelector(Tr(l)),i||(t=dt({src:t,async:!0},e),(e=Te.get(l))&&Gf(t,e),i=n.createElement("script"),_t(i),Ht(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(l,i))}}function wx(t,e){wn.M(t,e);var n=ii;if(n&&t){var a=bl(n).hoistableScripts,l=ri(t),i=a.get(l);i||(i=n.querySelector(Tr(l)),i||(t=dt({src:t,async:!0,type:"module"},e),(e=Te.get(l))&&Gf(t,e),i=n.createElement("script"),_t(i),Ht(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(l,i))}}function jh(t,e,n,a){var l=(l=In.current)?Xo(l):null;if(!l)throw Error(O(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Jl(n.href),n=bl(l).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Jl(n.href);var i=bl(l).hoistableStyles,r=i.get(t);if(r||(l=l.ownerDocument||l,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,r),(i=l.querySelector(Er(t)))&&!i._p&&(r.instance=i,r.state.loading=5),Te.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Te.set(t,n),i||Ex(l,t,n,r.state))),e&&a===null)throw Error(O(528,""));return r}if(e&&a!==null)throw Error(O(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ri(n),n=bl(l).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(O(444,t))}}function Jl(t){return'href="'+xe(t)+'"'}function Er(t){return'link[rel="stylesheet"]['+t+"]"}function Mg(t){return dt({},t,{"data-precedence":t.precedence,precedence:null})}function Ex(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Ht(e,"link",n),_t(e),t.head.appendChild(e))}function ri(t){return'[src="'+xe(t)+'"]'}function Tr(t){return"script[async]"+t}function Uh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+xe(n.href)+'"]');if(a)return e.instance=a,_t(a),a;var l=dt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),_t(a),Ht(a,"style",l),fo(a,n.precedence,t),e.instance=a;case"stylesheet":l=Jl(n.href);var i=t.querySelector(Er(l));if(i)return e.state.loading|=4,e.instance=i,_t(i),i;a=Mg(n),(l=Te.get(l))&&Yf(a,l),i=(t.ownerDocument||t).createElement("link"),_t(i);var r=i;return r._p=new Promise(function(o,s){r.onload=o,r.onerror=s}),Ht(i,"link",a),e.state.loading|=4,fo(i,n.precedence,t),e.instance=i;case"script":return i=ri(n.src),(l=t.querySelector(Tr(i)))?(e.instance=l,_t(l),l):(a=n,(l=Te.get(i))&&(a=dt({},n),Gf(a,l)),t=t.ownerDocument||t,l=t.createElement("script"),_t(l),Ht(l,"link",a),t.head.appendChild(l),e.instance=l);case"void":return null;default:throw Error(O(443,e.type))}else e.type==="stylesheet"&&!(e.state.loading&4)&&(a=e.instance,e.state.loading|=4,fo(a,n.precedence,t));return e.instance}function fo(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=a.length?a[a.length-1]:null,i=l,r=0;r<a.length;r++){var o=a[r];if(o.dataset.precedence===e)i=o;else if(i!==l)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Yf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Gf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ho=null;function Bh(t,e,n){if(ho===null){var a=new Map,l=ho=new Map;l.set(n,a)}else l=ho,a=l.get(n),a||(a=new Map,l.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),l=0;l<n.length;l++){var i=n[l];if(!(i[hr]||i[Yt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var r=i.getAttribute(e)||"";r=t+r;var o=a.get(r);o?o.push(i):a.set(r,[i])}}return a}function Hh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Tx(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Dg(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}var Wi=null;function Ax(){}function Ox(t,e,n){if(Wi===null)throw Error(O(475));var a=Wi;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(e.state.loading&4)){if(e.instance===null){var l=Jl(n.href),i=t.querySelector(Er(l));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(a.count++,a=Zo.bind(a),t.then(a,a)),e.state.loading|=4,e.instance=i,_t(i);return}i=t.ownerDocument||t,n=Mg(n),(l=Te.get(l))&&Yf(n,l),i=i.createElement("link"),_t(i);var r=i;r._p=new Promise(function(o,s){r.onload=o,r.onerror=s}),Ht(i,"link",n),e.instance=i}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(e,t),(t=e.state.preload)&&!(e.state.loading&3)&&(a.count++,e=Zo.bind(a),t.addEventListener("load",e),t.addEventListener("error",e))}}function Cx(){if(Wi===null)throw Error(O(475));var t=Wi;return t.stylesheets&&t.count===0&&Cc(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&Cc(t,t.stylesheets),t.unsuspend){var a=t.unsuspend;t.unsuspend=null,a()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n)}}:null}function Zo(){if(this.count--,this.count===0){if(this.stylesheets)Cc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ko=null;function Cc(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ko=new Map,e.forEach(Rx,t),ko=null,Zo.call(t))}function Rx(t,e){if(!(e.state.loading&4)){var n=ko.get(t);if(n)var a=n.get(null);else{n=new Map,ko.set(t,n);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<l.length;i++){var r=l[i];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(n.set(r.dataset.precedence,r),a=r)}a&&n.set(null,a)}l=e.instance,r=l.getAttribute("data-precedence"),i=n.get(r)||a,i===a&&n.set(null,l),n.set(r,l),this.count++,a=Zo.bind(this),l.addEventListener("load",a),l.addEventListener("error",a),i?i.parentNode.insertBefore(l,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var Ii={$$typeof:un,Provider:null,Consumer:null,_currentValue:Na,_currentValue2:Na,_threadCount:0};function Nx(t,e,n,a,l,i,r,o){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vs(0),this.hiddenUpdates=Vs(null),this.identifierPrefix=a,this.onUncaughtError=l,this.onCaughtError=i,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function _g(t,e,n,a,l,i,r,o,s,u,f,h){return t=new Nx(t,e,n,r,o,s,u,h),e=1,i===!0&&(e|=24),i=re(3,null,null,e),t.current=i,i.stateNode=t,e=vf(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:a,isDehydrated:n,cache:e},yf(i),t}function zg(t){return t?(t=vl,t):vl}function jg(t,e,n,a,l,i){l=zg(l),a.context===null?a.context=l:a.pendingContext=l,a=ta(e),a.payload={element:n},i=i===void 0?null:i,i!==null&&(a.callback=i),n=ea(t,a,e),n!==null&&(fe(n,t,e),ji(n,t,e))}function Lh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Qf(t,e){Lh(t,e),(t=t.alternate)&&Lh(t,e)}function Ug(t){if(t.tag===13){var e=ai(t,67108864);e!==null&&fe(e,t,67108864),Qf(t,67108864)}}var Ko=!0;function Mx(t,e,n,a){var l=H.T;H.T=null;var i=tt.p;try{tt.p=2,Vf(t,e,n,a)}finally{tt.p=i,H.T=l}}function Dx(t,e,n,a){var l=H.T;H.T=null;var i=tt.p;try{tt.p=8,Vf(t,e,n,a)}finally{tt.p=i,H.T=l}}function Vf(t,e,n,a){if(Ko){var l=Rc(a);if(l===null)xu(t,e,a,Po,n),qh(t,a);else if(zx(l,t,e,n,a))a.stopPropagation();else if(qh(t,a),e&4&&-1<_x.indexOf(t)){for(;l!==null;){var i=ni(l);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var r=ba(i.pendingLanes);if(r!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;r;){var s=1<<31-ue(r);o.entanglements[1]|=s,r&=~s}Ie(i),!(at&6)&&(Lo=Pe()+500,wr(0))}}break;case 13:o=ai(i,2),o!==null&&fe(o,i,2),bs(),Qf(i,2)}if(i=Rc(a),i===null&&xu(t,e,a,Po,n),i===l)break;l=i}l!==null&&a.stopPropagation()}else xu(t,e,a,null,n)}}function Rc(t){return t=lf(t),Xf(t)}var Po=null;function Xf(t){if(Po=null,t=ul(t),t!==null){var e=ur(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=rv(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Po=t,null}function Bg(t){switch(t){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 2;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 8;case"message":switch(yb()){case cv:return 2;case fv:return 8;case wo:case pb:return 32;case dv:return 268435456;default:return 32}default:return 32}}var Nc=!1,la=null,ia=null,ra=null,tr=new Map,er=new Map,Qn=[],_x="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(" ");function qh(t,e){switch(t){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":ra=null;break;case"pointerover":case"pointerout":tr.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":er.delete(e.pointerId)}}function bi(t,e,n,a,l,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[l]},e!==null&&(e=ni(e),e!==null&&Ug(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function zx(t,e,n,a,l){switch(e){case"focusin":return la=bi(la,t,e,n,a,l),!0;case"dragenter":return ia=bi(ia,t,e,n,a,l),!0;case"mouseover":return ra=bi(ra,t,e,n,a,l),!0;case"pointerover":var i=l.pointerId;return tr.set(i,bi(tr.get(i)||null,t,e,n,a,l)),!0;case"gotpointercapture":return i=l.pointerId,er.set(i,bi(er.get(i)||null,t,e,n,a,l)),!0}return!1}function Hg(t){var e=ul(t.target);if(e!==null){var n=ur(e);if(n!==null){if(e=n.tag,e===13){if(e=rv(n),e!==null){t.blockedOn=e,Ob(t.priority,function(){if(n.tag===13){var a=ce();a=tf(a);var l=ai(n,a);l!==null&&fe(l,n,a),Qf(n,a)}});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function mo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Rc(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);ku=a,n.target.dispatchEvent(a),ku=null}else return e=ni(n),e!==null&&Ug(e),t.blockedOn=n,!1;e.shift()}return!0}function Yh(t,e,n){mo(t)&&n.delete(e)}function jx(){Nc=!1,la!==null&&mo(la)&&(la=null),ia!==null&&mo(ia)&&(ia=null),ra!==null&&mo(ra)&&(ra=null),tr.forEach(Yh),er.forEach(Yh)}function Xr(t,e){t.blockedOn===e&&(t.blockedOn=null,Nc||(Nc=!0,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,jx)))}var Zr=null;function Gh(t){Zr!==t&&(Zr=t,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,function(){Zr===t&&(Zr=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],l=t[e+2];if(typeof a!="function"){if(Xf(a||n)===null)continue;break}var i=ni(n);i!==null&&(t.splice(e,3),e-=3,sc(i,{pending:!0,data:l,method:n.method,action:a},a,l))}}))}function nr(t){function e(s){return Xr(s,t)}la!==null&&Xr(la,t),ia!==null&&Xr(ia,t),ra!==null&&Xr(ra,t),tr.forEach(e),er.forEach(e);for(var n=0;n<Qn.length;n++){var a=Qn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Qn.length&&(n=Qn[0],n.blockedOn===null);)Hg(n),n.blockedOn===null&&Qn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var l=n[a],i=n[a+1],r=l[It]||null;if(typeof i=="function")r||Gh(n);else if(r){var o=null;if(i&&i.hasAttribute("formAction")){if(l=i,r=i[It]||null)o=r.formAction;else if(Xf(l)!==null)continue}else o=r.action;typeof o=="function"?n[a+1]=o:(n.splice(a,3),a-=3),Gh(n)}}}function Zf(t){this._internalRoot=t}Es.prototype.render=Zf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(O(409));var n=e.current,a=ce();jg(n,a,t,e,null,null)};Es.prototype.unmount=Zf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;jg(t.current,2,null,t,null,null),bs(),e[ei]=null}};function Es(t){this._internalRoot=t}Es.prototype.unstable_scheduleHydration=function(t){if(t){var e=yv();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Qn.length&&e!==0&&e<Qn[n].priority;n++);Qn.splice(n,0,t),n===0&&Hg(t)}};var Qh=lv.version;if(Qh!=="19.1.1")throw Error(O(527,Qh,"19.1.1"));tt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(O(188)):(t=Object.keys(t).join(","),Error(O(268,t)));return t=cb(e),t=t!==null?ov(t):null,t=t===null?null:t.stateNode,t};var Ux={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kr.isDisabled&&kr.supportsFiber)try{cr=kr.inject(Ux),se=kr}catch{}}rs.createRoot=function(t,e){if(!iv(t))throw Error(O(299));var n=!1,a="",l=_0,i=z0,r=j0,o=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(l=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(r=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(o=e.unstable_transitionCallbacks)),e=_g(t,1,!1,null,null,n,a,l,i,r,o,null),t[ei]=e.current,qf(t),new Zf(e)};rs.hydrateRoot=function(t,e,n){if(!iv(t))throw Error(O(299));var a=!1,l="",i=_0,r=z0,o=j0,s=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(r=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(s=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),e=_g(t,1,!0,e,n??null,a,l,i,r,o,s,u),e.context=zg(null),n=e.current,a=ce(),a=tf(a),l=ta(a),l.callback=null,ea(n,l,a),n=a,e.current.lanes=n,dr(e,n),Ie(e),t[ei]=e.current,qf(t),new Es(e)};rs.version="19.1.1";function Lg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lg)}catch(t){console.error(t)}}Lg(),Xm.exports=rs;var Bx=Xm.exports,Hx=(t,e,n,a,l,i,r,o)=>{let s=document.documentElement,u=["light","dark"];function f(c){(Array.isArray(t)?t:[t]).forEach(w=>{let g=w==="class",b=g&&i?l.map(m=>i[m]||m):l;g?(s.classList.remove(...b),s.classList.add(i&&i[c]?i[c]:c)):s.setAttribute(w,c)}),h(c)}function h(c){o&&u.includes(c)&&(s.style.colorScheme=c)}function d(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)f(a);else try{let c=localStorage.getItem(e)||n,w=r&&c==="system"?d():c;f(w)}catch{}},Lx=y.createContext(void 0),qx={setTheme:t=>{},themes:[]},Yx=()=>{var t;return(t=y.useContext(Lx))!=null?t:qx};y.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:a,enableColorScheme:l,defaultTheme:i,value:r,themes:o,nonce:s,scriptProps:u})=>{let f=JSON.stringify([n,e,i,t,o,r,a,l]).slice(1,-1);return y.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?s:"",dangerouslySetInnerHTML:{__html:`(${Hx.toString()})(${f})`}})});var Gx=t=>{switch(t){case"success":return Xx;case"info":return kx;case"warning":return Zx;case"error":return Kx;default:return null}},Qx=Array(12).fill(0),Vx=({visible:t,className:e})=>_.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},_.createElement("div",{className:"sonner-spinner"},Qx.map((n,a)=>_.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),Xx=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.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"})),Zx=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},_.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"})),kx=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.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"})),Kx=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.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"})),Px=_.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"},_.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),$x=()=>{let[t,e]=_.useState(document.hidden);return _.useEffect(()=>{let n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},Mc=1,Jx=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...a}=t,l=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Mc++,i=this.toasts.find(o=>o.id===l),r=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),i?this.toasts=this.toasts.map(o=>o.id===l?(this.publish({...o,...t,id:l,title:n}),{...o,...t,id:l,dismissible:r,title:n}):o):this.addToast({title:n,...a,dismissible:r,id:l}),l},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let a=t instanceof Promise?t:t(),l=n!==void 0,i,r=a.then(async s=>{if(i=["resolve",s],_.isValidElement(s))l=!1,this.create({id:n,type:"default",message:s});else if(Wx(s)&&!s.ok){l=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${s.status}`):e.error,f=typeof e.description=="function"?await e.description(`HTTP error! status: ${s.status}`):e.description;this.create({id:n,type:"error",message:u,description:f})}else if(e.success!==void 0){l=!1;let u=typeof e.success=="function"?await e.success(s):e.success,f=typeof e.description=="function"?await e.description(s):e.description;this.create({id:n,type:"success",message:u,description:f})}}).catch(async s=>{if(i=["reject",s],e.error!==void 0){l=!1;let u=typeof e.error=="function"?await e.error(s):e.error,f=typeof e.description=="function"?await e.description(s):e.description;this.create({id:n,type:"error",message:u,description:f})}}).finally(()=>{var s;l&&(this.dismiss(n),n=void 0),(s=e.finally)==null||s.call(e)}),o=()=>new Promise((s,u)=>r.then(()=>i[0]==="reject"?u(i[1]):s(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:o}:Object.assign(n,{unwrap:o})},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||Mc++;return this.create({jsx:t(n),id:n,...e}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ft=new Jx,Fx=(t,e)=>{let n=(e==null?void 0:e.id)||Mc++;return Ft.addToast({title:t,...e,id:n}),n},Wx=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",Ix=Fx,tS=()=>Ft.toasts,eS=()=>Ft.getActiveToasts();Object.assign(Ix,{success:Ft.success,info:Ft.info,warning:Ft.warning,error:Ft.error,custom:Ft.custom,message:Ft.message,promise:Ft.promise,dismiss:Ft.dismiss,loading:Ft.loading},{getHistory:tS,getToasts:eS});function nS(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",e==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}nS(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px)) translate(var(--swipe-amount-x, 0px));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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--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-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-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],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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 Kr(t){return t.label!==void 0}var aS=3,lS="32px",iS="16px",Vh=4e3,rS=356,oS=14,sS=20,uS=200;function Re(...t){return t.filter(Boolean).join(" ")}function cS(t){let[e,n]=t.split("-"),a=[];return e&&a.push(e),n&&a.push(n),a}var fS=t=>{var e,n,a,l,i,r,o,s,u,f,h;let{invert:d,toast:c,unstyled:w,interacting:g,setHeights:b,visibleToasts:m,heights:v,index:p,toasts:S,expanded:E,removeToast:C,defaultRichColors:T,closeButton:N,style:j,cancelButtonStyle:z,actionButtonStyle:Q,className:B="",descriptionClassName:et="",duration:K,position:ut,gap:R,loadingIcon:U,expandByDefault:M,classNames:D,icons:L,closeButtonAriaLabel:yt="Close toast",pauseWhenPageIsHidden:P}=t,[W,J]=_.useState(null),[Et,En]=_.useState(null),[ct,ka]=_.useState(!1),[Tn,va]=_.useState(!1),[An,Ka]=_.useState(!1),[On,Rr]=_.useState(!1),[Bs,Nr]=_.useState(!1),[Hs,ci]=_.useState(0),[Pa,fd]=_.useState(0),fi=_.useRef(c.duration||K||Vh),dd=_.useRef(null),ga=_.useRef(null),_p=p===0,zp=p+1<=m,me=c.type,$a=c.dismissible!==!1,jp=c.className||"",Up=c.descriptionClassName||"",Mr=_.useMemo(()=>v.findIndex(q=>q.toastId===c.id)||0,[v,c.id]),Bp=_.useMemo(()=>{var q;return(q=c.closeButton)!=null?q:N},[c.closeButton,N]),hd=_.useMemo(()=>c.duration||K||Vh,[c.duration,K]),Ls=_.useRef(0),Ja=_.useRef(0),md=_.useRef(0),Fa=_.useRef(null),[Hp,Lp]=ut.split("-"),vd=_.useMemo(()=>v.reduce((q,lt,ht)=>ht>=Mr?q:q+lt.height,0),[v,Mr]),gd=$x(),qp=c.invert||d,qs=me==="loading";Ja.current=_.useMemo(()=>Mr*R+vd,[Mr,vd]),_.useEffect(()=>{fi.current=hd},[hd]),_.useEffect(()=>{ka(!0)},[]),_.useEffect(()=>{let q=ga.current;if(q){let lt=q.getBoundingClientRect().height;return fd(lt),b(ht=>[{toastId:c.id,height:lt,position:c.position},...ht]),()=>b(ht=>ht.filter(Ae=>Ae.toastId!==c.id))}},[b,c.id]),_.useLayoutEffect(()=>{if(!ct)return;let q=ga.current,lt=q.style.height;q.style.height="auto";let ht=q.getBoundingClientRect().height;q.style.height=lt,fd(ht),b(Ae=>Ae.find(Oe=>Oe.toastId===c.id)?Ae.map(Oe=>Oe.toastId===c.id?{...Oe,height:ht}:Oe):[{toastId:c.id,height:ht,position:c.position},...Ae])},[ct,c.title,c.description,b,c.id]);let Cn=_.useCallback(()=>{va(!0),ci(Ja.current),b(q=>q.filter(lt=>lt.toastId!==c.id)),setTimeout(()=>{C(c)},uS)},[c,C,b,Ja]);_.useEffect(()=>{if(c.promise&&me==="loading"||c.duration===1/0||c.type==="loading")return;let q;return E||g||P&&gd?(()=>{if(md.current<Ls.current){let lt=new Date().getTime()-Ls.current;fi.current=fi.current-lt}md.current=new Date().getTime()})():fi.current!==1/0&&(Ls.current=new Date().getTime(),q=setTimeout(()=>{var lt;(lt=c.onAutoClose)==null||lt.call(c,c),Cn()},fi.current)),()=>clearTimeout(q)},[E,g,c,me,P,gd,Cn]),_.useEffect(()=>{c.delete&&Cn()},[Cn,c.delete]);function Yp(){var q,lt,ht;return L!=null&&L.loading?_.createElement("div",{className:Re(D==null?void 0:D.loader,(q=c==null?void 0:c.classNames)==null?void 0:q.loader,"sonner-loader"),"data-visible":me==="loading"},L.loading):U?_.createElement("div",{className:Re(D==null?void 0:D.loader,(lt=c==null?void 0:c.classNames)==null?void 0:lt.loader,"sonner-loader"),"data-visible":me==="loading"},U):_.createElement(Vx,{className:Re(D==null?void 0:D.loader,(ht=c==null?void 0:c.classNames)==null?void 0:ht.loader),visible:me==="loading"})}return _.createElement("li",{tabIndex:0,ref:ga,className:Re(B,jp,D==null?void 0:D.toast,(e=c==null?void 0:c.classNames)==null?void 0:e.toast,D==null?void 0:D.default,D==null?void 0:D[me],(n=c==null?void 0:c.classNames)==null?void 0:n[me]),"data-sonner-toast":"","data-rich-colors":(a=c.richColors)!=null?a:T,"data-styled":!(c.jsx||c.unstyled||w),"data-mounted":ct,"data-promise":!!c.promise,"data-swiped":Bs,"data-removed":Tn,"data-visible":zp,"data-y-position":Hp,"data-x-position":Lp,"data-index":p,"data-front":_p,"data-swiping":An,"data-dismissible":$a,"data-type":me,"data-invert":qp,"data-swipe-out":On,"data-swipe-direction":Et,"data-expanded":!!(E||M&&ct),style:{"--index":p,"--toasts-before":p,"--z-index":S.length-p,"--offset":`${Tn?Hs:Ja.current}px`,"--initial-height":M?"auto":`${Pa}px`,...j,...c.style},onDragEnd:()=>{Ka(!1),J(null),Fa.current=null},onPointerDown:q=>{qs||!$a||(dd.current=new Date,ci(Ja.current),q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(Ka(!0),Fa.current={x:q.clientX,y:q.clientY}))},onPointerUp:()=>{var q,lt,ht,Ae;if(On||!$a)return;Fa.current=null;let Oe=Number(((q=ga.current)==null?void 0:q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Rn=Number(((lt=ga.current)==null?void 0:lt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ya=new Date().getTime()-((ht=dd.current)==null?void 0:ht.getTime()),Ce=W==="x"?Oe:Rn,Nn=Math.abs(Ce)/ya;if(Math.abs(Ce)>=sS||Nn>.11){ci(Ja.current),(Ae=c.onDismiss)==null||Ae.call(c,c),En(W==="x"?Oe>0?"right":"left":Rn>0?"down":"up"),Cn(),Rr(!0),Nr(!1);return}Ka(!1),J(null)},onPointerMove:q=>{var lt,ht,Ae,Oe;if(!Fa.current||!$a||((lt=window.getSelection())==null?void 0:lt.toString().length)>0)return;let Rn=q.clientY-Fa.current.y,ya=q.clientX-Fa.current.x,Ce=(ht=t.swipeDirections)!=null?ht:cS(ut);!W&&(Math.abs(ya)>1||Math.abs(Rn)>1)&&J(Math.abs(ya)>Math.abs(Rn)?"x":"y");let Nn={x:0,y:0};W==="y"?(Ce.includes("top")||Ce.includes("bottom"))&&(Ce.includes("top")&&Rn<0||Ce.includes("bottom")&&Rn>0)&&(Nn.y=Rn):W==="x"&&(Ce.includes("left")||Ce.includes("right"))&&(Ce.includes("left")&&ya<0||Ce.includes("right")&&ya>0)&&(Nn.x=ya),(Math.abs(Nn.x)>0||Math.abs(Nn.y)>0)&&Nr(!0),(Ae=ga.current)==null||Ae.style.setProperty("--swipe-amount-x",`${Nn.x}px`),(Oe=ga.current)==null||Oe.style.setProperty("--swipe-amount-y",`${Nn.y}px`)}},Bp&&!c.jsx?_.createElement("button",{"aria-label":yt,"data-disabled":qs,"data-close-button":!0,onClick:qs||!$a?()=>{}:()=>{var q;Cn(),(q=c.onDismiss)==null||q.call(c,c)},className:Re(D==null?void 0:D.closeButton,(l=c==null?void 0:c.classNames)==null?void 0:l.closeButton)},(i=L==null?void 0:L.close)!=null?i:Px):null,c.jsx||y.isValidElement(c.title)?c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title:_.createElement(_.Fragment,null,me||c.icon||c.promise?_.createElement("div",{"data-icon":"",className:Re(D==null?void 0:D.icon,(r=c==null?void 0:c.classNames)==null?void 0:r.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Yp():null,c.type!=="loading"?c.icon||(L==null?void 0:L[me])||Gx(me):null):null,_.createElement("div",{"data-content":"",className:Re(D==null?void 0:D.content,(o=c==null?void 0:c.classNames)==null?void 0:o.content)},_.createElement("div",{"data-title":"",className:Re(D==null?void 0:D.title,(s=c==null?void 0:c.classNames)==null?void 0:s.title)},typeof c.title=="function"?c.title():c.title),c.description?_.createElement("div",{"data-description":"",className:Re(et,Up,D==null?void 0:D.description,(u=c==null?void 0:c.classNames)==null?void 0:u.description)},typeof c.description=="function"?c.description():c.description):null),y.isValidElement(c.cancel)?c.cancel:c.cancel&&Kr(c.cancel)?_.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||z,onClick:q=>{var lt,ht;Kr(c.cancel)&&$a&&((ht=(lt=c.cancel).onClick)==null||ht.call(lt,q),Cn())},className:Re(D==null?void 0:D.cancelButton,(f=c==null?void 0:c.classNames)==null?void 0:f.cancelButton)},c.cancel.label):null,y.isValidElement(c.action)?c.action:c.action&&Kr(c.action)?_.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||Q,onClick:q=>{var lt,ht;Kr(c.action)&&((ht=(lt=c.action).onClick)==null||ht.call(lt,q),!q.defaultPrevented&&Cn())},className:Re(D==null?void 0:D.actionButton,(h=c==null?void 0:c.classNames)==null?void 0:h.actionButton)},c.action.label):null))};function Xh(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function dS(t,e){let n={};return[t,e].forEach((a,l)=>{let i=l===1,r=i?"--mobile-offset":"--offset",o=i?iS:lS;function s(u){["top","right","bottom","left"].forEach(f=>{n[`${r}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof a=="number"||typeof a=="string"?s(a):typeof a=="object"?["top","right","bottom","left"].forEach(u=>{a[u]===void 0?n[`${r}-${u}`]=o:n[`${r}-${u}`]=typeof a[u]=="number"?`${a[u]}px`:a[u]}):s(o)}),n}var hS=y.forwardRef(function(t,e){let{invert:n,position:a="bottom-right",hotkey:l=["altKey","KeyT"],expand:i,closeButton:r,className:o,offset:s,mobileOffset:u,theme:f="light",richColors:h,duration:d,style:c,visibleToasts:w=aS,toastOptions:g,dir:b=Xh(),gap:m=oS,loadingIcon:v,icons:p,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=t,[C,T]=_.useState([]),N=_.useMemo(()=>Array.from(new Set([a].concat(C.filter(P=>P.position).map(P=>P.position)))),[C,a]),[j,z]=_.useState([]),[Q,B]=_.useState(!1),[et,K]=_.useState(!1),[ut,R]=_.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=_.useRef(null),M=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=_.useRef(null),L=_.useRef(!1),yt=_.useCallback(P=>{T(W=>{var J;return(J=W.find(Et=>Et.id===P.id))!=null&&J.delete||Ft.dismiss(P.id),W.filter(({id:Et})=>Et!==P.id)})},[]);return _.useEffect(()=>Ft.subscribe(P=>{if(P.dismiss){T(W=>W.map(J=>J.id===P.id?{...J,delete:!0}:J));return}setTimeout(()=>{av.flushSync(()=>{T(W=>{let J=W.findIndex(Et=>Et.id===P.id);return J!==-1?[...W.slice(0,J),{...W[J],...P},...W.slice(J+1)]:[P,...W]})})})}),[]),_.useEffect(()=>{if(f!=="system"){R(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?R("dark"):R("light")),typeof window>"u")return;let P=window.matchMedia("(prefers-color-scheme: dark)");try{P.addEventListener("change",({matches:W})=>{R(W?"dark":"light")})}catch{P.addListener(({matches:J})=>{try{R(J?"dark":"light")}catch(Et){console.error(Et)}})}},[f]),_.useEffect(()=>{C.length<=1&&B(!1)},[C]),_.useEffect(()=>{let P=W=>{var J,Et;l.every(En=>W[En]||W.code===En)&&(B(!0),(J=U.current)==null||J.focus()),W.code==="Escape"&&(document.activeElement===U.current||(Et=U.current)!=null&&Et.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[l]),_.useEffect(()=>{if(U.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,L.current=!1)}},[U.current]),_.createElement("section",{ref:e,"aria-label":`${S} ${M}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((P,W)=>{var J;let[Et,En]=P.split("-");return C.length?_.createElement("ol",{key:P,dir:b==="auto"?Xh():b,tabIndex:-1,ref:U,className:o,"data-sonner-toaster":!0,"data-theme":ut,"data-y-position":Et,"data-lifted":Q&&C.length>1&&!i,"data-x-position":En,style:{"--front-toast-height":`${((J=j[0])==null?void 0:J.height)||0}px`,"--width":`${rS}px`,"--gap":`${m}px`,...c,...dS(s,u)},onBlur:ct=>{L.current&&!ct.currentTarget.contains(ct.relatedTarget)&&(L.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:ct=>{ct.target instanceof HTMLElement&&ct.target.dataset.dismissible==="false"||L.current||(L.current=!0,D.current=ct.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{et||B(!1)},onDragEnd:()=>B(!1),onPointerDown:ct=>{ct.target instanceof HTMLElement&&ct.target.dataset.dismissible==="false"||K(!0)},onPointerUp:()=>K(!1)},C.filter(ct=>!ct.position&&W===0||ct.position===P).map((ct,ka)=>{var Tn,va;return _.createElement(fS,{key:ct.id,icons:p,index:ka,toast:ct,defaultRichColors:h,duration:(Tn=g==null?void 0:g.duration)!=null?Tn:d,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:w,closeButton:(va=g==null?void 0:g.closeButton)!=null?va:r,interacting:et,position:P,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:yt,toasts:C.filter(An=>An.position==ct.position),heights:j.filter(An=>An.position==ct.position),setHeights:z,expandByDefault:i,gap:m,loadingIcon:v,expanded:Q,pauseWhenPageIsHidden:E,swipeDirections:t.swipeDirections})})):null}))});const mS=({...t})=>{const{theme:e="system"}=Yx();return x.jsx(hS,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};function Wt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(l){if(t==null||t(l),n===!1||!l.defaultPrevented)return e==null?void 0:e(l)}}function Zh(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function qg(...t){return e=>{let n=!1;const a=t.map(l=>{const i=Zh(l,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let l=0;l<a.length;l++){const i=a[l];typeof i=="function"?i():Zh(t[l],null)}}}}function He(...t){return y.useCallback(qg(...t),t)}function vS(t,e){const n=y.createContext(e),a=i=>{const{children:r,...o}=i,s=y.useMemo(()=>o,Object.values(o));return x.jsx(n.Provider,{value:s,children:r})};a.displayName=t+"Provider";function l(i){const r=y.useContext(n);if(r)return r;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[a,l]}function kf(t,e=[]){let n=[];function a(i,r){const o=y.createContext(r),s=n.length;n=[...n,r];const u=h=>{var m;const{scope:d,children:c,...w}=h,g=((m=d==null?void 0:d[t])==null?void 0:m[s])||o,b=y.useMemo(()=>w,Object.values(w));return x.jsx(g.Provider,{value:b,children:c})};u.displayName=i+"Provider";function f(h,d){var g;const c=((g=d==null?void 0:d[t])==null?void 0:g[s])||o,w=y.useContext(c);if(w)return w;if(r!==void 0)return r;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,f]}const l=()=>{const i=n.map(r=>y.createContext(r));return function(o){const s=(o==null?void 0:o[t])||i;return y.useMemo(()=>({[`__scope${t}`]:{...o,[t]:s}}),[o,s])}};return l.scopeName=t,[a,gS(l,...e)]}function gS(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const a=t.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(i){const r=a.reduce((o,{useScope:s,scopeName:u})=>{const h=s(i)[`__scope${u}`];return{...o,...h}},{});return y.useMemo(()=>({[`__scope${e.scopeName}`]:r}),[r])}};return n.scopeName=e.scopeName,n}function Kf(t){const e=pS(t),n=y.forwardRef((a,l)=>{const{children:i,...r}=a,o=y.Children.toArray(i),s=o.find(xS);if(s){const u=s.props.children,f=o.map(h=>h===s?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:h);return x.jsx(e,{...r,ref:l,children:y.isValidElement(u)?y.cloneElement(u,void 0,f):null})}return x.jsx(e,{...r,ref:l,children:i})});return n.displayName=`${t}.Slot`,n}var yS=Kf("Slot");function pS(t){const e=y.forwardRef((n,a)=>{const{children:l,...i}=n;if(y.isValidElement(l)){const r=wS(l),o=SS(i,l.props);return l.type!==y.Fragment&&(o.ref=a?qg(a,r):r),y.cloneElement(l,o)}return y.Children.count(l)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Yg=Symbol("radix.slottable");function bS(t){const e=({children:n})=>x.jsx(x.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=Yg,e}function xS(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Yg}function SS(t,e){const n={...e};for(const a in e){const l=t[a],i=e[a];/^on[A-Z]/.test(a)?l&&i?n[a]=(...o)=>{const s=i(...o);return l(...o),s}:l&&(n[a]=l):a==="style"?n[a]={...l,...i}:a==="className"&&(n[a]=[l,i].filter(Boolean).join(" "))}return{...t,...n}}function wS(t){var a,l;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var ES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Kt=ES.reduce((t,e)=>{const n=Kf(`Primitive.${e}`),a=y.forwardRef((l,i)=>{const{asChild:r,...o}=l,s=r?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(s,{...o,ref:i})});return a.displayName=`Primitive.${e}`,{...t,[e]:a}},{});function TS(t,e){t&&ss.flushSync(()=>t.dispatchEvent(e))}function Fl(t){const e=y.useRef(t);return y.useEffect(()=>{e.current=t}),y.useMemo(()=>(...n)=>{var a;return(a=e.current)==null?void 0:a.call(e,...n)},[])}function AS(t,e=globalThis==null?void 0:globalThis.document){const n=Fl(t);y.useEffect(()=>{const a=l=>{l.key==="Escape"&&n(l)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[n,e])}var OS="DismissableLayer",Dc="dismissableLayer.update",CS="dismissableLayer.pointerDownOutside",RS="dismissableLayer.focusOutside",kh,Gg=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pf=y.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:i,onInteractOutside:r,onDismiss:o,...s}=t,u=y.useContext(Gg),[f,h]=y.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,c]=y.useState({}),w=He(e,T=>h(T)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=g.indexOf(b),v=f?g.indexOf(f):-1,p=u.layersWithOutsidePointerEventsDisabled.size>0,S=v>=m,E=DS(T=>{const N=T.target,j=[...u.branches].some(z=>z.contains(N));!S||j||(l==null||l(T),r==null||r(T),T.defaultPrevented||o==null||o())},d),C=_S(T=>{const N=T.target;[...u.branches].some(z=>z.contains(N))||(i==null||i(T),r==null||r(T),T.defaultPrevented||o==null||o())},d);return AS(T=>{v===u.layers.size-1&&(a==null||a(T),!T.defaultPrevented&&o&&(T.preventDefault(),o()))},d),y.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(kh=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Kh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=kh)}},[f,d,n,u]),y.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Kh())},[f,u]),y.useEffect(()=>{const T=()=>c({});return document.addEventListener(Dc,T),()=>document.removeEventListener(Dc,T)},[]),x.jsx(Kt.div,{...s,ref:w,style:{pointerEvents:p?S?"auto":"none":void 0,...t.style},onFocusCapture:Wt(t.onFocusCapture,C.onFocusCapture),onBlurCapture:Wt(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Wt(t.onPointerDownCapture,E.onPointerDownCapture)})});Pf.displayName=OS;var NS="DismissableLayerBranch",MS=y.forwardRef((t,e)=>{const n=y.useContext(Gg),a=y.useRef(null),l=He(e,a);return y.useEffect(()=>{const i=a.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),x.jsx(Kt.div,{...t,ref:l})});MS.displayName=NS;function DS(t,e=globalThis==null?void 0:globalThis.document){const n=Fl(t),a=y.useRef(!1),l=y.useRef(()=>{});return y.useEffect(()=>{const i=o=>{if(o.target&&!a.current){let s=function(){Qg(CS,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(e.removeEventListener("click",l.current),l.current=s,e.addEventListener("click",l.current,{once:!0})):s()}else e.removeEventListener("click",l.current);a.current=!1},r=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(r),e.removeEventListener("pointerdown",i),e.removeEventListener("click",l.current)}},[e,n]),{onPointerDownCapture:()=>a.current=!0}}function _S(t,e=globalThis==null?void 0:globalThis.document){const n=Fl(t),a=y.useRef(!1);return y.useEffect(()=>{const l=i=>{i.target&&!a.current&&Qg(RS,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",l),()=>e.removeEventListener("focusin",l)},[e,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Kh(){const t=new CustomEvent(Dc);document.dispatchEvent(t)}function Qg(t,e,n,{discrete:a}){const l=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&l.addEventListener(t,e,{once:!0}),a?TS(l,i):l.dispatchEvent(i)}var ca=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},zS=Jc[" useId ".trim().toString()]||(()=>{}),jS=0;function wu(t){const[e,n]=y.useState(zS());return ca(()=>{n(a=>a??String(jS++))},[t]),t||(e?`radix-${e}`:"")}const US=["top","right","bottom","left"],fa=Math.min,ie=Math.max,$o=Math.round,Pr=Math.floor,Je=t=>({x:t,y:t}),BS={left:"right",right:"left",bottom:"top",top:"bottom"},HS={start:"end",end:"start"};function _c(t,e,n){return ie(t,fa(e,n))}function xn(t,e){return typeof t=="function"?t(e):t}function Sn(t){return t.split("-")[0]}function oi(t){return t.split("-")[1]}function $f(t){return t==="x"?"y":"x"}function Jf(t){return t==="y"?"height":"width"}const LS=new Set(["top","bottom"]);function ke(t){return LS.has(Sn(t))?"y":"x"}function Ff(t){return $f(ke(t))}function qS(t,e,n){n===void 0&&(n=!1);const a=oi(t),l=Ff(t),i=Jf(l);let r=l==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(r=Jo(r)),[r,Jo(r)]}function YS(t){const e=Jo(t);return[zc(t),e,zc(e)]}function zc(t){return t.replace(/start|end/g,e=>HS[e])}const Ph=["left","right"],$h=["right","left"],GS=["top","bottom"],QS=["bottom","top"];function VS(t,e,n){switch(t){case"top":case"bottom":return n?e?$h:Ph:e?Ph:$h;case"left":case"right":return e?GS:QS;default:return[]}}function XS(t,e,n,a){const l=oi(t);let i=VS(Sn(t),n==="start",a);return l&&(i=i.map(r=>r+"-"+l),e&&(i=i.concat(i.map(zc)))),i}function Jo(t){return t.replace(/left|right|bottom|top/g,e=>BS[e])}function ZS(t){return{top:0,right:0,bottom:0,left:0,...t}}function Vg(t){return typeof t!="number"?ZS(t):{top:t,right:t,bottom:t,left:t}}function Fo(t){const{x:e,y:n,width:a,height:l}=t;return{width:a,height:l,top:n,left:e,right:e+a,bottom:n+l,x:e,y:n}}function Jh(t,e,n){let{reference:a,floating:l}=t;const i=ke(e),r=Ff(e),o=Jf(r),s=Sn(e),u=i==="y",f=a.x+a.width/2-l.width/2,h=a.y+a.height/2-l.height/2,d=a[o]/2-l[o]/2;let c;switch(s){case"top":c={x:f,y:a.y-l.height};break;case"bottom":c={x:f,y:a.y+a.height};break;case"right":c={x:a.x+a.width,y:h};break;case"left":c={x:a.x-l.width,y:h};break;default:c={x:a.x,y:a.y}}switch(oi(e)){case"start":c[r]-=d*(n&&u?-1:1);break;case"end":c[r]+=d*(n&&u?-1:1);break}return c}const kS=async(t,e,n)=>{const{placement:a="bottom",strategy:l="absolute",middleware:i=[],platform:r}=n,o=i.filter(Boolean),s=await(r.isRTL==null?void 0:r.isRTL(e));let u=await r.getElementRects({reference:t,floating:e,strategy:l}),{x:f,y:h}=Jh(u,a,s),d=a,c={},w=0;for(let g=0;g<o.length;g++){const{name:b,fn:m}=o[g],{x:v,y:p,data:S,reset:E}=await m({x:f,y:h,initialPlacement:a,placement:d,strategy:l,middlewareData:c,rects:u,platform:r,elements:{reference:t,floating:e}});f=v??f,h=p??h,c={...c,[b]:{...c[b],...S}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(d=E.placement),E.rects&&(u=E.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:l}):E.rects),{x:f,y:h}=Jh(u,d,s)),g=-1)}return{x:f,y:h,placement:d,strategy:l,middlewareData:c}};async function ar(t,e){var n;e===void 0&&(e={});const{x:a,y:l,platform:i,rects:r,elements:o,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:c=0}=xn(e,t),w=Vg(c),b=o[d?h==="floating"?"reference":"floating":h],m=Fo(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:u,rootBoundary:f,strategy:s})),v=h==="floating"?{x:a,y:l,width:r.floating.width,height:r.floating.height}:r.reference,p=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),S=await(i.isElement==null?void 0:i.isElement(p))?await(i.getScale==null?void 0:i.getScale(p))||{x:1,y:1}:{x:1,y:1},E=Fo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:p,strategy:s}):v);return{top:(m.top-E.top+w.top)/S.y,bottom:(E.bottom-m.bottom+w.bottom)/S.y,left:(m.left-E.left+w.left)/S.x,right:(E.right-m.right+w.right)/S.x}}const KS=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:a,placement:l,rects:i,platform:r,elements:o,middlewareData:s}=e,{element:u,padding:f=0}=xn(t,e)||{};if(u==null)return{};const h=Vg(f),d={x:n,y:a},c=Ff(l),w=Jf(c),g=await r.getDimensions(u),b=c==="y",m=b?"top":"left",v=b?"bottom":"right",p=b?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[c]-d[c]-i.floating[w],E=d[c]-i.reference[c],C=await(r.getOffsetParent==null?void 0:r.getOffsetParent(u));let T=C?C[p]:0;(!T||!await(r.isElement==null?void 0:r.isElement(C)))&&(T=o.floating[p]||i.floating[w]);const N=S/2-E/2,j=T/2-g[w]/2-1,z=fa(h[m],j),Q=fa(h[v],j),B=z,et=T-g[w]-Q,K=T/2-g[w]/2+N,ut=_c(B,K,et),R=!s.arrow&&oi(l)!=null&&K!==ut&&i.reference[w]/2-(K<B?z:Q)-g[w]/2<0,U=R?K<B?K-B:K-et:0;return{[c]:d[c]+U,data:{[c]:ut,centerOffset:K-ut-U,...R&&{alignmentOffset:U}},reset:R}}}),PS=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,a;const{placement:l,middlewareData:i,rects:r,initialPlacement:o,platform:s,elements:u}=e,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...b}=xn(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Sn(l),v=ke(o),p=Sn(o)===o,S=await(s.isRTL==null?void 0:s.isRTL(u.floating)),E=d||(p||!g?[Jo(o)]:YS(o)),C=w!=="none";!d&&C&&E.push(...XS(o,g,w,S));const T=[o,...E],N=await ar(e,b),j=[];let z=((a=i.flip)==null?void 0:a.overflows)||[];if(f&&j.push(N[m]),h){const K=qS(l,r,S);j.push(N[K[0]],N[K[1]])}if(z=[...z,{placement:l,overflows:j}],!j.every(K=>K<=0)){var Q,B;const K=(((Q=i.flip)==null?void 0:Q.index)||0)+1,ut=T[K];if(ut&&(!(h==="alignment"?v!==ke(ut):!1)||z.every(M=>M.overflows[0]>0&&ke(M.placement)===v)))return{data:{index:K,overflows:z},reset:{placement:ut}};let R=(B=z.filter(U=>U.overflows[0]<=0).sort((U,M)=>U.overflows[1]-M.overflows[1])[0])==null?void 0:B.placement;if(!R)switch(c){case"bestFit":{var et;const U=(et=z.filter(M=>{if(C){const D=ke(M.placement);return D===v||D==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(D=>D>0).reduce((D,L)=>D+L,0)]).sort((M,D)=>M[1]-D[1])[0])==null?void 0:et[0];U&&(R=U);break}case"initialPlacement":R=o;break}if(l!==R)return{reset:{placement:R}}}return{}}}};function Fh(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Wh(t){return US.some(e=>t[e]>=0)}const $S=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:a="referenceHidden",...l}=xn(t,e);switch(a){case"referenceHidden":{const i=await ar(e,{...l,elementContext:"reference"}),r=Fh(i,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Wh(r)}}}case"escaped":{const i=await ar(e,{...l,altBoundary:!0}),r=Fh(i,n.floating);return{data:{escapedOffsets:r,escaped:Wh(r)}}}default:return{}}}}},Xg=new Set(["left","top"]);async function JS(t,e){const{placement:n,platform:a,elements:l}=t,i=await(a.isRTL==null?void 0:a.isRTL(l.floating)),r=Sn(n),o=oi(n),s=ke(n)==="y",u=Xg.has(r)?-1:1,f=i&&s?-1:1,h=xn(e,t);let{mainAxis:d,crossAxis:c,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return o&&typeof w=="number"&&(c=o==="end"?w*-1:w),s?{x:c*f,y:d*u}:{x:d*u,y:c*f}}const FS=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,a;const{x:l,y:i,placement:r,middlewareData:o}=e,s=await JS(e,t);return r===((n=o.offset)==null?void 0:n.placement)&&(a=o.arrow)!=null&&a.alignmentOffset?{}:{x:l+s.x,y:i+s.y,data:{...s,placement:r}}}}},WS=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:a,placement:l}=e,{mainAxis:i=!0,crossAxis:r=!1,limiter:o={fn:b=>{let{x:m,y:v}=b;return{x:m,y:v}}},...s}=xn(t,e),u={x:n,y:a},f=await ar(e,s),h=ke(Sn(l)),d=$f(h);let c=u[d],w=u[h];if(i){const b=d==="y"?"top":"left",m=d==="y"?"bottom":"right",v=c+f[b],p=c-f[m];c=_c(v,c,p)}if(r){const b=h==="y"?"top":"left",m=h==="y"?"bottom":"right",v=w+f[b],p=w-f[m];w=_c(v,w,p)}const g=o.fn({...e,[d]:c,[h]:w});return{...g,data:{x:g.x-n,y:g.y-a,enabled:{[d]:i,[h]:r}}}}}},IS=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:a,placement:l,rects:i,middlewareData:r}=e,{offset:o=0,mainAxis:s=!0,crossAxis:u=!0}=xn(t,e),f={x:n,y:a},h=ke(l),d=$f(h);let c=f[d],w=f[h];const g=xn(o,e),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){const p=d==="y"?"height":"width",S=i.reference[d]-i.floating[p]+b.mainAxis,E=i.reference[d]+i.reference[p]-b.mainAxis;c<S?c=S:c>E&&(c=E)}if(u){var m,v;const p=d==="y"?"width":"height",S=Xg.has(Sn(l)),E=i.reference[h]-i.floating[p]+(S&&((m=r.offset)==null?void 0:m[h])||0)+(S?0:b.crossAxis),C=i.reference[h]+i.reference[p]+(S?0:((v=r.offset)==null?void 0:v[h])||0)-(S?b.crossAxis:0);w<E?w=E:w>C&&(w=C)}return{[d]:c,[h]:w}}}},t2=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,a;const{placement:l,rects:i,platform:r,elements:o}=e,{apply:s=()=>{},...u}=xn(t,e),f=await ar(e,u),h=Sn(l),d=oi(l),c=ke(l)==="y",{width:w,height:g}=i.floating;let b,m;h==="top"||h==="bottom"?(b=h,m=d===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(m=h,b=d==="end"?"top":"bottom");const v=g-f.top-f.bottom,p=w-f.left-f.right,S=fa(g-f[b],v),E=fa(w-f[m],p),C=!e.middlewareData.shift;let T=S,N=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(N=p),(a=e.middlewareData.shift)!=null&&a.enabled.y&&(T=v),C&&!d){const z=ie(f.left,0),Q=ie(f.right,0),B=ie(f.top,0),et=ie(f.bottom,0);c?N=w-2*(z!==0||Q!==0?z+Q:ie(f.left,f.right)):T=g-2*(B!==0||et!==0?B+et:ie(f.top,f.bottom))}await s({...e,availableWidth:N,availableHeight:T});const j=await r.getDimensions(o.floating);return w!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}};function Ts(){return typeof window<"u"}function si(t){return Zg(t)?(t.nodeName||"").toLowerCase():"#document"}function de(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tn(t){var e;return(e=(Zg(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zg(t){return Ts()?t instanceof Node||t instanceof de(t).Node:!1}function je(t){return Ts()?t instanceof Element||t instanceof de(t).Element:!1}function Fe(t){return Ts()?t instanceof HTMLElement||t instanceof de(t).HTMLElement:!1}function Ih(t){return!Ts()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof de(t).ShadowRoot}const e2=new Set(["inline","contents"]);function Ar(t){const{overflow:e,overflowX:n,overflowY:a,display:l}=Ue(t);return/auto|scroll|overlay|hidden|clip/.test(e+a+n)&&!e2.has(l)}const n2=new Set(["table","td","th"]);function a2(t){return n2.has(si(t))}const l2=[":popover-open",":modal"];function As(t){return l2.some(e=>{try{return t.matches(e)}catch{return!1}})}const i2=["transform","translate","scale","rotate","perspective"],r2=["transform","translate","scale","rotate","perspective","filter"],o2=["paint","layout","strict","content"];function Wf(t){const e=If(),n=je(t)?Ue(t):t;return i2.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||r2.some(a=>(n.willChange||"").includes(a))||o2.some(a=>(n.contain||"").includes(a))}function s2(t){let e=da(t);for(;Fe(e)&&!Wl(e);){if(Wf(e))return e;if(As(e))return null;e=da(e)}return null}function If(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const u2=new Set(["html","body","#document"]);function Wl(t){return u2.has(si(t))}function Ue(t){return de(t).getComputedStyle(t)}function Os(t){return je(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function da(t){if(si(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ih(t)&&t.host||tn(t);return Ih(e)?e.host:e}function kg(t){const e=da(t);return Wl(e)?t.ownerDocument?t.ownerDocument.body:t.body:Fe(e)&&Ar(e)?e:kg(e)}function lr(t,e,n){var a;e===void 0&&(e=[]),n===void 0&&(n=!0);const l=kg(t),i=l===((a=t.ownerDocument)==null?void 0:a.body),r=de(l);if(i){const o=jc(r);return e.concat(r,r.visualViewport||[],Ar(l)?l:[],o&&n?lr(o):[])}return e.concat(l,lr(l,[],n))}function jc(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Kg(t){const e=Ue(t);let n=parseFloat(e.width)||0,a=parseFloat(e.height)||0;const l=Fe(t),i=l?t.offsetWidth:n,r=l?t.offsetHeight:a,o=$o(n)!==i||$o(a)!==r;return o&&(n=i,a=r),{width:n,height:a,$:o}}function td(t){return je(t)?t:t.contextElement}function Cl(t){const e=td(t);if(!Fe(e))return Je(1);const n=e.getBoundingClientRect(),{width:a,height:l,$:i}=Kg(e);let r=(i?$o(n.width):n.width)/a,o=(i?$o(n.height):n.height)/l;return(!r||!Number.isFinite(r))&&(r=1),(!o||!Number.isFinite(o))&&(o=1),{x:r,y:o}}const c2=Je(0);function Pg(t){const e=de(t);return!If()||!e.visualViewport?c2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function f2(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==de(t)?!1:e}function Ya(t,e,n,a){e===void 0&&(e=!1),n===void 0&&(n=!1);const l=t.getBoundingClientRect(),i=td(t);let r=Je(1);e&&(a?je(a)&&(r=Cl(a)):r=Cl(t));const o=f2(i,n,a)?Pg(i):Je(0);let s=(l.left+o.x)/r.x,u=(l.top+o.y)/r.y,f=l.width/r.x,h=l.height/r.y;if(i){const d=de(i),c=a&&je(a)?de(a):a;let w=d,g=jc(w);for(;g&&a&&c!==w;){const b=Cl(g),m=g.getBoundingClientRect(),v=Ue(g),p=m.left+(g.clientLeft+parseFloat(v.paddingLeft))*b.x,S=m.top+(g.clientTop+parseFloat(v.paddingTop))*b.y;s*=b.x,u*=b.y,f*=b.x,h*=b.y,s+=p,u+=S,w=de(g),g=jc(w)}}return Fo({width:f,height:h,x:s,y:u})}function ed(t,e){const n=Os(t).scrollLeft;return e?e.left+n:Ya(tn(t)).left+n}function $g(t,e,n){n===void 0&&(n=!1);const a=t.getBoundingClientRect(),l=a.left+e.scrollLeft-(n?0:ed(t,a)),i=a.top+e.scrollTop;return{x:l,y:i}}function d2(t){let{elements:e,rect:n,offsetParent:a,strategy:l}=t;const i=l==="fixed",r=tn(a),o=e?As(e.floating):!1;if(a===r||o&&i)return n;let s={scrollLeft:0,scrollTop:0},u=Je(1);const f=Je(0),h=Fe(a);if((h||!h&&!i)&&((si(a)!=="body"||Ar(r))&&(s=Os(a)),Fe(a))){const c=Ya(a);u=Cl(a),f.x=c.x+a.clientLeft,f.y=c.y+a.clientTop}const d=r&&!h&&!i?$g(r,s,!0):Je(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-s.scrollTop*u.y+f.y+d.y}}function h2(t){return Array.from(t.getClientRects())}function m2(t){const e=tn(t),n=Os(t),a=t.ownerDocument.body,l=ie(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),i=ie(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight);let r=-n.scrollLeft+ed(t);const o=-n.scrollTop;return Ue(a).direction==="rtl"&&(r+=ie(e.clientWidth,a.clientWidth)-l),{width:l,height:i,x:r,y:o}}function v2(t,e){const n=de(t),a=tn(t),l=n.visualViewport;let i=a.clientWidth,r=a.clientHeight,o=0,s=0;if(l){i=l.width,r=l.height;const u=If();(!u||u&&e==="fixed")&&(o=l.offsetLeft,s=l.offsetTop)}return{width:i,height:r,x:o,y:s}}const g2=new Set(["absolute","fixed"]);function y2(t,e){const n=Ya(t,!0,e==="fixed"),a=n.top+t.clientTop,l=n.left+t.clientLeft,i=Fe(t)?Cl(t):Je(1),r=t.clientWidth*i.x,o=t.clientHeight*i.y,s=l*i.x,u=a*i.y;return{width:r,height:o,x:s,y:u}}function tm(t,e,n){let a;if(e==="viewport")a=v2(t,n);else if(e==="document")a=m2(tn(t));else if(je(e))a=y2(e,n);else{const l=Pg(t);a={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return Fo(a)}function Jg(t,e){const n=da(t);return n===e||!je(n)||Wl(n)?!1:Ue(n).position==="fixed"||Jg(n,e)}function p2(t,e){const n=e.get(t);if(n)return n;let a=lr(t,[],!1).filter(o=>je(o)&&si(o)!=="body"),l=null;const i=Ue(t).position==="fixed";let r=i?da(t):t;for(;je(r)&&!Wl(r);){const o=Ue(r),s=Wf(r);!s&&o.position==="fixed"&&(l=null),(i?!s&&!l:!s&&o.position==="static"&&!!l&&g2.has(l.position)||Ar(r)&&!s&&Jg(t,r))?a=a.filter(f=>f!==r):l=o,r=da(r)}return e.set(t,a),a}function b2(t){let{element:e,boundary:n,rootBoundary:a,strategy:l}=t;const r=[...n==="clippingAncestors"?As(e)?[]:p2(e,this._c):[].concat(n),a],o=r[0],s=r.reduce((u,f)=>{const h=tm(e,f,l);return u.top=ie(h.top,u.top),u.right=fa(h.right,u.right),u.bottom=fa(h.bottom,u.bottom),u.left=ie(h.left,u.left),u},tm(e,o,l));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function x2(t){const{width:e,height:n}=Kg(t);return{width:e,height:n}}function S2(t,e,n){const a=Fe(e),l=tn(e),i=n==="fixed",r=Ya(t,!0,i,e);let o={scrollLeft:0,scrollTop:0};const s=Je(0);function u(){s.x=ed(l)}if(a||!a&&!i)if((si(e)!=="body"||Ar(l))&&(o=Os(e)),a){const c=Ya(e,!0,i,e);s.x=c.x+e.clientLeft,s.y=c.y+e.clientTop}else l&&u();i&&!a&&l&&u();const f=l&&!a&&!i?$g(l,o):Je(0),h=r.left+o.scrollLeft-s.x-f.x,d=r.top+o.scrollTop-s.y-f.y;return{x:h,y:d,width:r.width,height:r.height}}function Eu(t){return Ue(t).position==="static"}function em(t,e){if(!Fe(t)||Ue(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return tn(t)===n&&(n=n.ownerDocument.body),n}function Fg(t,e){const n=de(t);if(As(t))return n;if(!Fe(t)){let l=da(t);for(;l&&!Wl(l);){if(je(l)&&!Eu(l))return l;l=da(l)}return n}let a=em(t,e);for(;a&&a2(a)&&Eu(a);)a=em(a,e);return a&&Wl(a)&&Eu(a)&&!Wf(a)?n:a||s2(t)||n}const w2=async function(t){const e=this.getOffsetParent||Fg,n=this.getDimensions,a=await n(t.floating);return{reference:S2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function E2(t){return Ue(t).direction==="rtl"}const T2={convertOffsetParentRelativeRectToViewportRelativeRect:d2,getDocumentElement:tn,getClippingRect:b2,getOffsetParent:Fg,getElementRects:w2,getClientRects:h2,getDimensions:x2,getScale:Cl,isElement:je,isRTL:E2};function Wg(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function A2(t,e){let n=null,a;const l=tn(t);function i(){var o;clearTimeout(a),(o=n)==null||o.disconnect(),n=null}function r(o,s){o===void 0&&(o=!1),s===void 0&&(s=1),i();const u=t.getBoundingClientRect(),{left:f,top:h,width:d,height:c}=u;if(o||e(),!d||!c)return;const w=Pr(h),g=Pr(l.clientWidth-(f+d)),b=Pr(l.clientHeight-(h+c)),m=Pr(f),p={rootMargin:-w+"px "+-g+"px "+-b+"px "+-m+"px",threshold:ie(0,fa(1,s))||1};let S=!0;function E(C){const T=C[0].intersectionRatio;if(T!==s){if(!S)return r();T?r(!1,T):a=setTimeout(()=>{r(!1,1e-7)},1e3)}T===1&&!Wg(u,t.getBoundingClientRect())&&r(),S=!1}try{n=new IntersectionObserver(E,{...p,root:l.ownerDocument})}catch{n=new IntersectionObserver(E,p)}n.observe(t)}return r(!0),i}function O2(t,e,n,a){a===void 0&&(a={});const{ancestorScroll:l=!0,ancestorResize:i=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:s=!1}=a,u=td(t),f=l||i?[...u?lr(u):[],...lr(e)]:[];f.forEach(m=>{l&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const h=u&&o?A2(u,n):null;let d=-1,c=null;r&&(c=new ResizeObserver(m=>{let[v]=m;v&&v.target===u&&c&&(c.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var p;(p=c)==null||p.observe(e)})),n()}),u&&!s&&c.observe(u),c.observe(e));let w,g=s?Ya(t):null;s&&b();function b(){const m=Ya(t);g&&!Wg(g,m)&&n(),g=m,w=requestAnimationFrame(b)}return n(),()=>{var m;f.forEach(v=>{l&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h==null||h(),(m=c)==null||m.disconnect(),c=null,s&&cancelAnimationFrame(w)}}const C2=FS,R2=WS,N2=PS,M2=t2,D2=$S,nm=KS,_2=IS,z2=(t,e,n)=>{const a=new Map,l={platform:T2,...n},i={...l.platform,_c:a};return kS(t,e,{...l,platform:i})};var j2=typeof document<"u",U2=function(){},vo=j2?y.useLayoutEffect:U2;function Wo(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,a,l;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(a=n;a--!==0;)if(!Wo(t[a],e[a]))return!1;return!0}if(l=Object.keys(t),n=l.length,n!==Object.keys(e).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(e,l[a]))return!1;for(a=n;a--!==0;){const i=l[a];if(!(i==="_owner"&&t.$$typeof)&&!Wo(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Ig(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function am(t,e){const n=Ig(t);return Math.round(e*n)/n}function Tu(t){const e=y.useRef(t);return vo(()=>{e.current=t}),e}function B2(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:a=[],platform:l,elements:{reference:i,floating:r}={},transform:o=!0,whileElementsMounted:s,open:u}=t,[f,h]=y.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[d,c]=y.useState(a);Wo(d,a)||c(a);const[w,g]=y.useState(null),[b,m]=y.useState(null),v=y.useCallback(M=>{M!==C.current&&(C.current=M,g(M))},[]),p=y.useCallback(M=>{M!==T.current&&(T.current=M,m(M))},[]),S=i||w,E=r||b,C=y.useRef(null),T=y.useRef(null),N=y.useRef(f),j=s!=null,z=Tu(s),Q=Tu(l),B=Tu(u),et=y.useCallback(()=>{if(!C.current||!T.current)return;const M={placement:e,strategy:n,middleware:d};Q.current&&(M.platform=Q.current),z2(C.current,T.current,M).then(D=>{const L={...D,isPositioned:B.current!==!1};K.current&&!Wo(N.current,L)&&(N.current=L,ss.flushSync(()=>{h(L)}))})},[d,e,n,Q,B]);vo(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,h(M=>({...M,isPositioned:!1})))},[u]);const K=y.useRef(!1);vo(()=>(K.current=!0,()=>{K.current=!1}),[]),vo(()=>{if(S&&(C.current=S),E&&(T.current=E),S&&E){if(z.current)return z.current(S,E,et);et()}},[S,E,et,z,j]);const ut=y.useMemo(()=>({reference:C,floating:T,setReference:v,setFloating:p}),[v,p]),R=y.useMemo(()=>({reference:S,floating:E}),[S,E]),U=y.useMemo(()=>{const M={position:n,left:0,top:0};if(!R.floating)return M;const D=am(R.floating,f.x),L=am(R.floating,f.y);return o?{...M,transform:"translate("+D+"px, "+L+"px)",...Ig(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:L}},[n,o,R.floating,f.x,f.y]);return y.useMemo(()=>({...f,update:et,refs:ut,elements:R,floatingStyles:U}),[f,et,ut,R,U])}const H2=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:a,padding:l}=typeof t=="function"?t(n):t;return a&&e(a)?a.current!=null?nm({element:a.current,padding:l}).fn(n):{}:a?nm({element:a,padding:l}).fn(n):{}}}},L2=(t,e)=>({...C2(t),options:[t,e]}),q2=(t,e)=>({...R2(t),options:[t,e]}),Y2=(t,e)=>({..._2(t),options:[t,e]}),G2=(t,e)=>({...N2(t),options:[t,e]}),Q2=(t,e)=>({...M2(t),options:[t,e]}),V2=(t,e)=>({...D2(t),options:[t,e]}),X2=(t,e)=>({...H2(t),options:[t,e]});var Z2="Arrow",ty=y.forwardRef((t,e)=>{const{children:n,width:a=10,height:l=5,...i}=t;return x.jsx(Kt.svg,{...i,ref:e,width:a,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});ty.displayName=Z2;var k2=ty;function K2(t){const[e,n]=y.useState(void 0);return ca(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const i=l[0];let r,o;if("borderBoxSize"in i){const s=i.borderBoxSize,u=Array.isArray(s)?s[0]:s;r=u.inlineSize,o=u.blockSize}else r=t.offsetWidth,o=t.offsetHeight;n({width:r,height:o})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else n(void 0)},[t]),e}var ey="Popper",[ny,ay]=kf(ey),[aO,ly]=ny(ey),iy="PopperAnchor",ry=y.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:a,...l}=t,i=ly(iy,n),r=y.useRef(null),o=He(e,r);return y.useEffect(()=>{i.onAnchorChange((a==null?void 0:a.current)||r.current)}),a?null:x.jsx(Kt.div,{...l,ref:o})});ry.displayName=iy;var nd="PopperContent",[P2,$2]=ny(nd),oy=y.forwardRef((t,e)=>{var ct,ka,Tn,va,An,Ka;const{__scopePopper:n,side:a="bottom",sideOffset:l=0,align:i="center",alignOffset:r=0,arrowPadding:o=0,avoidCollisions:s=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:d=!1,updatePositionStrategy:c="optimized",onPlaced:w,...g}=t,b=ly(nd,n),[m,v]=y.useState(null),p=He(e,On=>v(On)),[S,E]=y.useState(null),C=K2(S),T=(C==null?void 0:C.width)??0,N=(C==null?void 0:C.height)??0,j=a+(i!=="center"?"-"+i:""),z=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Q=Array.isArray(u)?u:[u],B=Q.length>0,et={padding:z,boundary:Q.filter(F2),altBoundary:B},{refs:K,floatingStyles:ut,placement:R,isPositioned:U,middlewareData:M}=B2({strategy:"fixed",placement:j,whileElementsMounted:(...On)=>O2(...On,{animationFrame:c==="always"}),elements:{reference:b.anchor},middleware:[L2({mainAxis:l+N,alignmentAxis:r}),s&&q2({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Y2():void 0,...et}),s&&G2({...et}),Q2({...et,apply:({elements:On,rects:Rr,availableWidth:Bs,availableHeight:Nr})=>{const{width:Hs,height:ci}=Rr.reference,Pa=On.floating.style;Pa.setProperty("--radix-popper-available-width",`${Bs}px`),Pa.setProperty("--radix-popper-available-height",`${Nr}px`),Pa.setProperty("--radix-popper-anchor-width",`${Hs}px`),Pa.setProperty("--radix-popper-anchor-height",`${ci}px`)}}),S&&X2({element:S,padding:o}),W2({arrowWidth:T,arrowHeight:N}),d&&V2({strategy:"referenceHidden",...et})]}),[D,L]=cy(R),yt=Fl(w);ca(()=>{U&&(yt==null||yt())},[U,yt]);const P=(ct=M.arrow)==null?void 0:ct.x,W=(ka=M.arrow)==null?void 0:ka.y,J=((Tn=M.arrow)==null?void 0:Tn.centerOffset)!==0,[Et,En]=y.useState();return ca(()=>{m&&En(window.getComputedStyle(m).zIndex)},[m]),x.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...ut,transform:U?ut.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Et,"--radix-popper-transform-origin":[(va=M.transformOrigin)==null?void 0:va.x,(An=M.transformOrigin)==null?void 0:An.y].join(" "),...((Ka=M.hide)==null?void 0:Ka.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:x.jsx(P2,{scope:n,placedSide:D,onArrowChange:E,arrowX:P,arrowY:W,shouldHideArrow:J,children:x.jsx(Kt.div,{"data-side":D,"data-align":L,...g,ref:p,style:{...g.style,animation:U?void 0:"none"}})})})});oy.displayName=nd;var sy="PopperArrow",J2={top:"bottom",right:"left",bottom:"top",left:"right"},uy=y.forwardRef(function(e,n){const{__scopePopper:a,...l}=e,i=$2(sy,a),r=J2[i.placedSide];return x.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[r]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:x.jsx(k2,{...l,ref:n,style:{...l.style,display:"block"}})})});uy.displayName=sy;function F2(t){return t!==null}var W2=t=>({name:"transformOrigin",options:t,fn(e){var b,m,v;const{placement:n,rects:a,middlewareData:l}=e,r=((b=l.arrow)==null?void 0:b.centerOffset)!==0,o=r?0:t.arrowWidth,s=r?0:t.arrowHeight,[u,f]=cy(n),h={start:"0%",center:"50%",end:"100%"}[f],d=(((m=l.arrow)==null?void 0:m.x)??0)+o/2,c=(((v=l.arrow)==null?void 0:v.y)??0)+s/2;let w="",g="";return u==="bottom"?(w=r?h:`${d}px`,g=`${-s}px`):u==="top"?(w=r?h:`${d}px`,g=`${a.floating.height+s}px`):u==="right"?(w=`${-s}px`,g=r?h:`${c}px`):u==="left"&&(w=`${a.floating.width+s}px`,g=r?h:`${c}px`),{data:{x:w,y:g}}}});function cy(t){const[e,n="center"]=t.split("-");return[e,n]}var I2=ry,tw=oy,ew=uy,nw="Portal",fy=y.forwardRef((t,e)=>{var o;const{container:n,...a}=t,[l,i]=y.useState(!1);ca(()=>i(!0),[]);const r=n||l&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return r?av.createPortal(x.jsx(Kt.div,{...a,ref:e}),r):null});fy.displayName=nw;function aw(t,e){return y.useReducer((n,a)=>e[n][a]??n,t)}var Or=t=>{const{present:e,children:n}=t,a=lw(e),l=typeof n=="function"?n({present:a.isPresent}):y.Children.only(n),i=He(a.ref,iw(l));return typeof n=="function"||a.isPresent?y.cloneElement(l,{ref:i}):null};Or.displayName="Presence";function lw(t){const[e,n]=y.useState(),a=y.useRef(null),l=y.useRef(t),i=y.useRef("none"),r=t?"mounted":"unmounted",[o,s]=aw(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=$r(a.current);i.current=o==="mounted"?u:"none"},[o]),ca(()=>{const u=a.current,f=l.current;if(f!==t){const d=i.current,c=$r(u);t?s("MOUNT"):c==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(f&&d!==c?"ANIMATION_OUT":"UNMOUNT"),l.current=t}},[t,s]),ca(()=>{if(e){let u;const f=e.ownerDocument.defaultView??window,h=c=>{const g=$r(a.current).includes(c.animationName);if(c.target===e&&g&&(s("ANIMATION_END"),!l.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",u=f.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},d=c=>{c.target===e&&(i.current=$r(a.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{f.clearTimeout(u),e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:y.useCallback(u=>{a.current=u?getComputedStyle(u):null,n(u)},[])}}function $r(t){return(t==null?void 0:t.animationName)||"none"}function iw(t){var a,l;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var rw=Jc[" useInsertionEffect ".trim().toString()]||ca;function ow({prop:t,defaultProp:e,onChange:n=()=>{},caller:a}){const[l,i,r]=sw({defaultProp:e,onChange:n}),o=t!==void 0,s=o?t:l;{const f=y.useRef(t!==void 0);y.useEffect(()=>{const h=f.current;h!==o&&console.warn(`${a} is changing from ${h?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=o},[o,a])}const u=y.useCallback(f=>{var h;if(o){const d=uw(f)?f(t):f;d!==t&&((h=r.current)==null||h.call(r,d))}else i(f)},[o,t,i,r]);return[s,u]}function sw({defaultProp:t,onChange:e}){const[n,a]=y.useState(t),l=y.useRef(n),i=y.useRef(e);return rw(()=>{i.current=e},[e]),y.useEffect(()=>{var r;l.current!==n&&((r=i.current)==null||r.call(i,n),l.current=n)},[n,l]),[n,a,i]}function uw(t){return typeof t=="function"}var cw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),fw="VisuallyHidden",dy=y.forwardRef((t,e)=>x.jsx(Kt.span,{...t,ref:e,style:{...cw,...t.style}}));dy.displayName=fw;var dw=dy,[Cs,lO]=kf("Tooltip",[ay]),ad=ay(),hy="TooltipProvider",hw=700,lm="tooltip.open",[mw,my]=Cs(hy),vy=t=>{const{__scopeTooltip:e,delayDuration:n=hw,skipDelayDuration:a=300,disableHoverableContent:l=!1,children:i}=t,r=y.useRef(!0),o=y.useRef(!1),s=y.useRef(0);return y.useEffect(()=>{const u=s.current;return()=>window.clearTimeout(u)},[]),x.jsx(mw,{scope:e,isOpenDelayedRef:r,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(s.current),r.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>r.current=!0,a)},[a]),isPointerInTransitRef:o,onPointerInTransitChange:y.useCallback(u=>{o.current=u},[]),disableHoverableContent:l,children:i})};vy.displayName=hy;var gy="Tooltip",[iO,Rs]=Cs(gy),Uc="TooltipTrigger",vw=y.forwardRef((t,e)=>{const{__scopeTooltip:n,...a}=t,l=Rs(Uc,n),i=my(Uc,n),r=ad(n),o=y.useRef(null),s=He(e,o,l.onTriggerChange),u=y.useRef(!1),f=y.useRef(!1),h=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),x.jsx(I2,{asChild:!0,...r,children:x.jsx(Kt.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...a,ref:s,onPointerMove:Wt(t.onPointerMove,d=>{d.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(l.onTriggerEnter(),f.current=!0)}),onPointerLeave:Wt(t.onPointerLeave,()=>{l.onTriggerLeave(),f.current=!1}),onPointerDown:Wt(t.onPointerDown,()=>{l.open&&l.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Wt(t.onFocus,()=>{u.current||l.onOpen()}),onBlur:Wt(t.onBlur,l.onClose),onClick:Wt(t.onClick,l.onClose)})})});vw.displayName=Uc;var gw="TooltipPortal",[rO,yw]=Cs(gw,{forceMount:void 0}),Il="TooltipContent",yy=y.forwardRef((t,e)=>{const n=yw(Il,t.__scopeTooltip),{forceMount:a=n.forceMount,side:l="top",...i}=t,r=Rs(Il,t.__scopeTooltip);return x.jsx(Or,{present:a||r.open,children:r.disableHoverableContent?x.jsx(py,{side:l,...i,ref:e}):x.jsx(pw,{side:l,...i,ref:e})})}),pw=y.forwardRef((t,e)=>{const n=Rs(Il,t.__scopeTooltip),a=my(Il,t.__scopeTooltip),l=y.useRef(null),i=He(e,l),[r,o]=y.useState(null),{trigger:s,onClose:u}=n,f=l.current,{onPointerInTransitChange:h}=a,d=y.useCallback(()=>{o(null),h(!1)},[h]),c=y.useCallback((w,g)=>{const b=w.currentTarget,m={x:w.clientX,y:w.clientY},v=Ew(m,b.getBoundingClientRect()),p=Tw(m,v),S=Aw(g.getBoundingClientRect()),E=Cw([...p,...S]);o(E),h(!0)},[h]);return y.useEffect(()=>()=>d(),[d]),y.useEffect(()=>{if(s&&f){const w=b=>c(b,f),g=b=>c(b,s);return s.addEventListener("pointerleave",w),f.addEventListener("pointerleave",g),()=>{s.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",g)}}},[s,f,c,d]),y.useEffect(()=>{if(r){const w=g=>{const b=g.target,m={x:g.clientX,y:g.clientY},v=(s==null?void 0:s.contains(b))||(f==null?void 0:f.contains(b)),p=!Ow(m,r);v?d():p&&(d(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[s,f,r,u,d]),x.jsx(py,{...t,ref:i})}),[bw,xw]=Cs(gy,{isInside:!1}),Sw=bS("TooltipContent"),py=y.forwardRef((t,e)=>{const{__scopeTooltip:n,children:a,"aria-label":l,onEscapeKeyDown:i,onPointerDownOutside:r,...o}=t,s=Rs(Il,n),u=ad(n),{onClose:f}=s;return y.useEffect(()=>(document.addEventListener(lm,f),()=>document.removeEventListener(lm,f)),[f]),y.useEffect(()=>{if(s.trigger){const h=d=>{const c=d.target;c!=null&&c.contains(s.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[s.trigger,f]),x.jsx(Pf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:x.jsxs(tw,{"data-state":s.stateAttribute,...u,...o,ref:e,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[x.jsx(Sw,{children:a}),x.jsx(bw,{scope:n,isInside:!0,children:x.jsx(dw,{id:s.contentId,role:"tooltip",children:l||a})})]})})});yy.displayName=Il;var by="TooltipArrow",ww=y.forwardRef((t,e)=>{const{__scopeTooltip:n,...a}=t,l=ad(n);return xw(by,n).isInside?null:x.jsx(ew,{...l,...a,ref:e})});ww.displayName=by;function Ew(t,e){const n=Math.abs(e.top-t.y),a=Math.abs(e.bottom-t.y),l=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,a,l,i)){case i:return"left";case l:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function Tw(t,e,n=5){const a=[];switch(e){case"top":a.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":a.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":a.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":a.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return a}function Aw(t){const{top:e,right:n,bottom:a,left:l}=t;return[{x:l,y:e},{x:n,y:e},{x:n,y:a},{x:l,y:a}]}function Ow(t,e){const{x:n,y:a}=t;let l=!1;for(let i=0,r=e.length-1;i<e.length;r=i++){const o=e[i],s=e[r],u=o.x,f=o.y,h=s.x,d=s.y;f>a!=d>a&&n<(h-u)*(a-f)/(d-f)+u&&(l=!l)}return l}function Cw(t){const e=t.slice();return e.sort((n,a)=>n.x<a.x?-1:n.x>a.x?1:n.y<a.y?-1:n.y>a.y?1:0),Rw(e)}function Rw(t){if(t.length<=1)return t.slice();const e=[];for(let a=0;a<t.length;a++){const l=t[a];for(;e.length>=2;){const i=e[e.length-1],r=e[e.length-2];if((i.x-r.x)*(l.y-r.y)>=(i.y-r.y)*(l.x-r.x))e.pop();else break}e.push(l)}e.pop();const n=[];for(let a=t.length-1;a>=0;a--){const l=t[a];for(;n.length>=2;){const i=n[n.length-1],r=n[n.length-2];if((i.x-r.x)*(l.y-r.y)>=(i.y-r.y)*(l.x-r.x))n.pop();else break}n.push(l)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var Nw=vy,xy=yy;function Sy(t){var e,n,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(e=0;e<l;e++)t[e]&&(n=Sy(t[e]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}function wy(){for(var t,e,n=0,a="",l=arguments.length;n<l;n++)(t=arguments[n])&&(e=Sy(t))&&(a&&(a+=" "),a+=e);return a}const ld="-",Mw=t=>{const e=_w(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:r=>{const o=r.split(ld);return o[0]===""&&o.length!==1&&o.shift(),Ey(o,e)||Dw(r)},getConflictingClassGroupIds:(r,o)=>{const s=n[r]||[];return o&&a[r]?[...s,...a[r]]:s}}},Ey=(t,e)=>{var r;if(t.length===0)return e.classGroupId;const n=t[0],a=e.nextPart.get(n),l=a?Ey(t.slice(1),a):void 0;if(l)return l;if(e.validators.length===0)return;const i=t.join(ld);return(r=e.validators.find(({validator:o})=>o(i)))==null?void 0:r.classGroupId},im=/^\[(.+)\]$/,Dw=t=>{if(im.test(t)){const e=im.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},_w=t=>{const{theme:e,prefix:n}=t,a={nextPart:new Map,validators:[]};return jw(Object.entries(t.classGroups),n).forEach(([i,r])=>{Bc(r,a,i,e)}),a},Bc=(t,e,n,a)=>{t.forEach(l=>{if(typeof l=="string"){const i=l===""?e:rm(e,l);i.classGroupId=n;return}if(typeof l=="function"){if(zw(l)){Bc(l(a),e,n,a);return}e.validators.push({validator:l,classGroupId:n});return}Object.entries(l).forEach(([i,r])=>{Bc(r,rm(e,i),n,a)})})},rm=(t,e)=>{let n=t;return e.split(ld).forEach(a=>{n.nextPart.has(a)||n.nextPart.set(a,{nextPart:new Map,validators:[]}),n=n.nextPart.get(a)}),n},zw=t=>t.isThemeGetter,jw=(t,e)=>e?t.map(([n,a])=>{const l=a.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([r,o])=>[e+r,o])):i);return[n,l]}):t,Uw=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,a=new Map;const l=(i,r)=>{n.set(i,r),e++,e>t&&(e=0,a=n,n=new Map)};return{get(i){let r=n.get(i);if(r!==void 0)return r;if((r=a.get(i))!==void 0)return l(i,r),r},set(i,r){n.has(i)?n.set(i,r):l(i,r)}}},Ty="!",Bw=t=>{const{separator:e,experimentalParseClassName:n}=t,a=e.length===1,l=e[0],i=e.length,r=o=>{const s=[];let u=0,f=0,h;for(let b=0;b<o.length;b++){let m=o[b];if(u===0){if(m===l&&(a||o.slice(b,b+i)===e)){s.push(o.slice(f,b)),f=b+i;continue}if(m==="/"){h=b;continue}}m==="["?u++:m==="]"&&u--}const d=s.length===0?o:o.substring(f),c=d.startsWith(Ty),w=c?d.substring(1):d,g=h&&h>f?h-f:void 0;return{modifiers:s,hasImportantModifier:c,baseClassName:w,maybePostfixModifierPosition:g}};return n?o=>n({className:o,parseClassName:r}):r},Hw=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(a=>{a[0]==="["?(e.push(...n.sort(),a),n=[]):n.push(a)}),e.push(...n.sort()),e},Lw=t=>({cache:Uw(t.cacheSize),parseClassName:Bw(t),...Mw(t)}),qw=/\s+/,Yw=(t,e)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:l}=e,i=[],r=t.trim().split(qw);let o="";for(let s=r.length-1;s>=0;s-=1){const u=r[s],{modifiers:f,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:c}=n(u);let w=!!c,g=a(w?d.substring(0,c):d);if(!g){if(!w){o=u+(o.length>0?" "+o:o);continue}if(g=a(d),!g){o=u+(o.length>0?" "+o:o);continue}w=!1}const b=Hw(f).join(":"),m=h?b+Ty:b,v=m+g;if(i.includes(v))continue;i.push(v);const p=l(g,w);for(let S=0;S<p.length;++S){const E=p[S];i.push(m+E)}o=u+(o.length>0?" "+o:o)}return o};function Gw(){let t=0,e,n,a="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Ay(e))&&(a&&(a+=" "),a+=n);return a}const Ay=t=>{if(typeof t=="string")return t;let e,n="";for(let a=0;a<t.length;a++)t[a]&&(e=Ay(t[a]))&&(n&&(n+=" "),n+=e);return n};function Qw(t,...e){let n,a,l,i=r;function r(s){const u=e.reduce((f,h)=>h(f),t());return n=Lw(u),a=n.cache.get,l=n.cache.set,i=o,o(s)}function o(s){const u=a(s);if(u)return u;const f=Yw(s,n);return l(s,f),f}return function(){return i(Gw.apply(null,arguments))}}const ft=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Oy=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vw=/^\d+\/\d+$/,Xw=new Set(["px","full","screen"]),Zw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kw=/\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$/,Kw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$w=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ln=t=>Rl(t)||Xw.has(t)||Vw.test(t),_n=t=>ui(t,"length",aE),Rl=t=>!!t&&!Number.isNaN(Number(t)),Au=t=>ui(t,"number",Rl),xi=t=>!!t&&Number.isInteger(Number(t)),Jw=t=>t.endsWith("%")&&Rl(t.slice(0,-1)),G=t=>Oy.test(t),zn=t=>Zw.test(t),Fw=new Set(["length","size","percentage"]),Ww=t=>ui(t,Fw,Cy),Iw=t=>ui(t,"position",Cy),tE=new Set(["image","url"]),eE=t=>ui(t,tE,iE),nE=t=>ui(t,"",lE),Si=()=>!0,ui=(t,e,n)=>{const a=Oy.exec(t);return a?a[1]?typeof e=="string"?a[1]===e:e.has(a[1]):n(a[2]):!1},aE=t=>kw.test(t)&&!Kw.test(t),Cy=()=>!1,lE=t=>Pw.test(t),iE=t=>$w.test(t),rE=()=>{const t=ft("colors"),e=ft("spacing"),n=ft("blur"),a=ft("brightness"),l=ft("borderColor"),i=ft("borderRadius"),r=ft("borderSpacing"),o=ft("borderWidth"),s=ft("contrast"),u=ft("grayscale"),f=ft("hueRotate"),h=ft("invert"),d=ft("gap"),c=ft("gradientColorStops"),w=ft("gradientColorStopPositions"),g=ft("inset"),b=ft("margin"),m=ft("opacity"),v=ft("padding"),p=ft("saturate"),S=ft("scale"),E=ft("sepia"),C=ft("skew"),T=ft("space"),N=ft("translate"),j=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",G,e],B=()=>[G,e],et=()=>["",ln,_n],K=()=>["auto",Rl,G],ut=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",G],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],yt=()=>[Rl,G];return{cacheSize:500,separator:":",theme:{colors:[Si],spacing:[ln,_n],blur:["none","",zn,G],brightness:yt(),borderColor:[t],borderRadius:["none","","full",zn,G],borderSpacing:B(),borderWidth:et(),contrast:yt(),grayscale:D(),hueRotate:yt(),invert:D(),gap:B(),gradientColorStops:[t],gradientColorStopPositions:[Jw,_n],inset:Q(),margin:Q(),opacity:yt(),padding:B(),saturate:yt(),scale:yt(),sepia:D(),skew:yt(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",G]}],container:["container"],columns:[{columns:[zn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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"],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:[...ut(),G]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xi,G]}],basis:[{basis:Q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",G]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",xi,G]}],"grid-cols":[{"grid-cols":[Si]}],"col-start-end":[{col:["auto",{span:["full",xi,G]},G]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[Si]}],"row-start-end":[{row:["auto",{span:[xi,G]},G]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",G]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...M()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...M(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...M(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G,e]}],"min-w":[{"min-w":[G,e,"min","max","fit"]}],"max-w":[{"max-w":[G,e,"none","full","min","max","fit","prose",{screen:[zn]},zn]}],h:[{h:[G,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G,e,"auto","min","max","fit"]}],"font-size":[{text:["base",zn,_n]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Au]}],"font-family":[{font:[Si]}],"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:["tighter","tight","normal","wide","wider","widest",G]}],"line-clamp":[{"line-clamp":["none",Rl,Au]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ln,G]}],"list-image":[{"list-image":["none",G]}],"list-style-type":[{list:["none","disc","decimal",G]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ln,_n]}],"underline-offset":[{"underline-offset":["auto",ln,G]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ut(),Iw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ww]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},eE]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[c]}],"gradient-via":[{via:[c]}],"gradient-to":[{to:[c]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...R(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:R()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...R()]}],"outline-offset":[{"outline-offset":[ln,G]}],"outline-w":[{outline:[ln,_n]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:et()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[ln,_n]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",zn,nE]}],"shadow-color":[{shadow:[Si]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[a]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",zn,G]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[h]}],saturate:[{saturate:[p]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[r]}],"border-spacing-x":[{"border-spacing-x":[r]}],"border-spacing-y":[{"border-spacing-y":[r]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",G]}],duration:[{duration:yt()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:yt()}],animate:[{animate:["none","spin","ping","pulse","bounce",G]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[xi,G]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],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",G]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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",G]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ln,_n,Au]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},oE=Qw(rE);function bt(...t){return oE(wy(t))}const sE=Nw,uE=y.forwardRef(({className:t,sideOffset:e=4,...n},a)=>x.jsx(xy,{ref:a,sideOffset:e,className:bt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=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",t),...n}));uE.displayName=xy.displayName;var Ns=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ms=typeof window>"u"||"Deno"in globalThis;function Ne(){}function cE(t,e){return typeof t=="function"?t(e):t}function fE(t){return typeof t=="number"&&t>=0&&t!==1/0}function dE(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Hc(t,e){return typeof t=="function"?t(e):t}function hE(t,e){return typeof t=="function"?t(e):t}function om(t,e){const{type:n="all",exact:a,fetchStatus:l,predicate:i,queryKey:r,stale:o}=t;if(r){if(a){if(e.queryHash!==id(r,e.options))return!1}else if(!rr(e.queryKey,r))return!1}if(n!=="all"){const s=e.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||l&&l!==e.state.fetchStatus||i&&!i(e))}function sm(t,e){const{exact:n,status:a,predicate:l,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(ir(e.options.mutationKey)!==ir(i))return!1}else if(!rr(e.options.mutationKey,i))return!1}return!(a&&e.state.status!==a||l&&!l(e))}function id(t,e){return((e==null?void 0:e.queryKeyHashFn)||ir)(t)}function ir(t){return JSON.stringify(t,(e,n)=>Lc(n)?Object.keys(n).sort().reduce((a,l)=>(a[l]=n[l],a),{}):n)}function rr(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>rr(t[n],e[n])):!1}function Ry(t,e){if(t===e)return t;const n=um(t)&&um(e);if(n||Lc(t)&&Lc(e)){const a=n?t:Object.keys(t),l=a.length,i=n?e:Object.keys(e),r=i.length,o=n?[]:{},s=new Set(a);let u=0;for(let f=0;f<r;f++){const h=n?f:i[f];(!n&&s.has(h)||n)&&t[h]===void 0&&e[h]===void 0?(o[h]=void 0,u++):(o[h]=Ry(t[h],e[h]),o[h]===t[h]&&t[h]!==void 0&&u++)}return l===r&&u===l?t:o}return e}function um(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Lc(t){if(!cm(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!cm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function cm(t){return Object.prototype.toString.call(t)==="[object Object]"}function mE(t){return new Promise(e=>{setTimeout(e,t)})}function vE(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Ry(t,e):e}function gE(t,e,n=0){const a=[...t,e];return n&&a.length>n?a.slice(1):a}function yE(t,e,n=0){const a=[e,...t];return n&&a.length>n?a.slice(0,-1):a}var rd=Symbol();function Ny(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===rd?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Ea,Vn,_l,zm,pE=(zm=class extends Ns{constructor(){super();F(this,Ea);F(this,Vn);F(this,_l);Y(this,_l,e=>{if(!Ms&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,Vn)||this.setEventListener(A(this,_l))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,Vn))==null||e.call(this),Y(this,Vn,void 0))}setEventListener(e){var n;Y(this,_l,e),(n=A(this,Vn))==null||n.call(this),Y(this,Vn,e(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(e){A(this,Ea)!==e&&(Y(this,Ea,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof A(this,Ea)=="boolean"?A(this,Ea):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ea=new WeakMap,Vn=new WeakMap,_l=new WeakMap,zm),My=new pE,zl,Xn,jl,jm,bE=(jm=class extends Ns{constructor(){super();F(this,zl,!0);F(this,Xn);F(this,jl);Y(this,jl,e=>{if(!Ms&&window.addEventListener){const n=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}})}onSubscribe(){A(this,Xn)||this.setEventListener(A(this,jl))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,Xn))==null||e.call(this),Y(this,Xn,void 0))}setEventListener(e){var n;Y(this,jl,e),(n=A(this,Xn))==null||n.call(this),Y(this,Xn,e(this.setOnline.bind(this)))}setOnline(e){A(this,zl)!==e&&(Y(this,zl,e),this.listeners.forEach(a=>{a(e)}))}isOnline(){return A(this,zl)}},zl=new WeakMap,Xn=new WeakMap,jl=new WeakMap,jm),Io=new bE;function xE(){let t,e;const n=new Promise((l,i)=>{t=l,e=i});n.status="pending",n.catch(()=>{});function a(l){Object.assign(n,l),delete n.resolve,delete n.reject}return n.resolve=l=>{a({status:"fulfilled",value:l}),t(l)},n.reject=l=>{a({status:"rejected",reason:l}),e(l)},n}function SE(t){return Math.min(1e3*2**t,3e4)}function Dy(t){return(t??"online")==="online"?Io.isOnline():!0}var _y=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Ou(t){return t instanceof _y}function zy(t){let e=!1,n=0,a=!1,l;const i=xE(),r=g=>{var b;a||(d(new _y(g)),(b=t.abort)==null||b.call(t))},o=()=>{e=!0},s=()=>{e=!1},u=()=>My.isFocused()&&(t.networkMode==="always"||Io.isOnline())&&t.canRun(),f=()=>Dy(t.networkMode)&&t.canRun(),h=g=>{var b;a||(a=!0,(b=t.onSuccess)==null||b.call(t,g),l==null||l(),i.resolve(g))},d=g=>{var b;a||(a=!0,(b=t.onError)==null||b.call(t,g),l==null||l(),i.reject(g))},c=()=>new Promise(g=>{var b;l=m=>{(a||u())&&g(m)},(b=t.onPause)==null||b.call(t)}).then(()=>{var g;l=void 0,a||(g=t.onContinue)==null||g.call(t)}),w=()=>{if(a)return;let g;const b=n===0?t.initialPromise:void 0;try{g=b??t.fn()}catch(m){g=Promise.reject(m)}Promise.resolve(g).then(h).catch(m=>{var C;if(a)return;const v=t.retry??(Ms?0:3),p=t.retryDelay??SE,S=typeof p=="function"?p(n,m):p,E=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,m);if(e||!E){d(m);return}n++,(C=t.onFail)==null||C.call(t,n,m),mE(S).then(()=>u()?void 0:c()).then(()=>{e?d(m):w()})})};return{promise:i,cancel:r,continue:()=>(l==null||l(),i),cancelRetry:o,continueRetry:s,canStart:f,start:()=>(f()?w():c().then(w),i)}}var wE=t=>setTimeout(t,0);function EE(){let t=[],e=0,n=o=>{o()},a=o=>{o()},l=wE;const i=o=>{e?t.push(o):l(()=>{n(o)})},r=()=>{const o=t;t=[],o.length&&l(()=>{a(()=>{o.forEach(s=>{n(s)})})})};return{batch:o=>{let s;e++;try{s=o()}finally{e--,e||r()}return s},batchCalls:o=>(...s)=>{i(()=>{o(...s)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{a=o},setScheduler:o=>{l=o}}}var Vt=EE(),Ta,Um,jy=(Um=class{constructor(){F(this,Ta)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fE(this.gcTime)&&Y(this,Ta,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ms?1/0:5*60*1e3))}clearGcTimeout(){A(this,Ta)&&(clearTimeout(A(this,Ta)),Y(this,Ta,void 0))}},Ta=new WeakMap,Um),Ul,Aa,ve,Oa,qt,or,Ca,Me,rn,Bm,TE=(Bm=class extends jy{constructor(e){super();F(this,Me);F(this,Ul);F(this,Aa);F(this,ve);F(this,Oa);F(this,qt);F(this,or);F(this,Ca);Y(this,Ca,!1),Y(this,or,e.defaultOptions),this.setOptions(e.options),this.observers=[],Y(this,Oa,e.client),Y(this,ve,A(this,Oa).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Y(this,Ul,OE(this.options)),this.state=e.state??A(this,Ul),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=A(this,qt))==null?void 0:e.promise}setOptions(e){this.options={...A(this,or),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,ve).remove(this)}setData(e,n){const a=vE(this.state.data,e,this.options);return Lt(this,Me,rn).call(this,{data:a,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),a}setState(e,n){Lt(this,Me,rn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var a,l;const n=(a=A(this,qt))==null?void 0:a.promise;return(l=A(this,qt))==null||l.cancel(e),n?n.then(Ne).catch(Ne):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,Ul))}isActive(){return this.observers.some(e=>hE(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Hc(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!dE(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(a=>a.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,qt))==null||n.continue()}onOnline(){var n;const e=this.observers.find(a=>a.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,qt))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),A(this,ve).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(A(this,qt)&&(A(this,Ca)?A(this,qt).cancel({revert:!0}):A(this,qt).cancelRetry()),this.scheduleGc()),A(this,ve).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Lt(this,Me,rn).call(this,{type:"invalidate"})}fetch(e,n){var u,f,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,qt))return A(this,qt).continueRetry(),A(this,qt).promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(c=>c.options.queryFn);d&&this.setOptions(d.options)}const a=new AbortController,l=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Y(this,Ca,!0),a.signal)})},i=()=>{const d=Ny(this.options,n),w=(()=>{const g={client:A(this,Oa),queryKey:this.queryKey,meta:this.meta};return l(g),g})();return Y(this,Ca,!1),this.options.persister?this.options.persister(d,w,this):d(w)},o=(()=>{const d={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:A(this,Oa),state:this.state,fetchFn:i};return l(d),d})();(u=this.options.behavior)==null||u.onFetch(o,this),Y(this,Aa,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=o.fetchOptions)==null?void 0:f.meta))&&Lt(this,Me,rn).call(this,{type:"fetch",meta:(h=o.fetchOptions)==null?void 0:h.meta});const s=d=>{var c,w,g,b;Ou(d)&&d.silent||Lt(this,Me,rn).call(this,{type:"error",error:d}),Ou(d)||((w=(c=A(this,ve).config).onError)==null||w.call(c,d,this),(b=(g=A(this,ve).config).onSettled)==null||b.call(g,this.state.data,d,this)),this.scheduleGc()};return Y(this,qt,zy({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:a.abort.bind(a),onSuccess:d=>{var c,w,g,b;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(m){s(m);return}(w=(c=A(this,ve).config).onSuccess)==null||w.call(c,d,this),(b=(g=A(this,ve).config).onSettled)==null||b.call(g,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,c)=>{Lt(this,Me,rn).call(this,{type:"failed",failureCount:d,error:c})},onPause:()=>{Lt(this,Me,rn).call(this,{type:"pause"})},onContinue:()=>{Lt(this,Me,rn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),A(this,qt).start()}},Ul=new WeakMap,Aa=new WeakMap,ve=new WeakMap,Oa=new WeakMap,qt=new WeakMap,or=new WeakMap,Ca=new WeakMap,Me=new WeakSet,rn=function(e){const n=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...AE(a.data,this.options),fetchMeta:e.meta??null};case"success":return Y(this,Aa,void 0),{...a,data:e.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=e.error;return Ou(l)&&l.revert&&A(this,Aa)?{...A(this,Aa),fetchStatus:"idle"}:{...a,error:l,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=n(this.state),Vt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),A(this,ve).notify({query:this,type:"updated",action:e})})},Bm);function AE(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Dy(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function OE(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,a=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ye,Hm,CE=(Hm=class extends Ns{constructor(e={}){super();F(this,Ye);this.config=e,Y(this,Ye,new Map)}build(e,n,a){const l=n.queryKey,i=n.queryHash??id(l,n);let r=this.get(i);return r||(r=new TE({client:e,queryKey:l,queryHash:i,options:e.defaultQueryOptions(n),state:a,defaultOptions:e.getQueryDefaults(l)}),this.add(r)),r}add(e){A(this,Ye).has(e.queryHash)||(A(this,Ye).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=A(this,Ye).get(e.queryHash);n&&(e.destroy(),n===e&&A(this,Ye).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Vt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return A(this,Ye).get(e)}getAll(){return[...A(this,Ye).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(a=>om(n,a))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(a=>om(e,a)):n}notify(e){Vt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Vt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Vt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ye=new WeakMap,Hm),Ge,Qt,Ra,Qe,Un,Lm,RE=(Lm=class extends jy{constructor(e){super();F(this,Qe);F(this,Ge);F(this,Qt);F(this,Ra);this.mutationId=e.mutationId,Y(this,Qt,e.mutationCache),Y(this,Ge,[]),this.state=e.state||NE(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){A(this,Ge).includes(e)||(A(this,Ge).push(e),this.clearGcTimeout(),A(this,Qt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Y(this,Ge,A(this,Ge).filter(n=>n!==e)),this.scheduleGc(),A(this,Qt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){A(this,Ge).length||(this.state.status==="pending"?this.scheduleGc():A(this,Qt).remove(this))}continue(){var e;return((e=A(this,Ra))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,r,o,s,u,f,h,d,c,w,g,b,m,v,p,S,E,C,T,N;const n=()=>{Lt(this,Qe,Un).call(this,{type:"continue"})};Y(this,Ra,zy({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(j,z)=>{Lt(this,Qe,Un).call(this,{type:"failed",failureCount:j,error:z})},onPause:()=>{Lt(this,Qe,Un).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,Qt).canRun(this)}));const a=this.state.status==="pending",l=!A(this,Ra).canStart();try{if(a)n();else{Lt(this,Qe,Un).call(this,{type:"pending",variables:e,isPaused:l}),await((r=(i=A(this,Qt).config).onMutate)==null?void 0:r.call(i,e,this));const z=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,e));z!==this.state.context&&Lt(this,Qe,Un).call(this,{type:"pending",context:z,variables:e,isPaused:l})}const j=await A(this,Ra).start();return await((f=(u=A(this,Qt).config).onSuccess)==null?void 0:f.call(u,j,e,this.state.context,this)),await((d=(h=this.options).onSuccess)==null?void 0:d.call(h,j,e,this.state.context)),await((w=(c=A(this,Qt).config).onSettled)==null?void 0:w.call(c,j,null,this.state.variables,this.state.context,this)),await((b=(g=this.options).onSettled)==null?void 0:b.call(g,j,null,e,this.state.context)),Lt(this,Qe,Un).call(this,{type:"success",data:j}),j}catch(j){try{throw await((v=(m=A(this,Qt).config).onError)==null?void 0:v.call(m,j,e,this.state.context,this)),await((S=(p=this.options).onError)==null?void 0:S.call(p,j,e,this.state.context)),await((C=(E=A(this,Qt).config).onSettled)==null?void 0:C.call(E,void 0,j,this.state.variables,this.state.context,this)),await((N=(T=this.options).onSettled)==null?void 0:N.call(T,void 0,j,e,this.state.context)),j}finally{Lt(this,Qe,Un).call(this,{type:"error",error:j})}}finally{A(this,Qt).runNext(this)}}},Ge=new WeakMap,Qt=new WeakMap,Ra=new WeakMap,Qe=new WeakSet,Un=function(e){const n=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Vt.batch(()=>{A(this,Ge).forEach(a=>{a.onMutationUpdate(e)}),A(this,Qt).notify({mutation:this,type:"updated",action:e})})},Lm);function NE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var on,De,sr,qm,ME=(qm=class extends Ns{constructor(e={}){super();F(this,on);F(this,De);F(this,sr);this.config=e,Y(this,on,new Set),Y(this,De,new Map),Y(this,sr,0)}build(e,n,a){const l=new RE({mutationCache:this,mutationId:++Dr(this,sr)._,options:e.defaultMutationOptions(n),state:a});return this.add(l),l}add(e){A(this,on).add(e);const n=Jr(e);if(typeof n=="string"){const a=A(this,De).get(n);a?a.push(e):A(this,De).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(A(this,on).delete(e)){const n=Jr(e);if(typeof n=="string"){const a=A(this,De).get(n);if(a)if(a.length>1){const l=a.indexOf(e);l!==-1&&a.splice(l,1)}else a[0]===e&&A(this,De).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Jr(e);if(typeof n=="string"){const a=A(this,De).get(n),l=a==null?void 0:a.find(i=>i.state.status==="pending");return!l||l===e}else return!0}runNext(e){var a;const n=Jr(e);if(typeof n=="string"){const l=(a=A(this,De).get(n))==null?void 0:a.find(i=>i!==e&&i.state.isPaused);return(l==null?void 0:l.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Vt.batch(()=>{A(this,on).forEach(e=>{this.notify({type:"removed",mutation:e})}),A(this,on).clear(),A(this,De).clear()})}getAll(){return Array.from(A(this,on))}find(e){const n={exact:!0,...e};return this.getAll().find(a=>sm(n,a))}findAll(e={}){return this.getAll().filter(n=>sm(e,n))}notify(e){Vt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Vt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Ne))))}},on=new WeakMap,De=new WeakMap,sr=new WeakMap,qm);function Jr(t){var e;return(e=t.options.scope)==null?void 0:e.id}function fm(t){return{onFetch:(e,n)=>{var f,h,d,c,w;const a=e.options,l=(d=(h=(f=e.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:d.direction,i=((c=e.state.data)==null?void 0:c.pages)||[],r=((w=e.state.data)==null?void 0:w.pageParams)||[];let o={pages:[],pageParams:[]},s=0;const u=async()=>{let g=!1;const b=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(e.signal.aborted?g=!0:e.signal.addEventListener("abort",()=>{g=!0}),e.signal)})},m=Ny(e.options,e.fetchOptions),v=async(p,S,E)=>{if(g)return Promise.reject();if(S==null&&p.pages.length)return Promise.resolve(p);const T=(()=>{const Q={client:e.client,queryKey:e.queryKey,pageParam:S,direction:E?"backward":"forward",meta:e.options.meta};return b(Q),Q})(),N=await m(T),{maxPages:j}=e.options,z=E?yE:gE;return{pages:z(p.pages,N,j),pageParams:z(p.pageParams,S,j)}};if(l&&i.length){const p=l==="backward",S=p?DE:dm,E={pages:i,pageParams:r},C=S(a,E);o=await v(E,C,p)}else{const p=t??i.length;do{const S=s===0?r[0]??a.initialPageParam:dm(a,o);if(s>0&&S==null)break;o=await v(o,S),s++}while(s<p)}return o};e.options.persister?e.fetchFn=()=>{var g,b;return(b=(g=e.options).persister)==null?void 0:b.call(g,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=u}}}function dm(t,{pages:e,pageParams:n}){const a=e.length-1;return e.length>0?t.getNextPageParam(e[a],e,n[a],n):void 0}function DE(t,{pages:e,pageParams:n}){var a;return e.length>0?(a=t.getPreviousPageParam)==null?void 0:a.call(t,e[0],e,n[0],n):void 0}var xt,Zn,kn,Bl,Hl,Kn,Ll,ql,Ym,_E=(Ym=class{constructor(t={}){F(this,xt);F(this,Zn);F(this,kn);F(this,Bl);F(this,Hl);F(this,Kn);F(this,Ll);F(this,ql);Y(this,xt,t.queryCache||new CE),Y(this,Zn,t.mutationCache||new ME),Y(this,kn,t.defaultOptions||{}),Y(this,Bl,new Map),Y(this,Hl,new Map),Y(this,Kn,0)}mount(){Dr(this,Kn)._++,A(this,Kn)===1&&(Y(this,Ll,My.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,xt).onFocus())})),Y(this,ql,Io.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,xt).onOnline())})))}unmount(){var t,e;Dr(this,Kn)._--,A(this,Kn)===0&&((t=A(this,Ll))==null||t.call(this),Y(this,Ll,void 0),(e=A(this,ql))==null||e.call(this),Y(this,ql,void 0))}isFetching(t){return A(this,xt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return A(this,Zn).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=A(this,xt).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=A(this,xt).build(this,e),a=n.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Hc(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(a))}getQueriesData(t){return A(this,xt).findAll(t).map(({queryKey:e,state:n})=>{const a=n.data;return[e,a]})}setQueryData(t,e,n){const a=this.defaultQueryOptions({queryKey:t}),l=A(this,xt).get(a.queryHash),i=l==null?void 0:l.state.data,r=cE(e,i);if(r!==void 0)return A(this,xt).build(this,a).setData(r,{...n,manual:!0})}setQueriesData(t,e,n){return Vt.batch(()=>A(this,xt).findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=A(this,xt).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=A(this,xt);Vt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=A(this,xt);return Vt.batch(()=>(n.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},a=Vt.batch(()=>A(this,xt).findAll(t).map(l=>l.cancel(n)));return Promise.all(a).then(Ne).catch(Ne)}invalidateQueries(t,e={}){return Vt.batch(()=>(A(this,xt).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},a=Vt.batch(()=>A(this,xt).findAll(t).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let i=l.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ne)),l.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(a).then(Ne)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=A(this,xt).build(this,e);return n.isStaleByTime(Hc(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ne).catch(Ne)}fetchInfiniteQuery(t){return t.behavior=fm(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ne).catch(Ne)}ensureInfiniteQueryData(t){return t.behavior=fm(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Io.isOnline()?A(this,Zn).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,xt)}getMutationCache(){return A(this,Zn)}getDefaultOptions(){return A(this,kn)}setDefaultOptions(t){Y(this,kn,t)}setQueryDefaults(t,e){A(this,Bl).set(ir(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...A(this,Bl).values()],n={};return e.forEach(a=>{rr(t,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(t,e){A(this,Hl).set(ir(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...A(this,Hl).values()],n={};return e.forEach(a=>{rr(t,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...A(this,kn).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=id(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===rd&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...A(this,kn).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){A(this,xt).clear(),A(this,Zn).clear()}},xt=new WeakMap,Zn=new WeakMap,kn=new WeakMap,Bl=new WeakMap,Hl=new WeakMap,Kn=new WeakMap,Ll=new WeakMap,ql=new WeakMap,Ym),zE=y.createContext(void 0),jE=({client:t,children:e})=>(y.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),x.jsx(zE.Provider,{value:t,children:e}));/**
 * @remix-run/router v1.23.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function ts(){return ts=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ts.apply(this,arguments)}var Wn;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Wn||(Wn={}));const hm="popstate";function UE(t){t===void 0&&(t={});function e(a,l){let{pathname:i,search:r,hash:o}=a.location;return qc("",{pathname:i,search:r,hash:o},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(a,l){return typeof l=="string"?l:By(l)}return HE(e,n,null,t)}function te(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Uy(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function BE(){return Math.random().toString(36).substr(2,8)}function mm(t,e){return{usr:t.state,key:t.key,idx:e}}function qc(t,e,n,a){return n===void 0&&(n=null),ts({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ds(e):e,{state:n,key:e&&e.key||a||BE()})}function By(t){let{pathname:e="/",search:n="",hash:a=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function Ds(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let a=t.indexOf("?");a>=0&&(e.search=t.substr(a),t=t.substr(0,a)),t&&(e.pathname=t)}return e}function HE(t,e,n,a){a===void 0&&(a={});let{window:l=document.defaultView,v5Compat:i=!1}=a,r=l.history,o=Wn.Pop,s=null,u=f();u==null&&(u=0,r.replaceState(ts({},r.state,{idx:u}),""));function f(){return(r.state||{idx:null}).idx}function h(){o=Wn.Pop;let b=f(),m=b==null?null:b-u;u=b,s&&s({action:o,location:g.location,delta:m})}function d(b,m){o=Wn.Push;let v=qc(g.location,b,m);u=f()+1;let p=mm(v,u),S=g.createHref(v);try{r.pushState(p,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;l.location.assign(S)}i&&s&&s({action:o,location:g.location,delta:1})}function c(b,m){o=Wn.Replace;let v=qc(g.location,b,m);u=f();let p=mm(v,u),S=g.createHref(v);r.replaceState(p,"",S),i&&s&&s({action:o,location:g.location,delta:0})}function w(b){let m=l.location.origin!=="null"?l.location.origin:l.location.href,v=typeof b=="string"?b:By(b);return v=v.replace(/ $/,"%20"),te(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let g={get action(){return o},get location(){return t(l,r)},listen(b){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(hm,h),s=b,()=>{l.removeEventListener(hm,h),s=null}},createHref(b){return e(l,b)},createURL:w,encodeLocation(b){let m=w(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:c,go(b){return r.go(b)}};return g}var vm;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(vm||(vm={}));function LE(t,e,n){return n===void 0&&(n="/"),qE(t,e,n)}function qE(t,e,n,a){let l=typeof e=="string"?Ds(e):e,i=qy(l.pathname||"/",n);if(i==null)return null;let r=Hy(t);YE(r);let o=null;for(let s=0;o==null&&s<r.length;++s){let u=WE(i);o=$E(r[s],u)}return o}function Hy(t,e,n,a){e===void 0&&(e=[]),n===void 0&&(n=[]),a===void 0&&(a="");let l=(i,r,o)=>{let s={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:r,route:i};s.relativePath.startsWith("/")&&(te(s.relativePath.startsWith(a),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(a.length));let u=Nl([a,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Hy(i.children,e,f,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:KE(u,i.index),routesMeta:f})};return t.forEach((i,r)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))l(i,r);else for(let s of Ly(i.path))l(i,r,s)}),e}function Ly(t){let e=t.split("/");if(e.length===0)return[];let[n,...a]=e,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(a.length===0)return l?[i,""]:[i];let r=Ly(a.join("/")),o=[];return o.push(...r.map(s=>s===""?i:[i,s].join("/"))),l&&o.push(...r),o.map(s=>t.startsWith("/")&&s===""?"/":s)}function YE(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:PE(e.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}const GE=/^:[\w-]+$/,QE=3,VE=2,XE=1,ZE=10,kE=-2,gm=t=>t==="*";function KE(t,e){let n=t.split("/"),a=n.length;return n.some(gm)&&(a+=kE),e&&(a+=VE),n.filter(l=>!gm(l)).reduce((l,i)=>l+(GE.test(i)?QE:i===""?XE:ZE),a)}function PE(t,e){return t.length===e.length&&t.slice(0,-1).every((a,l)=>a===e[l])?t[t.length-1]-e[e.length-1]:0}function $E(t,e,n){let{routesMeta:a}=t,l={},i="/",r=[];for(let o=0;o<a.length;++o){let s=a[o],u=o===a.length-1,f=i==="/"?e:e.slice(i.length)||"/",h=JE({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},f),d=s.route;if(!h)return null;Object.assign(l,h.params),r.push({params:l,pathname:Nl([i,h.pathname]),pathnameBase:IE(Nl([i,h.pathnameBase])),route:d}),h.pathnameBase!=="/"&&(i=Nl([i,h.pathnameBase]))}return r}function JE(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,a]=FE(t.path,t.caseSensitive,t.end),l=e.match(n);if(!l)return null;let i=l[0],r=i.replace(/(.)\/+$/,"$1"),o=l.slice(1);return{params:a.reduce((u,f,h)=>{let{paramName:d,isOptional:c}=f;if(d==="*"){let g=o[h]||"";r=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const w=o[h];return c&&!w?u[d]=void 0:u[d]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:r,pattern:t}}function FE(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Uy(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let a=[],l="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(r,o,s)=>(a.push({paramName:o,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(a.push({paramName:"*"}),l+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":t!==""&&t!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,e?void 0:"i"),a]}function WE(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Uy(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function qy(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,a=t.charAt(n);return a&&a!=="/"?null:t.slice(n)||"/"}const Nl=t=>t.join("/").replace(/\/\/+/g,"/"),IE=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/");function tT(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Yy=["post","put","patch","delete"];new Set(Yy);const eT=["get",...Yy];new Set(eT);/**
 * React Router v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function es(){return es=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},es.apply(this,arguments)}const nT=y.createContext(null),aT=y.createContext(null),Gy=y.createContext(null),_s=y.createContext(null),zs=y.createContext({outlet:null,matches:[],isDataRoute:!1}),Qy=y.createContext(null);function od(){return y.useContext(_s)!=null}function lT(){return od()||te(!1),y.useContext(_s).location}function iT(t,e){return rT(t,e)}function rT(t,e,n,a){od()||te(!1);let{navigator:l}=y.useContext(Gy),{matches:i}=y.useContext(zs),r=i[i.length-1],o=r?r.params:{};r&&r.pathname;let s=r?r.pathnameBase:"/";r&&r.route;let u=lT(),f;if(e){var h;let b=typeof e=="string"?Ds(e):e;s==="/"||(h=b.pathname)!=null&&h.startsWith(s)||te(!1),f=b}else f=u;let d=f.pathname||"/",c=d;if(s!=="/"){let b=s.replace(/^\//,"").split("/");c="/"+d.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=LE(t,{pathname:c}),g=fT(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:Nl([s,l.encodeLocation?l.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:Nl([s,l.encodeLocation?l.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,a);return e&&g?y.createElement(_s.Provider,{value:{location:es({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Wn.Pop}},g):g}function oT(){let t=vT(),e=tT(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},e),n?y.createElement("pre",{style:l},n):null,null)}const sT=y.createElement(oT,null);class uT extends y.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?y.createElement(zs.Provider,{value:this.props.routeContext},y.createElement(Qy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cT(t){let{routeContext:e,match:n,children:a}=t,l=y.useContext(nT);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(zs.Provider,{value:e},a)}function fT(t,e,n,a){var l;if(e===void 0&&(e=[]),n===void 0&&(n=null),a===void 0&&(a=null),t==null){var i;if(!n)return null;if(n.errors)t=n.matches;else if((i=a)!=null&&i.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let r=t,o=(l=n)==null?void 0:l.errors;if(o!=null){let f=r.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);f>=0||te(!1),r=r.slice(0,Math.min(r.length,f+1))}let s=!1,u=-1;if(n&&a&&a.v7_partialHydration)for(let f=0;f<r.length;f++){let h=r[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=f),h.route.id){let{loaderData:d,errors:c}=n,w=h.route.loader&&d[h.route.id]===void 0&&(!c||c[h.route.id]===void 0);if(h.route.lazy||w){s=!0,u>=0?r=r.slice(0,u+1):r=[r[0]];break}}}return r.reduceRight((f,h,d)=>{let c,w=!1,g=null,b=null;n&&(c=o&&h.route.id?o[h.route.id]:void 0,g=h.route.errorElement||sT,s&&(u<0&&d===0?(gT("route-fallback"),w=!0,b=null):u===d&&(w=!0,b=h.route.hydrateFallbackElement||null)));let m=e.concat(r.slice(0,d+1)),v=()=>{let p;return c?p=g:w?p=b:h.route.Component?p=y.createElement(h.route.Component,null):h.route.element?p=h.route.element:p=f,y.createElement(cT,{match:h,routeContext:{outlet:f,matches:m,isDataRoute:n!=null},children:p})};return n&&(h.route.ErrorBoundary||h.route.errorElement||d===0)?y.createElement(uT,{location:n.location,revalidation:n.revalidation,component:g,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var Vy=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Vy||{});function dT(t){let e=y.useContext(aT);return e||te(!1),e}function hT(t){let e=y.useContext(zs);return e||te(!1),e}function mT(t){let e=hT(),n=e.matches[e.matches.length-1];return n.route.id||te(!1),n.route.id}function vT(){var t;let e=y.useContext(Qy),n=dT(Vy.UseRouteError),a=mT();return e!==void 0?e:(t=n.errors)==null?void 0:t[a]}const ym={};function gT(t,e,n){ym[t]||(ym[t]=!0)}function yT(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function go(t){te(!1)}function pT(t){let{basename:e="/",children:n=null,location:a,navigationType:l=Wn.Pop,navigator:i,static:r=!1,future:o}=t;od()&&te(!1);let s=e.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:s,navigator:i,static:r,future:es({v7_relativeSplatPath:!1},o)}),[s,o,i,r]);typeof a=="string"&&(a=Ds(a));let{pathname:f="/",search:h="",hash:d="",state:c=null,key:w="default"}=a,g=y.useMemo(()=>{let b=qy(f,s);return b==null?null:{location:{pathname:b,search:h,hash:d,state:c,key:w},navigationType:l}},[s,f,h,d,c,w,l]);return g==null?null:y.createElement(Gy.Provider,{value:u},y.createElement(_s.Provider,{children:n,value:g}))}function bT(t){let{children:e,location:n}=t;return iT(Yc(e),n)}new Promise(()=>{});function Yc(t,e){e===void 0&&(e=[]);let n=[];return y.Children.forEach(t,(a,l)=>{if(!y.isValidElement(a))return;let i=[...e,l];if(a.type===y.Fragment){n.push.apply(n,Yc(a.props.children,i));return}a.type!==go&&te(!1),!a.props.index||!a.props.children||te(!1);let r={id:a.props.id||i.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(r.children=Yc(a.props.children,i)),n.push(r)}),n}/**
 * React Router DOM v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const xT="6";try{window.__reactRouterVersion=xT}catch{}const ST="startTransition",pm=Jc[ST];function wT(t){let{basename:e,children:n,future:a,window:l}=t,i=y.useRef();i.current==null&&(i.current=UE({window:l,v5Compat:!0}));let r=i.current,[o,s]=y.useState({action:r.action,location:r.location}),{v7_startTransition:u}=a||{},f=y.useCallback(h=>{u&&pm?pm(()=>s(h)):s(h)},[s,u]);return y.useLayoutEffect(()=>r.listen(f),[r,f]),y.useEffect(()=>yT(a),[a]),y.createElement(pT,{basename:e,children:n,location:o.location,navigationType:o.action,navigator:r,future:a})}var bm;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(bm||(bm={}));var xm;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(xm||(xm={}));const Sm=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,wm=wy,Xy=(t,e)=>n=>{var a;if((e==null?void 0:e.variants)==null)return wm(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:l,defaultVariants:i}=e,r=Object.keys(l).map(u=>{const f=n==null?void 0:n[u],h=i==null?void 0:i[u];if(f===null)return null;const d=Sm(f)||Sm(h);return l[u][d]}),o=n&&Object.entries(n).reduce((u,f)=>{let[h,d]=f;return d===void 0||(u[h]=d),u},{}),s=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((u,f)=>{let{class:h,className:d,...c}=f;return Object.entries(c).every(w=>{let[g,b]=w;return Array.isArray(b)?b.includes({...i,...o}[g]):{...i,...o}[g]===b})?[...u,h,d]:u},[]);return wm(t,r,s,n==null?void 0:n.class,n==null?void 0:n.className)},ET=Xy("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),oe=y.forwardRef(({className:t,variant:e,size:n,asChild:a=!1,...l},i)=>{const r=a?yS:"button";return x.jsx(r,{className:bt(ET({variant:e,size:n,className:t})),ref:i,...l})});oe.displayName="Button";const wa=y.forwardRef(({className:t,type:e,...n},a)=>x.jsx("input",{type:e,className:bt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:a,...n}));wa.displayName="Input";var TT="Label",Zy=y.forwardRef((t,e)=>x.jsx(Kt.label,{...t,ref:e,onMouseDown:n=>{var l;n.target.closest("button, input, select, textarea")||((l=t.onMouseDown)==null||l.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Zy.displayName=TT;var ky=Zy;const AT=Xy("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ml=y.forwardRef(({className:t,...e},n)=>x.jsx(ky,{ref:n,className:bt(AT(),t),...e}));Ml.displayName=ky.displayName;const ns=y.forwardRef(({className:t,...e},n)=>x.jsx("div",{ref:n,className:bt("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));ns.displayName="Card";const Gc=y.forwardRef(({className:t,...e},n)=>x.jsx("div",{ref:n,className:bt("flex flex-col space-y-1.5 p-6",t),...e}));Gc.displayName="CardHeader";const Qc=y.forwardRef(({className:t,...e},n)=>x.jsx("h3",{ref:n,className:bt("text-2xl font-semibold leading-none tracking-tight",t),...e}));Qc.displayName="CardTitle";const OT=y.forwardRef(({className:t,...e},n)=>x.jsx("p",{ref:n,className:bt("text-sm text-muted-foreground",t),...e}));OT.displayName="CardDescription";const as=y.forwardRef(({className:t,...e},n)=>x.jsx("div",{ref:n,className:bt("p-6 pt-0",t),...e}));as.displayName="CardContent";const CT=y.forwardRef(({className:t,...e},n)=>x.jsx("div",{ref:n,className:bt("flex items-center p-6 pt-0",t),...e}));CT.displayName="CardFooter";var Cu="focusScope.autoFocusOnMount",Ru="focusScope.autoFocusOnUnmount",Em={bubbles:!1,cancelable:!0},RT="FocusScope",Ky=y.forwardRef((t,e)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:l,onUnmountAutoFocus:i,...r}=t,[o,s]=y.useState(null),u=Fl(l),f=Fl(i),h=y.useRef(null),d=He(e,g=>s(g)),c=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(a){let g=function(p){if(c.paused||!o)return;const S=p.target;o.contains(S)?h.current=S:Bn(h.current,{select:!0})},b=function(p){if(c.paused||!o)return;const S=p.relatedTarget;S!==null&&(o.contains(S)||Bn(h.current,{select:!0}))},m=function(p){if(document.activeElement===document.body)for(const E of p)E.removedNodes.length>0&&Bn(o)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const v=new MutationObserver(m);return o&&v.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),v.disconnect()}}},[a,o,c.paused]),y.useEffect(()=>{if(o){Am.add(c);const g=document.activeElement;if(!o.contains(g)){const m=new CustomEvent(Cu,Em);o.addEventListener(Cu,u),o.dispatchEvent(m),m.defaultPrevented||(NT(jT(Py(o)),{select:!0}),document.activeElement===g&&Bn(o))}return()=>{o.removeEventListener(Cu,u),setTimeout(()=>{const m=new CustomEvent(Ru,Em);o.addEventListener(Ru,f),o.dispatchEvent(m),m.defaultPrevented||Bn(g??document.body,{select:!0}),o.removeEventListener(Ru,f),Am.remove(c)},0)}}},[o,u,f,c]);const w=y.useCallback(g=>{if(!n&&!a||c.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,m=document.activeElement;if(b&&m){const v=g.currentTarget,[p,S]=MT(v);p&&S?!g.shiftKey&&m===S?(g.preventDefault(),n&&Bn(p,{select:!0})):g.shiftKey&&m===p&&(g.preventDefault(),n&&Bn(S,{select:!0})):m===v&&g.preventDefault()}},[n,a,c.paused]);return x.jsx(Kt.div,{tabIndex:-1,...r,ref:d,onKeyDown:w})});Ky.displayName=RT;function NT(t,{select:e=!1}={}){const n=document.activeElement;for(const a of t)if(Bn(a,{select:e}),document.activeElement!==n)return}function MT(t){const e=Py(t),n=Tm(e,t),a=Tm(e.reverse(),t);return[n,a]}function Py(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const l=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||l?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Tm(t,e){for(const n of t)if(!DT(n,{upTo:e}))return n}function DT(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function _T(t){return t instanceof HTMLInputElement&&"select"in t}function Bn(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&_T(t)&&e&&t.select()}}var Am=zT();function zT(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Om(t,e),t.unshift(e)},remove(e){var n;t=Om(t,e),(n=t[0])==null||n.resume()}}}function Om(t,e){const n=[...t],a=n.indexOf(e);return a!==-1&&n.splice(a,1),n}function jT(t){return t.filter(e=>e.tagName!=="A")}var Nu=0;function UT(){y.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Cm()),document.body.insertAdjacentElement("beforeend",t[1]??Cm()),Nu++,()=>{Nu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Nu--}},[])}function Cm(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Xe=function(){return Xe=Object.assign||function(e){for(var n,a=1,l=arguments.length;a<l;a++){n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Xe.apply(this,arguments)};function $y(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(t);l<a.length;l++)e.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(t,a[l])&&(n[a[l]]=t[a[l]]);return n}function BT(t,e,n){if(n||arguments.length===2)for(var a=0,l=e.length,i;a<l;a++)(i||!(a in e))&&(i||(i=Array.prototype.slice.call(e,0,a)),i[a]=e[a]);return t.concat(i||Array.prototype.slice.call(e))}var yo="right-scroll-bar-position",po="width-before-scroll-bar",HT="with-scroll-bars-hidden",LT="--removed-body-scroll-bar-size";function Mu(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function qT(t,e){var n=y.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(a){var l=n.value;l!==a&&(n.value=a,n.callback(a,l))}}}})[0];return n.callback=e,n.facade}var YT=typeof window<"u"?y.useLayoutEffect:y.useEffect,Rm=new WeakMap;function GT(t,e){var n=qT(null,function(a){return t.forEach(function(l){return Mu(l,a)})});return YT(function(){var a=Rm.get(n);if(a){var l=new Set(a),i=new Set(t),r=n.current;l.forEach(function(o){i.has(o)||Mu(o,null)}),i.forEach(function(o){l.has(o)||Mu(o,r)})}Rm.set(n,t)},[t]),n}function QT(t){return t}function VT(t,e){e===void 0&&(e=QT);var n=[],a=!1,l={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(i){var r=e(i,a);return n.push(r),function(){n=n.filter(function(o){return o!==r})}},assignSyncMedium:function(i){for(a=!0;n.length;){var r=n;n=[],r.forEach(i)}n={push:function(o){return i(o)},filter:function(){return n}}},assignMedium:function(i){a=!0;var r=[];if(n.length){var o=n;n=[],o.forEach(i),r=n}var s=function(){var f=r;r=[],f.forEach(i)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(f){r.push(f),u()},filter:function(f){return r=r.filter(f),n}}}};return l}function XT(t){t===void 0&&(t={});var e=VT(null);return e.options=Xe({async:!0,ssr:!1},t),e}var Jy=function(t){var e=t.sideCar,n=$y(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=e.read();if(!a)throw new Error("Sidecar medium not found");return y.createElement(a,Xe({},n))};Jy.isSideCarExport=!0;function ZT(t,e){return t.useMedium(e),Jy}var Fy=XT(),Du=function(){},js=y.forwardRef(function(t,e){var n=y.useRef(null),a=y.useState({onScrollCapture:Du,onWheelCapture:Du,onTouchMoveCapture:Du}),l=a[0],i=a[1],r=t.forwardProps,o=t.children,s=t.className,u=t.removeScrollBar,f=t.enabled,h=t.shards,d=t.sideCar,c=t.noRelative,w=t.noIsolation,g=t.inert,b=t.allowPinchZoom,m=t.as,v=m===void 0?"div":m,p=t.gapMode,S=$y(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=d,C=GT([n,e]),T=Xe(Xe({},S),l);return y.createElement(y.Fragment,null,f&&y.createElement(E,{sideCar:Fy,removeScrollBar:u,shards:h,noRelative:c,noIsolation:w,inert:g,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:p}),r?y.cloneElement(y.Children.only(o),Xe(Xe({},T),{ref:C})):y.createElement(v,Xe({},T,{className:s,ref:C}),o))});js.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};js.classNames={fullWidth:po,zeroRight:yo};var kT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function KT(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=kT();return e&&t.setAttribute("nonce",e),t}function PT(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function $T(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var JT=function(){var t=0,e=null;return{add:function(n){t==0&&(e=KT())&&(PT(e,n),$T(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},FT=function(){var t=JT();return function(e,n){y.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},Wy=function(){var t=FT(),e=function(n){var a=n.styles,l=n.dynamic;return t(a,l),null};return e},WT={left:0,top:0,right:0,gap:0},_u=function(t){return parseInt(t||"",10)||0},IT=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],a=e[t==="padding"?"paddingTop":"marginTop"],l=e[t==="padding"?"paddingRight":"marginRight"];return[_u(n),_u(a),_u(l)]},tA=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return WT;var e=IT(t),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-n+e[2]-e[0])}},eA=Wy(),Dl="data-scroll-locked",nA=function(t,e,n,a){var l=t.left,i=t.top,r=t.right,o=t.gap;return n===void 0&&(n="margin"),`
  .`.concat(HT,` {
   overflow: hidden `).concat(a,`;
   padding-right: `).concat(o,"px ").concat(a,`;
  }
  body[`).concat(Dl,`] {
    overflow: hidden `).concat(a,`;
    overscroll-behavior: contain;
    `).concat([e&&"position: relative ".concat(a,";"),n==="margin"&&`
    padding-left: `.concat(l,`px;
    padding-top: `).concat(i,`px;
    padding-right: `).concat(r,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(o,"px ").concat(a,`;
    `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(a,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(yo,` {
    right: `).concat(o,"px ").concat(a,`;
  }
  
  .`).concat(po,` {
    margin-right: `).concat(o,"px ").concat(a,`;
  }
  
  .`).concat(yo," .").concat(yo,` {
    right: 0 `).concat(a,`;
  }
  
  .`).concat(po," .").concat(po,` {
    margin-right: 0 `).concat(a,`;
  }
  
  body[`).concat(Dl,`] {
    `).concat(LT,": ").concat(o,`px;
  }
`)},Nm=function(){var t=parseInt(document.body.getAttribute(Dl)||"0",10);return isFinite(t)?t:0},aA=function(){y.useEffect(function(){return document.body.setAttribute(Dl,(Nm()+1).toString()),function(){var t=Nm()-1;t<=0?document.body.removeAttribute(Dl):document.body.setAttribute(Dl,t.toString())}},[])},lA=function(t){var e=t.noRelative,n=t.noImportant,a=t.gapMode,l=a===void 0?"margin":a;aA();var i=y.useMemo(function(){return tA(l)},[l]);return y.createElement(eA,{styles:nA(i,!e,l,n?"":"!important")})},Vc=!1;if(typeof window<"u")try{var Fr=Object.defineProperty({},"passive",{get:function(){return Vc=!0,!0}});window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{Vc=!1}var tl=Vc?{passive:!1}:!1,iA=function(t){return t.tagName==="TEXTAREA"},Iy=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!iA(t)&&n[e]==="visible")},rA=function(t){return Iy(t,"overflowY")},oA=function(t){return Iy(t,"overflowX")},Mm=function(t,e){var n=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var l=tp(t,a);if(l){var i=ep(t,a),r=i[1],o=i[2];if(r>o)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},sA=function(t){var e=t.scrollTop,n=t.scrollHeight,a=t.clientHeight;return[e,n,a]},uA=function(t){var e=t.scrollLeft,n=t.scrollWidth,a=t.clientWidth;return[e,n,a]},tp=function(t,e){return t==="v"?rA(e):oA(e)},ep=function(t,e){return t==="v"?sA(e):uA(e)},cA=function(t,e){return t==="h"&&e==="rtl"?-1:1},fA=function(t,e,n,a,l){var i=cA(t,window.getComputedStyle(e).direction),r=i*a,o=n.target,s=e.contains(o),u=!1,f=r>0,h=0,d=0;do{if(!o)break;var c=ep(t,o),w=c[0],g=c[1],b=c[2],m=g-b-i*w;(w||m)&&tp(t,o)&&(h+=m,d+=w);var v=o.parentNode;o=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!s&&o!==document.body||s&&(e.contains(o)||e===o));return(f&&Math.abs(h)<1||!f&&Math.abs(d)<1)&&(u=!0),u},Wr=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Dm=function(t){return[t.deltaX,t.deltaY]},_m=function(t){return t&&"current"in t?t.current:t},dA=function(t,e){return t[0]===e[0]&&t[1]===e[1]},hA=function(t){return`
  .block-interactivity-`.concat(t,` {pointer-events: none;}
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},mA=0,el=[];function vA(t){var e=y.useRef([]),n=y.useRef([0,0]),a=y.useRef(),l=y.useState(mA++)[0],i=y.useState(Wy)[0],r=y.useRef(t);y.useEffect(function(){r.current=t},[t]),y.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(l));var g=BT([t.lockRef.current],(t.shards||[]).map(_m),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(l))})}}},[t.inert,t.lockRef.current,t.shards]);var o=y.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!r.current.allowPinchZoom;var m=Wr(g),v=n.current,p="deltaX"in g?g.deltaX:v[0]-m[0],S="deltaY"in g?g.deltaY:v[1]-m[1],E,C=g.target,T=Math.abs(p)>Math.abs(S)?"h":"v";if("touches"in g&&T==="h"&&C.type==="range")return!1;var N=Mm(T,C);if(!N)return!0;if(N?E=T:(E=T==="v"?"h":"v",N=Mm(T,C)),!N)return!1;if(!a.current&&"changedTouches"in g&&(p||S)&&(a.current=E),!E)return!0;var j=a.current||E;return fA(j,b,g,j==="h"?p:S)},[]),s=y.useCallback(function(g){var b=g;if(!(!el.length||el[el.length-1]!==i)){var m="deltaY"in b?Dm(b):Wr(b),v=e.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&dA(E.delta,m)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var p=(r.current.shards||[]).map(_m).filter(Boolean).filter(function(E){return E.contains(b.target)}),S=p.length>0?o(b,p[0]):!r.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=y.useCallback(function(g,b,m,v){var p={name:g,delta:b,target:m,should:v,shadowParent:gA(m)};e.current.push(p),setTimeout(function(){e.current=e.current.filter(function(S){return S!==p})},1)},[]),f=y.useCallback(function(g){n.current=Wr(g),a.current=void 0},[]),h=y.useCallback(function(g){u(g.type,Dm(g),g.target,o(g,t.lockRef.current))},[]),d=y.useCallback(function(g){u(g.type,Wr(g),g.target,o(g,t.lockRef.current))},[]);y.useEffect(function(){return el.push(i),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",s,tl),document.addEventListener("touchmove",s,tl),document.addEventListener("touchstart",f,tl),function(){el=el.filter(function(g){return g!==i}),document.removeEventListener("wheel",s,tl),document.removeEventListener("touchmove",s,tl),document.removeEventListener("touchstart",f,tl)}},[]);var c=t.removeScrollBar,w=t.inert;return y.createElement(y.Fragment,null,w?y.createElement(i,{styles:hA(l)}):null,c?y.createElement(lA,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function gA(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const yA=ZT(Fy,vA);var np=y.forwardRef(function(t,e){return y.createElement(js,Xe({},t,{ref:e,sideCar:yA}))});np.classNames=js.classNames;var pA=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},nl=new WeakMap,Ir=new WeakMap,to={},zu=0,ap=function(t){return t&&(t.host||ap(t.parentNode))},bA=function(t,e){return e.map(function(n){if(t.contains(n))return n;var a=ap(n);return a&&t.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},xA=function(t,e,n,a){var l=bA(e,Array.isArray(t)?t:[t]);to[n]||(to[n]=new WeakMap);var i=to[n],r=[],o=new Set,s=new Set(l),u=function(h){!h||o.has(h)||(o.add(h),u(h.parentNode))};l.forEach(u);var f=function(h){!h||s.has(h)||Array.prototype.forEach.call(h.children,function(d){if(o.has(d))f(d);else try{var c=d.getAttribute(a),w=c!==null&&c!=="false",g=(nl.get(d)||0)+1,b=(i.get(d)||0)+1;nl.set(d,g),i.set(d,b),r.push(d),g===1&&w&&Ir.set(d,!0),b===1&&d.setAttribute(n,"true"),w||d.setAttribute(a,"true")}catch(m){console.error("aria-hidden: cannot operate on ",d,m)}})};return f(e),o.clear(),zu++,function(){r.forEach(function(h){var d=nl.get(h)-1,c=i.get(h)-1;nl.set(h,d),i.set(h,c),d||(Ir.has(h)||h.removeAttribute(a),Ir.delete(h)),c||h.removeAttribute(n)}),zu--,zu||(nl=new WeakMap,nl=new WeakMap,Ir=new WeakMap,to={})}},SA=function(t,e,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),l=pA(t);return l?(a.push.apply(a,Array.from(l.querySelectorAll("[aria-live], script"))),xA(a,l,n,"aria-hidden")):function(){return null}},Us="Dialog",[lp,oO]=kf(Us),[wA,Le]=lp(Us),ip=t=>{const{__scopeDialog:e,children:n,open:a,defaultOpen:l,onOpenChange:i,modal:r=!0}=t,o=y.useRef(null),s=y.useRef(null),[u,f]=ow({prop:a,defaultProp:l??!1,onChange:i,caller:Us});return x.jsx(wA,{scope:e,triggerRef:o,contentRef:s,contentId:wu(),titleId:wu(),descriptionId:wu(),open:u,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(h=>!h),[f]),modal:r,children:n})};ip.displayName=Us;var rp="DialogTrigger",EA=y.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=Le(rp,n),i=He(e,l.triggerRef);return x.jsx(Kt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":cd(l.open),...a,ref:i,onClick:Wt(t.onClick,l.onOpenToggle)})});EA.displayName=rp;var sd="DialogPortal",[TA,op]=lp(sd,{forceMount:void 0}),sp=t=>{const{__scopeDialog:e,forceMount:n,children:a,container:l}=t,i=Le(sd,e);return x.jsx(TA,{scope:e,forceMount:n,children:y.Children.map(a,r=>x.jsx(Or,{present:n||i.open,children:x.jsx(fy,{asChild:!0,container:l,children:r})}))})};sp.displayName=sd;var ls="DialogOverlay",up=y.forwardRef((t,e)=>{const n=op(ls,t.__scopeDialog),{forceMount:a=n.forceMount,...l}=t,i=Le(ls,t.__scopeDialog);return i.modal?x.jsx(Or,{present:a||i.open,children:x.jsx(OA,{...l,ref:e})}):null});up.displayName=ls;var AA=Kf("DialogOverlay.RemoveScroll"),OA=y.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=Le(ls,n);return x.jsx(np,{as:AA,allowPinchZoom:!0,shards:[l.contentRef],children:x.jsx(Kt.div,{"data-state":cd(l.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),Ga="DialogContent",cp=y.forwardRef((t,e)=>{const n=op(Ga,t.__scopeDialog),{forceMount:a=n.forceMount,...l}=t,i=Le(Ga,t.__scopeDialog);return x.jsx(Or,{present:a||i.open,children:i.modal?x.jsx(CA,{...l,ref:e}):x.jsx(RA,{...l,ref:e})})});cp.displayName=Ga;var CA=y.forwardRef((t,e)=>{const n=Le(Ga,t.__scopeDialog),a=y.useRef(null),l=He(e,n.contentRef,a);return y.useEffect(()=>{const i=a.current;if(i)return SA(i)},[]),x.jsx(fp,{...t,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wt(t.onCloseAutoFocus,i=>{var r;i.preventDefault(),(r=n.triggerRef.current)==null||r.focus()}),onPointerDownOutside:Wt(t.onPointerDownOutside,i=>{const r=i.detail.originalEvent,o=r.button===0&&r.ctrlKey===!0;(r.button===2||o)&&i.preventDefault()}),onFocusOutside:Wt(t.onFocusOutside,i=>i.preventDefault())})}),RA=y.forwardRef((t,e)=>{const n=Le(Ga,t.__scopeDialog),a=y.useRef(!1),l=y.useRef(!1);return x.jsx(fp,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var r,o;(r=t.onCloseAutoFocus)==null||r.call(t,i),i.defaultPrevented||(a.current||(o=n.triggerRef.current)==null||o.focus(),i.preventDefault()),a.current=!1,l.current=!1},onInteractOutside:i=>{var s,u;(s=t.onInteractOutside)==null||s.call(t,i),i.defaultPrevented||(a.current=!0,i.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const r=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(r))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&l.current&&i.preventDefault()}})}),fp=y.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:i,...r}=t,o=Le(Ga,n),s=y.useRef(null),u=He(e,s);return UT(),x.jsxs(x.Fragment,{children:[x.jsx(Ky,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:i,children:x.jsx(Pf,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":cd(o.open),...r,ref:u,onDismiss:()=>o.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(NA,{titleId:o.titleId}),x.jsx(DA,{contentRef:s,descriptionId:o.descriptionId})]})]})}),ud="DialogTitle",dp=y.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=Le(ud,n);return x.jsx(Kt.h2,{id:l.titleId,...a,ref:e})});dp.displayName=ud;var hp="DialogDescription",mp=y.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=Le(hp,n);return x.jsx(Kt.p,{id:l.descriptionId,...a,ref:e})});mp.displayName=hp;var vp="DialogClose",gp=y.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=Le(vp,n);return x.jsx(Kt.button,{type:"button",...a,ref:e,onClick:Wt(t.onClick,()=>l.onOpenChange(!1))})});gp.displayName=vp;function cd(t){return t?"open":"closed"}var yp="DialogTitleWarning",[sO,pp]=vS(yp,{contentName:Ga,titleName:ud,docsSlug:"dialog"}),NA=({titleId:t})=>{const e=pp(yp),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return y.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},MA="DialogDescriptionWarning",DA=({contentRef:t,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pp(MA).contentName}}.`;return y.useEffect(()=>{var i;const l=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&l&&(document.getElementById(e)||console.warn(a))},[a,t,e]),null},_A=ip,zA=sp,bp=up,xp=cp,Sp=dp,wp=mp,jA=gp;/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const UA=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ep=(...t)=>t.filter((e,n,a)=>!!e&&e.trim()!==""&&a.indexOf(e)===n).join(" ").trim();/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var BA={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"};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HA=y.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:l="",children:i,iconNode:r,...o},s)=>y.createElement("svg",{ref:s,...BA,width:e,height:e,stroke:t,strokeWidth:a?Number(n)*24/Number(e):n,className:Ep("lucide",l),...o},[...r.map(([u,f])=>y.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cr=(t,e)=>{const n=y.forwardRef(({className:a,...l},i)=>y.createElement(HA,{ref:i,iconNode:e,className:Ep(`lucide-${UA(t)}`,a),...l}));return n.displayName=`${t}`,n};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const LA=Cr("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qA=Cr("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YA=Cr("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const GA=Cr("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QA=Cr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),VA=_A,XA=zA,Tp=y.forwardRef(({className:t,...e},n)=>x.jsx(bp,{ref:n,className:bt("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));Tp.displayName=bp.displayName;const Ap=y.forwardRef(({className:t,children:e,...n},a)=>x.jsxs(XA,{children:[x.jsx(Tp,{}),x.jsxs(xp,{ref:a,className:bt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...n,children:[e,x.jsxs(jA,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[x.jsx(QA,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ap.displayName=xp.displayName;const Op=({className:t,...e})=>x.jsx("div",{className:bt("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});Op.displayName="DialogHeader";const Cp=y.forwardRef(({className:t,...e},n)=>x.jsx(Sp,{ref:n,className:bt("text-lg font-semibold leading-none tracking-tight",t),...e}));Cp.displayName=Sp.displayName;const ZA=y.forwardRef(({className:t,...e},n)=>x.jsx(wp,{ref:n,className:bt("text-sm text-muted-foreground",t),...e}));ZA.displayName=wp.displayName;function kA({prizes:t,onSpin:e,isSpinning:n}){const[a,l]=y.useState(0),i=()=>{if(n)return;const o=5+Math.random()*5,s=Math.random()*360,u=a+o*360+s;l(u);const f=(360-s%360)%360,h=Math.floor(f/360*t.length),d=t[h];setTimeout(()=>{e(d)},3e3)},r=360/t.length;return x.jsxs("div",{className:"relative flex items-center justify-center",children:[x.jsxs("div",{className:"relative",children:[x.jsxs("div",{className:"w-80 h-80 rounded-full border-8 border-yellow-400 relative overflow-hidden shadow-2xl",style:{transform:`rotate(${a}deg)`,transition:n?"transform 3s cubic-bezier(0.23, 1, 0.32, 1)":"none"},children:[t.map((o,s)=>{const u=s*r,f=(s+1)*r,h=(u+f)/2;return x.jsx("div",{className:"absolute w-full h-full",style:{transform:`rotate(${u}deg)`,clipPath:`polygon(50% 50%, 50% 0%, ${50+50*Math.cos(r*Math.PI/180)}% ${50-50*Math.sin(r*Math.PI/180)}%)`},children:x.jsx("div",{className:"w-full h-full flex items-center justify-center",style:{backgroundColor:o.color},children:x.jsx("span",{className:"text-white font-bold text-sm transform -rotate-90 origin-center",style:{transform:`rotate(${h-90}deg) translateY(-60px)`},children:o.name})})},o.id)}),x.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-16 h-16 bg-gradient-to-br from-yellow-400 to-yellow-600 rounded-full border-4 border-yellow-300 flex items-center justify-center shadow-lg",children:x.jsx("span",{className:"text-red-800 font-bold text-xs",children:"SPIN"})})]}),x.jsx("div",{className:"absolute top-0 left-1/2 transform -translate-x-1/2 -translate-y-2 z-10",children:x.jsx("div",{className:"w-0 h-0 border-l-4 border-r-4 border-b-8 border-l-transparent border-r-transparent border-b-red-600"})})]}),x.jsx("button",{onClick:i,disabled:n,className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-16 h-16 bg-gradient-to-br from-yellow-400 to-yellow-600 rounded-full border-4 border-yellow-300 flex items-center justify-center shadow-lg hover:from-yellow-300 hover:to-yellow-500 disabled:opacity-50 disabled:cursor-not-allowed z-20",children:x.jsx("span",{className:"text-red-800 font-bold text-xs",children:n?"...":"SPIN"})})]})}const KA=[{id:"1",name:"100.000",color:"#dc2626",probability:10},{id:"2",name:"ZONK",color:"#1f2937",probability:30},{id:"3",name:"50.000",color:"#dc2626",probability:15},{id:"4",name:"ZONK",color:"#1f2937",probability:25},{id:"5",name:"200.000",color:"#dc2626",probability:5},{id:"6",name:"ZONK",color:"#1f2937",probability:10},{id:"7",name:"30.000",color:"#dc2626",probability:4},{id:"8",name:"ZONK",color:"#1f2937",probability:1}],Rp=()=>{const t=localStorage.getItem("luckySpinPrizes");return t?JSON.parse(t):KA},ju=t=>{localStorage.setItem("luckySpinPrizes",JSON.stringify(t))};function PA(){const[t,e]=y.useState(""),[n,a]=y.useState(""),[l,i]=y.useState(!1),[r,o]=y.useState(!1),[s,u]=y.useState(null),[f]=y.useState(Rp()),h=()=>{if(!t.trim()||!n.trim()){alert("Mohon isi Username dan Kode Tiket terlebih dahulu!");return}i(!0)},d=w=>{u(w),i(!1),o(!0)},c=()=>{o(!1),e(""),a("")};return x.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-red-900 via-red-800 to-red-900 relative overflow-hidden",children:[x.jsxs("div",{className:"absolute inset-0 opacity-10",children:[x.jsx("div",{className:"absolute top-10 left-10 text-red-300 text-8xl font-bold transform rotate-12",children:"777"}),x.jsx("div",{className:"absolute top-32 right-20 text-red-300 text-6xl font-bold transform -rotate-12",children:"♠"}),x.jsx("div",{className:"absolute bottom-20 left-20 text-red-300 text-7xl font-bold transform rotate-45",children:"♦"}),x.jsx("div",{className:"absolute bottom-32 right-32 text-red-300 text-5xl font-bold transform -rotate-45",children:"♥"})]}),x.jsxs("div",{className:"relative z-10 p-6",children:[x.jsxs("div",{className:"flex justify-between items-center mb-8",children:[x.jsx("div",{className:"text-left",children:x.jsx("h1",{className:"text-3xl font-bold text-yellow-400 tracking-wider",children:"SLOT GACOR"})}),x.jsxs("div",{className:"flex gap-2",children:[x.jsxs(oe,{onClick:()=>window.location.href="/admin",className:"bg-red-600 hover:bg-red-700 text-white",children:[x.jsx(qA,{className:"w-4 h-4 mr-2"}),"Admin"]}),x.jsx(oe,{className:"bg-red-600 hover:bg-red-700 text-white",children:"Masuk"}),x.jsx(oe,{className:"bg-yellow-600 hover:bg-yellow-700 text-red-900",children:"Daftar"})]})]}),x.jsxs("div",{className:"flex flex-col lg:flex-row items-center justify-center gap-12 max-w-7xl mx-auto",children:[x.jsx("div",{className:"flex-1 flex justify-center",children:x.jsx(kA,{prizes:f,onSpin:d,isSpinning:l})}),x.jsxs("div",{className:"flex-1 max-w-md",children:[x.jsx("div",{className:"text-center mb-8",children:x.jsx("h2",{className:"text-5xl font-bold text-red-100 mb-4 tracking-wider",children:"SLOT GACOR"})}),x.jsx(ns,{className:"bg-red-800/50 border-yellow-400 backdrop-blur-sm",children:x.jsxs(as,{className:"p-6",children:[x.jsx("div",{className:"text-center mb-6",children:x.jsx("h3",{className:"text-xl font-bold text-yellow-400 bg-red-700/50 py-2 px-4 rounded-lg border border-yellow-400",children:"MASUKKAN KODE TIKET"})}),x.jsxs("div",{className:"space-y-4",children:[x.jsxs("div",{children:[x.jsx(Ml,{htmlFor:"username",className:"text-red-100 font-medium",children:"Username"}),x.jsx(wa,{id:"username",type:"text",value:t,onChange:w=>e(w.target.value),className:"bg-white/90 border-red-300 text-gray-800 placeholder-gray-500 h-12 text-center font-medium",placeholder:"Username",disabled:l})]}),x.jsxs("div",{children:[x.jsx(Ml,{htmlFor:"ticketCode",className:"text-red-100 font-medium",children:"Kode Tiket"}),x.jsx(wa,{id:"ticketCode",type:"text",value:n,onChange:w=>a(w.target.value),className:"bg-white/90 border-red-300 text-gray-800 placeholder-gray-500 h-12 text-center font-medium",placeholder:"Kode Tiket",disabled:l})]}),x.jsx(oe,{onClick:h,disabled:l,className:"w-full bg-gradient-to-r from-red-600 to-red-700 hover:from-red-700 hover:to-red-800 text-white font-bold text-lg h-14 rounded-lg shadow-lg disabled:opacity-50",children:l?"SPINNING...":"SPIN"})]})]})})]})]})]}),x.jsx(VA,{open:r,onOpenChange:o,children:x.jsxs(Ap,{className:"bg-gradient-to-br from-red-800 to-red-900 border-yellow-400 text-white",children:[x.jsx(Op,{children:x.jsx(Cp,{className:"text-2xl font-bold text-yellow-400 text-center",children:"Selamat!"})}),x.jsxs("div",{className:"text-center py-6",children:[x.jsx("div",{className:"text-6xl font-bold text-yellow-400 mb-4",children:"🎉"}),x.jsx("p",{className:"text-xl mb-2",children:"Anda mendapatkan:"}),x.jsx("div",{className:"text-4xl font-bold py-4 px-6 rounded-lg border-2 border-yellow-400 inline-block",style:{backgroundColor:s==null?void 0:s.color},children:s==null?void 0:s.name}),x.jsxs("p",{className:"text-red-200 mt-4",children:["Username: ",t]}),x.jsxs("p",{className:"text-red-200",children:["Kode Tiket: ",n]})]}),x.jsx("div",{className:"flex justify-center",children:x.jsx(oe,{onClick:c,className:"bg-yellow-600 hover:bg-yellow-700 text-red-900 font-bold",children:"Tutup"})})]})})]})}const Np=y.forwardRef(({className:t,...e},n)=>x.jsx("div",{className:"relative w-full overflow-auto",children:x.jsx("table",{ref:n,className:bt("w-full caption-bottom text-sm",t),...e})}));Np.displayName="Table";const Mp=y.forwardRef(({className:t,...e},n)=>x.jsx("thead",{ref:n,className:bt("[&_tr]:border-b",t),...e}));Mp.displayName="TableHeader";const Dp=y.forwardRef(({className:t,...e},n)=>x.jsx("tbody",{ref:n,className:bt("[&_tr:last-child]:border-0",t),...e}));Dp.displayName="TableBody";const $A=y.forwardRef(({className:t,...e},n)=>x.jsx("tfoot",{ref:n,className:bt("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...e}));$A.displayName="TableFooter";const Xc=y.forwardRef(({className:t,...e},n)=>x.jsx("tr",{ref:n,className:bt("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...e}));Xc.displayName="TableRow";const Oi=y.forwardRef(({className:t,...e},n)=>x.jsx("th",{ref:n,className:bt("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...e}));Oi.displayName="TableHead";const Ci=y.forwardRef(({className:t,...e},n)=>x.jsx("td",{ref:n,className:bt("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...e}));Ci.displayName="TableCell";const JA=y.forwardRef(({className:t,...e},n)=>x.jsx("caption",{ref:n,className:bt("mt-4 text-sm text-muted-foreground",t),...e}));JA.displayName="TableCaption";function FA(){const[t,e]=y.useState([]),[n,a]=y.useState(null),[l,i]=y.useState({name:"",color:"#dc2626",probability:10});y.useEffect(()=>{e(Rp())},[]);const r=f=>{if(f.preventDefault(),n){const h=t.map(d=>d.id===n.id?{...d,...l}:d);e(h),ju(h),a(null)}else{const h={id:Date.now().toString(),...l},d=[...t,h];e(d),ju(d)}i({name:"",color:"#dc2626",probability:10})},o=f=>{a(f),i({name:f.name,color:f.color,probability:f.probability})},s=f=>{const h=t.filter(d=>d.id!==f);e(h),ju(h)},u=()=>{a(null),i({name:"",color:"#dc2626",probability:10})};return x.jsx("div",{className:"min-h-screen bg-gradient-to-br from-red-900 via-red-800 to-red-900 p-6",children:x.jsxs("div",{className:"max-w-6xl mx-auto space-y-6",children:[x.jsxs("div",{className:"text-center mb-8",children:[x.jsx("h1",{className:"text-4xl font-bold text-yellow-400 mb-2",children:"Admin Panel"}),x.jsx("p",{className:"text-red-200",children:"Kelola Hadiah Lucky Spin"})]}),x.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[x.jsxs(ns,{className:"bg-red-800/50 border-yellow-400",children:[x.jsx(Gc,{children:x.jsx(Qc,{className:"text-yellow-400",children:n?"Edit Hadiah":"Tambah Hadiah Baru"})}),x.jsx(as,{children:x.jsxs("form",{onSubmit:r,className:"space-y-4",children:[x.jsxs("div",{children:[x.jsx(Ml,{htmlFor:"name",className:"text-red-100",children:"Nama Hadiah"}),x.jsx(wa,{id:"name",type:"text",value:l.name,onChange:f=>i({...l,name:f.target.value}),className:"bg-red-700/50 border-red-600 text-white",placeholder:"Contoh: 100.000, ZONK",required:!0})]}),x.jsxs("div",{children:[x.jsx(Ml,{htmlFor:"color",className:"text-red-100",children:"Warna"}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx(wa,{id:"color",type:"color",value:l.color,onChange:f=>i({...l,color:f.target.value}),className:"w-16 h-10 bg-red-700/50 border-red-600"}),x.jsx(wa,{type:"text",value:l.color,onChange:f=>i({...l,color:f.target.value}),className:"bg-red-700/50 border-red-600 text-white",placeholder:"#dc2626"})]})]}),x.jsxs("div",{children:[x.jsx(Ml,{htmlFor:"probability",className:"text-red-100",children:"Probabilitas (%)"}),x.jsx(wa,{id:"probability",type:"number",min:"1",max:"100",value:l.probability,onChange:f=>i({...l,probability:parseInt(f.target.value)}),className:"bg-red-700/50 border-red-600 text-white",required:!0})]}),x.jsxs("div",{className:"flex gap-2",children:[x.jsxs(oe,{type:"submit",className:"bg-yellow-600 hover:bg-yellow-700 text-red-900",children:[x.jsx(LA,{className:"w-4 h-4 mr-2"}),n?"Update":"Tambah"]}),n&&x.jsx(oe,{type:"button",variant:"outline",onClick:u,className:"border-red-400 text-red-100",children:"Batal"})]})]})})]}),x.jsxs(ns,{className:"bg-red-800/50 border-yellow-400",children:[x.jsx(Gc,{children:x.jsx(Qc,{className:"text-yellow-400",children:"Daftar Hadiah"})}),x.jsx(as,{children:x.jsxs(Np,{children:[x.jsx(Mp,{children:x.jsxs(Xc,{className:"border-red-600",children:[x.jsx(Oi,{className:"text-red-100",children:"Nama"}),x.jsx(Oi,{className:"text-red-100",children:"Warna"}),x.jsx(Oi,{className:"text-red-100",children:"Probabilitas"}),x.jsx(Oi,{className:"text-red-100",children:"Aksi"})]})}),x.jsx(Dp,{children:t.map(f=>x.jsxs(Xc,{className:"border-red-600",children:[x.jsx(Ci,{className:"text-white font-medium",children:f.name}),x.jsx(Ci,{children:x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("div",{className:"w-6 h-6 rounded border border-red-400",style:{backgroundColor:f.color}}),x.jsx("span",{className:"text-red-100 text-sm",children:f.color})]})}),x.jsxs(Ci,{className:"text-white",children:[f.probability,"%"]}),x.jsx(Ci,{children:x.jsxs("div",{className:"flex gap-2",children:[x.jsx(oe,{size:"sm",variant:"outline",onClick:()=>o(f),className:"border-yellow-400 text-yellow-400 hover:bg-yellow-400 hover:text-red-900",children:x.jsx(YA,{className:"w-4 h-4"})}),x.jsx(oe,{size:"sm",variant:"outline",onClick:()=>s(f.id),className:"border-red-400 text-red-400 hover:bg-red-400 hover:text-white",children:x.jsx(GA,{className:"w-4 h-4"})})]})})]},f.id))})]})})]})]}),x.jsx("div",{className:"text-center",children:x.jsx(oe,{onClick:()=>window.location.href="/",className:"bg-yellow-600 hover:bg-yellow-700 text-red-900",children:"Kembali ke Lucky Spin"})})]})})}function WA(){return x.jsx(FA,{})}function IA(){return x.jsx("div",{className:"min-h-screen flex flex-col items-center justify-center bg-gradient-to-br from-gray-50 to-blue-50 p-6 text-center",children:x.jsxs("div",{className:"space-y-6 max-w-md",children:[x.jsxs("div",{className:"space-y-3",children:[x.jsx("h1",{className:"text-8xl font-bold text-blue-600",children:"404"}),x.jsx("h2",{className:"text-2xl font-semibold text-gray-800",children:"Page Not Found"}),x.jsx("p",{className:"text-muted-foreground",children:"The page you're looking for doesn't exist or may have been moved."})]}),x.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[x.jsx(oe,{asChild:!0,children:x.jsx("a",{href:"/",children:"Return Home"})}),x.jsx(oe,{variant:"outline",onClick:()=>window.history.back(),children:"Go Back"})]})]})})}const tO=new _E,eO=()=>x.jsx(jE,{client:tO,children:x.jsxs(sE,{children:[x.jsx(mS,{}),x.jsx(wT,{children:x.jsxs(bT,{children:[x.jsx(go,{path:"/",element:x.jsx(PA,{})}),x.jsx(go,{path:"/admin",element:x.jsx(WA,{})}),x.jsx(go,{path:"*",element:x.jsx(IA,{})})]})})]})});Bx.createRoot(document.getElementById("root")).render(x.jsx(eO,{}));
