function Jp(n,i){for(var s=0;s<i.length;s++){const c=i[s];if(typeof c!="string"&&!Array.isArray(c)){for(const o in c)if(o!=="default"&&!(o in n)){const d=Object.getOwnPropertyDescriptor(c,o);d&&Object.defineProperty(n,o,d.get?d:{enumerable:!0,get:()=>c[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))c(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function s(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(o){if(o.ep)return;o.ep=!0;const d=s(o);fetch(o.href,d)}})();var fx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var vc={exports:{}},cu={};/**
 * @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 Fh;function Pp(){if(Fh)return cu;Fh=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(c,o,d){var h=null;if(d!==void 0&&(h=""+d),o.key!==void 0&&(h=""+o.key),"key"in o){d={};for(var m in o)m!=="key"&&(d[m]=o[m])}else d=o;return o=d.ref,{$$typeof:n,type:c,key:h,ref:o!==void 0?o:null,props:d}}return cu.Fragment=i,cu.jsx=s,cu.jsxs=s,cu}var Ph;function $p(){return Ph||(Ph=1,vc.exports=Pp()),vc.exports}var p=$p(),yc={exports:{}},ot={};/**
 * @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 $h;function Wp(){if($h)return ot;$h=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),z=Symbol.iterator;function Y(x){return x===null||typeof x!="object"?null:(x=z&&x[z]||x["@@iterator"],typeof x=="function"?x:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,W={};function rt(x,D,B){this.props=x,this.context=D,this.refs=W,this.updater=B||Z}rt.prototype.isReactComponent={},rt.prototype.setState=function(x,D){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,D,"setState")},rt.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function vt(){}vt.prototype=rt.prototype;function At(x,D,B){this.props=x,this.context=D,this.refs=W,this.updater=B||Z}var qt=At.prototype=new vt;qt.constructor=At,U(qt,rt.prototype),qt.isPureReactComponent=!0;var P=Array.isArray;function V(){}var M={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function I(x,D,B){var L=B.ref;return{$$typeof:n,type:x,key:D,ref:L!==void 0?L:null,props:B}}function $(x,D){return I(x.type,D,x.props)}function at(x){return typeof x=="object"&&x!==null&&x.$$typeof===n}function tt(x){var D={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(B){return D[B]})}var yt=/\/+/g;function ct(x,D){return typeof x=="object"&&x!==null&&x.key!=null?tt(""+x.key):D.toString(36)}function ft(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(V,V):(x.status="pending",x.then(function(D){x.status==="pending"&&(x.status="fulfilled",x.value=D)},function(D){x.status==="pending"&&(x.status="rejected",x.reason=D)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function A(x,D,B,L,F){var st=typeof x;(st==="undefined"||st==="boolean")&&(x=null);var pt=!1;if(x===null)pt=!0;else switch(st){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(x.$$typeof){case n:case i:pt=!0;break;case E:return pt=x._init,A(pt(x._payload),D,B,L,F)}}if(pt)return F=F(x),pt=L===""?"."+ct(x,0):L,P(F)?(B="",pt!=null&&(B=pt.replace(yt,"$&/")+"/"),A(F,D,B,"",function(Sa){return Sa})):F!=null&&(at(F)&&(F=$(F,B+(F.key==null||x&&x.key===F.key?"":(""+F.key).replace(yt,"$&/")+"/")+pt)),D.push(F)),1;pt=0;var kt=L===""?".":L+":";if(P(x))for(var Ht=0;Ht<x.length;Ht++)L=x[Ht],st=kt+ct(L,Ht),pt+=A(L,D,B,st,F);else if(Ht=Y(x),typeof Ht=="function")for(x=Ht.call(x),Ht=0;!(L=x.next()).done;)L=L.value,st=kt+ct(L,Ht++),pt+=A(L,D,B,st,F);else if(st==="object"){if(typeof x.then=="function")return A(ft(x),D,B,L,F);throw D=String(x),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return pt}function H(x,D,B){if(x==null)return x;var L=[],F=0;return A(x,L,"","",function(st){return D.call(B,st,F++)}),L}function G(x){if(x._status===-1){var D=x._result;D=D(),D.then(function(B){(x._status===0||x._status===-1)&&(x._status=1,x._result=B)},function(B){(x._status===0||x._status===-1)&&(x._status=2,x._result=B)}),x._status===-1&&(x._status=0,x._result=D)}if(x._status===1)return x._result.default;throw x._result}var ut=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},ht={map:H,forEach:function(x,D,B){H(x,function(){D.apply(this,arguments)},B)},count:function(x){var D=0;return H(x,function(){D++}),D},toArray:function(x){return H(x,function(D){return D})||[]},only:function(x){if(!at(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return ot.Activity=j,ot.Children=ht,ot.Component=rt,ot.Fragment=s,ot.Profiler=o,ot.PureComponent=At,ot.StrictMode=c,ot.Suspense=v,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,ot.__COMPILER_RUNTIME={__proto__:null,c:function(x){return M.H.useMemoCache(x)}},ot.cache=function(x){return function(){return x.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(x,D,B){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var L=U({},x.props),F=x.key;if(D!=null)for(st in D.key!==void 0&&(F=""+D.key),D)!K.call(D,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&D.ref===void 0||(L[st]=D[st]);var st=arguments.length-2;if(st===1)L.children=B;else if(1<st){for(var pt=Array(st),kt=0;kt<st;kt++)pt[kt]=arguments[kt+2];L.children=pt}return I(x.type,F,L)},ot.createContext=function(x){return x={$$typeof:h,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:d,_context:x},x},ot.createElement=function(x,D,B){var L,F={},st=null;if(D!=null)for(L in D.key!==void 0&&(st=""+D.key),D)K.call(D,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(F[L]=D[L]);var pt=arguments.length-2;if(pt===1)F.children=B;else if(1<pt){for(var kt=Array(pt),Ht=0;Ht<pt;Ht++)kt[Ht]=arguments[Ht+2];F.children=kt}if(x&&x.defaultProps)for(L in pt=x.defaultProps,pt)F[L]===void 0&&(F[L]=pt[L]);return I(x,st,F)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(x){return{$$typeof:m,render:x}},ot.isValidElement=at,ot.lazy=function(x){return{$$typeof:E,_payload:{_status:-1,_result:x},_init:G}},ot.memo=function(x,D){return{$$typeof:g,type:x,compare:D===void 0?null:D}},ot.startTransition=function(x){var D=M.T,B={};M.T=B;try{var L=x(),F=M.S;F!==null&&F(B,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(V,ut)}catch(st){ut(st)}finally{D!==null&&B.types!==null&&(D.types=B.types),M.T=D}},ot.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},ot.use=function(x){return M.H.use(x)},ot.useActionState=function(x,D,B){return M.H.useActionState(x,D,B)},ot.useCallback=function(x,D){return M.H.useCallback(x,D)},ot.useContext=function(x){return M.H.useContext(x)},ot.useDebugValue=function(){},ot.useDeferredValue=function(x,D){return M.H.useDeferredValue(x,D)},ot.useEffect=function(x,D){return M.H.useEffect(x,D)},ot.useEffectEvent=function(x){return M.H.useEffectEvent(x)},ot.useId=function(){return M.H.useId()},ot.useImperativeHandle=function(x,D,B){return M.H.useImperativeHandle(x,D,B)},ot.useInsertionEffect=function(x,D){return M.H.useInsertionEffect(x,D)},ot.useLayoutEffect=function(x,D){return M.H.useLayoutEffect(x,D)},ot.useMemo=function(x,D){return M.H.useMemo(x,D)},ot.useOptimistic=function(x,D){return M.H.useOptimistic(x,D)},ot.useReducer=function(x,D,B){return M.H.useReducer(x,D,B)},ot.useRef=function(x){return M.H.useRef(x)},ot.useState=function(x){return M.H.useState(x)},ot.useSyncExternalStore=function(x,D,B){return M.H.useSyncExternalStore(x,D,B)},ot.useTransition=function(){return M.H.useTransition()},ot.version="19.2.1",ot}var Wh;function Fi(){return Wh||(Wh=1,yc.exports=Wp()),yc.exports}var w=Fi();const Ip=Fp(w),Rm=Jp({__proto__:null,default:Ip},[w]);var pc={exports:{}},ou={},gc={exports:{}},bc={};/**
 * @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.
 */var Ih;function t0(){return Ih||(Ih=1,(function(n){function i(A,H){var G=A.length;A.push(H);t:for(;0<G;){var ut=G-1>>>1,ht=A[ut];if(0<o(ht,H))A[ut]=H,A[G]=ht,G=ut;else break t}}function s(A){return A.length===0?null:A[0]}function c(A){if(A.length===0)return null;var H=A[0],G=A.pop();if(G!==H){A[0]=G;t:for(var ut=0,ht=A.length,x=ht>>>1;ut<x;){var D=2*(ut+1)-1,B=A[D],L=D+1,F=A[L];if(0>o(B,G))L<ht&&0>o(F,B)?(A[ut]=F,A[L]=G,ut=L):(A[ut]=B,A[D]=G,ut=D);else if(L<ht&&0>o(F,G))A[ut]=F,A[L]=G,ut=L;else break t}}return H}function o(A,H){var G=A.sortIndex-H.sortIndex;return G!==0?G:A.id-H.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var v=[],g=[],E=1,j=null,z=3,Y=!1,Z=!1,U=!1,W=!1,rt=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,At=typeof setImmediate<"u"?setImmediate:null;function qt(A){for(var H=s(g);H!==null;){if(H.callback===null)c(g);else if(H.startTime<=A)c(g),H.sortIndex=H.expirationTime,i(v,H);else break;H=s(g)}}function P(A){if(U=!1,qt(A),!Z)if(s(v)!==null)Z=!0,V||(V=!0,tt());else{var H=s(g);H!==null&&ft(P,H.startTime-A)}}var V=!1,M=-1,K=5,I=-1;function $(){return W?!0:!(n.unstable_now()-I<K)}function at(){if(W=!1,V){var A=n.unstable_now();I=A;var H=!0;try{t:{Z=!1,U&&(U=!1,vt(M),M=-1),Y=!0;var G=z;try{e:{for(qt(A),j=s(v);j!==null&&!(j.expirationTime>A&&$());){var ut=j.callback;if(typeof ut=="function"){j.callback=null,z=j.priorityLevel;var ht=ut(j.expirationTime<=A);if(A=n.unstable_now(),typeof ht=="function"){j.callback=ht,qt(A),H=!0;break e}j===s(v)&&c(v),qt(A)}else c(v);j=s(v)}if(j!==null)H=!0;else{var x=s(g);x!==null&&ft(P,x.startTime-A),H=!1}}break t}finally{j=null,z=G,Y=!1}H=void 0}}finally{H?tt():V=!1}}}var tt;if(typeof At=="function")tt=function(){At(at)};else if(typeof MessageChannel<"u"){var yt=new MessageChannel,ct=yt.port2;yt.port1.onmessage=at,tt=function(){ct.postMessage(null)}}else tt=function(){rt(at,0)};function ft(A,H){M=rt(function(){A(n.unstable_now())},H)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(A){A.callback=null},n.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<A?Math.floor(1e3/A):5},n.unstable_getCurrentPriorityLevel=function(){return z},n.unstable_next=function(A){switch(z){case 1:case 2:case 3:var H=3;break;default:H=z}var G=z;z=H;try{return A()}finally{z=G}},n.unstable_requestPaint=function(){W=!0},n.unstable_runWithPriority=function(A,H){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var G=z;z=A;try{return H()}finally{z=G}},n.unstable_scheduleCallback=function(A,H,G){var ut=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?ut+G:ut):G=ut,A){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5e3}return ht=G+ht,A={id:E++,callback:H,priorityLevel:A,startTime:G,expirationTime:ht,sortIndex:-1},G>ut?(A.sortIndex=G,i(g,A),s(v)===null&&A===s(g)&&(U?(vt(M),M=-1):U=!0,ft(P,G-ut))):(A.sortIndex=ht,i(v,A),Z||Y||(Z=!0,V||(V=!0,tt()))),A},n.unstable_shouldYield=$,n.unstable_wrapCallback=function(A){var H=z;return function(){var G=z;z=H;try{return A.apply(this,arguments)}finally{z=G}}}})(bc)),bc}var tm;function e0(){return tm||(tm=1,gc.exports=t0()),gc.exports}var xc={exports:{}},ie={};/**
 * @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 em;function a0(){if(em)return ie;em=1;var n=Fi();function i(v){var g="https://react.dev/errors/"+v;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)g+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+v+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var c={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(v,g,E){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:j==null?null:""+j,children:v,containerInfo:g,implementation:E}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ie.createPortal=function(v,g){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return d(v,g,null,E)},ie.flushSync=function(v){var g=h.T,E=c.p;try{if(h.T=null,c.p=2,v)return v()}finally{h.T=g,c.p=E,c.d.f()}},ie.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,c.d.C(v,g))},ie.prefetchDNS=function(v){typeof v=="string"&&c.d.D(v)},ie.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var E=g.as,j=m(E,g.crossOrigin),z=typeof g.integrity=="string"?g.integrity:void 0,Y=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;E==="style"?c.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:j,integrity:z,fetchPriority:Y}):E==="script"&&c.d.X(v,{crossOrigin:j,integrity:z,fetchPriority:Y,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ie.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var E=m(g.as,g.crossOrigin);c.d.M(v,{crossOrigin:E,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&c.d.M(v)},ie.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var E=g.as,j=m(E,g.crossOrigin);c.d.L(v,E,{crossOrigin:j,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ie.preloadModule=function(v,g){if(typeof v=="string")if(g){var E=m(g.as,g.crossOrigin);c.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:E,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else c.d.m(v)},ie.requestFormReset=function(v){c.d.r(v)},ie.unstable_batchedUpdates=function(v,g){return v(g)},ie.useFormState=function(v,g,E){return h.H.useFormState(v,g,E)},ie.useFormStatus=function(){return h.H.useHostTransitionStatus()},ie.version="19.2.1",ie}var am;function l0(){if(am)return xc.exports;am=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),xc.exports=a0(),xc.exports}/**
 * @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 lm;function n0(){if(lm)return ou;lm=1;var n=e0(),i=Fi(),s=l0();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}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 o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function h(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 m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(d(t)!==t)throw Error(c(188))}function g(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var a=t,l=e;;){var u=a.return;if(u===null)break;var r=u.alternate;if(r===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===a)return v(u),t;if(r===l)return v(u),e;r=r.sibling}throw Error(c(188))}if(a.return!==l.return)a=u,l=r;else{for(var f=!1,y=u.child;y;){if(y===a){f=!0,a=u,l=r;break}if(y===l){f=!0,l=u,a=r;break}y=y.sibling}if(!f){for(y=r.child;y;){if(y===a){f=!0,a=r,l=u;break}if(y===l){f=!0,l=r,a=u;break}y=y.sibling}if(!f)throw Error(c(189))}}if(a.alternate!==l)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?t:e}function E(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=E(t),e!==null)return e;t=t.sibling}return null}var j=Object.assign,z=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),rt=Symbol.for("react.profiler"),vt=Symbol.for("react.consumer"),At=Symbol.for("react.context"),qt=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),at=Symbol.iterator;function tt(t){return t===null||typeof t!="object"?null:(t=at&&t[at]||t["@@iterator"],typeof t=="function"?t:null)}var yt=Symbol.for("react.client.reference");function ct(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===yt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case U:return"Fragment";case rt:return"Profiler";case W:return"StrictMode";case P:return"Suspense";case V:return"SuspenseList";case I:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Z:return"Portal";case At:return t.displayName||"Context";case vt:return(t._context.displayName||"Context")+".Consumer";case qt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case M:return e=t.displayName||null,e!==null?e:ct(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return ct(t(e))}catch{}}return null}var ft=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},ut=[],ht=-1;function x(t){return{current:t}}function D(t){0>ht||(t.current=ut[ht],ut[ht]=null,ht--)}function B(t,e){ht++,ut[ht]=t.current,t.current=e}var L=x(null),F=x(null),st=x(null),pt=x(null);function kt(t,e){switch(B(st,e),B(F,t),B(L,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?gh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=gh(e),t=bh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}D(L),B(L,t)}function Ht(){D(L),D(F),D(st)}function Sa(t){t.memoizedState!==null&&B(pt,t);var e=L.current,a=bh(e,t.type);e!==a&&(B(F,t),B(L,a))}function $a(t){F.current===t&&(D(L),D(F)),pt.current===t&&(D(pt),uu._currentValue=G)}var jl,Wa;function Ve(t){if(jl===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);jl=e&&e[1]||"",Wa=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+jl+t+Wa}var Oa=!1;function fe(t,e){if(!t||Oa)return"";Oa=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(N){var C=N}Reflect.construct(t,[],Q)}else{try{Q.call()}catch(N){C=N}t.call(Q.prototype)}}else{try{throw Error()}catch(N){C=N}(Q=t())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(N){if(N&&C&&typeof N.stack=="string")return[N.stack,C.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),f=r[0],y=r[1];if(f&&y){var b=f.split(`
`),T=y.split(`
`);for(u=l=0;l<b.length&&!b[l].includes("DetermineComponentFrameRoot");)l++;for(;u<T.length&&!T[u].includes("DetermineComponentFrameRoot");)u++;if(l===b.length||u===T.length)for(l=b.length-1,u=T.length-1;1<=l&&0<=u&&b[l]!==T[u];)u--;for(;1<=l&&0<=u;l--,u--)if(b[l]!==T[u]){if(l!==1||u!==1)do if(l--,u--,0>u||b[l]!==T[u]){var R=`
`+b[l].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=l&&0<=u);break}}}finally{Oa=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Ve(a):""}function gu(t,e){switch(t.tag){case 26:case 27:case 5:return Ve(t.type);case 16:return Ve("Lazy");case 13:return t.child!==e&&e!==null?Ve("Suspense Fallback"):Ve("Suspense");case 19:return Ve("SuspenseList");case 0:case 15:return fe(t.type,!1);case 11:return fe(t.type.render,!1);case 1:return fe(t.type,!0);case 31:return Ve("Activity");default:return""}}function dn(t){try{var e="",a=null;do e+=gu(t,a),a=t,t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var hn=Object.prototype.hasOwnProperty,mn=n.unstable_scheduleCallback,vn=n.unstable_cancelCallback,bu=n.unstable_shouldYield,X=n.unstable_requestPaint,Ct=n.unstable_now,be=n.unstable_getCurrentPriorityLevel,xe=n.unstable_ImmediatePriority,ke=n.unstable_UserBlockingPriority,se=n.unstable_NormalPriority,yn=n.unstable_LowPriority,xu=n.unstable_IdlePriority,zv=n.log,Mv=n.unstable_setDisableYieldValue,pn=null,Se=null;function ja(t){if(typeof zv=="function"&&Mv(t),Se&&typeof Se.setStrictMode=="function")try{Se.setStrictMode(pn,t)}catch{}}var Oe=Math.clz32?Math.clz32:Uv,Dv=Math.log,Rv=Math.LN2;function Uv(t){return t>>>=0,t===0?32:31-(Dv(t)/Rv|0)|0}var Su=256,Ou=262144,ju=4194304;function Ia(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:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;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 _u(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var u=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var y=l&134217727;return y!==0?(l=y&~r,l!==0?u=Ia(l):(f&=y,f!==0?u=Ia(f):a||(a=y&~t,a!==0&&(u=Ia(a))))):(y=l&~r,y!==0?u=Ia(y):f!==0?u=Ia(f):a||(a=l&~t,a!==0&&(u=Ia(a)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,a=e&-e,r>=a||r===32&&(a&4194048)!==0)?e:u}function gn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function qv(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 $c(){var t=ju;return ju<<=1,(ju&62914560)===0&&(ju=4194304),t}function lr(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function bn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Qv(t,e,a,l,u,r){var f=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var y=t.entanglements,b=t.expirationTimes,T=t.hiddenUpdates;for(a=f&~a;0<a;){var R=31-Oe(a),Q=1<<R;y[R]=0,b[R]=-1;var C=T[R];if(C!==null)for(T[R]=null,R=0;R<C.length;R++){var N=C[R];N!==null&&(N.lane&=-536870913)}a&=~Q}l!==0&&Wc(t,l,0),r!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function Wc(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Oe(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&261930}function Ic(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-Oe(a),u=1<<l;u&e|t[l]&e&&(t[l]|=e),a&=~u}}function to(t,e){var a=e&-e;return a=(a&42)!==0?1:nr(a),(a&(t.suspendedLanes|e))!==0?0:a}function nr(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 ur(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function eo(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:Gh(t.type))}function ao(t,e){var a=H.p;try{return H.p=t,e()}finally{H.p=a}}var _a=Math.random().toString(36).slice(2),ee="__reactFiber$"+_a,de="__reactProps$"+_a,_l="__reactContainer$"+_a,ir="__reactEvents$"+_a,wv="__reactListeners$"+_a,Hv="__reactHandles$"+_a,lo="__reactResources$"+_a,xn="__reactMarker$"+_a;function rr(t){delete t[ee],delete t[de],delete t[ir],delete t[wv],delete t[Hv]}function El(t){var e=t[ee];if(e)return e;for(var a=t.parentNode;a;){if(e=a[_l]||a[ee]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=Th(t);t!==null;){if(a=t[ee])return a;t=Th(t)}return e}t=a,a=t.parentNode}return null}function Tl(t){if(t=t[ee]||t[_l]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Sn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function Al(t){var e=t[lo];return e||(e=t[lo]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function It(t){t[xn]=!0}var no=new Set,uo={};function tl(t,e){Cl(t,e),Cl(t+"Capture",e)}function Cl(t,e){for(uo[t]=e,t=0;t<e.length;t++)no.add(e[t])}var Bv=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]*$"),io={},ro={};function Lv(t){return hn.call(ro,t)?!0:hn.call(io,t)?!1:Bv.test(t)?ro[t]=!0:(io[t]=!0,!1)}function Eu(t,e,a){if(Lv(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function Tu(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function ea(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}function Me(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function so(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Yv(t,e,a){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,r=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(f){a=""+f,r.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function sr(t){if(!t._valueTracker){var e=so(t)?"checked":"value";t._valueTracker=Yv(t,e,""+t[e])}}function co(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=so(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function Au(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 Gv=/[\n"\\]/g;function De(t){return t.replace(Gv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function cr(t,e,a,l,u,r,f,y){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Me(e)):t.value!==""+Me(e)&&(t.value=""+Me(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?or(t,f,Me(e)):a!=null?or(t,f,Me(a)):l!=null&&t.removeAttribute("value"),u==null&&r!=null&&(t.defaultChecked=!!r),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Me(y):t.removeAttribute("name")}function oo(t,e,a,l,u,r,f,y){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){sr(t);return}a=a!=null?""+Me(a):"",e=e!=null?""+Me(e):a,y||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=y?t.checked:!!l,t.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),sr(t)}function or(t,e,a){e==="number"&&Au(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Nl(t,e,a,l){if(t=t.options,e){e={};for(var u=0;u<a.length;u++)e["$"+a[u]]=!0;for(a=0;a<t.length;a++)u=e.hasOwnProperty("$"+t[a].value),t[a].selected!==u&&(t[a].selected=u),u&&l&&(t[a].defaultSelected=!0)}else{for(a=""+Me(a),e=null,u=0;u<t.length;u++){if(t[u].value===a){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function fo(t,e,a){if(e!=null&&(e=""+Me(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Me(a):""}function ho(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(c(92));if(ft(l)){if(1<l.length)throw Error(c(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=Me(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l),sr(t)}function zl(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var Xv=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 mo(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||Xv.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function vo(t,e,a){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var u in e)l=e[u],e.hasOwnProperty(u)&&a[u]!==l&&mo(t,u,l)}else for(var r in e)e.hasOwnProperty(r)&&mo(t,r,e[r])}function fr(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 Kv=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"]]),Zv=/^[\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 Cu(t){return Zv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function aa(){}var dr=null;function hr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ml=null,Dl=null;function yo(t){var e=Tl(t);if(e&&(t=e.stateNode)){var a=t[de]||null;t:switch(t=e.stateNode,e.type){case"input":if(cr(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+De(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var u=l[de]||null;if(!u)throw Error(c(90));cr(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&co(l)}break t;case"textarea":fo(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Nl(t,!!a.multiple,e,!1)}}}var mr=!1;function po(t,e,a){if(mr)return t(e,a);mr=!0;try{var l=t(e);return l}finally{if(mr=!1,(Ml!==null||Dl!==null)&&(vi(),Ml&&(e=Ml,t=Dl,Dl=Ml=null,yo(e),t)))for(e=0;e<t.length;e++)yo(t[e])}}function On(t,e){var a=t.stateNode;if(a===null)return null;var l=a[de]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(c(231,e,typeof a));return a}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vr=!1;if(la)try{var jn={};Object.defineProperty(jn,"passive",{get:function(){vr=!0}}),window.addEventListener("test",jn,jn),window.removeEventListener("test",jn,jn)}catch{vr=!1}var Ea=null,yr=null,Nu=null;function go(){if(Nu)return Nu;var t,e=yr,a=e.length,l,u="value"in Ea?Ea.value:Ea.textContent,r=u.length;for(t=0;t<a&&e[t]===u[t];t++);var f=a-t;for(l=1;l<=f&&e[a-l]===u[r-l];l++);return Nu=u.slice(t,1<l?1-l:void 0)}function zu(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 Mu(){return!0}function bo(){return!1}function he(t){function e(a,l,u,r,f){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(a=t[y],this[y]=a?a(r):r[y]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Mu:bo,this.isPropagationStopped=bo,this}return j(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Mu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Mu)},persist:function(){},isPersistent:Mu}),e}var el={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Du=he(el),_n=j({},el,{view:0,detail:0}),Vv=he(_n),pr,gr,En,Ru=j({},_n,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xr,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!==En&&(En&&t.type==="mousemove"?(pr=t.screenX-En.screenX,gr=t.screenY-En.screenY):gr=pr=0,En=t),pr)},movementY:function(t){return"movementY"in t?t.movementY:gr}}),xo=he(Ru),kv=j({},Ru,{dataTransfer:0}),Jv=he(kv),Fv=j({},_n,{relatedTarget:0}),br=he(Fv),Pv=j({},el,{animationName:0,elapsedTime:0,pseudoElement:0}),$v=he(Pv),Wv=j({},el,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Iv=he(Wv),ty=j({},el,{data:0}),So=he(ty),ey={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ay={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"},ly={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ny(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ly[t])?!!e[t]:!1}function xr(){return ny}var uy=j({},_n,{key:function(t){if(t.key){var e=ey[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=zu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ay[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xr,charCode:function(t){return t.type==="keypress"?zu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?zu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),iy=he(uy),ry=j({},Ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Oo=he(ry),sy=j({},_n,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xr}),cy=he(sy),oy=j({},el,{propertyName:0,elapsedTime:0,pseudoElement:0}),fy=he(oy),dy=j({},Ru,{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}),hy=he(dy),my=j({},el,{newState:0,oldState:0}),vy=he(my),yy=[9,13,27,32],Sr=la&&"CompositionEvent"in window,Tn=null;la&&"documentMode"in document&&(Tn=document.documentMode);var py=la&&"TextEvent"in window&&!Tn,jo=la&&(!Sr||Tn&&8<Tn&&11>=Tn),_o=" ",Eo=!1;function To(t,e){switch(t){case"keyup":return yy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ao(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Rl=!1;function gy(t,e){switch(t){case"compositionend":return Ao(e);case"keypress":return e.which!==32?null:(Eo=!0,_o);case"textInput":return t=e.data,t===_o&&Eo?null:t;default:return null}}function by(t,e){if(Rl)return t==="compositionend"||!Sr&&To(t,e)?(t=go(),Nu=yr=Ea=null,Rl=!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 jo&&e.locale!=="ko"?null:e.data;default:return null}}var xy={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 Co(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!xy[t.type]:e==="textarea"}function No(t,e,a,l){Ml?Dl?Dl.push(l):Dl=[l]:Ml=l,e=Oi(e,"onChange"),0<e.length&&(a=new Du("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var An=null,Cn=null;function Sy(t){dh(t,0)}function Uu(t){var e=Sn(t);if(co(e))return t}function zo(t,e){if(t==="change")return e}var Mo=!1;if(la){var Or;if(la){var jr="oninput"in document;if(!jr){var Do=document.createElement("div");Do.setAttribute("oninput","return;"),jr=typeof Do.oninput=="function"}Or=jr}else Or=!1;Mo=Or&&(!document.documentMode||9<document.documentMode)}function Ro(){An&&(An.detachEvent("onpropertychange",Uo),Cn=An=null)}function Uo(t){if(t.propertyName==="value"&&Uu(Cn)){var e=[];No(e,Cn,t,hr(t)),po(Sy,e)}}function Oy(t,e,a){t==="focusin"?(Ro(),An=e,Cn=a,An.attachEvent("onpropertychange",Uo)):t==="focusout"&&Ro()}function jy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Uu(Cn)}function _y(t,e){if(t==="click")return Uu(e)}function Ey(t,e){if(t==="input"||t==="change")return Uu(e)}function Ty(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var je=typeof Object.is=="function"?Object.is:Ty;function Nn(t,e){if(je(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!hn.call(e,u)||!je(t[u],e[u]))return!1}return!0}function qo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Qo(t,e){var a=qo(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=qo(a)}}function wo(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?wo(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ho(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Au(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Au(t.document)}return e}function _r(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 Ay=la&&"documentMode"in document&&11>=document.documentMode,Ul=null,Er=null,zn=null,Tr=!1;function Bo(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Tr||Ul==null||Ul!==Au(l)||(l=Ul,"selectionStart"in l&&_r(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),zn&&Nn(zn,l)||(zn=l,l=Oi(Er,"onSelect"),0<l.length&&(e=new Du("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=Ul)))}function al(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var ql={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionrun:al("Transition","TransitionRun"),transitionstart:al("Transition","TransitionStart"),transitioncancel:al("Transition","TransitionCancel"),transitionend:al("Transition","TransitionEnd")},Ar={},Lo={};la&&(Lo=document.createElement("div").style,"AnimationEvent"in window||(delete ql.animationend.animation,delete ql.animationiteration.animation,delete ql.animationstart.animation),"TransitionEvent"in window||delete ql.transitionend.transition);function ll(t){if(Ar[t])return Ar[t];if(!ql[t])return t;var e=ql[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Lo)return Ar[t]=e[a];return t}var Yo=ll("animationend"),Go=ll("animationiteration"),Xo=ll("animationstart"),Cy=ll("transitionrun"),Ny=ll("transitionstart"),zy=ll("transitioncancel"),Ko=ll("transitionend"),Zo=new Map,Cr="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(" ");Cr.push("scrollEnd");function Ye(t,e){Zo.set(t,e),tl(e,[t])}var qu=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)},Re=[],Ql=0,Nr=0;function Qu(){for(var t=Ql,e=Nr=Ql=0;e<t;){var a=Re[e];Re[e++]=null;var l=Re[e];Re[e++]=null;var u=Re[e];Re[e++]=null;var r=Re[e];if(Re[e++]=null,l!==null&&u!==null){var f=l.pending;f===null?u.next=u:(u.next=f.next,f.next=u),l.pending=u}r!==0&&Vo(a,u,r)}}function wu(t,e,a,l){Re[Ql++]=t,Re[Ql++]=e,Re[Ql++]=a,Re[Ql++]=l,Nr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function zr(t,e,a,l){return wu(t,e,a,l),Hu(t)}function nl(t,e){return wu(t,null,null,e),Hu(t)}function Vo(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var u=!1,r=t.return;r!==null;)r.childLanes|=a,l=r.alternate,l!==null&&(l.childLanes|=a),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(u=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,u&&e!==null&&(u=31-Oe(a),t=r.hiddenUpdates,l=t[u],l===null?t[u]=[e]:l.push(e),e.lane=a|536870912),r):null}function Hu(t){if(50<Wn)throw Wn=0,Bs=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var wl={};function My(t,e,a,l){this.tag=t,this.key=a,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _e(t,e,a,l){return new My(t,e,a,l)}function Mr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function na(t,e){var a=t.alternate;return a===null?(a=_e(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function ko(t,e){t.flags&=65011714;var a=t.alternate;return a===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=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Bu(t,e,a,l,u,r){var f=0;if(l=t,typeof t=="function")Mr(t)&&(f=1);else if(typeof t=="string")f=Qp(t,a,L.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case I:return t=_e(31,a,e,u),t.elementType=I,t.lanes=r,t;case U:return ul(a.children,u,r,e);case W:f=8,u|=24;break;case rt:return t=_e(12,a,e,u|2),t.elementType=rt,t.lanes=r,t;case P:return t=_e(13,a,e,u),t.elementType=P,t.lanes=r,t;case V:return t=_e(19,a,e,u),t.elementType=V,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case At:f=10;break t;case vt:f=9;break t;case qt:f=11;break t;case M:f=14;break t;case K:f=16,l=null;break t}f=29,a=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=_e(f,a,e,u),e.elementType=t,e.type=l,e.lanes=r,e}function ul(t,e,a,l){return t=_e(7,t,l,e),t.lanes=a,t}function Dr(t,e,a){return t=_e(6,t,null,e),t.lanes=a,t}function Jo(t){var e=_e(18,null,null,0);return e.stateNode=t,e}function Rr(t,e,a){return e=_e(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Fo=new WeakMap;function Ue(t,e){if(typeof t=="object"&&t!==null){var a=Fo.get(t);return a!==void 0?a:(e={value:t,source:e,stack:dn(e)},Fo.set(t,e),e)}return{value:t,source:e,stack:dn(e)}}var Hl=[],Bl=0,Lu=null,Mn=0,qe=[],Qe=0,Ta=null,Je=1,Fe="";function ua(t,e){Hl[Bl++]=Mn,Hl[Bl++]=Lu,Lu=t,Mn=e}function Po(t,e,a){qe[Qe++]=Je,qe[Qe++]=Fe,qe[Qe++]=Ta,Ta=t;var l=Je;t=Fe;var u=32-Oe(l)-1;l&=~(1<<u),a+=1;var r=32-Oe(e)+u;if(30<r){var f=u-u%5;r=(l&(1<<f)-1).toString(32),l>>=f,u-=f,Je=1<<32-Oe(e)+u|a<<u|l,Fe=r+t}else Je=1<<r|a<<u|l,Fe=t}function Ur(t){t.return!==null&&(ua(t,1),Po(t,1,0))}function qr(t){for(;t===Lu;)Lu=Hl[--Bl],Hl[Bl]=null,Mn=Hl[--Bl],Hl[Bl]=null;for(;t===Ta;)Ta=qe[--Qe],qe[Qe]=null,Fe=qe[--Qe],qe[Qe]=null,Je=qe[--Qe],qe[Qe]=null}function $o(t,e){qe[Qe++]=Je,qe[Qe++]=Fe,qe[Qe++]=Ta,Je=e.id,Fe=e.overflow,Ta=t}var ae=null,Qt=null,Ot=!1,Aa=null,we=!1,Qr=Error(c(519));function Ca(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Dn(Ue(e,t)),Qr}function Wo(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[ee]=t,e[de]=l,a){case"dialog":bt("cancel",e),bt("close",e);break;case"iframe":case"object":case"embed":bt("load",e);break;case"video":case"audio":for(a=0;a<tu.length;a++)bt(tu[a],e);break;case"source":bt("error",e);break;case"img":case"image":case"link":bt("error",e),bt("load",e);break;case"details":bt("toggle",e);break;case"input":bt("invalid",e),oo(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":bt("invalid",e);break;case"textarea":bt("invalid",e),ho(e,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||yh(e.textContent,a)?(l.popover!=null&&(bt("beforetoggle",e),bt("toggle",e)),l.onScroll!=null&&bt("scroll",e),l.onScrollEnd!=null&&bt("scrollend",e),l.onClick!=null&&(e.onclick=aa),e=!0):e=!1,e||Ca(t,!0)}function Io(t){for(ae=t.return;ae;)switch(ae.tag){case 5:case 31:case 13:we=!1;return;case 27:case 3:we=!0;return;default:ae=ae.return}}function Ll(t){if(t!==ae)return!1;if(!Ot)return Io(t),Ot=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||tc(t.type,t.memoizedProps)),a=!a),a&&Qt&&Ca(t),Io(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Qt=Eh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Qt=Eh(t)}else e===27?(e=Qt,Ga(t.type)?(t=uc,uc=null,Qt=t):Qt=e):Qt=ae?Be(t.stateNode.nextSibling):null;return!0}function il(){Qt=ae=null,Ot=!1}function wr(){var t=Aa;return t!==null&&(pe===null?pe=t:pe.push.apply(pe,t),Aa=null),t}function Dn(t){Aa===null?Aa=[t]:Aa.push(t)}var Hr=x(null),rl=null,ia=null;function Na(t,e,a){B(Hr,e._currentValue),e._currentValue=a}function ra(t){t._currentValue=Hr.current,D(Hr)}function Br(t,e,a){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===a)break;t=t.return}}function Lr(t,e,a,l){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var r=u.dependencies;if(r!==null){var f=u.child;r=r.firstContext;t:for(;r!==null;){var y=r;r=u;for(var b=0;b<e.length;b++)if(y.context===e[b]){r.lanes|=a,y=r.alternate,y!==null&&(y.lanes|=a),Br(r.return,a,t),l||(f=null);break t}r=y.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(c(341));f.lanes|=a,r=f.alternate,r!==null&&(r.lanes|=a),Br(f,a,t),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Yl(t,e,a,l){t=null;for(var u=e,r=!1;u!==null;){if(!r){if((u.flags&524288)!==0)r=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var y=u.type;je(u.pendingProps.value,f.value)||(t!==null?t.push(y):t=[y])}}else if(u===pt.current){if(f=u.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(uu):t=[uu])}u=u.return}t!==null&&Lr(e,t,a,l),e.flags|=262144}function Yu(t){for(t=t.firstContext;t!==null;){if(!je(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function sl(t){rl=t,ia=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function le(t){return tf(rl,t)}function Gu(t,e){return rl===null&&sl(t),tf(t,e)}function tf(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},ia===null){if(t===null)throw Error(c(308));ia=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ia=ia.next=e;return a}var Dy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},Ry=n.unstable_scheduleCallback,Uy=n.unstable_NormalPriority,Jt={$$typeof:At,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yr(){return{controller:new Dy,data:new Map,refCount:0}}function Rn(t){t.refCount--,t.refCount===0&&Ry(Uy,function(){t.controller.abort()})}var Un=null,Gr=0,Gl=0,Xl=null;function qy(t,e){if(Un===null){var a=Un=[];Gr=0,Gl=Zs(),Xl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Gr++,e.then(ef,ef),e}function ef(){if(--Gr===0&&Un!==null){Xl!==null&&(Xl.status="fulfilled");var t=Un;Un=null,Gl=0,Xl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Qy(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var u=0;u<a.length;u++)(0,a[u])(e)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var af=A.S;A.S=function(t,e){Ld=Ct(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&qy(t,e),af!==null&&af(t,e)};var cl=x(null);function Xr(){var t=cl.current;return t!==null?t:Ut.pooledCache}function Xu(t,e){e===null?B(cl,cl.current):B(cl,e.pool)}function lf(){var t=Xr();return t===null?null:{parent:Jt._currentValue,pool:t}}var Kl=Error(c(460)),Kr=Error(c(474)),Ku=Error(c(542)),Zu={then:function(){}};function nf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function uf(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(aa,aa),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,sf(t),t;default:if(typeof e.status=="string")e.then(aa,aa);else{if(t=Ut,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=l}},function(l){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,sf(t),t}throw fl=e,Kl}}function ol(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(fl=a,Kl):a}}var fl=null;function rf(){if(fl===null)throw Error(c(459));var t=fl;return fl=null,t}function sf(t){if(t===Kl||t===Ku)throw Error(c(483))}var Zl=null,qn=0;function Vu(t){var e=qn;return qn+=1,Zl===null&&(Zl=[]),uf(Zl,t,e)}function Qn(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ku(t,e){throw e.$$typeof===z?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function cf(t){function e(O,S){if(t){var _=O.deletions;_===null?(O.deletions=[S],O.flags|=16):_.push(S)}}function a(O,S){if(!t)return null;for(;S!==null;)e(O,S),S=S.sibling;return null}function l(O){for(var S=new Map;O!==null;)O.key!==null?S.set(O.key,O):S.set(O.index,O),O=O.sibling;return S}function u(O,S){return O=na(O,S),O.index=0,O.sibling=null,O}function r(O,S,_){return O.index=_,t?(_=O.alternate,_!==null?(_=_.index,_<S?(O.flags|=67108866,S):_):(O.flags|=67108866,S)):(O.flags|=1048576,S)}function f(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function y(O,S,_,q){return S===null||S.tag!==6?(S=Dr(_,O.mode,q),S.return=O,S):(S=u(S,_),S.return=O,S)}function b(O,S,_,q){var lt=_.type;return lt===U?R(O,S,_.props.children,q,_.key):S!==null&&(S.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===K&&ol(lt)===S.type)?(S=u(S,_.props),Qn(S,_),S.return=O,S):(S=Bu(_.type,_.key,_.props,null,O.mode,q),Qn(S,_),S.return=O,S)}function T(O,S,_,q){return S===null||S.tag!==4||S.stateNode.containerInfo!==_.containerInfo||S.stateNode.implementation!==_.implementation?(S=Rr(_,O.mode,q),S.return=O,S):(S=u(S,_.children||[]),S.return=O,S)}function R(O,S,_,q,lt){return S===null||S.tag!==7?(S=ul(_,O.mode,q,lt),S.return=O,S):(S=u(S,_),S.return=O,S)}function Q(O,S,_){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=Dr(""+S,O.mode,_),S.return=O,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Y:return _=Bu(S.type,S.key,S.props,null,O.mode,_),Qn(_,S),_.return=O,_;case Z:return S=Rr(S,O.mode,_),S.return=O,S;case K:return S=ol(S),Q(O,S,_)}if(ft(S)||tt(S))return S=ul(S,O.mode,_,null),S.return=O,S;if(typeof S.then=="function")return Q(O,Vu(S),_);if(S.$$typeof===At)return Q(O,Gu(O,S),_);ku(O,S)}return null}function C(O,S,_,q){var lt=S!==null?S.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return lt!==null?null:y(O,S,""+_,q);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Y:return _.key===lt?b(O,S,_,q):null;case Z:return _.key===lt?T(O,S,_,q):null;case K:return _=ol(_),C(O,S,_,q)}if(ft(_)||tt(_))return lt!==null?null:R(O,S,_,q,null);if(typeof _.then=="function")return C(O,S,Vu(_),q);if(_.$$typeof===At)return C(O,S,Gu(O,_),q);ku(O,_)}return null}function N(O,S,_,q,lt){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return O=O.get(_)||null,y(S,O,""+q,lt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case Y:return O=O.get(q.key===null?_:q.key)||null,b(S,O,q,lt);case Z:return O=O.get(q.key===null?_:q.key)||null,T(S,O,q,lt);case K:return q=ol(q),N(O,S,_,q,lt)}if(ft(q)||tt(q))return O=O.get(_)||null,R(S,O,q,lt,null);if(typeof q.then=="function")return N(O,S,_,Vu(q),lt);if(q.$$typeof===At)return N(O,S,_,Gu(S,q),lt);ku(S,q)}return null}function J(O,S,_,q){for(var lt=null,jt=null,et=S,mt=S=0,St=null;et!==null&&mt<_.length;mt++){et.index>mt?(St=et,et=null):St=et.sibling;var _t=C(O,et,_[mt],q);if(_t===null){et===null&&(et=St);break}t&&et&&_t.alternate===null&&e(O,et),S=r(_t,S,mt),jt===null?lt=_t:jt.sibling=_t,jt=_t,et=St}if(mt===_.length)return a(O,et),Ot&&ua(O,mt),lt;if(et===null){for(;mt<_.length;mt++)et=Q(O,_[mt],q),et!==null&&(S=r(et,S,mt),jt===null?lt=et:jt.sibling=et,jt=et);return Ot&&ua(O,mt),lt}for(et=l(et);mt<_.length;mt++)St=N(et,O,mt,_[mt],q),St!==null&&(t&&St.alternate!==null&&et.delete(St.key===null?mt:St.key),S=r(St,S,mt),jt===null?lt=St:jt.sibling=St,jt=St);return t&&et.forEach(function(ka){return e(O,ka)}),Ot&&ua(O,mt),lt}function it(O,S,_,q){if(_==null)throw Error(c(151));for(var lt=null,jt=null,et=S,mt=S=0,St=null,_t=_.next();et!==null&&!_t.done;mt++,_t=_.next()){et.index>mt?(St=et,et=null):St=et.sibling;var ka=C(O,et,_t.value,q);if(ka===null){et===null&&(et=St);break}t&&et&&ka.alternate===null&&e(O,et),S=r(ka,S,mt),jt===null?lt=ka:jt.sibling=ka,jt=ka,et=St}if(_t.done)return a(O,et),Ot&&ua(O,mt),lt;if(et===null){for(;!_t.done;mt++,_t=_.next())_t=Q(O,_t.value,q),_t!==null&&(S=r(_t,S,mt),jt===null?lt=_t:jt.sibling=_t,jt=_t);return Ot&&ua(O,mt),lt}for(et=l(et);!_t.done;mt++,_t=_.next())_t=N(et,O,mt,_t.value,q),_t!==null&&(t&&_t.alternate!==null&&et.delete(_t.key===null?mt:_t.key),S=r(_t,S,mt),jt===null?lt=_t:jt.sibling=_t,jt=_t);return t&&et.forEach(function(kp){return e(O,kp)}),Ot&&ua(O,mt),lt}function Rt(O,S,_,q){if(typeof _=="object"&&_!==null&&_.type===U&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Y:t:{for(var lt=_.key;S!==null;){if(S.key===lt){if(lt=_.type,lt===U){if(S.tag===7){a(O,S.sibling),q=u(S,_.props.children),q.return=O,O=q;break t}}else if(S.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===K&&ol(lt)===S.type){a(O,S.sibling),q=u(S,_.props),Qn(q,_),q.return=O,O=q;break t}a(O,S);break}else e(O,S);S=S.sibling}_.type===U?(q=ul(_.props.children,O.mode,q,_.key),q.return=O,O=q):(q=Bu(_.type,_.key,_.props,null,O.mode,q),Qn(q,_),q.return=O,O=q)}return f(O);case Z:t:{for(lt=_.key;S!==null;){if(S.key===lt)if(S.tag===4&&S.stateNode.containerInfo===_.containerInfo&&S.stateNode.implementation===_.implementation){a(O,S.sibling),q=u(S,_.children||[]),q.return=O,O=q;break t}else{a(O,S);break}else e(O,S);S=S.sibling}q=Rr(_,O.mode,q),q.return=O,O=q}return f(O);case K:return _=ol(_),Rt(O,S,_,q)}if(ft(_))return J(O,S,_,q);if(tt(_)){if(lt=tt(_),typeof lt!="function")throw Error(c(150));return _=lt.call(_),it(O,S,_,q)}if(typeof _.then=="function")return Rt(O,S,Vu(_),q);if(_.$$typeof===At)return Rt(O,S,Gu(O,_),q);ku(O,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,S!==null&&S.tag===6?(a(O,S.sibling),q=u(S,_),q.return=O,O=q):(a(O,S),q=Dr(_,O.mode,q),q.return=O,O=q),f(O)):a(O,S)}return function(O,S,_,q){try{qn=0;var lt=Rt(O,S,_,q);return Zl=null,lt}catch(et){if(et===Kl||et===Ku)throw et;var jt=_e(29,et,null,O.mode);return jt.lanes=q,jt.return=O,jt}finally{}}}var dl=cf(!0),of=cf(!1),za=!1;function Zr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vr(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 Ma(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Da(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Tt&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=Hu(t),Vo(t,null,a),e}return wu(t,l,e,a),Hu(t)}function wn(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,Ic(t,a)}}function kr(t,e){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?u=r=f:r=r.next=f,a=a.next}while(a!==null);r===null?u=r=e:r=r.next=e}else u=r=e;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Jr=!1;function Hn(){if(Jr){var t=Xl;if(t!==null)throw t}}function Bn(t,e,a,l){Jr=!1;var u=t.updateQueue;za=!1;var r=u.firstBaseUpdate,f=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var b=y,T=b.next;b.next=null,f===null?r=T:f.next=T,f=b;var R=t.alternate;R!==null&&(R=R.updateQueue,y=R.lastBaseUpdate,y!==f&&(y===null?R.firstBaseUpdate=T:y.next=T,R.lastBaseUpdate=b))}if(r!==null){var Q=u.baseState;f=0,R=T=b=null,y=r;do{var C=y.lane&-536870913,N=C!==y.lane;if(N?(xt&C)===C:(l&C)===C){C!==0&&C===Gl&&(Jr=!0),R!==null&&(R=R.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var J=t,it=y;C=e;var Rt=a;switch(it.tag){case 1:if(J=it.payload,typeof J=="function"){Q=J.call(Rt,Q,C);break t}Q=J;break t;case 3:J.flags=J.flags&-65537|128;case 0:if(J=it.payload,C=typeof J=="function"?J.call(Rt,Q,C):J,C==null)break t;Q=j({},Q,C);break t;case 2:za=!0}}C=y.callback,C!==null&&(t.flags|=64,N&&(t.flags|=8192),N=u.callbacks,N===null?u.callbacks=[C]:N.push(C))}else N={lane:C,tag:y.tag,payload:y.payload,callback:y.callback,next:null},R===null?(T=R=N,b=Q):R=R.next=N,f|=C;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;N=y,y=N.next,N.next=null,u.lastBaseUpdate=N,u.shared.pending=null}}while(!0);R===null&&(b=Q),u.baseState=b,u.firstBaseUpdate=T,u.lastBaseUpdate=R,r===null&&(u.shared.lanes=0),wa|=f,t.lanes=f,t.memoizedState=Q}}function ff(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function df(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)ff(a[t],e)}var Vl=x(null),Ju=x(0);function hf(t,e){t=ya,B(Ju,t),B(Vl,e),ya=t|e.baseLanes}function Fr(){B(Ju,ya),B(Vl,Vl.current)}function Pr(){ya=Ju.current,D(Vl),D(Ju)}var Ee=x(null),He=null;function Ra(t){var e=t.alternate;B(Kt,Kt.current&1),B(Ee,t),He===null&&(e===null||Vl.current!==null||e.memoizedState!==null)&&(He=t)}function $r(t){B(Kt,Kt.current),B(Ee,t),He===null&&(He=t)}function mf(t){t.tag===22?(B(Kt,Kt.current),B(Ee,t),He===null&&(He=t)):Ua()}function Ua(){B(Kt,Kt.current),B(Ee,Ee.current)}function Te(t){D(Ee),He===t&&(He=null),D(Kt)}var Kt=x(0);function Fu(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||lc(a)||nc(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)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}var sa=0,dt=null,Mt=null,Ft=null,Pu=!1,kl=!1,hl=!1,$u=0,Ln=0,Jl=null,wy=0;function Yt(){throw Error(c(321))}function Wr(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!je(t[a],e[a]))return!1;return!0}function Ir(t,e,a,l,u,r){return sa=r,dt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?$f:ms,hl=!1,r=a(l,u),hl=!1,kl&&(r=yf(e,a,l,u)),vf(t),r}function vf(t){A.H=Xn;var e=Mt!==null&&Mt.next!==null;if(sa=0,Ft=Mt=dt=null,Pu=!1,Ln=0,Jl=null,e)throw Error(c(300));t===null||Pt||(t=t.dependencies,t!==null&&Yu(t)&&(Pt=!0))}function yf(t,e,a,l){dt=t;var u=0;do{if(kl&&(Jl=null),Ln=0,kl=!1,25<=u)throw Error(c(301));if(u+=1,Ft=Mt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}A.H=Wf,r=e(a,l)}while(kl);return r}function Hy(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?Yn(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(dt.flags|=1024),e}function ts(){var t=$u!==0;return $u=0,t}function es(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function as(t){if(Pu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Pu=!1}sa=0,Ft=Mt=dt=null,kl=!1,Ln=$u=0,Jl=null}function ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?dt.memoizedState=Ft=t:Ft=Ft.next=t,Ft}function Zt(){if(Mt===null){var t=dt.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Ft===null?dt.memoizedState:Ft.next;if(e!==null)Ft=e,Mt=t;else{if(t===null)throw dt.alternate===null?Error(c(467)):Error(c(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Ft===null?dt.memoizedState=Ft=t:Ft=Ft.next=t}return Ft}function Wu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yn(t){var e=Ln;return Ln+=1,Jl===null&&(Jl=[]),t=uf(Jl,t,e),e=dt,(Ft===null?e.memoizedState:Ft.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?$f:ms),t}function Iu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Yn(t);if(t.$$typeof===At)return le(t)}throw Error(c(438,String(t)))}function ls(t){var e=null,a=dt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var l=dt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=Wu(),dt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=$;return e.index++,a}function ca(t,e){return typeof e=="function"?e(t):e}function ti(t){var e=Zt();return ns(e,Mt,t)}function ns(t,e,a){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=a;var u=t.baseQueue,r=l.pending;if(r!==null){if(u!==null){var f=u.next;u.next=r.next,r.next=f}e.baseQueue=u=r,l.pending=null}if(r=t.baseState,u===null)t.memoizedState=r;else{e=u.next;var y=f=null,b=null,T=e,R=!1;do{var Q=T.lane&-536870913;if(Q!==T.lane?(xt&Q)===Q:(sa&Q)===Q){var C=T.revertLane;if(C===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),Q===Gl&&(R=!0);else if((sa&C)===C){T=T.next,C===Gl&&(R=!0);continue}else Q={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},b===null?(y=b=Q,f=r):b=b.next=Q,dt.lanes|=C,wa|=C;Q=T.action,hl&&a(r,Q),r=T.hasEagerState?T.eagerState:a(r,Q)}else C={lane:Q,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},b===null?(y=b=C,f=r):b=b.next=C,dt.lanes|=Q,wa|=Q;T=T.next}while(T!==null&&T!==e);if(b===null?f=r:b.next=y,!je(r,t.memoizedState)&&(Pt=!0,R&&(a=Xl,a!==null)))throw a;t.memoizedState=r,t.baseState=f,t.baseQueue=b,l.lastRenderedState=r}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function us(t){var e=Zt(),a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=t;var l=a.dispatch,u=a.pending,r=e.memoizedState;if(u!==null){a.pending=null;var f=u=u.next;do r=t(r,f.action),f=f.next;while(f!==u);je(r,e.memoizedState)||(Pt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),a.lastRenderedState=r}return[r,l]}function pf(t,e,a){var l=dt,u=Zt(),r=Ot;if(r){if(a===void 0)throw Error(c(407));a=a()}else a=e();var f=!je((Mt||u).memoizedState,a);if(f&&(u.memoizedState=a,Pt=!0),u=u.queue,ss(xf.bind(null,l,u,t),[t]),u.getSnapshot!==e||f||Ft!==null&&Ft.memoizedState.tag&1){if(l.flags|=2048,Fl(9,{destroy:void 0},bf.bind(null,l,u,a,e),null),Ut===null)throw Error(c(349));r||(sa&127)!==0||gf(l,e,a)}return a}function gf(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=dt.updateQueue,e===null?(e=Wu(),dt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function bf(t,e,a,l){e.value=a,e.getSnapshot=l,Sf(e)&&Of(t)}function xf(t,e,a){return a(function(){Sf(e)&&Of(t)})}function Sf(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!je(t,a)}catch{return!0}}function Of(t){var e=nl(t,2);e!==null&&ge(e,t,2)}function is(t){var e=ce();if(typeof t=="function"){var a=t;if(t=a(),hl){ja(!0);try{a()}finally{ja(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:t},e}function jf(t,e,a,l){return t.baseState=a,ns(t,Mt,typeof l=="function"?l:ca)}function By(t,e,a,l,u){if(li(t))throw Error(c(485));if(t=e.action,t!==null){var r={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};A.T!==null?a(!0):r.isTransition=!1,l(r),a=e.pending,a===null?(r.next=e.pending=r,_f(e,r)):(r.next=a.next,e.pending=a.next=r)}}function _f(t,e){var a=e.action,l=e.payload,u=t.state;if(e.isTransition){var r=A.T,f={};A.T=f;try{var y=a(u,l),b=A.S;b!==null&&b(f,y),Ef(t,e,y)}catch(T){rs(t,e,T)}finally{r!==null&&f.types!==null&&(r.types=f.types),A.T=r}}else try{r=a(u,l),Ef(t,e,r)}catch(T){rs(t,e,T)}}function Ef(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Tf(t,e,l)},function(l){return rs(t,e,l)}):Tf(t,e,a)}function Tf(t,e,a){e.status="fulfilled",e.value=a,Af(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,_f(t,a)))}function rs(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,Af(e),e=e.next;while(e!==l)}t.action=null}function Af(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Cf(t,e){return e}function Nf(t,e){if(Ot){var a=Ut.formState;if(a!==null){t:{var l=dt;if(Ot){if(Qt){e:{for(var u=Qt,r=we;u.nodeType!==8;){if(!r){u=null;break e}if(u=Be(u.nextSibling),u===null){u=null;break e}}r=u.data,u=r==="F!"||r==="F"?u:null}if(u){Qt=Be(u.nextSibling),l=u.data==="F!";break t}}Ca(l)}l=!1}l&&(e=a[0])}}return a=ce(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cf,lastRenderedState:e},a.queue=l,a=Jf.bind(null,dt,l),l.dispatch=a,l=is(!1),r=hs.bind(null,dt,!1,l.queue),l=ce(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,a=By.bind(null,dt,u,r,a),u.dispatch=a,l.memoizedState=t,[e,a,!1]}function zf(t){var e=Zt();return Mf(e,Mt,t)}function Mf(t,e,a){if(e=ns(t,e,Cf)[0],t=ti(ca)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Yn(e)}catch(f){throw f===Kl?Ku:f}else l=e;e=Zt();var u=e.queue,r=u.dispatch;return a!==e.memoizedState&&(dt.flags|=2048,Fl(9,{destroy:void 0},Ly.bind(null,u,a),null)),[l,r,t]}function Ly(t,e){t.action=e}function Df(t){var e=Zt(),a=Mt;if(a!==null)return Mf(e,a,t);Zt(),e=e.memoizedState,a=Zt();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function Fl(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=dt.updateQueue,e===null&&(e=Wu(),dt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function Rf(){return Zt().memoizedState}function ei(t,e,a,l){var u=ce();dt.flags|=t,u.memoizedState=Fl(1|e,{destroy:void 0},a,l===void 0?null:l)}function ai(t,e,a,l){var u=Zt();l=l===void 0?null:l;var r=u.memoizedState.inst;Mt!==null&&l!==null&&Wr(l,Mt.memoizedState.deps)?u.memoizedState=Fl(e,r,a,l):(dt.flags|=t,u.memoizedState=Fl(1|e,r,a,l))}function Uf(t,e){ei(8390656,8,t,e)}function ss(t,e){ai(2048,8,t,e)}function Yy(t){dt.flags|=4;var e=dt.updateQueue;if(e===null)e=Wu(),dt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function qf(t){var e=Zt().memoizedState;return Yy({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Qf(t,e){return ai(4,2,t,e)}function wf(t,e){return ai(4,4,t,e)}function Hf(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Bf(t,e,a){a=a!=null?a.concat([t]):null,ai(4,4,Hf.bind(null,e,t),a)}function cs(){}function Lf(t,e){var a=Zt();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&Wr(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function Yf(t,e){var a=Zt();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&Wr(e,l[1]))return l[0];if(l=t(),hl){ja(!0);try{t()}finally{ja(!1)}}return a.memoizedState=[l,e],l}function os(t,e,a){return a===void 0||(sa&1073741824)!==0&&(xt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Gd(),dt.lanes|=t,wa|=t,a)}function Gf(t,e,a,l){return je(a,e)?a:Vl.current!==null?(t=os(t,a,l),je(t,e)||(Pt=!0),t):(sa&42)===0||(sa&1073741824)!==0&&(xt&261930)===0?(Pt=!0,t.memoizedState=a):(t=Gd(),dt.lanes|=t,wa|=t,e)}function Xf(t,e,a,l,u){var r=H.p;H.p=r!==0&&8>r?r:8;var f=A.T,y={};A.T=y,hs(t,!1,e,a);try{var b=u(),T=A.S;if(T!==null&&T(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var R=Qy(b,l);Gn(t,e,R,Ne(t))}else Gn(t,e,l,Ne(t))}catch(Q){Gn(t,e,{then:function(){},status:"rejected",reason:Q},Ne())}finally{H.p=r,f!==null&&y.types!==null&&(f.types=y.types),A.T=f}}function Gy(){}function fs(t,e,a,l){if(t.tag!==5)throw Error(c(476));var u=Kf(t).queue;Xf(t,u,e,G,a===null?Gy:function(){return Zf(t),a(l)})}function Kf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:G},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Zf(t){var e=Kf(t);e.next===null&&(e=t.alternate.memoizedState),Gn(t,e.next.queue,{},Ne())}function ds(){return le(uu)}function Vf(){return Zt().memoizedState}function kf(){return Zt().memoizedState}function Xy(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Ne();t=Ma(a);var l=Da(e,t,a);l!==null&&(ge(l,e,a),wn(l,e,a)),e={cache:Yr()},t.payload=e;return}e=e.return}}function Ky(t,e,a){var l=Ne();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},li(t)?Ff(e,a):(a=zr(t,e,a,l),a!==null&&(ge(a,t,l),Pf(a,e,l)))}function Jf(t,e,a){var l=Ne();Gn(t,e,a,l)}function Gn(t,e,a,l){var u={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(li(t))Ff(e,u);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var f=e.lastRenderedState,y=r(f,a);if(u.hasEagerState=!0,u.eagerState=y,je(y,f))return wu(t,e,u,0),Ut===null&&Qu(),!1}catch{}finally{}if(a=zr(t,e,u,l),a!==null)return ge(a,t,l),Pf(a,e,l),!0}return!1}function hs(t,e,a,l){if(l={lane:2,revertLane:Zs(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},li(t)){if(e)throw Error(c(479))}else e=zr(t,a,l,2),e!==null&&ge(e,t,2)}function li(t){var e=t.alternate;return t===dt||e!==null&&e===dt}function Ff(t,e){kl=Pu=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Pf(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,Ic(t,a)}}var Xn={readContext:le,use:Iu,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};Xn.useEffectEvent=Yt;var $f={readContext:le,use:Iu,useCallback:function(t,e){return ce().memoizedState=[t,e===void 0?null:e],t},useContext:le,useEffect:Uf,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,ei(4194308,4,Hf.bind(null,e,t),a)},useLayoutEffect:function(t,e){return ei(4194308,4,t,e)},useInsertionEffect:function(t,e){ei(4,2,t,e)},useMemo:function(t,e){var a=ce();e=e===void 0?null:e;var l=t();if(hl){ja(!0);try{t()}finally{ja(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=ce();if(a!==void 0){var u=a(e);if(hl){ja(!0);try{a(e)}finally{ja(!1)}}}else u=e;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=Ky.bind(null,dt,t),[l.memoizedState,t]},useRef:function(t){var e=ce();return t={current:t},e.memoizedState=t},useState:function(t){t=is(t);var e=t.queue,a=Jf.bind(null,dt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:cs,useDeferredValue:function(t,e){var a=ce();return os(a,t,e)},useTransition:function(){var t=is(!1);return t=Xf.bind(null,dt,t.queue,!0,!1),ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=dt,u=ce();if(Ot){if(a===void 0)throw Error(c(407));a=a()}else{if(a=e(),Ut===null)throw Error(c(349));(xt&127)!==0||gf(l,e,a)}u.memoizedState=a;var r={value:a,getSnapshot:e};return u.queue=r,Uf(xf.bind(null,l,r,t),[t]),l.flags|=2048,Fl(9,{destroy:void 0},bf.bind(null,l,r,a,e),null),a},useId:function(){var t=ce(),e=Ut.identifierPrefix;if(Ot){var a=Fe,l=Je;a=(l&~(1<<32-Oe(l)-1)).toString(32)+a,e="_"+e+"R_"+a,a=$u++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=wy++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:ds,useFormState:Nf,useActionState:Nf,useOptimistic:function(t){var e=ce();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=hs.bind(null,dt,!0,a),a.dispatch=e,[t,e]},useMemoCache:ls,useCacheRefresh:function(){return ce().memoizedState=Xy.bind(null,dt)},useEffectEvent:function(t){var e=ce(),a={impl:t};return e.memoizedState=a,function(){if((Tt&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},ms={readContext:le,use:Iu,useCallback:Lf,useContext:le,useEffect:ss,useImperativeHandle:Bf,useInsertionEffect:Qf,useLayoutEffect:wf,useMemo:Yf,useReducer:ti,useRef:Rf,useState:function(){return ti(ca)},useDebugValue:cs,useDeferredValue:function(t,e){var a=Zt();return Gf(a,Mt.memoizedState,t,e)},useTransition:function(){var t=ti(ca)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Yn(t),e]},useSyncExternalStore:pf,useId:Vf,useHostTransitionStatus:ds,useFormState:zf,useActionState:zf,useOptimistic:function(t,e){var a=Zt();return jf(a,Mt,t,e)},useMemoCache:ls,useCacheRefresh:kf};ms.useEffectEvent=qf;var Wf={readContext:le,use:Iu,useCallback:Lf,useContext:le,useEffect:ss,useImperativeHandle:Bf,useInsertionEffect:Qf,useLayoutEffect:wf,useMemo:Yf,useReducer:us,useRef:Rf,useState:function(){return us(ca)},useDebugValue:cs,useDeferredValue:function(t,e){var a=Zt();return Mt===null?os(a,t,e):Gf(a,Mt.memoizedState,t,e)},useTransition:function(){var t=us(ca)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Yn(t),e]},useSyncExternalStore:pf,useId:Vf,useHostTransitionStatus:ds,useFormState:Df,useActionState:Df,useOptimistic:function(t,e){var a=Zt();return Mt!==null?jf(a,Mt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:ls,useCacheRefresh:kf};Wf.useEffectEvent=qf;function vs(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:j({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var ys={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=Ne(),u=Ma(l);u.payload=e,a!=null&&(u.callback=a),e=Da(t,u,l),e!==null&&(ge(e,t,l),wn(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=Ne(),u=Ma(l);u.tag=1,u.payload=e,a!=null&&(u.callback=a),e=Da(t,u,l),e!==null&&(ge(e,t,l),wn(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Ne(),l=Ma(a);l.tag=2,e!=null&&(l.callback=e),e=Da(t,l,a),e!==null&&(ge(e,t,a),wn(e,t,a))}};function If(t,e,a,l,u,r,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,r,f):e.prototype&&e.prototype.isPureReactComponent?!Nn(a,l)||!Nn(u,r):!0}function td(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&ys.enqueueReplaceState(e,e.state,null)}function ml(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=j({},a));for(var u in t)a[u]===void 0&&(a[u]=t[u])}return a}function ed(t){qu(t)}function ad(t){console.error(t)}function ld(t){qu(t)}function ni(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function nd(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function ps(t,e,a){return a=Ma(a),a.tag=3,a.payload={element:null},a.callback=function(){ni(t,e)},a}function ud(t){return t=Ma(t),t.tag=3,t}function id(t,e,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var r=l.value;t.payload=function(){return u(r)},t.callback=function(){nd(e,a,l)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){nd(e,a,l),typeof u!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function Zy(t,e,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&Yl(e,a,u,!0),a=Ee.current,a!==null){switch(a.tag){case 31:case 13:return He===null?yi():a.alternate===null&&Gt===0&&(Gt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===Zu?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),Gs(t,l,u)),!1;case 22:return a.flags|=65536,l===Zu?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),Gs(t,l,u)),!1}throw Error(c(435,a.tag))}return Gs(t,l,u),yi(),!1}if(Ot)return e=Ee.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==Qr&&(t=Error(c(422),{cause:l}),Dn(Ue(t,a)))):(l!==Qr&&(e=Error(c(423),{cause:l}),Dn(Ue(e,a))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=Ue(l,a),u=ps(t.stateNode,l,u),kr(t,u),Gt!==4&&(Gt=2)),!1;var r=Error(c(520),{cause:l});if(r=Ue(r,a),$n===null?$n=[r]:$n.push(r),Gt!==4&&(Gt=2),e===null)return!0;l=Ue(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=u&-u,a.lanes|=t,t=ps(a.stateNode,l,t),kr(a,t),!1;case 1:if(e=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Ha===null||!Ha.has(r))))return a.flags|=65536,u&=-u,a.lanes|=u,u=ud(u),id(u,t,a,l),kr(a,u),!1}a=a.return}while(a!==null);return!1}var gs=Error(c(461)),Pt=!1;function ne(t,e,a,l){e.child=t===null?of(e,null,a,l):dl(e,t.child,a,l)}function rd(t,e,a,l,u){a=a.render;var r=e.ref;if("ref"in l){var f={};for(var y in l)y!=="ref"&&(f[y]=l[y])}else f=l;return sl(e),l=Ir(t,e,a,f,r,u),y=ts(),t!==null&&!Pt?(es(t,e,u),oa(t,e,u)):(Ot&&y&&Ur(e),e.flags|=1,ne(t,e,l,u),e.child)}function sd(t,e,a,l,u){if(t===null){var r=a.type;return typeof r=="function"&&!Mr(r)&&r.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=r,cd(t,e,r,l,u)):(t=Bu(a.type,null,l,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!Ts(t,u)){var f=r.memoizedProps;if(a=a.compare,a=a!==null?a:Nn,a(f,l)&&t.ref===e.ref)return oa(t,e,u)}return e.flags|=1,t=na(r,l),t.ref=e.ref,t.return=e,e.child=t}function cd(t,e,a,l,u){if(t!==null){var r=t.memoizedProps;if(Nn(r,l)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=l=r,Ts(t,u))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,oa(t,e,u)}return bs(t,e,a,l,u)}function od(t,e,a,l){var u=l.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,t!==null){for(l=e.child=t.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~r}else l=0,e.child=null;return fd(t,e,r,a,l)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Xu(e,r!==null?r.cachePool:null),r!==null?hf(e,r):Fr(),mf(e);else return l=e.lanes=536870912,fd(t,e,r!==null?r.baseLanes|a:a,a,l)}else r!==null?(Xu(e,r.cachePool),hf(e,r),Ua(),e.memoizedState=null):(t!==null&&Xu(e,null),Fr(),Ua());return ne(t,e,u,a),e.child}function Kn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function fd(t,e,a,l,u){var r=Xr();return r=r===null?null:{parent:Jt._currentValue,pool:r},e.memoizedState={baseLanes:a,cachePool:r},t!==null&&Xu(e,null),Fr(),mf(e),t!==null&&Yl(t,e,l,!0),e.childLanes=u,null}function ui(t,e){return e=ri({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function dd(t,e,a){return dl(e,t.child,null,a),t=ui(e,e.pendingProps),t.flags|=2,Te(e),e.memoizedState=null,t}function Vy(t,e,a){var l=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Ot){if(l.mode==="hidden")return t=ui(e,l),e.lanes=536870912,Kn(null,t);if($r(e),(t=Qt)?(t=_h(t,we),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ta!==null?{id:Je,overflow:Fe}:null,retryLane:536870912,hydrationErrors:null},a=Jo(t),a.return=e,e.child=a,ae=e,Qt=null)):t=null,t===null)throw Ca(e);return e.lanes=536870912,null}return ui(e,l)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if($r(e),u)if(e.flags&256)e.flags&=-257,e=dd(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Pt||Yl(t,e,a,!1),u=(a&t.childLanes)!==0,Pt||u){if(l=Ut,l!==null&&(f=to(l,a),f!==0&&f!==r.retryLane))throw r.retryLane=f,nl(t,f),ge(l,t,f),gs;yi(),e=dd(t,e,a)}else t=r.treeContext,Qt=Be(f.nextSibling),ae=e,Ot=!0,Aa=null,we=!1,t!==null&&$o(e,t),e=ui(e,l),e.flags|=4096;return e}return t=na(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ii(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function bs(t,e,a,l,u){return sl(e),a=Ir(t,e,a,l,void 0,u),l=ts(),t!==null&&!Pt?(es(t,e,u),oa(t,e,u)):(Ot&&l&&Ur(e),e.flags|=1,ne(t,e,a,u),e.child)}function hd(t,e,a,l,u,r){return sl(e),e.updateQueue=null,a=yf(e,l,a,u),vf(t),l=ts(),t!==null&&!Pt?(es(t,e,r),oa(t,e,r)):(Ot&&l&&Ur(e),e.flags|=1,ne(t,e,a,r),e.child)}function md(t,e,a,l,u){if(sl(e),e.stateNode===null){var r=wl,f=a.contextType;typeof f=="object"&&f!==null&&(r=le(f)),r=new a(l,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=ys,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=l,r.state=e.memoizedState,r.refs={},Zr(e),f=a.contextType,r.context=typeof f=="object"&&f!==null?le(f):wl,r.state=e.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(vs(e,a,f,l),r.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&ys.enqueueReplaceState(r,r.state,null),Bn(e,l,r,u),Hn(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){r=e.stateNode;var y=e.memoizedProps,b=ml(a,y);r.props=b;var T=r.context,R=a.contextType;f=wl,typeof R=="object"&&R!==null&&(f=le(R));var Q=a.getDerivedStateFromProps;R=typeof Q=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,R||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||T!==f)&&td(e,r,l,f),za=!1;var C=e.memoizedState;r.state=C,Bn(e,l,r,u),Hn(),T=e.memoizedState,y||C!==T||za?(typeof Q=="function"&&(vs(e,a,Q,l),T=e.memoizedState),(b=za||If(e,a,b,l,C,T,f))?(R||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=T),r.props=l,r.state=T,r.context=f,l=b):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{r=e.stateNode,Vr(t,e),f=e.memoizedProps,R=ml(a,f),r.props=R,Q=e.pendingProps,C=r.context,T=a.contextType,b=wl,typeof T=="object"&&T!==null&&(b=le(T)),y=a.getDerivedStateFromProps,(T=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==Q||C!==b)&&td(e,r,l,b),za=!1,C=e.memoizedState,r.state=C,Bn(e,l,r,u),Hn();var N=e.memoizedState;f!==Q||C!==N||za||t!==null&&t.dependencies!==null&&Yu(t.dependencies)?(typeof y=="function"&&(vs(e,a,y,l),N=e.memoizedState),(R=za||If(e,a,R,l,C,N,b)||t!==null&&t.dependencies!==null&&Yu(t.dependencies))?(T||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,N,b),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,N,b)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=N),r.props=l,r.state=N,r.context=b,l=R):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),l=!1)}return r=l,ii(t,e),l=(e.flags&128)!==0,r||l?(r=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&l?(e.child=dl(e,t.child,null,u),e.child=dl(e,null,a,u)):ne(t,e,a,u),e.memoizedState=r.state,t=e.child):t=oa(t,e,u),t}function vd(t,e,a,l){return il(),e.flags|=256,ne(t,e,a,l),e.child}var xs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ss(t){return{baseLanes:t,cachePool:lf()}}function Os(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=Ce),t}function yd(t,e,a){var l=e.pendingProps,u=!1,r=(e.flags&128)!==0,f;if((f=r)||(f=t!==null&&t.memoizedState===null?!1:(Kt.current&2)!==0),f&&(u=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(Ot){if(u?Ra(e):Ua(),(t=Qt)?(t=_h(t,we),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ta!==null?{id:Je,overflow:Fe}:null,retryLane:536870912,hydrationErrors:null},a=Jo(t),a.return=e,e.child=a,ae=e,Qt=null)):t=null,t===null)throw Ca(e);return nc(t)?e.lanes=32:e.lanes=536870912,null}var y=l.children;return l=l.fallback,u?(Ua(),u=e.mode,y=ri({mode:"hidden",children:y},u),l=ul(l,u,a,null),y.return=e,l.return=e,y.sibling=l,e.child=y,l=e.child,l.memoizedState=Ss(a),l.childLanes=Os(t,f,a),e.memoizedState=xs,Kn(null,l)):(Ra(e),js(e,y))}var b=t.memoizedState;if(b!==null&&(y=b.dehydrated,y!==null)){if(r)e.flags&256?(Ra(e),e.flags&=-257,e=_s(t,e,a)):e.memoizedState!==null?(Ua(),e.child=t.child,e.flags|=128,e=null):(Ua(),y=l.fallback,u=e.mode,l=ri({mode:"visible",children:l.children},u),y=ul(y,u,a,null),y.flags|=2,l.return=e,y.return=e,l.sibling=y,e.child=l,dl(e,t.child,null,a),l=e.child,l.memoizedState=Ss(a),l.childLanes=Os(t,f,a),e.memoizedState=xs,e=Kn(null,l));else if(Ra(e),nc(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var T=f.dgst;f=T,l=Error(c(419)),l.stack="",l.digest=f,Dn({value:l,source:null,stack:null}),e=_s(t,e,a)}else if(Pt||Yl(t,e,a,!1),f=(a&t.childLanes)!==0,Pt||f){if(f=Ut,f!==null&&(l=to(f,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,nl(t,l),ge(f,t,l),gs;lc(y)||yi(),e=_s(t,e,a)}else lc(y)?(e.flags|=192,e.child=t.child,e=null):(t=b.treeContext,Qt=Be(y.nextSibling),ae=e,Ot=!0,Aa=null,we=!1,t!==null&&$o(e,t),e=js(e,l.children),e.flags|=4096);return e}return u?(Ua(),y=l.fallback,u=e.mode,b=t.child,T=b.sibling,l=na(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,T!==null?y=na(T,y):(y=ul(y,u,a,null),y.flags|=2),y.return=e,l.return=e,l.sibling=y,e.child=l,Kn(null,l),l=e.child,y=t.child.memoizedState,y===null?y=Ss(a):(u=y.cachePool,u!==null?(b=Jt._currentValue,u=u.parent!==b?{parent:b,pool:b}:u):u=lf(),y={baseLanes:y.baseLanes|a,cachePool:u}),l.memoizedState=y,l.childLanes=Os(t,f,a),e.memoizedState=xs,Kn(t.child,l)):(Ra(e),a=t.child,t=a.sibling,a=na(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=a,e.memoizedState=null,a)}function js(t,e){return e=ri({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ri(t,e){return t=_e(22,t,null,e),t.lanes=0,t}function _s(t,e,a){return dl(e,t.child,null,a),t=js(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function pd(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Br(t.return,e,a)}function Es(t,e,a,l,u,r){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u,treeForkCount:r}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=u,f.treeForkCount=r)}function gd(t,e,a){var l=e.pendingProps,u=l.revealOrder,r=l.tail;l=l.children;var f=Kt.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,B(Kt,f),ne(t,e,l,a),l=Ot?Mn:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&pd(t,a,e);else if(t.tag===19)pd(t,a,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}switch(u){case"forwards":for(a=e.child,u=null;a!==null;)t=a.alternate,t!==null&&Fu(t)===null&&(u=a),a=a.sibling;a=u,a===null?(u=e.child,e.child=null):(u=a.sibling,a.sibling=null),Es(e,!1,u,a,r,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&Fu(t)===null){e.child=u;break}t=u.sibling,u.sibling=a,a=u,u=t}Es(e,!0,a,null,r,l);break;case"together":Es(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function oa(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),wa|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Yl(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,a=na(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=na(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Ts(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Yu(t)))}function ky(t,e,a){switch(e.tag){case 3:kt(e,e.stateNode.containerInfo),Na(e,Jt,t.memoizedState.cache),il();break;case 27:case 5:Sa(e);break;case 4:kt(e,e.stateNode.containerInfo);break;case 10:Na(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,$r(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Ra(e),e.flags|=128,null):(a&e.child.childLanes)!==0?yd(t,e,a):(Ra(e),t=oa(t,e,a),t!==null?t.sibling:null);Ra(e);break;case 19:var u=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(Yl(t,e,a,!1),l=(a&e.childLanes)!==0),u){if(l)return gd(t,e,a);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),B(Kt,Kt.current),l)break;return null;case 22:return e.lanes=0,od(t,e,a,e.pendingProps);case 24:Na(e,Jt,t.memoizedState.cache)}return oa(t,e,a)}function bd(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!Ts(t,a)&&(e.flags&128)===0)return Pt=!1,ky(t,e,a);Pt=(t.flags&131072)!==0}else Pt=!1,Ot&&(e.flags&1048576)!==0&&Po(e,Mn,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ol(e.elementType),e.type=t,typeof t=="function")Mr(t)?(l=ml(t,l),e.tag=1,e=md(null,e,t,l,a)):(e.tag=0,e=bs(null,e,t,l,a));else{if(t!=null){var u=t.$$typeof;if(u===qt){e.tag=11,e=rd(null,e,t,l,a);break t}else if(u===M){e.tag=14,e=sd(null,e,t,l,a);break t}}throw e=ct(t)||t,Error(c(306,e,""))}}return e;case 0:return bs(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,u=ml(l,e.pendingProps),md(t,e,l,u,a);case 3:t:{if(kt(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var r=e.memoizedState;u=r.element,Vr(t,e),Bn(e,l,null,a);var f=e.memoizedState;if(l=f.cache,Na(e,Jt,l),l!==r.cache&&Lr(e,[Jt],a,!0),Hn(),l=f.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=vd(t,e,l,a);break t}else if(l!==u){u=Ue(Error(c(424)),e),Dn(u),e=vd(t,e,l,a);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(Qt=Be(t.firstChild),ae=e,Ot=!0,Aa=null,we=!0,a=of(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(il(),l===u){e=oa(t,e,a);break t}ne(t,e,l,a)}e=e.child}return e;case 26:return ii(t,e),t===null?(a=zh(e.type,null,e.pendingProps,null))?e.memoizedState=a:Ot||(a=e.type,t=e.pendingProps,l=ji(st.current).createElement(a),l[ee]=e,l[de]=t,ue(l,a,t),It(l),e.stateNode=l):e.memoizedState=zh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Sa(e),t===null&&Ot&&(l=e.stateNode=Ah(e.type,e.pendingProps,st.current),ae=e,we=!0,u=Qt,Ga(e.type)?(uc=u,Qt=Be(l.firstChild)):Qt=u),ne(t,e,e.pendingProps.children,a),ii(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Ot&&((u=l=Qt)&&(l=jp(l,e.type,e.pendingProps,we),l!==null?(e.stateNode=l,ae=e,Qt=Be(l.firstChild),we=!1,u=!0):u=!1),u||Ca(e)),Sa(e),u=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,l=r.children,tc(u,r)?l=null:f!==null&&tc(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=Ir(t,e,Hy,null,null,a),uu._currentValue=u),ii(t,e),ne(t,e,l,a),e.child;case 6:return t===null&&Ot&&((t=a=Qt)&&(a=_p(a,e.pendingProps,we),a!==null?(e.stateNode=a,ae=e,Qt=null,t=!0):t=!1),t||Ca(e)),null;case 13:return yd(t,e,a);case 4:return kt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=dl(e,null,l,a):ne(t,e,l,a),e.child;case 11:return rd(t,e,e.type,e.pendingProps,a);case 7:return ne(t,e,e.pendingProps,a),e.child;case 8:return ne(t,e,e.pendingProps.children,a),e.child;case 12:return ne(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,Na(e,e.type,l.value),ne(t,e,l.children,a),e.child;case 9:return u=e.type._context,l=e.pendingProps.children,sl(e),u=le(u),l=l(u),e.flags|=1,ne(t,e,l,a),e.child;case 14:return sd(t,e,e.type,e.pendingProps,a);case 15:return cd(t,e,e.type,e.pendingProps,a);case 19:return gd(t,e,a);case 31:return Vy(t,e,a);case 22:return od(t,e,a,e.pendingProps);case 24:return sl(e),l=le(Jt),t===null?(u=Xr(),u===null&&(u=Ut,r=Yr(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=a),u=r),e.memoizedState={parent:l,cache:u},Zr(e),Na(e,Jt,u)):((t.lanes&a)!==0&&(Vr(t,e),Bn(e,null,null,a),Hn()),u=t.memoizedState,r=e.memoizedState,u.parent!==l?(u={parent:l,cache:l},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Na(e,Jt,l)):(l=r.cache,Na(e,Jt,l),l!==u.cache&&Lr(e,[Jt],a,!0))),ne(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function fa(t){t.flags|=4}function As(t,e,a,l,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Vd())t.flags|=8192;else throw fl=Zu,Kr}else t.flags&=-16777217}function xd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!qh(e))if(Vd())t.flags|=8192;else throw fl=Zu,Kr}function si(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?$c():536870912,t.lanes|=e,Il|=e)}function Zn(t,e){if(!Ot)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function wt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var u=t.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function Jy(t,e,a){var l=e.pendingProps;switch(qr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(e),null;case 1:return wt(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),ra(Jt),Ht(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Ll(e)?fa(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,wr())),wt(e),null;case 26:var u=e.type,r=e.memoizedState;return t===null?(fa(e),r!==null?(wt(e),xd(e,r)):(wt(e),As(e,u,null,l,a))):r?r!==t.memoizedState?(fa(e),wt(e),xd(e,r)):(wt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&fa(e),wt(e),As(e,u,t,l,a)),null;case 27:if($a(e),a=st.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&fa(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return wt(e),null}t=L.current,Ll(e)?Wo(e):(t=Ah(u,l,a),e.stateNode=t,fa(e))}return wt(e),null;case 5:if($a(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&fa(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return wt(e),null}if(r=L.current,Ll(e))Wo(e);else{var f=ji(st.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?f.createElement(u,{is:l.is}):f.createElement(u)}}r[ee]=e,r[de]=l;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=r;t:switch(ue(r,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&fa(e)}}return wt(e),As(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&fa(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=st.current,Ll(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,u=ae,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[ee]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||yh(t.nodeValue,a)),t||Ca(e,!0)}else t=ji(t).createTextNode(l),t[ee]=e,e.stateNode=t}return wt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ll(e),a!==null){if(t===null){if(!l)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[ee]=e}else il(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;wt(e),t=!1}else a=wr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(Te(e),e):(Te(e),null);if((e.flags&128)!==0)throw Error(c(558))}return wt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Ll(e),l!==null&&l.dehydrated!==null){if(t===null){if(!u)throw Error(c(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[ee]=e}else il(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;wt(e),u=!1}else u=wr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Te(e),e):(Te(e),null)}return Te(e),(e.flags&128)!==0?(e.lanes=a,e):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=e.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==u&&(l.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),si(e,e.updateQueue),wt(e),null);case 4:return Ht(),t===null&&Fs(e.stateNode.containerInfo),wt(e),null;case 10:return ra(e.type),wt(e),null;case 19:if(D(Kt),l=e.memoizedState,l===null)return wt(e),null;if(u=(e.flags&128)!==0,r=l.rendering,r===null)if(u)Zn(l,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Fu(t),r!==null){for(e.flags|=128,Zn(l,!1),t=r.updateQueue,e.updateQueue=t,si(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)ko(a,t),a=a.sibling;return B(Kt,Kt.current&1|2),Ot&&ua(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Ct()>hi&&(e.flags|=128,u=!0,Zn(l,!1),e.lanes=4194304)}else{if(!u)if(t=Fu(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,si(e,t),Zn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!Ot)return wt(e),null}else 2*Ct()-l.renderingStartTime>hi&&a!==536870912&&(e.flags|=128,u=!0,Zn(l,!1),e.lanes=4194304);l.isBackwards?(r.sibling=e.child,e.child=r):(t=l.last,t!==null?t.sibling=r:e.child=r,l.last=r)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ct(),t.sibling=null,a=Kt.current,B(Kt,u?a&1|2:a&1),Ot&&ua(e,l.treeForkCount),t):(wt(e),null);case 22:case 23:return Te(e),Pr(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(wt(e),e.subtreeFlags&6&&(e.flags|=8192)):wt(e),a=e.updateQueue,a!==null&&si(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&D(cl),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),ra(Jt),wt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function Fy(t,e){switch(qr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ra(Jt),Ht(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return $a(e),null;case 31:if(e.memoizedState!==null){if(Te(e),e.alternate===null)throw Error(c(340));il()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Te(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));il()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return D(Kt),null;case 4:return Ht(),null;case 10:return ra(e.type),null;case 22:case 23:return Te(e),Pr(),t!==null&&D(cl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ra(Jt),null;case 25:return null;default:return null}}function Sd(t,e){switch(qr(e),e.tag){case 3:ra(Jt),Ht();break;case 26:case 27:case 5:$a(e);break;case 4:Ht();break;case 31:e.memoizedState!==null&&Te(e);break;case 13:Te(e);break;case 19:D(Kt);break;case 10:ra(e.type);break;case 22:case 23:Te(e),Pr(),t!==null&&D(cl);break;case 24:ra(Jt)}}function Vn(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&t)===t){l=void 0;var r=a.create,f=a.inst;l=r(),f.destroy=l}a=a.next}while(a!==u)}}catch(y){zt(e,e.return,y)}}function qa(t,e,a){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var r=u.next;l=r;do{if((l.tag&t)===t){var f=l.inst,y=f.destroy;if(y!==void 0){f.destroy=void 0,u=e;var b=a,T=y;try{T()}catch(R){zt(u,b,R)}}}l=l.next}while(l!==r)}}catch(R){zt(e,e.return,R)}}function Od(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{df(e,a)}catch(l){zt(t,t.return,l)}}}function jd(t,e,a){a.props=ml(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){zt(t,e,l)}}function kn(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(u){zt(t,e,u)}}function Pe(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){zt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){zt(t,e,u)}else a.current=null}function _d(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){zt(t,t.return,u)}}function Cs(t,e,a){try{var l=t.stateNode;pp(l,t.type,a,e),l[de]=e}catch(u){zt(t,t.return,u)}}function Ed(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ga(t.type)||t.tag===4}function Ns(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ed(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&&Ga(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 zs(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=aa));else if(l!==4&&(l===27&&Ga(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(zs(t,e,a),t=t.sibling;t!==null;)zs(t,e,a),t=t.sibling}function ci(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&Ga(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(ci(t,e,a),t=t.sibling;t!==null;)ci(t,e,a),t=t.sibling}function Td(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ue(e,l,a),e[ee]=t,e[de]=a}catch(r){zt(t,t.return,r)}}var da=!1,$t=!1,Ms=!1,Ad=typeof WeakSet=="function"?WeakSet:Set,te=null;function Py(t,e){if(t=t.containerInfo,Ws=zi,t=Ho(t),_r(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break t}var f=0,y=-1,b=-1,T=0,R=0,Q=t,C=null;e:for(;;){for(var N;Q!==a||u!==0&&Q.nodeType!==3||(y=f+u),Q!==r||l!==0&&Q.nodeType!==3||(b=f+l),Q.nodeType===3&&(f+=Q.nodeValue.length),(N=Q.firstChild)!==null;)C=Q,Q=N;for(;;){if(Q===t)break e;if(C===a&&++T===u&&(y=f),C===r&&++R===l&&(b=f),(N=Q.nextSibling)!==null)break;Q=C,C=Q.parentNode}Q=N}a=y===-1||b===-1?null:{start:y,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(Is={focusedElem:t,selectionRange:a},zi=!1,te=e;te!==null;)if(e=te,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,te=t;else for(;te!==null;){switch(e=te,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)u=t[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,a=e,u=r.memoizedProps,r=r.memoizedState,l=a.stateNode;try{var J=ml(a.type,u);t=l.getSnapshotBeforeUpdate(J,r),l.__reactInternalSnapshotBeforeUpdate=t}catch(it){zt(a,a.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)ac(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ac(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,te=t;break}te=e.return}}function Cd(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ma(t,a),l&4&&Vn(5,a);break;case 1:if(ma(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(f){zt(a,a.return,f)}else{var u=ml(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){zt(a,a.return,f)}}l&64&&Od(a),l&512&&kn(a,a.return);break;case 3:if(ma(t,a),l&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{df(t,e)}catch(f){zt(a,a.return,f)}}break;case 27:e===null&&l&4&&Td(a);case 26:case 5:ma(t,a),e===null&&l&4&&_d(a),l&512&&kn(a,a.return);break;case 12:ma(t,a);break;case 31:ma(t,a),l&4&&Md(t,a);break;case 13:ma(t,a),l&4&&Dd(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=up.bind(null,a),Ep(t,a))));break;case 22:if(l=a.memoizedState!==null||da,!l){e=e!==null&&e.memoizedState!==null||$t,u=da;var r=$t;da=l,($t=e)&&!r?va(t,a,(a.subtreeFlags&8772)!==0):ma(t,a),da=u,$t=r}break;case 30:break;default:ma(t,a)}}function Nd(t){var e=t.alternate;e!==null&&(t.alternate=null,Nd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&rr(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 Bt=null,me=!1;function ha(t,e,a){for(a=a.child;a!==null;)zd(t,e,a),a=a.sibling}function zd(t,e,a){if(Se&&typeof Se.onCommitFiberUnmount=="function")try{Se.onCommitFiberUnmount(pn,a)}catch{}switch(a.tag){case 26:$t||Pe(a,e),ha(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$t||Pe(a,e);var l=Bt,u=me;Ga(a.type)&&(Bt=a.stateNode,me=!1),ha(t,e,a),au(a.stateNode),Bt=l,me=u;break;case 5:$t||Pe(a,e);case 6:if(l=Bt,u=me,Bt=null,ha(t,e,a),Bt=l,me=u,Bt!==null)if(me)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(a.stateNode)}catch(r){zt(a,e,r)}else try{Bt.removeChild(a.stateNode)}catch(r){zt(a,e,r)}break;case 18:Bt!==null&&(me?(t=Bt,Oh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),sn(t)):Oh(Bt,a.stateNode));break;case 4:l=Bt,u=me,Bt=a.stateNode.containerInfo,me=!0,ha(t,e,a),Bt=l,me=u;break;case 0:case 11:case 14:case 15:qa(2,a,e),$t||qa(4,a,e),ha(t,e,a);break;case 1:$t||(Pe(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&jd(a,e,l)),ha(t,e,a);break;case 21:ha(t,e,a);break;case 22:$t=(l=$t)||a.memoizedState!==null,ha(t,e,a),$t=l;break;default:ha(t,e,a)}}function Md(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{sn(t)}catch(a){zt(e,e.return,a)}}}function Dd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{sn(t)}catch(a){zt(e,e.return,a)}}function $y(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Ad),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Ad),e;default:throw Error(c(435,t.tag))}}function oi(t,e){var a=$y(t);e.forEach(function(l){if(!a.has(l)){a.add(l);var u=ip.bind(null,t,l);l.then(u,u)}})}function ve(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],r=t,f=e,y=f;t:for(;y!==null;){switch(y.tag){case 27:if(Ga(y.type)){Bt=y.stateNode,me=!1;break t}break;case 5:Bt=y.stateNode,me=!1;break t;case 3:case 4:Bt=y.stateNode.containerInfo,me=!0;break t}y=y.return}if(Bt===null)throw Error(c(160));zd(r,f,u),Bt=null,me=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Rd(e,t),e=e.sibling}var Ge=null;function Rd(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ve(e,t),ye(t),l&4&&(qa(3,t,t.return),Vn(3,t),qa(5,t,t.return));break;case 1:ve(e,t),ye(t),l&512&&($t||a===null||Pe(a,a.return)),l&64&&da&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=Ge;if(ve(e,t),ye(t),l&512&&($t||a===null||Pe(a,a.return)),l&4){var r=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,u=u.ownerDocument||u;e:switch(l){case"title":r=u.getElementsByTagName("title")[0],(!r||r[xn]||r[ee]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(l),u.head.insertBefore(r,u.querySelector("head > title"))),ue(r,l,a),r[ee]=t,It(r),l=r;break t;case"link":var f=Rh("link","href",u).get(l+(a.href||""));if(f){for(var y=0;y<f.length;y++)if(r=f[y],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(y,1);break e}}r=u.createElement(l),ue(r,l,a),u.head.appendChild(r);break;case"meta":if(f=Rh("meta","content",u).get(l+(a.content||""))){for(y=0;y<f.length;y++)if(r=f[y],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(y,1);break e}}r=u.createElement(l),ue(r,l,a),u.head.appendChild(r);break;default:throw Error(c(468,l))}r[ee]=t,It(r),l=r}t.stateNode=l}else Uh(u,t.type,t.stateNode);else t.stateNode=Dh(u,l,t.memoizedProps);else r!==l?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,l===null?Uh(u,t.type,t.stateNode):Dh(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Cs(t,t.memoizedProps,a.memoizedProps)}break;case 27:ve(e,t),ye(t),l&512&&($t||a===null||Pe(a,a.return)),a!==null&&l&4&&Cs(t,t.memoizedProps,a.memoizedProps);break;case 5:if(ve(e,t),ye(t),l&512&&($t||a===null||Pe(a,a.return)),t.flags&32){u=t.stateNode;try{zl(u,"")}catch(J){zt(t,t.return,J)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,Cs(t,u,a!==null?a.memoizedProps:u)),l&1024&&(Ms=!0);break;case 6:if(ve(e,t),ye(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(J){zt(t,t.return,J)}}break;case 3:if(Ti=null,u=Ge,Ge=_i(e.containerInfo),ve(e,t),Ge=u,ye(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{sn(e.containerInfo)}catch(J){zt(t,t.return,J)}Ms&&(Ms=!1,Ud(t));break;case 4:l=Ge,Ge=_i(t.stateNode.containerInfo),ve(e,t),ye(t),Ge=l;break;case 12:ve(e,t),ye(t);break;case 31:ve(e,t),ye(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,oi(t,l)));break;case 13:ve(e,t),ye(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(di=Ct()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,oi(t,l)));break;case 22:u=t.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,T=da,R=$t;if(da=T||u,$t=R||b,ve(e,t),$t=R,da=T,ye(t),l&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(a===null||b||da||$t||vl(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){b=a=e;try{if(r=b.stateNode,u)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=b.stateNode;var Q=b.memoizedProps.style,C=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;y.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(J){zt(b,b.return,J)}}}else if(e.tag===6){if(a===null){b=e;try{b.stateNode.nodeValue=u?"":b.memoizedProps}catch(J){zt(b,b.return,J)}}}else if(e.tag===18){if(a===null){b=e;try{var N=b.stateNode;u?jh(N,!0):jh(b.stateNode,!1)}catch(J){zt(b,b.return,J)}}}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;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,oi(t,a))));break;case 19:ve(e,t),ye(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,oi(t,l)));break;case 30:break;case 21:break;default:ve(e,t),ye(t)}}function ye(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(Ed(l)){a=l;break}l=l.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var u=a.stateNode,r=Ns(t);ci(t,r,u);break;case 5:var f=a.stateNode;a.flags&32&&(zl(f,""),a.flags&=-33);var y=Ns(t);ci(t,y,f);break;case 3:case 4:var b=a.stateNode.containerInfo,T=Ns(t);zs(t,T,b);break;default:throw Error(c(161))}}catch(R){zt(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Ud(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Ud(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ma(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Cd(t,e.alternate,e),e=e.sibling}function vl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:qa(4,e,e.return),vl(e);break;case 1:Pe(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&jd(e,e.return,a),vl(e);break;case 27:au(e.stateNode);case 26:case 5:Pe(e,e.return),vl(e);break;case 22:e.memoizedState===null&&vl(e);break;case 30:vl(e);break;default:vl(e)}t=t.sibling}}function va(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,u=t,r=e,f=r.flags;switch(r.tag){case 0:case 11:case 15:va(u,r,a),Vn(4,r);break;case 1:if(va(u,r,a),l=r,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(T){zt(l,l.return,T)}if(l=r,u=l.updateQueue,u!==null){var y=l.stateNode;try{var b=u.shared.hiddenCallbacks;if(b!==null)for(u.shared.hiddenCallbacks=null,u=0;u<b.length;u++)ff(b[u],y)}catch(T){zt(l,l.return,T)}}a&&f&64&&Od(r),kn(r,r.return);break;case 27:Td(r);case 26:case 5:va(u,r,a),a&&l===null&&f&4&&_d(r),kn(r,r.return);break;case 12:va(u,r,a);break;case 31:va(u,r,a),a&&f&4&&Md(u,r);break;case 13:va(u,r,a),a&&f&4&&Dd(u,r);break;case 22:r.memoizedState===null&&va(u,r,a),kn(r,r.return);break;case 30:break;default:va(u,r,a)}e=e.sibling}}function Ds(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Rn(a))}function Rs(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Rn(t))}function Xe(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qd(t,e,a,l),e=e.sibling}function qd(t,e,a,l){var u=e.flags;switch(e.tag){case 0:case 11:case 15:Xe(t,e,a,l),u&2048&&Vn(9,e);break;case 1:Xe(t,e,a,l);break;case 3:Xe(t,e,a,l),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Rn(t)));break;case 12:if(u&2048){Xe(t,e,a,l),t=e.stateNode;try{var r=e.memoizedProps,f=r.id,y=r.onPostCommit;typeof y=="function"&&y(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(b){zt(e,e.return,b)}}else Xe(t,e,a,l);break;case 31:Xe(t,e,a,l);break;case 13:Xe(t,e,a,l);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?Xe(t,e,a,l):Jn(t,e):r._visibility&2?Xe(t,e,a,l):(r._visibility|=2,Pl(t,e,a,l,(e.subtreeFlags&10256)!==0||!1)),u&2048&&Ds(f,e);break;case 24:Xe(t,e,a,l),u&2048&&Rs(e.alternate,e);break;default:Xe(t,e,a,l)}}function Pl(t,e,a,l,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,f=e,y=a,b=l,T=f.flags;switch(f.tag){case 0:case 11:case 15:Pl(r,f,y,b,u),Vn(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?Pl(r,f,y,b,u):Jn(r,f):(R._visibility|=2,Pl(r,f,y,b,u)),u&&T&2048&&Ds(f.alternate,f);break;case 24:Pl(r,f,y,b,u),u&&T&2048&&Rs(f.alternate,f);break;default:Pl(r,f,y,b,u)}e=e.sibling}}function Jn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,u=l.flags;switch(l.tag){case 22:Jn(a,l),u&2048&&Ds(l.alternate,l);break;case 24:Jn(a,l),u&2048&&Rs(l.alternate,l);break;default:Jn(a,l)}e=e.sibling}}var Fn=8192;function $l(t,e,a){if(t.subtreeFlags&Fn)for(t=t.child;t!==null;)Qd(t,e,a),t=t.sibling}function Qd(t,e,a){switch(t.tag){case 26:$l(t,e,a),t.flags&Fn&&t.memoizedState!==null&&wp(a,Ge,t.memoizedState,t.memoizedProps);break;case 5:$l(t,e,a);break;case 3:case 4:var l=Ge;Ge=_i(t.stateNode.containerInfo),$l(t,e,a),Ge=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Fn,Fn=16777216,$l(t,e,a),Fn=l):$l(t,e,a));break;default:$l(t,e,a)}}function wd(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 Pn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];te=l,Bd(l,t)}wd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hd(t),t=t.sibling}function Hd(t){switch(t.tag){case 0:case 11:case 15:Pn(t),t.flags&2048&&qa(9,t,t.return);break;case 3:Pn(t);break;case 12:Pn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,fi(t)):Pn(t);break;default:Pn(t)}}function fi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];te=l,Bd(l,t)}wd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:qa(8,e,e.return),fi(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,fi(e));break;default:fi(e)}t=t.sibling}}function Bd(t,e){for(;te!==null;){var a=te;switch(a.tag){case 0:case 11:case 15:qa(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Rn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,te=l;else t:for(a=t;te!==null;){l=te;var u=l.sibling,r=l.return;if(Nd(l),l===a){te=null;break t}if(u!==null){u.return=r,te=u;break t}te=r}}}var Wy={getCacheForType:function(t){var e=le(Jt),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return le(Jt).controller.signal}},Iy=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Ut=null,gt=null,xt=0,Nt=0,Ae=null,Qa=!1,Wl=!1,Us=!1,ya=0,Gt=0,wa=0,yl=0,qs=0,Ce=0,Il=0,$n=null,pe=null,Qs=!1,di=0,Ld=0,hi=1/0,mi=null,Ha=null,Wt=0,Ba=null,tn=null,pa=0,ws=0,Hs=null,Yd=null,Wn=0,Bs=null;function Ne(){return(Tt&2)!==0&&xt!==0?xt&-xt:A.T!==null?Zs():eo()}function Gd(){if(Ce===0)if((xt&536870912)===0||Ot){var t=Ou;Ou<<=1,(Ou&3932160)===0&&(Ou=262144),Ce=t}else Ce=536870912;return t=Ee.current,t!==null&&(t.flags|=32),Ce}function ge(t,e,a){(t===Ut&&(Nt===2||Nt===9)||t.cancelPendingCommit!==null)&&(en(t,0),La(t,xt,Ce,!1)),bn(t,a),((Tt&2)===0||t!==Ut)&&(t===Ut&&((Tt&2)===0&&(yl|=a),Gt===4&&La(t,xt,Ce,!1)),$e(t))}function Xd(t,e,a){if((Tt&6)!==0)throw Error(c(327));var l=!a&&(e&127)===0&&(e&t.expiredLanes)===0||gn(t,e),u=l?ap(t,e):Ys(t,e,!0),r=l;do{if(u===0){Wl&&!l&&La(t,e,0,!1);break}else{if(a=t.current.alternate,r&&!tp(a)){u=Ys(t,e,!1),r=!1;continue}if(u===2){if(r=e,t.errorRecoveryDisabledLanes&r)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var y=t;u=$n;var b=y.current.memoizedState.isDehydrated;if(b&&(en(y,f).flags|=256),f=Ys(y,f,!1),f!==2){if(Us&&!b){y.errorRecoveryDisabledLanes|=r,yl|=r,u=4;break t}r=pe,pe=u,r!==null&&(pe===null?pe=r:pe.push.apply(pe,r))}u=f}if(r=!1,u!==2)continue}}if(u===1){en(t,0),La(t,e,0,!0);break}t:{switch(l=t,r=u,r){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:La(l,e,Ce,!Qa);break t;case 2:pe=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(u=di+300-Ct(),10<u)){if(La(l,e,Ce,!Qa),_u(l,0,!0)!==0)break t;pa=e,l.timeoutHandle=xh(Kd.bind(null,l,a,pe,mi,Qs,e,Ce,yl,Il,Qa,r,"Throttled",-0,0),u);break t}Kd(l,a,pe,mi,Qs,e,Ce,yl,Il,Qa,r,null,-0,0)}}break}while(!0);$e(t)}function Kd(t,e,a,l,u,r,f,y,b,T,R,Q,C,N){if(t.timeoutHandle=-1,Q=e.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:aa},Qd(e,r,Q);var J=(r&62914560)===r?di-Ct():(r&4194048)===r?Ld-Ct():0;if(J=Hp(Q,J),J!==null){pa=r,t.cancelPendingCommit=J(Wd.bind(null,t,e,r,a,l,u,f,y,b,R,Q,null,C,N)),La(t,r,f,!T);return}}Wd(t,e,r,a,l,u,f,y,b)}function tp(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],r=u.getSnapshot;u=u.value;try{if(!je(r(),u))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;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 La(t,e,a,l){e&=~qs,e&=~yl,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var u=e;0<u;){var r=31-Oe(u),f=1<<r;l[r]=-1,u&=~f}a!==0&&Wc(t,a,e)}function vi(){return(Tt&6)===0?(In(0),!1):!0}function Ls(){if(gt!==null){if(Nt===0)var t=gt.return;else t=gt,ia=rl=null,as(t),Zl=null,qn=0,t=gt;for(;t!==null;)Sd(t.alternate,t),t=t.return;gt=null}}function en(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,xp(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),pa=0,Ls(),Ut=t,gt=a=na(t.current,null),xt=e,Nt=0,Ae=null,Qa=!1,Wl=gn(t,e),Us=!1,Il=Ce=qs=yl=wa=Gt=0,pe=$n=null,Qs=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var u=31-Oe(l),r=1<<u;e|=t[u],l&=~r}return ya=e,Qu(),a}function Zd(t,e){dt=null,A.H=Xn,e===Kl||e===Ku?(e=rf(),Nt=3):e===Kr?(e=rf(),Nt=4):Nt=e===gs?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ae=e,gt===null&&(Gt=1,ni(t,Ue(e,t.current)))}function Vd(){var t=Ee.current;return t===null?!0:(xt&4194048)===xt?He===null:(xt&62914560)===xt||(xt&536870912)!==0?t===He:!1}function kd(){var t=A.H;return A.H=Xn,t===null?Xn:t}function Jd(){var t=A.A;return A.A=Wy,t}function yi(){Gt=4,Qa||(xt&4194048)!==xt&&Ee.current!==null||(Wl=!0),(wa&134217727)===0&&(yl&134217727)===0||Ut===null||La(Ut,xt,Ce,!1)}function Ys(t,e,a){var l=Tt;Tt|=2;var u=kd(),r=Jd();(Ut!==t||xt!==e)&&(mi=null,en(t,e)),e=!1;var f=Gt;t:do try{if(Nt!==0&&gt!==null){var y=gt,b=Ae;switch(Nt){case 8:Ls(),f=6;break t;case 3:case 2:case 9:case 6:Ee.current===null&&(e=!0);var T=Nt;if(Nt=0,Ae=null,an(t,y,b,T),a&&Wl){f=0;break t}break;default:T=Nt,Nt=0,Ae=null,an(t,y,b,T)}}ep(),f=Gt;break}catch(R){Zd(t,R)}while(!0);return e&&t.shellSuspendCounter++,ia=rl=null,Tt=l,A.H=u,A.A=r,gt===null&&(Ut=null,xt=0,Qu()),f}function ep(){for(;gt!==null;)Fd(gt)}function ap(t,e){var a=Tt;Tt|=2;var l=kd(),u=Jd();Ut!==t||xt!==e?(mi=null,hi=Ct()+500,en(t,e)):Wl=gn(t,e);t:do try{if(Nt!==0&&gt!==null){e=gt;var r=Ae;e:switch(Nt){case 1:Nt=0,Ae=null,an(t,e,r,1);break;case 2:case 9:if(nf(r)){Nt=0,Ae=null,Pd(e);break}e=function(){Nt!==2&&Nt!==9||Ut!==t||(Nt=7),$e(t)},r.then(e,e);break t;case 3:Nt=7;break t;case 4:Nt=5;break t;case 7:nf(r)?(Nt=0,Ae=null,Pd(e)):(Nt=0,Ae=null,an(t,e,r,7));break;case 5:var f=null;switch(gt.tag){case 26:f=gt.memoizedState;case 5:case 27:var y=gt;if(f?qh(f):y.stateNode.complete){Nt=0,Ae=null;var b=y.sibling;if(b!==null)gt=b;else{var T=y.return;T!==null?(gt=T,pi(T)):gt=null}break e}}Nt=0,Ae=null,an(t,e,r,5);break;case 6:Nt=0,Ae=null,an(t,e,r,6);break;case 8:Ls(),Gt=6;break t;default:throw Error(c(462))}}lp();break}catch(R){Zd(t,R)}while(!0);return ia=rl=null,A.H=l,A.A=u,Tt=a,gt!==null?0:(Ut=null,xt=0,Qu(),Gt)}function lp(){for(;gt!==null&&!bu();)Fd(gt)}function Fd(t){var e=bd(t.alternate,t,ya);t.memoizedProps=t.pendingProps,e===null?pi(t):gt=e}function Pd(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=hd(a,e,e.pendingProps,e.type,void 0,xt);break;case 11:e=hd(a,e,e.pendingProps,e.type.render,e.ref,xt);break;case 5:as(e);default:Sd(a,e),e=gt=ko(e,ya),e=bd(a,e,ya)}t.memoizedProps=t.pendingProps,e===null?pi(t):gt=e}function an(t,e,a,l){ia=rl=null,as(e),Zl=null,qn=0;var u=e.return;try{if(Zy(t,u,e,a,xt)){Gt=1,ni(t,Ue(a,t.current)),gt=null;return}}catch(r){if(u!==null)throw gt=u,r;Gt=1,ni(t,Ue(a,t.current)),gt=null;return}e.flags&32768?(Ot||l===1?t=!0:Wl||(xt&536870912)!==0?t=!1:(Qa=t=!0,(l===2||l===9||l===3||l===6)&&(l=Ee.current,l!==null&&l.tag===13&&(l.flags|=16384))),$d(e,t)):pi(e)}function pi(t){var e=t;do{if((e.flags&32768)!==0){$d(e,Qa);return}t=e.return;var a=Jy(e.alternate,e,ya);if(a!==null){gt=a;return}if(e=e.sibling,e!==null){gt=e;return}gt=e=t}while(e!==null);Gt===0&&(Gt=5)}function $d(t,e){do{var a=Fy(t.alternate,t);if(a!==null){a.flags&=32767,gt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){gt=t;return}gt=t=a}while(t!==null);Gt=6,gt=null}function Wd(t,e,a,l,u,r,f,y,b){t.cancelPendingCommit=null;do gi();while(Wt!==0);if((Tt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(r=e.lanes|e.childLanes,r|=Nr,Qv(t,a,r,f,y,b),t===Ut&&(gt=Ut=null,xt=0),tn=e,Ba=t,pa=a,ws=r,Hs=u,Yd=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,rp(se,function(){return lh(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=A.T,A.T=null,u=H.p,H.p=2,f=Tt,Tt|=4;try{Py(t,e,a)}finally{Tt=f,H.p=u,A.T=l}}Wt=1,Id(),th(),eh()}}function Id(){if(Wt===1){Wt=0;var t=Ba,e=tn,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=A.T,A.T=null;var l=H.p;H.p=2;var u=Tt;Tt|=4;try{Rd(e,t);var r=Is,f=Ho(t.containerInfo),y=r.focusedElem,b=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&wo(y.ownerDocument.documentElement,y)){if(b!==null&&_r(y)){var T=b.start,R=b.end;if(R===void 0&&(R=T),"selectionStart"in y)y.selectionStart=T,y.selectionEnd=Math.min(R,y.value.length);else{var Q=y.ownerDocument||document,C=Q&&Q.defaultView||window;if(C.getSelection){var N=C.getSelection(),J=y.textContent.length,it=Math.min(b.start,J),Rt=b.end===void 0?it:Math.min(b.end,J);!N.extend&&it>Rt&&(f=Rt,Rt=it,it=f);var O=Qo(y,it),S=Qo(y,Rt);if(O&&S&&(N.rangeCount!==1||N.anchorNode!==O.node||N.anchorOffset!==O.offset||N.focusNode!==S.node||N.focusOffset!==S.offset)){var _=Q.createRange();_.setStart(O.node,O.offset),N.removeAllRanges(),it>Rt?(N.addRange(_),N.extend(S.node,S.offset)):(_.setEnd(S.node,S.offset),N.addRange(_))}}}}for(Q=[],N=y;N=N.parentNode;)N.nodeType===1&&Q.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Q.length;y++){var q=Q[y];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}zi=!!Ws,Is=Ws=null}finally{Tt=u,H.p=l,A.T=a}}t.current=e,Wt=2}}function th(){if(Wt===2){Wt=0;var t=Ba,e=tn,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=A.T,A.T=null;var l=H.p;H.p=2;var u=Tt;Tt|=4;try{Cd(t,e.alternate,e)}finally{Tt=u,H.p=l,A.T=a}}Wt=3}}function eh(){if(Wt===4||Wt===3){Wt=0,X();var t=Ba,e=tn,a=pa,l=Yd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Wt=5:(Wt=0,tn=Ba=null,ah(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Ha=null),ur(a),e=e.stateNode,Se&&typeof Se.onCommitFiberRoot=="function")try{Se.onCommitFiberRoot(pn,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=A.T,u=H.p,H.p=2,A.T=null;try{for(var r=t.onRecoverableError,f=0;f<l.length;f++){var y=l[f];r(y.value,{componentStack:y.stack})}}finally{A.T=e,H.p=u}}(pa&3)!==0&&gi(),$e(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===Bs?Wn++:(Wn=0,Bs=t):Wn=0,In(0)}}function ah(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Rn(e)))}function gi(){return Id(),th(),eh(),lh()}function lh(){if(Wt!==5)return!1;var t=Ba,e=ws;ws=0;var a=ur(pa),l=A.T,u=H.p;try{H.p=32>a?32:a,A.T=null,a=Hs,Hs=null;var r=Ba,f=pa;if(Wt=0,tn=Ba=null,pa=0,(Tt&6)!==0)throw Error(c(331));var y=Tt;if(Tt|=4,Hd(r.current),qd(r,r.current,f,a),Tt=y,In(0,!1),Se&&typeof Se.onPostCommitFiberRoot=="function")try{Se.onPostCommitFiberRoot(pn,r)}catch{}return!0}finally{H.p=u,A.T=l,ah(t,e)}}function nh(t,e,a){e=Ue(a,e),e=ps(t.stateNode,e,2),t=Da(t,e,2),t!==null&&(bn(t,2),$e(t))}function zt(t,e,a){if(t.tag===3)nh(t,t,a);else for(;e!==null;){if(e.tag===3){nh(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ha===null||!Ha.has(l))){t=Ue(a,t),a=ud(2),l=Da(e,a,2),l!==null&&(id(a,l,e,t),bn(l,2),$e(l));break}}e=e.return}}function Gs(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new Iy;var u=new Set;l.set(e,u)}else u=l.get(e),u===void 0&&(u=new Set,l.set(e,u));u.has(a)||(Us=!0,u.add(a),t=np.bind(null,t,e,a),e.then(t,t))}function np(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Ut===t&&(xt&a)===a&&(Gt===4||Gt===3&&(xt&62914560)===xt&&300>Ct()-di?(Tt&2)===0&&en(t,0):qs|=a,Il===xt&&(Il=0)),$e(t)}function uh(t,e){e===0&&(e=$c()),t=nl(t,e),t!==null&&(bn(t,e),$e(t))}function up(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),uh(t,a)}function ip(t,e){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),uh(t,a)}function rp(t,e){return mn(t,e)}var bi=null,ln=null,Xs=!1,xi=!1,Ks=!1,Ya=0;function $e(t){t!==ln&&t.next===null&&(ln===null?bi=ln=t:ln=ln.next=t),xi=!0,Xs||(Xs=!0,cp())}function In(t,e){if(!Ks&&xi){Ks=!0;do for(var a=!1,l=bi;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var r=0;else{var f=l.suspendedLanes,y=l.pingedLanes;r=(1<<31-Oe(42|t)+1)-1,r&=u&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,ch(l,r))}else r=xt,r=_u(l,l===Ut?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||gn(l,r)||(a=!0,ch(l,r));l=l.next}while(a);Ks=!1}}function sp(){ih()}function ih(){xi=Xs=!1;var t=0;Ya!==0&&bp()&&(t=Ya);for(var e=Ct(),a=null,l=bi;l!==null;){var u=l.next,r=rh(l,e);r===0?(l.next=null,a===null?bi=u:a.next=u,u===null&&(ln=a)):(a=l,(t!==0||(r&3)!==0)&&(xi=!0)),l=u}Wt!==0&&Wt!==5||In(t),Ya!==0&&(Ya=0)}function rh(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-Oe(r),y=1<<f,b=u[f];b===-1?((y&a)===0||(y&l)!==0)&&(u[f]=qv(y,e)):b<=e&&(t.expiredLanes|=y),r&=~y}if(e=Ut,a=xt,a=_u(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(Nt===2||Nt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&vn(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||gn(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&vn(l),ur(a)){case 2:case 8:a=ke;break;case 32:a=se;break;case 268435456:a=xu;break;default:a=se}return l=sh.bind(null,t),a=mn(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&vn(l),t.callbackPriority=2,t.callbackNode=null,2}function sh(t,e){if(Wt!==0&&Wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(gi()&&t.callbackNode!==a)return null;var l=xt;return l=_u(t,t===Ut?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Xd(t,l,e),rh(t,Ct()),t.callbackNode!=null&&t.callbackNode===a?sh.bind(null,t):null)}function ch(t,e){if(gi())return null;Xd(t,e,!0)}function cp(){Sp(function(){(Tt&6)!==0?mn(xe,sp):ih()})}function Zs(){if(Ya===0){var t=Gl;t===0&&(t=Su,Su<<=1,(Su&261888)===0&&(Su=256)),Ya=t}return Ya}function oh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Cu(""+t)}function fh(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function op(t,e,a,l,u){if(e==="submit"&&a&&a.stateNode===u){var r=oh((u[de]||null).action),f=l.submitter;f&&(e=(e=f[de]||null)?oh(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var y=new Du("action","action",null,l,u);t.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ya!==0){var b=f?fh(u,f):new FormData(u);fs(a,{pending:!0,data:b,method:u.method,action:r},null,b)}}else typeof r=="function"&&(y.preventDefault(),b=f?fh(u,f):new FormData(u),fs(a,{pending:!0,data:b,method:u.method,action:r},r,b))},currentTarget:u}]})}}for(var Vs=0;Vs<Cr.length;Vs++){var ks=Cr[Vs],fp=ks.toLowerCase(),dp=ks[0].toUpperCase()+ks.slice(1);Ye(fp,"on"+dp)}Ye(Yo,"onAnimationEnd"),Ye(Go,"onAnimationIteration"),Ye(Xo,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(Cy,"onTransitionRun"),Ye(Ny,"onTransitionStart"),Ye(zy,"onTransitionCancel"),Ye(Ko,"onTransitionEnd"),Cl("onMouseEnter",["mouseout","mouseover"]),Cl("onMouseLeave",["mouseout","mouseover"]),Cl("onPointerEnter",["pointerout","pointerover"]),Cl("onPointerLeave",["pointerout","pointerover"]),tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tl("onBeforeInput",["compositionend","keypress","textInput","paste"]),tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tu="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(" "),hp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(tu));function dh(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],u=l.event;l=l.listeners;t:{var r=void 0;if(e)for(var f=l.length-1;0<=f;f--){var y=l[f],b=y.instance,T=y.currentTarget;if(y=y.listener,b!==r&&u.isPropagationStopped())break t;r=y,u.currentTarget=T;try{r(u)}catch(R){qu(R)}u.currentTarget=null,r=b}else for(f=0;f<l.length;f++){if(y=l[f],b=y.instance,T=y.currentTarget,y=y.listener,b!==r&&u.isPropagationStopped())break t;r=y,u.currentTarget=T;try{r(u)}catch(R){qu(R)}u.currentTarget=null,r=b}}}}function bt(t,e){var a=e[ir];a===void 0&&(a=e[ir]=new Set);var l=t+"__bubble";a.has(l)||(hh(e,t,2,!1),a.add(l))}function Js(t,e,a){var l=0;e&&(l|=4),hh(a,t,l,e)}var Si="_reactListening"+Math.random().toString(36).slice(2);function Fs(t){if(!t[Si]){t[Si]=!0,no.forEach(function(a){a!=="selectionchange"&&(hp.has(a)||Js(a,!1,t),Js(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Si]||(e[Si]=!0,Js("selectionchange",!1,e))}}function hh(t,e,a,l){switch(Gh(e)){case 2:var u=Yp;break;case 8:u=Gp;break;default:u=oc}a=u.bind(null,e,a,t),u=void 0,!vr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),l?u!==void 0?t.addEventListener(e,a,{capture:!0,passive:u}):t.addEventListener(e,a,!0):u!==void 0?t.addEventListener(e,a,{passive:u}):t.addEventListener(e,a,!1)}function Ps(t,e,a,l,u){var r=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var y=l.stateNode.containerInfo;if(y===u)break;if(f===4)for(f=l.return;f!==null;){var b=f.tag;if((b===3||b===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;y!==null;){if(f=El(y),f===null)return;if(b=f.tag,b===5||b===6||b===26||b===27){l=r=f;continue t}y=y.parentNode}}l=l.return}po(function(){var T=r,R=hr(a),Q=[];t:{var C=Zo.get(t);if(C!==void 0){var N=Du,J=t;switch(t){case"keypress":if(zu(a)===0)break t;case"keydown":case"keyup":N=iy;break;case"focusin":J="focus",N=br;break;case"focusout":J="blur",N=br;break;case"beforeblur":case"afterblur":N=br;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=xo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=Jv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=cy;break;case Yo:case Go:case Xo:N=$v;break;case Ko:N=fy;break;case"scroll":case"scrollend":N=Vv;break;case"wheel":N=hy;break;case"copy":case"cut":case"paste":N=Iv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Oo;break;case"toggle":case"beforetoggle":N=vy}var it=(e&4)!==0,Rt=!it&&(t==="scroll"||t==="scrollend"),O=it?C!==null?C+"Capture":null:C;it=[];for(var S=T,_;S!==null;){var q=S;if(_=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||_===null||O===null||(q=On(S,O),q!=null&&it.push(eu(S,q,_))),Rt)break;S=S.return}0<it.length&&(C=new N(C,J,null,a,R),Q.push({event:C,listeners:it}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",C&&a!==dr&&(J=a.relatedTarget||a.fromElement)&&(El(J)||J[_l]))break t;if((N||C)&&(C=R.window===R?R:(C=R.ownerDocument)?C.defaultView||C.parentWindow:window,N?(J=a.relatedTarget||a.toElement,N=T,J=J?El(J):null,J!==null&&(Rt=d(J),it=J.tag,J!==Rt||it!==5&&it!==27&&it!==6)&&(J=null)):(N=null,J=T),N!==J)){if(it=xo,q="onMouseLeave",O="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(it=Oo,q="onPointerLeave",O="onPointerEnter",S="pointer"),Rt=N==null?C:Sn(N),_=J==null?C:Sn(J),C=new it(q,S+"leave",N,a,R),C.target=Rt,C.relatedTarget=_,q=null,El(R)===T&&(it=new it(O,S+"enter",J,a,R),it.target=_,it.relatedTarget=Rt,q=it),Rt=q,N&&J)e:{for(it=mp,O=N,S=J,_=0,q=O;q;q=it(q))_++;q=0;for(var lt=S;lt;lt=it(lt))q++;for(;0<_-q;)O=it(O),_--;for(;0<q-_;)S=it(S),q--;for(;_--;){if(O===S||S!==null&&O===S.alternate){it=O;break e}O=it(O),S=it(S)}it=null}else it=null;N!==null&&mh(Q,C,N,it,!1),J!==null&&Rt!==null&&mh(Q,Rt,J,it,!0)}}t:{if(C=T?Sn(T):window,N=C.nodeName&&C.nodeName.toLowerCase(),N==="select"||N==="input"&&C.type==="file")var jt=zo;else if(Co(C))if(Mo)jt=Ey;else{jt=jy;var et=Oy}else N=C.nodeName,!N||N.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?T&&fr(T.elementType)&&(jt=zo):jt=_y;if(jt&&(jt=jt(t,T))){No(Q,jt,a,R);break t}et&&et(t,C,T),t==="focusout"&&T&&C.type==="number"&&T.memoizedProps.value!=null&&or(C,"number",C.value)}switch(et=T?Sn(T):window,t){case"focusin":(Co(et)||et.contentEditable==="true")&&(Ul=et,Er=T,zn=null);break;case"focusout":zn=Er=Ul=null;break;case"mousedown":Tr=!0;break;case"contextmenu":case"mouseup":case"dragend":Tr=!1,Bo(Q,a,R);break;case"selectionchange":if(Ay)break;case"keydown":case"keyup":Bo(Q,a,R)}var mt;if(Sr)t:{switch(t){case"compositionstart":var St="onCompositionStart";break t;case"compositionend":St="onCompositionEnd";break t;case"compositionupdate":St="onCompositionUpdate";break t}St=void 0}else Rl?To(t,a)&&(St="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(St="onCompositionStart");St&&(jo&&a.locale!=="ko"&&(Rl||St!=="onCompositionStart"?St==="onCompositionEnd"&&Rl&&(mt=go()):(Ea=R,yr="value"in Ea?Ea.value:Ea.textContent,Rl=!0)),et=Oi(T,St),0<et.length&&(St=new So(St,t,null,a,R),Q.push({event:St,listeners:et}),mt?St.data=mt:(mt=Ao(a),mt!==null&&(St.data=mt)))),(mt=py?gy(t,a):by(t,a))&&(St=Oi(T,"onBeforeInput"),0<St.length&&(et=new So("onBeforeInput","beforeinput",null,a,R),Q.push({event:et,listeners:St}),et.data=mt)),op(Q,t,T,a,R)}dh(Q,e)})}function eu(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Oi(t,e){for(var a=e+"Capture",l=[];t!==null;){var u=t,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=On(t,a),u!=null&&l.unshift(eu(t,u,r)),u=On(t,e),u!=null&&l.push(eu(t,u,r))),t.tag===3)return l;t=t.return}return[]}function mp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function mh(t,e,a,l,u){for(var r=e._reactName,f=[];a!==null&&a!==l;){var y=a,b=y.alternate,T=y.stateNode;if(y=y.tag,b!==null&&b===l)break;y!==5&&y!==26&&y!==27||T===null||(b=T,u?(T=On(a,r),T!=null&&f.unshift(eu(a,T,b))):u||(T=On(a,r),T!=null&&f.push(eu(a,T,b)))),a=a.return}f.length!==0&&t.push({event:e,listeners:f})}var vp=/\r\n?/g,yp=/\u0000|\uFFFD/g;function vh(t){return(typeof t=="string"?t:""+t).replace(vp,`
`).replace(yp,"")}function yh(t,e){return e=vh(e),vh(t)===e}function Dt(t,e,a,l,u,r){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||zl(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&zl(t,""+l);break;case"className":Tu(t,"class",l);break;case"tabIndex":Tu(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Tu(t,a,l);break;case"style":vo(t,l,r);break;case"data":if(e!=="object"){Tu(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=Cu(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(a,"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 r=="function"&&(a==="formAction"?(e!=="input"&&Dt(t,e,"name",u.name,u,null),Dt(t,e,"formEncType",u.formEncType,u,null),Dt(t,e,"formMethod",u.formMethod,u,null),Dt(t,e,"formTarget",u.formTarget,u,null)):(Dt(t,e,"encType",u.encType,u,null),Dt(t,e,"method",u.method,u,null),Dt(t,e,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=Cu(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=aa);break;case"onScroll":l!=null&&bt("scroll",t);break;case"onScrollEnd":l!=null&&bt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=a}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}a=Cu(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):t.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":bt("beforetoggle",t),bt("toggle",t),Eu(t,"popover",l);break;case"xlinkActuate":ea(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ea(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ea(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ea(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ea(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ea(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ea(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ea(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ea(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Eu(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Kv.get(a)||a,Eu(t,a,l))}}function $s(t,e,a,l,u,r){switch(a){case"style":vo(t,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=a}}break;case"children":typeof l=="string"?zl(t,l):(typeof l=="number"||typeof l=="bigint")&&zl(t,""+l);break;case"onScroll":l!=null&&bt("scroll",t);break;case"onScrollEnd":l!=null&&bt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=aa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uo.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),e=a.slice(2,u?a.length-7:void 0),r=t[de]||null,r=r!=null?r[a]:null,typeof r=="function"&&t.removeEventListener(e,r,u),typeof l=="function")){typeof r!="function"&&r!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,u);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):Eu(t,a,l)}}}function ue(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":bt("error",t),bt("load",t);var l=!1,u=!1,r;for(r in a)if(a.hasOwnProperty(r)){var f=a[r];if(f!=null)switch(r){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Dt(t,e,r,f,a,null)}}u&&Dt(t,e,"srcSet",a.srcSet,a,null),l&&Dt(t,e,"src",a.src,a,null);return;case"input":bt("invalid",t);var y=r=f=u=null,b=null,T=null;for(l in a)if(a.hasOwnProperty(l)){var R=a[l];if(R!=null)switch(l){case"name":u=R;break;case"type":f=R;break;case"checked":b=R;break;case"defaultChecked":T=R;break;case"value":r=R;break;case"defaultValue":y=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,e));break;default:Dt(t,e,l,R,a,null)}}oo(t,r,y,b,T,f,u,!1);return;case"select":bt("invalid",t),l=f=r=null;for(u in a)if(a.hasOwnProperty(u)&&(y=a[u],y!=null))switch(u){case"value":r=y;break;case"defaultValue":f=y;break;case"multiple":l=y;default:Dt(t,e,u,y,a,null)}e=r,a=f,t.multiple=!!l,e!=null?Nl(t,!!l,e,!1):a!=null&&Nl(t,!!l,a,!0);return;case"textarea":bt("invalid",t),r=u=l=null;for(f in a)if(a.hasOwnProperty(f)&&(y=a[f],y!=null))switch(f){case"value":l=y;break;case"defaultValue":u=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(c(91));break;default:Dt(t,e,f,y,a,null)}ho(t,l,u,r);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(l=a[b],l!=null))switch(b){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Dt(t,e,b,l,a,null)}return;case"dialog":bt("beforetoggle",t),bt("toggle",t),bt("cancel",t),bt("close",t);break;case"iframe":case"object":bt("load",t);break;case"video":case"audio":for(l=0;l<tu.length;l++)bt(tu[l],t);break;case"image":bt("error",t),bt("load",t);break;case"details":bt("toggle",t);break;case"embed":case"source":case"link":bt("error",t),bt("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(T in a)if(a.hasOwnProperty(T)&&(l=a[T],l!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Dt(t,e,T,l,a,null)}return;default:if(fr(e)){for(R in a)a.hasOwnProperty(R)&&(l=a[R],l!==void 0&&$s(t,e,R,l,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(l=a[y],l!=null&&Dt(t,e,y,l,a,null))}function pp(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,r=null,f=null,y=null,b=null,T=null,R=null;for(N in a){var Q=a[N];if(a.hasOwnProperty(N)&&Q!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":b=Q;default:l.hasOwnProperty(N)||Dt(t,e,N,null,l,Q)}}for(var C in l){var N=l[C];if(Q=a[C],l.hasOwnProperty(C)&&(N!=null||Q!=null))switch(C){case"type":r=N;break;case"name":u=N;break;case"checked":T=N;break;case"defaultChecked":R=N;break;case"value":f=N;break;case"defaultValue":y=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(c(137,e));break;default:N!==Q&&Dt(t,e,C,N,l,Q)}}cr(t,f,y,b,T,R,r,u);return;case"select":N=f=y=C=null;for(r in a)if(b=a[r],a.hasOwnProperty(r)&&b!=null)switch(r){case"value":break;case"multiple":N=b;default:l.hasOwnProperty(r)||Dt(t,e,r,null,l,b)}for(u in l)if(r=l[u],b=a[u],l.hasOwnProperty(u)&&(r!=null||b!=null))switch(u){case"value":C=r;break;case"defaultValue":y=r;break;case"multiple":f=r;default:r!==b&&Dt(t,e,u,r,l,b)}e=y,a=f,l=N,C!=null?Nl(t,!!a,C,!1):!!l!=!!a&&(e!=null?Nl(t,!!a,e,!0):Nl(t,!!a,a?[]:"",!1));return;case"textarea":N=C=null;for(y in a)if(u=a[y],a.hasOwnProperty(y)&&u!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Dt(t,e,y,null,l,u)}for(f in l)if(u=l[f],r=a[f],l.hasOwnProperty(f)&&(u!=null||r!=null))switch(f){case"value":C=u;break;case"defaultValue":N=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==r&&Dt(t,e,f,u,l,r)}fo(t,C,N);return;case"option":for(var J in a)if(C=a[J],a.hasOwnProperty(J)&&C!=null&&!l.hasOwnProperty(J))switch(J){case"selected":t.selected=!1;break;default:Dt(t,e,J,null,l,C)}for(b in l)if(C=l[b],N=a[b],l.hasOwnProperty(b)&&C!==N&&(C!=null||N!=null))switch(b){case"selected":t.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:Dt(t,e,b,C,l,N)}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 it in a)C=a[it],a.hasOwnProperty(it)&&C!=null&&!l.hasOwnProperty(it)&&Dt(t,e,it,null,l,C);for(T in l)if(C=l[T],N=a[T],l.hasOwnProperty(T)&&C!==N&&(C!=null||N!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(c(137,e));break;default:Dt(t,e,T,C,l,N)}return;default:if(fr(e)){for(var Rt in a)C=a[Rt],a.hasOwnProperty(Rt)&&C!==void 0&&!l.hasOwnProperty(Rt)&&$s(t,e,Rt,void 0,l,C);for(R in l)C=l[R],N=a[R],!l.hasOwnProperty(R)||C===N||C===void 0&&N===void 0||$s(t,e,R,C,l,N);return}}for(var O in a)C=a[O],a.hasOwnProperty(O)&&C!=null&&!l.hasOwnProperty(O)&&Dt(t,e,O,null,l,C);for(Q in l)C=l[Q],N=a[Q],!l.hasOwnProperty(Q)||C===N||C==null&&N==null||Dt(t,e,Q,C,l,N)}function ph(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function gp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var u=a[l],r=u.transferSize,f=u.initiatorType,y=u.duration;if(r&&y&&ph(f)){for(f=0,y=u.responseEnd,l+=1;l<a.length;l++){var b=a[l],T=b.startTime;if(T>y)break;var R=b.transferSize,Q=b.initiatorType;R&&ph(Q)&&(b=b.responseEnd,f+=R*(b<y?1:(y-T)/(b-T)))}if(--l,e+=8*(r+f)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ws=null,Is=null;function ji(t){return t.nodeType===9?t:t.ownerDocument}function gh(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 bh(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 tc(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 ec=null;function bp(){var t=window.event;return t&&t.type==="popstate"?t===ec?!1:(ec=t,!0):(ec=null,!1)}var xh=typeof setTimeout=="function"?setTimeout:void 0,xp=typeof clearTimeout=="function"?clearTimeout:void 0,Sh=typeof Promise=="function"?Promise:void 0,Sp=typeof queueMicrotask=="function"?queueMicrotask:typeof Sh<"u"?function(t){return Sh.resolve(null).then(t).catch(Op)}:xh;function Op(t){setTimeout(function(){throw t})}function Ga(t){return t==="head"}function Oh(t,e){var a=e,l=0;do{var u=a.nextSibling;if(t.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(l===0){t.removeChild(u),sn(e);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")au(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,au(a);for(var r=a.firstChild;r;){var f=r.nextSibling,y=r.nodeName;r[xn]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=f}}else a==="body"&&au(t.ownerDocument.body);a=u}while(a);sn(e)}function jh(t,e){var a=t;t=0;do{var l=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=l}while(a)}function ac(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ac(a),rr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function jp(t,e,a,l){for(;t.nodeType===1;){var u=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[xn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=Be(t.nextSibling),t===null)break}return null}function _p(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Be(t.nextSibling),t===null))return null;return t}function _h(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Be(t.nextSibling),t===null))return null;return t}function lc(t){return t.data==="$?"||t.data==="$~"}function nc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Ep(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Be(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==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var uc=null;function Eh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Be(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function Th(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function Ah(t,e,a){switch(e=ji(a),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function au(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);rr(t)}var Le=new Map,Ch=new Set;function _i(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ga=H.d;H.d={f:Tp,r:Ap,D:Cp,C:Np,L:zp,m:Mp,X:Rp,S:Dp,M:Up};function Tp(){var t=ga.f(),e=vi();return t||e}function Ap(t){var e=Tl(t);e!==null&&e.tag===5&&e.type==="form"?Zf(e):ga.r(t)}var nn=typeof document>"u"?null:document;function Nh(t,e,a){var l=nn;if(l&&typeof e=="string"&&e){var u=De(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Ch.has(u)||(Ch.add(u),t={rel:t,crossOrigin:a,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),ue(e,"link",t),It(e),l.head.appendChild(e)))}}function Cp(t){ga.D(t),Nh("dns-prefetch",t,null)}function Np(t,e){ga.C(t,e),Nh("preconnect",t,e)}function zp(t,e,a){ga.L(t,e,a);var l=nn;if(l&&t&&e){var u='link[rel="preload"][as="'+De(e)+'"]';e==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+De(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+De(a.imageSizes)+'"]')):u+='[href="'+De(t)+'"]';var r=u;switch(e){case"style":r=un(t);break;case"script":r=rn(t)}Le.has(r)||(t=j({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Le.set(r,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(lu(r))||e==="script"&&l.querySelector(nu(r))||(e=l.createElement("link"),ue(e,"link",t),It(e),l.head.appendChild(e)))}}function Mp(t,e){ga.m(t,e);var a=nn;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+De(l)+'"][href="'+De(t)+'"]',r=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=rn(t)}if(!Le.has(r)&&(t=j({rel:"modulepreload",href:t},e),Le.set(r,t),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(nu(r)))return}l=a.createElement("link"),ue(l,"link",t),It(l),a.head.appendChild(l)}}}function Dp(t,e,a){ga.S(t,e,a);var l=nn;if(l&&t){var u=Al(l).hoistableStyles,r=un(t);e=e||"default";var f=u.get(r);if(!f){var y={loading:0,preload:null};if(f=l.querySelector(lu(r)))y.loading=5;else{t=j({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Le.get(r))&&ic(t,a);var b=f=l.createElement("link");It(b),ue(b,"link",t),b._p=new Promise(function(T,R){b.onload=T,b.onerror=R}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Ei(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:y},u.set(r,f)}}}function Rp(t,e){ga.X(t,e);var a=nn;if(a&&t){var l=Al(a).hoistableScripts,u=rn(t),r=l.get(u);r||(r=a.querySelector(nu(u)),r||(t=j({src:t,async:!0},e),(e=Le.get(u))&&rc(t,e),r=a.createElement("script"),It(r),ue(r,"link",t),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function Up(t,e){ga.M(t,e);var a=nn;if(a&&t){var l=Al(a).hoistableScripts,u=rn(t),r=l.get(u);r||(r=a.querySelector(nu(u)),r||(t=j({src:t,async:!0,type:"module"},e),(e=Le.get(u))&&rc(t,e),r=a.createElement("script"),It(r),ue(r,"link",t),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function zh(t,e,a,l){var u=(u=st.current)?_i(u):null;if(!u)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=un(a.href),a=Al(u).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=un(a.href);var r=Al(u).hoistableStyles,f=r.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,f),(r=u.querySelector(lu(t)))&&!r._p&&(f.instance=r,f.state.loading=5),Le.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Le.set(t,a),r||qp(u,t,a,f.state))),e&&l===null)throw Error(c(528,""));return f}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=rn(a),a=Al(u).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function un(t){return'href="'+De(t)+'"'}function lu(t){return'link[rel="stylesheet"]['+t+"]"}function Mh(t){return j({},t,{"data-precedence":t.precedence,precedence:null})}function qp(t,e,a,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ue(e,"link",a),It(e),t.head.appendChild(e))}function rn(t){return'[src="'+De(t)+'"]'}function nu(t){return"script[async]"+t}function Dh(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+De(a.href)+'"]');if(l)return e.instance=l,It(l),l;var u=j({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),It(l),ue(l,"style",u),Ei(l,a.precedence,t),e.instance=l;case"stylesheet":u=un(a.href);var r=t.querySelector(lu(u));if(r)return e.state.loading|=4,e.instance=r,It(r),r;l=Mh(a),(u=Le.get(u))&&ic(l,u),r=(t.ownerDocument||t).createElement("link"),It(r);var f=r;return f._p=new Promise(function(y,b){f.onload=y,f.onerror=b}),ue(r,"link",l),e.state.loading|=4,Ei(r,a.precedence,t),e.instance=r;case"script":return r=rn(a.src),(u=t.querySelector(nu(r)))?(e.instance=u,It(u),u):(l=a,(u=Le.get(r))&&(l=j({},a),rc(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),It(u),ue(u,"link",l),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Ei(l,a.precedence,t));return e.instance}function Ei(t,e,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,r=u,f=0;f<l.length;f++){var y=l[f];if(y.dataset.precedence===e)r=y;else if(r!==u)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function ic(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function rc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ti=null;function Rh(t,e,a){if(Ti===null){var l=new Map,u=Ti=new Map;u.set(a,l)}else u=Ti,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),u=0;u<a.length;u++){var r=a[u];if(!(r[xn]||r[ee]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(e)||"";f=t+f;var y=l.get(f);y?y.push(r):l.set(f,[r])}}return l}function Uh(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function Qp(t,e,a){if(a===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 qh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function wp(t,e,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=un(l.href),r=e.querySelector(lu(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ai.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=r,It(r);return}r=e.ownerDocument||e,l=Mh(l),(u=Le.get(u))&&ic(l,u),r=r.createElement("link"),It(r);var f=r;f._p=new Promise(function(y,b){f.onload=y,f.onerror=b}),ue(r,"link",l),a.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Ai.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var sc=0;function Hp(t,e){return t.stylesheets&&t.count===0&&Ni(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var l=setTimeout(function(){if(t.stylesheets&&Ni(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&sc===0&&(sc=62500*gp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ni(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>sc?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function Ai(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ni(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ci=null;function Ni(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ci=new Map,e.forEach(Bp,t),Ci=null,Ai.call(t))}function Bp(t,e){if(!(e.state.loading&4)){var a=Ci.get(t);if(a)var l=a.get(null);else{a=new Map,Ci.set(t,a);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<u.length;r++){var f=u[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),l=f)}l&&a.set(null,l)}u=e.instance,f=u.getAttribute("data-precedence"),r=a.get(f)||l,r===l&&a.set(null,u),a.set(f,u),this.count++,l=Ai.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),r?r.parentNode.insertBefore(u,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var uu={$$typeof:At,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function Lp(t,e,a,l,u,r,f,y,b){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=lr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lr(0),this.hiddenUpdates=lr(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Qh(t,e,a,l,u,r,f,y,b,T,R,Q){return t=new Lp(t,e,a,f,b,T,R,Q,y),e=1,r===!0&&(e|=24),r=_e(3,null,null,e),t.current=r,r.stateNode=t,e=Yr(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:l,isDehydrated:a,cache:e},Zr(r),t}function wh(t){return t?(t=wl,t):wl}function Hh(t,e,a,l,u,r){u=wh(u),l.context===null?l.context=u:l.pendingContext=u,l=Ma(e),l.payload={element:a},r=r===void 0?null:r,r!==null&&(l.callback=r),a=Da(t,l,e),a!==null&&(ge(a,t,e),wn(a,t,e))}function Bh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function cc(t,e){Bh(t,e),(t=t.alternate)&&Bh(t,e)}function Lh(t){if(t.tag===13||t.tag===31){var e=nl(t,67108864);e!==null&&ge(e,t,67108864),cc(t,67108864)}}function Yh(t){if(t.tag===13||t.tag===31){var e=Ne();e=nr(e);var a=nl(t,e);a!==null&&ge(a,t,e),cc(t,e)}}var zi=!0;function Yp(t,e,a,l){var u=A.T;A.T=null;var r=H.p;try{H.p=2,oc(t,e,a,l)}finally{H.p=r,A.T=u}}function Gp(t,e,a,l){var u=A.T;A.T=null;var r=H.p;try{H.p=8,oc(t,e,a,l)}finally{H.p=r,A.T=u}}function oc(t,e,a,l){if(zi){var u=fc(l);if(u===null)Ps(t,e,l,Mi,a),Xh(t,l);else if(Kp(u,t,e,a,l))l.stopPropagation();else if(Xh(t,l),e&4&&-1<Xp.indexOf(t)){for(;u!==null;){var r=Tl(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=Ia(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var b=1<<31-Oe(f);y.entanglements[1]|=b,f&=~b}$e(r),(Tt&6)===0&&(hi=Ct()+500,In(0))}}break;case 31:case 13:y=nl(r,2),y!==null&&ge(y,r,2),vi(),cc(r,2)}if(r=fc(l),r===null&&Ps(t,e,l,Mi,a),r===u)break;u=r}u!==null&&l.stopPropagation()}else Ps(t,e,l,null,a)}}function fc(t){return t=hr(t),dc(t)}var Mi=null;function dc(t){if(Mi=null,t=El(t),t!==null){var e=d(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=h(e),t!==null)return t;t=null}else if(a===31){if(t=m(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Mi=t,null}function Gh(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(be()){case xe:return 2;case ke:return 8;case se:case yn:return 32;case xu:return 268435456;default:return 32}default:return 32}}var hc=!1,Xa=null,Ka=null,Za=null,iu=new Map,ru=new Map,Va=[],Xp="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 Xh(t,e){switch(t){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Ka=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":iu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ru.delete(e.pointerId)}}function su(t,e,a,l,u,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:r,targetContainers:[u]},e!==null&&(e=Tl(e),e!==null&&Lh(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function Kp(t,e,a,l,u){switch(e){case"focusin":return Xa=su(Xa,t,e,a,l,u),!0;case"dragenter":return Ka=su(Ka,t,e,a,l,u),!0;case"mouseover":return Za=su(Za,t,e,a,l,u),!0;case"pointerover":var r=u.pointerId;return iu.set(r,su(iu.get(r)||null,t,e,a,l,u)),!0;case"gotpointercapture":return r=u.pointerId,ru.set(r,su(ru.get(r)||null,t,e,a,l,u)),!0}return!1}function Kh(t){var e=El(t.target);if(e!==null){var a=d(e);if(a!==null){if(e=a.tag,e===13){if(e=h(a),e!==null){t.blockedOn=e,ao(t.priority,function(){Yh(a)});return}}else if(e===31){if(e=m(a),e!==null){t.blockedOn=e,ao(t.priority,function(){Yh(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Di(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=fc(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);dr=l,a.target.dispatchEvent(l),dr=null}else return e=Tl(a),e!==null&&Lh(e),t.blockedOn=a,!1;e.shift()}return!0}function Zh(t,e,a){Di(t)&&a.delete(e)}function Zp(){hc=!1,Xa!==null&&Di(Xa)&&(Xa=null),Ka!==null&&Di(Ka)&&(Ka=null),Za!==null&&Di(Za)&&(Za=null),iu.forEach(Zh),ru.forEach(Zh)}function Ri(t,e){t.blockedOn===e&&(t.blockedOn=null,hc||(hc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Zp)))}var Ui=null;function Vh(t){Ui!==t&&(Ui=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ui===t&&(Ui=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],u=t[e+2];if(typeof l!="function"){if(dc(l||a)===null)continue;break}var r=Tl(a);r!==null&&(t.splice(e,3),e-=3,fs(r,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function sn(t){function e(b){return Ri(b,t)}Xa!==null&&Ri(Xa,t),Ka!==null&&Ri(Ka,t),Za!==null&&Ri(Za,t),iu.forEach(e),ru.forEach(e);for(var a=0;a<Va.length;a++){var l=Va[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Va.length&&(a=Va[0],a.blockedOn===null);)Kh(a),a.blockedOn===null&&Va.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],r=a[l+1],f=u[de]||null;if(typeof r=="function")f||Vh(a);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(u=r,f=r[de]||null)y=f.formAction;else if(dc(u)!==null)continue}else y=f.action;typeof y=="function"?a[l+1]=y:(a.splice(l,3),l-=3),Vh(a)}}}function kh(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function mc(t){this._internalRoot=t}qi.prototype.render=mc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var a=e.current,l=Ne();Hh(a,l,t,e,null,null)},qi.prototype.unmount=mc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Hh(t.current,2,null,t,null,null),vi(),e[_l]=null}};function qi(t){this._internalRoot=t}qi.prototype.unstable_scheduleHydration=function(t){if(t){var e=eo();t={blockedOn:null,target:t,priority:e};for(var a=0;a<Va.length&&e!==0&&e<Va[a].priority;a++);Va.splice(a,0,t),a===0&&Kh(t)}};var Jh=i.version;if(Jh!=="19.2.1")throw Error(c(527,Jh,"19.2.1"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=g(e),t=t!==null?E(t):null,t=t===null?null:t.stateNode,t};var Vp={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qi.isDisabled&&Qi.supportsFiber)try{pn=Qi.inject(Vp),Se=Qi}catch{}}return ou.createRoot=function(t,e){if(!o(t))throw Error(c(299));var a=!1,l="",u=ed,r=ad,f=ld;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Qh(t,1,!1,null,null,a,l,null,u,r,f,kh),t[_l]=e.current,Fs(t),new mc(e)},ou.hydrateRoot=function(t,e,a){if(!o(t))throw Error(c(299));var l=!1,u="",r=ed,f=ad,y=ld,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),e=Qh(t,1,!0,e,a??null,l,u,b,r,f,y,kh),e.context=wh(null),a=e.current,l=Ne(),l=nr(l),u=Ma(l),u.callback=null,Da(a,u,l),a=l,e.current.lanes=a,bn(e,a),$e(e),t[_l]=e.current,Fs(t),new qi(e)},ou.version="19.2.1",ou}var nm;function u0(){if(nm)return pc.exports;nm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),pc.exports=n0(),pc.exports}var i0=u0();const r0="modulepreload",s0=function(n){return"/"+n},um={},c0=function(i,s,c){let o=Promise.resolve();if(s&&s.length>0){let v=function(g){return Promise.all(g.map(E=>Promise.resolve(E).then(j=>({status:"fulfilled",value:j}),j=>({status:"rejected",reason:j}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");o=v(s.map(g=>{if(g=s0(g),g in um)return;um[g]=!0;const E=g.endsWith(".css"),j=E?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${j}`))return;const z=document.createElement("link");if(z.rel=E?"stylesheet":r0,E||(z.as="script"),z.crossOrigin="",z.href=g,m&&z.setAttribute("nonce",m),document.head.appendChild(z),E)return new Promise((Y,Z)=>{z.addEventListener("load",Y),z.addEventListener("error",()=>Z(new Error(`Unable to preload CSS for ${g}`)))})}))}function d(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return o.then(h=>{for(const m of h||[])m.status==="rejected"&&d(m.reason);return i().catch(d)})};var xl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},gl=typeof window>"u"||"Deno"in globalThis;function re(){}function o0(n,i){return typeof n=="function"?n(i):n}function zc(n){return typeof n=="number"&&n>=0&&n!==1/0}function Um(n,i){return Math.max(n+(i||0)-Date.now(),0)}function Ja(n,i){return typeof n=="function"?n(i):n}function Ke(n,i){return typeof n=="function"?n(i):n}function im(n,i){const{type:s="all",exact:c,fetchStatus:o,predicate:d,queryKey:h,stale:m}=n;if(h){if(c){if(i.queryHash!==Lc(h,i.options))return!1}else if(!hu(i.queryKey,h))return!1}if(s!=="all"){const v=i.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||o&&o!==i.state.fetchStatus||d&&!d(i))}function rm(n,i){const{exact:s,status:c,predicate:o,mutationKey:d}=n;if(d){if(!i.options.mutationKey)return!1;if(s){if(Fa(i.options.mutationKey)!==Fa(d))return!1}else if(!hu(i.options.mutationKey,d))return!1}return!(c&&i.state.status!==c||o&&!o(i))}function Lc(n,i){return(i?.queryKeyHashFn||Fa)(n)}function Fa(n){return JSON.stringify(n,(i,s)=>Mc(s)?Object.keys(s).sort().reduce((c,o)=>(c[o]=s[o],c),{}):s)}function hu(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(s=>hu(n[s],i[s])):!1}function Yc(n,i){if(n===i)return n;const s=sm(n)&&sm(i);if(s||Mc(n)&&Mc(i)){const c=s?n:Object.keys(n),o=c.length,d=s?i:Object.keys(i),h=d.length,m=s?[]:{},v=new Set(c);let g=0;for(let E=0;E<h;E++){const j=s?E:d[E];(!s&&v.has(j)||s)&&n[j]===void 0&&i[j]===void 0?(m[j]=void 0,g++):(m[j]=Yc(n[j],i[j]),m[j]===n[j]&&n[j]!==void 0&&g++)}return o===h&&g===o?n:m}return i}function Ki(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const s in n)if(n[s]!==i[s])return!1;return!0}function sm(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Mc(n){if(!cm(n))return!1;const i=n.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!cm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function cm(n){return Object.prototype.toString.call(n)==="[object Object]"}function f0(n){return new Promise(i=>{setTimeout(i,n)})}function Dc(n,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,i):s.structuralSharing!==!1?Yc(n,i):i}function d0(n,i,s=0){const c=[...n,i];return s&&c.length>s?c.slice(1):c}function h0(n,i,s=0){const c=[i,...n];return s&&c.length>s?c.slice(0,-1):c}var ze=Symbol();function qm(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===ze?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Qm(n,i){return typeof n=="function"?n(...i):!!n}var m0=class extends xl{#e;#t;#a;constructor(){super(),this.#a=n=>{if(!gl&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Gc=new m0,v0=class extends xl{#e=!0;#t;#a;constructor(){super(),this.#a=n=>{if(!gl&&window.addEventListener){const i=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#e}},Zi=new v0;function Rc(){let n,i;const s=new Promise((o,d)=>{n=o,i=d});s.status="pending",s.catch(()=>{});function c(o){Object.assign(s,o),delete s.resolve,delete s.reject}return s.resolve=o=>{c({status:"fulfilled",value:o}),n(o)},s.reject=o=>{c({status:"rejected",reason:o}),i(o)},s}function y0(n){return Math.min(1e3*2**n,3e4)}function wm(n){return(n??"online")==="online"?Zi.isOnline():!0}var Hm=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Sc(n){return n instanceof Hm}function Bm(n){let i=!1,s=0,c=!1,o;const d=Rc(),h=U=>{c||(z(new Hm(U)),n.abort?.())},m=()=>{i=!0},v=()=>{i=!1},g=()=>Gc.isFocused()&&(n.networkMode==="always"||Zi.isOnline())&&n.canRun(),E=()=>wm(n.networkMode)&&n.canRun(),j=U=>{c||(c=!0,n.onSuccess?.(U),o?.(),d.resolve(U))},z=U=>{c||(c=!0,n.onError?.(U),o?.(),d.reject(U))},Y=()=>new Promise(U=>{o=W=>{(c||g())&&U(W)},n.onPause?.()}).then(()=>{o=void 0,c||n.onContinue?.()}),Z=()=>{if(c)return;let U;const W=s===0?n.initialPromise:void 0;try{U=W??n.fn()}catch(rt){U=Promise.reject(rt)}Promise.resolve(U).then(j).catch(rt=>{if(c)return;const vt=n.retry??(gl?0:3),At=n.retryDelay??y0,qt=typeof At=="function"?At(s,rt):At,P=vt===!0||typeof vt=="number"&&s<vt||typeof vt=="function"&&vt(s,rt);if(i||!P){z(rt);return}s++,n.onFail?.(s,rt),f0(qt).then(()=>g()?void 0:Y()).then(()=>{i?z(rt):Z()})})};return{promise:d,cancel:h,continue:()=>(o?.(),d),cancelRetry:m,continueRetry:v,canStart:E,start:()=>(E()?Z():Y().then(Z),d)}}var p0=n=>setTimeout(n,0);function g0(){let n=[],i=0,s=m=>{m()},c=m=>{m()},o=p0;const d=m=>{i?n.push(m):o(()=>{s(m)})},h=()=>{const m=n;n=[],m.length&&o(()=>{c(()=>{m.forEach(v=>{s(v)})})})};return{batch:m=>{let v;i++;try{v=m()}finally{i--,i||h()}return v},batchCalls:m=>(...v)=>{d(()=>{m(...v)})},schedule:d,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{c=m},setScheduler:m=>{o=m}}}var Xt=g0(),Lm=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zc(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(gl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},b0=class extends Lm{#e;#t;#a;#l;#n;#u;#r;constructor(n){super(),this.#r=!1,this.#u=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#l=n.client,this.#a=this.#l.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=x0(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(n){this.options={...this.#u,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,i){const s=Dc(this.state.data,n,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(n,i){this.#i({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#n?.promise;return this.#n?.cancel(n),i?i.then(re).catch(re):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Ke(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ze||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Ja(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Um(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#n&&(this.#r?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(n,i){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(n&&this.setOptions(n),!this.options.queryFn){const v=this.observers.find(g=>g.options.queryFn);v&&this.setOptions(v.options)}const s=new AbortController,c=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(this.#r=!0,s.signal)})},o=()=>{const v=qm(this.options,i),E=(()=>{const j={client:this.#l,queryKey:this.queryKey,meta:this.meta};return c(j),j})();return this.#r=!1,this.options.persister?this.options.persister(v,E,this):v(E)},h=(()=>{const v={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:o};return c(v),v})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta});const m=v=>{Sc(v)&&v.silent||this.#i({type:"error",error:v}),Sc(v)||(this.#a.config.onError?.(v,this),this.#a.config.onSettled?.(this.state.data,v,this)),this.scheduleGc()};return this.#n=Bm({initialPromise:i?.initialPromise,fn:h.fetchFn,abort:s.abort.bind(s),onSuccess:v=>{if(v===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(v)}catch(g){m(g);return}this.#a.config.onSuccess?.(v,this),this.#a.config.onSettled?.(v,this.state.error,this),this.scheduleGc()},onError:m,onFail:(v,g)=>{this.#i({type:"failed",failureCount:v,error:g})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}),this.#n.start()}#i(n){const i=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Ym(s.data,this.options),fetchMeta:n.meta??null};case"success":return this.#t=void 0,{...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const c=n.error;return Sc(c)&&c.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...s,error:c,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=i(this.state),Xt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function Ym(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wm(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function x0(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,s=i!==void 0,c=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var S0=class extends xl{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,s){const c=i.queryKey,o=i.queryHash??Lc(c,i);let d=this.get(o);return d||(d=new b0({client:n,queryKey:c,queryHash:o,options:n.defaultQueryOptions(i),state:s,defaultOptions:n.getQueryDefaults(c)}),this.add(d)),d}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Xt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(s=>im(i,s))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(s=>im(n,s)):i}notify(n){Xt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){Xt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Xt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},O0=class extends Lm{#e;#t;#a;constructor(n){super(),this.mutationId=n.mutationId,this.#t=n.mutationCache,this.#e=[],this.state=n.state||Gm(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#e.includes(n)||(this.#e.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#e=this.#e.filter(i=>i!==n),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#l({type:"continue"})};this.#a=Bm({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(o,d)=>{this.#l({type:"failed",failureCount:o,error:d})},onPause:()=>{this.#l({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",c=!this.#a.canStart();try{if(s)i();else{this.#l({type:"pending",variables:n,isPaused:c}),await this.#t.config.onMutate?.(n,this);const d=await this.options.onMutate?.(n);d!==this.state.context&&this.#l({type:"pending",context:d,variables:n,isPaused:c})}const o=await this.#a.start();return await this.#t.config.onSuccess?.(o,n,this.state.context,this),await this.options.onSuccess?.(o,n,this.state.context),await this.#t.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,n,this.state.context),this.#l({type:"success",data:o}),o}catch(o){try{throw await this.#t.config.onError?.(o,n,this.state.context,this),await this.options.onError?.(o,n,this.state.context),await this.#t.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,n,this.state.context),o}finally{this.#l({type:"error",error:o})}}finally{this.#t.runNext(this)}}#l(n){const i=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Xt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(n)}),this.#t.notify({mutation:this,type:"updated",action:n})})}};function Gm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var j0=class extends xl{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#a=0}#e;#t;#a;build(n,i,s){const c=new O0({mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(i),state:s});return this.add(c),c}add(n){this.#e.add(n);const i=wi(n);if(typeof i=="string"){const s=this.#t.get(i);s?s.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=wi(n);if(typeof i=="string"){const s=this.#t.get(i);if(s)if(s.length>1){const c=s.indexOf(n);c!==-1&&s.splice(c,1)}else s[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=wi(n);if(typeof i=="string"){const c=this.#t.get(i)?.find(o=>o.state.status==="pending");return!c||c===n}else return!0}runNext(n){const i=wi(n);return typeof i=="string"?this.#t.get(i)?.find(c=>c!==n&&c.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Xt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(s=>rm(i,s))}findAll(n={}){return this.getAll().filter(i=>rm(n,i))}notify(n){Xt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return Xt.batch(()=>Promise.all(n.map(i=>i.continue().catch(re))))}};function wi(n){return n.options.scope?.id}function Vi(n){return{onFetch:(i,s)=>{const c=i.options,o=i.fetchOptions?.meta?.fetchMore?.direction,d=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},v=0;const g=async()=>{let E=!1;const j=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>(i.signal.aborted?E=!0:i.signal.addEventListener("abort",()=>{E=!0}),i.signal)})},z=qm(i.options,i.fetchOptions),Y=async(Z,U,W)=>{if(E)return Promise.reject();if(U==null&&Z.pages.length)return Promise.resolve(Z);const vt=(()=>{const V={client:i.client,queryKey:i.queryKey,pageParam:U,direction:W?"backward":"forward",meta:i.options.meta};return j(V),V})(),At=await z(vt),{maxPages:qt}=i.options,P=W?h0:d0;return{pages:P(Z.pages,At,qt),pageParams:P(Z.pageParams,U,qt)}};if(o&&d.length){const Z=o==="backward",U=Z?Xm:Uc,W={pages:d,pageParams:h},rt=U(c,W);m=await Y(W,rt,Z)}else{const Z=n??d.length;do{const U=v===0?h[0]??c.initialPageParam:Uc(c,m);if(v>0&&U==null)break;m=await Y(m,U),v++}while(v<Z)}return m};i.options.persister?i.fetchFn=()=>i.options.persister?.(g,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=g}}}function Uc(n,{pages:i,pageParams:s}){const c=i.length-1;return i.length>0?n.getNextPageParam(i[c],i,s[c],s):void 0}function Xm(n,{pages:i,pageParams:s}){return i.length>0?n.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function _0(n,i){return i?Uc(n,i)!=null:!1}function E0(n,i){return!i||!n.getPreviousPageParam?!1:Xm(n,i)!=null}var T0=class{#e;#t;#a;#l;#n;#u;#r;#i;constructor(n={}){this.#e=n.queryCache||new S0,this.#t=n.mutationCache||new j0,this.#a=n.defaultOptions||{},this.#l=new Map,this.#n=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=Gc.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Zi.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#r?.(),this.#r=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),s=this.#e.build(this,i),c=s.state.data;return c===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Ja(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:s})=>{const c=s.data;return[i,c]})}setQueryData(n,i,s){const c=this.defaultQueryOptions({queryKey:n}),d=this.#e.get(c.queryHash)?.state.data,h=o0(i,d);if(h!==void 0)return this.#e.build(this,c).setData(h,{...s,manual:!0})}setQueriesData(n,i,s){return Xt.batch(()=>this.#e.findAll(n).map(({queryKey:c})=>[c,this.setQueryData(c,i,s)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;Xt.batch(()=>{i.findAll(n).forEach(s=>{i.remove(s)})})}resetQueries(n,i){const s=this.#e;return Xt.batch(()=>(s.findAll(n).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const s={revert:!0,...i},c=Xt.batch(()=>this.#e.findAll(n).map(o=>o.cancel(s)));return Promise.all(c).then(re).catch(re)}invalidateQueries(n,i={}){return Xt.batch(()=>(this.#e.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},c=Xt.batch(()=>this.#e.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let d=o.fetch(void 0,s);return s.throwOnError||(d=d.catch(re)),o.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(c).then(re)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const s=this.#e.build(this,i);return s.isStaleByTime(Ja(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(re).catch(re)}fetchInfiniteQuery(n){return n.behavior=Vi(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(re).catch(re)}ensureInfiniteQueryData(n){return n.behavior=Vi(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Zi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,i){this.#l.set(Fa(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#l.values()],s={};return i.forEach(c=>{hu(n,c.queryKey)&&Object.assign(s,c.defaultOptions)}),s}setMutationDefaults(n,i){this.#n.set(Fa(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#n.values()],s={};return i.forEach(c=>{hu(n,c.mutationKey)&&Object.assign(s,c.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#a.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Lc(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===ze&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},mu=class extends xl{constructor(n,i){super(),this.options=i,this.#e=n,this.#i=null,this.#r=Rc(),this.options.experimental_prefetchInRender||this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#a=void 0;#l=void 0;#n;#u;#r;#i;#h;#f;#d;#c;#o;#s;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),om(this.#t,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qc(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qc(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(n){const i=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ke(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#t.setOptions(this.options),i._defaulted&&!Ki(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const c=this.hasListeners();c&&fm(this.#t,s,this.options,i)&&this.#m(),this.updateResult(),c&&(this.#t!==s||Ke(this.options.enabled,this.#t)!==Ke(i.enabled,this.#t)||Ja(this.options.staleTime,this.#t)!==Ja(i.staleTime,this.#t))&&this.#y();const o=this.#p();c&&(this.#t!==s||Ke(this.options.enabled,this.#t)!==Ke(i.enabled,this.#t)||o!==this.#s)&&this.#g(o)}getOptimisticResult(n){const i=this.#e.getQueryCache().build(this.#e,n),s=this.createResult(i,n);return C0(this,s)&&(this.#l=s,this.#u=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#l}trackResult(n,i){return new Proxy(n,{get:(s,c)=>(this.trackProp(c),i?.(c),Reflect.get(s,c))})}trackProp(n){this.#v.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#e.defaultQueryOptions(n),s=this.#e.getQueryCache().build(this.#e,i);return s.fetch().then(()=>this.createResult(s,i))}fetch(n){return this.#m({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#m(n){this.#O();let i=this.#t.fetch(this.options,n);return n?.throwOnError||(i=i.catch(re)),i}#y(){this.#x();const n=Ja(this.options.staleTime,this.#t);if(gl||this.#l.isStale||!zc(n))return;const s=Um(this.#l.dataUpdatedAt,n)+1;this.#c=setTimeout(()=>{this.#l.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(n){this.#S(),this.#s=n,!(gl||Ke(this.options.enabled,this.#t)===!1||!zc(this.#s)||this.#s===0)&&(this.#o=setInterval(()=>{(this.options.refetchIntervalInBackground||Gc.isFocused())&&this.#m()},this.#s))}#b(){this.#y(),this.#g(this.#p())}#x(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#S(){this.#o&&(clearInterval(this.#o),this.#o=void 0)}createResult(n,i){const s=this.#t,c=this.options,o=this.#l,d=this.#n,h=this.#u,v=n!==s?n.state:this.#a,{state:g}=n;let E={...g},j=!1,z;if(i._optimisticResults){const K=this.hasListeners(),I=!K&&om(n,i),$=K&&fm(n,s,i,c);(I||$)&&(E={...E,...Ym(g.data,n.options)}),i._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:Y,errorUpdatedAt:Z,status:U}=E;z=E.data;let W=!1;if(i.placeholderData!==void 0&&z===void 0&&U==="pending"){let K;o?.isPlaceholderData&&i.placeholderData===h?.placeholderData?(K=o.data,W=!0):K=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,K!==void 0&&(U="success",z=Dc(o?.data,K,i),j=!0)}if(i.select&&z!==void 0&&!W)if(o&&z===d?.data&&i.select===this.#h)z=this.#f;else try{this.#h=i.select,z=i.select(z),z=Dc(o?.data,z,i),this.#f=z,this.#i=null}catch(K){this.#i=K}this.#i&&(Y=this.#i,z=this.#f,Z=Date.now(),U="error");const rt=E.fetchStatus==="fetching",vt=U==="pending",At=U==="error",qt=vt&&rt,P=z!==void 0,M={status:U,fetchStatus:E.fetchStatus,isPending:vt,isSuccess:U==="success",isError:At,isInitialLoading:qt,isLoading:qt,data:z,dataUpdatedAt:E.dataUpdatedAt,error:Y,errorUpdatedAt:Z,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>v.dataUpdateCount||E.errorUpdateCount>v.errorUpdateCount,isFetching:rt,isRefetching:rt&&!vt,isLoadingError:At&&!P,isPaused:E.fetchStatus==="paused",isPlaceholderData:j,isRefetchError:At&&P,isStale:Xc(n,i),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){const K=at=>{M.status==="error"?at.reject(M.error):M.data!==void 0&&at.resolve(M.data)},I=()=>{const at=this.#r=M.promise=Rc();K(at)},$=this.#r;switch($.status){case"pending":n.queryHash===s.queryHash&&K($);break;case"fulfilled":(M.status==="error"||M.data!==$.value)&&I();break;case"rejected":(M.status!=="error"||M.error!==$.reason)&&I();break}}return M}updateResult(){const n=this.#l,i=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#u=this.options,this.#n.data!==void 0&&(this.#d=this.#t),Ki(i,n))return;this.#l=i;const s=()=>{if(!n)return!0;const{notifyOnChangeProps:c}=this.options,o=typeof c=="function"?c():c;if(o==="all"||!o&&!this.#v.size)return!0;const d=new Set(o??this.#v);return this.options.throwOnError&&d.add("error"),Object.keys(this.#l).some(h=>{const m=h;return this.#l[m]!==n[m]&&d.has(m)})};this.#j({listeners:s()})}#O(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const i=this.#t;this.#t=n,this.#a=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#j(n){Xt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function A0(n,i){return Ke(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function om(n,i){return A0(n,i)||n.state.data!==void 0&&qc(n,i,i.refetchOnMount)}function qc(n,i,s){if(Ke(i.enabled,n)!==!1&&Ja(i.staleTime,n)!=="static"){const c=typeof s=="function"?s(n):s;return c==="always"||c!==!1&&Xc(n,i)}return!1}function fm(n,i,s,c){return(n!==i||Ke(c.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Xc(n,s)}function Xc(n,i){return Ke(i.enabled,n)!==!1&&n.isStaleByTime(Ja(i.staleTime,n))}function C0(n,i){return!Ki(n.getCurrentResult(),i)}function dm(n,i){const s=new Set(i);return n.filter(c=>!s.has(c))}function N0(n,i,s){const c=n.slice(0);return c[i]=s,c}var z0=class extends xl{#e;#t;#a;#l;#n;#u;#r;#i;#h=[];constructor(n,i,s){super(),this.#e=n,this.#l=s,this.#a=[],this.#n=[],this.#t=[],this.setQueries(i)}onSubscribe(){this.listeners.size===1&&this.#n.forEach(n=>{n.subscribe(i=>{this.#o(n,i)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(n=>{n.destroy()})}setQueries(n,i){this.#a=n,this.#l=i,Xt.batch(()=>{const s=this.#n,c=this.#c(this.#a);this.#h=c,c.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const o=c.map(m=>m.observer),d=o.map(m=>m.getCurrentResult()),h=o.some((m,v)=>m!==s[v]);s.length===o.length&&!h||(this.#n=o,this.#t=d,this.hasListeners()&&(dm(s,o).forEach(m=>{m.destroy()}),dm(o,s).forEach(m=>{m.subscribe(v=>{this.#o(m,v)})}),this.#s()))})}getCurrentResult(){return this.#t}getQueries(){return this.#n.map(n=>n.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(n,i){const s=this.#c(n),c=s.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[c,o=>this.#d(o??c,i),()=>this.#f(c,s)]}#f(n,i){return i.map((s,c)=>{const o=n[c];return s.defaultedQueryOptions.notifyOnChangeProps?o:s.observer.trackResult(o,d=>{i.forEach(h=>{h.observer.trackProp(d)})})})}#d(n,i){return i?((!this.#u||this.#t!==this.#i||i!==this.#r)&&(this.#r=i,this.#i=this.#t,this.#u=Yc(this.#u,i(n))),this.#u):n}#c(n){const i=new Map(this.#n.map(c=>[c.options.queryHash,c])),s=[];return n.forEach(c=>{const o=this.#e.defaultQueryOptions(c),d=i.get(o.queryHash);d?s.push({defaultedQueryOptions:o,observer:d}):s.push({defaultedQueryOptions:o,observer:new mu(this.#e,o)})}),s}#o(n,i){const s=this.#n.indexOf(n);s!==-1&&(this.#t=N0(this.#t,s,i),this.#s())}#s(){if(this.hasListeners()){const n=this.#u,i=this.#f(this.#t,this.#h),s=this.#d(i,this.#l?.combine);n!==s&&Xt.batch(()=>{this.listeners.forEach(c=>{c(this.#t)})})}}},Km=class extends mu{constructor(n,i){super(n,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(n){super.setOptions({...n,behavior:Vi()})}getOptimisticResult(n){return n.behavior=Vi(),super.getOptimisticResult(n)}fetchNextPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"backward"}}})}createResult(n,i){const{state:s}=n,c=super.createResult(n,i),{isFetching:o,isRefetching:d,isError:h,isRefetchError:m}=c,v=s.fetchMeta?.fetchMore?.direction,g=h&&v==="forward",E=o&&v==="forward",j=h&&v==="backward",z=o&&v==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:_0(i,s.data),hasPreviousPage:E0(i,s.data),isFetchNextPageError:g,isFetchingNextPage:E,isFetchPreviousPageError:j,isFetchingPreviousPage:z,isRefetchError:m&&!g&&!j,isRefetching:d&&!E&&!z}}},M0=class extends xl{#e;#t=void 0;#a;#l;constructor(i,s){super(),this.#e=i,this.setOptions(s),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const s=this.options;this.options=this.#e.defaultMutationOptions(i),Ki(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),s?.mutationKey&&this.options.mutationKey&&Fa(s.mutationKey)!==Fa(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(i){this.#n(),this.#u(i)}getCurrentResult(){return this.#t}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#n(),this.#u()}mutate(i,s){return this.#l=s,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(i)}#n(){const i=this.#a?.state??Gm();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#u(i){Xt.batch(()=>{if(this.#l&&this.hasListeners()){const s=this.#t.variables,c=this.#t.context;i?.type==="success"?(this.#l.onSuccess?.(i.data,s,c),this.#l.onSettled?.(i.data,null,s,c)):i?.type==="error"&&(this.#l.onError?.(i.error,s,c),this.#l.onSettled?.(void 0,i.error,s,c))}this.listeners.forEach(s=>{s(this.#t)})})}},Zm=w.createContext(void 0),vu=n=>{const i=w.useContext(Zm);if(n)return n;if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},D0=({client:n,children:i})=>(w.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),p.jsx(Zm.Provider,{value:n,children:i})),Vm=w.createContext(!1),km=()=>w.useContext(Vm);Vm.Provider;function R0(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var U0=w.createContext(R0()),Jm=()=>w.useContext(U0),Fm=(n,i)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(i.isReset()||(n.retryOnMount=!1))},Pm=n=>{w.useEffect(()=>{n.clearReset()},[n])},$m=({result:n,errorResetBoundary:i,throwOnError:s,query:c,suspense:o})=>n.isError&&!i.isReset()&&!n.isFetching&&c&&(o&&n.data===void 0||Qm(s,[n.error,c])),Kc=(n,i)=>i.state.data===void 0,Wm=n=>{if(n.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...c)=>i(s(...c)):i(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},Im=(n,i)=>n.isLoading&&n.isFetching&&!i,Qc=(n,i)=>n?.suspense&&i.isPending,ki=(n,i,s)=>i.fetchOptimistic(n).catch(()=>{s.clearReset()});function tv({queries:n,...i},s){const c=vu(s),o=km(),d=Jm(),h=w.useMemo(()=>n.map(U=>{const W=c.defaultQueryOptions(U);return W._optimisticResults=o?"isRestoring":"optimistic",W}),[n,c,o]);h.forEach(U=>{Wm(U),Fm(U,d)}),Pm(d);const[m]=w.useState(()=>new z0(c,h,i)),[v,g,E]=m.getOptimisticResult(h,i.combine),j=!o&&i.subscribed!==!1;w.useSyncExternalStore(w.useCallback(U=>j?m.subscribe(Xt.batchCalls(U)):re,[m,j]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),w.useEffect(()=>{m.setQueries(h,i)},[h,i,m]);const Y=v.some((U,W)=>Qc(h[W],U))?v.flatMap((U,W)=>{const rt=h[W];if(rt){const vt=new mu(c,rt);if(Qc(rt,U))return ki(rt,vt,d);Im(U,o)&&ki(rt,vt,d)}return[]}):[];if(Y.length>0)throw Promise.all(Y);const Z=v.find((U,W)=>{const rt=h[W];return rt&&$m({result:U,errorResetBoundary:d,throwOnError:rt.throwOnError,query:c.getQueryCache().get(rt.queryHash),suspense:rt.suspense})});if(Z?.error)throw Z.error;return g(E())}function Pi(n,i,s){const c=km(),o=Jm(),d=vu(s),h=d.defaultQueryOptions(n);d.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=c?"isRestoring":"optimistic",Wm(h),Fm(h,o),Pm(o);const m=!d.getQueryCache().get(h.queryHash),[v]=w.useState(()=>new i(d,h)),g=v.getOptimisticResult(h),E=!c&&n.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(j=>{const z=E?v.subscribe(Xt.batchCalls(j)):re;return v.updateResult(),z},[v,E]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),w.useEffect(()=>{v.setOptions(h)},[h,v]),Qc(h,g))throw ki(h,v,o);if($m({result:g,errorResetBoundary:o,throwOnError:h.throwOnError,query:d.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw g.error;return d.getDefaultOptions().queries?._experimental_afterQuery?.(h,g),h.experimental_prefetchInRender&&!gl&&Im(g,c)&&(m?ki(h,v,o):d.getQueryCache().get(h.queryHash)?.promise)?.catch(re).finally(()=>{v.updateResult()}),h.notifyOnChangeProps?g:v.trackResult(g)}function q0(n,i){return Pi(n,mu,i)}function Q0(n,i){return Pi({...n,enabled:!0,suspense:!0,throwOnError:Kc,placeholderData:void 0},mu,i)}function w0(n,i){return Pi({...n,enabled:!0,suspense:!0,throwOnError:Kc},Km,i)}function H0(n,i){return tv({...n,queries:n.queries.map(s=>({...s,suspense:!0,throwOnError:Kc,enabled:!0,placeholderData:void 0}))},i)}function B0(n,i){const s=vu(i);s.getQueryState(n.queryKey)||s.prefetchQuery(n)}function L0(n,i){const s=vu(i);s.getQueryState(n.queryKey)||s.prefetchInfiniteQuery(n)}function Y0(n,i){const s=vu(i),[c]=w.useState(()=>new M0(s,n));w.useEffect(()=>{c.setOptions(n)},[c,n]);const o=w.useSyncExternalStore(w.useCallback(h=>c.subscribe(Xt.batchCalls(h)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d=w.useCallback((h,m)=>{c.mutate(h,m).catch(re)},[c]);if(o.error&&Qm(c.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:d,mutateAsync:o.mutate}}function G0(n,i){return Pi(n,Km,i)}function X0(n,i){if(n instanceof RegExp)return{keys:!1,pattern:n};var s,c,o,d,h=[],m="",v=n.split("/");for(v[0]||v.shift();o=v.shift();)s=o[0],s==="*"?(h.push(s),m+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(c=o.indexOf("?",1),d=o.indexOf(".",1),h.push(o.substring(1,~c?c:~d?d:o.length)),m+=~c&&!~d?"(?:/([^/]+?))?":"/([^/]+?)",~d&&(m+=(~c?"?":"")+"\\"+o.substring(d))):m+="/"+o;return{keys:h,pattern:new RegExp("^"+m+(i?"(?=$|/)":"/?$"),"i")}}var Oc={exports:{}},jc={};/**
 * @license React
 * use-sync-external-store-shim.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 hm;function K0(){if(hm)return jc;hm=1;var n=Fi();function i(j,z){return j===z&&(j!==0||1/j===1/z)||j!==j&&z!==z}var s=typeof Object.is=="function"?Object.is:i,c=n.useState,o=n.useEffect,d=n.useLayoutEffect,h=n.useDebugValue;function m(j,z){var Y=z(),Z=c({inst:{value:Y,getSnapshot:z}}),U=Z[0].inst,W=Z[1];return d(function(){U.value=Y,U.getSnapshot=z,v(U)&&W({inst:U})},[j,Y,z]),o(function(){return v(U)&&W({inst:U}),j(function(){v(U)&&W({inst:U})})},[j]),h(Y),Y}function v(j){var z=j.getSnapshot;j=j.value;try{var Y=z();return!s(j,Y)}catch{return!0}}function g(j,z){return z()}var E=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return jc.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:E,jc}var mm;function Z0(){return mm||(mm=1,Oc.exports=K0()),Oc.exports}var V0=Z0();const k0=Rm.useInsertionEffect,J0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",F0=J0?w.useLayoutEffect:w.useEffect,P0=k0||F0,ev=n=>{const i=w.useRef([n,(...s)=>i[0](...s)]).current;return P0(()=>{i[0]=n}),i[1]},$0="popstate",Zc="pushState",Vc="replaceState",W0="hashchange",vm=[$0,Zc,Vc,W0],I0=n=>{for(const i of vm)addEventListener(i,n);return()=>{for(const i of vm)removeEventListener(i,n)}},av=(n,i)=>V0.useSyncExternalStore(I0,n,i),tg=()=>location.search,eg=({ssrSearch:n=""}={})=>av(tg,()=>n),ym=()=>location.pathname,ag=({ssrPath:n}={})=>av(ym,n?()=>n:ym),lg=(n,{replace:i=!1,state:s=null}={})=>history[i?Vc:Zc](s,"",n),ng=(n={})=>[ag(n),lg],pm=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[pm]>"u"){for(const n of[Zc,Vc]){const i=history[n];history[n]=function(){const s=i.apply(this,arguments),c=new Event(n);return c.arguments=arguments,dispatchEvent(c),s}}Object.defineProperty(window,pm,{value:!0})}const ug=(n,i)=>i.toLowerCase().indexOf(n.toLowerCase())?"~"+i:i.slice(n.length)||"/",lv=(n="")=>n==="/"?"":n,ig=(n,i)=>n[0]==="~"?n.slice(1):lv(i)+n,rg=(n="",i)=>ug(wc(lv(n)),wc(i)),sg=n=>n[0]==="?"?n.slice(1):n,wc=n=>{try{return decodeURI(n)}catch{return n}},cg=n=>wc(sg(n)),nv={hook:ng,searchHook:eg,parser:X0,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:n=>n},uv=w.createContext(nv),on=()=>w.useContext(uv),iv={},rv=w.createContext(iv),kc=()=>w.useContext(rv),$i=n=>{const[i,s]=n.hook(n);return[rg(n.base,i),ev((c,o)=>s(ig(c,n.base),o))]},og=()=>$i(on()),fg=()=>{const n=on();return cg(n.searchHook(n))},sv=(n,i,s,c)=>{const{pattern:o,keys:d}=i instanceof RegExp?{keys:!1,pattern:i}:n(i||"*",c),h=o.exec(s)||[],[m,...v]=h;return m!==void 0?[!0,(()=>{const g=d!==!1?Object.fromEntries(d.map((j,z)=>[j,v[z]])):h.groups;let E={...v};return g&&Object.assign(E,g),E})(),...c?[m]:[]]:[!1,null]},dg=({children:n,...i})=>{const s=on(),c=i.hook?nv:s;let o=c;const[d,h]=i.ssrPath?.split("?")??[];h&&(i.ssrSearch=h,i.ssrPath=d),i.hrefs=i.hrefs??i.hook?.hrefs;let m=w.useRef({}),v=m.current,g=v;for(let E in c){const j=E==="base"?c[E]+(i[E]||""):i[E]||c[E];v===g&&j!==g[E]&&(m.current=g={...g}),g[E]=j,j!==c[E]&&(o=g)}return w.createElement(uv.Provider,{value:o,children:n})},gm=({children:n,component:i},s)=>i?w.createElement(i,{params:s}):typeof n=="function"?n(s):n,hg=n=>{let i=w.useRef(iv),s=i.current;for(const c in n)n[c]!==s[c]&&(s=n);return Object.keys(n).length===0&&(s=n),i.current=s},We=({path:n,nest:i,match:s,...c})=>{const o=on(),[d]=$i(o),[h,m,v]=s??sv(o.parser,n,d,i),g=hg({...kc(),...m});if(!h)return null;const E=v?w.createElement(dg,{base:v},gm(c,g)):gm(c,g);return w.createElement(rv.Provider,{value:g,children:E})};w.forwardRef((n,i)=>{const s=on(),[c,o]=$i(s),{to:d="",href:h=d,onClick:m,asChild:v,children:g,className:E,replace:j,state:z,...Y}=n,Z=ev(W=>{W.ctrlKey||W.metaKey||W.altKey||W.shiftKey||W.button!==0||(m?.(W),W.defaultPrevented||(W.preventDefault(),o(h,n)))}),U=s.hrefs(h[0]==="~"?h.slice(1):s.base+h,s);return v&&w.isValidElement(g)?w.cloneElement(g,{onClick:Z,href:U}):w.createElement("a",{...Y,onClick:Z,href:U,className:E?.call?E(c===h):E,children:g,ref:i})});const cv=n=>Array.isArray(n)?n.flatMap(i=>cv(i&&i.type===w.Fragment?i.props.children:i)):[n],mg=({children:n,location:i})=>{const s=on(),[c]=$i(s);for(const o of cv(n)){let d=0;if(w.isValidElement(o)&&(d=sv(s.parser,o.props.path,i||c,o.props.nest))[0])return w.cloneElement(o,{match:d})}return null};function bl(n){return!!n&&!Array.isArray(n)&&typeof n=="object"}const vg=typeof Symbol=="function"&&!!Symbol.asyncIterator;function ov(n){return vg&&bl(n)&&Symbol.asyncIterator in n}var yg=Object.create,fv=Object.defineProperty,pg=Object.getOwnPropertyDescriptor,dv=Object.getOwnPropertyNames,gg=Object.getPrototypeOf,bg=Object.prototype.hasOwnProperty,yu=(n,i)=>function(){return i||(0,n[dv(n)[0]])((i={exports:{}}).exports,i),i.exports},xg=(n,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var o=dv(i),d=0,h=o.length,m;d<h;d++)m=o[d],!bg.call(n,m)&&m!==s&&fv(n,m,{get:(v=>i[v]).bind(null,m),enumerable:!(c=pg(i,m))||c.enumerable});return n},Wi=(n,i,s)=>(s=n!=null?yg(gg(n)):{},xg(fv(s,"default",{value:n,enumerable:!0}),n));const hv=()=>{},bm=n=>{Object.freeze&&Object.freeze(n)};function mv(n,i,s){var c;const o=i.join(".");return(c=s[o])!==null&&c!==void 0||(s[o]=new Proxy(hv,{get(d,h){if(!(typeof h!="string"||h==="then"))return mv(n,[...i,h],s)},apply(d,h,m){const v=i[i.length-1];let g={args:m,path:i};return v==="call"?g={args:m.length>=2?[m[1]]:[],path:i.slice(0,-1)}:v==="apply"&&(g={args:m.length>=2?m[1]:[],path:i.slice(0,-1)}),bm(g.args),bm(g.path),n(g)}})),s[o]}const Ii=n=>mv(n,[],Object.create(null)),Jc=n=>new Proxy(hv,{get(i,s){if(s!=="then")return n(s)}});var vv=yu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Sg=yu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,i){var s=vv().default;function c(o,d){if(s(o)!="object"||!o)return o;var h=o[Symbol.toPrimitive];if(h!==void 0){var m=h.call(o,d||"default");if(s(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(o)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Og=yu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,i){var s=vv().default,c=Sg();function o(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),yv=yu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,i){var s=Og();function c(o,d,h){return(d=s(d))in o?Object.defineProperty(o,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):o[d]=h,o}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Fc=yu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,i){var s=yv();function c(d,h){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);h&&(v=v.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),m.push.apply(m,v)}return m}function o(d){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?c(Object(m),!0).forEach(function(v){s(d,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):c(Object(m)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(m,v))})}return d}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}});Wi(Fc());Wi(yv());var Hi=Wi(Fc());function jg(n,i){if("error"in n){const c=i.deserialize(n.error);return{ok:!1,error:(0,Hi.default)((0,Hi.default)({},n),{},{error:c})}}return{ok:!0,result:(0,Hi.default)((0,Hi.default)({},n.result),(!n.result.type||n.result.type==="data")&&{type:"data",data:i.deserialize(n.result.data)})}}var _c=class extends Error{constructor(){super("Unable to transform response from server")}};function _g(n,i){let s;try{s=jg(n,i)}catch{throw new _c}if(!s.ok&&(!bl(s.error.error)||typeof s.error.error.code!="number"))throw new _c;if(s.ok&&!bl(s.result))throw new _c;return s}Wi(Fc());function tr(n){const i={subscribe(s){let c=null,o=!1,d=!1,h=!1;function m(){if(c===null){h=!0;return}d||(d=!0,typeof c=="function"?c():c&&c.unsubscribe())}return c=n({next(v){var g;o||(g=s.next)===null||g===void 0||g.call(s,v)},error(v){var g;o||(o=!0,(g=s.error)===null||g===void 0||g.call(s,v),m())},complete(){var v;o||(o=!0,(v=s.complete)===null||v===void 0||v.call(s),m())}}),h&&m(),{unsubscribe:m}},pipe(...s){return s.reduce(Eg,i)}};return i}function Eg(n,i){return i(n)}function Tg(n){const i=new AbortController;return new Promise((c,o)=>{let d=!1;function h(){d||(d=!0,m.unsubscribe())}i.signal.addEventListener("abort",()=>{o(i.signal.reason)});const m=n.subscribe({next(v){d=!0,c(v),h()},error(v){o(v)},complete(){i.abort(),h()}})})}var Ag=Object.create,pv=Object.defineProperty,Cg=Object.getOwnPropertyDescriptor,gv=Object.getOwnPropertyNames,Ng=Object.getPrototypeOf,zg=Object.prototype.hasOwnProperty,Pa=(n,i)=>function(){return i||(0,n[gv(n)[0]])((i={exports:{}}).exports,i),i.exports},Mg=(n,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var o=gv(i),d=0,h=o.length,m;d<h;d++)m=o[d],!zg.call(n,m)&&m!==s&&pv(n,m,{get:(v=>i[v]).bind(null,m),enumerable:!(c=Cg(i,m))||c.enumerable});return n},Sl=(n,i,s)=>(s=n!=null?Ag(Ng(n)):{},Mg(i||!n||!n.__esModule?pv(s,"default",{value:n,enumerable:!0}):s,n)),Dg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(n,i){function s(c,o){if(c==null)return{};var d={};for(var h in c)if({}.hasOwnProperty.call(c,h)){if(o.includes(h))continue;d[h]=c[h]}return d}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Rg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(n,i){var s=Dg();function c(o,d){if(o==null)return{};var h,m,v=s(o,d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(o);for(m=0;m<g.length;m++)h=g[m],d.includes(h)||{}.propertyIsEnumerable.call(o,h)&&(v[h]=o[h])}return v}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),bv=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ug=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,i){var s=bv().default;function c(o,d){if(s(o)!="object"||!o)return o;var h=o[Symbol.toPrimitive];if(h!==void 0){var m=h.call(o,d||"default");if(s(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(o)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),qg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,i){var s=bv().default,c=Ug();function o(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),Qg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,i){var s=qg();function c(o,d,h){return(d=s(d))in o?Object.defineProperty(o,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):o[d]=h,o}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),pu=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,i){var s=Qg();function c(d,h){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);h&&(v=v.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),m.push.apply(m,v)}return m}function o(d){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?c(Object(m),!0).forEach(function(v){s(d,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):c(Object(m)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(m,v))})}return d}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),wg=Sl(Rg(),1),xm=Sl(pu(),1);const Hg=["cursor","direction"];function Ie(n,i,s){const c=n.flatMap(o=>o.split("."));if(!i&&(!s||s==="any"))return c.length?[c]:[];if(s==="infinite"&&bl(i)&&("direction"in i||"cursor"in i)){const{cursor:o,direction:d}=i,h=(0,wg.default)(i,Hg);return[c,{input:h,type:"infinite"}]}return[c,(0,xm.default)((0,xm.default)({},typeof i<"u"&&i!==ze&&{input:i}),s&&s!=="any"&&{type:s})]}function Gi(n){return Ie(n,void 0,"any")}var Bg=Object.create,xv=Object.defineProperty,Lg=Object.getOwnPropertyDescriptor,Sv=Object.getOwnPropertyNames,Yg=Object.getPrototypeOf,Gg=Object.prototype.hasOwnProperty,ta=(n,i)=>function(){return i||(0,n[Sv(n)[0]])((i={exports:{}}).exports,i),i.exports},Xg=(n,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var o=Sv(i),d=0,h=o.length,m;d<h;d++)m=o[d],!Gg.call(n,m)&&m!==s&&xv(n,m,{get:(v=>i[v]).bind(null,m),enumerable:!(c=Lg(i,m))||c.enumerable});return n},Vt=(n,i,s)=>(s=n!=null?Bg(Yg(n)):{},Xg(i||!n||!n.__esModule?xv(s,"default",{value:n,enumerable:!0}):s,n)),Ov=ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Kg=ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,i){var s=Ov().default;function c(o,d){if(s(o)!="object"||!o)return o;var h=o[Symbol.toPrimitive];if(h!==void 0){var m=h.call(o,d||"default");if(s(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(o)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Zg=ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,i){var s=Ov().default,c=Kg();function o(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ol=ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,i){var s=Zg();function c(o,d,h){return(d=s(d))in o?Object.defineProperty(o,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):o[d]=h,o}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ze=ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,i){var s=Ol();function c(d,h){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);h&&(v=v.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),m.push.apply(m,v)}return m}function o(d){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?c(Object(m),!0).forEach(function(v){s(d,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):c(Object(m)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(m,v))})}return d}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}});function Vg(n){return i=>{let s=0,c=null;const o=[];function d(){c||(c=i.subscribe({next(m){for(const g of o){var v;(v=g.next)===null||v===void 0||v.call(g,m)}},error(m){for(const g of o){var v;(v=g.error)===null||v===void 0||v.call(g,m)}},complete(){for(const v of o){var m;(m=v.complete)===null||m===void 0||m.call(v)}}}))}function h(){if(s===0&&c){const m=c;c=null,m.unsubscribe()}}return tr(m=>(s++,o.push(m),d(),{unsubscribe(){s--,h();const v=o.findIndex(g=>g===m);v>-1&&o.splice(v,1)}}))}}function kg(n){let i=n;const s=[],c=h=>{i!==void 0&&h.next(i),s.push(h)},o=h=>{s.splice(s.indexOf(h),1)},d=tr(h=>(c(h),()=>{o(h)}));return d.next=h=>{if(i!==h){i=h;for(const m of s)m.next(h)}},d.get=()=>i,d}function Jg(n){return tr(i=>{function s(o=0,d=n.op){const h=n.links[o];if(!h)throw new Error("No more links to execute - did you forget to add an ending link?");return h({op:d,next(v){return s(o+1,v)}})}return s().subscribe(i)})}var Bi=Vt(Ol(),1),cn=Vt(Ze(),1);function Fg(n){return n instanceof Ji}function Pg(n){return bl(n)&&bl(n.error)&&typeof n.error.code=="number"&&typeof n.error.message=="string"}function $g(n,i){return typeof n=="string"?n:bl(n)&&typeof n.message=="string"?n.message:i}var Ji=class Xi extends Error{constructor(i,s){var c,o;const d=s?.cause;super(i,{cause:d}),(0,Bi.default)(this,"cause",void 0),(0,Bi.default)(this,"shape",void 0),(0,Bi.default)(this,"data",void 0),(0,Bi.default)(this,"meta",void 0),this.meta=s?.meta,this.cause=d,this.shape=s==null||(c=s.result)===null||c===void 0?void 0:c.error,this.data=s==null||(o=s.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Xi.prototype)}static from(i,s={}){const c=i;return Fg(c)?(s.meta&&(c.meta=(0,cn.default)((0,cn.default)({},c.meta),s.meta)),c):Pg(c)?new Xi(c.error.message,(0,cn.default)((0,cn.default)({},s),{},{result:c})):new Xi($g(c,"Unknown error"),(0,cn.default)((0,cn.default)({},s),{},{cause:c}))}};function Wg(n){const i=n;return i?"input"in i?i:{input:i,output:i}:{input:{serialize:s=>s,deserialize:s=>s},output:{serialize:s=>s,deserialize:s=>s}}}const Sm=n=>typeof n=="function";function Ig(n){if(n)return n;if(typeof window<"u"&&Sm(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Sm(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var du=Vt(Ze());function tb(n){return{url:n.url.toString(),fetch:n.fetch,transformer:Wg(n.transformer),methodOverride:n.methodOverride}}function eb(n){const i={};for(let s=0;s<n.length;s++){const c=n[s];i[s]=c}return i}const ab={query:"GET",mutation:"POST",subscription:"PATCH"};function jv(n){return"input"in n?n.transformer.input.serialize(n.input):eb(n.inputs.map(i=>n.transformer.input.serialize(i)))}const _v=n=>{const i=n.url.split("?");let c=i[0].replace(/\/$/,"")+"/"+n.path;const o=[];if(i[1]&&o.push(i[1]),"inputs"in n&&o.push("batch=1"),n.type==="query"||n.type==="subscription"){const d=jv(n);d!==void 0&&n.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(d))}`)}return o.length&&(c+="?"+o.join("&")),c},lb=n=>{if(n.type==="query"&&n.methodOverride!=="POST")return;const i=jv(n);return i!==void 0?JSON.stringify(i):void 0},nb=n=>sb((0,du.default)((0,du.default)({},n),{},{contentTypeHeader:"application/json",getUrl:_v,getBody:lb}));var ub=class extends Error{constructor(){const n="AbortError";super(n),this.name=n,this.message=n}};const ib=n=>{var i;if(n?.aborted)throw(i=n.throwIfAborted)===null||i===void 0||i.call(n),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new ub};async function rb(n){var i;ib(n.signal);const s=n.getUrl(n),c=n.getBody(n),o=(i=n.methodOverride)!==null&&i!==void 0?i:ab[n.type],d=await(async()=>{const m=await n.headers();return Symbol.iterator in m?Object.fromEntries(m):m})(),h=(0,du.default)((0,du.default)((0,du.default)({},n.contentTypeHeader&&o!=="GET"?{"content-type":n.contentTypeHeader}:{}),n.trpcAcceptHeader?{"trpc-accept":n.trpcAcceptHeader}:void 0),d);return Ig(n.fetch)(s,{method:o,signal:n.signal,body:c,headers:h})}async function sb(n){const i={},s=await rb(n);i.response=s;const c=await s.json();return i.responseJSON=c,{json:c,meta:i}}Vt(Ze(),1);const Om=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function jm(n){let i=null,s=null;const c=()=>{clearTimeout(s),s=null,i=null};function o(m){const v=[[]];let g=0;for(;;){const z=m[g];if(!z)break;const Y=v[v.length-1];if(z.aborted){var E;(E=z.reject)===null||E===void 0||E.call(z,new Error("Aborted")),g++;continue}if(n.validate(Y.concat(z).map(U=>U.key))){Y.push(z),g++;continue}if(Y.length===0){var j;(j=z.reject)===null||j===void 0||j.call(z,new Error("Input is too big for a single dispatch")),g++;continue}v.push([])}return v}function d(){const m=o(i);c();for(const v of m){if(!v.length)continue;const g={items:v};for(const j of v)j.batch=g;n.fetch(g.items.map(j=>j.key)).then(async j=>{await Promise.all(j.map(async(Y,Z)=>{const U=g.items[Z];try{var W;const vt=await Promise.resolve(Y);(W=U.resolve)===null||W===void 0||W.call(U,vt)}catch(vt){var rt;(rt=U.reject)===null||rt===void 0||rt.call(U,vt)}U.batch=null,U.reject=null,U.resolve=null}));for(const Y of g.items){var z;(z=Y.reject)===null||z===void 0||z.call(Y,new Error("Missing result")),Y.batch=null}}).catch(j=>{for(const Y of g.items){var z;(z=Y.reject)===null||z===void 0||z.call(Y,j),Y.batch=null}})}}function h(m){var v;const g={aborted:!1,key:m,batch:null,resolve:Om,reject:Om},E=new Promise((j,z)=>{var Y;g.reject=z,g.resolve=j,(Y=i)!==null&&Y!==void 0||(i=[]),i.push(g)});return(v=s)!==null&&v!==void 0||(s=setTimeout(d)),E}return{load:h}}function cb(...n){const i=new AbortController,s=n.length;let c=0;const o=()=>{++c===s&&i.abort()};for(const d of n)d?.aborted?o():d?.addEventListener("abort",o,{once:!0});return i.signal}var Li=Vt(Ze(),1);function ob(n){var i,s;const c=tb(n),o=(i=n.maxURLLength)!==null&&i!==void 0?i:1/0,d=(s=n.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const h=E=>({validate(j){if(o===1/0&&d===1/0)return!0;if(j.length>d)return!1;const z=j.map(U=>U.path).join(","),Y=j.map(U=>U.input);return _v((0,Li.default)((0,Li.default)({},c),{},{type:E,path:z,inputs:Y,signal:null})).length<=o},async fetch(j){const z=j.map(vt=>vt.path).join(","),Y=j.map(vt=>vt.input),Z=cb(...j.map(vt=>vt.signal)),U=await nb((0,Li.default)((0,Li.default)({},c),{},{path:z,inputs:Y,type:E,headers(){return n.headers?typeof n.headers=="function"?n.headers({opList:j}):n.headers:{}},signal:Z}));return(Array.isArray(U.json)?U.json:j.map(()=>U.json)).map(vt=>({meta:U.meta,json:vt}))}}),m=jm(h("query")),v=jm(h("mutation")),g={query:m,mutation:v};return({op:E})=>tr(j=>{/* istanbul ignore if -- @preserve */if(E.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const Y=g[E.type].load(E);let Z;return Y.then(U=>{Z=U;const W=_g(U.json,c.transformer.output);if(!W.ok){j.error(Ji.from(W.error,{meta:U.meta}));return}j.next({context:U.meta,result:W.result}),j.complete()}).catch(U=>{j.error(Ji.from(U,{meta:Z?.meta}))}),()=>{}})}}Vt(Ze(),1);const Ev=(n,...i)=>typeof n=="function"?n(...i):n;Vt(Ol(),1);function fb(){let n,i;return{promise:new Promise((c,o)=>{n=c,i=o}),resolve:n,reject:i}}async function db(n){const i=await Ev(n.url);if(!n.connectionParams)return i;const c=`${i.includes("?")?"&":"?"}connectionParams=1`;return i+c}async function hb(n){const i={method:"connectionParams",data:await Ev(n)};return JSON.stringify(i)}Vt(Ol(),1);var pl=Vt(Ol(),1);function mb(n){const{promise:i,resolve:s,reject:c}=fb();return n.addEventListener("open",()=>{n.removeEventListener("error",c),s()}),n.addEventListener("error",c),i}function vb(n,{intervalMs:i,pongTimeoutMs:s}){let c,o;function d(){c=setTimeout(()=>{n.send("PING"),o=setTimeout(()=>{n.close()},s)},i)}function h(){clearTimeout(c),d()}function m(){clearTimeout(o),h()}n.addEventListener("open",d),n.addEventListener("message",({data:v})=>{clearTimeout(c),d(),v==="PONG"&&m()}),n.addEventListener("close",()=>{clearTimeout(c),clearTimeout(o)})}var yb=class Hc{constructor(i){var s;if((0,pl.default)(this,"id",++Hc.connectCount),(0,pl.default)(this,"WebSocketPonyfill",void 0),(0,pl.default)(this,"urlOptions",void 0),(0,pl.default)(this,"keepAliveOpts",void 0),(0,pl.default)(this,"wsObservable",kg(null)),(0,pl.default)(this,"openPromise",null),this.WebSocketPonyfill=(s=i.WebSocketPonyfill)!==null&&s!==void 0?s:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=i.urlOptions,this.keepAliveOpts=i.keepAlive}get ws(){return this.wsObservable.get()}set ws(i){this.wsObservable.next(i)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var i=this;if(i.openPromise)return i.openPromise;i.id=++Hc.connectCount;const s=db(i.urlOptions).then(c=>new i.WebSocketPonyfill(c));i.openPromise=s.then(async c=>{i.ws=c,c.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),i.keepAliveOpts.enabled&&vb(c,i.keepAliveOpts),c.addEventListener("close",()=>{i.ws===c&&(i.ws=null)}),await mb(c),i.urlOptions.connectionParams&&c.send(await hb(i.urlOptions.connectionParams))});try{await i.openPromise}finally{i.openPromise=null}}async close(){var i=this;try{await i.openPromise}finally{var s;(s=i.ws)===null||s===void 0||s.close()}}};(0,pl.default)(yb,"connectCount",0);Vt(Ol(),1);Vt(Ze(),1);var Ec=Vt(Ol(),1),_m=Vt(Ze(),1),er=class{constructor(n){(0,Ec.default)(this,"links",void 0),(0,Ec.default)(this,"runtime",void 0),(0,Ec.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=n.links.map(i=>i(this.runtime))}$request(n){var i;return Jg({links:this.links,op:(0,_m.default)((0,_m.default)({},n),{},{context:(i=n.context)!==null&&i!==void 0?i:{},id:++this.requestId})}).pipe(Vg())}async requestAsPromise(n){var i=this;try{const s=i.$request(n);return(await Tg(s)).result.data}catch(s){throw Ji.from(s)}}query(n,i,s){return this.requestAsPromise({type:"query",path:n,input:i,context:s?.context,signal:s?.signal})}mutation(n,i,s){return this.requestAsPromise({type:"mutation",path:n,input:i,context:s?.context,signal:s?.signal})}subscription(n,i,s){return this.$request({type:"subscription",path:n,input:i,context:s.context,signal:s.signal}).subscribe({next(o){switch(o.result.type){case"state":{var d;(d=s.onConnectionStateChange)===null||d===void 0||d.call(s,o.result);break}case"started":{var h;(h=s.onStarted)===null||h===void 0||h.call(s,{context:o.context});break}case"stopped":{var m;(m=s.onStopped)===null||m===void 0||m.call(s);break}case"data":case void 0:{var v;(v=s.onData)===null||v===void 0||v.call(s,o.result.data);break}}},error(o){var d;(d=s.onError)===null||d===void 0||d.call(s,o)},complete(){var o;(o=s.onComplete)===null||o===void 0||o.call(s)}})}};const Tv=Symbol.for("trpc_untypedClient"),pb={query:"query",mutate:"mutation",subscribe:"subscription"},gb=n=>pb[n];function Av(n){const i=Ii(({path:s,args:c})=>{const o=[...s],d=gb(o.pop()),h=o.join(".");return n[d](h,...c)});return Jc(s=>s===Tv?n:i[s])}function bb(n){const i=new er(n);return Av(i)}function Pc(n){return n[Tv]}Vt(Ze(),1);Vt(Ze(),1);var xb=ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,i){function s(o){var d,h,m,v=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,m=Symbol.iterator);v--;){if(h&&(d=o[h])!=null)return d.call(o);if(m&&(d=o[m])!=null)return new c(d.call(o));h="@@asyncIterator",m="@@iterator"}throw new TypeError("Object is not async iterable")}function c(o){function d(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var m=h.done;return Promise.resolve(h.value).then(function(v){return{value:v,done:m}})}return c=function(m){this.s=m,this.n=m.next},c.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(m){var v=this.s.return;return v===void 0?Promise.resolve({value:m,done:!0}):d(v.apply(this.s,arguments))},throw:function(m){var v=this.s.return;return v===void 0?Promise.reject(m):d(v.apply(this.s,arguments))}},new c(o)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}});Vt(xb(),1);Vt(Ze(),1);var Sb=ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(n,i){function s(){var c=typeof SuppressedError=="function"?SuppressedError:function(m,v){var g=Error();return g.name="SuppressedError",g.error=m,g.suppressed=v,g},o={},d=[];function h(m,v){if(v!=null){if(Object(v)!==v)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(m)var g=v[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(g===void 0&&(g=v[Symbol.dispose||Symbol.for("Symbol.dispose")],m))var E=g;if(typeof g!="function")throw new TypeError("Object is not disposable.");E&&(g=function(){try{E.call(v)}catch(z){return Promise.reject(z)}}),d.push({v,d:g,a:m})}else m&&d.push({d:v,a:m});return v}return{e:o,u:h.bind(null,!1),a:h.bind(null,!0),d:function(){var v,g=this.e,E=0;function j(){for(;v=d.pop();)try{if(!v.a&&E===1)return E=0,d.push(v),Promise.resolve().then(j);if(v.d){var Y=v.d.call(v.v);if(v.a)return E|=2,Promise.resolve(Y).then(j,z)}else E|=1}catch(Z){return z(Z)}if(E===1)return g!==o?Promise.reject(g):Promise.resolve();if(g!==o)throw g}function z(Y){return g=g!==o?new c(Y,g):Y,j()}return j()}}}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Cv=ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(n,i){function s(c,o){this.v=c,this.k=o}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ob=ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(n,i){var s=Cv();function c(o){return new s(o,0)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),jb=ta({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(n,i){var s=Cv();function c(d){return function(){return new o(d.apply(this,arguments))}}function o(d){var h,m;function v(E,j){try{var z=d[E](j),Y=z.value,Z=Y instanceof s;Promise.resolve(Z?Y.v:Y).then(function(U){if(Z){var W=E==="return"?"return":"next";if(!Y.k||U.done)return v(W,U);U=d[W](U).value}g(z.done?"return":"normal",U)},function(U){v("throw",U)})}catch(U){g("throw",U)}}function g(E,j){switch(E){case"return":h.resolve({value:j,done:!0});break;case"throw":h.reject(j);break;default:h.resolve({value:j,done:!1})}(h=h.next)?v(h.key,h.arg):m=null}this._invoke=function(E,j){return new Promise(function(z,Y){var Z={key:E,arg:j,resolve:z,reject:Y,next:null};m?m=m.next=Z:(h=m=Z,v(E,j))})},typeof d.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(d){return this._invoke("next",d)},o.prototype.throw=function(d){return this._invoke("throw",d)},o.prototype.return=function(d){return this._invoke("return",d)},i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});Vt(Sb(),1);Vt(Ob(),1);Vt(jb(),1);Vt(Ze(),1);function _b(n){return Ii(({path:i,args:s})=>{var c;const o=[...i],d=o.pop();if(d==="useMutation")return n[d](o,...s);if(d==="_def")return{path:o};const[h,...m]=s,v=(c=m[0])!==null&&c!==void 0?c:{};return n[d](o,h,v)})}var Tc;const Eb=["client","ssrContext","ssrState","abortOnUnmount"],Tb=(Tc=w.createContext)===null||Tc===void 0?void 0:Tc.call(Rm,null),Ab=n=>{switch(n){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function Cb(n){return Ii(i=>{const s=[...i.path],c=s.pop(),o=[...i.args],d=o.shift(),h=Ab(c),m=Ie(s,d,h);return{infiniteQueryOptions:()=>n.infiniteQueryOptions(s,m,o[0]),queryOptions:()=>n.queryOptions(s,m,...o),fetch:()=>n.fetchQuery(m,...o),fetchInfinite:()=>n.fetchInfiniteQuery(m,o[0]),prefetch:()=>n.prefetchQuery(m,...o),prefetchInfinite:()=>n.prefetchInfiniteQuery(m,o[0]),ensureData:()=>n.ensureQueryData(m,...o),invalidate:()=>n.invalidateQueries(m,...o),reset:()=>n.resetQueries(m,...o),refetch:()=>n.refetchQueries(m,...o),cancel:()=>n.cancelQuery(m,...o),setData:()=>{n.setQueryData(m,o[0],o[1])},setQueriesData:()=>n.setQueriesData(m,o[0],o[1],o[2]),setInfiniteData:()=>{n.setInfiniteQueryData(m,o[0],o[1])},getData:()=>n.getQueryData(m),getInfiniteData:()=>n.getInfiniteQueryData(m),setMutationDefaults:()=>n.setMutationDefaults(Gi(s),d),getMutationDefaults:()=>n.getMutationDefaults(Gi(s)),isMutating:()=>n.isMutating({mutationKey:Gi(s)})}[c]()})}function Nb(n){const i=Av(n.client),s=Cb(n);return Jc(c=>{const o=c;return o==="client"?i:Eb.includes(o)?n[o]:s[c]})}var zb=Sl(pu(),1);function Em(n){const i=n instanceof er?n:Pc(n);return Ii(s=>{const c=s.path,o=c.join("."),[d,h]=s.args;return(0,zb.default)({queryKey:Ie(c,d,"query"),queryFn:()=>i.query(o,d,h?.trpc)},h)})}var Ac=Sl(pu(),1);function oe(n,i,s){var c;const o=n[0];let d=(c=n[1])===null||c===void 0?void 0:c.input;if(s){var h;d=(0,Ac.default)((0,Ac.default)((0,Ac.default)({},(h=d)!==null&&h!==void 0?h:{}),s.pageParam?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[o.join("."),d,i?.trpc]}var Mb=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,i){function s(o){var d,h,m,v=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,m=Symbol.iterator);v--;){if(h&&(d=o[h])!=null)return d.call(o);if(m&&(d=o[m])!=null)return new c(d.call(o));h="@@asyncIterator",m="@@iterator"}throw new TypeError("Object is not async iterable")}function c(o){function d(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var m=h.done;return Promise.resolve(h.value).then(function(v){return{value:v,done:m}})}return c=function(m){this.s=m,this.n=m.next},c.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(m){var v=this.s.return;return v===void 0?Promise.resolve({value:m,done:!0}):d(v.apply(this.s,arguments))},throw:function(m){var v=this.s.return;return v===void 0?Promise.reject(m):d(v.apply(this.s,arguments))}},new c(o)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Db=Sl(Mb(),1);function Bc(n){return{path:n.path.join(".")}}function fu(n){const i=Bc(n);return w.useMemo(()=>i,[i])}async function Nv(n,i,s){const o=i.getQueryCache().build(i,{queryKey:s});o.setState({data:[],status:"success"});const d=[];var h=!1,m=!1,v;try{for(var g=(0,Db.default)(n),E;h=!(E=await g.next()).done;h=!1){const j=E.value;d.push(j),o.setState({data:[...d]})}}catch(j){m=!0,v=j}finally{try{h&&g.return!=null&&await g.return()}finally{if(m)throw v}}return d}var Et=Sl(pu(),1);function Rb(n){const{client:i,queryClient:s}=n,c=i instanceof er?i:Pc(i);return{infiniteQueryOptions:(o,d,h)=>{var m,v;const g=((m=d[1])===null||m===void 0?void 0:m.input)===ze,E=async j=>{var z;const Y=(0,Et.default)((0,Et.default)({},h),{},{trpc:(0,Et.default)((0,Et.default)({},h?.trpc),!(h==null||(z=h.trpc)===null||z===void 0)&&z.abortOnUnmount?{signal:j.signal}:{signal:null})});return await c.query(...oe(d,Y,{direction:j.direction,pageParam:j.pageParam}))};return Object.assign((0,Et.default)((0,Et.default)({},h),{},{initialData:h?.initialData,queryKey:d,queryFn:g?ze:E,initialPageParam:(v=h?.initialCursor)!==null&&v!==void 0?v:null}),{trpc:Bc({path:o})})},queryOptions:(o,d,h)=>{var m;const v=((m=d[1])===null||m===void 0?void 0:m.input)===ze,g=async E=>{var j;const z=(0,Et.default)((0,Et.default)({},h),{},{trpc:(0,Et.default)((0,Et.default)({},h?.trpc),!(h==null||(j=h.trpc)===null||j===void 0)&&j.abortOnUnmount?{signal:E.signal}:{signal:null})}),Y=await c.query(...oe(d,z));return ov(Y)?Nv(Y,s,d):Y};return Object.assign((0,Et.default)((0,Et.default)({},h),{},{initialData:h?.initialData,queryKey:d,queryFn:v?ze:g}),{trpc:Bc({path:o})})},fetchQuery:(o,d)=>s.fetchQuery((0,Et.default)((0,Et.default)({},d),{},{queryKey:o,queryFn:()=>c.query(...oe(o,d))})),fetchInfiniteQuery:(o,d)=>{var h;return s.fetchInfiniteQuery((0,Et.default)((0,Et.default)({},d),{},{queryKey:o,queryFn:({pageParam:m,direction:v})=>c.query(...oe(o,d,{pageParam:m,direction:v})),initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}))},prefetchQuery:(o,d)=>s.prefetchQuery((0,Et.default)((0,Et.default)({},d),{},{queryKey:o,queryFn:()=>c.query(...oe(o,d))})),prefetchInfiniteQuery:(o,d)=>{var h;return s.prefetchInfiniteQuery((0,Et.default)((0,Et.default)({},d),{},{queryKey:o,queryFn:({pageParam:m,direction:v})=>c.query(...oe(o,d,{pageParam:m,direction:v})),initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}))},ensureQueryData:(o,d)=>s.ensureQueryData((0,Et.default)((0,Et.default)({},d),{},{queryKey:o,queryFn:()=>c.query(...oe(o,d))})),invalidateQueries:(o,d,h)=>s.invalidateQueries((0,Et.default)((0,Et.default)({},d),{},{queryKey:o}),h),resetQueries:(o,d,h)=>s.resetQueries((0,Et.default)((0,Et.default)({},d),{},{queryKey:o}),h),refetchQueries:(o,d,h)=>s.refetchQueries((0,Et.default)((0,Et.default)({},d),{},{queryKey:o}),h),cancelQuery:(o,d)=>s.cancelQueries({queryKey:o},d),setQueryData:(o,d,h)=>s.setQueryData(o,d,h),setQueriesData:(o,d,h,m)=>s.setQueriesData((0,Et.default)((0,Et.default)({},d),{},{queryKey:o}),h,m),getQueryData:o=>s.getQueryData(o),setInfiniteQueryData:(o,d,h)=>s.setQueryData(o,d,h),getInfiniteQueryData:o=>s.getQueryData(o),setMutationDefaults:(o,d)=>{const h=o[0],m=v=>c.mutation(...oe([h,{input:v}],n));return s.setMutationDefaults(o,typeof d=="function"?d({canonicalMutationFn:m}):d)},getMutationDefaults:o=>s.getMutationDefaults(o),isMutating:o=>s.isMutating((0,Et.default)((0,Et.default)({},o),{},{exact:!0}))}}var k=Sl(pu());const Tm=(n,i)=>new Proxy(n,{get(c,o){return i(o),c[o]}});function Ub(n){var i,s;const c=(i=void 0)!==null&&i!==void 0?i:P=>P.originalFn(),o=(s=void 0)!==null&&s!==void 0?s:Tb,d=bb,h=P=>{var V;const{abortOnUnmount:M=!1,queryClient:K,ssrContext:I}=P,[$,at]=w.useState((V=P.ssrState)!==null&&V!==void 0?V:!1),tt=P.client instanceof er?P.client:Pc(P.client),yt=w.useMemo(()=>Rb({client:tt,queryClient:K}),[tt,K]),ct=w.useMemo(()=>(0,k.default)({abortOnUnmount:M,queryClient:K,client:tt,ssrContext:I??null,ssrState:$},yt),[M,tt,yt,K,I,$]);return w.useEffect(()=>{at(ft=>ft?"mounted":!1)},[]),p.jsx(o.Provider,{value:ct,children:P.children})};function m(){const P=w.useContext(o);if(!P)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return P}function v(P,V){var M;const{queryClient:K,ssrState:I}=m();return I&&I!=="mounted"&&((M=K.getQueryCache().find({queryKey:P}))===null||M===void 0?void 0:M.state.status)==="error"?(0,k.default)({retryOnMount:!1},V):V}function g(P,V,M){var K,I,$,at,tt;const yt=m(),{abortOnUnmount:ct,client:ft,ssrState:A,queryClient:H,prefetchQuery:G}=yt,ut=Ie(P,V,"query"),ht=H.getQueryDefaults(ut),x=V===ze;typeof window>"u"&&A==="prepass"&&(M==null||(K=M.trpc)===null||K===void 0?void 0:K.ssr)!==!1&&((I=M?.enabled)!==null&&I!==void 0?I:ht?.enabled)!==!1&&!x&&!H.getQueryCache().find({queryKey:ut})&&G(ut,M);const D=v(ut,(0,k.default)((0,k.default)({},ht),M)),B=($=(at=M==null||(tt=M.trpc)===null||tt===void 0?void 0:tt.abortOnUnmount)!==null&&at!==void 0?at:void 0)!==null&&$!==void 0?$:ct,L=q0((0,k.default)((0,k.default)({},D),{},{queryKey:ut,queryFn:x?V:async F=>{const st=(0,k.default)((0,k.default)({},D),{},{trpc:(0,k.default)((0,k.default)({},D?.trpc),B?{signal:F.signal}:{signal:null})}),pt=await ft.query(...oe(ut,st));return ov(pt)?Nv(pt,H,ut):pt}}),H);return L.trpc=fu({path:P}),L}function E(P,V,M){var K,I,$;const at=m(),tt=Ie(P,V,"query"),yt=V===ze,ct=(K=(I=M==null||($=M.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&K!==void 0?K:at.abortOnUnmount;B0((0,k.default)((0,k.default)({},M),{},{queryKey:tt,queryFn:yt?V:ft=>{const A={trpc:(0,k.default)((0,k.default)({},M?.trpc),ct?{signal:ft.signal}:{})};return at.client.query(...oe(tt,A))}}))}function j(P,V,M){var K,I,$;const at=m(),tt=Ie(P,V,"query"),yt=(K=(I=M==null||($=M.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&K!==void 0?K:at.abortOnUnmount,ct=Q0((0,k.default)((0,k.default)({},M),{},{queryKey:tt,queryFn:ft=>{const A=(0,k.default)((0,k.default)({},M),{},{trpc:(0,k.default)((0,k.default)({},M?.trpc),yt?{signal:ft.signal}:{signal:null})});return at.client.query(...oe(tt,A))}}),at.queryClient);return ct.trpc=fu({path:P}),[ct.data,ct]}function z(P,V){const{client:M,queryClient:K}=m(),I=Gi(P),$=K.defaultMutationOptions(K.getMutationDefaults(I)),at=Y0((0,k.default)((0,k.default)({},V),{},{mutationKey:I,mutationFn:tt=>M.mutation(...oe([P,{input:tt}],V)),onSuccess(...tt){var yt,ct;return c({originalFn:()=>{var A,H,G;return(A=V==null||(H=V.onSuccess)===null||H===void 0?void 0:H.call(V,...tt))!==null&&A!==void 0?A:$==null||(G=$.onSuccess)===null||G===void 0?void 0:G.call($,...tt)},queryClient:K,meta:(yt=(ct=V?.meta)!==null&&ct!==void 0?ct:$?.meta)!==null&&yt!==void 0?yt:{}})}}),K);return at.trpc=fu({path:P}),at}const Y={data:void 0,error:null,status:"idle"},Z={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function U(P,V,M){var K;const I=(K=M?.enabled)!==null&&K!==void 0?K:V!==ze,$=Fa(Ie(P,V,"any")),{client:at}=m(),tt=w.useRef(M);w.useEffect(()=>{tt.current=M});const[yt]=w.useState(new Set([])),ct=w.useCallback(x=>{yt.add(x)},[yt]),ft=w.useRef(null),A=w.useCallback(x=>{const D=G.current,B=G.current=x(D);let L=!1;for(const F of yt)if(D[F]!==B[F]){L=!0;break}L&&ht(Tm(B,ct))},[ct,yt]),H=w.useCallback(()=>{var x;if((x=ft.current)===null||x===void 0||x.unsubscribe(),!I){A(()=>(0,k.default)((0,k.default)({},Y),{},{reset:H}));return}A(()=>(0,k.default)((0,k.default)({},Z),{},{reset:H}));const D=at.subscription(P.join("."),V??void 0,{onStarted:()=>{var B,L;(B=(L=tt.current).onStarted)===null||B===void 0||B.call(L),A(F=>(0,k.default)((0,k.default)({},F),{},{status:"pending",error:null}))},onData:B=>{var L,F;(L=(F=tt.current).onData)===null||L===void 0||L.call(F,B),A(st=>(0,k.default)((0,k.default)({},st),{},{status:"pending",data:B,error:null}))},onError:B=>{var L,F;(L=(F=tt.current).onError)===null||L===void 0||L.call(F,B),A(st=>(0,k.default)((0,k.default)({},st),{},{status:"error",error:B}))},onConnectionStateChange:B=>{A(L=>{switch(B.state){case"idle":return(0,k.default)((0,k.default)({},L),{},{status:B.state,error:null,data:void 0});case"connecting":return(0,k.default)((0,k.default)({},L),{},{error:B.error,status:B.state});case"pending":return L}})},onComplete:()=>{var B,L;(B=(L=tt.current).onComplete)===null||B===void 0||B.call(L),A(F=>(0,k.default)((0,k.default)({},F),{},{status:"idle",error:null,data:void 0}))}});ft.current=D},[at,$,I,A]);w.useEffect(()=>(H(),()=>{var x;(x=ft.current)===null||x===void 0||x.unsubscribe()}),[H]);const G=w.useRef(I?(0,k.default)((0,k.default)({},Z),{},{reset:H}):(0,k.default)((0,k.default)({},Y),{},{reset:H})),[ut,ht]=w.useState(Tm(G.current,ct));return ut}function W(P,V,M){var K,I,$,at,tt;const{client:yt,ssrState:ct,prefetchInfiniteQuery:ft,queryClient:A,abortOnUnmount:H}=m(),G=Ie(P,V,"infinite"),ut=A.getQueryDefaults(G),ht=V===ze;typeof window>"u"&&ct==="prepass"&&(M==null||(K=M.trpc)===null||K===void 0?void 0:K.ssr)!==!1&&((I=M?.enabled)!==null&&I!==void 0?I:ut?.enabled)!==!1&&!ht&&!A.getQueryCache().find({queryKey:G})&&ft(G,(0,k.default)((0,k.default)({},ut),M));const x=v(G,(0,k.default)((0,k.default)({},ut),M)),D=($=M==null||(at=M.trpc)===null||at===void 0?void 0:at.abortOnUnmount)!==null&&$!==void 0?$:H,B=G0((0,k.default)((0,k.default)({},x),{},{initialPageParam:(tt=M.initialCursor)!==null&&tt!==void 0?tt:null,persister:M.persister,queryKey:G,queryFn:ht?V:L=>{var F;const st=(0,k.default)((0,k.default)({},x),{},{trpc:(0,k.default)((0,k.default)({},x?.trpc),D?{signal:L.signal}:{signal:null})});return yt.query(...oe(G,st,{pageParam:(F=L.pageParam)!==null&&F!==void 0?F:M.initialCursor,direction:L.direction}))}}),A);return B.trpc=fu({path:P}),B}function rt(P,V,M){var K,I,$;const at=m(),tt=Ie(P,V,"infinite"),yt=at.queryClient.getQueryDefaults(tt),ct=V===ze,ft=v(tt,(0,k.default)((0,k.default)({},yt),M)),A=(K=M==null||(I=M.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&K!==void 0?K:at.abortOnUnmount;L0((0,k.default)((0,k.default)({},M),{},{initialPageParam:($=M.initialCursor)!==null&&$!==void 0?$:null,queryKey:tt,queryFn:ct?V:H=>{var G;const ut=(0,k.default)((0,k.default)({},ft),{},{trpc:(0,k.default)((0,k.default)({},ft?.trpc),A?{signal:H.signal}:{})});return at.client.query(...oe(tt,ut,{pageParam:(G=H.pageParam)!==null&&G!==void 0?G:M.initialCursor,direction:H.direction}))}}))}function vt(P,V,M){var K,I,$;const at=m(),tt=Ie(P,V,"infinite"),yt=at.queryClient.getQueryDefaults(tt),ct=v(tt,(0,k.default)((0,k.default)({},yt),M)),ft=(K=M==null||(I=M.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&K!==void 0?K:at.abortOnUnmount,A=w0((0,k.default)((0,k.default)({},M),{},{initialPageParam:($=M.initialCursor)!==null&&$!==void 0?$:null,queryKey:tt,queryFn:H=>{var G;const ut=(0,k.default)((0,k.default)({},ct),{},{trpc:(0,k.default)((0,k.default)({},ct?.trpc),ft?{signal:H.signal}:{})});return at.client.query(...oe(tt,ut,{pageParam:(G=H.pageParam)!==null&&G!==void 0?G:M.initialCursor,direction:H.direction}))}}),at.queryClient);return A.trpc=fu({path:P}),[A.data,A]}return{Provider:h,createClient:d,useContext:m,useUtils:m,useQuery:g,usePrefetchQuery:E,useSuspenseQuery:j,useQueries:(P,V)=>{const{ssrState:M,queryClient:K,prefetchQuery:I,client:$}=m(),at=Em($),tt=P(at);if(typeof window>"u"&&M==="prepass")for(const ct of tt){var yt;const ft=ct;((yt=ft.trpc)===null||yt===void 0?void 0:yt.ssr)!==!1&&!K.getQueryCache().find({queryKey:ft.queryKey})&&I(ft.queryKey,ft)}return tv({queries:tt.map(ct=>(0,k.default)((0,k.default)({},ct),{},{queryKey:ct.queryKey})),combine:V?.combine},K)},useSuspenseQueries:P=>{const{queryClient:V,client:M}=m(),K=Em(M),I=P(K),$=H0({queries:I.map(at=>(0,k.default)((0,k.default)({},at),{},{queryFn:at.queryFn,queryKey:at.queryKey}))},V);return[$.map(at=>at.data),$]},useMutation:z,useSubscription:U,useInfiniteQuery:W,usePrefetchInfiniteQuery:rt,useSuspenseInfiniteQuery:vt}}function qb(n){const i=_b(n);return Jc(s=>s==="useContext"||s==="useUtils"?()=>{const c=n.useUtils();return w.useMemo(()=>Nb(c),[c])}:n.hasOwnProperty(s)?n[s]:i[s])}function Qb(n){const i=Ub();return qb(i)}const nt=Qb(),wb=nt.createClient({links:[ob({url:"/api/trpc"})]}),Am="/media/images/capas/capa-placeholder.svg",Cc="biblioteca_modo_exibicao";function Cm(){if(typeof window>"u")return"desktop";const n=window.innerWidth;return n<768?"mobile":n<1024?"tablet":"desktop"}function Hb(){const[n,i]=w.useState(Cm);return w.useEffect(()=>{function s(){i(Cm())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),n}function ar({livros:n,titulo:i}){const{data:s}=nt.config.obter.useQuery(),c=Hb(),[o,d]=w.useState(()=>typeof window>"u"?"grade":localStorage.getItem(Cc)||"grade");w.useEffect(()=>{s&&!localStorage.getItem(Cc)&&d(s.modoPadrao)},[s]);function h(v){d(v),localStorage.setItem(Cc,v)}const m=c==="desktop"?s?.colunasDesktop??4:c==="tablet"?s?.colunasTablet??2:null;return p.jsxs("section",{children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsx("h2",{className:"font-medium uppercase text-xs",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:i}),p.jsxs("div",{className:"flex gap-1",children:[p.jsx("button",{"aria-label":"ver em grade","aria-pressed":o==="grade",onClick:()=>h("grade"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:Nm(o==="grade"),children:p.jsx(Bb,{})}),p.jsx("button",{"aria-label":"ver em lista","aria-pressed":o==="lista",onClick:()=>h("lista"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:Nm(o==="lista"),children:p.jsx(Lb,{})})]})]}),o==="grade"?p.jsx("div",{className:"grid gap-x-5 gap-y-8",style:{gridTemplateColumns:m?`repeat(${m}, 1fr)`:"repeat(auto-fill, minmax(120px, 1fr))"},children:n.map(v=>p.jsxs("a",{href:`/livro/${v.id}`,className:"group block",children:[p.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 ease-out group-hover:-translate-y-1 group-hover:shadow-2xl",children:p.jsx("img",{src:v.capaUrl||Am,alt:v.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),p.jsx("p",{className:"text-sm mt-2 leading-snug line-clamp-2 transition-colors group-hover:text-[var(--clr-acento-400)]",style:{color:"var(--clr-branco)"},children:v.titulo}),p.jsx("p",{className:"text-xs mt-0.5",style:{color:"var(--color-text-on-dark-muted)"},children:v.autor})]},v.id))}):p.jsx("div",{className:"flex flex-col gap-2",children:n.map(v=>p.jsxs("a",{href:`/livro/${v.id}`,className:"flex gap-4 items-center p-2 rounded-md transition-colors hover:bg-white/[0.06]",style:{background:"var(--color-bg-card-dark)"},children:[p.jsx("img",{src:v.capaUrl||Am,alt:v.titulo,className:"w-12 aspect-[2/3] object-cover rounded flex-shrink-0 shadow"}),p.jsxs("div",{className:"min-w-0",children:[p.jsx("p",{className:"text-sm truncate",style:{color:"var(--clr-branco)"},children:v.titulo}),p.jsxs("p",{className:"text-xs truncate",style:{color:"var(--color-text-on-dark-muted)"},children:[v.autor,v.serie?` · ${v.serie}`:""]})]})]},v.id))})]})}function Nm(n){return{background:n?"var(--clr-acento-alpha12)":"transparent",color:n?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"}}function Bb(){return p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[p.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),p.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),p.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),p.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"})]})}function Lb(){return p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[p.jsx("rect",{x:"1",y:"2",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),p.jsx("rect",{x:"1",y:"6.75",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),p.jsx("rect",{x:"1",y:"11.5",width:"14",height:"2.5",rx:"1",fill:"currentColor"})]})}const Yb="/media/images/capas/capa-placeholder.svg",zm=6e3;function Gb({livros:n}){const[i,s]=w.useState(0),c=w.useRef(null);w.useEffect(()=>{if(!(n.length<=1))return c.current=setInterval(()=>{s(h=>(h+1)%n.length)},zm),()=>{c.current&&clearInterval(c.current)}},[n.length]);function o(h){s(h),c.current&&clearInterval(c.current),n.length>1&&(c.current=setInterval(()=>s(m=>(m+1)%n.length),zm))}if(n.length===0)return null;const d=n[i];return p.jsxs("section",{className:"mb-14 relative","aria-roledescription":"carrossel","aria-label":"livros em destaque",children:[p.jsx("div",{className:"absolute -top-16 left-1/2 -translate-x-1/2 w-72 h-72 rounded-full pointer-events-none",style:{background:"var(--gradient-accent-glow)",filter:"blur(10px)"}}),p.jsxs("div",{className:"relative rounded-2xl p-6 sm:p-8 overflow-hidden",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",boxShadow:"var(--shadow-borgonha-md)"},children:[p.jsxs("div",{className:"flex flex-col sm:flex-row gap-8",children:[p.jsx("a",{href:`/livro/${d.id}`,className:"flex-shrink-0 mx-auto sm:mx-0 group",children:p.jsx("img",{src:d.capaUrl||Yb,alt:d.titulo,className:"w-36 sm:w-44 aspect-[2/3] object-cover rounded-lg shadow-2xl transition-transform duration-300 group-hover:scale-[1.03]"},d.id)}),p.jsxs("div",{className:"flex flex-col justify-center gap-2 text-center sm:text-left min-w-0",children:[p.jsx("span",{className:"text-xs font-bold uppercase",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-caps)",color:"var(--clr-acento-400)"},children:"destaque"}),p.jsx("a",{href:`/livro/${d.id}`,className:"text-2xl sm:text-3xl font-semibold leading-tight transition-colors hover:text-[var(--clr-acento-400)]",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:d.titulo}),p.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:d.autor}),d.serie&&p.jsxs("a",{href:`/serie/${encodeURIComponent(d.serie)}`,className:"text-sm w-fit mx-auto sm:mx-0 transition-colors hover:opacity-80",style:{color:"var(--color-text-on-dark-muted)"},children:[d.serie,d.volumeNumero?` · volume ${d.volumeNumero}`:""]}),d.resumo&&p.jsx("p",{className:"text-sm mt-1 max-w-md line-clamp-3",style:{color:"var(--color-text-on-dark-muted)",lineHeight:"var(--leading-relaxed)"},children:d.resumo}),p.jsx("a",{href:`/leitor/${d.id}`,className:"btn btn-primary w-fit mx-auto sm:mx-0 mt-3",children:"ler agora"})]})]}),n.length>1&&p.jsx("div",{className:"flex justify-center gap-2 mt-6 relative z-10",children:n.map((h,m)=>p.jsx("button",{"aria-label":`ir pro destaque ${m+1}`,"aria-current":m===i,onClick:()=>o(m),className:"h-1.5 rounded-full transition-all duration-300",style:{width:m===i?"24px":"8px",background:m===i?"var(--clr-acento-400)":"rgba(255,255,255,0.25)"}},h.id))})]})]})}function fn(){const n=nt.useUtils(),{data:i,isLoading:s}=nt.auth.me.useQuery(),c=nt.auth.login.useMutation({onSuccess:()=>n.auth.me.invalidate()}),o=nt.auth.register.useMutation({onSuccess:()=>n.auth.me.invalidate()}),d=nt.auth.logout.useMutation({onSuccess:()=>n.auth.me.invalidate()}),h=i?.papel==="editor"||i?.papel==="admin";return{usuario:i,isLoading:s,login:c,registrar:o,logout:d,podePublicar:h}}function ba({buscaInicial:n=""}){const[,i]=og(),[s,c]=w.useState(n),{usuario:o,podePublicar:d}=fn(),{data:h}=nt.menu.listar.useQuery();function m(v){v.preventDefault(),s.trim()&&i(`/buscar?q=${encodeURIComponent(s.trim())}`)}return p.jsx("header",{className:"sticky top-0 z-10 backdrop-blur-sm",style:{borderBottom:"var(--border-thin)",background:"rgba(26,2,9,0.75)"},children:p.jsxs("div",{className:"flex items-center justify-between gap-3 px-5 py-4 max-w-6xl mx-auto",children:[p.jsx("a",{href:"/",className:"flex-shrink-0",children:p.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-8"})}),h&&h.length>0&&p.jsx("nav",{className:"hidden md:flex items-center gap-5 flex-shrink-0",children:h.map(v=>p.jsx("a",{href:v.url,className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:v.rotulo},v.id))}),p.jsx("form",{onSubmit:m,className:"flex-1 max-w-xs",children:p.jsx("input",{value:s,onChange:v=>c(v.target.value),placeholder:"buscar título, autor, série...",className:"w-full text-sm px-3 py-1.5 rounded-full transition-colors focus:outline-none",style:{border:"var(--border-medium)",background:"rgba(255,255,255,0.06)",color:"var(--clr-branco)"}})}),p.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:o?p.jsxs(p.Fragment,{children:[p.jsx("a",{href:"/minha-biblioteca",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:"minha biblioteca"}),d&&p.jsx("a",{href:"/admin",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:"área do editor"})]}):p.jsx("a",{href:"/entrar",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:"entrar"})})]})})}function xa(){const{data:n}=nt.menu.listar.useQuery(),i=new Date().getFullYear();return p.jsx("footer",{className:"mt-16",style:{background:"var(--clr-borgonha-900)",borderTop:"var(--border-thin)"},children:p.jsxs("div",{className:"max-w-6xl mx-auto px-5 py-12",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between gap-8",children:[p.jsxs("div",{children:[p.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-7 mb-3"}),p.jsx("p",{className:"text-sm max-w-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Parte do ecossistema ONFIDE — literatura cristã pensada com o mesmo cuidado hermenêutico de tudo que produzimos."})]}),n&&n.length>0&&p.jsxs("nav",{className:"flex flex-col gap-2",children:[p.jsx("span",{className:"text-xs uppercase mb-1",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"navegação"}),n.map(s=>p.jsx("a",{href:s.url,className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:s.rotulo},s.id))]}),p.jsxs("div",{className:"flex flex-col gap-2",children:[p.jsx("span",{className:"text-xs uppercase mb-1",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"ecossistema"}),p.jsx("a",{href:"https://spot.onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:"SpotOnFide"}),p.jsx("a",{href:"https://onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:"ONFIDE"})]})]}),p.jsxs("div",{className:"mt-10 pt-6 text-xs",style:{borderTop:"var(--border-thin)",color:"var(--color-text-on-dark-subtle)"},children:["© ",i," Biblioteca OnFide. Todos os direitos reservados."]})]})})}const Xb="/media/images/capas/capa-placeholder.svg";function Mm({titulo:n,itens:i}){return p.jsxs("section",{className:"mb-14",children:[p.jsx("h2",{className:"text-xs uppercase mb-4",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:n}),p.jsx("div",{className:"flex gap-4 overflow-x-auto pb-2 -mx-1 px-1",children:i.map(s=>p.jsxs("a",{href:s.href,className:"group block flex-shrink-0 w-24",children:[p.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 group-hover:-translate-y-1 group-hover:shadow-2xl",children:p.jsx("img",{src:s.capaUrl||Xb,alt:s.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),p.jsx("p",{className:"text-xs mt-2 leading-snug line-clamp-2",style:{color:"var(--clr-branco)"},children:s.titulo})]},s.id))})]})}function Kb(){const{data:n,isLoading:i}=nt.biblioteca.getCatalogo.useQuery(),{data:s}=nt.biblioteca.getDestaques.useQuery(),{data:c}=nt.auth.me.useQuery(),{data:o}=nt.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!c}),{data:d}=nt.biblioteca.favoritos.meus.useQuery(void 0,{enabled:!!c}),{data:h}=nt.biblioteca.listarSeries.useQuery(),m=new Set((s??[]).map(g=>g.id)),v=(n??[]).filter(g=>!m.has(g.id));return p.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",fontFamily:"var(--font-corpo)"},children:[p.jsx(ba,{}),p.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[i&&p.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),!i&&(!n||n.length===0)&&p.jsxs("div",{className:"rounded-lg p-10 text-center",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",color:"var(--color-text-on-dark-muted)"},children:[p.jsx("p",{className:"text-xl mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:"A estante ainda está sendo montada"}),p.jsx("p",{className:"text-sm",children:"Em breve os primeiros livros aparecem aqui."})]}),s&&s.length>0&&p.jsx(Gb,{livros:s}),o&&o.length>0&&p.jsx(Mm,{titulo:"continuar lendo",itens:o.map(g=>({id:g.livroId,titulo:g.titulo,capaUrl:g.capaUrl,href:`/leitor/${g.livroId}`}))}),d&&d.length>0&&p.jsx(Mm,{titulo:"meus favoritos",itens:d.map(g=>({id:g.livroId,titulo:g.titulo,capaUrl:g.capaUrl,href:`/livro/${g.livroId}`}))}),h&&h.length>0&&p.jsxs("section",{className:"mb-14",children:[p.jsx("h2",{className:"text-xs uppercase mb-4",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"coleções"}),p.jsx("div",{className:"flex gap-2 flex-wrap",children:h.map(g=>p.jsx("a",{href:`/serie/${encodeURIComponent(g)}`,className:"text-sm px-4 py-2 rounded-full transition-colors hover:bg-white/[0.08]",style:{border:"var(--border-medium)",color:"var(--clr-branco)"},children:g},g))})]}),v.length>0&&p.jsx(ar,{livros:v,titulo:"todos os livros"})]}),p.jsx(xa,{})]})}const Zb="/media/images/capas/capa-placeholder.svg",Lt={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},Vb=[{valor:"texto",rotulo:"Texto (DOCX → EPUB)"},{valor:"ilustrado",rotulo:"Livro ilustrado (páginas de imagem)"},{valor:"manga",rotulo:"Mangá (páginas de imagem)"},{valor:"hq",rotulo:"HQ / Graphic novel (páginas de imagem)"},{valor:"revista",rotulo:"Revista (páginas de imagem)"},{valor:"apostila",rotulo:"Apostila (DOCX → EPUB)"}],kb=["ilustrado","manga","hq","revista"],Jb=[{valor:"",rotulo:"toda a família"},{valor:"primeiros_leitores",rotulo:"primeiros leitores (0–5)"},{valor:"infantil",rotulo:"infantil (6–9)"},{valor:"pre_adolescente",rotulo:"pré-adolescente (10–12)"},{valor:"adolescente",rotulo:"adolescente (13–17)"},{valor:"jovem",rotulo:"jovem (18–29)"},{valor:"adulto",rotulo:"adulto (30+)"}];function Fb({livroExistente:n,aoTerminar:i}){const s=nt.useUtils(),c=nt.biblioteca.admin.criar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),o=nt.biblioteca.admin.atualizar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),d=nt.paginas.salvar.useMutation(),{data:h}=nt.biblioteca.getLivro.useQuery({id:n?.id??0},{enabled:!!n}),{data:m}=nt.autores.listar.useQuery(),{data:v}=nt.temas.listar.useQuery(),{data:g}=nt.colecoes.listar.useQuery(),E=nt.autores.criar.useMutation({onSuccess:()=>s.autores.listar.invalidate()}),j=nt.temas.criar.useMutation({onSuccess:()=>s.temas.listar.invalidate()}),[z,Y]=w.useState(n?.titulo??""),[Z,U]=w.useState(n?.destaque??!1),[W,rt]=w.useState(n?.subtitulo??""),[vt,At]=w.useState(n?.serie??""),[qt,P]=w.useState(n?.volumeNumero?.toString()??""),[V,M]=w.useState(n?.autor??""),[K,I]=w.useState(n?.resumo??""),[$,at]=w.useState(n?.formato??"texto"),[tt,yt]=w.useState(""),[ct,ft]=w.useState(""),[A,H]=w.useState([]),[G,ut]=w.useState([]),[ht,x]=w.useState(""),[D,B]=w.useState(""),[L,F]=w.useState(null),[st,pt]=w.useState(null),[kt,Ht]=w.useState(null),[Sa,$a]=w.useState(!1),[jl,Wa]=w.useState(null),[Ve,Oa]=w.useState(null);w.useEffect(()=>{h&&(yt(h.publicoAlvo??""),ft(h.colecaoId?.toString()??""),H(h.autores?.map(X=>X.id)??[]),ut(h.temas?.map(X=>X.id)??[]))},[h]);const fe=!!n,gu=kb.includes($);async function dn(X,Ct,be,xe={}){const ke=new FormData;ke.append(Ct,be);for(const[yn,xu]of Object.entries(xe))ke.append(yn,xu);const se=await fetch(X,{method:"POST",body:ke});if(!se.ok){const yn=await se.json().catch(()=>({}));throw new Error(yn.erro||"Falha no upload.")}return se.json()}async function hn(X){const Ct=new FormData;for(const xe of Array.from(X))Ct.append("paginas",xe);const be=await fetch("/api/admin/upload-paginas",{method:"POST",body:Ct});if(!be.ok){const xe=await be.json().catch(()=>({}));throw new Error(xe.erro||"Falha no upload das páginas.")}return(await be.json()).urls}function mn(){Y(""),rt(""),At(""),P(""),M(""),I(""),at("texto"),yt(""),ft(""),H([]),ut([]),F(null),pt(null),Ht(null)}async function vn(){if(!fe&&$==="texto"&&!L){Oa("Selecione o arquivo DOCX.");return}if(!fe&&gu&&!kt){Oa("Selecione as páginas (imagens).");return}Oa(null),$a(!0);try{let X,Ct,be;if(L){Wa("convertendo DOCX...");const se=await dn("/api/admin/upload-docx","arquivo",L,{titulo:z,autor:V});X=se.docxOriginalUrl,Ct=se.epubUrl}st&&(Wa("enviando capa..."),be=(await dn("/api/admin/upload-capa","imagem",st)).url);const xe={titulo:z,subtitulo:W||void 0,serie:vt||void 0,volumeNumero:qt?Number(qt):void 0,autor:V,resumo:K||void 0,destaque:Z,formato:$,publicoAlvo:tt||void 0,colecaoId:ct?Number(ct):void 0,autorIds:A,temaIds:G,...be&&{capaUrl:be},...Ct&&{epubUrl:Ct},...X&&{docxOriginalUrl:X}};let ke;if(fe?(await o.mutateAsync({id:n.id,...xe}),ke=n.id):ke=(await c.mutateAsync(xe)).id,gu&&kt){Wa(`enviando ${kt.length} páginas...`);const se=await hn(kt);await d.mutateAsync({livroId:ke,imagensUrl:se})}fe||mn(),i()}catch(X){Oa(X instanceof Error?X.message:"Erro ao salvar.")}finally{$a(!1),Wa(null)}}function bu(X,Ct,be){be(X.includes(Ct)?X.filter(xe=>xe!==Ct):[...X,Ct])}return p.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:fe?`Editando: ${n.titulo}`:"Novo livro"}),fe&&p.jsx("button",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},onClick:i,children:"cancelar edição"})]}),p.jsx("input",{className:"w-full rounded px-3 py-2",style:Lt,placeholder:"título",value:z,onChange:X=>Y(X.target.value)}),p.jsx("input",{className:"w-full rounded px-3 py-2",style:Lt,placeholder:"subtítulo (opcional)",value:W,onChange:X=>rt(X.target.value)}),p.jsxs("div",{className:"flex gap-3",children:[p.jsx("input",{className:"flex-1 rounded px-3 py-2",style:Lt,placeholder:"série (opcional)",value:vt,onChange:X=>At(X.target.value)}),p.jsx("input",{className:"w-28 rounded px-3 py-2",style:Lt,placeholder:"volume nº",value:qt,onChange:X=>P(X.target.value)})]}),p.jsx("input",{className:"w-full rounded px-3 py-2",style:Lt,placeholder:"autor (texto de exibição)",value:V,onChange:X=>M(X.target.value)}),p.jsx("textarea",{className:"w-full rounded px-3 py-2",style:Lt,placeholder:"resumo (opcional)",value:K,onChange:X=>I(X.target.value)}),p.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[p.jsxs("label",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["formato",p.jsx("select",{className:"w-full rounded px-3 py-2 mt-1",style:Lt,value:$,onChange:X=>at(X.target.value),children:Vb.map(X=>p.jsx("option",{value:X.valor,style:{color:"#000"},children:X.rotulo},X.valor))})]}),p.jsxs("label",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["público-alvo",p.jsx("select",{className:"w-full rounded px-3 py-2 mt-1",style:Lt,value:tt,onChange:X=>yt(X.target.value),children:Jb.map(X=>p.jsx("option",{value:X.valor,style:{color:"#000"},children:X.rotulo},X.valor))})]})]}),p.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["coleção (opcional)",p.jsxs("select",{className:"w-full rounded px-3 py-2 mt-1",style:Lt,value:ct,onChange:X=>ft(X.target.value),children:[p.jsx("option",{value:"",style:{color:"#000"},children:"nenhuma"}),g?.map(X=>p.jsx("option",{value:X.id,style:{color:"#000"},children:X.nome},X.id))]})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm mb-1",style:{color:"var(--color-text-on-dark-muted)"},children:"colaboradores (autor/ilustrador)"}),p.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:m?.map(X=>p.jsx("button",{type:"button",onClick:()=>bu(A,X.id,H),className:"text-xs px-3 py-1 rounded-full transition-colors",style:{border:"var(--border-medium)",background:A.includes(X.id)?"var(--clr-acento-alpha12)":"transparent",color:A.includes(X.id)?"var(--clr-acento-400)":"var(--color-text-on-dark-muted)"},children:X.nome},X.id))}),p.jsxs("div",{className:"flex gap-2",children:[p.jsx("input",{className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt,placeholder:"novo colaborador...",value:ht,onChange:X=>x(X.target.value)}),p.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:async()=>{if(!ht)return;const X=await E.mutateAsync({nome:ht});H(Ct=>[...Ct,X.id]),x("")},children:"+ adicionar"})]})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm mb-1",style:{color:"var(--color-text-on-dark-muted)"},children:"temas"}),p.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:v?.map(X=>p.jsx("button",{type:"button",onClick:()=>bu(G,X.id,ut),className:"text-xs px-3 py-1 rounded-full transition-colors",style:{border:"var(--border-medium)",background:G.includes(X.id)?"var(--clr-acento-alpha12)":"transparent",color:G.includes(X.id)?"var(--clr-acento-400)":"var(--color-text-on-dark-muted)"},children:X.nome},X.id))}),p.jsxs("div",{className:"flex gap-2",children:[p.jsx("input",{className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt,placeholder:"novo tema...",value:D,onChange:X=>B(X.target.value)}),p.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:async()=>{if(!D)return;const X=await j.mutateAsync({nome:D});ut(Ct=>[...Ct,X.id]),B("")},children:"+ adicionar"})]})]}),p.jsxs("label",{className:"flex items-center gap-2 text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[p.jsx("input",{type:"checkbox",checked:Z,onChange:X=>U(X.target.checked)}),"exibir no carrossel de destaque da Home"]}),$==="texto"||$==="apostila"?p.jsxs(p.Fragment,{children:[p.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["arquivo DOCX ",fe&&"(deixe em branco pra manter o atual)"]}),p.jsx("input",{type:"file",accept:".docx",onChange:X=>F(X.target.files?.[0]??null)})]}):p.jsxs(p.Fragment,{children:[p.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["páginas (imagens, na ordem — selecione todas de uma vez) ",fe&&"(deixe em branco pra manter as atuais)"]}),p.jsx("input",{type:"file",accept:"image/*",multiple:!0,onChange:X=>Ht(X.target.files)})]}),p.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["capa ",fe&&"(deixe em branco pra manter a atual)"]}),p.jsx("input",{type:"file",accept:"image/*",onChange:X=>pt(X.target.files?.[0]??null)}),jl&&p.jsx("p",{className:"text-sm",style:{color:"var(--clr-acento-400)"},children:jl}),Ve&&p.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:Ve}),p.jsx("button",{className:"btn btn-primary",onClick:vn,disabled:Sa||!z||!V,children:Sa?"processando...":fe?"salvar alterações":"salvar como rascunho"})]})}function Pb({aoEditar:n}){const i=nt.useUtils(),{data:s}=nt.biblioteca.admin.listar.useQuery(),[c,o]=w.useState(""),d=nt.biblioteca.admin.atualizar.useMutation({onSuccess:()=>i.biblioteca.admin.listar.invalidate()}),h=nt.biblioteca.admin.excluir.useMutation({onSuccess:()=>i.biblioteca.admin.listar.invalidate()}),m=s?.filter(g=>g.titulo.toLowerCase().includes(c.toLowerCase())||g.autor.toLowerCase().includes(c.toLowerCase()));function v(g,E){window.confirm(`Excluir "${E}" permanentemente? Essa ação não pode ser desfeita.`)&&h.mutate({id:g})}return p.jsxs("div",{className:"mt-8 space-y-3",children:[p.jsxs("div",{className:"flex items-center justify-between gap-3",children:[p.jsxs("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:["Livros ",s?`(${s.length})`:""]}),p.jsx("input",{value:c,onChange:g=>o(g.target.value),placeholder:"filtrar por título ou autor...",className:"rounded px-3 py-1.5 text-sm",style:{...Lt,maxWidth:240}})]}),p.jsxs("div",{className:"space-y-2",children:[m?.map(g=>p.jsxs("div",{className:"flex items-center gap-3 rounded-md p-2",style:{border:"var(--border-thin)"},children:[p.jsx("img",{src:g.capaUrl||Zb,alt:"",className:"w-10 aspect-[2/3] object-cover rounded flex-shrink-0"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm truncate",children:g.titulo}),p.jsxs("p",{className:"text-xs flex items-center gap-2",style:{color:"var(--color-text-on-dark-muted)"},children:[p.jsx("span",{className:"px-1.5 py-0.5 rounded",style:{background:g.status==="publicado"?"var(--clr-acento-alpha12)":"rgba(255,255,255,0.06)",color:g.status==="publicado"?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"},children:g.status}),g.epubUrl?"epub ok":"sem epub",g.serie?` · ${g.serie}`:""]})]}),p.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[p.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>n(g),children:"editar"}),p.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>d.mutate({id:g.id,status:g.status==="publicado"?"rascunho":"publicado"}),children:g.status==="publicado"?"despublicar":"publicar"}),p.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem",color:"#ff8080"},onClick:()=>v(g.id,g.titulo),children:"excluir"})]})]},g.id)),m?.length===0&&p.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum livro encontrado."})]})]})}function $b(){const{data:n}=nt.config.obter.useQuery(),i=nt.useUtils(),s=nt.config.atualizar.useMutation({onSuccess:()=>i.config.obter.invalidate()});return n?p.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[p.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Configurações de exibição"}),p.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Controla como os livros aparecem na Home. O celular sempre se ajusta sozinho — só desktop e tablet usam esse número fixo."}),p.jsxs("div",{className:"flex gap-4 items-center",children:[p.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no desktop",p.jsx("input",{type:"number",min:1,max:6,defaultValue:n.colunasDesktop,className:"w-full rounded px-3 py-2 mt-1",style:Lt,onBlur:c=>s.mutate({colunasDesktop:Number(c.target.value)})})]}),p.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no tablet",p.jsx("input",{type:"number",min:1,max:6,defaultValue:n.colunasTablet,className:"w-full rounded px-3 py-2 mt-1",style:Lt,onBlur:c=>s.mutate({colunasTablet:Number(c.target.value)})})]})]}),p.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["modo padrão pra quem visita pela primeira vez",p.jsxs("select",{defaultValue:n.modoPadrao,className:"w-full rounded px-3 py-2 mt-1",style:Lt,onChange:c=>s.mutate({modoPadrao:c.target.value}),children:[p.jsx("option",{value:"grade",style:{color:"#000"},children:"grade"}),p.jsx("option",{value:"lista",style:{color:"#000"},children:"lista"})]})]}),p.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["quantidade de slides no carrossel de destaque",p.jsx("input",{type:"number",min:1,max:10,defaultValue:n.qtdSlidesHero,className:"w-full rounded px-3 py-2 mt-1",style:Lt,onBlur:c=>s.mutate({qtdSlidesHero:Number(c.target.value)})}),p.jsx("span",{className:"block text-xs mt-1",style:{color:"var(--color-text-on-dark-subtle)"},children:'se faltar livro marcado como "destaque", completa com os mais recentes.'})]})]}):null}function Wb(){const{data:n}=nt.menu.listar.useQuery(),i=nt.useUtils(),s=nt.menu.criar.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),c=nt.menu.atualizar.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),o=nt.menu.excluir.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),[d,h]=w.useState(""),[m,v]=w.useState("");function g(){!d||!m||(s.mutate({rotulo:d,url:m,ordem:(n?.length??0)+1}),h(""),v(""))}return p.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[p.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Menu de navegação"}),p.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Aparece no topo e no rodapé do site. Deixe vazio pra não mostrar menu nenhum."}),p.jsxs("div",{className:"space-y-2",children:[n?.map(E=>p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("input",{defaultValue:E.rotulo,className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt,onBlur:j=>c.mutate({id:E.id,rotulo:j.target.value})}),p.jsx("input",{defaultValue:E.url,className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt,onBlur:j=>c.mutate({id:E.id,url:j.target.value})}),p.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>o.mutate({id:E.id}),children:"remover"})]},E.id)),n?.length===0&&p.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum item ainda."})]}),p.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[p.jsx("input",{placeholder:"rótulo (ex: Sobre)",value:d,onChange:E=>h(E.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt}),p.jsx("input",{placeholder:"url (ex: /serie/Quatro Cavalos)",value:m,onChange:E=>v(E.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt}),p.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:g,children:"+ adicionar"})]})]})}function Ib(){const{data:n}=nt.colecoes.listar.useQuery(),i=nt.useUtils(),s=nt.colecoes.criar.useMutation({onSuccess:()=>i.colecoes.listar.invalidate()}),c=nt.colecoes.atualizar.useMutation({onSuccess:()=>i.colecoes.listar.invalidate()}),o=nt.colecoes.excluir.useMutation({onSuccess:()=>i.colecoes.listar.invalidate()}),[d,h]=w.useState(""),[m,v]=w.useState("");return p.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[p.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Coleções"}),p.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:'Prateleiras temáticas (ex: "Heróis da Fé") que podem reunir várias séries ou obras avulsas — diferente de série, que é sequencial dentro de uma coleção.'}),p.jsx("div",{className:"space-y-2",children:n?.map(g=>p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("input",{defaultValue:g.nome,className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt,onBlur:E=>c.mutate({id:g.id,nome:E.target.value})}),p.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>o.mutate({id:g.id}),children:"remover"})]},g.id))}),p.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[p.jsx("input",{placeholder:"nova coleção (ex: Heróis da Fé)",value:d,onChange:g=>h(g.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt}),p.jsx("input",{placeholder:"descrição curta (opcional)",value:m,onChange:g=>v(g.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt}),p.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:()=>{d&&(s.mutate({nome:d,descricao:m||void 0}),h(""),v(""))},children:"+ adicionar"})]})]})}function tx(){const{usuario:n,isLoading:i,podePublicar:s,logout:c}=fn(),[o,d]=w.useState(null);return i?null:n?s?p.jsx("div",{className:"min-h-dvh",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:p.jsxs("div",{className:"max-w-2xl mx-auto p-6",children:[p.jsxs("div",{className:"flex justify-between items-center mb-6",children:[p.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-7"}),p.jsx("button",{style:{color:"var(--color-text-on-dark-muted)"},className:"text-sm",onClick:()=>c.mutate(),children:"sair"})]}),p.jsx(Fb,{livroExistente:o,aoTerminar:()=>d(null)},o?.id??"novo"),p.jsx(Pb,{aoEditar:d}),p.jsx($b,{}),p.jsx(Ib,{}),p.jsx(Wb,{})]})}):p.jsx("div",{className:"min-h-dvh p-6",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:"Sua conta não tem permissão de editor."}):(window.location.href="/entrar",null)}const ex="/media/images/capas/capa-placeholder.svg";function ax(){const{id:n}=kc(),i=Number(n),{data:s,isLoading:c}=nt.biblioteca.getLivro.useQuery({id:i}),{data:o}=nt.auth.me.useQuery(),{data:d}=nt.biblioteca.favoritos.status.useQuery({livroId:i},{enabled:!!o&&!Number.isNaN(i)}),h=nt.useUtils(),m=nt.biblioteca.favoritos.alternar.useMutation({onSuccess:()=>h.biblioteca.favoritos.status.invalidate({livroId:i})});return c?p.jsx("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."})}):s?p.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[p.jsx(ba,{}),p.jsxs("div",{className:"max-w-xl mx-auto px-5 pt-10 pb-16 flex-1 w-full flex flex-col items-center text-center",children:[p.jsxs("div",{className:"relative",children:[p.jsx("img",{src:s.capaUrl||ex,alt:s.titulo,style:{width:180,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-lg)",boxShadow:"var(--shadow-borgonha-md)"}}),o&&p.jsx("button",{"aria-label":"favoritar",onClick:()=>m.mutate({livroId:i}),className:"absolute -top-2 -right-2 w-9 h-9 rounded-full flex items-center justify-center",style:{background:"var(--clr-borgonha-900)",border:"var(--border-medium)",color:d?.favorito?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"},children:d?.favorito?"★":"☆"})]}),p.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",fontWeight:600,color:"var(--clr-branco)",marginTop:"1.5rem",marginBottom:"0.4rem"},children:s.titulo}),s.subtitulo&&p.jsx("p",{style:{fontSize:"0.95rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.6rem"},children:s.subtitulo}),p.jsx("p",{style:{fontSize:"0.85rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.3rem"},children:s.autor}),s.serie&&p.jsxs("a",{href:`/serie/${encodeURIComponent(s.serie)}`,className:"inline-block transition-opacity hover:opacity-80",style:{marginTop:"0.4rem",marginBottom:"1.5rem",fontSize:"0.75rem",padding:"0.35rem 0.9rem",borderRadius:"var(--radius-full)",border:"var(--border-medium)",color:"var(--clr-acento-400)"},children:[s.serie,s.volumeNumero?` · volume ${s.volumeNumero}`:""]}),s.resumo&&p.jsx("p",{style:{fontSize:"0.9rem",lineHeight:"var(--leading-relaxed)",color:"var(--color-text-on-dark-muted)",marginBottom:"2rem",maxWidth:"50ch"},children:s.resumo}),s.epubUrl?p.jsx("a",{href:`/leitor/${s.id}`,className:"btn btn-primary",style:{padding:"0.75rem 2.5rem"},children:"ler agora"}):p.jsx("p",{style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-subtle)"},children:"este livro ainda não tem um arquivo de leitura disponível."})]}),p.jsx(xa,{})]}):p.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[p.jsx(ba,{}),p.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[p.jsx("p",{style:{fontSize:"0.9rem",color:"var(--color-text-on-dark-muted)"},children:"livro não encontrado."}),p.jsx("a",{href:"/",className:"btn btn-ghost",style:{padding:"0.5rem 1.25rem"},children:"voltar pra Home"})]}),p.jsx(xa,{})]})}function lx(){const i=new URLSearchParams(fg()).get("q")||"",[s]=w.useState(i),{data:c,isLoading:o}=nt.biblioteca.buscar.useQuery({q:s},{enabled:s.length>0});return p.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[p.jsx(ba,{buscaInicial:s}),p.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[s.length===0&&p.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"digite algo pra buscar."}),o&&p.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"buscando..."}),s.length>0&&!o&&c&&c.length===0&&p.jsxs("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:['nada encontrado pra "',s,'".']}),c&&c.length>0&&p.jsx(ar,{livros:c,titulo:`resultados pra "${s}"`})]}),p.jsx(xa,{})]})}function nx(){const{nome:n}=kc(),i=decodeURIComponent(n),{data:s,isLoading:c}=nt.biblioteca.getSerie.useQuery({nome:i});return p.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[p.jsx(ba,{}),p.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[p.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",color:"var(--clr-branco)",marginBottom:"1.5rem"},children:i}),c&&p.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),s&&s.length>0?p.jsx(ar,{livros:s,titulo:`${s.length} livro${s.length>1?"s":""} nesta série`}):!c&&p.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nenhum livro publicado nesta série ainda."})]}),p.jsx(xa,{})]})}const Dm={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function ux(){const{usuario:n,isLoading:i,login:s}=fn(),[c,o]=w.useState(""),[d,h]=w.useState("");return i?null:n?(window.location.href="/minha-biblioteca",null):p.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[p.jsx(ba,{}),p.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:p.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[p.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Entrar"}),p.jsx("input",{className:"w-full rounded px-3 py-2",style:Dm,placeholder:"e-mail",value:c,onChange:m=>o(m.target.value)}),p.jsx("input",{className:"w-full rounded px-3 py-2",style:Dm,placeholder:"senha",type:"password",value:d,onChange:m=>h(m.target.value)}),p.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({email:c,senha:d}),disabled:s.isPending,children:s.isPending?"entrando...":"entrar"}),s.isError&&p.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:s.error.message}),p.jsxs("p",{className:"text-sm text-center pt-2",style:{color:"var(--color-text-on-dark-muted)"},children:["ainda não tem conta? ",p.jsx("a",{href:"/cadastro",style:{color:"var(--clr-acento-400)"},children:"criar conta"})]})]})}),p.jsx(xa,{})]})}const Nc={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function ix(){const{usuario:n,isLoading:i,registrar:s}=fn(),[c,o]=w.useState(""),[d,h]=w.useState(""),[m,v]=w.useState("");return i?null:n?(window.location.href="/minha-biblioteca",null):p.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[p.jsx(ba,{}),p.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:p.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[p.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Criar conta"}),p.jsx("input",{className:"w-full rounded px-3 py-2",style:Nc,placeholder:"nome",value:c,onChange:g=>o(g.target.value)}),p.jsx("input",{className:"w-full rounded px-3 py-2",style:Nc,placeholder:"e-mail",value:d,onChange:g=>h(g.target.value)}),p.jsx("input",{className:"w-full rounded px-3 py-2",style:Nc,placeholder:"senha (mínimo 8 caracteres)",type:"password",value:m,onChange:g=>v(g.target.value)}),p.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({nome:c,email:d,senha:m}),disabled:s.isPending||!c||!d||m.length<8,children:s.isPending?"criando...":"criar conta"}),s.isError&&p.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:s.error.message}),p.jsxs("p",{className:"text-sm text-center pt-2",style:{color:"var(--color-text-on-dark-muted)"},children:["já tem conta? ",p.jsx("a",{href:"/entrar",style:{color:"var(--clr-acento-400)"},children:"entrar"})]})]})}),p.jsx(xa,{})]})}const Yi={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function rx(){const{usuario:n,isLoading:i,logout:s}=fn(),c=nt.useUtils(),o=nt.auth.atualizarPerfil.useMutation({onSuccess:()=>c.auth.me.invalidate()}),d=nt.auth.trocarSenha.useMutation(),[h,m]=w.useState(n?.nome??""),[v,g]=w.useState(""),[E,j]=w.useState(""),[z,Y]=w.useState(null);if(i)return null;if(!n)return window.location.href="/entrar",null;function Z(){Y(null),d.mutate({senhaAtual:v,senhaNova:E},{onSuccess:()=>{Y("Senha atualizada."),g(""),j("")},onError:U=>Y(U.message)})}return p.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[p.jsx(ba,{}),p.jsxs("div",{className:"max-w-md mx-auto px-5 pt-10 pb-16 flex-1 w-full space-y-8",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-lg font-medium mb-4",style:{fontFamily:"var(--font-display)"},children:"Meu perfil"}),p.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[p.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["nome",p.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:Yi,value:h,onChange:U=>m(U.target.value)})]}),p.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["e-mail",p.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:{...Yi,opacity:.6},value:n.email,disabled:!0})]}),p.jsx("button",{className:"btn btn-primary",onClick:()=>o.mutate({nome:h}),disabled:o.isPending||!h,children:o.isPending?"salvando...":"salvar nome"}),o.isSuccess&&p.jsx("p",{className:"text-sm",style:{color:"var(--clr-acento-400)"},children:"Nome atualizado."})]})]}),p.jsxs("div",{children:[p.jsx("h2",{className:"text-lg font-medium mb-4",style:{fontFamily:"var(--font-display)"},children:"Trocar senha"}),p.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[p.jsx("input",{className:"w-full rounded px-3 py-2",style:Yi,placeholder:"senha atual",type:"password",value:v,onChange:U=>g(U.target.value)}),p.jsx("input",{className:"w-full rounded px-3 py-2",style:Yi,placeholder:"nova senha (mínimo 8 caracteres)",type:"password",value:E,onChange:U=>j(U.target.value)}),p.jsx("button",{className:"btn btn-primary",onClick:Z,disabled:d.isPending||!v||E.length<8,children:d.isPending?"salvando...":"trocar senha"}),z&&p.jsx("p",{className:"text-sm",style:{color:z==="Senha atualizada."?"var(--clr-acento-400)":"#ff8080"},children:z})]})]}),p.jsx("button",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},onClick:()=>s.mutate(),children:"sair da conta"})]}),p.jsx(xa,{})]})}function sx(){const{usuario:n,isLoading:i}=fn(),{data:s}=nt.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!n}),{data:c}=nt.biblioteca.favoritos.meus.useQuery(void 0,{enabled:!!n});return i?null:n?p.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[p.jsx(ba,{}),p.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-10 pb-16 flex-1 w-full",children:[p.jsxs("div",{className:"flex items-center justify-between mb-8",children:[p.jsxs("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl",children:["Olá, ",n.nome.split(" ")[0]]}),p.jsx("a",{href:"/perfil",className:"btn btn-ghost text-sm",style:{padding:"0.5rem 1rem"},children:"meu perfil"})]}),s&&s.length>0&&p.jsxs("section",{className:"mb-14",children:[p.jsx("h2",{className:"text-xs uppercase mb-4",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"continuar lendo"}),p.jsx("div",{className:"flex gap-4 overflow-x-auto pb-2",children:s.map(o=>p.jsxs("a",{href:`/leitor/${o.livroId}`,className:"group block flex-shrink-0 w-28",children:[p.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 group-hover:-translate-y-1 group-hover:shadow-2xl",children:p.jsx("img",{src:o.capaUrl||"/media/images/capas/capa-placeholder.svg",alt:o.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),p.jsx("p",{className:"text-xs mt-2 line-clamp-2",style:{color:"var(--clr-branco)"},children:o.titulo})]},o.livroId))})]}),c&&c.length>0?p.jsx(ar,{livros:c.map(o=>({id:o.livroId,titulo:o.titulo,autor:o.autor,capaUrl:o.capaUrl})),titulo:"meus favoritos"}):!s?.length&&p.jsxs("div",{className:"rounded-lg p-10 text-center",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",color:"var(--color-text-on-dark-muted)"},children:[p.jsx("p",{className:"text-lg mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:"Sua estante está vazia por enquanto"}),p.jsx("p",{className:"text-sm mb-4",children:"Favorite um livro ou comece a ler algo pra ele aparecer aqui."}),p.jsx("a",{href:"/",className:"btn btn-primary",style:{padding:"0.6rem 1.5rem"},children:"explorar o catálogo"})]})]}),p.jsx(xa,{})]}):(window.location.href="/entrar",null)}const cx=w.lazy(()=>c0(()=>import("./Leitor-Ds-4x70s.js"),[]).then(n=>({default:n.Leitor})));function ox(){const[n]=w.useState(()=>new T0);return p.jsx(nt.Provider,{client:wb,queryClient:n,children:p.jsx(D0,{client:n,children:p.jsx(w.Suspense,{fallback:null,children:p.jsxs(mg,{children:[p.jsx(We,{path:"/admin",component:tx}),p.jsx(We,{path:"/leitor/:id",component:cx}),p.jsx(We,{path:"/livro/:id",component:ax}),p.jsx(We,{path:"/serie/:nome",component:nx}),p.jsx(We,{path:"/buscar",component:lx}),p.jsx(We,{path:"/entrar",component:ux}),p.jsx(We,{path:"/cadastro",component:ix}),p.jsx(We,{path:"/perfil",component:rx}),p.jsx(We,{path:"/minha-biblioteca",component:sx}),p.jsx(We,{path:"/",component:Kb})]})})})})}i0.createRoot(document.getElementById("root")).render(p.jsx(w.StrictMode,{children:p.jsx(ox,{})}));export{fg as a,fx as c,Fp as g,p as j,w as r,nt as t,kc as u};
