function d0(n,u){for(var s=0;s<u.length;s++){const o=u[s];if(typeof o!="string"&&!Array.isArray(o)){for(const f in o)if(f!=="default"&&!(f in n)){const h=Object.getOwnPropertyDescriptor(o,f);h&&Object.defineProperty(n,f,h.get?h:{enumerable:!0,get:()=>o[f]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const m of h.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function s(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(f){if(f.ep)return;f.ep=!0;const h=s(f);fetch(f.href,h)}})();var N2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function h0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var No={exports:{}},dr={};/**
 * @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 im;function m0(){if(im)return dr;im=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(o,f,h){var m=null;if(h!==void 0&&(m=""+h),f.key!==void 0&&(m=""+f.key),"key"in f){h={};for(var v in f)v!=="key"&&(h[v]=f[v])}else h=f;return f=h.ref,{$$typeof:n,type:o,key:m,ref:f!==void 0?f:null,props:h}}return dr.Fragment=u,dr.jsx=s,dr.jsxs=s,dr}var sm;function v0(){return sm||(sm=1,No.exports=m0()),No.exports}var c=v0(),Co={exports:{}},he={};/**
 * @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 om;function y0(){if(om)return he;om=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),C=Symbol.iterator;function q(S){return S===null||typeof S!="object"?null:(S=C&&S[C]||S["@@iterator"],typeof S=="function"?S:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,F={};function ne(S,U,B){this.props=S,this.context=U,this.refs=F,this.updater=B||G}ne.prototype.isReactComponent={},ne.prototype.setState=function(S,U){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,U,"setState")},ne.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function fe(){}fe.prototype=ne.prototype;function se(S,U,B){this.props=S,this.context=U,this.refs=F,this.updater=B||G}var be=se.prototype=new fe;be.constructor=se,_(be,ne.prototype),be.isPureReactComponent=!0;var X=Array.isArray;function V(){}var R={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function I(S,U,B){var Y=B.ref;return{$$typeof:n,type:S,key:U,ref:Y!==void 0?Y:null,props:B}}function ee(S,U){return I(S.type,U,S.props)}function le(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function te(S){var U={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(B){return U[B]})}var ge=/\/+/g;function de(S,U){return typeof S=="object"&&S!==null&&S.key!=null?te(""+S.key):U.toString(36)}function me(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(V,V):(S.status="pending",S.then(function(U){S.status==="pending"&&(S.status="fulfilled",S.value=U)},function(U){S.status==="pending"&&(S.status="rejected",S.reason=U)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function T(S,U,B,Y,W){var oe=typeof S;(oe==="undefined"||oe==="boolean")&&(S=null);var Se=!1;if(S===null)Se=!0;else switch(oe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(S.$$typeof){case n:case u:Se=!0;break;case O:return Se=S._init,T(Se(S._payload),U,B,Y,W)}}if(Se)return W=W(S),Se=Y===""?"."+de(S,0):Y,X(W)?(B="",Se!=null&&(B=Se.replace(ge,"$&/")+"/"),T(W,U,B,"",function(ja){return ja})):W!=null&&(le(W)&&(W=ee(W,B+(W.key==null||S&&S.key===W.key?"":(""+W.key).replace(ge,"$&/")+"/")+Se)),U.push(W)),1;Se=0;var Je=Y===""?".":Y+":";if(X(S))for(var Be=0;Be<S.length;Be++)Y=S[Be],oe=Je+de(Y,Be),Se+=T(Y,U,B,oe,W);else if(Be=q(S),typeof Be=="function")for(S=Be.call(S),Be=0;!(Y=S.next()).done;)Y=Y.value,oe=Je+de(Y,Be++),Se+=T(Y,U,B,oe,W);else if(oe==="object"){if(typeof S.then=="function")return T(me(S),U,B,Y,W);throw U=String(S),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return Se}function H(S,U,B){if(S==null)return S;var Y=[],W=0;return T(S,Y,"","",function(oe){return U.call(B,oe,W++)}),Y}function K(S){if(S._status===-1){var U=S._result;U=U(),U.then(function(B){(S._status===0||S._status===-1)&&(S._status=1,S._result=B)},function(B){(S._status===0||S._status===-1)&&(S._status=2,S._result=B)}),S._status===-1&&(S._status=0,S._result=U)}if(S._status===1)return S._result.default;throw S._result}var ue=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ye={map:H,forEach:function(S,U,B){H(S,function(){U.apply(this,arguments)},B)},count:function(S){var U=0;return H(S,function(){U++}),U},toArray:function(S){return H(S,function(U){return U})||[]},only:function(S){if(!le(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return he.Activity=x,he.Children=ye,he.Component=ne,he.Fragment=s,he.Profiler=f,he.PureComponent=se,he.StrictMode=o,he.Suspense=y,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,he.__COMPILER_RUNTIME={__proto__:null,c:function(S){return R.H.useMemoCache(S)}},he.cache=function(S){return function(){return S.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(S,U,B){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Y=_({},S.props),W=S.key;if(U!=null)for(oe in U.key!==void 0&&(W=""+U.key),U)!J.call(U,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&U.ref===void 0||(Y[oe]=U[oe]);var oe=arguments.length-2;if(oe===1)Y.children=B;else if(1<oe){for(var Se=Array(oe),Je=0;Je<oe;Je++)Se[Je]=arguments[Je+2];Y.children=Se}return I(S.type,W,Y)},he.createContext=function(S){return S={$$typeof:m,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},he.createElement=function(S,U,B){var Y,W={},oe=null;if(U!=null)for(Y in U.key!==void 0&&(oe=""+U.key),U)J.call(U,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(W[Y]=U[Y]);var Se=arguments.length-2;if(Se===1)W.children=B;else if(1<Se){for(var Je=Array(Se),Be=0;Be<Se;Be++)Je[Be]=arguments[Be+2];W.children=Je}if(S&&S.defaultProps)for(Y in Se=S.defaultProps,Se)W[Y]===void 0&&(W[Y]=Se[Y]);return I(S,oe,W)},he.createRef=function(){return{current:null}},he.forwardRef=function(S){return{$$typeof:v,render:S}},he.isValidElement=le,he.lazy=function(S){return{$$typeof:O,_payload:{_status:-1,_result:S},_init:K}},he.memo=function(S,U){return{$$typeof:g,type:S,compare:U===void 0?null:U}},he.startTransition=function(S){var U=R.T,B={};R.T=B;try{var Y=S(),W=R.S;W!==null&&W(B,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(V,ue)}catch(oe){ue(oe)}finally{U!==null&&B.types!==null&&(U.types=B.types),R.T=U}},he.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},he.use=function(S){return R.H.use(S)},he.useActionState=function(S,U,B){return R.H.useActionState(S,U,B)},he.useCallback=function(S,U){return R.H.useCallback(S,U)},he.useContext=function(S){return R.H.useContext(S)},he.useDebugValue=function(){},he.useDeferredValue=function(S,U){return R.H.useDeferredValue(S,U)},he.useEffect=function(S,U){return R.H.useEffect(S,U)},he.useEffectEvent=function(S){return R.H.useEffectEvent(S)},he.useId=function(){return R.H.useId()},he.useImperativeHandle=function(S,U,B){return R.H.useImperativeHandle(S,U,B)},he.useInsertionEffect=function(S,U){return R.H.useInsertionEffect(S,U)},he.useLayoutEffect=function(S,U){return R.H.useLayoutEffect(S,U)},he.useMemo=function(S,U){return R.H.useMemo(S,U)},he.useOptimistic=function(S,U){return R.H.useOptimistic(S,U)},he.useReducer=function(S,U,B){return R.H.useReducer(S,U,B)},he.useRef=function(S){return R.H.useRef(S)},he.useState=function(S){return R.H.useState(S)},he.useSyncExternalStore=function(S,U,B){return R.H.useSyncExternalStore(S,U,B)},he.useTransition=function(){return R.H.useTransition()},he.version="19.2.1",he}var cm;function ni(){return cm||(cm=1,Co.exports=y0()),Co.exports}var D=ni();const p0=h0(D),Jm=d0({__proto__:null,default:p0},[D]);var Eo={exports:{}},hr={},Mo={exports:{}},To={};/**
 * @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 fm;function g0(){return fm||(fm=1,(function(n){function u(T,H){var K=T.length;T.push(H);e:for(;0<K;){var ue=K-1>>>1,ye=T[ue];if(0<f(ye,H))T[ue]=H,T[K]=ye,K=ue;else break e}}function s(T){return T.length===0?null:T[0]}function o(T){if(T.length===0)return null;var H=T[0],K=T.pop();if(K!==H){T[0]=K;e:for(var ue=0,ye=T.length,S=ye>>>1;ue<S;){var U=2*(ue+1)-1,B=T[U],Y=U+1,W=T[Y];if(0>f(B,K))Y<ye&&0>f(W,B)?(T[ue]=W,T[Y]=K,ue=Y):(T[ue]=B,T[U]=K,ue=U);else if(Y<ye&&0>f(W,K))T[ue]=W,T[Y]=K,ue=Y;else break e}}return H}function f(T,H){var K=T.sortIndex-H.sortIndex;return K!==0?K:T.id-H.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var m=Date,v=m.now();n.unstable_now=function(){return m.now()-v}}var y=[],g=[],O=1,x=null,C=3,q=!1,G=!1,_=!1,F=!1,ne=typeof setTimeout=="function"?setTimeout:null,fe=typeof clearTimeout=="function"?clearTimeout:null,se=typeof setImmediate<"u"?setImmediate:null;function be(T){for(var H=s(g);H!==null;){if(H.callback===null)o(g);else if(H.startTime<=T)o(g),H.sortIndex=H.expirationTime,u(y,H);else break;H=s(g)}}function X(T){if(_=!1,be(T),!G)if(s(y)!==null)G=!0,V||(V=!0,te());else{var H=s(g);H!==null&&me(X,H.startTime-T)}}var V=!1,R=-1,J=5,I=-1;function ee(){return F?!0:!(n.unstable_now()-I<J)}function le(){if(F=!1,V){var T=n.unstable_now();I=T;var H=!0;try{e:{G=!1,_&&(_=!1,fe(R),R=-1),q=!0;var K=C;try{t:{for(be(T),x=s(y);x!==null&&!(x.expirationTime>T&&ee());){var ue=x.callback;if(typeof ue=="function"){x.callback=null,C=x.priorityLevel;var ye=ue(x.expirationTime<=T);if(T=n.unstable_now(),typeof ye=="function"){x.callback=ye,be(T),H=!0;break t}x===s(y)&&o(y),be(T)}else o(y);x=s(y)}if(x!==null)H=!0;else{var S=s(g);S!==null&&me(X,S.startTime-T),H=!1}}break e}finally{x=null,C=K,q=!1}H=void 0}}finally{H?te():V=!1}}}var te;if(typeof se=="function")te=function(){se(le)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,de=ge.port2;ge.port1.onmessage=le,te=function(){de.postMessage(null)}}else te=function(){ne(le,0)};function me(T,H){R=ne(function(){T(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(T){T.callback=null},n.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<T?Math.floor(1e3/T):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_next=function(T){switch(C){case 1:case 2:case 3:var H=3;break;default:H=C}var K=C;C=H;try{return T()}finally{C=K}},n.unstable_requestPaint=function(){F=!0},n.unstable_runWithPriority=function(T,H){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var K=C;C=T;try{return H()}finally{C=K}},n.unstable_scheduleCallback=function(T,H,K){var ue=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ue+K:ue):K=ue,T){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=K+ye,T={id:O++,callback:H,priorityLevel:T,startTime:K,expirationTime:ye,sortIndex:-1},K>ue?(T.sortIndex=K,u(g,T),s(y)===null&&T===s(g)&&(_?(fe(R),R=-1):_=!0,me(X,K-ue))):(T.sortIndex=ye,u(y,T),G||q||(G=!0,V||(V=!0,te()))),T},n.unstable_shouldYield=ee,n.unstable_wrapCallback=function(T){var H=C;return function(){var K=C;C=H;try{return T.apply(this,arguments)}finally{C=K}}}})(To)),To}var dm;function x0(){return dm||(dm=1,Mo.exports=g0()),Mo.exports}var Ao={exports:{}},st={};/**
 * @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 hm;function b0(){if(hm)return st;hm=1;var n=ni();function u(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var O=2;O<arguments.length;O++)g+="&args[]="+encodeURIComponent(arguments[O])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(u(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal");function h(y,g,O){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:x==null?null:""+x,children:y,containerInfo:g,implementation:O}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,st.createPortal=function(y,g){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(u(299));return h(y,g,null,O)},st.flushSync=function(y){var g=m.T,O=o.p;try{if(m.T=null,o.p=2,y)return y()}finally{m.T=g,o.p=O,o.d.f()}},st.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(y,g))},st.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},st.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var O=g.as,x=v(O,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,q=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;O==="style"?o.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:C,fetchPriority:q}):O==="script"&&o.d.X(y,{crossOrigin:x,integrity:C,fetchPriority:q,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},st.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var O=v(g.as,g.crossOrigin);o.d.M(y,{crossOrigin:O,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(y)},st.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var O=g.as,x=v(O,g.crossOrigin);o.d.L(y,O,{crossOrigin:x,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})}},st.preloadModule=function(y,g){if(typeof y=="string")if(g){var O=v(g.as,g.crossOrigin);o.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:O,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(y)},st.requestFormReset=function(y){o.d.r(y)},st.unstable_batchedUpdates=function(y,g){return y(g)},st.useFormState=function(y,g,O){return m.H.useFormState(y,g,O)},st.useFormStatus=function(){return m.H.useHostTransitionStatus()},st.version="19.2.1",st}var mm;function S0(){if(mm)return Ao.exports;mm=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(u){console.error(u)}}return n(),Ao.exports=b0(),Ao.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 vm;function j0(){if(vm)return hr;vm=1;var n=x0(),u=ni(),s=S0();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(h(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var r=a.return;if(r===null)break;var i=r.alternate;if(i===null){if(l=r.return,l!==null){a=l;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===a)return y(r),e;if(i===l)return y(r),t;i=i.sibling}throw Error(o(188))}if(a.return!==l.return)a=r,l=i;else{for(var d=!1,p=r.child;p;){if(p===a){d=!0,a=r,l=i;break}if(p===l){d=!0,l=r,a=i;break}p=p.sibling}if(!d){for(p=i.child;p;){if(p===a){d=!0,a=i,l=r;break}if(p===l){d=!0,l=i,a=r;break}p=p.sibling}if(!d)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function O(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=O(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,C=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),se=Symbol.for("react.context"),be=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case ne:return"Profiler";case F:return"StrictMode";case X:return"Suspense";case V:return"SuspenseList";case I:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case G:return"Portal";case se:return e.displayName||"Context";case fe:return(e._context.displayName||"Context")+".Consumer";case be:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case R:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var me=Array.isArray,T=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ue=[],ye=-1;function S(e){return{current:e}}function U(e){0>ye||(e.current=ue[ye],ue[ye]=null,ye--)}function B(e,t){ye++,ue[ye]=e.current,e.current=t}var Y=S(null),W=S(null),oe=S(null),Se=S(null);function Je(e,t){switch(B(oe,t),B(W,e),B(Y,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ah(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ah(t),e=zh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(Y),B(Y,e)}function Be(){U(Y),U(W),U(oe)}function ja(e){e.memoizedState!==null&&B(Se,e);var t=Y.current,a=zh(t,e.type);t!==a&&(B(W,e),B(Y,a))}function Wa(e){W.current===e&&(U(Y),U(W)),Se.current===e&&(U(Se),sr._currentValue=K)}var _l,Ia;function $t(e){if(_l===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);_l=t&&t[1]||"",Ia=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+_l+e+Ia}var Oa=!1;function dt(e,t){if(!e||Oa)return"";Oa=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(z){var A=z}Reflect.construct(e,[],k)}else{try{k.call()}catch(z){A=z}e.call(k.prototype)}}else{try{throw Error()}catch(z){A=z}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(z){if(z&&A&&typeof z.stack=="string")return[z.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),d=i[0],p=i[1];if(d&&p){var b=d.split(`
`),M=p.split(`
`);for(r=l=0;l<b.length&&!b[l].includes("DetermineComponentFrameRoot");)l++;for(;r<M.length&&!M[r].includes("DetermineComponentFrameRoot");)r++;if(l===b.length||r===M.length)for(l=b.length-1,r=M.length-1;1<=l&&0<=r&&b[l]!==M[r];)r--;for(;1<=l&&0<=r;l--,r--)if(b[l]!==M[r]){if(l!==1||r!==1)do if(l--,r--,0>r||b[l]!==M[r]){var w=`
`+b[l].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=l&&0<=r);break}}}finally{Oa=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?$t(a):""}function Nr(e,t){switch(e.tag){case 26:case 27:case 5:return $t(e.type);case 16:return $t("Lazy");case 13:return e.child!==t&&t!==null?$t("Suspense Fallback"):$t("Suspense");case 19:return $t("SuspenseList");case 0:case 15:return dt(e.type,!1);case 11:return dt(e.type.render,!1);case 1:return dt(e.type,!0);case 31:return $t("Activity");default:return""}}function vn(e){try{var t="",a=null;do t+=Nr(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var yn=Object.prototype.hasOwnProperty,pn=n.unstable_scheduleCallback,gn=n.unstable_cancelCallback,Cr=n.unstable_shouldYield,Z=n.unstable_requestPaint,ze=n.unstable_now,bt=n.unstable_getCurrentPriorityLevel,St=n.unstable_ImmediatePriority,Pt=n.unstable_UserBlockingPriority,at=n.unstable_NormalPriority,xn=n.unstable_LowPriority,Er=n.unstable_IdlePriority,Jv=n.log,Fv=n.unstable_setDisableYieldValue,bn=null,jt=null;function _a(e){if(typeof Jv=="function"&&Fv(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(bn,e)}catch{}}var Ot=Math.clz32?Math.clz32:Wv,$v=Math.log,Pv=Math.LN2;function Wv(e){return e>>>=0,e===0?32:31-($v(e)/Pv|0)|0}var Mr=256,Tr=262144,Ar=4194304;function el(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function zr(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var r=0,i=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~i,l!==0?r=el(l):(d&=p,d!==0?r=el(d):a||(a=p&~e,a!==0&&(r=el(a))))):(p=l&~i,p!==0?r=el(p):d!==0?r=el(d):a||(a=l&~e,a!==0&&(r=el(a)))),r===0?0:t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:r}function Sn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Iv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cc(){var e=Ar;return Ar<<=1,(Ar&62914560)===0&&(Ar=4194304),e}function di(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function jn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ey(e,t,a,l,r,i){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,b=e.expirationTimes,M=e.hiddenUpdates;for(a=d&~a;0<a;){var w=31-Ot(a),k=1<<w;p[w]=0,b[w]=-1;var A=M[w];if(A!==null)for(M[w]=null,w=0;w<A.length;w++){var z=A[w];z!==null&&(z.lane&=-536870913)}a&=~k}l!==0&&fc(e,l,0),i!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=i&~(d&~t))}function fc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ot(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function dc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Ot(a),r=1<<l;r&t|e[l]&t&&(e[l]|=t),a&=~r}}function hc(e,t){var a=t&-t;return a=(a&42)!==0?1:hi(a),(a&(e.suspendedLanes|t))!==0?0:a}function hi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function mi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function mc(){var e=H.p;return e!==0?e:(e=window.event,e===void 0?32:em(e.type))}function vc(e,t){var a=H.p;try{return H.p=e,t()}finally{H.p=a}}var Na=Math.random().toString(36).slice(2),lt="__reactFiber$"+Na,ht="__reactProps$"+Na,Nl="__reactContainer$"+Na,vi="__reactEvents$"+Na,ty="__reactListeners$"+Na,ay="__reactHandles$"+Na,yc="__reactResources$"+Na,On="__reactMarker$"+Na;function yi(e){delete e[lt],delete e[ht],delete e[vi],delete e[ty],delete e[ay]}function Cl(e){var t=e[lt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Nl]||a[lt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=kh(e);e!==null;){if(a=e[lt])return a;e=kh(e)}return t}e=a,a=e.parentNode}return null}function El(e){if(e=e[lt]||e[Nl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function _n(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Ml(e){var t=e[yc];return t||(t=e[yc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[On]=!0}var pc=new Set,gc={};function tl(e,t){Tl(e,t),Tl(e+"Capture",t)}function Tl(e,t){for(gc[e]=t,e=0;e<t.length;e++)pc.add(t[e])}var ly=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]*$"),xc={},bc={};function ny(e){return yn.call(bc,e)?!0:yn.call(xc,e)?!1:ly.test(e)?bc[e]=!0:(xc[e]=!0,!1)}function Dr(e,t,a){if(ny(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Rr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function na(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ry(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){a=""+d,i.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pi(e){if(!e._valueTracker){var t=Sc(e)?"checked":"value";e._valueTracker=ry(e,t,""+e[t])}}function jc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Sc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Ur(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var uy=/[\n"\\]/g;function Rt(e){return e.replace(uy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function gi(e,t,a,l,r,i,d,p){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?xi(e,d,Dt(t)):a!=null?xi(e,d,Dt(a)):l!=null&&e.removeAttribute("value"),r==null&&i!=null&&(e.defaultChecked=!!i),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Dt(p):e.removeAttribute("name")}function Oc(e,t,a,l,r,i,d,p){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){pi(e);return}a=a!=null?""+Dt(a):"",t=t!=null?""+Dt(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),pi(e)}function xi(e,t,a){t==="number"&&Ur(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Al(e,t,a,l){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Dt(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,l&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function _c(e,t,a){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Dt(a):""}function Nc(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(me(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Dt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),pi(e)}function zl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var iy=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 Cc(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||iy.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Ec(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var r in t)l=t[r],t.hasOwnProperty(r)&&a[r]!==l&&Cc(e,r,l)}else for(var i in t)t.hasOwnProperty(i)&&Cc(e,i,t[i])}function bi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sy=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"]]),oy=/^[\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 wr(e){return oy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ra(){}var Si=null;function ji(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dl=null,Rl=null;function Mc(e){var t=El(e);if(t&&(e=t.stateNode)){var a=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(gi(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Rt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var r=l[ht]||null;if(!r)throw Error(o(90));gi(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&jc(l)}break e;case"textarea":_c(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Al(e,!!a.multiple,t,!1)}}}var Oi=!1;function Tc(e,t,a){if(Oi)return e(t,a);Oi=!0;try{var l=e(t);return l}finally{if(Oi=!1,(Dl!==null||Rl!==null)&&(ju(),Dl&&(t=Dl,e=Rl,Rl=Dl=null,Mc(t),e)))for(t=0;t<e.length;t++)Mc(e[t])}}function Nn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ht]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_i=!1;if(ua)try{var Cn={};Object.defineProperty(Cn,"passive",{get:function(){_i=!0}}),window.addEventListener("test",Cn,Cn),window.removeEventListener("test",Cn,Cn)}catch{_i=!1}var Ca=null,Ni=null,qr=null;function Ac(){if(qr)return qr;var e,t=Ni,a=t.length,l,r="value"in Ca?Ca.value:Ca.textContent,i=r.length;for(e=0;e<a&&t[e]===r[e];e++);var d=a-e;for(l=1;l<=d&&t[a-l]===r[i-l];l++);return qr=r.slice(e,1<l?1-l:void 0)}function Qr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function kr(){return!0}function zc(){return!1}function mt(e){function t(a,l,r,i,d){this._reactName=a,this._targetInst=r,this.type=l,this.nativeEvent=i,this.target=d,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(i):i[p]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?kr:zc,this.isPropagationStopped=zc,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=kr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=kr)},persist:function(){},isPersistent:kr}),t}var al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hr=mt(al),En=x({},al,{view:0,detail:0}),cy=mt(En),Ci,Ei,Mn,Br=x({},En,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ti,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Mn&&(Mn&&e.type==="mousemove"?(Ci=e.screenX-Mn.screenX,Ei=e.screenY-Mn.screenY):Ei=Ci=0,Mn=e),Ci)},movementY:function(e){return"movementY"in e?e.movementY:Ei}}),Dc=mt(Br),fy=x({},Br,{dataTransfer:0}),dy=mt(fy),hy=x({},En,{relatedTarget:0}),Mi=mt(hy),my=x({},al,{animationName:0,elapsedTime:0,pseudoElement:0}),vy=mt(my),yy=x({},al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),py=mt(yy),gy=x({},al,{data:0}),Rc=mt(gy),xy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},by={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"},Sy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sy[e])?!!t[e]:!1}function Ti(){return jy}var Oy=x({},En,{key:function(e){if(e.key){var t=xy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?by[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ti,charCode:function(e){return e.type==="keypress"?Qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_y=mt(Oy),Ny=x({},Br,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uc=mt(Ny),Cy=x({},En,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ti}),Ey=mt(Cy),My=x({},al,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ty=mt(My),Ay=x({},Br,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zy=mt(Ay),Dy=x({},al,{newState:0,oldState:0}),Ry=mt(Dy),Uy=[9,13,27,32],Ai=ua&&"CompositionEvent"in window,Tn=null;ua&&"documentMode"in document&&(Tn=document.documentMode);var wy=ua&&"TextEvent"in window&&!Tn,wc=ua&&(!Ai||Tn&&8<Tn&&11>=Tn),qc=" ",Qc=!1;function kc(e,t){switch(e){case"keyup":return Uy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ul=!1;function qy(e,t){switch(e){case"compositionend":return Hc(t);case"keypress":return t.which!==32?null:(Qc=!0,qc);case"textInput":return e=t.data,e===qc&&Qc?null:e;default:return null}}function Qy(e,t){if(Ul)return e==="compositionend"||!Ai&&kc(e,t)?(e=Ac(),qr=Ni=Ca=null,Ul=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wc&&t.locale!=="ko"?null:t.data;default:return null}}var ky={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 Bc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ky[e.type]:t==="textarea"}function Lc(e,t,a,l){Dl?Rl?Rl.push(l):Rl=[l]:Dl=l,t=Tu(t,"onChange"),0<t.length&&(a=new Hr("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var An=null,zn=null;function Hy(e){_h(e,0)}function Lr(e){var t=_n(e);if(jc(t))return e}function Gc(e,t){if(e==="change")return t}var Yc=!1;if(ua){var zi;if(ua){var Di="oninput"in document;if(!Di){var Xc=document.createElement("div");Xc.setAttribute("oninput","return;"),Di=typeof Xc.oninput=="function"}zi=Di}else zi=!1;Yc=zi&&(!document.documentMode||9<document.documentMode)}function Vc(){An&&(An.detachEvent("onpropertychange",Kc),zn=An=null)}function Kc(e){if(e.propertyName==="value"&&Lr(zn)){var t=[];Lc(t,zn,e,ji(e)),Tc(Hy,t)}}function By(e,t,a){e==="focusin"?(Vc(),An=t,zn=a,An.attachEvent("onpropertychange",Kc)):e==="focusout"&&Vc()}function Ly(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Lr(zn)}function Gy(e,t){if(e==="click")return Lr(t)}function Yy(e,t){if(e==="input"||e==="change")return Lr(t)}function Xy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:Xy;function Dn(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var r=a[l];if(!yn.call(t,r)||!_t(e[r],t[r]))return!1}return!0}function Zc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jc(e,t){var a=Zc(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Zc(a)}}function Fc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $c(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ur(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ur(e.document)}return t}function Ri(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Vy=ua&&"documentMode"in document&&11>=document.documentMode,wl=null,Ui=null,Rn=null,wi=!1;function Pc(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;wi||wl==null||wl!==Ur(l)||(l=wl,"selectionStart"in l&&Ri(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}),Rn&&Dn(Rn,l)||(Rn=l,l=Tu(Ui,"onSelect"),0<l.length&&(t=new Hr("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=wl)))}function ll(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ql={animationend:ll("Animation","AnimationEnd"),animationiteration:ll("Animation","AnimationIteration"),animationstart:ll("Animation","AnimationStart"),transitionrun:ll("Transition","TransitionRun"),transitionstart:ll("Transition","TransitionStart"),transitioncancel:ll("Transition","TransitionCancel"),transitionend:ll("Transition","TransitionEnd")},qi={},Wc={};ua&&(Wc=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 nl(e){if(qi[e])return qi[e];if(!ql[e])return e;var t=ql[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Wc)return qi[e]=t[a];return e}var Ic=nl("animationend"),ef=nl("animationiteration"),tf=nl("animationstart"),Ky=nl("transitionrun"),Zy=nl("transitionstart"),Jy=nl("transitioncancel"),af=nl("transitionend"),lf=new Map,Qi="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(" ");Qi.push("scrollEnd");function Yt(e,t){lf.set(e,t),tl(t,[e])}var Gr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ut=[],Ql=0,ki=0;function Yr(){for(var e=Ql,t=ki=Ql=0;t<e;){var a=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var r=Ut[t];Ut[t++]=null;var i=Ut[t];if(Ut[t++]=null,l!==null&&r!==null){var d=l.pending;d===null?r.next=r:(r.next=d.next,d.next=r),l.pending=r}i!==0&&nf(a,r,i)}}function Xr(e,t,a,l){Ut[Ql++]=e,Ut[Ql++]=t,Ut[Ql++]=a,Ut[Ql++]=l,ki|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Hi(e,t,a,l){return Xr(e,t,a,l),Vr(e)}function rl(e,t){return Xr(e,null,null,t),Vr(e)}function nf(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var r=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(r=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,r&&t!==null&&(r=31-Ot(a),e=i.hiddenUpdates,l=e[r],l===null?e[r]=[t]:l.push(t),t.lane=a|536870912),i):null}function Vr(e){if(50<tr)throw tr=0,Js=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var kl={};function Fy(e,t,a,l){this.tag=e,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=t,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 Nt(e,t,a,l){return new Fy(e,t,a,l)}function Bi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ia(e,t){var a=e.alternate;return a===null?(a=Nt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function rf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Kr(e,t,a,l,r,i){var d=0;if(l=e,typeof e=="function")Bi(e)&&(d=1);else if(typeof e=="string")d=e0(e,a,Y.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case I:return e=Nt(31,a,t,r),e.elementType=I,e.lanes=i,e;case _:return ul(a.children,r,i,t);case F:d=8,r|=24;break;case ne:return e=Nt(12,a,t,r|2),e.elementType=ne,e.lanes=i,e;case X:return e=Nt(13,a,t,r),e.elementType=X,e.lanes=i,e;case V:return e=Nt(19,a,t,r),e.elementType=V,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:d=10;break e;case fe:d=9;break e;case be:d=11;break e;case R:d=14;break e;case J:d=16,l=null;break e}d=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=Nt(d,a,t,r),t.elementType=e,t.type=l,t.lanes=i,t}function ul(e,t,a,l){return e=Nt(7,e,l,t),e.lanes=a,e}function Li(e,t,a){return e=Nt(6,e,null,t),e.lanes=a,e}function uf(e){var t=Nt(18,null,null,0);return t.stateNode=e,t}function Gi(e,t,a){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sf=new WeakMap;function wt(e,t){if(typeof e=="object"&&e!==null){var a=sf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:vn(t)},sf.set(e,t),t)}return{value:e,source:t,stack:vn(t)}}var Hl=[],Bl=0,Zr=null,Un=0,qt=[],Qt=0,Ea=null,Wt=1,It="";function sa(e,t){Hl[Bl++]=Un,Hl[Bl++]=Zr,Zr=e,Un=t}function of(e,t,a){qt[Qt++]=Wt,qt[Qt++]=It,qt[Qt++]=Ea,Ea=e;var l=Wt;e=It;var r=32-Ot(l)-1;l&=~(1<<r),a+=1;var i=32-Ot(t)+r;if(30<i){var d=r-r%5;i=(l&(1<<d)-1).toString(32),l>>=d,r-=d,Wt=1<<32-Ot(t)+r|a<<r|l,It=i+e}else Wt=1<<i|a<<r|l,It=e}function Yi(e){e.return!==null&&(sa(e,1),of(e,1,0))}function Xi(e){for(;e===Zr;)Zr=Hl[--Bl],Hl[Bl]=null,Un=Hl[--Bl],Hl[Bl]=null;for(;e===Ea;)Ea=qt[--Qt],qt[Qt]=null,It=qt[--Qt],qt[Qt]=null,Wt=qt[--Qt],qt[Qt]=null}function cf(e,t){qt[Qt++]=Wt,qt[Qt++]=It,qt[Qt++]=Ea,Wt=t.id,It=t.overflow,Ea=e}var nt=null,ke=null,Ce=!1,Ma=null,kt=!1,Vi=Error(o(519));function Ta(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wn(wt(t,e)),Vi}function ff(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[lt]=e,t[ht]=l,a){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(a=0;a<lr.length;a++)Oe(lr[a],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),Oc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),Nc(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Mh(t.textContent,a)?(l.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),l.onScroll!=null&&Oe("scroll",t),l.onScrollEnd!=null&&Oe("scrollend",t),l.onClick!=null&&(t.onclick=ra),t=!0):t=!1,t||Ta(e,!0)}function df(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:kt=!1;return;case 27:case 3:kt=!0;return;default:nt=nt.return}}function Ll(e){if(e!==nt)return!1;if(!Ce)return df(e),Ce=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||oo(e.type,e.memoizedProps)),a=!a),a&&ke&&Ta(e),df(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ke=Qh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ke=Qh(e)}else t===27?(t=ke,Ya(e.type)?(e=vo,vo=null,ke=e):ke=t):ke=nt?Bt(e.stateNode.nextSibling):null;return!0}function il(){ke=nt=null,Ce=!1}function Ki(){var e=Ma;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Ma=null),e}function wn(e){Ma===null?Ma=[e]:Ma.push(e)}var Zi=S(null),sl=null,oa=null;function Aa(e,t,a){B(Zi,t._currentValue),t._currentValue=a}function ca(e){e._currentValue=Zi.current,U(Zi)}function Ji(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Fi(e,t,a,l){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var i=r.dependencies;if(i!==null){var d=r.child;i=i.firstContext;e:for(;i!==null;){var p=i;i=r;for(var b=0;b<t.length;b++)if(p.context===t[b]){i.lanes|=a,p=i.alternate,p!==null&&(p.lanes|=a),Ji(i.return,a,e),l||(d=null);break e}i=p.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(o(341));d.lanes|=a,i=d.alternate,i!==null&&(i.lanes|=a),Ji(d,a,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Gl(e,t,a,l){e=null;for(var r=t,i=!1;r!==null;){if(!i){if((r.flags&524288)!==0)i=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var p=r.type;_t(r.pendingProps.value,d.value)||(e!==null?e.push(p):e=[p])}}else if(r===Se.current){if(d=r.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(sr):e=[sr])}r=r.return}e!==null&&Fi(t,e,a,l),t.flags|=262144}function Jr(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ol(e){sl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return hf(sl,e)}function Fr(e,t){return sl===null&&ol(e),hf(e,t)}function hf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},oa===null){if(e===null)throw Error(o(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return a}var $y=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Py=n.unstable_scheduleCallback,Wy=n.unstable_NormalPriority,Fe={$$typeof:se,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $i(){return{controller:new $y,data:new Map,refCount:0}}function qn(e){e.refCount--,e.refCount===0&&Py(Wy,function(){e.controller.abort()})}var Qn=null,Pi=0,Yl=0,Xl=null;function Iy(e,t){if(Qn===null){var a=Qn=[];Pi=0,Yl=eo(),Xl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Pi++,t.then(mf,mf),t}function mf(){if(--Pi===0&&Qn!==null){Xl!==null&&(Xl.status="fulfilled");var e=Qn;Qn=null,Yl=0,Xl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ep(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(l.status="rejected",l.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),l}var vf=T.S;T.S=function(e,t){Wd=ze(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Iy(e,t),vf!==null&&vf(e,t)};var cl=S(null);function Wi(){var e=cl.current;return e!==null?e:Qe.pooledCache}function $r(e,t){t===null?B(cl,cl.current):B(cl,t.pool)}function yf(){var e=Wi();return e===null?null:{parent:Fe._currentValue,pool:e}}var Vl=Error(o(460)),Ii=Error(o(474)),Pr=Error(o(542)),Wr={then:function(){}};function pf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function gf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ra,ra),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bf(e),e;default:if(typeof t.status=="string")t.then(ra,ra);else{if(e=Qe,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=l}},function(l){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bf(e),e}throw dl=t,Vl}}function fl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(dl=a,Vl):a}}var dl=null;function xf(){if(dl===null)throw Error(o(459));var e=dl;return dl=null,e}function bf(e){if(e===Vl||e===Pr)throw Error(o(483))}var Kl=null,kn=0;function Ir(e){var t=kn;return kn+=1,Kl===null&&(Kl=[]),gf(Kl,e,t)}function Hn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function eu(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Sf(e){function t(N,j){if(e){var E=N.deletions;E===null?(N.deletions=[j],N.flags|=16):E.push(j)}}function a(N,j){if(!e)return null;for(;j!==null;)t(N,j),j=j.sibling;return null}function l(N){for(var j=new Map;N!==null;)N.key!==null?j.set(N.key,N):j.set(N.index,N),N=N.sibling;return j}function r(N,j){return N=ia(N,j),N.index=0,N.sibling=null,N}function i(N,j,E){return N.index=E,e?(E=N.alternate,E!==null?(E=E.index,E<j?(N.flags|=67108866,j):E):(N.flags|=67108866,j)):(N.flags|=1048576,j)}function d(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function p(N,j,E,Q){return j===null||j.tag!==6?(j=Li(E,N.mode,Q),j.return=N,j):(j=r(j,E),j.return=N,j)}function b(N,j,E,Q){var re=E.type;return re===_?w(N,j,E.props.children,Q,E.key):j!==null&&(j.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===J&&fl(re)===j.type)?(j=r(j,E.props),Hn(j,E),j.return=N,j):(j=Kr(E.type,E.key,E.props,null,N.mode,Q),Hn(j,E),j.return=N,j)}function M(N,j,E,Q){return j===null||j.tag!==4||j.stateNode.containerInfo!==E.containerInfo||j.stateNode.implementation!==E.implementation?(j=Gi(E,N.mode,Q),j.return=N,j):(j=r(j,E.children||[]),j.return=N,j)}function w(N,j,E,Q,re){return j===null||j.tag!==7?(j=ul(E,N.mode,Q,re),j.return=N,j):(j=r(j,E),j.return=N,j)}function k(N,j,E){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Li(""+j,N.mode,E),j.return=N,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case q:return E=Kr(j.type,j.key,j.props,null,N.mode,E),Hn(E,j),E.return=N,E;case G:return j=Gi(j,N.mode,E),j.return=N,j;case J:return j=fl(j),k(N,j,E)}if(me(j)||te(j))return j=ul(j,N.mode,E,null),j.return=N,j;if(typeof j.then=="function")return k(N,Ir(j),E);if(j.$$typeof===se)return k(N,Fr(N,j),E);eu(N,j)}return null}function A(N,j,E,Q){var re=j!==null?j.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return re!==null?null:p(N,j,""+E,Q);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case q:return E.key===re?b(N,j,E,Q):null;case G:return E.key===re?M(N,j,E,Q):null;case J:return E=fl(E),A(N,j,E,Q)}if(me(E)||te(E))return re!==null?null:w(N,j,E,Q,null);if(typeof E.then=="function")return A(N,j,Ir(E),Q);if(E.$$typeof===se)return A(N,j,Fr(N,E),Q);eu(N,E)}return null}function z(N,j,E,Q,re){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return N=N.get(E)||null,p(j,N,""+Q,re);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case q:return N=N.get(Q.key===null?E:Q.key)||null,b(j,N,Q,re);case G:return N=N.get(Q.key===null?E:Q.key)||null,M(j,N,Q,re);case J:return Q=fl(Q),z(N,j,E,Q,re)}if(me(Q)||te(Q))return N=N.get(E)||null,w(j,N,Q,re,null);if(typeof Q.then=="function")return z(N,j,E,Ir(Q),re);if(Q.$$typeof===se)return z(N,j,E,Fr(j,Q),re);eu(j,Q)}return null}function P(N,j,E,Q){for(var re=null,Ee=null,ae=j,pe=j=0,Ne=null;ae!==null&&pe<E.length;pe++){ae.index>pe?(Ne=ae,ae=null):Ne=ae.sibling;var Me=A(N,ae,E[pe],Q);if(Me===null){ae===null&&(ae=Ne);break}e&&ae&&Me.alternate===null&&t(N,ae),j=i(Me,j,pe),Ee===null?re=Me:Ee.sibling=Me,Ee=Me,ae=Ne}if(pe===E.length)return a(N,ae),Ce&&sa(N,pe),re;if(ae===null){for(;pe<E.length;pe++)ae=k(N,E[pe],Q),ae!==null&&(j=i(ae,j,pe),Ee===null?re=ae:Ee.sibling=ae,Ee=ae);return Ce&&sa(N,pe),re}for(ae=l(ae);pe<E.length;pe++)Ne=z(ae,N,pe,E[pe],Q),Ne!==null&&(e&&Ne.alternate!==null&&ae.delete(Ne.key===null?pe:Ne.key),j=i(Ne,j,pe),Ee===null?re=Ne:Ee.sibling=Ne,Ee=Ne);return e&&ae.forEach(function(Ja){return t(N,Ja)}),Ce&&sa(N,pe),re}function ie(N,j,E,Q){if(E==null)throw Error(o(151));for(var re=null,Ee=null,ae=j,pe=j=0,Ne=null,Me=E.next();ae!==null&&!Me.done;pe++,Me=E.next()){ae.index>pe?(Ne=ae,ae=null):Ne=ae.sibling;var Ja=A(N,ae,Me.value,Q);if(Ja===null){ae===null&&(ae=Ne);break}e&&ae&&Ja.alternate===null&&t(N,ae),j=i(Ja,j,pe),Ee===null?re=Ja:Ee.sibling=Ja,Ee=Ja,ae=Ne}if(Me.done)return a(N,ae),Ce&&sa(N,pe),re;if(ae===null){for(;!Me.done;pe++,Me=E.next())Me=k(N,Me.value,Q),Me!==null&&(j=i(Me,j,pe),Ee===null?re=Me:Ee.sibling=Me,Ee=Me);return Ce&&sa(N,pe),re}for(ae=l(ae);!Me.done;pe++,Me=E.next())Me=z(ae,N,pe,Me.value,Q),Me!==null&&(e&&Me.alternate!==null&&ae.delete(Me.key===null?pe:Me.key),j=i(Me,j,pe),Ee===null?re=Me:Ee.sibling=Me,Ee=Me);return e&&ae.forEach(function(f0){return t(N,f0)}),Ce&&sa(N,pe),re}function qe(N,j,E,Q){if(typeof E=="object"&&E!==null&&E.type===_&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case q:e:{for(var re=E.key;j!==null;){if(j.key===re){if(re=E.type,re===_){if(j.tag===7){a(N,j.sibling),Q=r(j,E.props.children),Q.return=N,N=Q;break e}}else if(j.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===J&&fl(re)===j.type){a(N,j.sibling),Q=r(j,E.props),Hn(Q,E),Q.return=N,N=Q;break e}a(N,j);break}else t(N,j);j=j.sibling}E.type===_?(Q=ul(E.props.children,N.mode,Q,E.key),Q.return=N,N=Q):(Q=Kr(E.type,E.key,E.props,null,N.mode,Q),Hn(Q,E),Q.return=N,N=Q)}return d(N);case G:e:{for(re=E.key;j!==null;){if(j.key===re)if(j.tag===4&&j.stateNode.containerInfo===E.containerInfo&&j.stateNode.implementation===E.implementation){a(N,j.sibling),Q=r(j,E.children||[]),Q.return=N,N=Q;break e}else{a(N,j);break}else t(N,j);j=j.sibling}Q=Gi(E,N.mode,Q),Q.return=N,N=Q}return d(N);case J:return E=fl(E),qe(N,j,E,Q)}if(me(E))return P(N,j,E,Q);if(te(E)){if(re=te(E),typeof re!="function")throw Error(o(150));return E=re.call(E),ie(N,j,E,Q)}if(typeof E.then=="function")return qe(N,j,Ir(E),Q);if(E.$$typeof===se)return qe(N,j,Fr(N,E),Q);eu(N,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,j!==null&&j.tag===6?(a(N,j.sibling),Q=r(j,E),Q.return=N,N=Q):(a(N,j),Q=Li(E,N.mode,Q),Q.return=N,N=Q),d(N)):a(N,j)}return function(N,j,E,Q){try{kn=0;var re=qe(N,j,E,Q);return Kl=null,re}catch(ae){if(ae===Vl||ae===Pr)throw ae;var Ee=Nt(29,ae,null,N.mode);return Ee.lanes=Q,Ee.return=N,Ee}finally{}}}var hl=Sf(!0),jf=Sf(!1),za=!1;function es(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ts(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ae&2)!==0){var r=l.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),l.pending=t,t=Vr(e),nf(e,null,a),t}return Xr(e,l,t,a),Vr(e)}function Bn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,dc(e,a)}}function as(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var r=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?r=i=d:i=i.next=d,a=a.next}while(a!==null);i===null?r=i=t:i=i.next=t}else r=i=t;a={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var ls=!1;function Ln(){if(ls){var e=Xl;if(e!==null)throw e}}function Gn(e,t,a,l){ls=!1;var r=e.updateQueue;za=!1;var i=r.firstBaseUpdate,d=r.lastBaseUpdate,p=r.shared.pending;if(p!==null){r.shared.pending=null;var b=p,M=b.next;b.next=null,d===null?i=M:d.next=M,d=b;var w=e.alternate;w!==null&&(w=w.updateQueue,p=w.lastBaseUpdate,p!==d&&(p===null?w.firstBaseUpdate=M:p.next=M,w.lastBaseUpdate=b))}if(i!==null){var k=r.baseState;d=0,w=M=b=null,p=i;do{var A=p.lane&-536870913,z=A!==p.lane;if(z?(_e&A)===A:(l&A)===A){A!==0&&A===Yl&&(ls=!0),w!==null&&(w=w.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var P=e,ie=p;A=t;var qe=a;switch(ie.tag){case 1:if(P=ie.payload,typeof P=="function"){k=P.call(qe,k,A);break e}k=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ie.payload,A=typeof P=="function"?P.call(qe,k,A):P,A==null)break e;k=x({},k,A);break e;case 2:za=!0}}A=p.callback,A!==null&&(e.flags|=64,z&&(e.flags|=8192),z=r.callbacks,z===null?r.callbacks=[A]:z.push(A))}else z={lane:A,tag:p.tag,payload:p.payload,callback:p.callback,next:null},w===null?(M=w=z,b=k):w=w.next=z,d|=A;if(p=p.next,p===null){if(p=r.shared.pending,p===null)break;z=p,p=z.next,z.next=null,r.lastBaseUpdate=z,r.shared.pending=null}}while(!0);w===null&&(b=k),r.baseState=b,r.firstBaseUpdate=M,r.lastBaseUpdate=w,i===null&&(r.shared.lanes=0),ka|=d,e.lanes=d,e.memoizedState=k}}function Of(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function _f(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Of(a[e],t)}var Zl=S(null),tu=S(0);function Nf(e,t){e=xa,B(tu,e),B(Zl,t),xa=e|t.baseLanes}function ns(){B(tu,xa),B(Zl,Zl.current)}function rs(){xa=tu.current,U(Zl),U(tu)}var Ct=S(null),Ht=null;function Ua(e){var t=e.alternate;B(Ve,Ve.current&1),B(Ct,e),Ht===null&&(t===null||Zl.current!==null||t.memoizedState!==null)&&(Ht=e)}function us(e){B(Ve,Ve.current),B(Ct,e),Ht===null&&(Ht=e)}function Cf(e){e.tag===22?(B(Ve,Ve.current),B(Ct,e),Ht===null&&(Ht=e)):wa()}function wa(){B(Ve,Ve.current),B(Ct,Ct.current)}function Et(e){U(Ct),Ht===e&&(Ht=null),U(Ve)}var Ve=S(0);function au(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ho(a)||mo(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fa=0,ve=null,Ue=null,$e=null,lu=!1,Jl=!1,ml=!1,nu=0,Yn=0,Fl=null,tp=0;function Ge(){throw Error(o(321))}function is(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!_t(e[a],t[a]))return!1;return!0}function ss(e,t,a,l,r,i){return fa=i,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?od:Os,ml=!1,i=a(l,r),ml=!1,Jl&&(i=Mf(t,a,l,r)),Ef(e),i}function Ef(e){T.H=Kn;var t=Ue!==null&&Ue.next!==null;if(fa=0,$e=Ue=ve=null,lu=!1,Yn=0,Fl=null,t)throw Error(o(300));e===null||Pe||(e=e.dependencies,e!==null&&Jr(e)&&(Pe=!0))}function Mf(e,t,a,l){ve=e;var r=0;do{if(Jl&&(Fl=null),Yn=0,Jl=!1,25<=r)throw Error(o(301));if(r+=1,$e=Ue=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}T.H=cd,i=t(a,l)}while(Jl);return i}function ap(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?Xn(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(ve.flags|=1024),t}function os(){var e=nu!==0;return nu=0,e}function cs(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function fs(e){if(lu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lu=!1}fa=0,$e=Ue=ve=null,Jl=!1,Yn=nu=0,Fl=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ve.memoizedState=$e=e:$e=$e.next=e,$e}function Ke(){if(Ue===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=$e===null?ve.memoizedState:$e.next;if(t!==null)$e=t,Ue=e;else{if(e===null)throw ve.alternate===null?Error(o(467)):Error(o(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},$e===null?ve.memoizedState=$e=e:$e=$e.next=e}return $e}function ru(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xn(e){var t=Yn;return Yn+=1,Fl===null&&(Fl=[]),e=gf(Fl,e,t),t=ve,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?od:Os),e}function uu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Xn(e);if(e.$$typeof===se)return rt(e)}throw Error(o(438,String(e)))}function ds(e){var t=null,a=ve.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ve.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ru(),ve.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ee;return t.index++,a}function da(e,t){return typeof t=="function"?t(e):t}function iu(e){var t=Ke();return hs(t,Ue,e)}function hs(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var r=e.baseQueue,i=l.pending;if(i!==null){if(r!==null){var d=r.next;r.next=i.next,i.next=d}t.baseQueue=r=i,l.pending=null}if(i=e.baseState,r===null)e.memoizedState=i;else{t=r.next;var p=d=null,b=null,M=t,w=!1;do{var k=M.lane&-536870913;if(k!==M.lane?(_e&k)===k:(fa&k)===k){var A=M.revertLane;if(A===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),k===Yl&&(w=!0);else if((fa&A)===A){M=M.next,A===Yl&&(w=!0);continue}else k={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(p=b=k,d=i):b=b.next=k,ve.lanes|=A,ka|=A;k=M.action,ml&&a(i,k),i=M.hasEagerState?M.eagerState:a(i,k)}else A={lane:k,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(p=b=A,d=i):b=b.next=A,ve.lanes|=k,ka|=k;M=M.next}while(M!==null&&M!==t);if(b===null?d=i:b.next=p,!_t(i,e.memoizedState)&&(Pe=!0,w&&(a=Xl,a!==null)))throw a;e.memoizedState=i,e.baseState=d,e.baseQueue=b,l.lastRenderedState=i}return r===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ms(e){var t=Ke(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,r=a.pending,i=t.memoizedState;if(r!==null){a.pending=null;var d=r=r.next;do i=e(i,d.action),d=d.next;while(d!==r);_t(i,t.memoizedState)||(Pe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function Tf(e,t,a){var l=ve,r=Ke(),i=Ce;if(i){if(a===void 0)throw Error(o(407));a=a()}else a=t();var d=!_t((Ue||r).memoizedState,a);if(d&&(r.memoizedState=a,Pe=!0),r=r.queue,ps(Df.bind(null,l,r,e),[e]),r.getSnapshot!==t||d||$e!==null&&$e.memoizedState.tag&1){if(l.flags|=2048,$l(9,{destroy:void 0},zf.bind(null,l,r,a,t),null),Qe===null)throw Error(o(349));i||(fa&127)!==0||Af(l,t,a)}return a}function Af(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ve.updateQueue,t===null?(t=ru(),ve.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function zf(e,t,a,l){t.value=a,t.getSnapshot=l,Rf(t)&&Uf(e)}function Df(e,t,a){return a(function(){Rf(t)&&Uf(e)})}function Rf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!_t(e,a)}catch{return!0}}function Uf(e){var t=rl(e,2);t!==null&&xt(t,e,2)}function vs(e){var t=ct();if(typeof e=="function"){var a=e;if(e=a(),ml){_a(!0);try{a()}finally{_a(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t}function wf(e,t,a,l){return e.baseState=a,hs(e,Ue,typeof l=="function"?l:da)}function lp(e,t,a,l,r){if(cu(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){i.listeners.push(d)}};T.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,qf(t,i)):(i.next=a.next,t.pending=a.next=i)}}function qf(e,t){var a=t.action,l=t.payload,r=e.state;if(t.isTransition){var i=T.T,d={};T.T=d;try{var p=a(r,l),b=T.S;b!==null&&b(d,p),Qf(e,t,p)}catch(M){ys(e,t,M)}finally{i!==null&&d.types!==null&&(i.types=d.types),T.T=i}}else try{i=a(r,l),Qf(e,t,i)}catch(M){ys(e,t,M)}}function Qf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){kf(e,t,l)},function(l){return ys(e,t,l)}):kf(e,t,a)}function kf(e,t,a){t.status="fulfilled",t.value=a,Hf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,qf(e,a)))}function ys(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Hf(t),t=t.next;while(t!==l)}e.action=null}function Hf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Bf(e,t){return t}function Lf(e,t){if(Ce){var a=Qe.formState;if(a!==null){e:{var l=ve;if(Ce){if(ke){t:{for(var r=ke,i=kt;r.nodeType!==8;){if(!i){r=null;break t}if(r=Bt(r.nextSibling),r===null){r=null;break t}}i=r.data,r=i==="F!"||i==="F"?r:null}if(r){ke=Bt(r.nextSibling),l=r.data==="F!";break e}}Ta(l)}l=!1}l&&(t=a[0])}}return a=ct(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bf,lastRenderedState:t},a.queue=l,a=ud.bind(null,ve,l),l.dispatch=a,l=vs(!1),i=js.bind(null,ve,!1,l.queue),l=ct(),r={state:t,dispatch:null,action:e,pending:null},l.queue=r,a=lp.bind(null,ve,r,i,a),r.dispatch=a,l.memoizedState=e,[t,a,!1]}function Gf(e){var t=Ke();return Yf(t,Ue,e)}function Yf(e,t,a){if(t=hs(e,t,Bf)[0],e=iu(da)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Xn(t)}catch(d){throw d===Vl?Pr:d}else l=t;t=Ke();var r=t.queue,i=r.dispatch;return a!==t.memoizedState&&(ve.flags|=2048,$l(9,{destroy:void 0},np.bind(null,r,a),null)),[l,i,e]}function np(e,t){e.action=t}function Xf(e){var t=Ke(),a=Ue;if(a!==null)return Yf(t,a,e);Ke(),t=t.memoizedState,a=Ke();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function $l(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ve.updateQueue,t===null&&(t=ru(),ve.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Vf(){return Ke().memoizedState}function su(e,t,a,l){var r=ct();ve.flags|=e,r.memoizedState=$l(1|t,{destroy:void 0},a,l===void 0?null:l)}function ou(e,t,a,l){var r=Ke();l=l===void 0?null:l;var i=r.memoizedState.inst;Ue!==null&&l!==null&&is(l,Ue.memoizedState.deps)?r.memoizedState=$l(t,i,a,l):(ve.flags|=e,r.memoizedState=$l(1|t,i,a,l))}function Kf(e,t){su(8390656,8,e,t)}function ps(e,t){ou(2048,8,e,t)}function rp(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=ru(),ve.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Zf(e){var t=Ke().memoizedState;return rp({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Jf(e,t){return ou(4,2,e,t)}function Ff(e,t){return ou(4,4,e,t)}function $f(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Pf(e,t,a){a=a!=null?a.concat([e]):null,ou(4,4,$f.bind(null,t,e),a)}function gs(){}function Wf(e,t){var a=Ke();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&is(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function If(e,t){var a=Ke();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&is(t,l[1]))return l[0];if(l=e(),ml){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[l,t],l}function xs(e,t,a){return a===void 0||(fa&1073741824)!==0&&(_e&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=eh(),ve.lanes|=e,ka|=e,a)}function ed(e,t,a,l){return _t(a,t)?a:Zl.current!==null?(e=xs(e,a,l),_t(e,t)||(Pe=!0),e):(fa&42)===0||(fa&1073741824)!==0&&(_e&261930)===0?(Pe=!0,e.memoizedState=a):(e=eh(),ve.lanes|=e,ka|=e,t)}function td(e,t,a,l,r){var i=H.p;H.p=i!==0&&8>i?i:8;var d=T.T,p={};T.T=p,js(e,!1,t,a);try{var b=r(),M=T.S;if(M!==null&&M(p,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var w=ep(b,l);Vn(e,t,w,At(e))}else Vn(e,t,l,At(e))}catch(k){Vn(e,t,{then:function(){},status:"rejected",reason:k},At())}finally{H.p=i,d!==null&&p.types!==null&&(d.types=p.types),T.T=d}}function up(){}function bs(e,t,a,l){if(e.tag!==5)throw Error(o(476));var r=ad(e).queue;td(e,r,t,K,a===null?up:function(){return ld(e),a(l)})}function ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:K},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ld(e){var t=ad(e);t.next===null&&(t=e.alternate.memoizedState),Vn(e,t.next.queue,{},At())}function Ss(){return rt(sr)}function nd(){return Ke().memoizedState}function rd(){return Ke().memoizedState}function ip(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=At();e=Da(a);var l=Ra(t,e,a);l!==null&&(xt(l,t,a),Bn(l,t,a)),t={cache:$i()},e.payload=t;return}t=t.return}}function sp(e,t,a){var l=At();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},cu(e)?id(t,a):(a=Hi(e,t,a,l),a!==null&&(xt(a,e,l),sd(a,t,l)))}function ud(e,t,a){var l=At();Vn(e,t,a,l)}function Vn(e,t,a,l){var r={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(cu(e))id(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var d=t.lastRenderedState,p=i(d,a);if(r.hasEagerState=!0,r.eagerState=p,_t(p,d))return Xr(e,t,r,0),Qe===null&&Yr(),!1}catch{}finally{}if(a=Hi(e,t,r,l),a!==null)return xt(a,e,l),sd(a,t,l),!0}return!1}function js(e,t,a,l){if(l={lane:2,revertLane:eo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},cu(e)){if(t)throw Error(o(479))}else t=Hi(e,a,l,2),t!==null&&xt(t,e,2)}function cu(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function id(e,t){Jl=lu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function sd(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,dc(e,a)}}var Kn={readContext:rt,use:uu,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge};Kn.useEffectEvent=Ge;var od={readContext:rt,use:uu,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:Kf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,su(4194308,4,$f.bind(null,t,e),a)},useLayoutEffect:function(e,t){return su(4194308,4,e,t)},useInsertionEffect:function(e,t){su(4,2,e,t)},useMemo:function(e,t){var a=ct();t=t===void 0?null:t;var l=e();if(ml){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ct();if(a!==void 0){var r=a(t);if(ml){_a(!0);try{a(t)}finally{_a(!1)}}}else r=t;return l.memoizedState=l.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},l.queue=e,e=e.dispatch=sp.bind(null,ve,e),[l.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=vs(e);var t=e.queue,a=ud.bind(null,ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:gs,useDeferredValue:function(e,t){var a=ct();return xs(a,e,t)},useTransition:function(){var e=vs(!1);return e=td.bind(null,ve,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ve,r=ct();if(Ce){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Qe===null)throw Error(o(349));(_e&127)!==0||Af(l,t,a)}r.memoizedState=a;var i={value:a,getSnapshot:t};return r.queue=i,Kf(Df.bind(null,l,i,e),[e]),l.flags|=2048,$l(9,{destroy:void 0},zf.bind(null,l,i,a,t),null),a},useId:function(){var e=ct(),t=Qe.identifierPrefix;if(Ce){var a=It,l=Wt;a=(l&~(1<<32-Ot(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=nu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=tp++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ss,useFormState:Lf,useActionState:Lf,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=js.bind(null,ve,!0,a),a.dispatch=t,[e,t]},useMemoCache:ds,useCacheRefresh:function(){return ct().memoizedState=ip.bind(null,ve)},useEffectEvent:function(e){var t=ct(),a={impl:e};return t.memoizedState=a,function(){if((Ae&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Os={readContext:rt,use:uu,useCallback:Wf,useContext:rt,useEffect:ps,useImperativeHandle:Pf,useInsertionEffect:Jf,useLayoutEffect:Ff,useMemo:If,useReducer:iu,useRef:Vf,useState:function(){return iu(da)},useDebugValue:gs,useDeferredValue:function(e,t){var a=Ke();return ed(a,Ue.memoizedState,e,t)},useTransition:function(){var e=iu(da)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:Xn(e),t]},useSyncExternalStore:Tf,useId:nd,useHostTransitionStatus:Ss,useFormState:Gf,useActionState:Gf,useOptimistic:function(e,t){var a=Ke();return wf(a,Ue,e,t)},useMemoCache:ds,useCacheRefresh:rd};Os.useEffectEvent=Zf;var cd={readContext:rt,use:uu,useCallback:Wf,useContext:rt,useEffect:ps,useImperativeHandle:Pf,useInsertionEffect:Jf,useLayoutEffect:Ff,useMemo:If,useReducer:ms,useRef:Vf,useState:function(){return ms(da)},useDebugValue:gs,useDeferredValue:function(e,t){var a=Ke();return Ue===null?xs(a,e,t):ed(a,Ue.memoizedState,e,t)},useTransition:function(){var e=ms(da)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:Xn(e),t]},useSyncExternalStore:Tf,useId:nd,useHostTransitionStatus:Ss,useFormState:Xf,useActionState:Xf,useOptimistic:function(e,t){var a=Ke();return Ue!==null?wf(a,Ue,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ds,useCacheRefresh:rd};cd.useEffectEvent=Zf;function _s(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ns={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=At(),r=Da(l);r.payload=t,a!=null&&(r.callback=a),t=Ra(e,r,l),t!==null&&(xt(t,e,l),Bn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=At(),r=Da(l);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=Ra(e,r,l),t!==null&&(xt(t,e,l),Bn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=At(),l=Da(a);l.tag=2,t!=null&&(l.callback=t),t=Ra(e,l,a),t!==null&&(xt(t,e,a),Bn(t,e,a))}};function fd(e,t,a,l,r,i,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,d):t.prototype&&t.prototype.isPureReactComponent?!Dn(a,l)||!Dn(r,i):!0}function dd(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Ns.enqueueReplaceState(t,t.state,null)}function vl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function hd(e){Gr(e)}function md(e){console.error(e)}function vd(e){Gr(e)}function fu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function yd(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Cs(e,t,a){return a=Da(a),a.tag=3,a.payload={element:null},a.callback=function(){fu(e,t)},a}function pd(e){return e=Da(e),e.tag=3,e}function gd(e,t,a,l){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var i=l.value;e.payload=function(){return r(i)},e.callback=function(){yd(t,a,l)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){yd(t,a,l),typeof r!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function op(e,t,a,l,r){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Gl(t,a,r,!0),a=Ct.current,a!==null){switch(a.tag){case 31:case 13:return Ht===null?Ou():a.alternate===null&&Ye===0&&(Ye=3),a.flags&=-257,a.flags|=65536,a.lanes=r,l===Wr?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Ps(e,l,r)),!1;case 22:return a.flags|=65536,l===Wr?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Ps(e,l,r)),!1}throw Error(o(435,a.tag))}return Ps(e,l,r),Ou(),!1}if(Ce)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,l!==Vi&&(e=Error(o(422),{cause:l}),wn(wt(e,a)))):(l!==Vi&&(t=Error(o(423),{cause:l}),wn(wt(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,l=wt(l,a),r=Cs(e.stateNode,l,r),as(e,r),Ye!==4&&(Ye=2)),!1;var i=Error(o(520),{cause:l});if(i=wt(i,a),er===null?er=[i]:er.push(i),Ye!==4&&(Ye=2),t===null)return!0;l=wt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Cs(a.stateNode,l,e),as(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ha===null||!Ha.has(i))))return a.flags|=65536,r&=-r,a.lanes|=r,r=pd(r),gd(r,e,a,l),as(a,r),!1}a=a.return}while(a!==null);return!1}var Es=Error(o(461)),Pe=!1;function ut(e,t,a,l){t.child=e===null?jf(t,null,a,l):hl(t,e.child,a,l)}function xd(e,t,a,l,r){a=a.render;var i=t.ref;if("ref"in l){var d={};for(var p in l)p!=="ref"&&(d[p]=l[p])}else d=l;return ol(t),l=ss(e,t,a,d,i,r),p=os(),e!==null&&!Pe?(cs(e,t,r),ha(e,t,r)):(Ce&&p&&Yi(t),t.flags|=1,ut(e,t,l,r),t.child)}function bd(e,t,a,l,r){if(e===null){var i=a.type;return typeof i=="function"&&!Bi(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,Sd(e,t,i,l,r)):(e=Kr(a.type,null,l,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!ws(e,r)){var d=i.memoizedProps;if(a=a.compare,a=a!==null?a:Dn,a(d,l)&&e.ref===t.ref)return ha(e,t,r)}return t.flags|=1,e=ia(i,l),e.ref=t.ref,e.return=t,t.child=e}function Sd(e,t,a,l,r){if(e!==null){var i=e.memoizedProps;if(Dn(i,l)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=l=i,ws(e,r))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,ha(e,t,r)}return Ms(e,t,a,l,r)}function jd(e,t,a,l){var r=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~i}else l=0,t.child=null;return Od(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&$r(t,i!==null?i.cachePool:null),i!==null?Nf(t,i):ns(),Cf(t);else return l=t.lanes=536870912,Od(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?($r(t,i.cachePool),Nf(t,i),wa(),t.memoizedState=null):(e!==null&&$r(t,null),ns(),wa());return ut(e,t,r,a),t.child}function Zn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Od(e,t,a,l,r){var i=Wi();return i=i===null?null:{parent:Fe._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&$r(t,null),ns(),Cf(t),e!==null&&Gl(e,t,l,!0),t.childLanes=r,null}function du(e,t){return t=mu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _d(e,t,a){return hl(t,e.child,null,a),e=du(t,t.pendingProps),e.flags|=2,Et(t),t.memoizedState=null,e}function cp(e,t,a){var l=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(l.mode==="hidden")return e=du(t,l),t.lanes=536870912,Zn(null,e);if(us(t),(e=ke)?(e=qh(e,kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Wt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},a=uf(e),a.return=t,t.child=a,nt=t,ke=null)):e=null,e===null)throw Ta(t);return t.lanes=536870912,null}return du(t,l)}var i=e.memoizedState;if(i!==null){var d=i.dehydrated;if(us(t),r)if(t.flags&256)t.flags&=-257,t=_d(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Pe||Gl(e,t,a,!1),r=(a&e.childLanes)!==0,Pe||r){if(l=Qe,l!==null&&(d=hc(l,a),d!==0&&d!==i.retryLane))throw i.retryLane=d,rl(e,d),xt(l,e,d),Es;Ou(),t=_d(e,t,a)}else e=i.treeContext,ke=Bt(d.nextSibling),nt=t,Ce=!0,Ma=null,kt=!1,e!==null&&cf(t,e),t=du(t,l),t.flags|=4096;return t}return e=ia(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Ms(e,t,a,l,r){return ol(t),a=ss(e,t,a,l,void 0,r),l=os(),e!==null&&!Pe?(cs(e,t,r),ha(e,t,r)):(Ce&&l&&Yi(t),t.flags|=1,ut(e,t,a,r),t.child)}function Nd(e,t,a,l,r,i){return ol(t),t.updateQueue=null,a=Mf(t,l,a,r),Ef(e),l=os(),e!==null&&!Pe?(cs(e,t,i),ha(e,t,i)):(Ce&&l&&Yi(t),t.flags|=1,ut(e,t,a,i),t.child)}function Cd(e,t,a,l,r){if(ol(t),t.stateNode===null){var i=kl,d=a.contextType;typeof d=="object"&&d!==null&&(i=rt(d)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Ns,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},es(t),d=a.contextType,i.context=typeof d=="object"&&d!==null?rt(d):kl,i.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(_s(t,a,d,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(d=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),d!==i.state&&Ns.enqueueReplaceState(i,i.state,null),Gn(t,l,i,r),Ln(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var p=t.memoizedProps,b=vl(a,p);i.props=b;var M=i.context,w=a.contextType;d=kl,typeof w=="object"&&w!==null&&(d=rt(w));var k=a.getDerivedStateFromProps;w=typeof k=="function"||typeof i.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,w||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(p||M!==d)&&dd(t,i,l,d),za=!1;var A=t.memoizedState;i.state=A,Gn(t,l,i,r),Ln(),M=t.memoizedState,p||A!==M||za?(typeof k=="function"&&(_s(t,a,k,l),M=t.memoizedState),(b=za||fd(t,a,b,l,A,M,d))?(w||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=M),i.props=l,i.state=M,i.context=d,l=b):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,ts(e,t),d=t.memoizedProps,w=vl(a,d),i.props=w,k=t.pendingProps,A=i.context,M=a.contextType,b=kl,typeof M=="object"&&M!==null&&(b=rt(M)),p=a.getDerivedStateFromProps,(M=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d!==k||A!==b)&&dd(t,i,l,b),za=!1,A=t.memoizedState,i.state=A,Gn(t,l,i,r),Ln();var z=t.memoizedState;d!==k||A!==z||za||e!==null&&e.dependencies!==null&&Jr(e.dependencies)?(typeof p=="function"&&(_s(t,a,p,l),z=t.memoizedState),(w=za||fd(t,a,w,l,A,z,b)||e!==null&&e.dependencies!==null&&Jr(e.dependencies))?(M||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,z,b),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,z,b)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=z),i.props=l,i.state=z,i.context=b,l=w):(typeof i.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,hu(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=hl(t,e.child,null,r),t.child=hl(t,null,a,r)):ut(e,t,a,r),t.memoizedState=i.state,e=t.child):e=ha(e,t,r),e}function Ed(e,t,a,l){return il(),t.flags|=256,ut(e,t,a,l),t.child}var Ts={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function As(e){return{baseLanes:e,cachePool:yf()}}function zs(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Tt),e}function Md(e,t,a){var l=t.pendingProps,r=!1,i=(t.flags&128)!==0,d;if((d=i)||(d=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(r?Ua(t):wa(),(e=ke)?(e=qh(e,kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Wt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},a=uf(e),a.return=t,t.child=a,nt=t,ke=null)):e=null,e===null)throw Ta(t);return mo(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,r?(wa(),r=t.mode,p=mu({mode:"hidden",children:p},r),l=ul(l,r,a,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=As(a),l.childLanes=zs(e,d,a),t.memoizedState=Ts,Zn(null,l)):(Ua(t),Ds(t,p))}var b=e.memoizedState;if(b!==null&&(p=b.dehydrated,p!==null)){if(i)t.flags&256?(Ua(t),t.flags&=-257,t=Rs(e,t,a)):t.memoizedState!==null?(wa(),t.child=e.child,t.flags|=128,t=null):(wa(),p=l.fallback,r=t.mode,l=mu({mode:"visible",children:l.children},r),p=ul(p,r,a,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,hl(t,e.child,null,a),l=t.child,l.memoizedState=As(a),l.childLanes=zs(e,d,a),t.memoizedState=Ts,t=Zn(null,l));else if(Ua(t),mo(p)){if(d=p.nextSibling&&p.nextSibling.dataset,d)var M=d.dgst;d=M,l=Error(o(419)),l.stack="",l.digest=d,wn({value:l,source:null,stack:null}),t=Rs(e,t,a)}else if(Pe||Gl(e,t,a,!1),d=(a&e.childLanes)!==0,Pe||d){if(d=Qe,d!==null&&(l=hc(d,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,rl(e,l),xt(d,e,l),Es;ho(p)||Ou(),t=Rs(e,t,a)}else ho(p)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,ke=Bt(p.nextSibling),nt=t,Ce=!0,Ma=null,kt=!1,e!==null&&cf(t,e),t=Ds(t,l.children),t.flags|=4096);return t}return r?(wa(),p=l.fallback,r=t.mode,b=e.child,M=b.sibling,l=ia(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,M!==null?p=ia(M,p):(p=ul(p,r,a,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,Zn(null,l),l=t.child,p=e.child.memoizedState,p===null?p=As(a):(r=p.cachePool,r!==null?(b=Fe._currentValue,r=r.parent!==b?{parent:b,pool:b}:r):r=yf(),p={baseLanes:p.baseLanes|a,cachePool:r}),l.memoizedState=p,l.childLanes=zs(e,d,a),t.memoizedState=Ts,Zn(e.child,l)):(Ua(t),a=e.child,e=a.sibling,a=ia(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function Ds(e,t){return t=mu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function mu(e,t){return e=Nt(22,e,null,t),e.lanes=0,e}function Rs(e,t,a){return hl(t,e.child,null,a),e=Ds(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Td(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ji(e.return,t,a)}function Us(e,t,a,l,r,i){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:r,treeForkCount:i}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=r,d.treeForkCount=i)}function Ad(e,t,a){var l=t.pendingProps,r=l.revealOrder,i=l.tail;l=l.children;var d=Ve.current,p=(d&2)!==0;if(p?(d=d&1|2,t.flags|=128):d&=1,B(Ve,d),ut(e,t,l,a),l=Ce?Un:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Td(e,a,t);else if(e.tag===19)Td(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&au(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Us(t,!1,r,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&au(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Us(t,!0,a,null,i,l);break;case"together":Us(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ha(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ka|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Gl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ia(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ia(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ws(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Jr(e)))}function fp(e,t,a){switch(t.tag){case 3:Je(t,t.stateNode.containerInfo),Aa(t,Fe,e.memoizedState.cache),il();break;case 27:case 5:ja(t);break;case 4:Je(t,t.stateNode.containerInfo);break;case 10:Aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,us(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ua(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Md(e,t,a):(Ua(t),e=ha(e,t,a),e!==null?e.sibling:null);Ua(t);break;case 19:var r=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Gl(e,t,a,!1),l=(a&t.childLanes)!==0),r){if(l)return Ad(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),B(Ve,Ve.current),l)break;return null;case 22:return t.lanes=0,jd(e,t,a,t.pendingProps);case 24:Aa(t,Fe,e.memoizedState.cache)}return ha(e,t,a)}function zd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!ws(e,a)&&(t.flags&128)===0)return Pe=!1,fp(e,t,a);Pe=(e.flags&131072)!==0}else Pe=!1,Ce&&(t.flags&1048576)!==0&&of(t,Un,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=fl(t.elementType),t.type=e,typeof e=="function")Bi(e)?(l=vl(e,l),t.tag=1,t=Cd(null,t,e,l,a)):(t.tag=0,t=Ms(null,t,e,l,a));else{if(e!=null){var r=e.$$typeof;if(r===be){t.tag=11,t=xd(null,t,e,l,a);break e}else if(r===R){t.tag=14,t=bd(null,t,e,l,a);break e}}throw t=de(e)||e,Error(o(306,t,""))}}return t;case 0:return Ms(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,r=vl(l,t.pendingProps),Cd(e,t,l,r,a);case 3:e:{if(Je(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var i=t.memoizedState;r=i.element,ts(e,t),Gn(t,l,null,a);var d=t.memoizedState;if(l=d.cache,Aa(t,Fe,l),l!==i.cache&&Fi(t,[Fe],a,!0),Ln(),l=d.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Ed(e,t,l,a);break e}else if(l!==r){r=wt(Error(o(424)),t),wn(r),t=Ed(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ke=Bt(e.firstChild),nt=t,Ce=!0,Ma=null,kt=!0,a=jf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(il(),l===r){t=ha(e,t,a);break e}ut(e,t,l,a)}t=t.child}return t;case 26:return hu(e,t),e===null?(a=Gh(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ce||(a=t.type,e=t.pendingProps,l=Au(oe.current).createElement(a),l[lt]=t,l[ht]=e,it(l,a,e),et(l),t.stateNode=l):t.memoizedState=Gh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ja(t),e===null&&Ce&&(l=t.stateNode=Hh(t.type,t.pendingProps,oe.current),nt=t,kt=!0,r=ke,Ya(t.type)?(vo=r,ke=Bt(l.firstChild)):ke=r),ut(e,t,t.pendingProps.children,a),hu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((r=l=ke)&&(l=Lp(l,t.type,t.pendingProps,kt),l!==null?(t.stateNode=l,nt=t,ke=Bt(l.firstChild),kt=!1,r=!0):r=!1),r||Ta(t)),ja(t),r=t.type,i=t.pendingProps,d=e!==null?e.memoizedProps:null,l=i.children,oo(r,i)?l=null:d!==null&&oo(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=ss(e,t,ap,null,null,a),sr._currentValue=r),hu(e,t),ut(e,t,l,a),t.child;case 6:return e===null&&Ce&&((e=a=ke)&&(a=Gp(a,t.pendingProps,kt),a!==null?(t.stateNode=a,nt=t,ke=null,e=!0):e=!1),e||Ta(t)),null;case 13:return Md(e,t,a);case 4:return Je(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=hl(t,null,l,a):ut(e,t,l,a),t.child;case 11:return xd(e,t,t.type,t.pendingProps,a);case 7:return ut(e,t,t.pendingProps,a),t.child;case 8:return ut(e,t,t.pendingProps.children,a),t.child;case 12:return ut(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Aa(t,t.type,l.value),ut(e,t,l.children,a),t.child;case 9:return r=t.type._context,l=t.pendingProps.children,ol(t),r=rt(r),l=l(r),t.flags|=1,ut(e,t,l,a),t.child;case 14:return bd(e,t,t.type,t.pendingProps,a);case 15:return Sd(e,t,t.type,t.pendingProps,a);case 19:return Ad(e,t,a);case 31:return cp(e,t,a);case 22:return jd(e,t,a,t.pendingProps);case 24:return ol(t),l=rt(Fe),e===null?(r=Wi(),r===null&&(r=Qe,i=$i(),r.pooledCache=i,i.refCount++,i!==null&&(r.pooledCacheLanes|=a),r=i),t.memoizedState={parent:l,cache:r},es(t),Aa(t,Fe,r)):((e.lanes&a)!==0&&(ts(e,t),Gn(t,null,null,a),Ln()),r=e.memoizedState,i=t.memoizedState,r.parent!==l?(r={parent:l,cache:l},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Aa(t,Fe,l)):(l=i.cache,Aa(t,Fe,l),l!==r.cache&&Fi(t,[Fe],a,!0))),ut(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ma(e){e.flags|=4}function qs(e,t,a,l,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(nh())e.flags|=8192;else throw dl=Wr,Ii}else e.flags&=-16777217}function Dd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Zh(t))if(nh())e.flags|=8192;else throw dl=Wr,Ii}function vu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?cc():536870912,e.lanes|=t,en|=t)}function Jn(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function dp(e,t,a){var l=t.pendingProps;switch(Xi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ca(Fe),Be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ll(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ki())),He(t),null;case 26:var r=t.type,i=t.memoizedState;return e===null?(ma(t),i!==null?(He(t),Dd(t,i)):(He(t),qs(t,r,null,l,a))):i?i!==e.memoizedState?(ma(t),He(t),Dd(t,i)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ma(t),He(t),qs(t,r,e,l,a)),null;case 27:if(Wa(t),a=oe.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return He(t),null}e=Y.current,Ll(t)?ff(t):(e=Hh(r,l,a),t.stateNode=e,ma(t))}return He(t),null;case 5:if(Wa(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return He(t),null}if(i=Y.current,Ll(t))ff(t);else{var d=Au(oe.current);switch(i){case 1:i=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:i=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":i=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":i=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":i=d.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?d.createElement(r,{is:l.is}):d.createElement(r)}}i[lt]=t,i[ht]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)i.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=i;e:switch(it(i,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ma(t)}}return He(t),qs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=oe.current,Ll(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,r=nt,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}e[lt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Mh(e.nodeValue,a)),e||Ta(t,!0)}else e=Au(e).createTextNode(l),e[lt]=t,t.stateNode=e}return He(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Ll(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[lt]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else a=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Et(t),t):(Et(t),null);if((t.flags&128)!==0)throw Error(o(558))}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Ll(t),l!==null&&l.dehydrated!==null){if(e===null){if(!r)throw Error(o(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[lt]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),r=!1}else r=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Et(t),t):(Et(t),null)}return Et(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==r&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),vu(t,t.updateQueue),He(t),null);case 4:return Be(),e===null&&no(t.stateNode.containerInfo),He(t),null;case 10:return ca(t.type),He(t),null;case 19:if(U(Ve),l=t.memoizedState,l===null)return He(t),null;if(r=(t.flags&128)!==0,i=l.rendering,i===null)if(r)Jn(l,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=au(e),i!==null){for(t.flags|=128,Jn(l,!1),e=i.updateQueue,t.updateQueue=e,vu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)rf(a,e),a=a.sibling;return B(Ve,Ve.current&1|2),Ce&&sa(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ze()>bu&&(t.flags|=128,r=!0,Jn(l,!1),t.lanes=4194304)}else{if(!r)if(e=au(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,vu(t,e),Jn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!Ce)return He(t),null}else 2*ze()-l.renderingStartTime>bu&&a!==536870912&&(t.flags|=128,r=!0,Jn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ze(),e.sibling=null,a=Ve.current,B(Ve,r?a&1|2:a&1),Ce&&sa(t,l.treeForkCount),e):(He(t),null);case 22:case 23:return Et(t),rs(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),a=t.updateQueue,a!==null&&vu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&U(cl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ca(Fe),He(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function hp(e,t){switch(Xi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ca(Fe),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Wa(t),null;case 31:if(t.memoizedState!==null){if(Et(t),t.alternate===null)throw Error(o(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Et(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Ve),null;case 4:return Be(),null;case 10:return ca(t.type),null;case 22:case 23:return Et(t),rs(),e!==null&&U(cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ca(Fe),null;case 25:return null;default:return null}}function Rd(e,t){switch(Xi(t),t.tag){case 3:ca(Fe),Be();break;case 26:case 27:case 5:Wa(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&Et(t);break;case 13:Et(t);break;case 19:U(Ve);break;case 10:ca(t.type);break;case 22:case 23:Et(t),rs(),e!==null&&U(cl);break;case 24:ca(Fe)}}function Fn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var r=l.next;a=r;do{if((a.tag&e)===e){l=void 0;var i=a.create,d=a.inst;l=i(),d.destroy=l}a=a.next}while(a!==r)}}catch(p){Re(t,t.return,p)}}function qa(e,t,a){try{var l=t.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var i=r.next;l=i;do{if((l.tag&e)===e){var d=l.inst,p=d.destroy;if(p!==void 0){d.destroy=void 0,r=t;var b=a,M=p;try{M()}catch(w){Re(r,b,w)}}}l=l.next}while(l!==i)}}catch(w){Re(t,t.return,w)}}function Ud(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{_f(t,a)}catch(l){Re(e,e.return,l)}}}function wd(e,t,a){a.props=vl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Re(e,t,l)}}function $n(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(r){Re(e,t,r)}}function ea(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(r){Re(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){Re(e,t,r)}else a.current=null}function qd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(r){Re(e,e.return,r)}}function Qs(e,t,a){try{var l=e.stateNode;wp(l,e.type,a,t),l[ht]=t}catch(r){Re(e,e.return,r)}}function Qd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ya(e.type)||e.tag===4}function ks(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ya(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hs(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ra));else if(l!==4&&(l===27&&Ya(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Hs(e,t,a),e=e.sibling;e!==null;)Hs(e,t,a),e=e.sibling}function yu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ya(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(yu(e,t,a),e=e.sibling;e!==null;)yu(e,t,a),e=e.sibling}function kd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);it(t,l,a),t[lt]=e,t[ht]=a}catch(i){Re(e,e.return,i)}}var va=!1,We=!1,Bs=!1,Hd=typeof WeakSet=="function"?WeakSet:Set,tt=null;function mp(e,t){if(e=e.containerInfo,io=Qu,e=$c(e),Ri(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var r=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var d=0,p=-1,b=-1,M=0,w=0,k=e,A=null;t:for(;;){for(var z;k!==a||r!==0&&k.nodeType!==3||(p=d+r),k!==i||l!==0&&k.nodeType!==3||(b=d+l),k.nodeType===3&&(d+=k.nodeValue.length),(z=k.firstChild)!==null;)A=k,k=z;for(;;){if(k===e)break t;if(A===a&&++M===r&&(p=d),A===i&&++w===l&&(b=d),(z=k.nextSibling)!==null)break;k=A,A=k.parentNode}k=z}a=p===-1||b===-1?null:{start:p,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(so={focusedElem:e,selectionRange:a},Qu=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,r=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var P=vl(a.type,r);e=l.getSnapshotBeforeUpdate(P,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Re(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)fo(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}}function Bd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:pa(e,a),l&4&&Fn(5,a);break;case 1:if(pa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Re(a,a.return,d)}else{var r=vl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Re(a,a.return,d)}}l&64&&Ud(a),l&512&&$n(a,a.return);break;case 3:if(pa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{_f(e,t)}catch(d){Re(a,a.return,d)}}break;case 27:t===null&&l&4&&kd(a);case 26:case 5:pa(e,a),t===null&&l&4&&qd(a),l&512&&$n(a,a.return);break;case 12:pa(e,a);break;case 31:pa(e,a),l&4&&Yd(e,a);break;case 13:pa(e,a),l&4&&Xd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Op.bind(null,a),Yp(e,a))));break;case 22:if(l=a.memoizedState!==null||va,!l){t=t!==null&&t.memoizedState!==null||We,r=va;var i=We;va=l,(We=t)&&!i?ga(e,a,(a.subtreeFlags&8772)!==0):pa(e,a),va=r,We=i}break;case 30:break;default:pa(e,a)}}function Ld(e){var t=e.alternate;t!==null&&(e.alternate=null,Ld(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Le=null,vt=!1;function ya(e,t,a){for(a=a.child;a!==null;)Gd(e,t,a),a=a.sibling}function Gd(e,t,a){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(bn,a)}catch{}switch(a.tag){case 26:We||ea(a,t),ya(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:We||ea(a,t);var l=Le,r=vt;Ya(a.type)&&(Le=a.stateNode,vt=!1),ya(e,t,a),rr(a.stateNode),Le=l,vt=r;break;case 5:We||ea(a,t);case 6:if(l=Le,r=vt,Le=null,ya(e,t,a),Le=l,vt=r,Le!==null)if(vt)try{(Le.nodeType===9?Le.body:Le.nodeName==="HTML"?Le.ownerDocument.body:Le).removeChild(a.stateNode)}catch(i){Re(a,t,i)}else try{Le.removeChild(a.stateNode)}catch(i){Re(a,t,i)}break;case 18:Le!==null&&(vt?(e=Le,Uh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),on(e)):Uh(Le,a.stateNode));break;case 4:l=Le,r=vt,Le=a.stateNode.containerInfo,vt=!0,ya(e,t,a),Le=l,vt=r;break;case 0:case 11:case 14:case 15:qa(2,a,t),We||qa(4,a,t),ya(e,t,a);break;case 1:We||(ea(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&wd(a,t,l)),ya(e,t,a);break;case 21:ya(e,t,a);break;case 22:We=(l=We)||a.memoizedState!==null,ya(e,t,a),We=l;break;default:ya(e,t,a)}}function Yd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{on(e)}catch(a){Re(t,t.return,a)}}}function Xd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{on(e)}catch(a){Re(t,t.return,a)}}function vp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hd),t;default:throw Error(o(435,e.tag))}}function pu(e,t){var a=vp(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var r=_p.bind(null,e,l);l.then(r,r)}})}function yt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var r=a[l],i=e,d=t,p=d;e:for(;p!==null;){switch(p.tag){case 27:if(Ya(p.type)){Le=p.stateNode,vt=!1;break e}break;case 5:Le=p.stateNode,vt=!1;break e;case 3:case 4:Le=p.stateNode.containerInfo,vt=!0;break e}p=p.return}if(Le===null)throw Error(o(160));Gd(i,d,r),Le=null,vt=!1,i=r.alternate,i!==null&&(i.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Vd(t,e),t=t.sibling}var Xt=null;function Vd(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),pt(e),l&4&&(qa(3,e,e.return),Fn(3,e),qa(5,e,e.return));break;case 1:yt(t,e),pt(e),l&512&&(We||a===null||ea(a,a.return)),l&64&&va&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var r=Xt;if(yt(t,e),pt(e),l&512&&(We||a===null||ea(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(l){case"title":i=r.getElementsByTagName("title")[0],(!i||i[On]||i[lt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=r.createElement(l),r.head.insertBefore(i,r.querySelector("head > title"))),it(i,l,a),i[lt]=e,et(i),l=i;break e;case"link":var d=Vh("link","href",r).get(l+(a.href||""));if(d){for(var p=0;p<d.length;p++)if(i=d[p],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(p,1);break t}}i=r.createElement(l),it(i,l,a),r.head.appendChild(i);break;case"meta":if(d=Vh("meta","content",r).get(l+(a.content||""))){for(p=0;p<d.length;p++)if(i=d[p],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(p,1);break t}}i=r.createElement(l),it(i,l,a),r.head.appendChild(i);break;default:throw Error(o(468,l))}i[lt]=e,et(i),l=i}e.stateNode=l}else Kh(r,e.type,e.stateNode);else e.stateNode=Xh(r,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?Kh(r,e.type,e.stateNode):Xh(r,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Qs(e,e.memoizedProps,a.memoizedProps)}break;case 27:yt(t,e),pt(e),l&512&&(We||a===null||ea(a,a.return)),a!==null&&l&4&&Qs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(yt(t,e),pt(e),l&512&&(We||a===null||ea(a,a.return)),e.flags&32){r=e.stateNode;try{zl(r,"")}catch(P){Re(e,e.return,P)}}l&4&&e.stateNode!=null&&(r=e.memoizedProps,Qs(e,r,a!==null?a.memoizedProps:r)),l&1024&&(Bs=!0);break;case 6:if(yt(t,e),pt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(P){Re(e,e.return,P)}}break;case 3:if(Ru=null,r=Xt,Xt=zu(t.containerInfo),yt(t,e),Xt=r,pt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{on(t.containerInfo)}catch(P){Re(e,e.return,P)}Bs&&(Bs=!1,Kd(e));break;case 4:l=Xt,Xt=zu(e.stateNode.containerInfo),yt(t,e),pt(e),Xt=l;break;case 12:yt(t,e),pt(e);break;case 31:yt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,pu(e,l)));break;case 13:yt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(xu=ze()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,pu(e,l)));break;case 22:r=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,M=va,w=We;if(va=M||r,We=w||b,yt(t,e),We=w,va=M,pt(e),l&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||b||va||We||yl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(i=b.stateNode,r)d=i.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{p=b.stateNode;var k=b.memoizedProps.style,A=k!=null&&k.hasOwnProperty("display")?k.display:null;p.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(P){Re(b,b.return,P)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=r?"":b.memoizedProps}catch(P){Re(b,b.return,P)}}}else if(t.tag===18){if(a===null){b=t;try{var z=b.stateNode;r?wh(z,!0):wh(b.stateNode,!1)}catch(P){Re(b,b.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,pu(e,a))));break;case 19:yt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,pu(e,l)));break;case 30:break;case 21:break;default:yt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Qd(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var r=a.stateNode,i=ks(e);yu(e,i,r);break;case 5:var d=a.stateNode;a.flags&32&&(zl(d,""),a.flags&=-33);var p=ks(e);yu(e,p,d);break;case 3:case 4:var b=a.stateNode.containerInfo,M=ks(e);Hs(e,M,b);break;default:throw Error(o(161))}}catch(w){Re(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Kd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Kd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Bd(e,t.alternate,t),t=t.sibling}function yl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qa(4,t,t.return),yl(t);break;case 1:ea(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&wd(t,t.return,a),yl(t);break;case 27:rr(t.stateNode);case 26:case 5:ea(t,t.return),yl(t);break;case 22:t.memoizedState===null&&yl(t);break;case 30:yl(t);break;default:yl(t)}e=e.sibling}}function ga(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,r=e,i=t,d=i.flags;switch(i.tag){case 0:case 11:case 15:ga(r,i,a),Fn(4,i);break;case 1:if(ga(r,i,a),l=i,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(M){Re(l,l.return,M)}if(l=i,r=l.updateQueue,r!==null){var p=l.stateNode;try{var b=r.shared.hiddenCallbacks;if(b!==null)for(r.shared.hiddenCallbacks=null,r=0;r<b.length;r++)Of(b[r],p)}catch(M){Re(l,l.return,M)}}a&&d&64&&Ud(i),$n(i,i.return);break;case 27:kd(i);case 26:case 5:ga(r,i,a),a&&l===null&&d&4&&qd(i),$n(i,i.return);break;case 12:ga(r,i,a);break;case 31:ga(r,i,a),a&&d&4&&Yd(r,i);break;case 13:ga(r,i,a),a&&d&4&&Xd(r,i);break;case 22:i.memoizedState===null&&ga(r,i,a),$n(i,i.return);break;case 30:break;default:ga(r,i,a)}t=t.sibling}}function Ls(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&qn(a))}function Gs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qn(e))}function Vt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Zd(e,t,a,l),t=t.sibling}function Zd(e,t,a,l){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Vt(e,t,a,l),r&2048&&Fn(9,t);break;case 1:Vt(e,t,a,l);break;case 3:Vt(e,t,a,l),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qn(e)));break;case 12:if(r&2048){Vt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,d=i.id,p=i.onPostCommit;typeof p=="function"&&p(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Re(t,t.return,b)}}else Vt(e,t,a,l);break;case 31:Vt(e,t,a,l);break;case 13:Vt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,d=t.alternate,t.memoizedState!==null?i._visibility&2?Vt(e,t,a,l):Pn(e,t):i._visibility&2?Vt(e,t,a,l):(i._visibility|=2,Pl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Ls(d,t);break;case 24:Vt(e,t,a,l),r&2048&&Gs(t.alternate,t);break;default:Vt(e,t,a,l)}}function Pl(e,t,a,l,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,d=t,p=a,b=l,M=d.flags;switch(d.tag){case 0:case 11:case 15:Pl(i,d,p,b,r),Fn(8,d);break;case 23:break;case 22:var w=d.stateNode;d.memoizedState!==null?w._visibility&2?Pl(i,d,p,b,r):Pn(i,d):(w._visibility|=2,Pl(i,d,p,b,r)),r&&M&2048&&Ls(d.alternate,d);break;case 24:Pl(i,d,p,b,r),r&&M&2048&&Gs(d.alternate,d);break;default:Pl(i,d,p,b,r)}t=t.sibling}}function Pn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,r=l.flags;switch(l.tag){case 22:Pn(a,l),r&2048&&Ls(l.alternate,l);break;case 24:Pn(a,l),r&2048&&Gs(l.alternate,l);break;default:Pn(a,l)}t=t.sibling}}var Wn=8192;function Wl(e,t,a){if(e.subtreeFlags&Wn)for(e=e.child;e!==null;)Jd(e,t,a),e=e.sibling}function Jd(e,t,a){switch(e.tag){case 26:Wl(e,t,a),e.flags&Wn&&e.memoizedState!==null&&t0(a,Xt,e.memoizedState,e.memoizedProps);break;case 5:Wl(e,t,a);break;case 3:case 4:var l=Xt;Xt=zu(e.stateNode.containerInfo),Wl(e,t,a),Xt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Wn,Wn=16777216,Wl(e,t,a),Wn=l):Wl(e,t,a));break;default:Wl(e,t,a)}}function Fd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function In(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];tt=l,Pd(l,e)}Fd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$d(e),e=e.sibling}function $d(e){switch(e.tag){case 0:case 11:case 15:In(e),e.flags&2048&&qa(9,e,e.return);break;case 3:In(e);break;case 12:In(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,gu(e)):In(e);break;default:In(e)}}function gu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];tt=l,Pd(l,e)}Fd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qa(8,t,t.return),gu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,gu(t));break;default:gu(t)}e=e.sibling}}function Pd(e,t){for(;tt!==null;){var a=tt;switch(a.tag){case 0:case 11:case 15:qa(8,a,t);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:qn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,tt=l;else e:for(a=e;tt!==null;){l=tt;var r=l.sibling,i=l.return;if(Ld(l),l===a){tt=null;break e}if(r!==null){r.return=i,tt=r;break e}tt=i}}}var yp={getCacheForType:function(e){var t=rt(Fe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return rt(Fe).controller.signal}},pp=typeof WeakMap=="function"?WeakMap:Map,Ae=0,Qe=null,je=null,_e=0,De=0,Mt=null,Qa=!1,Il=!1,Ys=!1,xa=0,Ye=0,ka=0,pl=0,Xs=0,Tt=0,en=0,er=null,gt=null,Vs=!1,xu=0,Wd=0,bu=1/0,Su=null,Ha=null,Ie=0,Ba=null,tn=null,ba=0,Ks=0,Zs=null,Id=null,tr=0,Js=null;function At(){return(Ae&2)!==0&&_e!==0?_e&-_e:T.T!==null?eo():mc()}function eh(){if(Tt===0)if((_e&536870912)===0||Ce){var e=Tr;Tr<<=1,(Tr&3932160)===0&&(Tr=262144),Tt=e}else Tt=536870912;return e=Ct.current,e!==null&&(e.flags|=32),Tt}function xt(e,t,a){(e===Qe&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(an(e,0),La(e,_e,Tt,!1)),jn(e,a),((Ae&2)===0||e!==Qe)&&(e===Qe&&((Ae&2)===0&&(pl|=a),Ye===4&&La(e,_e,Tt,!1)),ta(e))}function th(e,t,a){if((Ae&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Sn(e,t),r=l?bp(e,t):$s(e,t,!0),i=l;do{if(r===0){Il&&!l&&La(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!gp(a)){r=$s(e,t,!1),i=!1;continue}if(r===2){if(i=t,e.errorRecoveryDisabledLanes&i)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var p=e;r=er;var b=p.current.memoizedState.isDehydrated;if(b&&(an(p,d).flags|=256),d=$s(p,d,!1),d!==2){if(Ys&&!b){p.errorRecoveryDisabledLanes|=i,pl|=i,r=4;break e}i=gt,gt=r,i!==null&&(gt===null?gt=i:gt.push.apply(gt,i))}r=d}if(i=!1,r!==2)continue}}if(r===1){an(e,0),La(e,t,0,!0);break}e:{switch(l=e,i=r,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:La(l,t,Tt,!Qa);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(r=xu+300-ze(),10<r)){if(La(l,t,Tt,!Qa),zr(l,0,!0)!==0)break e;ba=t,l.timeoutHandle=Dh(ah.bind(null,l,a,gt,Su,Vs,t,Tt,pl,en,Qa,i,"Throttled",-0,0),r);break e}ah(l,a,gt,Su,Vs,t,Tt,pl,en,Qa,i,null,-0,0)}}break}while(!0);ta(e)}function ah(e,t,a,l,r,i,d,p,b,M,w,k,A,z){if(e.timeoutHandle=-1,k=t.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ra},Jd(t,i,k);var P=(i&62914560)===i?xu-ze():(i&4194048)===i?Wd-ze():0;if(P=a0(k,P),P!==null){ba=i,e.cancelPendingCommit=P(ch.bind(null,e,t,i,a,l,r,d,p,b,w,k,null,A,z)),La(e,i,d,!M);return}}ch(e,t,i,a,l,r,d,p,b)}function gp(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var r=a[l],i=r.getSnapshot;r=r.value;try{if(!_t(i(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function La(e,t,a,l){t&=~Xs,t&=~pl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var r=t;0<r;){var i=31-Ot(r),d=1<<i;l[i]=-1,r&=~d}a!==0&&fc(e,a,t)}function ju(){return(Ae&6)===0?(ar(0),!1):!0}function Fs(){if(je!==null){if(De===0)var e=je.return;else e=je,oa=sl=null,fs(e),Kl=null,kn=0,e=je;for(;e!==null;)Rd(e.alternate,e),e=e.return;je=null}}function an(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,kp(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ba=0,Fs(),Qe=e,je=a=ia(e.current,null),_e=t,De=0,Mt=null,Qa=!1,Il=Sn(e,t),Ys=!1,en=Tt=Xs=pl=ka=Ye=0,gt=er=null,Vs=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var r=31-Ot(l),i=1<<r;t|=e[r],l&=~i}return xa=t,Yr(),a}function lh(e,t){ve=null,T.H=Kn,t===Vl||t===Pr?(t=xf(),De=3):t===Ii?(t=xf(),De=4):De=t===Es?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,je===null&&(Ye=1,fu(e,wt(t,e.current)))}function nh(){var e=Ct.current;return e===null?!0:(_e&4194048)===_e?Ht===null:(_e&62914560)===_e||(_e&536870912)!==0?e===Ht:!1}function rh(){var e=T.H;return T.H=Kn,e===null?Kn:e}function uh(){var e=T.A;return T.A=yp,e}function Ou(){Ye=4,Qa||(_e&4194048)!==_e&&Ct.current!==null||(Il=!0),(ka&134217727)===0&&(pl&134217727)===0||Qe===null||La(Qe,_e,Tt,!1)}function $s(e,t,a){var l=Ae;Ae|=2;var r=rh(),i=uh();(Qe!==e||_e!==t)&&(Su=null,an(e,t)),t=!1;var d=Ye;e:do try{if(De!==0&&je!==null){var p=je,b=Mt;switch(De){case 8:Fs(),d=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var M=De;if(De=0,Mt=null,ln(e,p,b,M),a&&Il){d=0;break e}break;default:M=De,De=0,Mt=null,ln(e,p,b,M)}}xp(),d=Ye;break}catch(w){lh(e,w)}while(!0);return t&&e.shellSuspendCounter++,oa=sl=null,Ae=l,T.H=r,T.A=i,je===null&&(Qe=null,_e=0,Yr()),d}function xp(){for(;je!==null;)ih(je)}function bp(e,t){var a=Ae;Ae|=2;var l=rh(),r=uh();Qe!==e||_e!==t?(Su=null,bu=ze()+500,an(e,t)):Il=Sn(e,t);e:do try{if(De!==0&&je!==null){t=je;var i=Mt;t:switch(De){case 1:De=0,Mt=null,ln(e,t,i,1);break;case 2:case 9:if(pf(i)){De=0,Mt=null,sh(t);break}t=function(){De!==2&&De!==9||Qe!==e||(De=7),ta(e)},i.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:pf(i)?(De=0,Mt=null,sh(t)):(De=0,Mt=null,ln(e,t,i,7));break;case 5:var d=null;switch(je.tag){case 26:d=je.memoizedState;case 5:case 27:var p=je;if(d?Zh(d):p.stateNode.complete){De=0,Mt=null;var b=p.sibling;if(b!==null)je=b;else{var M=p.return;M!==null?(je=M,_u(M)):je=null}break t}}De=0,Mt=null,ln(e,t,i,5);break;case 6:De=0,Mt=null,ln(e,t,i,6);break;case 8:Fs(),Ye=6;break e;default:throw Error(o(462))}}Sp();break}catch(w){lh(e,w)}while(!0);return oa=sl=null,T.H=l,T.A=r,Ae=a,je!==null?0:(Qe=null,_e=0,Yr(),Ye)}function Sp(){for(;je!==null&&!Cr();)ih(je)}function ih(e){var t=zd(e.alternate,e,xa);e.memoizedProps=e.pendingProps,t===null?_u(e):je=t}function sh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Nd(a,t,t.pendingProps,t.type,void 0,_e);break;case 11:t=Nd(a,t,t.pendingProps,t.type.render,t.ref,_e);break;case 5:fs(t);default:Rd(a,t),t=je=rf(t,xa),t=zd(a,t,xa)}e.memoizedProps=e.pendingProps,t===null?_u(e):je=t}function ln(e,t,a,l){oa=sl=null,fs(t),Kl=null,kn=0;var r=t.return;try{if(op(e,r,t,a,_e)){Ye=1,fu(e,wt(a,e.current)),je=null;return}}catch(i){if(r!==null)throw je=r,i;Ye=1,fu(e,wt(a,e.current)),je=null;return}t.flags&32768?(Ce||l===1?e=!0:Il||(_e&536870912)!==0?e=!1:(Qa=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ct.current,l!==null&&l.tag===13&&(l.flags|=16384))),oh(t,e)):_u(t)}function _u(e){var t=e;do{if((t.flags&32768)!==0){oh(t,Qa);return}e=t.return;var a=dp(t.alternate,t,xa);if(a!==null){je=a;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Ye===0&&(Ye=5)}function oh(e,t){do{var a=hp(e.alternate,e);if(a!==null){a.flags&=32767,je=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=a}while(e!==null);Ye=6,je=null}function ch(e,t,a,l,r,i,d,p,b){e.cancelPendingCommit=null;do Nu();while(Ie!==0);if((Ae&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=ki,ey(e,a,i,d,p,b),e===Qe&&(je=Qe=null,_e=0),tn=t,Ba=e,ba=a,Ks=i,Zs=r,Id=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Np(at,function(){return vh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null,r=H.p,H.p=2,d=Ae,Ae|=4;try{mp(e,t,a)}finally{Ae=d,H.p=r,T.T=l}}Ie=1,fh(),dh(),hh()}}function fh(){if(Ie===1){Ie=0;var e=Ba,t=tn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null;var l=H.p;H.p=2;var r=Ae;Ae|=4;try{Vd(t,e);var i=so,d=$c(e.containerInfo),p=i.focusedElem,b=i.selectionRange;if(d!==p&&p&&p.ownerDocument&&Fc(p.ownerDocument.documentElement,p)){if(b!==null&&Ri(p)){var M=b.start,w=b.end;if(w===void 0&&(w=M),"selectionStart"in p)p.selectionStart=M,p.selectionEnd=Math.min(w,p.value.length);else{var k=p.ownerDocument||document,A=k&&k.defaultView||window;if(A.getSelection){var z=A.getSelection(),P=p.textContent.length,ie=Math.min(b.start,P),qe=b.end===void 0?ie:Math.min(b.end,P);!z.extend&&ie>qe&&(d=qe,qe=ie,ie=d);var N=Jc(p,ie),j=Jc(p,qe);if(N&&j&&(z.rangeCount!==1||z.anchorNode!==N.node||z.anchorOffset!==N.offset||z.focusNode!==j.node||z.focusOffset!==j.offset)){var E=k.createRange();E.setStart(N.node,N.offset),z.removeAllRanges(),ie>qe?(z.addRange(E),z.extend(j.node,j.offset)):(E.setEnd(j.node,j.offset),z.addRange(E))}}}}for(k=[],z=p;z=z.parentNode;)z.nodeType===1&&k.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<k.length;p++){var Q=k[p];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Qu=!!io,so=io=null}finally{Ae=r,H.p=l,T.T=a}}e.current=t,Ie=2}}function dh(){if(Ie===2){Ie=0;var e=Ba,t=tn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=T.T,T.T=null;var l=H.p;H.p=2;var r=Ae;Ae|=4;try{Bd(e,t.alternate,t)}finally{Ae=r,H.p=l,T.T=a}}Ie=3}}function hh(){if(Ie===4||Ie===3){Ie=0,Z();var e=Ba,t=tn,a=ba,l=Id;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ie=5:(Ie=0,tn=Ba=null,mh(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Ha=null),mi(a),t=t.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(bn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=T.T,r=H.p,H.p=2,T.T=null;try{for(var i=e.onRecoverableError,d=0;d<l.length;d++){var p=l[d];i(p.value,{componentStack:p.stack})}}finally{T.T=t,H.p=r}}(ba&3)!==0&&Nu(),ta(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===Js?tr++:(tr=0,Js=e):tr=0,ar(0)}}function mh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,qn(t)))}function Nu(){return fh(),dh(),hh(),vh()}function vh(){if(Ie!==5)return!1;var e=Ba,t=Ks;Ks=0;var a=mi(ba),l=T.T,r=H.p;try{H.p=32>a?32:a,T.T=null,a=Zs,Zs=null;var i=Ba,d=ba;if(Ie=0,tn=Ba=null,ba=0,(Ae&6)!==0)throw Error(o(331));var p=Ae;if(Ae|=4,$d(i.current),Zd(i,i.current,d,a),Ae=p,ar(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(bn,i)}catch{}return!0}finally{H.p=r,T.T=l,mh(e,t)}}function yh(e,t,a){t=wt(a,t),t=Cs(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(jn(e,2),ta(e))}function Re(e,t,a){if(e.tag===3)yh(e,e,a);else for(;t!==null;){if(t.tag===3){yh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ha===null||!Ha.has(l))){e=wt(a,e),a=pd(2),l=Ra(t,a,2),l!==null&&(gd(a,l,t,e),jn(l,2),ta(l));break}}t=t.return}}function Ps(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new pp;var r=new Set;l.set(t,r)}else r=l.get(t),r===void 0&&(r=new Set,l.set(t,r));r.has(a)||(Ys=!0,r.add(a),e=jp.bind(null,e,t,a),t.then(e,e))}function jp(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Qe===e&&(_e&a)===a&&(Ye===4||Ye===3&&(_e&62914560)===_e&&300>ze()-xu?(Ae&2)===0&&an(e,0):Xs|=a,en===_e&&(en=0)),ta(e)}function ph(e,t){t===0&&(t=cc()),e=rl(e,t),e!==null&&(jn(e,t),ta(e))}function Op(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ph(e,a)}function _p(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),ph(e,a)}function Np(e,t){return pn(e,t)}var Cu=null,nn=null,Ws=!1,Eu=!1,Is=!1,Ga=0;function ta(e){e!==nn&&e.next===null&&(nn===null?Cu=nn=e:nn=nn.next=e),Eu=!0,Ws||(Ws=!0,Ep())}function ar(e,t){if(!Is&&Eu){Is=!0;do for(var a=!1,l=Cu;l!==null;){if(e!==0){var r=l.pendingLanes;if(r===0)var i=0;else{var d=l.suspendedLanes,p=l.pingedLanes;i=(1<<31-Ot(42|e)+1)-1,i&=r&~(d&~p),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,Sh(l,i))}else i=_e,i=zr(l,l===Qe?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||Sn(l,i)||(a=!0,Sh(l,i));l=l.next}while(a);Is=!1}}function Cp(){gh()}function gh(){Eu=Ws=!1;var e=0;Ga!==0&&Qp()&&(e=Ga);for(var t=ze(),a=null,l=Cu;l!==null;){var r=l.next,i=xh(l,t);i===0?(l.next=null,a===null?Cu=r:a.next=r,r===null&&(nn=a)):(a=l,(e!==0||(i&3)!==0)&&(Eu=!0)),l=r}Ie!==0&&Ie!==5||ar(e),Ga!==0&&(Ga=0)}function xh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var d=31-Ot(i),p=1<<d,b=r[d];b===-1?((p&a)===0||(p&l)!==0)&&(r[d]=Iv(p,t)):b<=t&&(e.expiredLanes|=p),i&=~p}if(t=Qe,a=_e,a=zr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&gn(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Sn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&gn(l),mi(a)){case 2:case 8:a=Pt;break;case 32:a=at;break;case 268435456:a=Er;break;default:a=at}return l=bh.bind(null,e),a=pn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&gn(l),e.callbackPriority=2,e.callbackNode=null,2}function bh(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Nu()&&e.callbackNode!==a)return null;var l=_e;return l=zr(e,e===Qe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(th(e,l,t),xh(e,ze()),e.callbackNode!=null&&e.callbackNode===a?bh.bind(null,e):null)}function Sh(e,t){if(Nu())return null;th(e,t,!0)}function Ep(){Hp(function(){(Ae&6)!==0?pn(St,Cp):gh()})}function eo(){if(Ga===0){var e=Yl;e===0&&(e=Mr,Mr<<=1,(Mr&261888)===0&&(Mr=256)),Ga=e}return Ga}function jh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wr(""+e)}function Oh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Mp(e,t,a,l,r){if(t==="submit"&&a&&a.stateNode===r){var i=jh((r[ht]||null).action),d=l.submitter;d&&(t=(t=d[ht]||null)?jh(t.formAction):d.getAttribute("formAction"),t!==null&&(i=t,d=null));var p=new Hr("action","action",null,l,r);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ga!==0){var b=d?Oh(r,d):new FormData(r);bs(a,{pending:!0,data:b,method:r.method,action:i},null,b)}}else typeof i=="function"&&(p.preventDefault(),b=d?Oh(r,d):new FormData(r),bs(a,{pending:!0,data:b,method:r.method,action:i},i,b))},currentTarget:r}]})}}for(var to=0;to<Qi.length;to++){var ao=Qi[to],Tp=ao.toLowerCase(),Ap=ao[0].toUpperCase()+ao.slice(1);Yt(Tp,"on"+Ap)}Yt(Ic,"onAnimationEnd"),Yt(ef,"onAnimationIteration"),Yt(tf,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(Ky,"onTransitionRun"),Yt(Zy,"onTransitionStart"),Yt(Jy,"onTransitionCancel"),Yt(af,"onTransitionEnd"),Tl("onMouseEnter",["mouseout","mouseover"]),Tl("onMouseLeave",["mouseout","mouseover"]),Tl("onPointerEnter",["pointerout","pointerover"]),Tl("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 lr="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(" "),zp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lr));function _h(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],r=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var d=l.length-1;0<=d;d--){var p=l[d],b=p.instance,M=p.currentTarget;if(p=p.listener,b!==i&&r.isPropagationStopped())break e;i=p,r.currentTarget=M;try{i(r)}catch(w){Gr(w)}r.currentTarget=null,i=b}else for(d=0;d<l.length;d++){if(p=l[d],b=p.instance,M=p.currentTarget,p=p.listener,b!==i&&r.isPropagationStopped())break e;i=p,r.currentTarget=M;try{i(r)}catch(w){Gr(w)}r.currentTarget=null,i=b}}}}function Oe(e,t){var a=t[vi];a===void 0&&(a=t[vi]=new Set);var l=e+"__bubble";a.has(l)||(Nh(t,e,2,!1),a.add(l))}function lo(e,t,a){var l=0;t&&(l|=4),Nh(a,e,l,t)}var Mu="_reactListening"+Math.random().toString(36).slice(2);function no(e){if(!e[Mu]){e[Mu]=!0,pc.forEach(function(a){a!=="selectionchange"&&(zp.has(a)||lo(a,!1,e),lo(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mu]||(t[Mu]=!0,lo("selectionchange",!1,t))}}function Nh(e,t,a,l){switch(em(t)){case 2:var r=r0;break;case 8:r=u0;break;default:r=bo}a=r.bind(null,t,a,e),r=void 0,!_i||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),l?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function ro(e,t,a,l,r){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var p=l.stateNode.containerInfo;if(p===r)break;if(d===4)for(d=l.return;d!==null;){var b=d.tag;if((b===3||b===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;p!==null;){if(d=Cl(p),d===null)return;if(b=d.tag,b===5||b===6||b===26||b===27){l=i=d;continue e}p=p.parentNode}}l=l.return}Tc(function(){var M=i,w=ji(a),k=[];e:{var A=lf.get(e);if(A!==void 0){var z=Hr,P=e;switch(e){case"keypress":if(Qr(a)===0)break e;case"keydown":case"keyup":z=_y;break;case"focusin":P="focus",z=Mi;break;case"focusout":P="blur",z=Mi;break;case"beforeblur":case"afterblur":z=Mi;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Dc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=dy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Ey;break;case Ic:case ef:case tf:z=vy;break;case af:z=Ty;break;case"scroll":case"scrollend":z=cy;break;case"wheel":z=zy;break;case"copy":case"cut":case"paste":z=py;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Uc;break;case"toggle":case"beforetoggle":z=Ry}var ie=(t&4)!==0,qe=!ie&&(e==="scroll"||e==="scrollend"),N=ie?A!==null?A+"Capture":null:A;ie=[];for(var j=M,E;j!==null;){var Q=j;if(E=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||E===null||N===null||(Q=Nn(j,N),Q!=null&&ie.push(nr(j,Q,E))),qe)break;j=j.return}0<ie.length&&(A=new z(A,P,null,a,w),k.push({event:A,listeners:ie}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",A&&a!==Si&&(P=a.relatedTarget||a.fromElement)&&(Cl(P)||P[Nl]))break e;if((z||A)&&(A=w.window===w?w:(A=w.ownerDocument)?A.defaultView||A.parentWindow:window,z?(P=a.relatedTarget||a.toElement,z=M,P=P?Cl(P):null,P!==null&&(qe=h(P),ie=P.tag,P!==qe||ie!==5&&ie!==27&&ie!==6)&&(P=null)):(z=null,P=M),z!==P)){if(ie=Dc,Q="onMouseLeave",N="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Uc,Q="onPointerLeave",N="onPointerEnter",j="pointer"),qe=z==null?A:_n(z),E=P==null?A:_n(P),A=new ie(Q,j+"leave",z,a,w),A.target=qe,A.relatedTarget=E,Q=null,Cl(w)===M&&(ie=new ie(N,j+"enter",P,a,w),ie.target=E,ie.relatedTarget=qe,Q=ie),qe=Q,z&&P)t:{for(ie=Dp,N=z,j=P,E=0,Q=N;Q;Q=ie(Q))E++;Q=0;for(var re=j;re;re=ie(re))Q++;for(;0<E-Q;)N=ie(N),E--;for(;0<Q-E;)j=ie(j),Q--;for(;E--;){if(N===j||j!==null&&N===j.alternate){ie=N;break t}N=ie(N),j=ie(j)}ie=null}else ie=null;z!==null&&Ch(k,A,z,ie,!1),P!==null&&qe!==null&&Ch(k,qe,P,ie,!0)}}e:{if(A=M?_n(M):window,z=A.nodeName&&A.nodeName.toLowerCase(),z==="select"||z==="input"&&A.type==="file")var Ee=Gc;else if(Bc(A))if(Yc)Ee=Yy;else{Ee=Ly;var ae=By}else z=A.nodeName,!z||z.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?M&&bi(M.elementType)&&(Ee=Gc):Ee=Gy;if(Ee&&(Ee=Ee(e,M))){Lc(k,Ee,a,w);break e}ae&&ae(e,A,M),e==="focusout"&&M&&A.type==="number"&&M.memoizedProps.value!=null&&xi(A,"number",A.value)}switch(ae=M?_n(M):window,e){case"focusin":(Bc(ae)||ae.contentEditable==="true")&&(wl=ae,Ui=M,Rn=null);break;case"focusout":Rn=Ui=wl=null;break;case"mousedown":wi=!0;break;case"contextmenu":case"mouseup":case"dragend":wi=!1,Pc(k,a,w);break;case"selectionchange":if(Vy)break;case"keydown":case"keyup":Pc(k,a,w)}var pe;if(Ai)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else Ul?kc(e,a)&&(Ne="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ne="onCompositionStart");Ne&&(wc&&a.locale!=="ko"&&(Ul||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Ul&&(pe=Ac()):(Ca=w,Ni="value"in Ca?Ca.value:Ca.textContent,Ul=!0)),ae=Tu(M,Ne),0<ae.length&&(Ne=new Rc(Ne,e,null,a,w),k.push({event:Ne,listeners:ae}),pe?Ne.data=pe:(pe=Hc(a),pe!==null&&(Ne.data=pe)))),(pe=wy?qy(e,a):Qy(e,a))&&(Ne=Tu(M,"onBeforeInput"),0<Ne.length&&(ae=new Rc("onBeforeInput","beforeinput",null,a,w),k.push({event:ae,listeners:Ne}),ae.data=pe)),Mp(k,e,M,a,w)}_h(k,t)})}function nr(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Tu(e,t){for(var a=t+"Capture",l=[];e!==null;){var r=e,i=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||i===null||(r=Nn(e,a),r!=null&&l.unshift(nr(e,r,i)),r=Nn(e,t),r!=null&&l.push(nr(e,r,i))),e.tag===3)return l;e=e.return}return[]}function Dp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ch(e,t,a,l,r){for(var i=t._reactName,d=[];a!==null&&a!==l;){var p=a,b=p.alternate,M=p.stateNode;if(p=p.tag,b!==null&&b===l)break;p!==5&&p!==26&&p!==27||M===null||(b=M,r?(M=Nn(a,i),M!=null&&d.unshift(nr(a,M,b))):r||(M=Nn(a,i),M!=null&&d.push(nr(a,M,b)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var Rp=/\r\n?/g,Up=/\u0000|\uFFFD/g;function Eh(e){return(typeof e=="string"?e:""+e).replace(Rp,`
`).replace(Up,"")}function Mh(e,t){return t=Eh(t),Eh(e)===t}function we(e,t,a,l,r,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||zl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&zl(e,""+l);break;case"className":Rr(e,"class",l);break;case"tabIndex":Rr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Rr(e,a,l);break;case"style":Ec(e,l,i);break;case"data":if(t!=="object"){Rr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=wr(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.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 i=="function"&&(a==="formAction"?(t!=="input"&&we(e,t,"name",r.name,r,null),we(e,t,"formEncType",r.formEncType,r,null),we(e,t,"formMethod",r.formMethod,r,null),we(e,t,"formTarget",r.formTarget,r,null)):(we(e,t,"encType",r.encType,r,null),we(e,t,"method",r.method,r,null),we(e,t,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=wr(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ra);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.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"){e.removeAttribute("xlink:href");break}a=wr(""+l),e.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"?e.setAttribute(a,""+l):e.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"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),Dr(e,"popover",l);break;case"xlinkActuate":na(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":na(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":na(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":na(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":na(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":na(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":na(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Dr(e,"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=sy.get(a)||a,Dr(e,a,l))}}function uo(e,t,a,l,r,i){switch(a){case"style":Ec(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?zl(e,l):(typeof l=="number"||typeof l=="bigint")&&zl(e,""+l);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),i=e[ht]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,r),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,r);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Dr(e,a,l)}}}function it(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var l=!1,r=!1,i;for(i in a)if(a.hasOwnProperty(i)){var d=a[i];if(d!=null)switch(i){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:we(e,t,i,d,a,null)}}r&&we(e,t,"srcSet",a.srcSet,a,null),l&&we(e,t,"src",a.src,a,null);return;case"input":Oe("invalid",e);var p=i=d=r=null,b=null,M=null;for(l in a)if(a.hasOwnProperty(l)){var w=a[l];if(w!=null)switch(l){case"name":r=w;break;case"type":d=w;break;case"checked":b=w;break;case"defaultChecked":M=w;break;case"value":i=w;break;case"defaultValue":p=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,t));break;default:we(e,t,l,w,a,null)}}Oc(e,i,p,b,M,d,r,!1);return;case"select":Oe("invalid",e),l=d=i=null;for(r in a)if(a.hasOwnProperty(r)&&(p=a[r],p!=null))switch(r){case"value":i=p;break;case"defaultValue":d=p;break;case"multiple":l=p;default:we(e,t,r,p,a,null)}t=i,a=d,e.multiple=!!l,t!=null?Al(e,!!l,t,!1):a!=null&&Al(e,!!l,a,!0);return;case"textarea":Oe("invalid",e),i=r=l=null;for(d in a)if(a.hasOwnProperty(d)&&(p=a[d],p!=null))switch(d){case"value":l=p;break;case"defaultValue":r=p;break;case"children":i=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:we(e,t,d,p,a,null)}Nc(e,l,r,i);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(l=a[b],l!=null))switch(b){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:we(e,t,b,l,a,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(l=0;l<lr.length;l++)Oe(lr[l],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(l=a[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:we(e,t,M,l,a,null)}return;default:if(bi(t)){for(w in a)a.hasOwnProperty(w)&&(l=a[w],l!==void 0&&uo(e,t,w,l,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!=null&&we(e,t,p,l,a,null))}function wp(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,i=null,d=null,p=null,b=null,M=null,w=null;for(z in a){var k=a[z];if(a.hasOwnProperty(z)&&k!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":b=k;default:l.hasOwnProperty(z)||we(e,t,z,null,l,k)}}for(var A in l){var z=l[A];if(k=a[A],l.hasOwnProperty(A)&&(z!=null||k!=null))switch(A){case"type":i=z;break;case"name":r=z;break;case"checked":M=z;break;case"defaultChecked":w=z;break;case"value":d=z;break;case"defaultValue":p=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:z!==k&&we(e,t,A,z,l,k)}}gi(e,d,p,b,M,w,i,r);return;case"select":z=d=p=A=null;for(i in a)if(b=a[i],a.hasOwnProperty(i)&&b!=null)switch(i){case"value":break;case"multiple":z=b;default:l.hasOwnProperty(i)||we(e,t,i,null,l,b)}for(r in l)if(i=l[r],b=a[r],l.hasOwnProperty(r)&&(i!=null||b!=null))switch(r){case"value":A=i;break;case"defaultValue":p=i;break;case"multiple":d=i;default:i!==b&&we(e,t,r,i,l,b)}t=p,a=d,l=z,A!=null?Al(e,!!a,A,!1):!!l!=!!a&&(t!=null?Al(e,!!a,t,!0):Al(e,!!a,a?[]:"",!1));return;case"textarea":z=A=null;for(p in a)if(r=a[p],a.hasOwnProperty(p)&&r!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:we(e,t,p,null,l,r)}for(d in l)if(r=l[d],i=a[d],l.hasOwnProperty(d)&&(r!=null||i!=null))switch(d){case"value":A=r;break;case"defaultValue":z=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==i&&we(e,t,d,r,l,i)}_c(e,A,z);return;case"option":for(var P in a)if(A=a[P],a.hasOwnProperty(P)&&A!=null&&!l.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:we(e,t,P,null,l,A)}for(b in l)if(A=l[b],z=a[b],l.hasOwnProperty(b)&&A!==z&&(A!=null||z!=null))switch(b){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:we(e,t,b,A,l,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in a)A=a[ie],a.hasOwnProperty(ie)&&A!=null&&!l.hasOwnProperty(ie)&&we(e,t,ie,null,l,A);for(M in l)if(A=l[M],z=a[M],l.hasOwnProperty(M)&&A!==z&&(A!=null||z!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:we(e,t,M,A,l,z)}return;default:if(bi(t)){for(var qe in a)A=a[qe],a.hasOwnProperty(qe)&&A!==void 0&&!l.hasOwnProperty(qe)&&uo(e,t,qe,void 0,l,A);for(w in l)A=l[w],z=a[w],!l.hasOwnProperty(w)||A===z||A===void 0&&z===void 0||uo(e,t,w,A,l,z);return}}for(var N in a)A=a[N],a.hasOwnProperty(N)&&A!=null&&!l.hasOwnProperty(N)&&we(e,t,N,null,l,A);for(k in l)A=l[k],z=a[k],!l.hasOwnProperty(k)||A===z||A==null&&z==null||we(e,t,k,A,l,z)}function Th(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var r=a[l],i=r.transferSize,d=r.initiatorType,p=r.duration;if(i&&p&&Th(d)){for(d=0,p=r.responseEnd,l+=1;l<a.length;l++){var b=a[l],M=b.startTime;if(M>p)break;var w=b.transferSize,k=b.initiatorType;w&&Th(k)&&(b=b.responseEnd,d+=w*(b<p?1:(p-M)/(b-M)))}if(--l,t+=8*(i+d)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var io=null,so=null;function Au(e){return e.nodeType===9?e:e.ownerDocument}function Ah(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function oo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var co=null;function Qp(){var e=window.event;return e&&e.type==="popstate"?e===co?!1:(co=e,!0):(co=null,!1)}var Dh=typeof setTimeout=="function"?setTimeout:void 0,kp=typeof clearTimeout=="function"?clearTimeout:void 0,Rh=typeof Promise=="function"?Promise:void 0,Hp=typeof queueMicrotask=="function"?queueMicrotask:typeof Rh<"u"?function(e){return Rh.resolve(null).then(e).catch(Bp)}:Dh;function Bp(e){setTimeout(function(){throw e})}function Ya(e){return e==="head"}function Uh(e,t){var a=t,l=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(r),on(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")rr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,rr(a);for(var i=a.firstChild;i;){var d=i.nextSibling,p=i.nodeName;i[On]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=d}}else a==="body"&&rr(e.ownerDocument.body);a=r}while(a);on(t)}function wh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function fo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":fo(a),yi(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Lp(e,t,a,l){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[On])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Bt(e.nextSibling),e===null)break}return null}function Gp(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Bt(e.nextSibling),e===null))return null;return e}function qh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Bt(e.nextSibling),e===null))return null;return e}function ho(e){return e.data==="$?"||e.data==="$~"}function mo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Yp(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Bt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var vo=null;function Qh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Bt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function kh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Hh(e,t,a){switch(t=Au(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function rr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yi(e)}var Lt=new Map,Bh=new Set;function zu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sa=H.d;H.d={f:Xp,r:Vp,D:Kp,C:Zp,L:Jp,m:Fp,X:Pp,S:$p,M:Wp};function Xp(){var e=Sa.f(),t=ju();return e||t}function Vp(e){var t=El(e);t!==null&&t.tag===5&&t.type==="form"?ld(t):Sa.r(e)}var rn=typeof document>"u"?null:document;function Lh(e,t,a){var l=rn;if(l&&typeof t=="string"&&t){var r=Rt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),Bh.has(r)||(Bh.add(r),e={rel:e,crossOrigin:a,href:t},l.querySelector(r)===null&&(t=l.createElement("link"),it(t,"link",e),et(t),l.head.appendChild(t)))}}function Kp(e){Sa.D(e),Lh("dns-prefetch",e,null)}function Zp(e,t){Sa.C(e,t),Lh("preconnect",e,t)}function Jp(e,t,a){Sa.L(e,t,a);var l=rn;if(l&&e&&t){var r='link[rel="preload"][as="'+Rt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+Rt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+Rt(a.imageSizes)+'"]')):r+='[href="'+Rt(e)+'"]';var i=r;switch(t){case"style":i=un(e);break;case"script":i=sn(e)}Lt.has(i)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Lt.set(i,e),l.querySelector(r)!==null||t==="style"&&l.querySelector(ur(i))||t==="script"&&l.querySelector(ir(i))||(t=l.createElement("link"),it(t,"link",e),et(t),l.head.appendChild(t)))}}function Fp(e,t){Sa.m(e,t);var a=rn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Rt(l)+'"][href="'+Rt(e)+'"]',i=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=sn(e)}if(!Lt.has(i)&&(e=x({rel:"modulepreload",href:e},t),Lt.set(i,e),a.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ir(i)))return}l=a.createElement("link"),it(l,"link",e),et(l),a.head.appendChild(l)}}}function $p(e,t,a){Sa.S(e,t,a);var l=rn;if(l&&e){var r=Ml(l).hoistableStyles,i=un(e);t=t||"default";var d=r.get(i);if(!d){var p={loading:0,preload:null};if(d=l.querySelector(ur(i)))p.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Lt.get(i))&&yo(e,a);var b=d=l.createElement("link");et(b),it(b,"link",e),b._p=new Promise(function(M,w){b.onload=M,b.onerror=w}),b.addEventListener("load",function(){p.loading|=1}),b.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Du(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:p},r.set(i,d)}}}function Pp(e,t){Sa.X(e,t);var a=rn;if(a&&e){var l=Ml(a).hoistableScripts,r=sn(e),i=l.get(r);i||(i=a.querySelector(ir(r)),i||(e=x({src:e,async:!0},t),(t=Lt.get(r))&&po(e,t),i=a.createElement("script"),et(i),it(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(r,i))}}function Wp(e,t){Sa.M(e,t);var a=rn;if(a&&e){var l=Ml(a).hoistableScripts,r=sn(e),i=l.get(r);i||(i=a.querySelector(ir(r)),i||(e=x({src:e,async:!0,type:"module"},t),(t=Lt.get(r))&&po(e,t),i=a.createElement("script"),et(i),it(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(r,i))}}function Gh(e,t,a,l){var r=(r=oe.current)?zu(r):null;if(!r)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=un(a.href),a=Ml(r).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=un(a.href);var i=Ml(r).hoistableStyles,d=i.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,d),(i=r.querySelector(ur(e)))&&!i._p&&(d.instance=i,d.state.loading=5),Lt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Lt.set(e,a),i||Ip(r,e,a,d.state))),t&&l===null)throw Error(o(528,""));return d}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=sn(a),a=Ml(r).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function un(e){return'href="'+Rt(e)+'"'}function ur(e){return'link[rel="stylesheet"]['+e+"]"}function Yh(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Ip(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),it(t,"link",a),et(t),e.head.appendChild(t))}function sn(e){return'[src="'+Rt(e)+'"]'}function ir(e){return"script[async]"+e}function Xh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Rt(a.href)+'"]');if(l)return t.instance=l,et(l),l;var r=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),et(l),it(l,"style",r),Du(l,a.precedence,e),t.instance=l;case"stylesheet":r=un(a.href);var i=e.querySelector(ur(r));if(i)return t.state.loading|=4,t.instance=i,et(i),i;l=Yh(a),(r=Lt.get(r))&&yo(l,r),i=(e.ownerDocument||e).createElement("link"),et(i);var d=i;return d._p=new Promise(function(p,b){d.onload=p,d.onerror=b}),it(i,"link",l),t.state.loading|=4,Du(i,a.precedence,e),t.instance=i;case"script":return i=sn(a.src),(r=e.querySelector(ir(i)))?(t.instance=r,et(r),r):(l=a,(r=Lt.get(i))&&(l=x({},a),po(l,r)),e=e.ownerDocument||e,r=e.createElement("script"),et(r),it(r,"link",l),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Du(l,a.precedence,e));return t.instance}function Du(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,i=r,d=0;d<l.length;d++){var p=l[d];if(p.dataset.precedence===t)i=p;else if(i!==r)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function yo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function po(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ru=null;function Vh(e,t,a){if(Ru===null){var l=new Map,r=Ru=new Map;r.set(a,l)}else r=Ru,l=r.get(a),l||(l=new Map,r.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var i=a[r];if(!(i[On]||i[lt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var d=i.getAttribute(t)||"";d=e+d;var p=l.get(d);p?p.push(i):l.set(d,[i])}}return l}function Kh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function e0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Zh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function t0(e,t,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 r=un(l.href),i=t.querySelector(ur(r));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Uu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,et(i);return}i=t.ownerDocument||t,l=Yh(l),(r=Lt.get(r))&&yo(l,r),i=i.createElement("link"),et(i);var d=i;d._p=new Promise(function(p,b){d.onload=p,d.onerror=b}),it(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Uu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var go=0;function a0(e,t){return e.stylesheets&&e.count===0&&qu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&qu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&go===0&&(go=62500*qp());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&qu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>go?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Uu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var wu=null;function qu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,wu=new Map,t.forEach(l0,e),wu=null,Uu.call(e))}function l0(e,t){if(!(t.state.loading&4)){var a=wu.get(e);if(a)var l=a.get(null);else{a=new Map,wu.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var d=r[i];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),l=d)}l&&a.set(null,l)}r=t.instance,d=r.getAttribute("data-precedence"),i=a.get(d)||l,i===l&&a.set(null,r),a.set(d,r),this.count++,l=Uu.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),i?i.parentNode.insertBefore(r,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var sr={$$typeof:se,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function n0(e,t,a,l,r,i,d,p,b){this.tag=1,this.containerInfo=e,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=di(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=di(0),this.hiddenUpdates=di(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Jh(e,t,a,l,r,i,d,p,b,M,w,k){return e=new n0(e,t,a,d,b,M,w,k,p),t=1,i===!0&&(t|=24),i=Nt(3,null,null,t),e.current=i,i.stateNode=e,t=$i(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},es(i),e}function Fh(e){return e?(e=kl,e):kl}function $h(e,t,a,l,r,i){r=Fh(r),l.context===null?l.context=r:l.pendingContext=r,l=Da(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=Ra(e,l,t),a!==null&&(xt(a,e,t),Bn(a,e,t))}function Ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function xo(e,t){Ph(e,t),(e=e.alternate)&&Ph(e,t)}function Wh(e){if(e.tag===13||e.tag===31){var t=rl(e,67108864);t!==null&&xt(t,e,67108864),xo(e,67108864)}}function Ih(e){if(e.tag===13||e.tag===31){var t=At();t=hi(t);var a=rl(e,t);a!==null&&xt(a,e,t),xo(e,t)}}var Qu=!0;function r0(e,t,a,l){var r=T.T;T.T=null;var i=H.p;try{H.p=2,bo(e,t,a,l)}finally{H.p=i,T.T=r}}function u0(e,t,a,l){var r=T.T;T.T=null;var i=H.p;try{H.p=8,bo(e,t,a,l)}finally{H.p=i,T.T=r}}function bo(e,t,a,l){if(Qu){var r=So(l);if(r===null)ro(e,t,l,ku,a),tm(e,l);else if(s0(r,e,t,a,l))l.stopPropagation();else if(tm(e,l),t&4&&-1<i0.indexOf(e)){for(;r!==null;){var i=El(r);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var d=el(i.pendingLanes);if(d!==0){var p=i;for(p.pendingLanes|=2,p.entangledLanes|=2;d;){var b=1<<31-Ot(d);p.entanglements[1]|=b,d&=~b}ta(i),(Ae&6)===0&&(bu=ze()+500,ar(0))}}break;case 31:case 13:p=rl(i,2),p!==null&&xt(p,i,2),ju(),xo(i,2)}if(i=So(l),i===null&&ro(e,t,l,ku,a),i===r)break;r=i}r!==null&&l.stopPropagation()}else ro(e,t,l,null,a)}}function So(e){return e=ji(e),jo(e)}var ku=null;function jo(e){if(ku=null,e=Cl(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(t),e!==null)return e;e=null}else if(a===31){if(e=v(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ku=e,null}function em(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 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(bt()){case St:return 2;case Pt:return 8;case at:case xn:return 32;case Er:return 268435456;default:return 32}default:return 32}}var Oo=!1,Xa=null,Va=null,Ka=null,or=new Map,cr=new Map,Za=[],i0="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 tm(e,t){switch(e){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":or.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cr.delete(t.pointerId)}}function fr(e,t,a,l,r,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[r]},t!==null&&(t=El(t),t!==null&&Wh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function s0(e,t,a,l,r){switch(t){case"focusin":return Xa=fr(Xa,e,t,a,l,r),!0;case"dragenter":return Va=fr(Va,e,t,a,l,r),!0;case"mouseover":return Ka=fr(Ka,e,t,a,l,r),!0;case"pointerover":var i=r.pointerId;return or.set(i,fr(or.get(i)||null,e,t,a,l,r)),!0;case"gotpointercapture":return i=r.pointerId,cr.set(i,fr(cr.get(i)||null,e,t,a,l,r)),!0}return!1}function am(e){var t=Cl(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,vc(e.priority,function(){Ih(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,vc(e.priority,function(){Ih(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=So(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Si=l,a.target.dispatchEvent(l),Si=null}else return t=El(a),t!==null&&Wh(t),e.blockedOn=a,!1;t.shift()}return!0}function lm(e,t,a){Hu(e)&&a.delete(t)}function o0(){Oo=!1,Xa!==null&&Hu(Xa)&&(Xa=null),Va!==null&&Hu(Va)&&(Va=null),Ka!==null&&Hu(Ka)&&(Ka=null),or.forEach(lm),cr.forEach(lm)}function Bu(e,t){e.blockedOn===t&&(e.blockedOn=null,Oo||(Oo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,o0)))}var Lu=null;function nm(e){Lu!==e&&(Lu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Lu===e&&(Lu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],r=e[t+2];if(typeof l!="function"){if(jo(l||a)===null)continue;break}var i=El(a);i!==null&&(e.splice(t,3),t-=3,bs(i,{pending:!0,data:r,method:a.method,action:l},l,r))}}))}function on(e){function t(b){return Bu(b,e)}Xa!==null&&Bu(Xa,e),Va!==null&&Bu(Va,e),Ka!==null&&Bu(Ka,e),or.forEach(t),cr.forEach(t);for(var a=0;a<Za.length;a++){var l=Za[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Za.length&&(a=Za[0],a.blockedOn===null);)am(a),a.blockedOn===null&&Za.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var r=a[l],i=a[l+1],d=r[ht]||null;if(typeof i=="function")d||nm(a);else if(d){var p=null;if(i&&i.hasAttribute("formAction")){if(r=i,d=i[ht]||null)p=d.formAction;else if(jo(r)!==null)continue}else p=d.action;typeof p=="function"?a[l+1]=p:(a.splice(l,3),l-=3),nm(a)}}}function rm(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function _o(e){this._internalRoot=e}Gu.prototype.render=_o.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=At();$h(a,l,e,t,null,null)},Gu.prototype.unmount=_o.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$h(e.current,2,null,e,null,null),ju(),t[Nl]=null}};function Gu(e){this._internalRoot=e}Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=mc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Za.length&&t!==0&&t<Za[a].priority;a++);Za.splice(a,0,e),a===0&&am(e)}};var um=u.version;if(um!=="19.2.1")throw Error(o(527,um,"19.2.1"));H.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?O(e):null,e=e===null?null:e.stateNode,e};var c0={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yu.isDisabled&&Yu.supportsFiber)try{bn=Yu.inject(c0),jt=Yu}catch{}}return hr.createRoot=function(e,t){if(!f(e))throw Error(o(299));var a=!1,l="",r=hd,i=md,d=vd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Jh(e,1,!1,null,null,a,l,null,r,i,d,rm),e[Nl]=t.current,no(e),new _o(t)},hr.hydrateRoot=function(e,t,a){if(!f(e))throw Error(o(299));var l=!1,r="",i=hd,d=md,p=vd,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=Jh(e,1,!0,t,a??null,l,r,b,i,d,p,rm),t.context=Fh(null),a=t.current,l=At(),l=hi(l),r=Da(l),r.callback=null,Ra(a,r,l),a=l,t.current.lanes=a,jn(t,a),ta(t),e[Nl]=t.current,no(e),new Gu(t)},hr.version="19.2.1",hr}var ym;function O0(){if(ym)return Eo.exports;ym=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(u){console.error(u)}}return n(),Eo.exports=j0(),Eo.exports}var _0=O0();const N0="modulepreload",C0=function(n){return"/"+n},pm={},E0=function(u,s,o){let f=Promise.resolve();if(s&&s.length>0){let y=function(g){return Promise.all(g.map(O=>Promise.resolve(O).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),v=m?.nonce||m?.getAttribute("nonce");f=y(s.map(g=>{if(g=C0(g),g in pm)return;pm[g]=!0;const O=g.endsWith(".css"),x=O?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${x}`))return;const C=document.createElement("link");if(C.rel=O?"stylesheet":N0,O||(C.as="script"),C.crossOrigin="",C.href=g,v&&C.setAttribute("nonce",v),document.head.appendChild(C),O)return new Promise((q,G)=>{C.addEventListener("load",q),C.addEventListener("error",()=>G(new Error(`Unable to preload CSS for ${g}`)))})}))}function h(m){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=m,window.dispatchEvent(v),!v.defaultPrevented)throw m}return f.then(m=>{for(const v of m||[])v.status==="rejected"&&h(v.reason);return u().catch(h)})};var Sl=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(){}},xl=typeof window>"u"||"Deno"in globalThis;function ot(){}function M0(n,u){return typeof n=="function"?n(u):n}function Go(n){return typeof n=="number"&&n>=0&&n!==1/0}function Fm(n,u){return Math.max(n+(u||0)-Date.now(),0)}function Fa(n,u){return typeof n=="function"?n(u):n}function Kt(n,u){return typeof n=="function"?n(u):n}function gm(n,u){const{type:s="all",exact:o,fetchStatus:f,predicate:h,queryKey:m,stale:v}=n;if(m){if(o){if(u.queryHash!==Wo(m,u.options))return!1}else if(!br(u.queryKey,m))return!1}if(s!=="all"){const y=u.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof v=="boolean"&&u.isStale()!==v||f&&f!==u.state.fetchStatus||h&&!h(u))}function xm(n,u){const{exact:s,status:o,predicate:f,mutationKey:h}=n;if(h){if(!u.options.mutationKey)return!1;if(s){if($a(u.options.mutationKey)!==$a(h))return!1}else if(!br(u.options.mutationKey,h))return!1}return!(o&&u.state.status!==o||f&&!f(u))}function Wo(n,u){return(u?.queryKeyHashFn||$a)(n)}function $a(n){return JSON.stringify(n,(u,s)=>Yo(s)?Object.keys(s).sort().reduce((o,f)=>(o[f]=s[f],o),{}):s)}function br(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(s=>br(n[s],u[s])):!1}function Io(n,u){if(n===u)return n;const s=bm(n)&&bm(u);if(s||Yo(n)&&Yo(u)){const o=s?n:Object.keys(n),f=o.length,h=s?u:Object.keys(u),m=h.length,v=s?[]:{},y=new Set(o);let g=0;for(let O=0;O<m;O++){const x=s?O:h[O];(!s&&y.has(x)||s)&&n[x]===void 0&&u[x]===void 0?(v[x]=void 0,g++):(v[x]=Io(n[x],u[x]),v[x]===n[x]&&n[x]!==void 0&&g++)}return f===m&&g===f?n:v}return u}function Iu(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const s in n)if(n[s]!==u[s])return!1;return!0}function bm(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Yo(n){if(!Sm(n))return!1;const u=n.constructor;if(u===void 0)return!0;const s=u.prototype;return!(!Sm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Sm(n){return Object.prototype.toString.call(n)==="[object Object]"}function T0(n){return new Promise(u=>{setTimeout(u,n)})}function Xo(n,u,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,u):s.structuralSharing!==!1?Io(n,u):u}function A0(n,u,s=0){const o=[...n,u];return s&&o.length>s?o.slice(1):o}function z0(n,u,s=0){const o=[u,...n];return s&&o.length>s?o.slice(0,-1):o}var zt=Symbol();function $m(n,u){return!n.queryFn&&u?.initialPromise?()=>u.initialPromise:!n.queryFn||n.queryFn===zt?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Pm(n,u){return typeof n=="function"?n(...u):!!n}var D0=class extends Sl{#t;#e;#a;constructor(){super(),this.#a=n=>{if(!xl&&window.addEventListener){const u=()=>n();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#e||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#a=n,this.#e?.(),this.#e=n(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(u=>{u(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},ec=new D0,R0=class extends Sl{#t=!0;#e;#a;constructor(){super(),this.#a=n=>{if(!xl&&window.addEventListener){const u=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#a=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#t}},ei=new R0;function Vo(){let n,u;const s=new Promise((f,h)=>{n=f,u=h});s.status="pending",s.catch(()=>{});function o(f){Object.assign(s,f),delete s.resolve,delete s.reject}return s.resolve=f=>{o({status:"fulfilled",value:f}),n(f)},s.reject=f=>{o({status:"rejected",reason:f}),u(f)},s}function U0(n){return Math.min(1e3*2**n,3e4)}function Wm(n){return(n??"online")==="online"?ei.isOnline():!0}var Im=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function zo(n){return n instanceof Im}function ev(n){let u=!1,s=0,o=!1,f;const h=Vo(),m=_=>{o||(C(new Im(_)),n.abort?.())},v=()=>{u=!0},y=()=>{u=!1},g=()=>ec.isFocused()&&(n.networkMode==="always"||ei.isOnline())&&n.canRun(),O=()=>Wm(n.networkMode)&&n.canRun(),x=_=>{o||(o=!0,n.onSuccess?.(_),f?.(),h.resolve(_))},C=_=>{o||(o=!0,n.onError?.(_),f?.(),h.reject(_))},q=()=>new Promise(_=>{f=F=>{(o||g())&&_(F)},n.onPause?.()}).then(()=>{f=void 0,o||n.onContinue?.()}),G=()=>{if(o)return;let _;const F=s===0?n.initialPromise:void 0;try{_=F??n.fn()}catch(ne){_=Promise.reject(ne)}Promise.resolve(_).then(x).catch(ne=>{if(o)return;const fe=n.retry??(xl?0:3),se=n.retryDelay??U0,be=typeof se=="function"?se(s,ne):se,X=fe===!0||typeof fe=="number"&&s<fe||typeof fe=="function"&&fe(s,ne);if(u||!X){C(ne);return}s++,n.onFail?.(s,ne),T0(be).then(()=>g()?void 0:q()).then(()=>{u?C(ne):G()})})};return{promise:h,cancel:m,continue:()=>(f?.(),h),cancelRetry:v,continueRetry:y,canStart:O,start:()=>(O()?G():q().then(G),h)}}var w0=n=>setTimeout(n,0);function q0(){let n=[],u=0,s=v=>{v()},o=v=>{v()},f=w0;const h=v=>{u?n.push(v):f(()=>{s(v)})},m=()=>{const v=n;n=[],v.length&&f(()=>{o(()=>{v.forEach(y=>{s(y)})})})};return{batch:v=>{let y;u++;try{y=v()}finally{u--,u||m()}return y},batchCalls:v=>(...y)=>{h(()=>{v(...y)})},schedule:h,setNotifyFunction:v=>{s=v},setBatchNotifyFunction:v=>{o=v},setScheduler:v=>{f=v}}}var Xe=q0(),tv=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Go(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(xl?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},Q0=class extends tv{#t;#e;#a;#l;#n;#r;#i;constructor(n){super(),this.#i=!1,this.#r=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.#t=k0(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(n){this.options={...this.#r,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,u){const s=Xo(this.state.data,n,this.options);return this.#u({data:s,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),s}setState(n,u){this.#u({type:"setState",state:n,setStateOptions:u})}cancel(n){const u=this.#n?.promise;return this.#n?.cancel(n),u?u.then(ot).catch(ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>Kt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Fa(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:!Fm(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(u=>u.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(u=>u!==n),this.observers.length||(this.#n&&(this.#i?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.#u({type:"invalidate"})}fetch(n,u){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&u?.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 y=this.observers.find(g=>g.options.queryFn);y&&this.setOptions(y.options)}const s=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#i=!0,s.signal)})},f=()=>{const y=$m(this.options,u),O=(()=>{const x={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(x),x})();return this.#i=!1,this.options.persister?this.options.persister(y,O,this):y(O)},m=(()=>{const y={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:f};return o(y),y})();this.options.behavior?.onFetch(m,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#u({type:"fetch",meta:m.fetchOptions?.meta});const v=y=>{zo(y)&&y.silent||this.#u({type:"error",error:y}),zo(y)||(this.#a.config.onError?.(y,this),this.#a.config.onSettled?.(this.state.data,y,this)),this.scheduleGc()};return this.#n=ev({initialPromise:u?.initialPromise,fn:m.fetchFn,abort:s.abort.bind(s),onSuccess:y=>{if(y===void 0){v(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(g){v(g);return}this.#a.config.onSuccess?.(y,this),this.#a.config.onSettled?.(y,this.state.error,this),this.scheduleGc()},onError:v,onFail:(y,g)=>{this.#u({type:"failed",failureCount:y,error:g})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}),this.#n.start()}#u(n){const u=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,...av(s.data,this.options),fetchMeta:n.meta??null};case"success":return this.#e=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 o=n.error;return zo(o)&&o.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...s,error:o,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=u(this.state),Xe.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function av(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Wm(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function k0(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,s=u!==void 0,o=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var H0=class extends Sl{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,u,s){const o=u.queryKey,f=u.queryHash??Wo(o,u);let h=this.get(f);return h||(h=new Q0({client:n,queryKey:o,queryHash:f,options:n.defaultQueryOptions(u),state:s,defaultOptions:n.getQueryDefaults(o)}),this.add(h)),h}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const u=this.#t.get(n.queryHash);u&&(n.destroy(),u===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Xe.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const u={exact:!0,...n};return this.getAll().find(s=>gm(u,s))}findAll(n={}){const u=this.getAll();return Object.keys(n).length>0?u.filter(s=>gm(n,s)):u}notify(n){Xe.batch(()=>{this.listeners.forEach(u=>{u(n)})})}onFocus(){Xe.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Xe.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},B0=class extends tv{#t;#e;#a;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||lv(),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.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(u=>u!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(n){const u=()=>{this.#l({type:"continue"})};this.#a=ev({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#l({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#l({type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const s=this.state.status==="pending",o=!this.#a.canStart();try{if(s)u();else{this.#l({type:"pending",variables:n,isPaused:o}),await this.#e.config.onMutate?.(n,this);const h=await this.options.onMutate?.(n);h!==this.state.context&&this.#l({type:"pending",context:h,variables:n,isPaused:o})}const f=await this.#a.start();return await this.#e.config.onSuccess?.(f,n,this.state.context,this),await this.options.onSuccess?.(f,n,this.state.context),await this.#e.config.onSettled?.(f,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(f,null,n,this.state.context),this.#l({type:"success",data:f}),f}catch(f){try{throw await this.#e.config.onError?.(f,n,this.state.context,this),await this.options.onError?.(f,n,this.state.context),await this.#e.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,f,n,this.state.context),f}finally{this.#l({type:"error",error:f})}}finally{this.#e.runNext(this)}}#l(n){const u=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=u(this.state),Xe.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function lv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var L0=class extends Sl{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#a=0}#t;#e;#a;build(n,u,s){const o=new B0({mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(u),state:s});return this.add(o),o}add(n){this.#t.add(n);const u=Xu(n);if(typeof u=="string"){const s=this.#e.get(u);s?s.push(n):this.#e.set(u,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const u=Xu(n);if(typeof u=="string"){const s=this.#e.get(u);if(s)if(s.length>1){const o=s.indexOf(n);o!==-1&&s.splice(o,1)}else s[0]===n&&this.#e.delete(u)}}this.notify({type:"removed",mutation:n})}canRun(n){const u=Xu(n);if(typeof u=="string"){const o=this.#e.get(u)?.find(f=>f.state.status==="pending");return!o||o===n}else return!0}runNext(n){const u=Xu(n);return typeof u=="string"?this.#e.get(u)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Xe.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const u={exact:!0,...n};return this.getAll().find(s=>xm(u,s))}findAll(n={}){return this.getAll().filter(u=>xm(n,u))}notify(n){Xe.batch(()=>{this.listeners.forEach(u=>{u(n)})})}resumePausedMutations(){const n=this.getAll().filter(u=>u.state.isPaused);return Xe.batch(()=>Promise.all(n.map(u=>u.continue().catch(ot))))}};function Xu(n){return n.options.scope?.id}function ti(n){return{onFetch:(u,s)=>{const o=u.options,f=u.fetchOptions?.meta?.fetchMore?.direction,h=u.state.data?.pages||[],m=u.state.data?.pageParams||[];let v={pages:[],pageParams:[]},y=0;const g=async()=>{let O=!1;const x=G=>{Object.defineProperty(G,"signal",{enumerable:!0,get:()=>(u.signal.aborted?O=!0:u.signal.addEventListener("abort",()=>{O=!0}),u.signal)})},C=$m(u.options,u.fetchOptions),q=async(G,_,F)=>{if(O)return Promise.reject();if(_==null&&G.pages.length)return Promise.resolve(G);const fe=(()=>{const V={client:u.client,queryKey:u.queryKey,pageParam:_,direction:F?"backward":"forward",meta:u.options.meta};return x(V),V})(),se=await C(fe),{maxPages:be}=u.options,X=F?z0:A0;return{pages:X(G.pages,se,be),pageParams:X(G.pageParams,_,be)}};if(f&&h.length){const G=f==="backward",_=G?nv:Ko,F={pages:h,pageParams:m},ne=_(o,F);v=await q(F,ne,G)}else{const G=n??h.length;do{const _=y===0?m[0]??o.initialPageParam:Ko(o,v);if(y>0&&_==null)break;v=await q(v,_),y++}while(y<G)}return v};u.options.persister?u.fetchFn=()=>u.options.persister?.(g,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},s):u.fetchFn=g}}}function Ko(n,{pages:u,pageParams:s}){const o=u.length-1;return u.length>0?n.getNextPageParam(u[o],u,s[o],s):void 0}function nv(n,{pages:u,pageParams:s}){return u.length>0?n.getPreviousPageParam?.(u[0],u,s[0],s):void 0}function G0(n,u){return u?Ko(n,u)!=null:!1}function Y0(n,u){return!u||!n.getPreviousPageParam?!1:nv(n,u)!=null}var X0=class{#t;#e;#a;#l;#n;#r;#i;#u;constructor(n={}){this.#t=n.queryCache||new H0,this.#e=n.mutationCache||new L0,this.#a=n.defaultOptions||{},this.#l=new Map,this.#n=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#i=ec.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#u=ei.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#i?.(),this.#i=void 0,this.#u?.(),this.#u=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const u=this.defaultQueryOptions({queryKey:n});return this.#t.get(u.queryHash)?.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),s=this.#t.build(this,u),o=s.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Fa(u.staleTime,s))&&this.prefetchQuery(u),Promise.resolve(o))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:u,state:s})=>{const o=s.data;return[u,o]})}setQueryData(n,u,s){const o=this.defaultQueryOptions({queryKey:n}),h=this.#t.get(o.queryHash)?.state.data,m=M0(u,h);if(m!==void 0)return this.#t.build(this,o).setData(m,{...s,manual:!0})}setQueriesData(n,u,s){return Xe.batch(()=>this.#t.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,u,s)]))}getQueryState(n){const u=this.defaultQueryOptions({queryKey:n});return this.#t.get(u.queryHash)?.state}removeQueries(n){const u=this.#t;Xe.batch(()=>{u.findAll(n).forEach(s=>{u.remove(s)})})}resetQueries(n,u){const s=this.#t;return Xe.batch(()=>(s.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const s={revert:!0,...u},o=Xe.batch(()=>this.#t.findAll(n).map(f=>f.cancel(s)));return Promise.all(o).then(ot).catch(ot)}invalidateQueries(n,u={}){return Xe.batch(()=>(this.#t.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},u)))}refetchQueries(n,u={}){const s={...u,cancelRefetch:u.cancelRefetch??!0},o=Xe.batch(()=>this.#t.findAll(n).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let h=f.fetch(void 0,s);return s.throwOnError||(h=h.catch(ot)),f.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(ot)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const s=this.#t.build(this,u);return s.isStaleByTime(Fa(u.staleTime,s))?s.fetch(u):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ot).catch(ot)}fetchInfiniteQuery(n){return n.behavior=ti(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ot).catch(ot)}ensureInfiniteQueryData(n){return n.behavior=ti(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ei.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,u){this.#l.set($a(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...this.#l.values()],s={};return u.forEach(o=>{br(n,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(n,u){this.#n.set($a(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...this.#n.values()],s={};return u.forEach(o=>{br(n,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const u={...this.#a.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=Wo(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===zt&&(u.enabled=!1),u}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Sr=class extends Sl{constructor(n,u){super(),this.options=u,this.#t=n,this.#u=null,this.#i=Vo(),this.options.experimental_prefetchInRender||this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(u)}#t;#e=void 0;#a=void 0;#l=void 0;#n;#r;#i;#u;#h;#f;#d;#o;#c;#s;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),jm(this.#e,this.options)?this.#m():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Zo(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Zo(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const u=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kt(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#e.setOptions(this.options),u._defaulted&&!Iu(this.options,u)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Om(this.#e,s,this.options,u)&&this.#m(),this.updateResult(),o&&(this.#e!==s||Kt(this.options.enabled,this.#e)!==Kt(u.enabled,this.#e)||Fa(this.options.staleTime,this.#e)!==Fa(u.staleTime,this.#e))&&this.#y();const f=this.#p();o&&(this.#e!==s||Kt(this.options.enabled,this.#e)!==Kt(u.enabled,this.#e)||f!==this.#s)&&this.#g(f)}getOptimisticResult(n){const u=this.#t.getQueryCache().build(this.#t,n),s=this.createResult(u,n);return K0(this,s)&&(this.#l=s,this.#r=this.options,this.#n=this.#e.state),s}getCurrentResult(){return this.#l}trackResult(n,u){return new Proxy(n,{get:(s,o)=>(this.trackProp(o),u?.(o),Reflect.get(s,o))})}trackProp(n){this.#v.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const u=this.#t.defaultQueryOptions(n),s=this.#t.getQueryCache().build(this.#t,u);return s.fetch().then(()=>this.createResult(s,u))}fetch(n){return this.#m({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#m(n){this.#j();let u=this.#e.fetch(this.options,n);return n?.throwOnError||(u=u.catch(ot)),u}#y(){this.#b();const n=Fa(this.options.staleTime,this.#e);if(xl||this.#l.isStale||!Go(n))return;const s=Fm(this.#l.dataUpdatedAt,n)+1;this.#o=setTimeout(()=>{this.#l.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(n){this.#S(),this.#s=n,!(xl||Kt(this.options.enabled,this.#e)===!1||!Go(this.#s)||this.#s===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||ec.isFocused())&&this.#m()},this.#s))}#x(){this.#y(),this.#g(this.#p())}#b(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}#S(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(n,u){const s=this.#e,o=this.options,f=this.#l,h=this.#n,m=this.#r,y=n!==s?n.state:this.#a,{state:g}=n;let O={...g},x=!1,C;if(u._optimisticResults){const J=this.hasListeners(),I=!J&&jm(n,u),ee=J&&Om(n,s,u,o);(I||ee)&&(O={...O,...av(g.data,n.options)}),u._optimisticResults==="isRestoring"&&(O.fetchStatus="idle")}let{error:q,errorUpdatedAt:G,status:_}=O;C=O.data;let F=!1;if(u.placeholderData!==void 0&&C===void 0&&_==="pending"){let J;f?.isPlaceholderData&&u.placeholderData===m?.placeholderData?(J=f.data,F=!0):J=typeof u.placeholderData=="function"?u.placeholderData(this.#d?.state.data,this.#d):u.placeholderData,J!==void 0&&(_="success",C=Xo(f?.data,J,u),x=!0)}if(u.select&&C!==void 0&&!F)if(f&&C===h?.data&&u.select===this.#h)C=this.#f;else try{this.#h=u.select,C=u.select(C),C=Xo(f?.data,C,u),this.#f=C,this.#u=null}catch(J){this.#u=J}this.#u&&(q=this.#u,C=this.#f,G=Date.now(),_="error");const ne=O.fetchStatus==="fetching",fe=_==="pending",se=_==="error",be=fe&&ne,X=C!==void 0,R={status:_,fetchStatus:O.fetchStatus,isPending:fe,isSuccess:_==="success",isError:se,isInitialLoading:be,isLoading:be,data:C,dataUpdatedAt:O.dataUpdatedAt,error:q,errorUpdatedAt:G,failureCount:O.fetchFailureCount,failureReason:O.fetchFailureReason,errorUpdateCount:O.errorUpdateCount,isFetched:O.dataUpdateCount>0||O.errorUpdateCount>0,isFetchedAfterMount:O.dataUpdateCount>y.dataUpdateCount||O.errorUpdateCount>y.errorUpdateCount,isFetching:ne,isRefetching:ne&&!fe,isLoadingError:se&&!X,isPaused:O.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:se&&X,isStale:tc(n,u),refetch:this.refetch,promise:this.#i};if(this.options.experimental_prefetchInRender){const J=le=>{R.status==="error"?le.reject(R.error):R.data!==void 0&&le.resolve(R.data)},I=()=>{const le=this.#i=R.promise=Vo();J(le)},ee=this.#i;switch(ee.status){case"pending":n.queryHash===s.queryHash&&J(ee);break;case"fulfilled":(R.status==="error"||R.data!==ee.value)&&I();break;case"rejected":(R.status!=="error"||R.error!==ee.reason)&&I();break}}return R}updateResult(){const n=this.#l,u=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#r=this.options,this.#n.data!==void 0&&(this.#d=this.#e),Iu(u,n))return;this.#l=u;const s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!this.#v.size)return!0;const h=new Set(f??this.#v);return this.options.throwOnError&&h.add("error"),Object.keys(this.#l).some(m=>{const v=m;return this.#l[v]!==n[v]&&h.has(v)})};this.#O({listeners:s()})}#j(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const u=this.#e;this.#e=n,this.#a=n.state,this.hasListeners()&&(u?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#O(n){Xe.batch(()=>{n.listeners&&this.listeners.forEach(u=>{u(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function V0(n,u){return Kt(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&u.retryOnMount===!1)}function jm(n,u){return V0(n,u)||n.state.data!==void 0&&Zo(n,u,u.refetchOnMount)}function Zo(n,u,s){if(Kt(u.enabled,n)!==!1&&Fa(u.staleTime,n)!=="static"){const o=typeof s=="function"?s(n):s;return o==="always"||o!==!1&&tc(n,u)}return!1}function Om(n,u,s,o){return(n!==u||Kt(o.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&tc(n,s)}function tc(n,u){return Kt(u.enabled,n)!==!1&&n.isStaleByTime(Fa(u.staleTime,n))}function K0(n,u){return!Iu(n.getCurrentResult(),u)}function _m(n,u){const s=new Set(u);return n.filter(o=>!s.has(o))}function Z0(n,u,s){const o=n.slice(0);return o[u]=s,o}var J0=class extends Sl{#t;#e;#a;#l;#n;#r;#i;#u;#h=[];constructor(n,u,s){super(),this.#t=n,this.#l=s,this.#a=[],this.#n=[],this.#e=[],this.setQueries(u)}onSubscribe(){this.listeners.size===1&&this.#n.forEach(n=>{n.subscribe(u=>{this.#c(n,u)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(n=>{n.destroy()})}setQueries(n,u){this.#a=n,this.#l=u,Xe.batch(()=>{const s=this.#n,o=this.#o(this.#a);this.#h=o,o.forEach(v=>v.observer.setOptions(v.defaultedQueryOptions));const f=o.map(v=>v.observer),h=f.map(v=>v.getCurrentResult()),m=f.some((v,y)=>v!==s[y]);s.length===f.length&&!m||(this.#n=f,this.#e=h,this.hasListeners()&&(_m(s,f).forEach(v=>{v.destroy()}),_m(f,s).forEach(v=>{v.subscribe(y=>{this.#c(v,y)})}),this.#s()))})}getCurrentResult(){return this.#e}getQueries(){return this.#n.map(n=>n.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(n,u){const s=this.#o(n),o=s.map(f=>f.observer.getOptimisticResult(f.defaultedQueryOptions));return[o,f=>this.#d(f??o,u),()=>this.#f(o,s)]}#f(n,u){return u.map((s,o)=>{const f=n[o];return s.defaultedQueryOptions.notifyOnChangeProps?f:s.observer.trackResult(f,h=>{u.forEach(m=>{m.observer.trackProp(h)})})})}#d(n,u){return u?((!this.#r||this.#e!==this.#u||u!==this.#i)&&(this.#i=u,this.#u=this.#e,this.#r=Io(this.#r,u(n))),this.#r):n}#o(n){const u=new Map(this.#n.map(o=>[o.options.queryHash,o])),s=[];return n.forEach(o=>{const f=this.#t.defaultQueryOptions(o),h=u.get(f.queryHash);h?s.push({defaultedQueryOptions:f,observer:h}):s.push({defaultedQueryOptions:f,observer:new Sr(this.#t,f)})}),s}#c(n,u){const s=this.#n.indexOf(n);s!==-1&&(this.#e=Z0(this.#e,s,u),this.#s())}#s(){if(this.hasListeners()){const n=this.#r,u=this.#f(this.#e,this.#h),s=this.#d(u,this.#l?.combine);n!==s&&Xe.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}},rv=class extends Sr{constructor(n,u){super(n,u)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(n){super.setOptions({...n,behavior:ti()})}getOptimisticResult(n){return n.behavior=ti(),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,u){const{state:s}=n,o=super.createResult(n,u),{isFetching:f,isRefetching:h,isError:m,isRefetchError:v}=o,y=s.fetchMeta?.fetchMore?.direction,g=m&&y==="forward",O=f&&y==="forward",x=m&&y==="backward",C=f&&y==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:G0(u,s.data),hasPreviousPage:Y0(u,s.data),isFetchNextPageError:g,isFetchingNextPage:O,isFetchPreviousPageError:x,isFetchingPreviousPage:C,isRefetchError:v&&!g&&!x,isRefetching:h&&!O&&!C}}},F0=class extends Sl{#t;#e=void 0;#a;#l;constructor(u,s){super(),this.#t=u,this.setOptions(s),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(u){const s=this.options;this.options=this.#t.defaultMutationOptions(u),Iu(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),s?.mutationKey&&this.options.mutationKey&&$a(s.mutationKey)!==$a(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(u){this.#n(),this.#r(u)}getCurrentResult(){return this.#e}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#n(),this.#r()}mutate(u,s){return this.#l=s,this.#a?.removeObserver(this),this.#a=this.#t.getMutationCache().build(this.#t,this.options),this.#a.addObserver(this),this.#a.execute(u)}#n(){const u=this.#a?.state??lv();this.#e={...u,isPending:u.status==="pending",isSuccess:u.status==="success",isError:u.status==="error",isIdle:u.status==="idle",mutate:this.mutate,reset:this.reset}}#r(u){Xe.batch(()=>{if(this.#l&&this.hasListeners()){const s=this.#e.variables,o=this.#e.context;u?.type==="success"?(this.#l.onSuccess?.(u.data,s,o),this.#l.onSettled?.(u.data,null,s,o)):u?.type==="error"&&(this.#l.onError?.(u.error,s,o),this.#l.onSettled?.(void 0,u.error,s,o))}this.listeners.forEach(s=>{s(this.#e)})})}},uv=D.createContext(void 0),jr=n=>{const u=D.useContext(uv);if(n)return n;if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},$0=({client:n,children:u})=>(D.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),c.jsx(uv.Provider,{value:n,children:u})),iv=D.createContext(!1),sv=()=>D.useContext(iv);iv.Provider;function P0(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var W0=D.createContext(P0()),ov=()=>D.useContext(W0),cv=(n,u)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(u.isReset()||(n.retryOnMount=!1))},fv=n=>{D.useEffect(()=>{n.clearReset()},[n])},dv=({result:n,errorResetBoundary:u,throwOnError:s,query:o,suspense:f})=>n.isError&&!u.isReset()&&!n.isFetching&&o&&(f&&n.data===void 0||Pm(s,[n.error,o])),ac=(n,u)=>u.state.data===void 0,hv=n=>{if(n.suspense){const u=o=>o==="static"?o:Math.max(o??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...o)=>u(s(...o)):u(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},mv=(n,u)=>n.isLoading&&n.isFetching&&!u,Jo=(n,u)=>n?.suspense&&u.isPending,ai=(n,u,s)=>u.fetchOptimistic(n).catch(()=>{s.clearReset()});function vv({queries:n,...u},s){const o=jr(s),f=sv(),h=ov(),m=D.useMemo(()=>n.map(_=>{const F=o.defaultQueryOptions(_);return F._optimisticResults=f?"isRestoring":"optimistic",F}),[n,o,f]);m.forEach(_=>{hv(_),cv(_,h)}),fv(h);const[v]=D.useState(()=>new J0(o,m,u)),[y,g,O]=v.getOptimisticResult(m,u.combine),x=!f&&u.subscribed!==!1;D.useSyncExternalStore(D.useCallback(_=>x?v.subscribe(Xe.batchCalls(_)):ot,[v,x]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),D.useEffect(()=>{v.setQueries(m,u)},[m,u,v]);const q=y.some((_,F)=>Jo(m[F],_))?y.flatMap((_,F)=>{const ne=m[F];if(ne){const fe=new Sr(o,ne);if(Jo(ne,_))return ai(ne,fe,h);mv(_,f)&&ai(ne,fe,h)}return[]}):[];if(q.length>0)throw Promise.all(q);const G=y.find((_,F)=>{const ne=m[F];return ne&&dv({result:_,errorResetBoundary:h,throwOnError:ne.throwOnError,query:o.getQueryCache().get(ne.queryHash),suspense:ne.suspense})});if(G?.error)throw G.error;return g(O())}function ri(n,u,s){const o=sv(),f=ov(),h=jr(s),m=h.defaultQueryOptions(n);h.getDefaultOptions().queries?._experimental_beforeQuery?.(m),m._optimisticResults=o?"isRestoring":"optimistic",hv(m),cv(m,f),fv(f);const v=!h.getQueryCache().get(m.queryHash),[y]=D.useState(()=>new u(h,m)),g=y.getOptimisticResult(m),O=!o&&n.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(x=>{const C=O?y.subscribe(Xe.batchCalls(x)):ot;return y.updateResult(),C},[y,O]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),D.useEffect(()=>{y.setOptions(m)},[m,y]),Jo(m,g))throw ai(m,y,f);if(dv({result:g,errorResetBoundary:f,throwOnError:m.throwOnError,query:h.getQueryCache().get(m.queryHash),suspense:m.suspense}))throw g.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(m,g),m.experimental_prefetchInRender&&!xl&&mv(g,o)&&(v?ai(m,y,f):h.getQueryCache().get(m.queryHash)?.promise)?.catch(ot).finally(()=>{y.updateResult()}),m.notifyOnChangeProps?g:y.trackResult(g)}function I0(n,u){return ri(n,Sr,u)}function eg(n,u){return ri({...n,enabled:!0,suspense:!0,throwOnError:ac,placeholderData:void 0},Sr,u)}function tg(n,u){return ri({...n,enabled:!0,suspense:!0,throwOnError:ac},rv,u)}function ag(n,u){return vv({...n,queries:n.queries.map(s=>({...s,suspense:!0,throwOnError:ac,enabled:!0,placeholderData:void 0}))},u)}function lg(n,u){const s=jr(u);s.getQueryState(n.queryKey)||s.prefetchQuery(n)}function ng(n,u){const s=jr(u);s.getQueryState(n.queryKey)||s.prefetchInfiniteQuery(n)}function rg(n,u){const s=jr(u),[o]=D.useState(()=>new F0(s,n));D.useEffect(()=>{o.setOptions(n)},[o,n]);const f=D.useSyncExternalStore(D.useCallback(m=>o.subscribe(Xe.batchCalls(m)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=D.useCallback((m,v)=>{o.mutate(m,v).catch(ot)},[o]);if(f.error&&Pm(o.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:h,mutateAsync:f.mutate}}function ug(n,u){return ri(n,rv,u)}function ig(n,u){if(n instanceof RegExp)return{keys:!1,pattern:n};var s,o,f,h,m=[],v="",y=n.split("/");for(y[0]||y.shift();f=y.shift();)s=f[0],s==="*"?(m.push(s),v+=f[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(o=f.indexOf("?",1),h=f.indexOf(".",1),m.push(f.substring(1,~o?o:~h?h:f.length)),v+=~o&&!~h?"(?:/([^/]+?))?":"/([^/]+?)",~h&&(v+=(~o?"?":"")+"\\"+f.substring(h))):v+="/"+f;return{keys:m,pattern:new RegExp("^"+v+(u?"(?=$|/)":"/?$"),"i")}}var Do={exports:{}},Ro={};/**
 * @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 Nm;function sg(){if(Nm)return Ro;Nm=1;var n=ni();function u(x,C){return x===C&&(x!==0||1/x===1/C)||x!==x&&C!==C}var s=typeof Object.is=="function"?Object.is:u,o=n.useState,f=n.useEffect,h=n.useLayoutEffect,m=n.useDebugValue;function v(x,C){var q=C(),G=o({inst:{value:q,getSnapshot:C}}),_=G[0].inst,F=G[1];return h(function(){_.value=q,_.getSnapshot=C,y(_)&&F({inst:_})},[x,q,C]),f(function(){return y(_)&&F({inst:_}),x(function(){y(_)&&F({inst:_})})},[x]),m(q),q}function y(x){var C=x.getSnapshot;x=x.value;try{var q=C();return!s(x,q)}catch{return!0}}function g(x,C){return C()}var O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:v;return Ro.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:O,Ro}var Cm;function og(){return Cm||(Cm=1,Do.exports=sg()),Do.exports}var cg=og();const fg=Jm.useInsertionEffect,dg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hg=dg?D.useLayoutEffect:D.useEffect,mg=fg||hg,yv=n=>{const u=D.useRef([n,(...s)=>u[0](...s)]).current;return mg(()=>{u[0]=n}),u[1]},vg="popstate",lc="pushState",nc="replaceState",yg="hashchange",Em=[vg,lc,nc,yg],pg=n=>{for(const u of Em)addEventListener(u,n);return()=>{for(const u of Em)removeEventListener(u,n)}},pv=(n,u)=>cg.useSyncExternalStore(pg,n,u),gg=()=>location.search,xg=({ssrSearch:n=""}={})=>pv(gg,()=>n),Mm=()=>location.pathname,bg=({ssrPath:n}={})=>pv(Mm,n?()=>n:Mm),Sg=(n,{replace:u=!1,state:s=null}={})=>history[u?nc:lc](s,"",n),jg=(n={})=>[bg(n),Sg],Tm=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Tm]>"u"){for(const n of[lc,nc]){const u=history[n];history[n]=function(){const s=u.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),s}}Object.defineProperty(window,Tm,{value:!0})}const Og=(n,u)=>u.toLowerCase().indexOf(n.toLowerCase())?"~"+u:u.slice(n.length)||"/",gv=(n="")=>n==="/"?"":n,_g=(n,u)=>n[0]==="~"?n.slice(1):gv(u)+n,Ng=(n="",u)=>Og(Fo(gv(n)),Fo(u)),Cg=n=>n[0]==="?"?n.slice(1):n,Fo=n=>{try{return decodeURI(n)}catch{return n}},Eg=n=>Fo(Cg(n)),xv={hook:jg,searchHook:xg,parser:ig,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:n=>n},bv=D.createContext(xv),dn=()=>D.useContext(bv),Sv={},jv=D.createContext(Sv),ui=()=>D.useContext(jv),ii=n=>{const[u,s]=n.hook(n);return[Ng(n.base,u),yv((o,f)=>s(_g(o,n.base),f))]},Ov=()=>ii(dn()),_v=()=>{const n=dn();return Eg(n.searchHook(n))},Nv=(n,u,s,o)=>{const{pattern:f,keys:h}=u instanceof RegExp?{keys:!1,pattern:u}:n(u||"*",o),m=f.exec(s)||[],[v,...y]=m;return v!==void 0?[!0,(()=>{const g=h!==!1?Object.fromEntries(h.map((x,C)=>[x,y[C]])):m.groups;let O={...y};return g&&Object.assign(O,g),O})(),...o?[v]:[]]:[!1,null]},Mg=({children:n,...u})=>{const s=dn(),o=u.hook?xv:s;let f=o;const[h,m]=u.ssrPath?.split("?")??[];m&&(u.ssrSearch=m,u.ssrPath=h),u.hrefs=u.hrefs??u.hook?.hrefs;let v=D.useRef({}),y=v.current,g=y;for(let O in o){const x=O==="base"?o[O]+(u[O]||""):u[O]||o[O];y===g&&x!==g[O]&&(v.current=g={...g}),g[O]=x,x!==o[O]&&(f=g)}return D.createElement(bv.Provider,{value:f,children:n})},Am=({children:n,component:u},s)=>u?D.createElement(u,{params:s}):typeof n=="function"?n(s):n,Tg=n=>{let u=D.useRef(Sv),s=u.current;for(const o in n)n[o]!==s[o]&&(s=n);return Object.keys(n).length===0&&(s=n),u.current=s},Gt=({path:n,nest:u,match:s,...o})=>{const f=dn(),[h]=ii(f),[m,v,y]=s??Nv(f.parser,n,h,u),g=Tg({...ui(),...v});if(!m)return null;const O=y?D.createElement(Mg,{base:y},Am(o,g)):Am(o,g);return D.createElement(jv.Provider,{value:g,children:O})};D.forwardRef((n,u)=>{const s=dn(),[o,f]=ii(s),{to:h="",href:m=h,onClick:v,asChild:y,children:g,className:O,replace:x,state:C,...q}=n,G=yv(F=>{F.ctrlKey||F.metaKey||F.altKey||F.shiftKey||F.button!==0||(v?.(F),F.defaultPrevented||(F.preventDefault(),f(m,n)))}),_=s.hrefs(m[0]==="~"?m.slice(1):s.base+m,s);return y&&D.isValidElement(g)?D.cloneElement(g,{onClick:G,href:_}):D.createElement("a",{...q,onClick:G,href:_,className:O?.call?O(o===m):O,children:g,ref:u})});const Cv=n=>Array.isArray(n)?n.flatMap(u=>Cv(u&&u.type===D.Fragment?u.props.children:u)):[n],Ag=({children:n,location:u})=>{const s=dn(),[o]=ii(s);for(const f of Cv(n)){let h=0;if(D.isValidElement(f)&&(h=Nv(s.parser,f.props.path,u||o,f.props.nest))[0])return D.cloneElement(f,{match:h})}return null};function bl(n){return!!n&&!Array.isArray(n)&&typeof n=="object"}const zg=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Ev(n){return zg&&bl(n)&&Symbol.asyncIterator in n}var Dg=Object.create,Mv=Object.defineProperty,Rg=Object.getOwnPropertyDescriptor,Tv=Object.getOwnPropertyNames,Ug=Object.getPrototypeOf,wg=Object.prototype.hasOwnProperty,Or=(n,u)=>function(){return u||(0,n[Tv(n)[0]])((u={exports:{}}).exports,u),u.exports},qg=(n,u,s,o)=>{if(u&&typeof u=="object"||typeof u=="function")for(var f=Tv(u),h=0,m=f.length,v;h<m;h++)v=f[h],!wg.call(n,v)&&v!==s&&Mv(n,v,{get:(y=>u[y]).bind(null,v),enumerable:!(o=Rg(u,v))||o.enumerable});return n},si=(n,u,s)=>(s=n!=null?Dg(Ug(n)):{},qg(Mv(s,"default",{value:n,enumerable:!0}),n));const Av=()=>{},zm=n=>{Object.freeze&&Object.freeze(n)};function zv(n,u,s){var o;const f=u.join(".");return(o=s[f])!==null&&o!==void 0||(s[f]=new Proxy(Av,{get(h,m){if(!(typeof m!="string"||m==="then"))return zv(n,[...u,m],s)},apply(h,m,v){const y=u[u.length-1];let g={args:v,path:u};return y==="call"?g={args:v.length>=2?[v[1]]:[],path:u.slice(0,-1)}:y==="apply"&&(g={args:v.length>=2?v[1]:[],path:u.slice(0,-1)}),zm(g.args),zm(g.path),n(g)}})),s[f]}const oi=n=>zv(n,[],Object.create(null)),rc=n=>new Proxy(Av,{get(u,s){if(s!=="then")return n(s)}});var Dv=Or({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,u){function s(o){"@babel/helpers - typeof";return u.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},u.exports.__esModule=!0,u.exports.default=u.exports,s(o)}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),Qg=Or({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,u){var s=Dv().default;function o(f,h){if(s(f)!="object"||!f)return f;var m=f[Symbol.toPrimitive];if(m!==void 0){var v=m.call(f,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(f)}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),kg=Or({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,u){var s=Dv().default,o=Qg();function f(h){var m=o(h,"string");return s(m)=="symbol"?m:m+""}u.exports=f,u.exports.__esModule=!0,u.exports.default=u.exports}}),Rv=Or({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,u){var s=kg();function o(f,h,m){return(h=s(h))in f?Object.defineProperty(f,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[h]=m,f}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),uc=Or({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,u){var s=Rv();function o(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);m&&(y=y.filter(function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable})),v.push.apply(v,y)}return v}function f(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?o(Object(v),!0).forEach(function(y){s(h,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):o(Object(v)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(v,y))})}return h}u.exports=f,u.exports.__esModule=!0,u.exports.default=u.exports}});si(uc());si(Rv());var Vu=si(uc());function Hg(n,u){if("error"in n){const o=u.deserialize(n.error);return{ok:!1,error:(0,Vu.default)((0,Vu.default)({},n),{},{error:o})}}return{ok:!0,result:(0,Vu.default)((0,Vu.default)({},n.result),(!n.result.type||n.result.type==="data")&&{type:"data",data:u.deserialize(n.result.data)})}}var Uo=class extends Error{constructor(){super("Unable to transform response from server")}};function Bg(n,u){let s;try{s=Hg(n,u)}catch{throw new Uo}if(!s.ok&&(!bl(s.error.error)||typeof s.error.error.code!="number"))throw new Uo;if(s.ok&&!bl(s.result))throw new Uo;return s}si(uc());function ci(n){const u={subscribe(s){let o=null,f=!1,h=!1,m=!1;function v(){if(o===null){m=!0;return}h||(h=!0,typeof o=="function"?o():o&&o.unsubscribe())}return o=n({next(y){var g;f||(g=s.next)===null||g===void 0||g.call(s,y)},error(y){var g;f||(f=!0,(g=s.error)===null||g===void 0||g.call(s,y),v())},complete(){var y;f||(f=!0,(y=s.complete)===null||y===void 0||y.call(s),v())}}),m&&v(),{unsubscribe:v}},pipe(...s){return s.reduce(Lg,u)}};return u}function Lg(n,u){return u(n)}function Gg(n){const u=new AbortController;return new Promise((o,f)=>{let h=!1;function m(){h||(h=!0,v.unsubscribe())}u.signal.addEventListener("abort",()=>{f(u.signal.reason)});const v=n.subscribe({next(y){h=!0,o(y),m()},error(y){f(y)},complete(){u.abort(),m()}})})}var Yg=Object.create,Uv=Object.defineProperty,Xg=Object.getOwnPropertyDescriptor,wv=Object.getOwnPropertyNames,Vg=Object.getPrototypeOf,Kg=Object.prototype.hasOwnProperty,Pa=(n,u)=>function(){return u||(0,n[wv(n)[0]])((u={exports:{}}).exports,u),u.exports},Zg=(n,u,s,o)=>{if(u&&typeof u=="object"||typeof u=="function")for(var f=wv(u),h=0,m=f.length,v;h<m;h++)v=f[h],!Kg.call(n,v)&&v!==s&&Uv(n,v,{get:(y=>u[y]).bind(null,v),enumerable:!(o=Xg(u,v))||o.enumerable});return n},jl=(n,u,s)=>(s=n!=null?Yg(Vg(n)):{},Zg(u||!n||!n.__esModule?Uv(s,"default",{value:n,enumerable:!0}):s,n)),Jg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(n,u){function s(o,f){if(o==null)return{};var h={};for(var m in o)if({}.hasOwnProperty.call(o,m)){if(f.includes(m))continue;h[m]=o[m]}return h}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),Fg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(n,u){var s=Jg();function o(f,h){if(f==null)return{};var m,v,y=s(f,h);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);for(v=0;v<g.length;v++)m=g[v],h.includes(m)||{}.propertyIsEnumerable.call(f,m)&&(y[m]=f[m])}return y}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),qv=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,u){function s(o){"@babel/helpers - typeof";return u.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},u.exports.__esModule=!0,u.exports.default=u.exports,s(o)}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),$g=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,u){var s=qv().default;function o(f,h){if(s(f)!="object"||!f)return f;var m=f[Symbol.toPrimitive];if(m!==void 0){var v=m.call(f,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(f)}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),Pg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,u){var s=qv().default,o=$g();function f(h){var m=o(h,"string");return s(m)=="symbol"?m:m+""}u.exports=f,u.exports.__esModule=!0,u.exports.default=u.exports}}),Wg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,u){var s=Pg();function o(f,h,m){return(h=s(h))in f?Object.defineProperty(f,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[h]=m,f}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),_r=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,u){var s=Wg();function o(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);m&&(y=y.filter(function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable})),v.push.apply(v,y)}return v}function f(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?o(Object(v),!0).forEach(function(y){s(h,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):o(Object(v)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(v,y))})}return h}u.exports=f,u.exports.__esModule=!0,u.exports.default=u.exports}}),Ig=jl(Fg(),1),Dm=jl(_r(),1);const e1=["cursor","direction"];function aa(n,u,s){const o=n.flatMap(f=>f.split("."));if(!u&&(!s||s==="any"))return o.length?[o]:[];if(s==="infinite"&&bl(u)&&("direction"in u||"cursor"in u)){const{cursor:f,direction:h}=u,m=(0,Ig.default)(u,e1);return[o,{input:m,type:"infinite"}]}return[o,(0,Dm.default)((0,Dm.default)({},typeof u<"u"&&u!==zt&&{input:u}),s&&s!=="any"&&{type:s})]}function Pu(n){return aa(n,void 0,"any")}var t1=Object.create,Qv=Object.defineProperty,a1=Object.getOwnPropertyDescriptor,kv=Object.getOwnPropertyNames,l1=Object.getPrototypeOf,n1=Object.prototype.hasOwnProperty,la=(n,u)=>function(){return u||(0,n[kv(n)[0]])((u={exports:{}}).exports,u),u.exports},r1=(n,u,s,o)=>{if(u&&typeof u=="object"||typeof u=="function")for(var f=kv(u),h=0,m=f.length,v;h<m;h++)v=f[h],!n1.call(n,v)&&v!==s&&Qv(n,v,{get:(y=>u[y]).bind(null,v),enumerable:!(o=a1(u,v))||o.enumerable});return n},Ze=(n,u,s)=>(s=n!=null?t1(l1(n)):{},r1(u||!n||!n.__esModule?Qv(s,"default",{value:n,enumerable:!0}):s,n)),Hv=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,u){function s(o){"@babel/helpers - typeof";return u.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},u.exports.__esModule=!0,u.exports.default=u.exports,s(o)}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),u1=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,u){var s=Hv().default;function o(f,h){if(s(f)!="object"||!f)return f;var m=f[Symbol.toPrimitive];if(m!==void 0){var v=m.call(f,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(f)}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),i1=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,u){var s=Hv().default,o=u1();function f(h){var m=o(h,"string");return s(m)=="symbol"?m:m+""}u.exports=f,u.exports.__esModule=!0,u.exports.default=u.exports}}),Ol=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,u){var s=i1();function o(f,h,m){return(h=s(h))in f?Object.defineProperty(f,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[h]=m,f}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),Ft=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,u){var s=Ol();function o(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);m&&(y=y.filter(function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable})),v.push.apply(v,y)}return v}function f(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?o(Object(v),!0).forEach(function(y){s(h,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):o(Object(v)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(v,y))})}return h}u.exports=f,u.exports.__esModule=!0,u.exports.default=u.exports}});function s1(n){return u=>{let s=0,o=null;const f=[];function h(){o||(o=u.subscribe({next(v){for(const g of f){var y;(y=g.next)===null||y===void 0||y.call(g,v)}},error(v){for(const g of f){var y;(y=g.error)===null||y===void 0||y.call(g,v)}},complete(){for(const y of f){var v;(v=y.complete)===null||v===void 0||v.call(y)}}}))}function m(){if(s===0&&o){const v=o;o=null,v.unsubscribe()}}return ci(v=>(s++,f.push(v),h(),{unsubscribe(){s--,m();const y=f.findIndex(g=>g===v);y>-1&&f.splice(y,1)}}))}}function o1(n){let u=n;const s=[],o=m=>{u!==void 0&&m.next(u),s.push(m)},f=m=>{s.splice(s.indexOf(m),1)},h=ci(m=>(o(m),()=>{f(m)}));return h.next=m=>{if(u!==m){u=m;for(const v of s)v.next(m)}},h.get=()=>u,h}function c1(n){return ci(u=>{function s(f=0,h=n.op){const m=n.links[f];if(!m)throw new Error("No more links to execute - did you forget to add an ending link?");return m({op:h,next(y){return s(f+1,y)}})}return s().subscribe(u)})}var Ku=Ze(Ol(),1),cn=Ze(Ft(),1);function f1(n){return n instanceof li}function d1(n){return bl(n)&&bl(n.error)&&typeof n.error.code=="number"&&typeof n.error.message=="string"}function h1(n,u){return typeof n=="string"?n:bl(n)&&typeof n.message=="string"?n.message:u}var li=class Wu extends Error{constructor(u,s){var o,f;const h=s?.cause;super(u,{cause:h}),(0,Ku.default)(this,"cause",void 0),(0,Ku.default)(this,"shape",void 0),(0,Ku.default)(this,"data",void 0),(0,Ku.default)(this,"meta",void 0),this.meta=s?.meta,this.cause=h,this.shape=s==null||(o=s.result)===null||o===void 0?void 0:o.error,this.data=s==null||(f=s.result)===null||f===void 0?void 0:f.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Wu.prototype)}static from(u,s={}){const o=u;return f1(o)?(s.meta&&(o.meta=(0,cn.default)((0,cn.default)({},o.meta),s.meta)),o):d1(o)?new Wu(o.error.message,(0,cn.default)((0,cn.default)({},s),{},{result:o})):new Wu(h1(o,"Unknown error"),(0,cn.default)((0,cn.default)({},s),{},{cause:o}))}};function m1(n){const u=n;return u?"input"in u?u:{input:u,output:u}:{input:{serialize:s=>s,deserialize:s=>s},output:{serialize:s=>s,deserialize:s=>s}}}const Rm=n=>typeof n=="function";function v1(n){if(n)return n;if(typeof window<"u"&&Rm(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Rm(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var gr=Ze(Ft());function y1(n){return{url:n.url.toString(),fetch:n.fetch,transformer:m1(n.transformer),methodOverride:n.methodOverride}}function p1(n){const u={};for(let s=0;s<n.length;s++){const o=n[s];u[s]=o}return u}const g1={query:"GET",mutation:"POST",subscription:"PATCH"};function Bv(n){return"input"in n?n.transformer.input.serialize(n.input):p1(n.inputs.map(u=>n.transformer.input.serialize(u)))}const Lv=n=>{const u=n.url.split("?");let o=u[0].replace(/\/$/,"")+"/"+n.path;const f=[];if(u[1]&&f.push(u[1]),"inputs"in n&&f.push("batch=1"),n.type==="query"||n.type==="subscription"){const h=Bv(n);h!==void 0&&n.methodOverride!=="POST"&&f.push(`input=${encodeURIComponent(JSON.stringify(h))}`)}return f.length&&(o+="?"+f.join("&")),o},x1=n=>{if(n.type==="query"&&n.methodOverride!=="POST")return;const u=Bv(n);return u!==void 0?JSON.stringify(u):void 0},b1=n=>_1((0,gr.default)((0,gr.default)({},n),{},{contentTypeHeader:"application/json",getUrl:Lv,getBody:x1}));var S1=class extends Error{constructor(){const n="AbortError";super(n),this.name=n,this.message=n}};const j1=n=>{var u;if(n?.aborted)throw(u=n.throwIfAborted)===null||u===void 0||u.call(n),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new S1};async function O1(n){var u;j1(n.signal);const s=n.getUrl(n),o=n.getBody(n),f=(u=n.methodOverride)!==null&&u!==void 0?u:g1[n.type],h=await(async()=>{const v=await n.headers();return Symbol.iterator in v?Object.fromEntries(v):v})(),m=(0,gr.default)((0,gr.default)((0,gr.default)({},n.contentTypeHeader&&f!=="GET"?{"content-type":n.contentTypeHeader}:{}),n.trpcAcceptHeader?{"trpc-accept":n.trpcAcceptHeader}:void 0),h);return v1(n.fetch)(s,{method:f,signal:n.signal,body:o,headers:m})}async function _1(n){const u={},s=await O1(n);u.response=s;const o=await s.json();return u.responseJSON=o,{json:o,meta:u}}Ze(Ft(),1);const Um=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function wm(n){let u=null,s=null;const o=()=>{clearTimeout(s),s=null,u=null};function f(v){const y=[[]];let g=0;for(;;){const C=v[g];if(!C)break;const q=y[y.length-1];if(C.aborted){var O;(O=C.reject)===null||O===void 0||O.call(C,new Error("Aborted")),g++;continue}if(n.validate(q.concat(C).map(_=>_.key))){q.push(C),g++;continue}if(q.length===0){var x;(x=C.reject)===null||x===void 0||x.call(C,new Error("Input is too big for a single dispatch")),g++;continue}y.push([])}return y}function h(){const v=f(u);o();for(const y of v){if(!y.length)continue;const g={items:y};for(const x of y)x.batch=g;n.fetch(g.items.map(x=>x.key)).then(async x=>{await Promise.all(x.map(async(q,G)=>{const _=g.items[G];try{var F;const fe=await Promise.resolve(q);(F=_.resolve)===null||F===void 0||F.call(_,fe)}catch(fe){var ne;(ne=_.reject)===null||ne===void 0||ne.call(_,fe)}_.batch=null,_.reject=null,_.resolve=null}));for(const q of g.items){var C;(C=q.reject)===null||C===void 0||C.call(q,new Error("Missing result")),q.batch=null}}).catch(x=>{for(const q of g.items){var C;(C=q.reject)===null||C===void 0||C.call(q,x),q.batch=null}})}}function m(v){var y;const g={aborted:!1,key:v,batch:null,resolve:Um,reject:Um},O=new Promise((x,C)=>{var q;g.reject=C,g.resolve=x,(q=u)!==null&&q!==void 0||(u=[]),u.push(g)});return(y=s)!==null&&y!==void 0||(s=setTimeout(h)),O}return{load:m}}function N1(...n){const u=new AbortController,s=n.length;let o=0;const f=()=>{++o===s&&u.abort()};for(const h of n)h?.aborted?f():h?.addEventListener("abort",f,{once:!0});return u.signal}var Zu=Ze(Ft(),1);function C1(n){var u,s;const o=y1(n),f=(u=n.maxURLLength)!==null&&u!==void 0?u:1/0,h=(s=n.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const m=O=>({validate(x){if(f===1/0&&h===1/0)return!0;if(x.length>h)return!1;const C=x.map(_=>_.path).join(","),q=x.map(_=>_.input);return Lv((0,Zu.default)((0,Zu.default)({},o),{},{type:O,path:C,inputs:q,signal:null})).length<=f},async fetch(x){const C=x.map(fe=>fe.path).join(","),q=x.map(fe=>fe.input),G=N1(...x.map(fe=>fe.signal)),_=await b1((0,Zu.default)((0,Zu.default)({},o),{},{path:C,inputs:q,type:O,headers(){return n.headers?typeof n.headers=="function"?n.headers({opList:x}):n.headers:{}},signal:G}));return(Array.isArray(_.json)?_.json:x.map(()=>_.json)).map(fe=>({meta:_.meta,json:fe}))}}),v=wm(m("query")),y=wm(m("mutation")),g={query:v,mutation:y};return({op:O})=>ci(x=>{/* istanbul ignore if -- @preserve */if(O.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const q=g[O.type].load(O);let G;return q.then(_=>{G=_;const F=Bg(_.json,o.transformer.output);if(!F.ok){x.error(li.from(F.error,{meta:_.meta}));return}x.next({context:_.meta,result:F.result}),x.complete()}).catch(_=>{x.error(li.from(_,{meta:G?.meta}))}),()=>{}})}}Ze(Ft(),1);const Gv=(n,...u)=>typeof n=="function"?n(...u):n;Ze(Ol(),1);function E1(){let n,u;return{promise:new Promise((o,f)=>{n=o,u=f}),resolve:n,reject:u}}async function M1(n){const u=await Gv(n.url);if(!n.connectionParams)return u;const o=`${u.includes("?")?"&":"?"}connectionParams=1`;return u+o}async function T1(n){const u={method:"connectionParams",data:await Gv(n)};return JSON.stringify(u)}Ze(Ol(),1);var gl=Ze(Ol(),1);function A1(n){const{promise:u,resolve:s,reject:o}=E1();return n.addEventListener("open",()=>{n.removeEventListener("error",o),s()}),n.addEventListener("error",o),u}function z1(n,{intervalMs:u,pongTimeoutMs:s}){let o,f;function h(){o=setTimeout(()=>{n.send("PING"),f=setTimeout(()=>{n.close()},s)},u)}function m(){clearTimeout(o),h()}function v(){clearTimeout(f),m()}n.addEventListener("open",h),n.addEventListener("message",({data:y})=>{clearTimeout(o),h(),y==="PONG"&&v()}),n.addEventListener("close",()=>{clearTimeout(o),clearTimeout(f)})}var D1=class $o{constructor(u){var s;if((0,gl.default)(this,"id",++$o.connectCount),(0,gl.default)(this,"WebSocketPonyfill",void 0),(0,gl.default)(this,"urlOptions",void 0),(0,gl.default)(this,"keepAliveOpts",void 0),(0,gl.default)(this,"wsObservable",o1(null)),(0,gl.default)(this,"openPromise",null),this.WebSocketPonyfill=(s=u.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=u.urlOptions,this.keepAliveOpts=u.keepAlive}get ws(){return this.wsObservable.get()}set ws(u){this.wsObservable.next(u)}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 u=this;if(u.openPromise)return u.openPromise;u.id=++$o.connectCount;const s=M1(u.urlOptions).then(o=>new u.WebSocketPonyfill(o));u.openPromise=s.then(async o=>{u.ws=o,o.addEventListener("message",function({data:f}){f==="PING"&&this.send("PONG")}),u.keepAliveOpts.enabled&&z1(o,u.keepAliveOpts),o.addEventListener("close",()=>{u.ws===o&&(u.ws=null)}),await A1(o),u.urlOptions.connectionParams&&o.send(await T1(u.urlOptions.connectionParams))});try{await u.openPromise}finally{u.openPromise=null}}async close(){var u=this;try{await u.openPromise}finally{var s;(s=u.ws)===null||s===void 0||s.close()}}};(0,gl.default)(D1,"connectCount",0);Ze(Ol(),1);Ze(Ft(),1);var wo=Ze(Ol(),1),qm=Ze(Ft(),1),fi=class{constructor(n){(0,wo.default)(this,"links",void 0),(0,wo.default)(this,"runtime",void 0),(0,wo.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=n.links.map(u=>u(this.runtime))}$request(n){var u;return c1({links:this.links,op:(0,qm.default)((0,qm.default)({},n),{},{context:(u=n.context)!==null&&u!==void 0?u:{},id:++this.requestId})}).pipe(s1())}async requestAsPromise(n){var u=this;try{const s=u.$request(n);return(await Gg(s)).result.data}catch(s){throw li.from(s)}}query(n,u,s){return this.requestAsPromise({type:"query",path:n,input:u,context:s?.context,signal:s?.signal})}mutation(n,u,s){return this.requestAsPromise({type:"mutation",path:n,input:u,context:s?.context,signal:s?.signal})}subscription(n,u,s){return this.$request({type:"subscription",path:n,input:u,context:s.context,signal:s.signal}).subscribe({next(f){switch(f.result.type){case"state":{var h;(h=s.onConnectionStateChange)===null||h===void 0||h.call(s,f.result);break}case"started":{var m;(m=s.onStarted)===null||m===void 0||m.call(s,{context:f.context});break}case"stopped":{var v;(v=s.onStopped)===null||v===void 0||v.call(s);break}case"data":case void 0:{var y;(y=s.onData)===null||y===void 0||y.call(s,f.result.data);break}}},error(f){var h;(h=s.onError)===null||h===void 0||h.call(s,f)},complete(){var f;(f=s.onComplete)===null||f===void 0||f.call(s)}})}};const Yv=Symbol.for("trpc_untypedClient"),R1={query:"query",mutate:"mutation",subscribe:"subscription"},U1=n=>R1[n];function Xv(n){const u=oi(({path:s,args:o})=>{const f=[...s],h=U1(f.pop()),m=f.join(".");return n[h](m,...o)});return rc(s=>s===Yv?n:u[s])}function w1(n){const u=new fi(n);return Xv(u)}function ic(n){return n[Yv]}Ze(Ft(),1);Ze(Ft(),1);var q1=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,u){function s(f){var h,m,v,y=2;for(typeof Symbol<"u"&&(m=Symbol.asyncIterator,v=Symbol.iterator);y--;){if(m&&(h=f[m])!=null)return h.call(f);if(v&&(h=f[v])!=null)return new o(h.call(f));m="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function o(f){function h(m){if(Object(m)!==m)return Promise.reject(new TypeError(m+" is not an object."));var v=m.done;return Promise.resolve(m.value).then(function(y){return{value:y,done:v}})}return o=function(v){this.s=v,this.n=v.next},o.prototype={s:null,n:null,next:function(){return h(this.n.apply(this.s,arguments))},return:function(v){var y=this.s.return;return y===void 0?Promise.resolve({value:v,done:!0}):h(y.apply(this.s,arguments))},throw:function(v){var y=this.s.return;return y===void 0?Promise.reject(v):h(y.apply(this.s,arguments))}},new o(f)}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}});Ze(q1(),1);Ze(Ft(),1);var Q1=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(n,u){function s(){var o=typeof SuppressedError=="function"?SuppressedError:function(v,y){var g=Error();return g.name="SuppressedError",g.error=v,g.suppressed=y,g},f={},h=[];function m(v,y){if(y!=null){if(Object(y)!==y)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(v)var g=y[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(g===void 0&&(g=y[Symbol.dispose||Symbol.for("Symbol.dispose")],v))var O=g;if(typeof g!="function")throw new TypeError("Object is not disposable.");O&&(g=function(){try{O.call(y)}catch(C){return Promise.reject(C)}}),h.push({v:y,d:g,a:v})}else v&&h.push({d:y,a:v});return y}return{e:f,u:m.bind(null,!1),a:m.bind(null,!0),d:function(){var y,g=this.e,O=0;function x(){for(;y=h.pop();)try{if(!y.a&&O===1)return O=0,h.push(y),Promise.resolve().then(x);if(y.d){var q=y.d.call(y.v);if(y.a)return O|=2,Promise.resolve(q).then(x,C)}else O|=1}catch(G){return C(G)}if(O===1)return g!==f?Promise.reject(g):Promise.resolve();if(g!==f)throw g}function C(q){return g=g!==f?new o(q,g):q,x()}return x()}}}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),Vv=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(n,u){function s(o,f){this.v=o,this.k=f}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),k1=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(n,u){var s=Vv();function o(f){return new s(f,0)}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),H1=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(n,u){var s=Vv();function o(h){return function(){return new f(h.apply(this,arguments))}}function f(h){var m,v;function y(O,x){try{var C=h[O](x),q=C.value,G=q instanceof s;Promise.resolve(G?q.v:q).then(function(_){if(G){var F=O==="return"?"return":"next";if(!q.k||_.done)return y(F,_);_=h[F](_).value}g(C.done?"return":"normal",_)},function(_){y("throw",_)})}catch(_){g("throw",_)}}function g(O,x){switch(O){case"return":m.resolve({value:x,done:!0});break;case"throw":m.reject(x);break;default:m.resolve({value:x,done:!1})}(m=m.next)?y(m.key,m.arg):v=null}this._invoke=function(O,x){return new Promise(function(C,q){var G={key:O,arg:x,resolve:C,reject:q,next:null};v?v=v.next=G:(m=v=G,y(O,x))})},typeof h.return!="function"&&(this.return=void 0)}f.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},f.prototype.next=function(h){return this._invoke("next",h)},f.prototype.throw=function(h){return this._invoke("throw",h)},f.prototype.return=function(h){return this._invoke("return",h)},u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}});Ze(Q1(),1);Ze(k1(),1);Ze(H1(),1);Ze(Ft(),1);function B1(n){return oi(({path:u,args:s})=>{var o;const f=[...u],h=f.pop();if(h==="useMutation")return n[h](f,...s);if(h==="_def")return{path:f};const[m,...v]=s,y=(o=v[0])!==null&&o!==void 0?o:{};return n[h](f,m,y)})}var qo;const L1=["client","ssrContext","ssrState","abortOnUnmount"],G1=(qo=D.createContext)===null||qo===void 0?void 0:qo.call(Jm,null),Y1=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 X1(n){return oi(u=>{const s=[...u.path],o=s.pop(),f=[...u.args],h=f.shift(),m=Y1(o),v=aa(s,h,m);return{infiniteQueryOptions:()=>n.infiniteQueryOptions(s,v,f[0]),queryOptions:()=>n.queryOptions(s,v,...f),fetch:()=>n.fetchQuery(v,...f),fetchInfinite:()=>n.fetchInfiniteQuery(v,f[0]),prefetch:()=>n.prefetchQuery(v,...f),prefetchInfinite:()=>n.prefetchInfiniteQuery(v,f[0]),ensureData:()=>n.ensureQueryData(v,...f),invalidate:()=>n.invalidateQueries(v,...f),reset:()=>n.resetQueries(v,...f),refetch:()=>n.refetchQueries(v,...f),cancel:()=>n.cancelQuery(v,...f),setData:()=>{n.setQueryData(v,f[0],f[1])},setQueriesData:()=>n.setQueriesData(v,f[0],f[1],f[2]),setInfiniteData:()=>{n.setInfiniteQueryData(v,f[0],f[1])},getData:()=>n.getQueryData(v),getInfiniteData:()=>n.getInfiniteQueryData(v),setMutationDefaults:()=>n.setMutationDefaults(Pu(s),h),getMutationDefaults:()=>n.getMutationDefaults(Pu(s)),isMutating:()=>n.isMutating({mutationKey:Pu(s)})}[o]()})}function V1(n){const u=Xv(n.client),s=X1(n);return rc(o=>{const f=o;return f==="client"?u:L1.includes(f)?n[f]:s[o]})}var K1=jl(_r(),1);function Qm(n){const u=n instanceof fi?n:ic(n);return oi(s=>{const o=s.path,f=o.join("."),[h,m]=s.args;return(0,K1.default)({queryKey:aa(o,h,"query"),queryFn:()=>u.query(f,h,m?.trpc)},m)})}var Qo=jl(_r(),1);function ft(n,u,s){var o;const f=n[0];let h=(o=n[1])===null||o===void 0?void 0:o.input;if(s){var m;h=(0,Qo.default)((0,Qo.default)((0,Qo.default)({},(m=h)!==null&&m!==void 0?m:{}),s.pageParam?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[f.join("."),h,u?.trpc]}var Z1=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,u){function s(f){var h,m,v,y=2;for(typeof Symbol<"u"&&(m=Symbol.asyncIterator,v=Symbol.iterator);y--;){if(m&&(h=f[m])!=null)return h.call(f);if(v&&(h=f[v])!=null)return new o(h.call(f));m="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function o(f){function h(m){if(Object(m)!==m)return Promise.reject(new TypeError(m+" is not an object."));var v=m.done;return Promise.resolve(m.value).then(function(y){return{value:y,done:v}})}return o=function(v){this.s=v,this.n=v.next},o.prototype={s:null,n:null,next:function(){return h(this.n.apply(this.s,arguments))},return:function(v){var y=this.s.return;return y===void 0?Promise.resolve({value:v,done:!0}):h(y.apply(this.s,arguments))},throw:function(v){var y=this.s.return;return y===void 0?Promise.reject(v):h(y.apply(this.s,arguments))}},new o(f)}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),J1=jl(Z1(),1);function Po(n){return{path:n.path.join(".")}}function mr(n){const u=Po(n);return D.useMemo(()=>u,[u])}async function Kv(n,u,s){const f=u.getQueryCache().build(u,{queryKey:s});f.setState({data:[],status:"success"});const h=[];var m=!1,v=!1,y;try{for(var g=(0,J1.default)(n),O;m=!(O=await g.next()).done;m=!1){const x=O.value;h.push(x),f.setState({data:[...h]})}}catch(x){v=!0,y=x}finally{try{m&&g.return!=null&&await g.return()}finally{if(v)throw y}}return h}var Te=jl(_r(),1);function F1(n){const{client:u,queryClient:s}=n,o=u instanceof fi?u:ic(u);return{infiniteQueryOptions:(f,h,m)=>{var v,y;const g=((v=h[1])===null||v===void 0?void 0:v.input)===zt,O=async x=>{var C;const q=(0,Te.default)((0,Te.default)({},m),{},{trpc:(0,Te.default)((0,Te.default)({},m?.trpc),!(m==null||(C=m.trpc)===null||C===void 0)&&C.abortOnUnmount?{signal:x.signal}:{signal:null})});return await o.query(...ft(h,q,{direction:x.direction,pageParam:x.pageParam}))};return Object.assign((0,Te.default)((0,Te.default)({},m),{},{initialData:m?.initialData,queryKey:h,queryFn:g?zt:O,initialPageParam:(y=m?.initialCursor)!==null&&y!==void 0?y:null}),{trpc:Po({path:f})})},queryOptions:(f,h,m)=>{var v;const y=((v=h[1])===null||v===void 0?void 0:v.input)===zt,g=async O=>{var x;const C=(0,Te.default)((0,Te.default)({},m),{},{trpc:(0,Te.default)((0,Te.default)({},m?.trpc),!(m==null||(x=m.trpc)===null||x===void 0)&&x.abortOnUnmount?{signal:O.signal}:{signal:null})}),q=await o.query(...ft(h,C));return Ev(q)?Kv(q,s,h):q};return Object.assign((0,Te.default)((0,Te.default)({},m),{},{initialData:m?.initialData,queryKey:h,queryFn:y?zt:g}),{trpc:Po({path:f})})},fetchQuery:(f,h)=>s.fetchQuery((0,Te.default)((0,Te.default)({},h),{},{queryKey:f,queryFn:()=>o.query(...ft(f,h))})),fetchInfiniteQuery:(f,h)=>{var m;return s.fetchInfiniteQuery((0,Te.default)((0,Te.default)({},h),{},{queryKey:f,queryFn:({pageParam:v,direction:y})=>o.query(...ft(f,h,{pageParam:v,direction:y})),initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}))},prefetchQuery:(f,h)=>s.prefetchQuery((0,Te.default)((0,Te.default)({},h),{},{queryKey:f,queryFn:()=>o.query(...ft(f,h))})),prefetchInfiniteQuery:(f,h)=>{var m;return s.prefetchInfiniteQuery((0,Te.default)((0,Te.default)({},h),{},{queryKey:f,queryFn:({pageParam:v,direction:y})=>o.query(...ft(f,h,{pageParam:v,direction:y})),initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}))},ensureQueryData:(f,h)=>s.ensureQueryData((0,Te.default)((0,Te.default)({},h),{},{queryKey:f,queryFn:()=>o.query(...ft(f,h))})),invalidateQueries:(f,h,m)=>s.invalidateQueries((0,Te.default)((0,Te.default)({},h),{},{queryKey:f}),m),resetQueries:(f,h,m)=>s.resetQueries((0,Te.default)((0,Te.default)({},h),{},{queryKey:f}),m),refetchQueries:(f,h,m)=>s.refetchQueries((0,Te.default)((0,Te.default)({},h),{},{queryKey:f}),m),cancelQuery:(f,h)=>s.cancelQueries({queryKey:f},h),setQueryData:(f,h,m)=>s.setQueryData(f,h,m),setQueriesData:(f,h,m,v)=>s.setQueriesData((0,Te.default)((0,Te.default)({},h),{},{queryKey:f}),m,v),getQueryData:f=>s.getQueryData(f),setInfiniteQueryData:(f,h,m)=>s.setQueryData(f,h,m),getInfiniteQueryData:f=>s.getQueryData(f),setMutationDefaults:(f,h)=>{const m=f[0],v=y=>o.mutation(...ft([m,{input:y}],n));return s.setMutationDefaults(f,typeof h=="function"?h({canonicalMutationFn:v}):h)},getMutationDefaults:f=>s.getMutationDefaults(f),isMutating:f=>s.isMutating((0,Te.default)((0,Te.default)({},f),{},{exact:!0}))}}var $=jl(_r());const km=(n,u)=>new Proxy(n,{get(o,f){return u(f),o[f]}});function $1(n){var u,s;const o=(u=void 0)!==null&&u!==void 0?u:X=>X.originalFn(),f=(s=void 0)!==null&&s!==void 0?s:G1,h=w1,m=X=>{var V;const{abortOnUnmount:R=!1,queryClient:J,ssrContext:I}=X,[ee,le]=D.useState((V=X.ssrState)!==null&&V!==void 0?V:!1),te=X.client instanceof fi?X.client:ic(X.client),ge=D.useMemo(()=>F1({client:te,queryClient:J}),[te,J]),de=D.useMemo(()=>(0,$.default)({abortOnUnmount:R,queryClient:J,client:te,ssrContext:I??null,ssrState:ee},ge),[R,te,ge,J,I,ee]);return D.useEffect(()=>{le(me=>me?"mounted":!1)},[]),c.jsx(f.Provider,{value:de,children:X.children})};function v(){const X=D.useContext(f);if(!X)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return X}function y(X,V){var R;const{queryClient:J,ssrState:I}=v();return I&&I!=="mounted"&&((R=J.getQueryCache().find({queryKey:X}))===null||R===void 0?void 0:R.state.status)==="error"?(0,$.default)({retryOnMount:!1},V):V}function g(X,V,R){var J,I,ee,le,te;const ge=v(),{abortOnUnmount:de,client:me,ssrState:T,queryClient:H,prefetchQuery:K}=ge,ue=aa(X,V,"query"),ye=H.getQueryDefaults(ue),S=V===zt;typeof window>"u"&&T==="prepass"&&(R==null||(J=R.trpc)===null||J===void 0?void 0:J.ssr)!==!1&&((I=R?.enabled)!==null&&I!==void 0?I:ye?.enabled)!==!1&&!S&&!H.getQueryCache().find({queryKey:ue})&&K(ue,R);const U=y(ue,(0,$.default)((0,$.default)({},ye),R)),B=(ee=(le=R==null||(te=R.trpc)===null||te===void 0?void 0:te.abortOnUnmount)!==null&&le!==void 0?le:void 0)!==null&&ee!==void 0?ee:de,Y=I0((0,$.default)((0,$.default)({},U),{},{queryKey:ue,queryFn:S?V:async W=>{const oe=(0,$.default)((0,$.default)({},U),{},{trpc:(0,$.default)((0,$.default)({},U?.trpc),B?{signal:W.signal}:{signal:null})}),Se=await me.query(...ft(ue,oe));return Ev(Se)?Kv(Se,H,ue):Se}}),H);return Y.trpc=mr({path:X}),Y}function O(X,V,R){var J,I,ee;const le=v(),te=aa(X,V,"query"),ge=V===zt,de=(J=(I=R==null||(ee=R.trpc)===null||ee===void 0?void 0:ee.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&J!==void 0?J:le.abortOnUnmount;lg((0,$.default)((0,$.default)({},R),{},{queryKey:te,queryFn:ge?V:me=>{const T={trpc:(0,$.default)((0,$.default)({},R?.trpc),de?{signal:me.signal}:{})};return le.client.query(...ft(te,T))}}))}function x(X,V,R){var J,I,ee;const le=v(),te=aa(X,V,"query"),ge=(J=(I=R==null||(ee=R.trpc)===null||ee===void 0?void 0:ee.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&J!==void 0?J:le.abortOnUnmount,de=eg((0,$.default)((0,$.default)({},R),{},{queryKey:te,queryFn:me=>{const T=(0,$.default)((0,$.default)({},R),{},{trpc:(0,$.default)((0,$.default)({},R?.trpc),ge?{signal:me.signal}:{signal:null})});return le.client.query(...ft(te,T))}}),le.queryClient);return de.trpc=mr({path:X}),[de.data,de]}function C(X,V){const{client:R,queryClient:J}=v(),I=Pu(X),ee=J.defaultMutationOptions(J.getMutationDefaults(I)),le=rg((0,$.default)((0,$.default)({},V),{},{mutationKey:I,mutationFn:te=>R.mutation(...ft([X,{input:te}],V)),onSuccess(...te){var ge,de;return o({originalFn:()=>{var T,H,K;return(T=V==null||(H=V.onSuccess)===null||H===void 0?void 0:H.call(V,...te))!==null&&T!==void 0?T:ee==null||(K=ee.onSuccess)===null||K===void 0?void 0:K.call(ee,...te)},queryClient:J,meta:(ge=(de=V?.meta)!==null&&de!==void 0?de:ee?.meta)!==null&&ge!==void 0?ge:{}})}}),J);return le.trpc=mr({path:X}),le}const q={data:void 0,error:null,status:"idle"},G={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function _(X,V,R){var J;const I=(J=R?.enabled)!==null&&J!==void 0?J:V!==zt,ee=$a(aa(X,V,"any")),{client:le}=v(),te=D.useRef(R);D.useEffect(()=>{te.current=R});const[ge]=D.useState(new Set([])),de=D.useCallback(S=>{ge.add(S)},[ge]),me=D.useRef(null),T=D.useCallback(S=>{const U=K.current,B=K.current=S(U);let Y=!1;for(const W of ge)if(U[W]!==B[W]){Y=!0;break}Y&&ye(km(B,de))},[de,ge]),H=D.useCallback(()=>{var S;if((S=me.current)===null||S===void 0||S.unsubscribe(),!I){T(()=>(0,$.default)((0,$.default)({},q),{},{reset:H}));return}T(()=>(0,$.default)((0,$.default)({},G),{},{reset:H}));const U=le.subscription(X.join("."),V??void 0,{onStarted:()=>{var B,Y;(B=(Y=te.current).onStarted)===null||B===void 0||B.call(Y),T(W=>(0,$.default)((0,$.default)({},W),{},{status:"pending",error:null}))},onData:B=>{var Y,W;(Y=(W=te.current).onData)===null||Y===void 0||Y.call(W,B),T(oe=>(0,$.default)((0,$.default)({},oe),{},{status:"pending",data:B,error:null}))},onError:B=>{var Y,W;(Y=(W=te.current).onError)===null||Y===void 0||Y.call(W,B),T(oe=>(0,$.default)((0,$.default)({},oe),{},{status:"error",error:B}))},onConnectionStateChange:B=>{T(Y=>{switch(B.state){case"idle":return(0,$.default)((0,$.default)({},Y),{},{status:B.state,error:null,data:void 0});case"connecting":return(0,$.default)((0,$.default)({},Y),{},{error:B.error,status:B.state});case"pending":return Y}})},onComplete:()=>{var B,Y;(B=(Y=te.current).onComplete)===null||B===void 0||B.call(Y),T(W=>(0,$.default)((0,$.default)({},W),{},{status:"idle",error:null,data:void 0}))}});me.current=U},[le,ee,I,T]);D.useEffect(()=>(H(),()=>{var S;(S=me.current)===null||S===void 0||S.unsubscribe()}),[H]);const K=D.useRef(I?(0,$.default)((0,$.default)({},G),{},{reset:H}):(0,$.default)((0,$.default)({},q),{},{reset:H})),[ue,ye]=D.useState(km(K.current,de));return ue}function F(X,V,R){var J,I,ee,le,te;const{client:ge,ssrState:de,prefetchInfiniteQuery:me,queryClient:T,abortOnUnmount:H}=v(),K=aa(X,V,"infinite"),ue=T.getQueryDefaults(K),ye=V===zt;typeof window>"u"&&de==="prepass"&&(R==null||(J=R.trpc)===null||J===void 0?void 0:J.ssr)!==!1&&((I=R?.enabled)!==null&&I!==void 0?I:ue?.enabled)!==!1&&!ye&&!T.getQueryCache().find({queryKey:K})&&me(K,(0,$.default)((0,$.default)({},ue),R));const S=y(K,(0,$.default)((0,$.default)({},ue),R)),U=(ee=R==null||(le=R.trpc)===null||le===void 0?void 0:le.abortOnUnmount)!==null&&ee!==void 0?ee:H,B=ug((0,$.default)((0,$.default)({},S),{},{initialPageParam:(te=R.initialCursor)!==null&&te!==void 0?te:null,persister:R.persister,queryKey:K,queryFn:ye?V:Y=>{var W;const oe=(0,$.default)((0,$.default)({},S),{},{trpc:(0,$.default)((0,$.default)({},S?.trpc),U?{signal:Y.signal}:{signal:null})});return ge.query(...ft(K,oe,{pageParam:(W=Y.pageParam)!==null&&W!==void 0?W:R.initialCursor,direction:Y.direction}))}}),T);return B.trpc=mr({path:X}),B}function ne(X,V,R){var J,I,ee;const le=v(),te=aa(X,V,"infinite"),ge=le.queryClient.getQueryDefaults(te),de=V===zt,me=y(te,(0,$.default)((0,$.default)({},ge),R)),T=(J=R==null||(I=R.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&J!==void 0?J:le.abortOnUnmount;ng((0,$.default)((0,$.default)({},R),{},{initialPageParam:(ee=R.initialCursor)!==null&&ee!==void 0?ee:null,queryKey:te,queryFn:de?V:H=>{var K;const ue=(0,$.default)((0,$.default)({},me),{},{trpc:(0,$.default)((0,$.default)({},me?.trpc),T?{signal:H.signal}:{})});return le.client.query(...ft(te,ue,{pageParam:(K=H.pageParam)!==null&&K!==void 0?K:R.initialCursor,direction:H.direction}))}}))}function fe(X,V,R){var J,I,ee;const le=v(),te=aa(X,V,"infinite"),ge=le.queryClient.getQueryDefaults(te),de=y(te,(0,$.default)((0,$.default)({},ge),R)),me=(J=R==null||(I=R.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&J!==void 0?J:le.abortOnUnmount,T=tg((0,$.default)((0,$.default)({},R),{},{initialPageParam:(ee=R.initialCursor)!==null&&ee!==void 0?ee:null,queryKey:te,queryFn:H=>{var K;const ue=(0,$.default)((0,$.default)({},de),{},{trpc:(0,$.default)((0,$.default)({},de?.trpc),me?{signal:H.signal}:{})});return le.client.query(...ft(te,ue,{pageParam:(K=H.pageParam)!==null&&K!==void 0?K:R.initialCursor,direction:H.direction}))}}),le.queryClient);return T.trpc=mr({path:X}),[T.data,T]}return{Provider:m,createClient:h,useContext:v,useUtils:v,useQuery:g,usePrefetchQuery:O,useSuspenseQuery:x,useQueries:(X,V)=>{const{ssrState:R,queryClient:J,prefetchQuery:I,client:ee}=v(),le=Qm(ee),te=X(le);if(typeof window>"u"&&R==="prepass")for(const de of te){var ge;const me=de;((ge=me.trpc)===null||ge===void 0?void 0:ge.ssr)!==!1&&!J.getQueryCache().find({queryKey:me.queryKey})&&I(me.queryKey,me)}return vv({queries:te.map(de=>(0,$.default)((0,$.default)({},de),{},{queryKey:de.queryKey})),combine:V?.combine},J)},useSuspenseQueries:X=>{const{queryClient:V,client:R}=v(),J=Qm(R),I=X(J),ee=ag({queries:I.map(le=>(0,$.default)((0,$.default)({},le),{},{queryFn:le.queryFn,queryKey:le.queryKey}))},V);return[ee.map(le=>le.data),ee]},useMutation:C,useSubscription:_,useInfiniteQuery:F,usePrefetchInfiniteQuery:ne,useSuspenseInfiniteQuery:fe}}function P1(n){const u=B1(n);return rc(s=>s==="useContext"||s==="useUtils"?()=>{const o=n.useUtils();return D.useMemo(()=>V1(o),[o])}:n.hasOwnProperty(s)?n[s]:u[s])}function W1(n){const u=$1();return P1(u)}const L=W1(),I1=L.createClient({links:[C1({url:"/api/trpc"})]});/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zv=(...n)=>n.filter((u,s,o)=>!!u&&u.trim()!==""&&o.indexOf(u)===s).join(" ").trim();/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ex=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tx=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,s,o)=>o?o.toUpperCase():s.toLowerCase());/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hm=n=>{const u=tx(n);return u.charAt(0).toUpperCase()+u.slice(1)};/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var ko={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ax=n=>{for(const u in n)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1},lx=D.createContext({}),nx=()=>D.useContext(lx),rx=D.forwardRef(({color:n,size:u,strokeWidth:s,absoluteStrokeWidth:o,className:f="",children:h,iconNode:m,...v},y)=>{const{size:g=24,strokeWidth:O=2,absoluteStrokeWidth:x=!1,color:C="currentColor",className:q=""}=nx()??{},G=o??x?Number(s??O)*24/Number(u??g):s??O;return D.createElement("svg",{ref:y,...ko,width:u??g??ko.width,height:u??g??ko.height,stroke:n??C,strokeWidth:G,className:Zv("lucide",q,f),...!h&&!ax(v)&&{"aria-hidden":"true"},...v},[...m.map(([_,F])=>D.createElement(_,F)),...Array.isArray(h)?h:[h]])});/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ce=(n,u)=>{const s=D.forwardRef(({className:o,...f},h)=>D.createElement(rx,{ref:h,iconNode:u,className:Zv(`lucide-${ex(Hm(n))}`,`lucide-${n}`,o),...f}));return s.displayName=Hm(n),s};/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ux=[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]],ix=ce("baby",ux);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sx=[["path",{d:"M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z",key:"1ol0lm"}],["path",{d:"M8 10h8",key:"c7uz4u"}],["path",{d:"M8 18h8",key:"1no2b1"}],["path",{d:"M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6",key:"1fr6do"}],["path",{d:"M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2",key:"donm21"}]],ox=ce("backpack",sx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cx=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2h4.001A2 2 0 0022 17v-1.344",key:"144kbk"}]],fx=ce("book-open-check",cx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dx=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]],hx=ce("book-open",dx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mx=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],vx=ce("book",mx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yx=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],px=ce("bookmark",yx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gx=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],xx=ce("calendar",gx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Sx=ce("check",bx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ox=ce("chevron-down",jx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _x=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],sc=ce("chevron-left",_x);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],oc=ce("chevron-right",Nx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Ex=ce("clock",Cx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mx=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Tx=ce("download",Mx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ax=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],zx=ce("file-text",Ax);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dx=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]],Rx=ce("gift",Dx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ux=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],wx=ce("globe",Ux);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qx=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Qx=ce("graduation-cap",qx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kx=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],Hx=ce("headphones",kx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bx=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Lx=ce("heart",Bx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gx=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Yx=ce("house",Gx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Vx=ce("image",Xx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kx=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Zx=ce("layers",Kx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jx=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],Fx=ce("library",Jx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $x=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Px=ce("mail",$x);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wx=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Ix=ce("map-pin",Wx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eb=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],tb=ce("menu",eb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ab=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],lb=ce("messages-square",ab);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nb=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],rb=ce("music",nb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ub=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],ib=ce("newspaper",ub);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sb=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],ob=ce("palette",sb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cb=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],fb=ce("pen-line",cb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const db=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],hb=ce("phone",db);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],xr=ce("search",mb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vb=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],yb=ce("settings",vb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pb=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],gb=ce("share-2",pb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xb=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],bb=ce("shield-check",xb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sb=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],jb=ce("smartphone",Sb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ob=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],_b=ce("smile",Ob);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nb=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Cb=ce("sparkles",Nb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Eb=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Mb=ce("star",Eb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tb=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Ab=ce("upload",Tb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zb=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Db=ce("user-round",zb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rb=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ub=ce("user",Rb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wb=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],qb=ce("users",wb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qb=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],kb=ce("video",Qb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Bb=ce("x",Hb),Bm={Search:xr,BookOpen:hx,Bookmark:px,MessagesSquare:lb,Layers:Zx,Palette:ob,Newspaper:ib,GraduationCap:Qx,Baby:ix,Smile:_b,Backpack:ox,Headphones:Hx,UserRound:Db,BookOpenCheck:fx,Check:Sx,Heart:Lx,Star:Mb,Home:Yx,Users:qb,Book:vx,Library:Fx,PenLine:fb,Sparkles:Cb,ShieldCheck:bb,Clock:Ex,Smartphone:jb,Globe:wx,Mail:Px,Phone:hb,MapPin:Ix,Calendar:xx,Gift:Rx,Music:rb,Video:kb,Image:Vx,FileText:zx,Download:Tx,Upload:Ab,Share2:gb,Settings:yb,ChevronLeft:sc,ChevronRight:oc,User:Ub},Lm="/media/images/capas/capa-placeholder.svg",Ho="biblioteca_modo_exibicao";function Gm(){if(typeof window>"u")return"desktop";const n=window.innerWidth;return n<768?"mobile":n<1024?"tablet":"desktop"}function Lb(){const[n,u]=D.useState(Gm);return D.useEffect(()=>{function s(){u(Gm())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),n}function hn({livros:n,titulo:u}){const{data:s}=L.config.obter.useQuery(),o=Lb(),[f,h]=D.useState(()=>typeof window>"u"?"grade":localStorage.getItem(Ho)||"grade");D.useEffect(()=>{s&&!localStorage.getItem(Ho)&&h(s.modoPadrao)},[s]);function m(y){h(y),localStorage.setItem(Ho,y)}const v=o==="desktop"?s?.colunasDesktop??4:o==="tablet"?s?.colunasTablet??2:null;return c.jsxs("section",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.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:u}),c.jsxs("div",{className:"flex gap-1",children:[c.jsx("button",{"aria-label":"ver em grade","aria-pressed":f==="grade",onClick:()=>m("grade"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:Ym(f==="grade"),children:c.jsx(Gb,{})}),c.jsx("button",{"aria-label":"ver em lista","aria-pressed":f==="lista",onClick:()=>m("lista"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:Ym(f==="lista"),children:c.jsx(Yb,{})})]})]}),f==="grade"?c.jsx("div",{className:"grid gap-x-5 gap-y-8",style:{gridTemplateColumns:v?`repeat(${v}, 1fr)`:"repeat(auto-fill, minmax(120px, 1fr))"},children:n.map(y=>c.jsxs("a",{href:`/livro/${y.id}`,className:"group block",children:[c.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:c.jsx("img",{src:y.capaUrl||Lm,alt:y.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),c.jsx("p",{className:"text-sm mt-2 leading-snug line-clamp-2 transition-colors group-hover:text-[var(--clr-dourado-400)]",style:{color:"var(--clr-branco)"},children:y.titulo}),c.jsx("p",{className:"text-xs mt-0.5",style:{color:"var(--color-text-on-dark-muted)"},children:y.autor})]},y.id))}):c.jsx("div",{className:"flex flex-col gap-2",children:n.map(y=>c.jsxs("a",{href:`/livro/${y.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:[c.jsx("img",{src:y.capaUrl||Lm,alt:y.titulo,className:"w-12 aspect-[2/3] object-cover rounded flex-shrink-0 shadow"}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("p",{className:"text-sm truncate",style:{color:"var(--clr-branco)"},children:y.titulo}),c.jsxs("p",{className:"text-xs truncate",style:{color:"var(--color-text-on-dark-muted)"},children:[y.autor,y.serie?` · ${y.serie}`:""]})]})]},y.id))})]})}function Ym(n){return{background:n?"var(--clr-dourado-alpha12)":"transparent",color:n?"var(--clr-dourado-400)":"var(--color-text-on-dark-subtle)"}}function Gb(){return c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[c.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),c.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),c.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),c.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"})]})}function Yb(){return c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[c.jsx("rect",{x:"1",y:"2",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),c.jsx("rect",{x:"1",y:"6.75",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),c.jsx("rect",{x:"1",y:"11.5",width:"14",height:"2.5",rx:"1",fill:"currentColor"})]})}const Xb="/media/images/capas/capa-placeholder.svg",Vb="/media/images/hero-fundo.jpg";function Kb({cards:n,titulo:u="Descubra uma nova maneira de",tituloDestaque:s="conhecer a Palavra de Deus",subtitulo:o="Livros, mangás, HQs, estudos bíblicos e conteúdos ilustrados para crianças, adolescentes, jovens e adultos.",fundoUrl:f,overlayIntensidade:h=80,buscaAtiva:m=!0,buscaPlaceholder:v="qual leitura você procura?"}){const[,y]=Ov(),[g,O]=D.useState(""),[x,C]=D.useState(0),q=D.useRef(null),G=3,_=Math.min(100,Math.max(0,h))/100;D.useEffect(()=>{if(!(n.length<=G))return q.current=setInterval(()=>C(se=>(se+1)%n.length),5e3),()=>{q.current&&clearInterval(q.current)}},[n.length]);function F(se){C((se+n.length)%n.length),q.current&&clearInterval(q.current),n.length>G&&(q.current=setInterval(()=>C(be=>(be+1)%n.length),5e3))}function ne(se){se.preventDefault(),g.trim()&&y(`/buscar?q=${encodeURIComponent(g.trim())}`)}const fe=Array.from({length:Math.min(G,n.length)},(se,be)=>n[(x+be)%n.length]);return c.jsxs("section",{className:"relative w-screen left-1/2 right-1/2 -mx-[50vw]",style:{backgroundImage:`linear-gradient(90deg, rgba(18,11,5,${_}) 0%, rgba(18,11,5,${_*.8}) 45%, rgba(18,11,5,${_*.4}) 100%), url(${f||Vb})`,backgroundSize:"cover",backgroundPosition:"center"},children:[c.jsx("div",{className:"max-w-6xl mx-auto px-5 pt-14 pb-10",children:c.jsxs("div",{className:"max-w-xl",children:[c.jsxs("h1",{className:"text-3xl sm:text-4xl font-semibold leading-tight mb-3",style:{fontFamily:"var(--font-display)",color:"var(--clr-off-white)"},children:[u,c.jsx("br",{}),c.jsx("span",{style:{color:"var(--clr-dourado-400)"},children:s})]}),c.jsxs("div",{className:"flex items-center gap-3 my-4",style:{color:"var(--clr-dourado-500)"},"aria-hidden":"true",children:[c.jsx("span",{style:{height:1,width:40,background:"var(--clr-dourado-500)"}}),c.jsx("span",{style:{fontSize:"0.7rem"},children:"✦"}),c.jsx("span",{style:{height:1,width:40,background:"var(--clr-dourado-500)"}})]}),o&&c.jsx("p",{className:"text-sm sm:text-base mb-6",style:{color:"rgba(245,230,200,0.8)"},children:o}),m&&c.jsxs("form",{onSubmit:ne,className:"flex gap-2 max-w-md",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(xr,{size:16,className:"absolute left-4 top-1/2 -translate-y-1/2",style:{color:"var(--clr-marrom-700)"}}),c.jsx("input",{value:g,onChange:se=>O(se.target.value),placeholder:v,className:"w-full text-sm pl-10 pr-4 py-3 rounded-full focus:outline-none",style:{background:"var(--clr-off-white)",color:"var(--clr-marrom-950)"}})]}),c.jsx("button",{type:"submit",className:"flex-shrink-0 text-sm font-medium rounded-full px-6 transition-transform hover:scale-[1.03]",style:{background:"var(--clr-dourado-400)",color:"var(--clr-marrom-950)"},children:"buscar"})]})]})}),fe.length>0&&c.jsxs("div",{className:"max-w-6xl mx-auto px-5 pb-10 relative",children:[c.jsxs("div",{className:"flex gap-4 items-stretch",children:[n.length>G&&c.jsx("button",{"aria-label":"anterior",onClick:()=>F(x-1),className:"hidden sm:flex flex-shrink-0 w-8 rounded-full items-center justify-center transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:c.jsx(sc,{size:16})}),fe.map((se,be)=>c.jsxs("a",{href:se.href,className:`relative rounded-lg overflow-hidden group min-h-[130px] sm:min-h-[110px] transition-transform duration-300 hover:scale-[1.02] ${be===0?"w-full sm:flex-1":"hidden sm:block sm:flex-1"}`,style:{boxShadow:"var(--shadow-dourado-md)"},children:[c.jsx("img",{src:se.capaUrl||Xb,alt:"",className:"absolute inset-0 w-full h-full object-cover"}),c.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, rgba(18,11,5,0.9) 0%, rgba(18,11,5,0.2) 60%)"}}),c.jsx("div",{className:"relative p-4 h-full flex items-end",children:c.jsx("p",{className:"text-sm font-medium",style:{color:"var(--clr-off-white)",fontFamily:"var(--font-display)"},children:se.titulo})})]},`${se.id}-${x}-${be}`)),n.length>G&&c.jsx("button",{"aria-label":"próximo",onClick:()=>F(x+1),className:"hidden sm:flex flex-shrink-0 w-8 rounded-full items-center justify-center transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:c.jsx(oc,{size:16})})]}),n.length>1&&c.jsx("div",{className:"flex sm:hidden justify-center gap-1.5 mt-3",children:n.map((se,be)=>c.jsx("span",{style:{width:be===x?16:6,height:6,borderRadius:3,background:be===x?"var(--clr-dourado-400)":"rgba(212,168,67,0.3)",transition:"all 0.2s"}},se.id))})]})]})}function mn(){const n=L.useUtils(),{data:u,isLoading:s}=L.auth.me.useQuery(),o=L.auth.login.useMutation({onSuccess:()=>n.auth.me.invalidate()}),f=L.auth.register.useMutation({onSuccess:()=>n.auth.me.invalidate()}),h=L.auth.logout.useMutation({onSuccess:()=>n.auth.me.invalidate()}),m=u?.papel==="editor"||u?.papel==="admin";return{usuario:u,isLoading:s,login:o,registrar:f,logout:h,podePublicar:m}}const Xm=[{valor:"texto",rotulo:"Livros"},{valor:"manga",rotulo:"Mangás"},{valor:"hq",rotulo:"HQs"},{valor:"ilustrado",rotulo:"Ilustrados"},{valor:"revista",rotulo:"Revistas"},{valor:"apostila",rotulo:"Apostilas"}],Vm=[{valor:"primeiros_leitores",rotulo:"Primeiros leitores"},{valor:"infantil",rotulo:"Infantil"},{valor:"pre_adolescente",rotulo:"Pré-adolescentes"},{valor:"adolescente",rotulo:"Adolescentes"},{valor:"jovem",rotulo:"Jovens"},{valor:"adulto",rotulo:"Adultos"}];function Km({rotulo:n,children:u}){return c.jsxs("div",{className:"relative group",children:[c.jsxs("button",{className:"text-sm py-2 transition-colors hover:text-[var(--clr-dourado-400)] flex items-center gap-1",style:{color:"var(--clr-dourado-300)",fontFamily:"var(--font-ui)"},children:[n,c.jsx("span",{className:"text-[10px] opacity-70",children:"▾"})]}),c.jsx("div",{className:"absolute left-0 top-full pt-2 opacity-0 invisible translate-y-1 transition-all duration-150 group-hover:opacity-100 group-hover:visible group-hover:translate-y-0 z-20",children:c.jsx("div",{className:"rounded-lg p-4 shadow-2xl min-w-[220px]",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:u})})]})}function vr({href:n,children:u}){return c.jsx("a",{href:n,className:"block text-sm py-1.5 px-2 rounded transition-colors hover:bg-[var(--clr-dourado-alpha12)] whitespace-nowrap",style:{color:"var(--clr-off-white)"},children:u})}function Ju({rotulo:n,children:u}){const[s,o]=D.useState(!1);return c.jsxs("div",{style:{borderBottom:"1px solid var(--clr-dourado-alpha25)"},children:[c.jsxs("button",{className:"w-full flex items-center justify-between py-3.5 text-left",style:{color:"var(--clr-off-white)",minHeight:44},onClick:()=>o(f=>!f),children:[c.jsx("span",{className:"font-medium text-sm",children:n}),c.jsx(Ox,{size:16,style:{color:"var(--clr-dourado-400)",transform:s?"rotate(180deg)":"none",transition:"transform 0.15s"}})]}),s&&c.jsx("div",{className:"pb-3 pl-2 space-y-0.5",children:u})]})}function fn({href:n,children:u}){return c.jsx("a",{href:n,className:"block text-sm py-2.5 px-2 rounded transition-colors",style:{color:"rgba(245,230,200,0.85)",minHeight:44,display:"flex",alignItems:"center"},children:u})}function Zt({buscaInicial:n=""}){const[,u]=Ov(),[s,o]=D.useState(n),[f,h]=D.useState(!1),{usuario:m,podePublicar:v}=mn(),{data:y}=L.menu.listar.useQuery(),{data:g}=L.colecoes.listar.useQuery();function O(x){x.preventDefault(),s.trim()&&(u(`/buscar?q=${encodeURIComponent(s.trim())}`),h(!1))}return c.jsxs("header",{className:"sticky top-0 z-30 backdrop-blur-sm",style:{borderBottom:"1px solid var(--clr-dourado-alpha25)",background:"rgba(18,11,5,0.92)"},children:[c.jsxs("div",{className:"flex items-center justify-between gap-4 px-5 py-2.5 max-w-6xl mx-auto",children:[c.jsx("a",{href:"/",className:"flex-shrink-0",children:c.jsx("img",{src:"/media/images/logo-biblioteca-onfide.png",alt:"Biblioteca OnFide",className:"h-10 sm:h-11"})}),c.jsxs("nav",{className:"hidden md:flex items-center gap-6 flex-shrink-0",children:[c.jsx(Km,{rotulo:"Explorar",children:c.jsxs("div",{className:"flex gap-6",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-[10px] uppercase mb-1",style:{color:"var(--clr-dourado-500)",letterSpacing:"var(--tracking-wider)"},children:"formato"}),Xm.map(x=>c.jsx(vr,{href:`/explorar?formato=${x.valor}`,children:x.rotulo},x.valor))]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[10px] uppercase mb-1",style:{color:"var(--clr-dourado-500)",letterSpacing:"var(--tracking-wider)"},children:"público"}),Vm.map(x=>c.jsx(vr,{href:`/explorar?publico=${x.valor}`,children:x.rotulo},x.valor))]}),g&&g.length>0&&c.jsxs("div",{children:[c.jsx("p",{className:"text-[10px] uppercase mb-1",style:{color:"var(--clr-dourado-500)",letterSpacing:"var(--tracking-wider)"},children:"coleções"}),g.map(x=>c.jsx(vr,{href:`/colecao/${x.id}`,children:x.nome},x.id))]})]})}),c.jsxs(Km,{rotulo:"Ecossistema ONFIDE",children:[c.jsx(vr,{href:"https://spot.onfide.com.br",children:"SpotOnFide — podcast e música"}),c.jsx(vr,{href:"https://onfide.com.br",children:"ONFIDE"})]}),y?.map(x=>c.jsx("a",{href:x.url,className:"text-sm py-2 transition-colors hover:text-[var(--clr-dourado-400)]",style:{color:"var(--clr-dourado-300)",fontFamily:"var(--font-ui)"},children:x.rotulo},x.id))]}),c.jsxs("form",{onSubmit:O,className:"flex-1 max-w-xs relative hidden lg:block",children:[c.jsx(xr,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:"var(--clr-marrom-700)"}}),c.jsx("input",{value:s,onChange:x=>o(x.target.value),placeholder:"buscar título, autor, série...",className:"w-full text-sm pl-9 pr-3 py-2 rounded-full transition-colors focus:outline-none",style:{border:"1px solid var(--clr-dourado-alpha25)",background:"var(--clr-off-white)",color:"var(--clr-marrom-950)"}})]}),c.jsx("div",{className:"hidden md:flex items-center gap-2 flex-shrink-0",children:m?c.jsxs(c.Fragment,{children:[c.jsx("a",{href:"/minha-biblioteca",className:"text-xs rounded-full px-4 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)",minHeight:40,display:"flex",alignItems:"center"},children:"minha biblioteca"}),v&&c.jsx("a",{href:"/admin",className:"text-xs rounded-full px-4 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)",minHeight:40,display:"flex",alignItems:"center"},children:"área do editor"})]}):c.jsx("a",{href:"/entrar",className:"text-xs rounded-full px-5 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)",minHeight:40,display:"flex",alignItems:"center"},children:"entrar"})}),c.jsxs("div",{className:"flex md:hidden items-center gap-1 flex-shrink-0",children:[c.jsx("a",{href:"/buscar","aria-label":"buscar",className:"flex items-center justify-center rounded-full",style:{width:44,height:44,color:"var(--clr-dourado-400)"},children:c.jsx(xr,{size:20})}),c.jsx("button",{"aria-label":f?"fechar menu":"abrir menu",onClick:()=>h(x=>!x),className:"flex items-center justify-center rounded-full",style:{width:44,height:44,color:"var(--clr-dourado-400)"},children:f?c.jsx(Bb,{size:26}):c.jsx(tb,{size:26})})]})]}),f&&c.jsx("div",{className:"md:hidden overflow-y-auto",style:{background:"var(--clr-marrom-950)",borderTop:"1px solid var(--clr-dourado-alpha25)",maxHeight:"calc(100dvh - 60px)"},children:c.jsxs("div",{className:"px-5 py-4",children:[c.jsxs("form",{onSubmit:O,className:"relative mb-2",children:[c.jsx(xr,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:"var(--clr-marrom-700)"}}),c.jsx("input",{value:s,onChange:x=>o(x.target.value),placeholder:"buscar título, autor, série...",className:"w-full text-sm pl-9 pr-3 rounded-full focus:outline-none",style:{border:"1px solid var(--clr-dourado-alpha25)",background:"var(--clr-off-white)",color:"var(--clr-marrom-950)",minHeight:44}})]}),c.jsx(Ju,{rotulo:"Explorar por formato",children:Xm.map(x=>c.jsx(fn,{href:`/explorar?formato=${x.valor}`,children:x.rotulo},x.valor))}),c.jsx(Ju,{rotulo:"Explorar por público",children:Vm.map(x=>c.jsx(fn,{href:`/explorar?publico=${x.valor}`,children:x.rotulo},x.valor))}),g&&g.length>0&&c.jsx(Ju,{rotulo:"Coleções",children:g.map(x=>c.jsx(fn,{href:`/colecao/${x.id}`,children:x.nome},x.id))}),c.jsxs(Ju,{rotulo:"Ecossistema ONFIDE",children:[c.jsx(fn,{href:"https://spot.onfide.com.br",children:"SpotOnFide — podcast e música"}),c.jsx(fn,{href:"https://onfide.com.br",children:"ONFIDE"})]}),y&&y.length>0&&c.jsx("div",{className:"py-2",style:{borderBottom:"1px solid var(--clr-dourado-alpha25)"},children:y.map(x=>c.jsx(fn,{href:x.url,children:x.rotulo},x.id))}),c.jsx("div",{className:"pt-4 space-y-2",children:m?c.jsxs(c.Fragment,{children:[c.jsx("a",{href:"/minha-biblioteca",className:"block text-center text-sm rounded-full py-3",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"minha biblioteca"}),v&&c.jsx("a",{href:"/admin",className:"block text-center text-sm rounded-full py-3",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"área do editor"})]}):c.jsx("a",{href:"/entrar",className:"block text-center text-sm rounded-full py-3",style:{background:"var(--clr-dourado-400)",color:"var(--clr-marrom-950)"},children:"entrar"})})]})})]})}function Jt(){const{data:n}=L.homeCms.config.obter.useQuery(),u=new Date().getFullYear();return c.jsx("footer",{className:"mt-16",style:{background:"var(--clr-marrom-950)",borderTop:"1px solid var(--clr-dourado-alpha25)"},children:c.jsxs("div",{className:"max-w-5xl mx-auto px-5 py-10",children:[c.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between gap-8",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("img",{src:"/media/images/logo-biblioteca-onfide.png",alt:"Biblioteca OnFide",className:"h-10"}),c.jsx("p",{className:"text-sm max-w-xs",style:{color:"rgba(245,230,200,0.6)"},children:n?.footerDescricao||"Parte do ecossistema ONFIDE — literatura cristã pensada com o mesmo cuidado hermenêutico de tudo que produzimos."})]}),c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsx("span",{className:"text-xs uppercase mb-1",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--clr-dourado-500)"},children:"ecossistema"}),c.jsx("a",{href:"https://spot.onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-dourado-400)]",style:{color:"rgba(245,230,200,0.75)"},children:"SpotOnFide ›"}),c.jsx("a",{href:"https://onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-dourado-400)]",style:{color:"rgba(245,230,200,0.75)"},children:"ONFIDE ›"})]})]}),c.jsx("div",{className:"mt-10 pt-6 text-xs",style:{borderTop:"1px solid var(--clr-dourado-alpha25)",color:"rgba(245,230,200,0.4)"},children:n?.footerCopyright||`© ${u} Biblioteca OnFide. Todos os direitos reservados.`})]})})}const Zb="/media/images/capas/capa-placeholder.svg";function Fu({nome:n,...u}){const s=Bm[n]||Bm.BookOpen;return c.jsx(s,{...u})}function yr({eyebrow:n,titulo:u}){return c.jsxs("div",{className:"mb-6",children:[c.jsx("span",{className:"text-xs font-bold uppercase block mb-2",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-caps)",color:"var(--clr-dourado-500)"},children:n}),c.jsx("h2",{className:"text-xl sm:text-2xl font-semibold",style:{fontFamily:"var(--font-display)",color:"var(--clr-off-white)"},children:u})]})}function Jb({pergunta:n,resposta:u}){const[s,o]=D.useState(!1);return c.jsxs("div",{style:{borderBottom:"1px solid var(--clr-dourado-alpha25)"},className:"py-3",children:[c.jsxs("button",{className:"w-full flex items-center justify-between text-left",onClick:()=>o(f=>!f),children:[c.jsx("span",{className:"text-sm font-medium",style:{color:"var(--clr-off-white)"},children:n}),c.jsx("span",{style:{color:"var(--clr-dourado-400)"},className:"text-lg leading-none",children:s?"−":"+"})]}),s&&c.jsx("p",{className:"text-sm mt-2",style:{color:"rgba(245,230,200,0.7)"},children:u})]})}function Fb({livros:n}){const[u,s]=D.useState(0),o=6,f=Math.max(0,n.length-o);return c.jsxs("section",{className:"mb-14",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("span",{className:"text-xs font-bold uppercase",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-caps)",color:"var(--clr-dourado-500)"},children:"novidades"}),c.jsx("a",{href:"/explorar",className:"text-xs rounded-full px-4 py-1.5 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"ver todos os livros"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("button",{"aria-label":"anterior",disabled:u===0,onClick:()=>s(h=>Math.max(0,h-o)),className:"flex-shrink-0 w-11 h-11 rounded-full flex items-center justify-center transition-colors disabled:opacity-30 hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:c.jsx(sc,{size:16})}),c.jsx("div",{className:"flex-1 grid grid-cols-3 sm:grid-cols-6 gap-3 overflow-hidden",children:n.slice(u,u+o).map(h=>c.jsxs("a",{href:`/livro/${h.id}`,className:"group block",children:[c.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-transform duration-200 group-hover:-translate-y-1",children:c.jsx("img",{src:h.capaUrl||Zb,alt:h.titulo,className:"w-full aspect-[2/3] object-cover"})}),c.jsx("p",{className:"text-xs mt-2 leading-snug line-clamp-2",style:{color:"var(--clr-off-white)"},children:h.titulo}),c.jsx("p",{className:"text-[11px]",style:{color:"rgba(245,230,200,0.5)"},children:h.autor})]},h.id))}),c.jsx("button",{"aria-label":"próximo",disabled:u>=f,onClick:()=>s(h=>Math.min(f,h+o)),className:"flex-shrink-0 w-11 h-11 rounded-full flex items-center justify-center transition-colors disabled:opacity-30 hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:c.jsx(oc,{size:16})})]})]})}function $b(){const{data:n,isLoading:u}=L.biblioteca.getCatalogo.useQuery(),{data:s}=L.biblioteca.getDestaques.useQuery(),{data:o}=L.homeCms.heroCards.listar.useQuery(),{data:f}=L.homeCms.config.obter.useQuery(),{data:h}=L.biblioteca.getNovidades.useQuery(),{data:m}=L.homeCms.comoFunciona.listar.useQuery(),{data:v}=L.homeCms.acervoItens.listar.useQuery(),{data:y}=L.homeCms.publicoItens.listar.useQuery(),{data:g}=L.homeCms.beneficios.listar.useQuery(),{data:O}=L.homeCms.faqItens.listar.useQuery(),{data:x}=L.homeCms.banners.listarAtivos.useQuery(),C=new Set((s??[]).map(_=>_.id)),q=(n??[]).filter(_=>!C.has(_.id)),G=o&&o.length>0?o.map(_=>{const F=_.livroId?n?.find(ne=>ne.id===_.livroId):null;return{id:_.id,titulo:_.titulo,autor:"",capaUrl:F?.capaUrl??_.imagemUrl,href:_.livroId?`/livro/${_.livroId}`:_.linkUrl||"#"}}):(s??[]).map(_=>({id:_.id,titulo:_.titulo,autor:_.autor,capaUrl:_.capaUrl,href:`/livro/${_.id}`}));return c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",fontFamily:"var(--font-corpo)"},children:[c.jsx(Zt,{}),G.length>0&&c.jsx(Kb,{cards:G,titulo:f?.heroTitulo,tituloDestaque:f?.heroTituloDestaque,subtitulo:f?.heroSubtitulo,fundoUrl:f?.heroFundoUrl,overlayIntensidade:f?.heroOverlayIntensidade,buscaAtiva:f?.heroBuscaAtiva,buscaPlaceholder:f?.heroBuscaPlaceholder}),c.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-12 pb-16 flex-1 w-full",children:[x&&x.length>0&&c.jsx("div",{className:"mb-14 space-y-3",children:x.map(_=>c.jsxs("a",{href:_.linkUrl,className:"flex items-center gap-4 rounded-lg overflow-hidden transition-transform hover:scale-[1.005]",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[_.imagemUrl&&c.jsx("img",{src:_.imagemUrl,alt:"",className:"w-28 h-20 object-cover flex-shrink-0"}),c.jsxs("div",{className:"py-3 flex-1",children:[c.jsx("p",{className:"font-medium text-sm",style:{color:"var(--clr-dourado-400)",fontFamily:"var(--font-display)"},children:_.titulo}),_.texto&&c.jsx("p",{className:"text-xs mt-0.5",style:{color:"rgba(245,230,200,0.65)"},children:_.texto})]}),_.botaoTexto&&c.jsx("span",{className:"text-xs rounded-full px-4 py-1.5 mr-4 flex-shrink-0",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:_.botaoTexto})]},_.id))}),u&&c.jsx("p",{className:"text-sm",style:{color:"rgba(245,230,200,0.6)"},children:"carregando..."}),!u&&(!n||n.length===0)&&c.jsxs("div",{className:"rounded-lg p-10 text-center mb-14",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)",color:"rgba(245,230,200,0.7)"},children:[c.jsx("p",{className:"text-xl mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-off-white)"},children:"A estante ainda está sendo montada"}),c.jsx("p",{className:"text-sm",children:"Em breve os primeiros livros aparecem aqui."})]}),m&&m.length>0&&c.jsxs("section",{className:"mb-14",children:[c.jsx(yr,{eyebrow:"como funciona",titulo:"Ler nunca foi tão simples"}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:m.map(_=>c.jsxs("div",{className:"rounded-lg p-5",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[c.jsx("div",{className:"w-11 h-11 rounded-full flex items-center justify-center mb-3",style:{background:"var(--clr-dourado-alpha12)",color:"var(--clr-dourado-400)"},children:c.jsx(Fu,{nome:_.icone,size:18})}),c.jsx("span",{style:{fontFamily:"var(--font-display)",fontSize:"0.85rem",color:"var(--clr-dourado-500)"},children:_.numero}),c.jsx("p",{className:"font-medium mt-1",style:{color:"var(--clr-off-white)"},children:_.titulo}),c.jsx("p",{className:"text-sm mt-1",style:{color:"rgba(245,230,200,0.65)"},children:_.descricao})]},_.id))})]}),v&&v.length>0&&c.jsxs("section",{className:"mb-14",children:[c.jsx(yr,{eyebrow:"o acervo",titulo:"Um universo inteiro de conteúdo cristão"}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:v.map(_=>c.jsxs("a",{href:_.linkUrl,className:"rounded-lg p-4 transition-colors hover:bg-[var(--clr-dourado-alpha12)] flex items-start gap-3",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[c.jsx(Fu,{nome:_.icone,size:20,style:{color:"var(--clr-dourado-400)",flexShrink:0,marginTop:2}}),c.jsxs("div",{children:[c.jsx("p",{className:"font-medium text-sm",style:{color:"var(--clr-off-white)"},children:_.nome}),c.jsx("p",{className:"text-xs mt-1",style:{color:"rgba(245,230,200,0.6)"},children:_.descricao})]})]},_.id))})]}),y&&y.length>0&&c.jsxs("section",{className:"mb-14",children:[c.jsx(yr,{eyebrow:"para toda a família",titulo:"Leitura pensada pra cada idade"}),c.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-6 gap-3",children:y.map(_=>c.jsxs("a",{href:_.linkUrl,className:"rounded-lg p-3 text-center transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[c.jsx(Fu,{nome:_.icone,size:20,className:"mx-auto mb-2",style:{color:"var(--clr-dourado-400)"}}),c.jsx("p",{className:"font-medium text-xs",style:{color:"var(--clr-off-white)"},children:_.nome}),c.jsx("p",{className:"text-[11px] mt-0.5",style:{color:"rgba(245,230,200,0.55)"},children:_.faixaEtaria})]},_.id))})]}),h&&h.length>0&&c.jsx(Fb,{livros:h}),q.length>0&&c.jsx(hn,{livros:q,titulo:"todos os livros"}),(g&&g.length>0||O&&O.length>0)&&c.jsxs("section",{className:"grid grid-cols-1 sm:grid-cols-2 gap-10 mt-4",children:[g&&g.length>0&&c.jsxs("div",{children:[c.jsx(yr,{eyebrow:"a experiência",titulo:"Por que ler na Biblioteca OnFide"}),c.jsx("div",{className:"space-y-2",children:g.map(_=>c.jsxs("div",{className:"flex items-start gap-2 text-sm",style:{color:"rgba(245,230,200,0.75)"},children:[c.jsx(Fu,{nome:_.icone,size:16,style:{color:"var(--clr-dourado-400)",flexShrink:0,marginTop:2}}),_.texto]},_.id))})]}),O&&O.length>0&&c.jsxs("div",{children:[c.jsx(yr,{eyebrow:"dúvidas",titulo:"Perguntas frequentes"}),c.jsx("div",{children:O.map(_=>c.jsx(Jb,{pergunta:_.pergunta,resposta:_.resposta},_.id))})]})]})]}),c.jsx(Jt,{})]})}const Bo={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function pr({titulo:n,descricao:u,campos:s,itens:o,temAtivo:f=!0,aoCriar:h,aoAtualizar:m,aoExcluir:v}){const y=Object.fromEntries(s.map(C=>[C.chave,""])),[g,O]=D.useState(y);function x(C,q,G,_){return _==="textarea"?c.jsx("textarea",{className:"w-full rounded px-2 py-1.5 text-sm",style:Bo,value:q,onChange:F=>G(F.target.value),rows:2}):c.jsx("input",{type:_==="numero"?"number":"text",className:"w-full rounded px-2 py-1.5 text-sm",style:Bo,value:q,onChange:F=>G(F.target.value)})}return c.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:n}),u&&c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:u}),c.jsxs("div",{className:"space-y-3",children:[o?.map(C=>c.jsxs("div",{className:"rounded p-3",style:{border:"var(--border-thin)"},children:[c.jsx("div",{className:"grid gap-2",style:{gridTemplateColumns:`repeat(${s.length}, 1fr)`},children:s.map(q=>c.jsxs("label",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[q.rotulo,x(q.chave,String(C[q.chave]??""),G=>m(C.id,{[q.chave]:q.tipo==="numero"?Number(G):G}),q.tipo)]},q.chave))}),c.jsxs("div",{className:"flex items-center justify-between mt-2",children:[c.jsxs("label",{className:"flex items-center gap-1.5 text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("input",{type:"number",className:"w-14 rounded px-1.5 py-1 text-xs",style:Bo,value:C.ordem,onChange:q=>m(C.id,{ordem:Number(q.target.value)})}),"ordem"]}),f&&c.jsxs("label",{className:"flex items-center gap-1.5 text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("input",{type:"checkbox",checked:!!C.ativo,onChange:q=>m(C.id,{ativo:q.target.checked})}),"ativo"]}),c.jsx("button",{className:"text-xs",style:{color:"#ff8080"},onClick:()=>v(C.id),children:"remover"})]})]},C.id)),o?.length===0&&c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum item ainda."})]}),c.jsxs("div",{className:"rounded p-3 space-y-2",style:{border:"1px dashed var(--color-border-medium)"},children:[c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"+ adicionar novo item"}),c.jsx("div",{className:"grid gap-2",style:{gridTemplateColumns:`repeat(${s.length}, 1fr)`},children:s.map(C=>c.jsxs("label",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[C.rotulo,x(C.chave,g[C.chave]??"",q=>O(G=>({...G,[C.chave]:q})),C.tipo)]},C.chave))}),c.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.4rem 0.8rem"},onClick:()=>{const C={};for(const q of s)C[q.chave]=q.tipo==="numero"?Number(g[q.chave]||0):g[q.chave]||"";h(C),O(y)},children:"adicionar"})]})]})}const Pb="/media/images/capas/capa-placeholder.svg",xe={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},Wb=[{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)"}],Ib=["ilustrado","manga","hq","revista"],e2=[{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 t2({livroExistente:n,aoTerminar:u}){const s=L.useUtils(),o=L.biblioteca.admin.criar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),f=L.biblioteca.admin.atualizar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),h=L.paginas.salvar.useMutation(),{data:m}=L.biblioteca.getLivro.useQuery({id:n?.id??0},{enabled:!!n}),{data:v}=L.autores.listar.useQuery(),{data:y}=L.temas.listar.useQuery(),{data:g}=L.colecoes.listar.useQuery(),O=L.autores.criar.useMutation({onSuccess:()=>s.autores.listar.invalidate()}),x=L.temas.criar.useMutation({onSuccess:()=>s.temas.listar.invalidate()}),[C,q]=D.useState(n?.titulo??""),[G,_]=D.useState(n?.destaque??!1),[F,ne]=D.useState(n?.subtitulo??""),[fe,se]=D.useState(n?.serie??""),[be,X]=D.useState(n?.volumeNumero?.toString()??""),[V,R]=D.useState(n?.autor??""),[J,I]=D.useState(n?.resumo??""),[ee,le]=D.useState(n?.formato??"texto"),[te,ge]=D.useState(""),[de,me]=D.useState(""),[T,H]=D.useState([]),[K,ue]=D.useState([]),[ye,S]=D.useState(""),[U,B]=D.useState(""),[Y,W]=D.useState(null),[oe,Se]=D.useState(null),[Je,Be]=D.useState(null),[ja,Wa]=D.useState(!1),[_l,Ia]=D.useState(null),[$t,Oa]=D.useState(null);D.useEffect(()=>{m&&(ge(m.publicoAlvo??""),me(m.colecaoId?.toString()??""),H(m.autores?.map(Z=>Z.id)??[]),ue(m.temas?.map(Z=>Z.id)??[]))},[m]);const dt=!!n,Nr=Ib.includes(ee);async function vn(Z,ze,bt,St={}){const Pt=new FormData;Pt.append(ze,bt);for(const[xn,Er]of Object.entries(St))Pt.append(xn,Er);const at=await fetch(Z,{method:"POST",body:Pt});if(!at.ok){const xn=await at.json().catch(()=>({}));throw new Error(xn.erro||"Falha no upload.")}return at.json()}async function yn(Z){const ze=new FormData;for(const St of Array.from(Z))ze.append("paginas",St);const bt=await fetch("/api/admin/upload-paginas",{method:"POST",body:ze});if(!bt.ok){const St=await bt.json().catch(()=>({}));throw new Error(St.erro||"Falha no upload das páginas.")}return(await bt.json()).urls}function pn(){q(""),ne(""),se(""),X(""),R(""),I(""),le("texto"),ge(""),me(""),H([]),ue([]),W(null),Se(null),Be(null)}async function gn(){if(!dt&&ee==="texto"&&!Y){Oa("Selecione o arquivo DOCX.");return}if(!dt&&Nr&&!Je){Oa("Selecione as páginas (imagens).");return}Oa(null),Wa(!0);try{let Z,ze,bt;if(Y){Ia("convertendo DOCX...");const at=await vn("/api/admin/upload-docx","arquivo",Y,{titulo:C,autor:V});Z=at.docxOriginalUrl,ze=at.epubUrl,!J&&at.resumoAutomatico&&I(at.resumoAutomatico)}oe&&(Ia("enviando capa..."),bt=(await vn("/api/admin/upload-capa","imagem",oe)).url);const St={titulo:C,subtitulo:F||void 0,serie:fe||void 0,volumeNumero:be?Number(be):void 0,autor:V,resumo:J||void 0,destaque:G,formato:ee,publicoAlvo:te||void 0,colecaoId:de?Number(de):void 0,autorIds:T,temaIds:K,...bt&&{capaUrl:bt},...ze&&{epubUrl:ze},...Z&&{docxOriginalUrl:Z}};let Pt;if(dt?(await f.mutateAsync({id:n.id,...St}),Pt=n.id):Pt=(await o.mutateAsync(St)).id,Nr&&Je){Ia(`enviando ${Je.length} páginas...`);const at=await yn(Je);await h.mutateAsync({livroId:Pt,imagensUrl:at})}dt||pn(),u()}catch(Z){Oa(Z instanceof Error?Z.message:"Erro ao salvar.")}finally{Wa(!1),Ia(null)}}function Cr(Z,ze,bt){bt(Z.includes(ze)?Z.filter(St=>St!==ze):[...Z,ze])}return c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:dt?`Editando: ${n.titulo}`:"Novo livro"}),dt&&c.jsx("button",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},onClick:u,children:"cancelar edição"})]}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:xe,placeholder:"título",value:C,onChange:Z=>q(Z.target.value)}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:xe,placeholder:"subtítulo (opcional)",value:F,onChange:Z=>ne(Z.target.value)}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx("input",{className:"flex-1 rounded px-3 py-2",style:xe,placeholder:"série (opcional)",value:fe,onChange:Z=>se(Z.target.value)}),c.jsx("input",{className:"w-28 rounded px-3 py-2",style:xe,placeholder:"volume nº",value:be,onChange:Z=>X(Z.target.value)})]}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:xe,placeholder:"autor (texto de exibição)",value:V,onChange:Z=>R(Z.target.value)}),c.jsx("textarea",{className:"w-full rounded px-3 py-2",style:xe,placeholder:"resumo (opcional)",value:J,onChange:Z=>I(Z.target.value)}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("label",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["formato",c.jsx("select",{className:"w-full rounded px-3 py-2 mt-1",style:xe,value:ee,onChange:Z=>le(Z.target.value),children:Wb.map(Z=>c.jsx("option",{value:Z.valor,style:{color:"#000"},children:Z.rotulo},Z.valor))})]}),c.jsxs("label",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["público-alvo",c.jsx("select",{className:"w-full rounded px-3 py-2 mt-1",style:xe,value:te,onChange:Z=>ge(Z.target.value),children:e2.map(Z=>c.jsx("option",{value:Z.valor,style:{color:"#000"},children:Z.rotulo},Z.valor))})]})]}),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["coleção (opcional)",c.jsxs("select",{className:"w-full rounded px-3 py-2 mt-1",style:xe,value:de,onChange:Z=>me(Z.target.value),children:[c.jsx("option",{value:"",style:{color:"#000"},children:"nenhuma"}),g?.map(Z=>c.jsx("option",{value:Z.id,style:{color:"#000"},children:Z.nome},Z.id))]})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm mb-1",style:{color:"var(--color-text-on-dark-muted)"},children:"colaboradores (autor/ilustrador)"}),c.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:v?.map(Z=>c.jsx("button",{type:"button",onClick:()=>Cr(T,Z.id,H),className:"text-xs px-3 py-1 rounded-full transition-colors",style:{border:"var(--border-medium)",background:T.includes(Z.id)?"var(--clr-acento-alpha12)":"transparent",color:T.includes(Z.id)?"var(--clr-acento-400)":"var(--color-text-on-dark-muted)"},children:Z.nome},Z.id))}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{className:"flex-1 rounded px-3 py-1.5 text-sm",style:xe,placeholder:"novo colaborador...",value:ye,onChange:Z=>S(Z.target.value)}),c.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:async()=>{if(!ye)return;const Z=await O.mutateAsync({nome:ye});H(ze=>[...ze,Z.id]),S("")},children:"+ adicionar"})]})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm mb-1",style:{color:"var(--color-text-on-dark-muted)"},children:"temas"}),c.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:y?.map(Z=>c.jsx("button",{type:"button",onClick:()=>Cr(K,Z.id,ue),className:"text-xs px-3 py-1 rounded-full transition-colors",style:{border:"var(--border-medium)",background:K.includes(Z.id)?"var(--clr-acento-alpha12)":"transparent",color:K.includes(Z.id)?"var(--clr-acento-400)":"var(--color-text-on-dark-muted)"},children:Z.nome},Z.id))}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{className:"flex-1 rounded px-3 py-1.5 text-sm",style:xe,placeholder:"novo tema...",value:U,onChange:Z=>B(Z.target.value)}),c.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:async()=>{if(!U)return;const Z=await x.mutateAsync({nome:U});ue(ze=>[...ze,Z.id]),B("")},children:"+ adicionar"})]})]}),c.jsxs("label",{className:"flex items-center gap-2 text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("input",{type:"checkbox",checked:G,onChange:Z=>_(Z.target.checked)}),"exibir no carrossel de destaque da Home"]}),ee==="texto"||ee==="apostila"?c.jsxs(c.Fragment,{children:[c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["arquivo DOCX ",dt&&"(deixe em branco pra manter o atual)"]}),c.jsx("input",{type:"file",accept:".docx",onChange:Z=>W(Z.target.files?.[0]??null)})]}):c.jsxs(c.Fragment,{children:[c.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) ",dt&&"(deixe em branco pra manter as atuais)"]}),c.jsx("input",{type:"file",accept:"image/*",multiple:!0,onChange:Z=>Be(Z.target.files)})]}),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["capa ",dt&&"(deixe em branco pra manter a atual)"]}),c.jsx("input",{type:"file",accept:"image/*",onChange:Z=>Se(Z.target.files?.[0]??null)}),_l&&c.jsx("p",{className:"text-sm",style:{color:"var(--clr-acento-400)"},children:_l}),$t&&c.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:$t}),c.jsx("button",{className:"btn btn-primary",onClick:gn,disabled:ja||!C||!V,children:ja?"processando...":dt?"salvar alterações":"salvar como rascunho"})]})}function a2({aoEditar:n}){const u=L.useUtils(),{data:s}=L.biblioteca.admin.listar.useQuery(),[o,f]=D.useState(""),h=L.biblioteca.admin.atualizar.useMutation({onSuccess:()=>u.biblioteca.admin.listar.invalidate()}),m=L.biblioteca.admin.excluir.useMutation({onSuccess:()=>u.biblioteca.admin.listar.invalidate()}),v=s?.filter(g=>g.titulo.toLowerCase().includes(o.toLowerCase())||g.autor.toLowerCase().includes(o.toLowerCase()));function y(g,O){window.confirm(`Excluir "${O}" permanentemente? Essa ação não pode ser desfeita.`)&&m.mutate({id:g})}return c.jsxs("div",{className:"mt-8 space-y-3",children:[c.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c.jsxs("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:["Livros ",s?`(${s.length})`:""]}),c.jsx("input",{value:o,onChange:g=>f(g.target.value),placeholder:"filtrar por título ou autor...",className:"rounded px-3 py-1.5 text-sm",style:{...xe,maxWidth:240}})]}),c.jsxs("div",{className:"space-y-2",children:[v?.map(g=>c.jsxs("div",{className:"flex items-center gap-3 rounded-md p-2",style:{border:"var(--border-thin)"},children:[c.jsx("img",{src:g.capaUrl||Pb,alt:"",className:"w-10 aspect-[2/3] object-cover rounded flex-shrink-0"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm truncate",children:g.titulo}),c.jsxs("p",{className:"text-xs flex items-center gap-2",style:{color:"var(--color-text-on-dark-muted)"},children:[c.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}`:""]})]}),c.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[c.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>n(g),children:"editar"}),c.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>h.mutate({id:g.id,status:g.status==="publicado"?"rascunho":"publicado"}),children:g.status==="publicado"?"despublicar":"publicar"}),c.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem",color:"#ff8080"},onClick:()=>y(g.id,g.titulo),children:"excluir"})]})]},g.id)),v?.length===0&&c.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum livro encontrado."})]})]})}function l2(){const{data:n}=L.config.obter.useQuery(),u=L.useUtils(),s=L.config.atualizar.useMutation({onSuccess:()=>u.config.obter.invalidate()});return n?c.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Configurações de exibição"}),c.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."}),c.jsxs("div",{className:"flex gap-4 items-center",children:[c.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no desktop",c.jsx("input",{type:"number",min:1,max:6,defaultValue:n.colunasDesktop,className:"w-full rounded px-3 py-2 mt-1",style:xe,onBlur:o=>s.mutate({colunasDesktop:Number(o.target.value)})})]}),c.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no tablet",c.jsx("input",{type:"number",min:1,max:6,defaultValue:n.colunasTablet,className:"w-full rounded px-3 py-2 mt-1",style:xe,onBlur:o=>s.mutate({colunasTablet:Number(o.target.value)})})]})]}),c.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["modo padrão pra quem visita pela primeira vez",c.jsxs("select",{defaultValue:n.modoPadrao,className:"w-full rounded px-3 py-2 mt-1",style:xe,onChange:o=>s.mutate({modoPadrao:o.target.value}),children:[c.jsx("option",{value:"grade",style:{color:"#000"},children:"grade"}),c.jsx("option",{value:"lista",style:{color:"#000"},children:"lista"})]})]}),c.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["quantidade de slides no carrossel de destaque",c.jsx("input",{type:"number",min:1,max:10,defaultValue:n.qtdSlidesHero,className:"w-full rounded px-3 py-2 mt-1",style:xe,onBlur:o=>s.mutate({qtdSlidesHero:Number(o.target.value)})}),c.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 n2(){const{data:n}=L.menu.listar.useQuery(),u=L.useUtils(),s=L.menu.criar.useMutation({onSuccess:()=>u.menu.listar.invalidate()}),o=L.menu.atualizar.useMutation({onSuccess:()=>u.menu.listar.invalidate()}),f=L.menu.excluir.useMutation({onSuccess:()=>u.menu.listar.invalidate()}),[h,m]=D.useState(""),[v,y]=D.useState("");function g(){!h||!v||(s.mutate({rotulo:h,url:v,ordem:(n?.length??0)+1}),m(""),y(""))}return c.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Menu de navegação"}),c.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."}),c.jsxs("div",{className:"space-y-2",children:[n?.map(O=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("input",{defaultValue:O.rotulo,className:"flex-1 rounded px-3 py-1.5 text-sm",style:xe,onBlur:x=>o.mutate({id:O.id,rotulo:x.target.value})}),c.jsx("input",{defaultValue:O.url,className:"flex-1 rounded px-3 py-1.5 text-sm",style:xe,onBlur:x=>o.mutate({id:O.id,url:x.target.value})}),c.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>f.mutate({id:O.id}),children:"remover"})]},O.id)),n?.length===0&&c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum item ainda."})]}),c.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[c.jsx("input",{placeholder:"rótulo (ex: Sobre)",value:h,onChange:O=>m(O.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:xe}),c.jsx("input",{placeholder:"url (ex: /serie/Quatro Cavalos)",value:v,onChange:O=>y(O.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:xe}),c.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:g,children:"+ adicionar"})]})]})}function r2(){const{data:n}=L.colecoes.listar.useQuery(),u=L.useUtils(),s=L.colecoes.criar.useMutation({onSuccess:()=>u.colecoes.listar.invalidate()}),o=L.colecoes.atualizar.useMutation({onSuccess:()=>u.colecoes.listar.invalidate()}),f=L.colecoes.excluir.useMutation({onSuccess:()=>u.colecoes.listar.invalidate()}),[h,m]=D.useState(""),[v,y]=D.useState("");return c.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Coleções"}),c.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.'}),c.jsx("div",{className:"space-y-2",children:n?.map(g=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("input",{defaultValue:g.nome,className:"flex-1 rounded px-3 py-1.5 text-sm",style:xe,onBlur:O=>o.mutate({id:g.id,nome:O.target.value})}),c.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>f.mutate({id:g.id}),children:"remover"})]},g.id))}),c.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[c.jsx("input",{placeholder:"nova coleção (ex: Heróis da Fé)",value:h,onChange:g=>m(g.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:xe}),c.jsx("input",{placeholder:"descrição curta (opcional)",value:v,onChange:g=>y(g.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:xe}),c.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:()=>{h&&(s.mutate({nome:h,descricao:v||void 0}),m(""),y(""))},children:"+ adicionar"})]})]})}function u2(){const{data:n}=L.homeCms.config.obter.useQuery(),u=L.useUtils(),s=L.homeCms.config.atualizar.useMutation({onSuccess:()=>u.homeCms.config.obter.invalidate()});if(!n)return null;function o(f,h,m="texto"){const v=m==="textarea"?"textarea":"input";return c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[h,c.jsx(v,{className:"w-full rounded px-3 py-2 mt-1",style:xe,defaultValue:n[f]??"",onBlur:y=>s.mutate({[f]:y.target.value})})]})}return c.jsxs("div",{className:"mt-8 space-y-6",children:[c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Hero"}),o("heroTitulo","título (linha 1)"),o("heroTituloDestaque","título em destaque (linha 2, dourada)"),o("heroSubtitulo","subtítulo","textarea"),o("heroFundoUrl","URL da imagem de fundo"),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["intensidade do overlay escuro (0-100)",c.jsx("input",{type:"number",min:0,max:100,className:"w-full rounded px-3 py-2 mt-1",style:xe,defaultValue:n.heroOverlayIntensidade,onBlur:f=>s.mutate({heroOverlayIntensidade:Number(f.target.value)})})]}),c.jsxs("label",{className:"flex items-center gap-2 text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("input",{type:"checkbox",defaultChecked:n.heroBuscaAtiva,onChange:f=>s.mutate({heroBuscaAtiva:f.target.checked})}),"mostrar busca no hero"]}),o("heroBuscaPlaceholder","texto de exemplo da busca"),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["critério dos destaques do hero",c.jsxs("select",{className:"w-full rounded px-3 py-2 mt-1",style:xe,defaultValue:n.destaquesCriterio,onChange:f=>s.mutate({destaquesCriterio:f.target.value}),children:[c.jsx("option",{value:"manual",style:{color:"#000"},children:"manual (livros marcados como destaque)"}),c.jsx("option",{value:"recentes",style:{color:"#000"},children:"sempre os mais recentes"}),c.jsx("option",{value:"aleatorio",style:{color:"#000"},children:"aleatório"})]})]})]}),c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Todos os livros"}),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["ordenação",c.jsxs("select",{className:"w-full rounded px-3 py-2 mt-1",style:xe,defaultValue:n.todosLivrosOrdenacao,onChange:f=>s.mutate({todosLivrosOrdenacao:f.target.value}),children:[c.jsx("option",{value:"recentes",style:{color:"#000"},children:"mais recentes primeiro"}),c.jsx("option",{value:"aleatorio",style:{color:"#000"},children:"aleatório"}),c.jsx("option",{value:"titulo",style:{color:"#000"},children:"ordem alfabética"})]})]})]}),c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Rodapé"}),o("footerDescricao","descrição","textarea"),o("footerCopyright","linha de copyright (deixe em branco pro padrão)")]}),c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"SEO"}),o("seoTitulo","título da página"),o("seoDescricao","meta descrição","textarea"),o("seoOgImagemUrl","imagem de compartilhamento (og:image)"),o("seoKeywords","palavras-chave"),o("seoCanonical","URL canônica")]}),c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Aparência"}),c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"conjunto curado de cores — não é cor-por-elemento, de propósito, pra manter consistência visual."}),c.jsxs("div",{className:"flex gap-3",children:[c.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["cor primária (dourado)",c.jsx("input",{type:"color",className:"w-full h-10 rounded mt-1",defaultValue:n.corPrimaria,onBlur:f=>s.mutate({corPrimaria:f.target.value})})]}),c.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["cor de fundo",c.jsx("input",{type:"color",className:"w-full h-10 rounded mt-1",defaultValue:n.corFundo,onBlur:f=>s.mutate({corFundo:f.target.value})})]})]})]})]})}function i2(){const{data:n}=L.homeCms.heroCards.listarTodos.useQuery(),u=L.useUtils(),s=L.homeCms.heroCards.criar.useMutation({onSuccess:()=>u.homeCms.heroCards.listarTodos.invalidate()}),o=L.homeCms.heroCards.atualizar.useMutation({onSuccess:()=>u.homeCms.heroCards.listarTodos.invalidate()}),f=L.homeCms.heroCards.excluir.useMutation({onSuccess:()=>u.homeCms.heroCards.listarTodos.invalidate()}),[h,m]=D.useState(""),[v,y]=D.useState(""),[g,O]=D.useState("");return c.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Cards do Hero"}),c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Se nenhum card estiver cadastrado aqui, o hero mostra os destaques automáticos. Cadastrando aqui, estes têm prioridade."}),c.jsx("div",{className:"space-y-2",children:n?.map(x=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("input",{defaultValue:x.titulo,className:"flex-1 rounded px-2 py-1.5 text-sm",style:xe,onBlur:C=>o.mutate({id:x.id,titulo:C.target.value})}),c.jsx("input",{defaultValue:x.imagemUrl??"",placeholder:"imagem",className:"flex-1 rounded px-2 py-1.5 text-sm",style:xe,onBlur:C=>o.mutate({id:x.id,imagemUrl:C.target.value})}),c.jsx("input",{defaultValue:x.linkUrl??"",placeholder:"link",className:"flex-1 rounded px-2 py-1.5 text-sm",style:xe,onBlur:C=>o.mutate({id:x.id,linkUrl:C.target.value})}),c.jsxs("label",{className:"flex items-center gap-1 text-xs flex-shrink-0",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("input",{type:"checkbox",defaultChecked:x.ativo,onChange:C=>o.mutate({id:x.id,ativo:C.target.checked})})," ativo"]}),c.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>f.mutate({id:x.id}),children:"remover"})]},x.id))}),c.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[c.jsx("input",{placeholder:"título",value:h,onChange:x=>m(x.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:xe}),c.jsx("input",{placeholder:"imagem (opcional)",value:v,onChange:x=>y(x.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:xe}),c.jsx("input",{placeholder:"link",value:g,onChange:x=>O(x.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:xe}),c.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:()=>{h&&(s.mutate({titulo:h,imagemUrl:v||void 0,linkUrl:g||void 0}),m(""),y(""),O(""))},children:"+ adicionar"})]})]})}function s2(){const{data:n}=L.homeCms.banners.listarTodos.useQuery(),u=L.useUtils(),s=L.homeCms.banners.criar.useMutation({onSuccess:()=>u.homeCms.banners.listarTodos.invalidate()}),o=L.homeCms.banners.atualizar.useMutation({onSuccess:()=>u.homeCms.banners.listarTodos.invalidate()}),f=L.homeCms.banners.excluir.useMutation({onSuccess:()=>u.homeCms.banners.listarTodos.invalidate()}),[h,m]=D.useState(""),[v,y]=D.useState("");return c.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Banners (cross-divulgação do ecossistema)"}),c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Independente do hero — pode ter período de exibição (ex: só durante um congresso). Deixe as datas em branco pra sempre visível."}),c.jsx("div",{className:"space-y-2",children:n?.map(g=>c.jsxs("div",{className:"rounded p-3 space-y-2",style:{border:"var(--border-thin)"},children:[c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{defaultValue:g.titulo,className:"flex-1 rounded px-2 py-1.5 text-sm",style:xe,onBlur:O=>o.mutate({id:g.id,titulo:O.target.value})}),c.jsx("input",{defaultValue:g.linkUrl,placeholder:"link",className:"flex-1 rounded px-2 py-1.5 text-sm",style:xe,onBlur:O=>o.mutate({id:g.id,linkUrl:O.target.value})})]}),c.jsxs("div",{className:"flex gap-2 items-center",children:[c.jsxs("label",{className:"text-xs flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["início",c.jsx("input",{type:"date",defaultValue:g.dataInicio?.toString().slice(0,10)??"",className:"w-full rounded px-2 py-1 text-sm mt-0.5",style:xe,onChange:O=>o.mutate({id:g.id,dataInicio:O.target.value})})]}),c.jsxs("label",{className:"text-xs flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["fim",c.jsx("input",{type:"date",defaultValue:g.dataFim?.toString().slice(0,10)??"",className:"w-full rounded px-2 py-1 text-sm mt-0.5",style:xe,onChange:O=>o.mutate({id:g.id,dataFim:O.target.value})})]}),c.jsxs("label",{className:"flex items-center gap-1 text-xs flex-shrink-0 mt-3",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("input",{type:"checkbox",defaultChecked:g.ativo,onChange:O=>o.mutate({id:g.id,ativo:O.target.checked})})," ativo"]}),c.jsx("button",{className:"text-xs flex-shrink-0 mt-3",style:{color:"#ff8080"},onClick:()=>f.mutate({id:g.id}),children:"remover"})]})]},g.id))}),c.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[c.jsx("input",{placeholder:"título (ex: Ouça no SpotOnFide)",value:h,onChange:g=>m(g.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:xe}),c.jsx("input",{placeholder:"link (ex: https://spot.onfide.com.br)",value:v,onChange:g=>y(g.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:xe}),c.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:()=>{!h||!v||(s.mutate({titulo:h,linkUrl:v}),m(""),y(""))},children:"+ adicionar"})]})]})}function o2(){const n=L.useUtils(),{data:u}=L.homeCms.comoFunciona.listar.useQuery(),s=L.homeCms.comoFunciona.criar.useMutation({onSuccess:()=>n.homeCms.comoFunciona.listar.invalidate()}),o=L.homeCms.comoFunciona.atualizar.useMutation({onSuccess:()=>n.homeCms.comoFunciona.listar.invalidate()}),f=L.homeCms.comoFunciona.excluir.useMutation({onSuccess:()=>n.homeCms.comoFunciona.listar.invalidate()}),{data:h}=L.homeCms.acervoItens.listarTodos.useQuery(),m=L.homeCms.acervoItens.criar.useMutation({onSuccess:()=>n.homeCms.acervoItens.listarTodos.invalidate()}),v=L.homeCms.acervoItens.atualizar.useMutation({onSuccess:()=>n.homeCms.acervoItens.listarTodos.invalidate()}),y=L.homeCms.acervoItens.excluir.useMutation({onSuccess:()=>n.homeCms.acervoItens.listarTodos.invalidate()}),{data:g}=L.homeCms.publicoItens.listarTodos.useQuery(),O=L.homeCms.publicoItens.criar.useMutation({onSuccess:()=>n.homeCms.publicoItens.listarTodos.invalidate()}),x=L.homeCms.publicoItens.atualizar.useMutation({onSuccess:()=>n.homeCms.publicoItens.listarTodos.invalidate()}),C=L.homeCms.publicoItens.excluir.useMutation({onSuccess:()=>n.homeCms.publicoItens.listarTodos.invalidate()}),{data:q}=L.homeCms.beneficios.listarTodos.useQuery(),G=L.homeCms.beneficios.criar.useMutation({onSuccess:()=>n.homeCms.beneficios.listarTodos.invalidate()}),_=L.homeCms.beneficios.atualizar.useMutation({onSuccess:()=>n.homeCms.beneficios.listarTodos.invalidate()}),F=L.homeCms.beneficios.excluir.useMutation({onSuccess:()=>n.homeCms.beneficios.listarTodos.invalidate()}),{data:ne}=L.homeCms.faqItens.listarTodos.useQuery(),fe=L.homeCms.faqItens.criar.useMutation({onSuccess:()=>n.homeCms.faqItens.listarTodos.invalidate()}),se=L.homeCms.faqItens.atualizar.useMutation({onSuccess:()=>n.homeCms.faqItens.listarTodos.invalidate()}),be=L.homeCms.faqItens.excluir.useMutation({onSuccess:()=>n.homeCms.faqItens.listarTodos.invalidate()});return c.jsxs(c.Fragment,{children:[c.jsx(pr,{titulo:"Como Funciona",descricao:"ícone = nome de um ícone do lucide-react (ex: Search, BookOpen, Bookmark)",temAtivo:!1,campos:[{chave:"icone",rotulo:"ícone"},{chave:"numero",rotulo:"número"},{chave:"titulo",rotulo:"título"},{chave:"descricao",rotulo:"descrição",tipo:"textarea"}],itens:u,aoCriar:X=>s.mutate(X),aoAtualizar:(X,V)=>o.mutate({id:X,...V}),aoExcluir:X=>f.mutate({id:X})}),c.jsx(pr,{titulo:"O Acervo (formatos)",campos:[{chave:"icone",rotulo:"ícone"},{chave:"nome",rotulo:"nome"},{chave:"descricao",rotulo:"descrição",tipo:"textarea"},{chave:"linkUrl",rotulo:"link"}],itens:h,aoCriar:X=>m.mutate(X),aoAtualizar:(X,V)=>v.mutate({id:X,...V}),aoExcluir:X=>y.mutate({id:X})}),c.jsx(pr,{titulo:"Leitura pra Toda a Família (público)",campos:[{chave:"icone",rotulo:"ícone"},{chave:"nome",rotulo:"nome"},{chave:"faixaEtaria",rotulo:"faixa etária"},{chave:"linkUrl",rotulo:"link"}],itens:g,aoCriar:X=>O.mutate(X),aoAtualizar:(X,V)=>x.mutate({id:X,...V}),aoExcluir:X=>C.mutate({id:X})}),c.jsx(pr,{titulo:"Por Que Ler (experiência)",campos:[{chave:"icone",rotulo:"ícone"},{chave:"texto",rotulo:"texto"}],itens:q,aoCriar:X=>G.mutate(X),aoAtualizar:(X,V)=>_.mutate({id:X,...V}),aoExcluir:X=>F.mutate({id:X})}),c.jsx(pr,{titulo:"Perguntas Frequentes",campos:[{chave:"pergunta",rotulo:"pergunta"},{chave:"resposta",rotulo:"resposta",tipo:"textarea"}],itens:ne,aoCriar:X=>fe.mutate(X),aoAtualizar:(X,V)=>se.mutate({id:X,...V}),aoExcluir:X=>be.mutate({id:X})})]})}function c2(){const{usuario:n,isLoading:u,podePublicar:s,logout:o}=mn(),[f,h]=D.useState(null);return u?null:n?s?c.jsx("div",{className:"min-h-dvh",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:c.jsxs("div",{className:"max-w-2xl mx-auto p-6",children:[c.jsxs("div",{className:"flex justify-between items-center mb-6",children:[c.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-7"}),c.jsx("button",{style:{color:"var(--color-text-on-dark-muted)"},className:"text-sm",onClick:()=>o.mutate(),children:"sair"})]}),c.jsx(t2,{livroExistente:f,aoTerminar:()=>h(null)},f?.id??"novo"),c.jsx(a2,{aoEditar:h}),c.jsx(l2,{}),c.jsx(r2,{}),c.jsx(n2,{}),c.jsx("h2",{className:"mt-10 mb-2 text-lg",style:{fontFamily:"var(--font-display)"},children:"CMS da Home"}),c.jsx(u2,{}),c.jsx(i2,{}),c.jsx(s2,{}),c.jsx(o2,{})]})}):c.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 f2="/media/images/capas/capa-placeholder.svg";function d2(){const{id:n}=ui(),u=Number(n),{data:s,isLoading:o}=L.biblioteca.getLivro.useQuery({id:u}),{data:f}=L.auth.me.useQuery(),{data:h}=L.biblioteca.favoritos.status.useQuery({livroId:u},{enabled:!!f&&!Number.isNaN(u)}),m=L.useUtils(),v=L.biblioteca.favoritos.alternar.useMutation({onSuccess:()=>m.biblioteca.favoritos.status.invalidate({livroId:u})});return o?c.jsx("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)",display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."})}):s?c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Zt,{}),c.jsxs("div",{className:"max-w-4xl mx-auto px-5 pt-10 pb-16 flex-1 w-full flex flex-col md:flex-row items-center md:items-start gap-8 md:gap-10 text-center md:text-left",children:[c.jsxs("div",{className:"relative flex-shrink-0",children:[c.jsx("img",{src:s.capaUrl||f2,alt:s.titulo,style:{width:220,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-lg)",boxShadow:"var(--shadow-dourado-md)"}}),f&&c.jsx("button",{"aria-label":"favoritar",onClick:()=>v.mutate({livroId:u}),className:"absolute -top-2 -right-2 w-10 h-10 rounded-full flex items-center justify-center",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)",color:h?.favorito?"var(--clr-dourado-400)":"var(--color-text-on-dark-subtle)"},children:h?.favorito?"★":"☆"})]}),c.jsxs("div",{className:"flex flex-col items-center md:items-start max-w-lg",children:[c.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.75rem",fontWeight:600,color:"var(--clr-off-white)",marginBottom:"0.4rem"},children:s.titulo}),s.subtitulo&&c.jsx("p",{style:{fontSize:"1rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.6rem"},children:s.subtitulo}),c.jsx("p",{style:{fontSize:"0.9rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.3rem"},children:s.autor}),s.serie&&c.jsxs("a",{href:`/serie/${encodeURIComponent(s.serie)}`,className:"inline-block transition-opacity hover:opacity-80",style:{marginTop:"0.4rem",marginBottom:"1.25rem",fontSize:"0.75rem",padding:"0.35rem 0.9rem",borderRadius:"var(--radius-full)",border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:[s.serie,s.volumeNumero?` · volume ${s.volumeNumero}`:""]}),s.resumo&&c.jsx("p",{style:{fontSize:"0.95rem",lineHeight:"var(--leading-relaxed)",color:"rgba(245,230,200,0.8)",marginBottom:"1.75rem"},children:s.resumo}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 w-full sm:w-auto",children:[s.epubUrl?c.jsx("a",{href:`/leitor/${s.id}`,className:"btn btn-primary text-center",style:{padding:"0.75rem 2.5rem"},children:"ler agora"}):c.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."}),c.jsx("button",{disabled:!0,title:"em breve",className:"text-center cursor-not-allowed",style:{padding:"0.75rem 2rem",borderRadius:"var(--radius-full)",border:"1px solid var(--clr-dourado-alpha25)",color:"rgba(245,230,200,0.35)",fontSize:"0.9rem"},children:"baixar PDF · em breve"})]})]})]}),c.jsx(Jt,{})]}):c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Zt,{}),c.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[c.jsx("p",{style:{fontSize:"0.9rem",color:"var(--color-text-on-dark-muted)"},children:"livro não encontrado."}),c.jsx("a",{href:"/",className:"btn btn-ghost",style:{padding:"0.5rem 1.25rem"},children:"voltar pra Home"})]}),c.jsx(Jt,{})]})}function h2(){const u=new URLSearchParams(_v()).get("q")||"",[s]=D.useState(u),{data:o,isLoading:f}=L.biblioteca.buscar.useQuery({q:s},{enabled:s.length>0});return c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Zt,{buscaInicial:s}),c.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[s.length===0&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"digite algo pra buscar."}),f&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"buscando..."}),s.length>0&&!f&&o&&o.length===0&&c.jsxs("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:['nada encontrado pra "',s,'".']}),o&&o.length>0&&c.jsx(hn,{livros:o,titulo:`resultados pra "${s}"`})]}),c.jsx(Jt,{})]})}function m2(){const{nome:n}=ui(),u=decodeURIComponent(n),{data:s,isLoading:o}=L.biblioteca.getSerie.useQuery({nome:u});return c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Zt,{}),c.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[c.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",color:"var(--clr-branco)",marginBottom:"1.5rem"},children:u}),o&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),s&&s.length>0?c.jsx(hn,{livros:s,titulo:`${s.length} livro${s.length>1?"s":""} nesta série`}):!o&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nenhum livro publicado nesta série ainda."})]}),c.jsx(Jt,{})]})}const Zm={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function v2(){const{usuario:n,isLoading:u,login:s}=mn(),[o,f]=D.useState(""),[h,m]=D.useState("");return u?null:n?(window.location.href="/minha-biblioteca",null):c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Zt,{}),c.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:c.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[c.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Entrar"}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:Zm,placeholder:"e-mail",value:o,onChange:v=>f(v.target.value)}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:Zm,placeholder:"senha",type:"password",value:h,onChange:v=>m(v.target.value)}),c.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({email:o,senha:h}),disabled:s.isPending,children:s.isPending?"entrando...":"entrar"}),s.isError&&c.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:s.error.message}),c.jsxs("p",{className:"text-sm text-center pt-2",style:{color:"var(--color-text-on-dark-muted)"},children:["ainda não tem conta? ",c.jsx("a",{href:"/cadastro",style:{color:"var(--clr-dourado-400)"},children:"criar conta"})]})]})}),c.jsx(Jt,{})]})}const Lo={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function y2(){const{usuario:n,isLoading:u,registrar:s}=mn(),[o,f]=D.useState(""),[h,m]=D.useState(""),[v,y]=D.useState("");return u?null:n?(window.location.href="/minha-biblioteca",null):c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Zt,{}),c.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:c.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[c.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Criar conta"}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:Lo,placeholder:"nome",value:o,onChange:g=>f(g.target.value)}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:Lo,placeholder:"e-mail",value:h,onChange:g=>m(g.target.value)}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:Lo,placeholder:"senha (mínimo 8 caracteres)",type:"password",value:v,onChange:g=>y(g.target.value)}),c.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({nome:o,email:h,senha:v}),disabled:s.isPending||!o||!h||v.length<8,children:s.isPending?"criando...":"criar conta"}),s.isError&&c.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:s.error.message}),c.jsxs("p",{className:"text-sm text-center pt-2",style:{color:"var(--color-text-on-dark-muted)"},children:["já tem conta? ",c.jsx("a",{href:"/entrar",style:{color:"var(--clr-dourado-400)"},children:"entrar"})]})]})}),c.jsx(Jt,{})]})}const $u={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function p2(){const{usuario:n,isLoading:u,logout:s}=mn(),o=L.useUtils(),f=L.auth.atualizarPerfil.useMutation({onSuccess:()=>o.auth.me.invalidate()}),h=L.auth.trocarSenha.useMutation(),[m,v]=D.useState(n?.nome??""),[y,g]=D.useState(""),[O,x]=D.useState(""),[C,q]=D.useState(null);if(u)return null;if(!n)return window.location.href="/entrar",null;function G(){q(null),h.mutate({senhaAtual:y,senhaNova:O},{onSuccess:()=>{q("Senha atualizada."),g(""),x("")},onError:_=>q(_.message)})}return c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Zt,{}),c.jsxs("div",{className:"max-w-md mx-auto px-5 pt-10 pb-16 flex-1 w-full space-y-8",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-lg font-medium mb-4",style:{fontFamily:"var(--font-display)"},children:"Meu perfil"}),c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["nome",c.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:$u,value:m,onChange:_=>v(_.target.value)})]}),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["e-mail",c.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:{...$u,opacity:.6},value:n.email,disabled:!0})]}),c.jsx("button",{className:"btn btn-primary",onClick:()=>f.mutate({nome:m}),disabled:f.isPending||!m,children:f.isPending?"salvando...":"salvar nome"}),f.isSuccess&&c.jsx("p",{className:"text-sm",style:{color:"var(--clr-dourado-400)"},children:"Nome atualizado."})]})]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-lg font-medium mb-4",style:{fontFamily:"var(--font-display)"},children:"Trocar senha"}),c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("input",{className:"w-full rounded px-3 py-2",style:$u,placeholder:"senha atual",type:"password",value:y,onChange:_=>g(_.target.value)}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:$u,placeholder:"nova senha (mínimo 8 caracteres)",type:"password",value:O,onChange:_=>x(_.target.value)}),c.jsx("button",{className:"btn btn-primary",onClick:G,disabled:h.isPending||!y||O.length<8,children:h.isPending?"salvando...":"trocar senha"}),C&&c.jsx("p",{className:"text-sm",style:{color:C==="Senha atualizada."?"var(--clr-dourado-400)":"#ff8080"},children:C})]})]}),c.jsx("button",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},onClick:()=>s.mutate(),children:"sair da conta"})]}),c.jsx(Jt,{})]})}function g2(){const{usuario:n,isLoading:u}=mn(),{data:s}=L.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!n}),{data:o}=L.biblioteca.favoritos.meus.useQuery(void 0,{enabled:!!n});return u?null:n?c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Zt,{}),c.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-10 pb-16 flex-1 w-full",children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsxs("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl",children:["Olá, ",n.nome.split(" ")[0]]}),c.jsx("a",{href:"/perfil",className:"btn btn-ghost text-sm",style:{padding:"0.5rem 1rem"},children:"meu perfil"})]}),s&&s.length>0&&c.jsxs("section",{className:"mb-14",children:[c.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"}),c.jsx("div",{className:"flex gap-4 overflow-x-auto pb-2",children:s.map(f=>c.jsxs("a",{href:`/leitor/${f.livroId}`,className:"group block flex-shrink-0 w-28",children:[c.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 group-hover:-translate-y-1 group-hover:shadow-2xl",children:c.jsx("img",{src:f.capaUrl||"/media/images/capas/capa-placeholder.svg",alt:f.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),c.jsx("p",{className:"text-xs mt-2 line-clamp-2",style:{color:"var(--clr-branco)"},children:f.titulo})]},f.livroId))})]}),o&&o.length>0?c.jsx(hn,{livros:o.map(f=>({id:f.livroId,titulo:f.titulo,autor:f.autor,capaUrl:f.capaUrl})),titulo:"meus favoritos"}):!s?.length&&c.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:[c.jsx("p",{className:"text-lg mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:"Sua estante está vazia por enquanto"}),c.jsx("p",{className:"text-sm mb-4",children:"Favorite um livro ou comece a ler algo pra ele aparecer aqui."}),c.jsx("a",{href:"/",className:"btn btn-primary",style:{padding:"0.6rem 1.5rem"},children:"explorar o catálogo"})]})]}),c.jsx(Jt,{})]}):(window.location.href="/entrar",null)}const x2={texto:"Livros",ilustrado:"Livros ilustrados",manga:"Mangás",hq:"HQs e graphic novels",revista:"Revistas",apostila:"Apostilas",audiolivro:"Áudiolivros"},b2={primeiros_leitores:"Primeiros leitores",infantil:"Infantil",pre_adolescente:"Pré-adolescentes",adolescente:"Adolescentes",jovem:"Jovens",adulto:"Adultos"};function S2(){const n=new URLSearchParams(_v()),u=n.get("formato")??void 0,s=n.get("publico")??void 0,{data:o,isLoading:f}=L.biblioteca.filtrar.useQuery({formato:u,publicoAlvo:s,limite:40}),h=u?x2[u]??u:s?b2[s]??s:"Explorar";return c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Zt,{}),c.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[c.jsx("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl mb-6",children:h}),f&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),o&&o.length>0?c.jsx(hn,{livros:o,titulo:`${o.length} título${o.length>1?"s":""}`}):!f&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nada por aqui ainda."})]}),c.jsx(Jt,{})]})}function j2(){const{id:n}=ui(),{data:u,isLoading:s}=L.colecoes.obter.useQuery({id:Number(n)});return c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Zt,{}),c.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[s&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),u&&c.jsxs(c.Fragment,{children:[c.jsx("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl mb-2",children:u.nome}),u.descricao&&c.jsx("p",{className:"mb-6 max-w-2xl",style:{color:"var(--color-text-on-dark-muted)",lineHeight:"var(--leading-relaxed)"},children:u.descricao}),u.livros.length>0?c.jsx(hn,{livros:u.livros,titulo:`${u.livros.length} título${u.livros.length>1?"s":""} nesta coleção`}):c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"Comece por qualquer volume e continue descobrindo — em breve os primeiros títulos chegam aqui."})]}),!s&&!u&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"coleção não encontrada."})]}),c.jsx(Jt,{})]})}const O2=D.lazy(()=>E0(()=>import("./Leitor-BiS1rStu.js"),[]).then(n=>({default:n.Leitor})));function _2(){const[n]=D.useState(()=>new X0);return c.jsx(L.Provider,{client:I1,queryClient:n,children:c.jsx($0,{client:n,children:c.jsx(D.Suspense,{fallback:null,children:c.jsxs(Ag,{children:[c.jsx(Gt,{path:"/admin",component:c2}),c.jsx(Gt,{path:"/leitor/:id",component:O2}),c.jsx(Gt,{path:"/livro/:id",component:d2}),c.jsx(Gt,{path:"/serie/:nome",component:m2}),c.jsx(Gt,{path:"/buscar",component:h2}),c.jsx(Gt,{path:"/entrar",component:v2}),c.jsx(Gt,{path:"/cadastro",component:y2}),c.jsx(Gt,{path:"/perfil",component:p2}),c.jsx(Gt,{path:"/minha-biblioteca",component:g2}),c.jsx(Gt,{path:"/explorar",component:S2}),c.jsx(Gt,{path:"/colecao/:id",component:j2}),c.jsx(Gt,{path:"/",component:$b})]})})})})}_0.createRoot(document.getElementById("root")).render(c.jsx(D.StrictMode,{children:c.jsx(_2,{})}));export{_v as a,N2 as c,h0 as g,c as j,D as r,L as t,ui as u};
