(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&r(p)}).observe(document,{childList:!0,subtree:!0});function o(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(d){if(d.ep)return;d.ep=!0;const m=o(d);fetch(d.href,m)}})();function dh(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var oo={exports:{}},ei={};/**
 * @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 Ym;function zy(){if(Ym)return ei;Ym=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function o(r,d,m){var p=null;if(m!==void 0&&(p=""+m),d.key!==void 0&&(p=""+d.key),"key"in d){m={};for(var v in d)v!=="key"&&(m[v]=d[v])}else m=d;return d=m.ref,{$$typeof:i,type:r,key:p,ref:d!==void 0?d:null,props:m}}return ei.Fragment=u,ei.jsx=o,ei.jsxs=o,ei}var Gm;function My(){return Gm||(Gm=1,oo.exports=zy()),oo.exports}var f=My(),co={exports:{}},ti={},fo={exports:{}},mo={};/**
 * @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 Xm;function Oy(){return Xm||(Xm=1,(function(i){function u(R,$){var ae=R.length;R.push($);e:for(;0<ae;){var ie=ae-1>>>1,ce=R[ie];if(0<d(ce,$))R[ie]=$,R[ae]=ce,ae=ie;else break e}}function o(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var $=R[0],ae=R.pop();if(ae!==$){R[0]=ae;e:for(var ie=0,ce=R.length,_=ce>>>1;ie<_;){var L=2*(ie+1)-1,J=R[L],I=L+1,fe=R[I];if(0>d(J,ae))I<ce&&0>d(fe,J)?(R[ie]=fe,R[I]=ae,ie=I):(R[ie]=J,R[L]=ae,ie=L);else if(I<ce&&0>d(fe,ae))R[ie]=fe,R[I]=ae,ie=I;else break e}}return $}function d(R,$){var ae=R.sortIndex-$.sortIndex;return ae!==0?ae:R.id-$.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var p=Date,v=p.now();i.unstable_now=function(){return p.now()-v}}var g=[],y=[],E=1,b=null,j=3,z=!1,q=!1,D=!1,X=!1,B=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function U(R){for(var $=o(y);$!==null;){if($.callback===null)r(y);else if($.startTime<=R)r(y),$.sortIndex=$.expirationTime,u(g,$);else break;$=o(y)}}function Z(R){if(D=!1,U(R),!q)if(o(g)!==null)q=!0,K||(K=!0,ue());else{var $=o(y);$!==null&&Me(Z,$.startTime-R)}}var K=!1,Y=-1,F=5,te=-1;function V(){return X?!0:!(i.unstable_now()-te<F)}function ee(){if(X=!1,K){var R=i.unstable_now();te=R;var $=!0;try{e:{q=!1,D&&(D=!1,k(Y),Y=-1),z=!0;var ae=j;try{t:{for(U(R),b=o(g);b!==null&&!(b.expirationTime>R&&V());){var ie=b.callback;if(typeof ie=="function"){b.callback=null,j=b.priorityLevel;var ce=ie(b.expirationTime<=R);if(R=i.unstable_now(),typeof ce=="function"){b.callback=ce,U(R),$=!0;break t}b===o(g)&&r(g),U(R)}else r(g);b=o(g)}if(b!==null)$=!0;else{var _=o(y);_!==null&&Me(Z,_.startTime-R),$=!1}}break e}finally{b=null,j=ae,z=!1}$=void 0}}finally{$?ue():K=!1}}}var ue;if(typeof M=="function")ue=function(){M(ee)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,_e=Oe.port2;Oe.port1.onmessage=ee,ue=function(){_e.postMessage(null)}}else ue=function(){B(ee,0)};function Me(R,$){Y=B(function(){R(i.unstable_now())},$)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(R){R.callback=null},i.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<R?Math.floor(1e3/R):5},i.unstable_getCurrentPriorityLevel=function(){return j},i.unstable_next=function(R){switch(j){case 1:case 2:case 3:var $=3;break;default:$=j}var ae=j;j=$;try{return R()}finally{j=ae}},i.unstable_requestPaint=function(){X=!0},i.unstable_runWithPriority=function(R,$){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var ae=j;j=R;try{return $()}finally{j=ae}},i.unstable_scheduleCallback=function(R,$,ae){var ie=i.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?ie+ae:ie):ae=ie,R){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=ae+ce,R={id:E++,callback:$,priorityLevel:R,startTime:ae,expirationTime:ce,sortIndex:-1},ae>ie?(R.sortIndex=ae,u(y,R),o(g)===null&&R===o(y)&&(D?(k(Y),Y=-1):D=!0,Me(Z,ae-ie))):(R.sortIndex=ce,u(g,R),q||z||(q=!0,K||(K=!0,ue()))),R},i.unstable_shouldYield=V,i.unstable_wrapCallback=function(R){var $=j;return function(){var ae=j;j=$;try{return R.apply(this,arguments)}finally{j=ae}}}})(mo)),mo}var Qm;function Ry(){return Qm||(Qm=1,fo.exports=Oy()),fo.exports}var ho={exports:{}},re={};/**
 * @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 Vm;function Dy(){if(Vm)return re;Vm=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),j=Symbol.iterator;function z(_){return _===null||typeof _!="object"?null:(_=j&&_[j]||_["@@iterator"],typeof _=="function"?_:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,X={};function B(_,L,J){this.props=_,this.context=L,this.refs=X,this.updater=J||q}B.prototype.isReactComponent={},B.prototype.setState=function(_,L){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,L,"setState")},B.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function k(){}k.prototype=B.prototype;function M(_,L,J){this.props=_,this.context=L,this.refs=X,this.updater=J||q}var U=M.prototype=new k;U.constructor=M,D(U,B.prototype),U.isPureReactComponent=!0;var Z=Array.isArray;function K(){}var Y={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function te(_,L,J){var I=J.ref;return{$$typeof:i,type:_,key:L,ref:I!==void 0?I:null,props:J}}function V(_,L){return te(_.type,L,_.props)}function ee(_){return typeof _=="object"&&_!==null&&_.$$typeof===i}function ue(_){var L={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(J){return L[J]})}var Oe=/\/+/g;function _e(_,L){return typeof _=="object"&&_!==null&&_.key!=null?ue(""+_.key):L.toString(36)}function Me(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(K,K):(_.status="pending",_.then(function(L){_.status==="pending"&&(_.status="fulfilled",_.value=L)},function(L){_.status==="pending"&&(_.status="rejected",_.reason=L)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function R(_,L,J,I,fe){var he=typeof _;(he==="undefined"||he==="boolean")&&(_=null);var Te=!1;if(_===null)Te=!0;else switch(he){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(_.$$typeof){case i:case u:Te=!0;break;case E:return Te=_._init,R(Te(_._payload),L,J,I,fe)}}if(Te)return fe=fe(_),Te=I===""?"."+_e(_,0):I,Z(fe)?(J="",Te!=null&&(J=Te.replace(Oe,"$&/")+"/"),R(fe,L,J,"",function(un){return un})):fe!=null&&(ee(fe)&&(fe=V(fe,J+(fe.key==null||_&&_.key===fe.key?"":(""+fe.key).replace(Oe,"$&/")+"/")+Te)),L.push(fe)),1;Te=0;var lt=I===""?".":I+":";if(Z(_))for(var qe=0;qe<_.length;qe++)I=_[qe],he=lt+_e(I,qe),Te+=R(I,L,J,he,fe);else if(qe=z(_),typeof qe=="function")for(_=qe.call(_),qe=0;!(I=_.next()).done;)I=I.value,he=lt+_e(I,qe++),Te+=R(I,L,J,he,fe);else if(he==="object"){if(typeof _.then=="function")return R(Me(_),L,J,I,fe);throw L=String(_),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return Te}function $(_,L,J){if(_==null)return _;var I=[],fe=0;return R(_,I,"","",function(he){return L.call(J,he,fe++)}),I}function ae(_){if(_._status===-1){var L=_._result;L=L(),L.then(function(J){(_._status===0||_._status===-1)&&(_._status=1,_._result=J)},function(J){(_._status===0||_._status===-1)&&(_._status=2,_._result=J)}),_._status===-1&&(_._status=0,_._result=L)}if(_._status===1)return _._result.default;throw _._result}var ie=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},ce={map:$,forEach:function(_,L,J){$(_,function(){L.apply(this,arguments)},J)},count:function(_){var L=0;return $(_,function(){L++}),L},toArray:function(_){return $(_,function(L){return L})||[]},only:function(_){if(!ee(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return re.Activity=b,re.Children=ce,re.Component=B,re.Fragment=o,re.Profiler=d,re.PureComponent=M,re.StrictMode=r,re.Suspense=g,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,re.__COMPILER_RUNTIME={__proto__:null,c:function(_){return Y.H.useMemoCache(_)}},re.cache=function(_){return function(){return _.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(_,L,J){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var I=D({},_.props),fe=_.key;if(L!=null)for(he in L.key!==void 0&&(fe=""+L.key),L)!F.call(L,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&L.ref===void 0||(I[he]=L[he]);var he=arguments.length-2;if(he===1)I.children=J;else if(1<he){for(var Te=Array(he),lt=0;lt<he;lt++)Te[lt]=arguments[lt+2];I.children=Te}return te(_.type,fe,I)},re.createContext=function(_){return _={$$typeof:p,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:m,_context:_},_},re.createElement=function(_,L,J){var I,fe={},he=null;if(L!=null)for(I in L.key!==void 0&&(he=""+L.key),L)F.call(L,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(fe[I]=L[I]);var Te=arguments.length-2;if(Te===1)fe.children=J;else if(1<Te){for(var lt=Array(Te),qe=0;qe<Te;qe++)lt[qe]=arguments[qe+2];fe.children=lt}if(_&&_.defaultProps)for(I in Te=_.defaultProps,Te)fe[I]===void 0&&(fe[I]=Te[I]);return te(_,he,fe)},re.createRef=function(){return{current:null}},re.forwardRef=function(_){return{$$typeof:v,render:_}},re.isValidElement=ee,re.lazy=function(_){return{$$typeof:E,_payload:{_status:-1,_result:_},_init:ae}},re.memo=function(_,L){return{$$typeof:y,type:_,compare:L===void 0?null:L}},re.startTransition=function(_){var L=Y.T,J={};Y.T=J;try{var I=_(),fe=Y.S;fe!==null&&fe(J,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(K,ie)}catch(he){ie(he)}finally{L!==null&&J.types!==null&&(L.types=J.types),Y.T=L}},re.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},re.use=function(_){return Y.H.use(_)},re.useActionState=function(_,L,J){return Y.H.useActionState(_,L,J)},re.useCallback=function(_,L){return Y.H.useCallback(_,L)},re.useContext=function(_){return Y.H.useContext(_)},re.useDebugValue=function(){},re.useDeferredValue=function(_,L){return Y.H.useDeferredValue(_,L)},re.useEffect=function(_,L){return Y.H.useEffect(_,L)},re.useEffectEvent=function(_){return Y.H.useEffectEvent(_)},re.useId=function(){return Y.H.useId()},re.useImperativeHandle=function(_,L,J){return Y.H.useImperativeHandle(_,L,J)},re.useInsertionEffect=function(_,L){return Y.H.useInsertionEffect(_,L)},re.useLayoutEffect=function(_,L){return Y.H.useLayoutEffect(_,L)},re.useMemo=function(_,L){return Y.H.useMemo(_,L)},re.useOptimistic=function(_,L){return Y.H.useOptimistic(_,L)},re.useReducer=function(_,L,J){return Y.H.useReducer(_,L,J)},re.useRef=function(_){return Y.H.useRef(_)},re.useState=function(_){return Y.H.useState(_)},re.useSyncExternalStore=function(_,L,J){return Y.H.useSyncExternalStore(_,L,J)},re.useTransition=function(){return Y.H.useTransition()},re.version="19.2.3",re}var Zm;function Oo(){return Zm||(Zm=1,ho.exports=Dy()),ho.exports}var po={exports:{}},tt={};/**
 * @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 Km;function By(){if(Km)return tt;Km=1;var i=Oo();function u(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)y+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(u(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(g,y,E){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:b==null?null:""+b,children:g,containerInfo:y,implementation:E}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,tt.createPortal=function(g,y){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return m(g,y,null,E)},tt.flushSync=function(g){var y=p.T,E=r.p;try{if(p.T=null,r.p=2,g)return g()}finally{p.T=y,r.p=E,r.d.f()}},tt.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(g,y))},tt.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},tt.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var E=y.as,b=v(E,y.crossOrigin),j=typeof y.integrity=="string"?y.integrity:void 0,z=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;E==="style"?r.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:j,fetchPriority:z}):E==="script"&&r.d.X(g,{crossOrigin:b,integrity:j,fetchPriority:z,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},tt.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var E=v(y.as,y.crossOrigin);r.d.M(g,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(g)},tt.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var E=y.as,b=v(E,y.crossOrigin);r.d.L(g,E,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},tt.preloadModule=function(g,y){if(typeof g=="string")if(y){var E=v(y.as,y.crossOrigin);r.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(g)},tt.requestFormReset=function(g){r.d.r(g)},tt.unstable_batchedUpdates=function(g,y){return g(y)},tt.useFormState=function(g,y,E){return p.H.useFormState(g,y,E)},tt.useFormStatus=function(){return p.H.useHostTransitionStatus()},tt.version="19.2.3",tt}var Jm;function Uy(){if(Jm)return po.exports;Jm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(u){console.error(u)}}return i(),po.exports=By(),po.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 $m;function Ly(){if($m)return ti;$m=1;var i=Ry(),u=Oo(),o=Uy();function r(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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(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 p(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 g(e){if(m(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var s=n.alternate;if(s===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===a)return g(n),e;if(s===l)return g(n),t;s=s.sibling}throw Error(r(188))}if(a.return!==l.return)a=n,l=s;else{for(var c=!1,h=n.child;h;){if(h===a){c=!0,a=n,l=s;break}if(h===l){c=!0,l=n,a=s;break}h=h.sibling}if(!c){for(h=s.child;h;){if(h===a){c=!0,a=s,l=n;break}if(h===l){c=!0,l=s,a=n;break}h=h.sibling}if(!c)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,j=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),M=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var Oe=Symbol.for("react.client.reference");function _e(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case B:return"Profiler";case X:return"StrictMode";case Z:return"Suspense";case K:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case M:return e.displayName||"Context";case k:return(e._context.displayName||"Context")+".Consumer";case U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:_e(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return _e(e(t))}catch{}}return null}var Me=Array.isArray,R=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},ie=[],ce=-1;function _(e){return{current:e}}function L(e){0>ce||(e.current=ie[ce],ie[ce]=null,ce--)}function J(e,t){ce++,ie[ce]=e.current,e.current=t}var I=_(null),fe=_(null),he=_(null),Te=_(null);function lt(e,t){switch(J(he,t),J(fe,e),J(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?cm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=cm(t),e=fm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(I),J(I,e)}function qe(){L(I),L(fe),L(he)}function un(e){e.memoizedState!==null&&J(Te,e);var t=I.current,a=fm(t,e.type);t!==a&&(J(fe,e),J(I,a))}function mi(e){fe.current===e&&(L(I),L(fe)),Te.current===e&&(L(Te),Fn._currentValue=ae)}var Vs,ko;function $a(e){if(Vs===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Vs=t&&t[1]||"",ko=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Vs+e+ko}var Zs=!1;function Ks(e,t){if(!e||Zs)return"";Zs=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(O){var w=O}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(O){w=O}e.call(Q.prototype)}}else{try{throw Error()}catch(O){w=O}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(O){if(O&&w&&typeof O.stack=="string")return[O.stack,w.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),c=s[0],h=s[1];if(c&&h){var S=c.split(`
`),A=h.split(`
`);for(n=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;n<A.length&&!A[n].includes("DetermineComponentFrameRoot");)n++;if(l===S.length||n===A.length)for(l=S.length-1,n=A.length-1;1<=l&&0<=n&&S[l]!==A[n];)n--;for(;1<=l&&0<=n;l--,n--)if(S[l]!==A[n]){if(l!==1||n!==1)do if(l--,n--,0>n||S[l]!==A[n]){var H=`
`+S[l].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=l&&0<=n);break}}}finally{Zs=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?$a(a):""}function u0(e,t){switch(e.tag){case 26:case 27:case 5:return $a(e.type);case 16:return $a("Lazy");case 13:return e.child!==t&&t!==null?$a("Suspense Fallback"):$a("Suspense");case 19:return $a("SuspenseList");case 0:case 15:return Ks(e.type,!1);case 11:return Ks(e.type.render,!1);case 1:return Ks(e.type,!0);case 31:return $a("Activity");default:return""}}function qo(e){try{var t="",a=null;do t+=u0(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var Js=Object.prototype.hasOwnProperty,$s=i.unstable_scheduleCallback,Fs=i.unstable_cancelCallback,r0=i.unstable_shouldYield,o0=i.unstable_requestPaint,mt=i.unstable_now,c0=i.unstable_getCurrentPriorityLevel,Yo=i.unstable_ImmediatePriority,Go=i.unstable_UserBlockingPriority,hi=i.unstable_NormalPriority,f0=i.unstable_LowPriority,Xo=i.unstable_IdlePriority,d0=i.log,m0=i.unstable_setDisableYieldValue,rn=null,ht=null;function xa(e){if(typeof d0=="function"&&m0(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(rn,e)}catch{}}var pt=Math.clz32?Math.clz32:y0,h0=Math.log,p0=Math.LN2;function y0(e){return e>>>=0,e===0?32:31-(h0(e)/p0|0)|0}var pi=256,yi=262144,gi=4194304;function Fa(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 vi(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,s=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var h=l&134217727;return h!==0?(l=h&~s,l!==0?n=Fa(l):(c&=h,c!==0?n=Fa(c):a||(a=h&~e,a!==0&&(n=Fa(a))))):(h=l&~s,h!==0?n=Fa(h):c!==0?n=Fa(c):a||(a=l&~e,a!==0&&(n=Fa(a)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:n}function on(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function g0(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 Qo(){var e=gi;return gi<<=1,(gi&62914560)===0&&(gi=4194304),e}function Ws(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function cn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function v0(e,t,a,l,n,s){var c=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 h=e.entanglements,S=e.expirationTimes,A=e.hiddenUpdates;for(a=c&~a;0<a;){var H=31-pt(a),Q=1<<H;h[H]=0,S[H]=-1;var w=A[H];if(w!==null)for(A[H]=null,H=0;H<w.length;H++){var O=w[H];O!==null&&(O.lane&=-536870913)}a&=~Q}l!==0&&Vo(e,l,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(c&~t))}function Vo(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-pt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Zo(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-pt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function Ko(e,t){var a=t&-t;return a=(a&42)!==0?1:Is(a),(a&(e.suspendedLanes|t))!==0?0:a}function Is(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 Ps(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Jo(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Dm(e.type))}function $o(e,t){var a=$.p;try{return $.p=e,t()}finally{$.p=a}}var ba=Math.random().toString(36).slice(2),Fe="__reactFiber$"+ba,st="__reactProps$"+ba,vl="__reactContainer$"+ba,eu="__reactEvents$"+ba,x0="__reactListeners$"+ba,b0="__reactHandles$"+ba,Fo="__reactResources$"+ba,fn="__reactMarker$"+ba;function tu(e){delete e[Fe],delete e[st],delete e[eu],delete e[x0],delete e[b0]}function xl(e){var t=e[Fe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vl]||a[Fe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=vm(e);e!==null;){if(a=e[Fe])return a;e=vm(e)}return t}e=a,a=e.parentNode}return null}function bl(e){if(e=e[Fe]||e[vl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function dn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Sl(e){var t=e[Fo];return t||(t=e[Fo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[fn]=!0}var Wo=new Set,Io={};function Wa(e,t){El(e,t),El(e+"Capture",t)}function El(e,t){for(Io[e]=t,e=0;e<t.length;e++)Wo.add(t[e])}var S0=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]*$"),Po={},ec={};function E0(e){return Js.call(ec,e)?!0:Js.call(Po,e)?!1:S0.test(e)?ec[e]=!0:(Po[e]=!0,!1)}function xi(e,t,a){if(E0(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 bi(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 Jt(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 Nt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _0(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 n=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){a=""+c,s.call(this,c)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function au(e){if(!e._valueTracker){var t=tc(e)?"checked":"value";e._valueTracker=_0(e,t,""+e[t])}}function ac(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=tc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Si(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 T0=/[\n"\\]/g;function jt(e){return e.replace(T0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lu(e,t,a,l,n,s,c,h){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?nu(e,c,Nt(t)):a!=null?nu(e,c,Nt(a)):l!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Nt(h):e.removeAttribute("name")}function lc(e,t,a,l,n,s,c,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){au(e);return}a=a!=null?""+Nt(a):"",t=t!=null?""+Nt(t):a,h||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=h?e.checked:!!l,e.defaultChecked=!!l,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),au(e)}function nu(e,t,a){t==="number"&&Si(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function _l(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Nt(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function nc(e,t,a){if(t!=null&&(t=""+Nt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Nt(a):""}function ic(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(r(92));if(Me(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Nt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),au(e)}function Tl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var N0=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 sc(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||N0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function uc(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(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 n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&sc(e,n,l)}else for(var s in t)t.hasOwnProperty(s)&&sc(e,s,t[s])}function iu(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 j0=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"]]),C0=/^[\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 Ei(e){return C0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $t(){}var su=null;function uu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nl=null,jl=null;function rc(e){var t=bl(e);if(t&&(e=t.stateNode)){var a=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(lu(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="'+jt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[st]||null;if(!n)throw Error(r(90));lu(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&ac(l)}break e;case"textarea":nc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&_l(e,!!a.multiple,t,!1)}}}var ru=!1;function oc(e,t,a){if(ru)return e(t,a);ru=!0;try{var l=e(t);return l}finally{if(ru=!1,(Nl!==null||jl!==null)&&(os(),Nl&&(t=Nl,e=jl,jl=Nl=null,rc(t),e)))for(t=0;t<e.length;t++)rc(e[t])}}function mn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[st]||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(r(231,t,typeof a));return a}var Ft=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ou=!1;if(Ft)try{var hn={};Object.defineProperty(hn,"passive",{get:function(){ou=!0}}),window.addEventListener("test",hn,hn),window.removeEventListener("test",hn,hn)}catch{ou=!1}var Sa=null,cu=null,_i=null;function cc(){if(_i)return _i;var e,t=cu,a=t.length,l,n="value"in Sa?Sa.value:Sa.textContent,s=n.length;for(e=0;e<a&&t[e]===n[e];e++);var c=a-e;for(l=1;l<=c&&t[a-l]===n[s-l];l++);return _i=n.slice(e,1<l?1-l:void 0)}function Ti(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 Ni(){return!0}function fc(){return!1}function ut(e){function t(a,l,n,s,c){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(a=e[h],this[h]=a?a(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ni:fc,this.isPropagationStopped=fc,this}return b(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=Ni)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),t}var Ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ji=ut(Ia),pn=b({},Ia,{view:0,detail:0}),A0=ut(pn),fu,du,yn,Ci=b({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hu,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!==yn&&(yn&&e.type==="mousemove"?(fu=e.screenX-yn.screenX,du=e.screenY-yn.screenY):du=fu=0,yn=e),fu)},movementY:function(e){return"movementY"in e?e.movementY:du}}),dc=ut(Ci),w0=b({},Ci,{dataTransfer:0}),z0=ut(w0),M0=b({},pn,{relatedTarget:0}),mu=ut(M0),O0=b({},Ia,{animationName:0,elapsedTime:0,pseudoElement:0}),R0=ut(O0),D0=b({},Ia,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),B0=ut(D0),U0=b({},Ia,{data:0}),mc=ut(U0),L0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H0={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"},k0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function q0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=k0[e])?!!t[e]:!1}function hu(){return q0}var Y0=b({},pn,{key:function(e){if(e.key){var t=L0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ti(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?H0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hu,charCode:function(e){return e.type==="keypress"?Ti(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ti(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),G0=ut(Y0),X0=b({},Ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hc=ut(X0),Q0=b({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hu}),V0=ut(Q0),Z0=b({},Ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),K0=ut(Z0),J0=b({},Ci,{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}),$0=ut(J0),F0=b({},Ia,{newState:0,oldState:0}),W0=ut(F0),I0=[9,13,27,32],pu=Ft&&"CompositionEvent"in window,gn=null;Ft&&"documentMode"in document&&(gn=document.documentMode);var P0=Ft&&"TextEvent"in window&&!gn,pc=Ft&&(!pu||gn&&8<gn&&11>=gn),yc=" ",gc=!1;function vc(e,t){switch(e){case"keyup":return I0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cl=!1;function ep(e,t){switch(e){case"compositionend":return xc(t);case"keypress":return t.which!==32?null:(gc=!0,yc);case"textInput":return e=t.data,e===yc&&gc?null:e;default:return null}}function tp(e,t){if(Cl)return e==="compositionend"||!pu&&vc(e,t)?(e=cc(),_i=cu=Sa=null,Cl=!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 pc&&t.locale!=="ko"?null:t.data;default:return null}}var ap={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"?!!ap[e.type]:t==="textarea"}function Sc(e,t,a,l){Nl?jl?jl.push(l):jl=[l]:Nl=l,t=ys(t,"onChange"),0<t.length&&(a=new ji("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var vn=null,xn=null;function lp(e){nm(e,0)}function Ai(e){var t=dn(e);if(ac(t))return e}function Ec(e,t){if(e==="change")return t}var _c=!1;if(Ft){var yu;if(Ft){var gu="oninput"in document;if(!gu){var Tc=document.createElement("div");Tc.setAttribute("oninput","return;"),gu=typeof Tc.oninput=="function"}yu=gu}else yu=!1;_c=yu&&(!document.documentMode||9<document.documentMode)}function Nc(){vn&&(vn.detachEvent("onpropertychange",jc),xn=vn=null)}function jc(e){if(e.propertyName==="value"&&Ai(xn)){var t=[];Sc(t,xn,e,uu(e)),oc(lp,t)}}function np(e,t,a){e==="focusin"?(Nc(),vn=t,xn=a,vn.attachEvent("onpropertychange",jc)):e==="focusout"&&Nc()}function ip(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ai(xn)}function sp(e,t){if(e==="click")return Ai(t)}function up(e,t){if(e==="input"||e==="change")return Ai(t)}function rp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yt=typeof Object.is=="function"?Object.is:rp;function bn(e,t){if(yt(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 n=a[l];if(!Js.call(t,n)||!yt(e[n],t[n]))return!1}return!0}function Cc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ac(e,t){var a=Cc(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=Cc(a)}}function wc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Si(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=Si(e.document)}return t}function vu(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 op=Ft&&"documentMode"in document&&11>=document.documentMode,Al=null,xu=null,Sn=null,bu=!1;function Mc(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;bu||Al==null||Al!==Si(l)||(l=Al,"selectionStart"in l&&vu(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}),Sn&&bn(Sn,l)||(Sn=l,l=ys(xu,"onSelect"),0<l.length&&(t=new ji("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Al)))}function Pa(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var wl={animationend:Pa("Animation","AnimationEnd"),animationiteration:Pa("Animation","AnimationIteration"),animationstart:Pa("Animation","AnimationStart"),transitionrun:Pa("Transition","TransitionRun"),transitionstart:Pa("Transition","TransitionStart"),transitioncancel:Pa("Transition","TransitionCancel"),transitionend:Pa("Transition","TransitionEnd")},Su={},Oc={};Ft&&(Oc=document.createElement("div").style,"AnimationEvent"in window||(delete wl.animationend.animation,delete wl.animationiteration.animation,delete wl.animationstart.animation),"TransitionEvent"in window||delete wl.transitionend.transition);function el(e){if(Su[e])return Su[e];if(!wl[e])return e;var t=wl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Oc)return Su[e]=t[a];return e}var Rc=el("animationend"),Dc=el("animationiteration"),Bc=el("animationstart"),cp=el("transitionrun"),fp=el("transitionstart"),dp=el("transitioncancel"),Uc=el("transitionend"),Lc=new Map,Eu="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(" ");Eu.push("scrollEnd");function Ut(e,t){Lc.set(e,t),Wa(t,[e])}var wi=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)},Ct=[],zl=0,_u=0;function zi(){for(var e=zl,t=_u=zl=0;t<e;){var a=Ct[t];Ct[t++]=null;var l=Ct[t];Ct[t++]=null;var n=Ct[t];Ct[t++]=null;var s=Ct[t];if(Ct[t++]=null,l!==null&&n!==null){var c=l.pending;c===null?n.next=n:(n.next=c.next,c.next=n),l.pending=n}s!==0&&Hc(a,n,s)}}function Mi(e,t,a,l){Ct[zl++]=e,Ct[zl++]=t,Ct[zl++]=a,Ct[zl++]=l,_u|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Tu(e,t,a,l){return Mi(e,t,a,l),Oi(e)}function tl(e,t){return Mi(e,null,null,t),Oi(e)}function Hc(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,s=e.return;s!==null;)s.childLanes|=a,l=s.alternate,l!==null&&(l.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-pt(a),e=s.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),s):null}function Oi(e){if(50<Xn)throw Xn=0,Rr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ml={};function mp(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 gt(e,t,a,l){return new mp(e,t,a,l)}function Nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wt(e,t){var a=e.alternate;return a===null?(a=gt(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 kc(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 Ri(e,t,a,l,n,s){var c=0;if(l=e,typeof e=="function")Nu(e)&&(c=1);else if(typeof e=="string")c=vy(e,a,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=gt(31,a,t,n),e.elementType=te,e.lanes=s,e;case D:return al(a.children,n,s,t);case X:c=8,n|=24;break;case B:return e=gt(12,a,t,n|2),e.elementType=B,e.lanes=s,e;case Z:return e=gt(13,a,t,n),e.elementType=Z,e.lanes=s,e;case K:return e=gt(19,a,t,n),e.elementType=K,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:c=10;break e;case k:c=9;break e;case U:c=11;break e;case Y:c=14;break e;case F:c=16,l=null;break e}c=29,a=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=gt(c,a,t,n),t.elementType=e,t.type=l,t.lanes=s,t}function al(e,t,a,l){return e=gt(7,e,l,t),e.lanes=a,e}function ju(e,t,a){return e=gt(6,e,null,t),e.lanes=a,e}function qc(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function Cu(e,t,a){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yc=new WeakMap;function At(e,t){if(typeof e=="object"&&e!==null){var a=Yc.get(e);return a!==void 0?a:(t={value:e,source:t,stack:qo(t)},Yc.set(e,t),t)}return{value:e,source:t,stack:qo(t)}}var Ol=[],Rl=0,Di=null,En=0,wt=[],zt=0,Ea=null,Xt=1,Qt="";function It(e,t){Ol[Rl++]=En,Ol[Rl++]=Di,Di=e,En=t}function Gc(e,t,a){wt[zt++]=Xt,wt[zt++]=Qt,wt[zt++]=Ea,Ea=e;var l=Xt;e=Qt;var n=32-pt(l)-1;l&=~(1<<n),a+=1;var s=32-pt(t)+n;if(30<s){var c=n-n%5;s=(l&(1<<c)-1).toString(32),l>>=c,n-=c,Xt=1<<32-pt(t)+n|a<<n|l,Qt=s+e}else Xt=1<<s|a<<n|l,Qt=e}function Au(e){e.return!==null&&(It(e,1),Gc(e,1,0))}function wu(e){for(;e===Di;)Di=Ol[--Rl],Ol[Rl]=null,En=Ol[--Rl],Ol[Rl]=null;for(;e===Ea;)Ea=wt[--zt],wt[zt]=null,Qt=wt[--zt],wt[zt]=null,Xt=wt[--zt],wt[zt]=null}function Xc(e,t){wt[zt++]=Xt,wt[zt++]=Qt,wt[zt++]=Ea,Xt=t.id,Qt=t.overflow,Ea=e}var We=null,Re=null,xe=!1,_a=null,Mt=!1,zu=Error(r(519));function Ta(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _n(At(t,e)),zu}function Qc(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Fe]=e,t[st]=l,a){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(a=0;a<Vn.length;a++)ye(Vn[a],t);break;case"source":ye("error",t);break;case"img":case"image":case"link":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"input":ye("invalid",t),lc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("invalid",t),ic(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||rm(t.textContent,a)?(l.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),l.onScroll!=null&&ye("scroll",t),l.onScrollEnd!=null&&ye("scrollend",t),l.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||Ta(e,!0)}function Vc(e){for(We=e.return;We;)switch(We.tag){case 5:case 31:case 13:Mt=!1;return;case 27:case 3:Mt=!0;return;default:We=We.return}}function Dl(e){if(e!==We)return!1;if(!xe)return Vc(e),xe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Jr(e.type,e.memoizedProps)),a=!a),a&&Re&&Ta(e),Vc(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Re=gm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Re=gm(e)}else t===27?(t=Re,Ha(e.type)?(e=Pr,Pr=null,Re=e):Re=t):Re=We?Rt(e.stateNode.nextSibling):null;return!0}function ll(){Re=We=null,xe=!1}function Mu(){var e=_a;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),_a=null),e}function _n(e){_a===null?_a=[e]:_a.push(e)}var Ou=_(null),nl=null,Pt=null;function Na(e,t,a){J(Ou,t._currentValue),t._currentValue=a}function ea(e){e._currentValue=Ou.current,L(Ou)}function Ru(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 Du(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var s=n.dependencies;if(s!==null){var c=n.child;s=s.firstContext;e:for(;s!==null;){var h=s;s=n;for(var S=0;S<t.length;S++)if(h.context===t[S]){s.lanes|=a,h=s.alternate,h!==null&&(h.lanes|=a),Ru(s.return,a,e),l||(c=null);break e}s=h.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=a,s=c.alternate,s!==null&&(s.lanes|=a),Ru(c,a,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function Bl(e,t,a,l){e=null;for(var n=t,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var h=n.type;yt(n.pendingProps.value,c.value)||(e!==null?e.push(h):e=[h])}}else if(n===Te.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Fn):e=[Fn])}n=n.return}e!==null&&Du(t,e,a,l),t.flags|=262144}function Bi(e){for(e=e.firstContext;e!==null;){if(!yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function il(e){nl=e,Pt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return Zc(nl,e)}function Ui(e,t){return nl===null&&il(e),Zc(e,t)}function Zc(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Pt===null){if(e===null)throw Error(r(308));Pt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pt=Pt.next=t;return a}var hp=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()})}},pp=i.unstable_scheduleCallback,yp=i.unstable_NormalPriority,Xe={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bu(){return{controller:new hp,data:new Map,refCount:0}}function Tn(e){e.refCount--,e.refCount===0&&pp(yp,function(){e.controller.abort()})}var Nn=null,Uu=0,Ul=0,Ll=null;function gp(e,t){if(Nn===null){var a=Nn=[];Uu=0,Ul=kr(),Ll={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Uu++,t.then(Kc,Kc),t}function Kc(){if(--Uu===0&&Nn!==null){Ll!==null&&(Ll.status="fulfilled");var e=Nn;Nn=null,Ul=0,Ll=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vp(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var Jc=R.S;R.S=function(e,t){Od=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&gp(e,t),Jc!==null&&Jc(e,t)};var sl=_(null);function Lu(){var e=sl.current;return e!==null?e:ze.pooledCache}function Li(e,t){t===null?J(sl,sl.current):J(sl,t.pool)}function $c(){var e=Lu();return e===null?null:{parent:Xe._currentValue,pool:e}}var Hl=Error(r(460)),Hu=Error(r(474)),Hi=Error(r(542)),ki={then:function(){}};function Fc(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wc(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then($t,$t),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pc(e),e;default:if(typeof t.status=="string")t.then($t,$t);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pc(e),e}throw rl=t,Hl}}function ul(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(rl=a,Hl):a}}var rl=null;function Ic(){if(rl===null)throw Error(r(459));var e=rl;return rl=null,e}function Pc(e){if(e===Hl||e===Hi)throw Error(r(483))}var kl=null,jn=0;function qi(e){var t=jn;return jn+=1,kl===null&&(kl=[]),Wc(kl,e,t)}function Cn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yi(e,t){throw t.$$typeof===j?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ef(e){function t(N,T){if(e){var C=N.deletions;C===null?(N.deletions=[T],N.flags|=16):C.push(T)}}function a(N,T){if(!e)return null;for(;T!==null;)t(N,T),T=T.sibling;return null}function l(N){for(var T=new Map;N!==null;)N.key!==null?T.set(N.key,N):T.set(N.index,N),N=N.sibling;return T}function n(N,T){return N=Wt(N,T),N.index=0,N.sibling=null,N}function s(N,T,C){return N.index=C,e?(C=N.alternate,C!==null?(C=C.index,C<T?(N.flags|=67108866,T):C):(N.flags|=67108866,T)):(N.flags|=1048576,T)}function c(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function h(N,T,C,G){return T===null||T.tag!==6?(T=ju(C,N.mode,G),T.return=N,T):(T=n(T,C),T.return=N,T)}function S(N,T,C,G){var le=C.type;return le===D?H(N,T,C.props.children,G,C.key):T!==null&&(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===F&&ul(le)===T.type)?(T=n(T,C.props),Cn(T,C),T.return=N,T):(T=Ri(C.type,C.key,C.props,null,N.mode,G),Cn(T,C),T.return=N,T)}function A(N,T,C,G){return T===null||T.tag!==4||T.stateNode.containerInfo!==C.containerInfo||T.stateNode.implementation!==C.implementation?(T=Cu(C,N.mode,G),T.return=N,T):(T=n(T,C.children||[]),T.return=N,T)}function H(N,T,C,G,le){return T===null||T.tag!==7?(T=al(C,N.mode,G,le),T.return=N,T):(T=n(T,C),T.return=N,T)}function Q(N,T,C){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=ju(""+T,N.mode,C),T.return=N,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case z:return C=Ri(T.type,T.key,T.props,null,N.mode,C),Cn(C,T),C.return=N,C;case q:return T=Cu(T,N.mode,C),T.return=N,T;case F:return T=ul(T),Q(N,T,C)}if(Me(T)||ue(T))return T=al(T,N.mode,C,null),T.return=N,T;if(typeof T.then=="function")return Q(N,qi(T),C);if(T.$$typeof===M)return Q(N,Ui(N,T),C);Yi(N,T)}return null}function w(N,T,C,G){var le=T!==null?T.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return le!==null?null:h(N,T,""+C,G);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case z:return C.key===le?S(N,T,C,G):null;case q:return C.key===le?A(N,T,C,G):null;case F:return C=ul(C),w(N,T,C,G)}if(Me(C)||ue(C))return le!==null?null:H(N,T,C,G,null);if(typeof C.then=="function")return w(N,T,qi(C),G);if(C.$$typeof===M)return w(N,T,Ui(N,C),G);Yi(N,C)}return null}function O(N,T,C,G,le){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return N=N.get(C)||null,h(T,N,""+G,le);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case z:return N=N.get(G.key===null?C:G.key)||null,S(T,N,G,le);case q:return N=N.get(G.key===null?C:G.key)||null,A(T,N,G,le);case F:return G=ul(G),O(N,T,C,G,le)}if(Me(G)||ue(G))return N=N.get(C)||null,H(T,N,G,le,null);if(typeof G.then=="function")return O(N,T,C,qi(G),le);if(G.$$typeof===M)return O(N,T,C,Ui(T,G),le);Yi(T,G)}return null}function W(N,T,C,G){for(var le=null,be=null,P=T,me=T=0,ve=null;P!==null&&me<C.length;me++){P.index>me?(ve=P,P=null):ve=P.sibling;var Se=w(N,P,C[me],G);if(Se===null){P===null&&(P=ve);break}e&&P&&Se.alternate===null&&t(N,P),T=s(Se,T,me),be===null?le=Se:be.sibling=Se,be=Se,P=ve}if(me===C.length)return a(N,P),xe&&It(N,me),le;if(P===null){for(;me<C.length;me++)P=Q(N,C[me],G),P!==null&&(T=s(P,T,me),be===null?le=P:be.sibling=P,be=P);return xe&&It(N,me),le}for(P=l(P);me<C.length;me++)ve=O(P,N,me,C[me],G),ve!==null&&(e&&ve.alternate!==null&&P.delete(ve.key===null?me:ve.key),T=s(ve,T,me),be===null?le=ve:be.sibling=ve,be=ve);return e&&P.forEach(function(Xa){return t(N,Xa)}),xe&&It(N,me),le}function ne(N,T,C,G){if(C==null)throw Error(r(151));for(var le=null,be=null,P=T,me=T=0,ve=null,Se=C.next();P!==null&&!Se.done;me++,Se=C.next()){P.index>me?(ve=P,P=null):ve=P.sibling;var Xa=w(N,P,Se.value,G);if(Xa===null){P===null&&(P=ve);break}e&&P&&Xa.alternate===null&&t(N,P),T=s(Xa,T,me),be===null?le=Xa:be.sibling=Xa,be=Xa,P=ve}if(Se.done)return a(N,P),xe&&It(N,me),le;if(P===null){for(;!Se.done;me++,Se=C.next())Se=Q(N,Se.value,G),Se!==null&&(T=s(Se,T,me),be===null?le=Se:be.sibling=Se,be=Se);return xe&&It(N,me),le}for(P=l(P);!Se.done;me++,Se=C.next())Se=O(P,N,me,Se.value,G),Se!==null&&(e&&Se.alternate!==null&&P.delete(Se.key===null?me:Se.key),T=s(Se,T,me),be===null?le=Se:be.sibling=Se,be=Se);return e&&P.forEach(function(wy){return t(N,wy)}),xe&&It(N,me),le}function we(N,T,C,G){if(typeof C=="object"&&C!==null&&C.type===D&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case z:e:{for(var le=C.key;T!==null;){if(T.key===le){if(le=C.type,le===D){if(T.tag===7){a(N,T.sibling),G=n(T,C.props.children),G.return=N,N=G;break e}}else if(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===F&&ul(le)===T.type){a(N,T.sibling),G=n(T,C.props),Cn(G,C),G.return=N,N=G;break e}a(N,T);break}else t(N,T);T=T.sibling}C.type===D?(G=al(C.props.children,N.mode,G,C.key),G.return=N,N=G):(G=Ri(C.type,C.key,C.props,null,N.mode,G),Cn(G,C),G.return=N,N=G)}return c(N);case q:e:{for(le=C.key;T!==null;){if(T.key===le)if(T.tag===4&&T.stateNode.containerInfo===C.containerInfo&&T.stateNode.implementation===C.implementation){a(N,T.sibling),G=n(T,C.children||[]),G.return=N,N=G;break e}else{a(N,T);break}else t(N,T);T=T.sibling}G=Cu(C,N.mode,G),G.return=N,N=G}return c(N);case F:return C=ul(C),we(N,T,C,G)}if(Me(C))return W(N,T,C,G);if(ue(C)){if(le=ue(C),typeof le!="function")throw Error(r(150));return C=le.call(C),ne(N,T,C,G)}if(typeof C.then=="function")return we(N,T,qi(C),G);if(C.$$typeof===M)return we(N,T,Ui(N,C),G);Yi(N,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,T!==null&&T.tag===6?(a(N,T.sibling),G=n(T,C),G.return=N,N=G):(a(N,T),G=ju(C,N.mode,G),G.return=N,N=G),c(N)):a(N,T)}return function(N,T,C,G){try{jn=0;var le=we(N,T,C,G);return kl=null,le}catch(P){if(P===Hl||P===Hi)throw P;var be=gt(29,P,null,N.mode);return be.lanes=G,be.return=N,be}finally{}}}var ol=ef(!0),tf=ef(!1),ja=!1;function ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qu(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 Ca(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Aa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ee&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Oi(e),Hc(e,null,a),t}return Mi(e,l,t,a),Oi(e)}function An(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,Zo(e,a)}}function Yu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?n=s=c:s=s.next=c,a=a.next}while(a!==null);s===null?n=s=t:s=s.next=t}else n=s=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:s,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 Gu=!1;function wn(){if(Gu){var e=Ll;if(e!==null)throw e}}function zn(e,t,a,l){Gu=!1;var n=e.updateQueue;ja=!1;var s=n.firstBaseUpdate,c=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var S=h,A=S.next;S.next=null,c===null?s=A:c.next=A,c=S;var H=e.alternate;H!==null&&(H=H.updateQueue,h=H.lastBaseUpdate,h!==c&&(h===null?H.firstBaseUpdate=A:h.next=A,H.lastBaseUpdate=S))}if(s!==null){var Q=n.baseState;c=0,H=A=S=null,h=s;do{var w=h.lane&-536870913,O=w!==h.lane;if(O?(ge&w)===w:(l&w)===w){w!==0&&w===Ul&&(Gu=!0),H!==null&&(H=H.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var W=e,ne=h;w=t;var we=a;switch(ne.tag){case 1:if(W=ne.payload,typeof W=="function"){Q=W.call(we,Q,w);break e}Q=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ne.payload,w=typeof W=="function"?W.call(we,Q,w):W,w==null)break e;Q=b({},Q,w);break e;case 2:ja=!0}}w=h.callback,w!==null&&(e.flags|=64,O&&(e.flags|=8192),O=n.callbacks,O===null?n.callbacks=[w]:O.push(w))}else O={lane:w,tag:h.tag,payload:h.payload,callback:h.callback,next:null},H===null?(A=H=O,S=Q):H=H.next=O,c|=w;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;O=h,h=O.next,O.next=null,n.lastBaseUpdate=O,n.shared.pending=null}}while(!0);H===null&&(S=Q),n.baseState=S,n.firstBaseUpdate=A,n.lastBaseUpdate=H,s===null&&(n.shared.lanes=0),Ra|=c,e.lanes=c,e.memoizedState=Q}}function af(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function lf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)af(a[e],t)}var ql=_(null),Gi=_(0);function nf(e,t){e=oa,J(Gi,e),J(ql,t),oa=e|t.baseLanes}function Xu(){J(Gi,oa),J(ql,ql.current)}function Qu(){oa=Gi.current,L(ql),L(Gi)}var vt=_(null),Ot=null;function wa(e){var t=e.alternate;J(Ye,Ye.current&1),J(vt,e),Ot===null&&(t===null||ql.current!==null||t.memoizedState!==null)&&(Ot=e)}function Vu(e){J(Ye,Ye.current),J(vt,e),Ot===null&&(Ot=e)}function sf(e){e.tag===22?(J(Ye,Ye.current),J(vt,e),Ot===null&&(Ot=e)):za()}function za(){J(Ye,Ye.current),J(vt,vt.current)}function xt(e){L(vt),Ot===e&&(Ot=null),L(Ye)}var Ye=_(0);function Xi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Wr(a)||Ir(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 ta=0,de=null,Ce=null,Qe=null,Qi=!1,Yl=!1,cl=!1,Vi=0,Mn=0,Gl=null,xp=0;function He(){throw Error(r(321))}function Zu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!yt(e[a],t[a]))return!1;return!0}function Ku(e,t,a,l,n,s){return ta=s,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?Xf:rr,cl=!1,s=a(l,n),cl=!1,Yl&&(s=rf(t,a,l,n)),uf(e),s}function uf(e){R.H=Dn;var t=Ce!==null&&Ce.next!==null;if(ta=0,Qe=Ce=de=null,Qi=!1,Mn=0,Gl=null,t)throw Error(r(300));e===null||Ve||(e=e.dependencies,e!==null&&Bi(e)&&(Ve=!0))}function rf(e,t,a,l){de=e;var n=0;do{if(Yl&&(Gl=null),Mn=0,Yl=!1,25<=n)throw Error(r(301));if(n+=1,Qe=Ce=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}R.H=Qf,s=t(a,l)}while(Yl);return s}function bp(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?On(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(de.flags|=1024),t}function Ju(){var e=Vi!==0;return Vi=0,e}function $u(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Fu(e){if(Qi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Qi=!1}ta=0,Qe=Ce=de=null,Yl=!1,Mn=Vi=0,Gl=null}function nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?de.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ge(){if(Ce===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Qe===null?de.memoizedState:Qe.next;if(t!==null)Qe=t,Ce=e;else{if(e===null)throw de.alternate===null?Error(r(467)):Error(r(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Qe===null?de.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Zi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function On(e){var t=Mn;return Mn+=1,Gl===null&&(Gl=[]),e=Wc(Gl,e,t),t=de,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?Xf:rr),e}function Ki(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return On(e);if(e.$$typeof===M)return Ie(e)}throw Error(r(438,String(e)))}function Wu(e){var t=null,a=de.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=de.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Zi(),de.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]=V;return t.index++,a}function aa(e,t){return typeof t=="function"?t(e):t}function Ji(e){var t=Ge();return Iu(t,Ce,e)}function Iu(e,t,a){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var n=e.baseQueue,s=l.pending;if(s!==null){if(n!==null){var c=n.next;n.next=s.next,s.next=c}t.baseQueue=n=s,l.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var h=c=null,S=null,A=t,H=!1;do{var Q=A.lane&-536870913;if(Q!==A.lane?(ge&Q)===Q:(ta&Q)===Q){var w=A.revertLane;if(w===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),Q===Ul&&(H=!0);else if((ta&w)===w){A=A.next,w===Ul&&(H=!0);continue}else Q={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},S===null?(h=S=Q,c=s):S=S.next=Q,de.lanes|=w,Ra|=w;Q=A.action,cl&&a(s,Q),s=A.hasEagerState?A.eagerState:a(s,Q)}else w={lane:Q,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},S===null?(h=S=w,c=s):S=S.next=w,de.lanes|=Q,Ra|=Q;A=A.next}while(A!==null&&A!==t);if(S===null?c=s:S.next=h,!yt(s,e.memoizedState)&&(Ve=!0,H&&(a=Ll,a!==null)))throw a;e.memoizedState=s,e.baseState=c,e.baseQueue=S,l.lastRenderedState=s}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Pu(e){var t=Ge(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,s=t.memoizedState;if(n!==null){a.pending=null;var c=n=n.next;do s=e(s,c.action),c=c.next;while(c!==n);yt(s,t.memoizedState)||(Ve=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,l]}function of(e,t,a){var l=de,n=Ge(),s=xe;if(s){if(a===void 0)throw Error(r(407));a=a()}else a=t();var c=!yt((Ce||n).memoizedState,a);if(c&&(n.memoizedState=a,Ve=!0),n=n.queue,ar(df.bind(null,l,n,e),[e]),n.getSnapshot!==t||c||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,Xl(9,{destroy:void 0},ff.bind(null,l,n,a,t),null),ze===null)throw Error(r(349));s||(ta&127)!==0||cf(l,t,a)}return a}function cf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=de.updateQueue,t===null?(t=Zi(),de.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function ff(e,t,a,l){t.value=a,t.getSnapshot=l,mf(t)&&hf(e)}function df(e,t,a){return a(function(){mf(t)&&hf(e)})}function mf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!yt(e,a)}catch{return!0}}function hf(e){var t=tl(e,2);t!==null&&dt(t,e,2)}function er(e){var t=nt();if(typeof e=="function"){var a=e;if(e=a(),cl){xa(!0);try{a()}finally{xa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e},t}function pf(e,t,a,l){return e.baseState=a,Iu(e,Ce,typeof l=="function"?l:aa)}function Sp(e,t,a,l,n){if(Wi(e))throw Error(r(485));if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){s.listeners.push(c)}};R.T!==null?a(!0):s.isTransition=!1,l(s),a=t.pending,a===null?(s.next=t.pending=s,yf(t,s)):(s.next=a.next,t.pending=a.next=s)}}function yf(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var s=R.T,c={};R.T=c;try{var h=a(n,l),S=R.S;S!==null&&S(c,h),gf(e,t,h)}catch(A){tr(e,t,A)}finally{s!==null&&c.types!==null&&(s.types=c.types),R.T=s}}else try{s=a(n,l),gf(e,t,s)}catch(A){tr(e,t,A)}}function gf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){vf(e,t,l)},function(l){return tr(e,t,l)}):vf(e,t,a)}function vf(e,t,a){t.status="fulfilled",t.value=a,xf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,yf(e,a)))}function tr(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,xf(t),t=t.next;while(t!==l)}e.action=null}function xf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bf(e,t){return t}function Sf(e,t){if(xe){var a=ze.formState;if(a!==null){e:{var l=de;if(xe){if(Re){t:{for(var n=Re,s=Mt;n.nodeType!==8;){if(!s){n=null;break t}if(n=Rt(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s==="F!"||s==="F"?n:null}if(n){Re=Rt(n.nextSibling),l=n.data==="F!";break e}}Ta(l)}l=!1}l&&(t=a[0])}}return a=nt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bf,lastRenderedState:t},a.queue=l,a=qf.bind(null,de,l),l.dispatch=a,l=er(!1),s=ur.bind(null,de,!1,l.queue),l=nt(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=Sp.bind(null,de,n,s,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function Ef(e){var t=Ge();return _f(t,Ce,e)}function _f(e,t,a){if(t=Iu(e,t,bf)[0],e=Ji(aa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=On(t)}catch(c){throw c===Hl?Hi:c}else l=t;t=Ge();var n=t.queue,s=n.dispatch;return a!==t.memoizedState&&(de.flags|=2048,Xl(9,{destroy:void 0},Ep.bind(null,n,a),null)),[l,s,e]}function Ep(e,t){e.action=t}function Tf(e){var t=Ge(),a=Ce;if(a!==null)return _f(t,a,e);Ge(),t=t.memoizedState,a=Ge();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Xl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=de.updateQueue,t===null&&(t=Zi(),de.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 Nf(){return Ge().memoizedState}function $i(e,t,a,l){var n=nt();de.flags|=e,n.memoizedState=Xl(1|t,{destroy:void 0},a,l===void 0?null:l)}function Fi(e,t,a,l){var n=Ge();l=l===void 0?null:l;var s=n.memoizedState.inst;Ce!==null&&l!==null&&Zu(l,Ce.memoizedState.deps)?n.memoizedState=Xl(t,s,a,l):(de.flags|=e,n.memoizedState=Xl(1|t,s,a,l))}function jf(e,t){$i(8390656,8,e,t)}function ar(e,t){Fi(2048,8,e,t)}function _p(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=Zi(),de.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Cf(e){var t=Ge().memoizedState;return _p({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Af(e,t){return Fi(4,2,e,t)}function wf(e,t){return Fi(4,4,e,t)}function zf(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 Mf(e,t,a){a=a!=null?a.concat([e]):null,Fi(4,4,zf.bind(null,t,e),a)}function lr(){}function Of(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Zu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Rf(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Zu(t,l[1]))return l[0];if(l=e(),cl){xa(!0);try{e()}finally{xa(!1)}}return a.memoizedState=[l,t],l}function nr(e,t,a){return a===void 0||(ta&1073741824)!==0&&(ge&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Dd(),de.lanes|=e,Ra|=e,a)}function Df(e,t,a,l){return yt(a,t)?a:ql.current!==null?(e=nr(e,a,l),yt(e,t)||(Ve=!0),e):(ta&42)===0||(ta&1073741824)!==0&&(ge&261930)===0?(Ve=!0,e.memoizedState=a):(e=Dd(),de.lanes|=e,Ra|=e,t)}function Bf(e,t,a,l,n){var s=$.p;$.p=s!==0&&8>s?s:8;var c=R.T,h={};R.T=h,ur(e,!1,t,a);try{var S=n(),A=R.S;if(A!==null&&A(h,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var H=vp(S,l);Rn(e,t,H,Et(e))}else Rn(e,t,l,Et(e))}catch(Q){Rn(e,t,{then:function(){},status:"rejected",reason:Q},Et())}finally{$.p=s,c!==null&&h.types!==null&&(c.types=h.types),R.T=c}}function Tp(){}function ir(e,t,a,l){if(e.tag!==5)throw Error(r(476));var n=Uf(e).queue;Bf(e,n,t,ae,a===null?Tp:function(){return Lf(e),a(l)})}function Uf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:ae},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lf(e){var t=Uf(e);t.next===null&&(t=e.alternate.memoizedState),Rn(e,t.next.queue,{},Et())}function sr(){return Ie(Fn)}function Hf(){return Ge().memoizedState}function kf(){return Ge().memoizedState}function Np(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Et();e=Ca(a);var l=Aa(t,e,a);l!==null&&(dt(l,t,a),An(l,t,a)),t={cache:Bu()},e.payload=t;return}t=t.return}}function jp(e,t,a){var l=Et();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Wi(e)?Yf(t,a):(a=Tu(e,t,a,l),a!==null&&(dt(a,e,l),Gf(a,t,l)))}function qf(e,t,a){var l=Et();Rn(e,t,a,l)}function Rn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Wi(e))Yf(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var c=t.lastRenderedState,h=s(c,a);if(n.hasEagerState=!0,n.eagerState=h,yt(h,c))return Mi(e,t,n,0),ze===null&&zi(),!1}catch{}finally{}if(a=Tu(e,t,n,l),a!==null)return dt(a,e,l),Gf(a,t,l),!0}return!1}function ur(e,t,a,l){if(l={lane:2,revertLane:kr(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Wi(e)){if(t)throw Error(r(479))}else t=Tu(e,a,l,2),t!==null&&dt(t,e,2)}function Wi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Yf(e,t){Yl=Qi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Gf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Zo(e,a)}}var Dn={readContext:Ie,use:Ki,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};Dn.useEffectEvent=He;var Xf={readContext:Ie,use:Ki,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:jf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,$i(4194308,4,zf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){$i(4,2,e,t)},useMemo:function(e,t){var a=nt();t=t===void 0?null:t;var l=e();if(cl){xa(!0);try{e()}finally{xa(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=nt();if(a!==void 0){var n=a(t);if(cl){xa(!0);try{a(t)}finally{xa(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=jp.bind(null,de,e),[l.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:function(e){e=er(e);var t=e.queue,a=qf.bind(null,de,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:lr,useDeferredValue:function(e,t){var a=nt();return nr(a,e,t)},useTransition:function(){var e=er(!1);return e=Bf.bind(null,de,e.queue,!0,!1),nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=de,n=nt();if(xe){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),ze===null)throw Error(r(349));(ge&127)!==0||cf(l,t,a)}n.memoizedState=a;var s={value:a,getSnapshot:t};return n.queue=s,jf(df.bind(null,l,s,e),[e]),l.flags|=2048,Xl(9,{destroy:void 0},ff.bind(null,l,s,a,t),null),a},useId:function(){var e=nt(),t=ze.identifierPrefix;if(xe){var a=Qt,l=Xt;a=(l&~(1<<32-pt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Vi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=xp++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:sr,useFormState:Sf,useActionState:Sf,useOptimistic:function(e){var t=nt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ur.bind(null,de,!0,a),a.dispatch=t,[e,t]},useMemoCache:Wu,useCacheRefresh:function(){return nt().memoizedState=Np.bind(null,de)},useEffectEvent:function(e){var t=nt(),a={impl:e};return t.memoizedState=a,function(){if((Ee&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},rr={readContext:Ie,use:Ki,useCallback:Of,useContext:Ie,useEffect:ar,useImperativeHandle:Mf,useInsertionEffect:Af,useLayoutEffect:wf,useMemo:Rf,useReducer:Ji,useRef:Nf,useState:function(){return Ji(aa)},useDebugValue:lr,useDeferredValue:function(e,t){var a=Ge();return Df(a,Ce.memoizedState,e,t)},useTransition:function(){var e=Ji(aa)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:On(e),t]},useSyncExternalStore:of,useId:Hf,useHostTransitionStatus:sr,useFormState:Ef,useActionState:Ef,useOptimistic:function(e,t){var a=Ge();return pf(a,Ce,e,t)},useMemoCache:Wu,useCacheRefresh:kf};rr.useEffectEvent=Cf;var Qf={readContext:Ie,use:Ki,useCallback:Of,useContext:Ie,useEffect:ar,useImperativeHandle:Mf,useInsertionEffect:Af,useLayoutEffect:wf,useMemo:Rf,useReducer:Pu,useRef:Nf,useState:function(){return Pu(aa)},useDebugValue:lr,useDeferredValue:function(e,t){var a=Ge();return Ce===null?nr(a,e,t):Df(a,Ce.memoizedState,e,t)},useTransition:function(){var e=Pu(aa)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:On(e),t]},useSyncExternalStore:of,useId:Hf,useHostTransitionStatus:sr,useFormState:Tf,useActionState:Tf,useOptimistic:function(e,t){var a=Ge();return Ce!==null?pf(a,Ce,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Wu,useCacheRefresh:kf};Qf.useEffectEvent=Cf;function or(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var cr={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Ca(l);n.payload=t,a!=null&&(n.callback=a),t=Aa(e,n,l),t!==null&&(dt(t,e,l),An(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Ca(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Aa(e,n,l),t!==null&&(dt(t,e,l),An(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Et(),l=Ca(a);l.tag=2,t!=null&&(l.callback=t),t=Aa(e,l,a),t!==null&&(dt(t,e,a),An(t,e,a))}};function Vf(e,t,a,l,n,s,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,c):t.prototype&&t.prototype.isPureReactComponent?!bn(a,l)||!bn(n,s):!0}function Zf(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&&cr.enqueueReplaceState(t,t.state,null)}function fl(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=b({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function Kf(e){wi(e)}function Jf(e){console.error(e)}function $f(e){wi(e)}function Ii(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ff(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function fr(e,t,a){return a=Ca(a),a.tag=3,a.payload={element:null},a.callback=function(){Ii(e,t)},a}function Wf(e){return e=Ca(e),e.tag=3,e}function If(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var s=l.value;e.payload=function(){return n(s)},e.callback=function(){Ff(t,a,l)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Ff(t,a,l),typeof n!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var h=l.stack;this.componentDidCatch(l.value,{componentStack:h!==null?h:""})})}function Cp(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Bl(t,a,n,!0),a=vt.current,a!==null){switch(a.tag){case 31:case 13:return Ot===null?cs():a.alternate===null&&ke===0&&(ke=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===ki?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Ur(e,l,n)),!1;case 22:return a.flags|=65536,l===ki?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)),Ur(e,l,n)),!1}throw Error(r(435,a.tag))}return Ur(e,l,n),cs(),!1}if(xe)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==zu&&(e=Error(r(422),{cause:l}),_n(At(e,a)))):(l!==zu&&(t=Error(r(423),{cause:l}),_n(At(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=At(l,a),n=fr(e.stateNode,l,n),Yu(e,n),ke!==4&&(ke=2)),!1;var s=Error(r(520),{cause:l});if(s=At(s,a),Gn===null?Gn=[s]:Gn.push(s),ke!==4&&(ke=2),t===null)return!0;l=At(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=fr(a.stateNode,l,e),Yu(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Da===null||!Da.has(s))))return a.flags|=65536,n&=-n,a.lanes|=n,n=Wf(n),If(n,e,a,l),Yu(a,n),!1}a=a.return}while(a!==null);return!1}var dr=Error(r(461)),Ve=!1;function Pe(e,t,a,l){t.child=e===null?tf(t,null,a,l):ol(t,e.child,a,l)}function Pf(e,t,a,l,n){a=a.render;var s=t.ref;if("ref"in l){var c={};for(var h in l)h!=="ref"&&(c[h]=l[h])}else c=l;return il(t),l=Ku(e,t,a,c,s,n),h=Ju(),e!==null&&!Ve?($u(e,t,n),la(e,t,n)):(xe&&h&&Au(t),t.flags|=1,Pe(e,t,l,n),t.child)}function ed(e,t,a,l,n){if(e===null){var s=a.type;return typeof s=="function"&&!Nu(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,td(e,t,s,l,n)):(e=Ri(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!br(e,n)){var c=s.memoizedProps;if(a=a.compare,a=a!==null?a:bn,a(c,l)&&e.ref===t.ref)return la(e,t,n)}return t.flags|=1,e=Wt(s,l),e.ref=t.ref,e.return=t,t.child=e}function td(e,t,a,l,n){if(e!==null){var s=e.memoizedProps;if(bn(s,l)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=l=s,br(e,n))(e.flags&131072)!==0&&(Ve=!0);else return t.lanes=e.lanes,la(e,t,n)}return mr(e,t,a,l,n)}function ad(e,t,a,l){var n=l.children,s=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(s=s!==null?s.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~s}else l=0,t.child=null;return ld(e,t,s,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Li(t,s!==null?s.cachePool:null),s!==null?nf(t,s):Xu(),sf(t);else return l=t.lanes=536870912,ld(e,t,s!==null?s.baseLanes|a:a,a,l)}else s!==null?(Li(t,s.cachePool),nf(t,s),za(),t.memoizedState=null):(e!==null&&Li(t,null),Xu(),za());return Pe(e,t,n,a),t.child}function Bn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ld(e,t,a,l,n){var s=Lu();return s=s===null?null:{parent:Xe._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Li(t,null),Xu(),sf(t),e!==null&&Bl(e,t,l,!0),t.childLanes=n,null}function Pi(e,t){return t=ts({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function nd(e,t,a){return ol(t,e.child,null,a),e=Pi(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function Ap(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(xe){if(l.mode==="hidden")return e=Pi(t,l),t.lanes=536870912,Bn(null,e);if(Vu(t),(e=Re)?(e=ym(e,Mt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Xt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},a=qc(e),a.return=t,t.child=a,We=t,Re=null)):e=null,e===null)throw Ta(t);return t.lanes=536870912,null}return Pi(t,l)}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(Vu(t),n)if(t.flags&256)t.flags&=-257,t=nd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ve||Bl(e,t,a,!1),n=(a&e.childLanes)!==0,Ve||n){if(l=ze,l!==null&&(c=Ko(l,a),c!==0&&c!==s.retryLane))throw s.retryLane=c,tl(e,c),dt(l,e,c),dr;cs(),t=nd(e,t,a)}else e=s.treeContext,Re=Rt(c.nextSibling),We=t,xe=!0,_a=null,Mt=!1,e!==null&&Xc(t,e),t=Pi(t,l),t.flags|=4096;return t}return e=Wt(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function es(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(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function mr(e,t,a,l,n){return il(t),a=Ku(e,t,a,l,void 0,n),l=Ju(),e!==null&&!Ve?($u(e,t,n),la(e,t,n)):(xe&&l&&Au(t),t.flags|=1,Pe(e,t,a,n),t.child)}function id(e,t,a,l,n,s){return il(t),t.updateQueue=null,a=rf(t,l,a,n),uf(e),l=Ju(),e!==null&&!Ve?($u(e,t,s),la(e,t,s)):(xe&&l&&Au(t),t.flags|=1,Pe(e,t,a,s),t.child)}function sd(e,t,a,l,n){if(il(t),t.stateNode===null){var s=Ml,c=a.contextType;typeof c=="object"&&c!==null&&(s=Ie(c)),s=new a(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=cr,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},ku(t),c=a.contextType,s.context=typeof c=="object"&&c!==null?Ie(c):Ml,s.state=t.memoizedState,c=a.getDerivedStateFromProps,typeof c=="function"&&(or(t,a,c,l),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(c=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),c!==s.state&&cr.enqueueReplaceState(s,s.state,null),zn(t,l,s,n),wn(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var h=t.memoizedProps,S=fl(a,h);s.props=S;var A=s.context,H=a.contextType;c=Ml,typeof H=="object"&&H!==null&&(c=Ie(H));var Q=a.getDerivedStateFromProps;H=typeof Q=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,H||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||A!==c)&&Zf(t,s,l,c),ja=!1;var w=t.memoizedState;s.state=w,zn(t,l,s,n),wn(),A=t.memoizedState,h||w!==A||ja?(typeof Q=="function"&&(or(t,a,Q,l),A=t.memoizedState),(S=ja||Vf(t,a,S,l,w,A,c))?(H||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=A),s.props=l,s.state=A,s.context=c,l=S):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,qu(e,t),c=t.memoizedProps,H=fl(a,c),s.props=H,Q=t.pendingProps,w=s.context,A=a.contextType,S=Ml,typeof A=="object"&&A!==null&&(S=Ie(A)),h=a.getDerivedStateFromProps,(A=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(c!==Q||w!==S)&&Zf(t,s,l,S),ja=!1,w=t.memoizedState,s.state=w,zn(t,l,s,n),wn();var O=t.memoizedState;c!==Q||w!==O||ja||e!==null&&e.dependencies!==null&&Bi(e.dependencies)?(typeof h=="function"&&(or(t,a,h,l),O=t.memoizedState),(H=ja||Vf(t,a,H,l,w,O,S)||e!==null&&e.dependencies!==null&&Bi(e.dependencies))?(A||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,O,S),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,O,S)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=O),s.props=l,s.state=O,s.context=S,l=H):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,es(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=ol(t,e.child,null,n),t.child=ol(t,null,a,n)):Pe(e,t,a,n),t.memoizedState=s.state,e=t.child):e=la(e,t,n),e}function ud(e,t,a,l){return ll(),t.flags|=256,Pe(e,t,a,l),t.child}var hr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pr(e){return{baseLanes:e,cachePool:$c()}}function yr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=St),e}function rd(e,t,a){var l=t.pendingProps,n=!1,s=(t.flags&128)!==0,c;if((c=s)||(c=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(xe){if(n?wa(t):za(),(e=Re)?(e=ym(e,Mt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Xt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},a=qc(e),a.return=t,t.child=a,We=t,Re=null)):e=null,e===null)throw Ta(t);return Ir(e)?t.lanes=32:t.lanes=536870912,null}var h=l.children;return l=l.fallback,n?(za(),n=t.mode,h=ts({mode:"hidden",children:h},n),l=al(l,n,a,null),h.return=t,l.return=t,h.sibling=l,t.child=h,l=t.child,l.memoizedState=pr(a),l.childLanes=yr(e,c,a),t.memoizedState=hr,Bn(null,l)):(wa(t),gr(t,h))}var S=e.memoizedState;if(S!==null&&(h=S.dehydrated,h!==null)){if(s)t.flags&256?(wa(t),t.flags&=-257,t=vr(e,t,a)):t.memoizedState!==null?(za(),t.child=e.child,t.flags|=128,t=null):(za(),h=l.fallback,n=t.mode,l=ts({mode:"visible",children:l.children},n),h=al(h,n,a,null),h.flags|=2,l.return=t,h.return=t,l.sibling=h,t.child=l,ol(t,e.child,null,a),l=t.child,l.memoizedState=pr(a),l.childLanes=yr(e,c,a),t.memoizedState=hr,t=Bn(null,l));else if(wa(t),Ir(h)){if(c=h.nextSibling&&h.nextSibling.dataset,c)var A=c.dgst;c=A,l=Error(r(419)),l.stack="",l.digest=c,_n({value:l,source:null,stack:null}),t=vr(e,t,a)}else if(Ve||Bl(e,t,a,!1),c=(a&e.childLanes)!==0,Ve||c){if(c=ze,c!==null&&(l=Ko(c,a),l!==0&&l!==S.retryLane))throw S.retryLane=l,tl(e,l),dt(c,e,l),dr;Wr(h)||cs(),t=vr(e,t,a)}else Wr(h)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Re=Rt(h.nextSibling),We=t,xe=!0,_a=null,Mt=!1,e!==null&&Xc(t,e),t=gr(t,l.children),t.flags|=4096);return t}return n?(za(),h=l.fallback,n=t.mode,S=e.child,A=S.sibling,l=Wt(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&65011712,A!==null?h=Wt(A,h):(h=al(h,n,a,null),h.flags|=2),h.return=t,l.return=t,l.sibling=h,t.child=l,Bn(null,l),l=t.child,h=e.child.memoizedState,h===null?h=pr(a):(n=h.cachePool,n!==null?(S=Xe._currentValue,n=n.parent!==S?{parent:S,pool:S}:n):n=$c(),h={baseLanes:h.baseLanes|a,cachePool:n}),l.memoizedState=h,l.childLanes=yr(e,c,a),t.memoizedState=hr,Bn(e.child,l)):(wa(t),a=e.child,e=a.sibling,a=Wt(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=a,t.memoizedState=null,a)}function gr(e,t){return t=ts({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ts(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function vr(e,t,a){return ol(t,e.child,null,a),e=gr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function od(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ru(e.return,t,a)}function xr(e,t,a,l,n,s){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:s}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=a,c.tailMode=n,c.treeForkCount=s)}function cd(e,t,a){var l=t.pendingProps,n=l.revealOrder,s=l.tail;l=l.children;var c=Ye.current,h=(c&2)!==0;if(h?(c=c&1|2,t.flags|=128):c&=1,J(Ye,c),Pe(e,t,l,a),l=xe?En:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&od(e,a,t);else if(e.tag===19)od(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(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&Xi(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),xr(t,!1,n,a,s,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Xi(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}xr(t,!0,a,null,s,l);break;case"together":xr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function la(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ra|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Bl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,a=Wt(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Wt(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function br(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Bi(e)))}function wp(e,t,a){switch(t.tag){case 3:lt(t,t.stateNode.containerInfo),Na(t,Xe,e.memoizedState.cache),ll();break;case 27:case 5:un(t);break;case 4:lt(t,t.stateNode.containerInfo);break;case 10:Na(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(wa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?rd(e,t,a):(wa(t),e=la(e,t,a),e!==null?e.sibling:null);wa(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Bl(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return cd(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),J(Ye,Ye.current),l)break;return null;case 22:return t.lanes=0,ad(e,t,a,t.pendingProps);case 24:Na(t,Xe,e.memoizedState.cache)}return la(e,t,a)}function fd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ve=!0;else{if(!br(e,a)&&(t.flags&128)===0)return Ve=!1,wp(e,t,a);Ve=(e.flags&131072)!==0}else Ve=!1,xe&&(t.flags&1048576)!==0&&Gc(t,En,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=ul(t.elementType),t.type=e,typeof e=="function")Nu(e)?(l=fl(e,l),t.tag=1,t=sd(null,t,e,l,a)):(t.tag=0,t=mr(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===U){t.tag=11,t=Pf(null,t,e,l,a);break e}else if(n===Y){t.tag=14,t=ed(null,t,e,l,a);break e}}throw t=_e(e)||e,Error(r(306,t,""))}}return t;case 0:return mr(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=fl(l,t.pendingProps),sd(e,t,l,n,a);case 3:e:{if(lt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var s=t.memoizedState;n=s.element,qu(e,t),zn(t,l,null,a);var c=t.memoizedState;if(l=c.cache,Na(t,Xe,l),l!==s.cache&&Du(t,[Xe],a,!0),wn(),l=c.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=ud(e,t,l,a);break e}else if(l!==n){n=At(Error(r(424)),t),_n(n),t=ud(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(Re=Rt(e.firstChild),We=t,xe=!0,_a=null,Mt=!0,a=tf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ll(),l===n){t=la(e,t,a);break e}Pe(e,t,l,a)}t=t.child}return t;case 26:return es(e,t),e===null?(a=Em(t.type,null,t.pendingProps,null))?t.memoizedState=a:xe||(a=t.type,e=t.pendingProps,l=gs(he.current).createElement(a),l[Fe]=t,l[st]=e,et(l,a,e),Je(l),t.stateNode=l):t.memoizedState=Em(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return un(t),e===null&&xe&&(l=t.stateNode=xm(t.type,t.pendingProps,he.current),We=t,Mt=!0,n=Re,Ha(t.type)?(Pr=n,Re=Rt(l.firstChild)):Re=n),Pe(e,t,t.pendingProps.children,a),es(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&xe&&((n=l=Re)&&(l=iy(l,t.type,t.pendingProps,Mt),l!==null?(t.stateNode=l,We=t,Re=Rt(l.firstChild),Mt=!1,n=!0):n=!1),n||Ta(t)),un(t),n=t.type,s=t.pendingProps,c=e!==null?e.memoizedProps:null,l=s.children,Jr(n,s)?l=null:c!==null&&Jr(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Ku(e,t,bp,null,null,a),Fn._currentValue=n),es(e,t),Pe(e,t,l,a),t.child;case 6:return e===null&&xe&&((e=a=Re)&&(a=sy(a,t.pendingProps,Mt),a!==null?(t.stateNode=a,We=t,Re=null,e=!0):e=!1),e||Ta(t)),null;case 13:return rd(e,t,a);case 4:return lt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ol(t,null,l,a):Pe(e,t,l,a),t.child;case 11:return Pf(e,t,t.type,t.pendingProps,a);case 7:return Pe(e,t,t.pendingProps,a),t.child;case 8:return Pe(e,t,t.pendingProps.children,a),t.child;case 12:return Pe(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Na(t,t.type,l.value),Pe(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,il(t),n=Ie(n),l=l(n),t.flags|=1,Pe(e,t,l,a),t.child;case 14:return ed(e,t,t.type,t.pendingProps,a);case 15:return td(e,t,t.type,t.pendingProps,a);case 19:return cd(e,t,a);case 31:return Ap(e,t,a);case 22:return ad(e,t,a,t.pendingProps);case 24:return il(t),l=Ie(Xe),e===null?(n=Lu(),n===null&&(n=ze,s=Bu(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=a),n=s),t.memoizedState={parent:l,cache:n},ku(t),Na(t,Xe,n)):((e.lanes&a)!==0&&(qu(e,t),zn(t,null,null,a),wn()),n=e.memoizedState,s=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Na(t,Xe,l)):(l=s.cache,Na(t,Xe,l),l!==n.cache&&Du(t,[Xe],a,!0))),Pe(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function na(e){e.flags|=4}function Sr(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Hd())e.flags|=8192;else throw rl=ki,Hu}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,!Cm(t))if(Hd())e.flags|=8192;else throw rl=ki,Hu}function as(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Qo():536870912,e.lanes|=t,Kl|=t)}function Un(e,t){if(!xe)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 De(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function zp(e,t,a){var l=t.pendingProps;switch(wu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return De(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ea(Xe),qe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Dl(t)?na(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Mu())),De(t),null;case 26:var n=t.type,s=t.memoizedState;return e===null?(na(t),s!==null?(De(t),dd(t,s)):(De(t),Sr(t,n,null,l,a))):s?s!==e.memoizedState?(na(t),De(t),dd(t,s)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&na(t),De(t),Sr(t,n,e,l,a)),null;case 27:if(mi(t),a=he.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&na(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return De(t),null}e=I.current,Dl(t)?Qc(t):(e=xm(n,l,a),t.stateNode=e,na(t))}return De(t),null;case 5:if(mi(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&na(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return De(t),null}if(s=I.current,Dl(t))Qc(t);else{var c=gs(he.current);switch(s){case 1:s=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=c.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?c.createElement("select",{is:l.is}):c.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?c.createElement(n,{is:l.is}):c.createElement(n)}}s[Fe]=t,s[st]=l;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)s.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=s;e:switch(et(s,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&na(t)}}return De(t),Sr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&na(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=he.current,Dl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=We,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||rm(e.nodeValue,a)),e||Ta(t,!0)}else e=gs(e).createTextNode(l),e[Fe]=t,t.stateNode=e}return De(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Dl(t),a!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Fe]=t}else ll(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else a=Mu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return De(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Dl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Fe]=t}else ll(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),n=!1}else n=Mu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),as(t,t.updateQueue),De(t),null);case 4:return qe(),e===null&&Xr(t.stateNode.containerInfo),De(t),null;case 10:return ea(t.type),De(t),null;case 19:if(L(Ye),l=t.memoizedState,l===null)return De(t),null;if(n=(t.flags&128)!==0,s=l.rendering,s===null)if(n)Un(l,!1);else{if(ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Xi(e),s!==null){for(t.flags|=128,Un(l,!1),e=s.updateQueue,t.updateQueue=e,as(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)kc(a,e),a=a.sibling;return J(Ye,Ye.current&1|2),xe&&It(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&mt()>us&&(t.flags|=128,n=!0,Un(l,!1),t.lanes=4194304)}else{if(!n)if(e=Xi(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,as(t,e),Un(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!xe)return De(t),null}else 2*mt()-l.renderingStartTime>us&&a!==536870912&&(t.flags|=128,n=!0,Un(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=mt(),e.sibling=null,a=Ye.current,J(Ye,n?a&1|2:a&1),xe&&It(t,l.treeForkCount),e):(De(t),null);case 22:case 23:return xt(t),Qu(),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&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),a=t.updateQueue,a!==null&&as(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&&L(sl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ea(Xe),De(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Mp(e,t){switch(wu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(Xe),qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return mi(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(r(340));ll()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ll()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Ye),null;case 4:return qe(),null;case 10:return ea(t.type),null;case 22:case 23:return xt(t),Qu(),e!==null&&L(sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(Xe),null;case 25:return null;default:return null}}function md(e,t){switch(wu(t),t.tag){case 3:ea(Xe),qe();break;case 26:case 27:case 5:mi(t);break;case 4:qe();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:L(Ye);break;case 10:ea(t.type);break;case 22:case 23:xt(t),Qu(),e!==null&&L(sl);break;case 24:ea(Xe)}}function Ln(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var s=a.create,c=a.inst;l=s(),c.destroy=l}a=a.next}while(a!==n)}}catch(h){je(t,t.return,h)}}function Ma(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var s=n.next;l=s;do{if((l.tag&e)===e){var c=l.inst,h=c.destroy;if(h!==void 0){c.destroy=void 0,n=t;var S=a,A=h;try{A()}catch(H){je(n,S,H)}}}l=l.next}while(l!==s)}}catch(H){je(t,t.return,H)}}function hd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{lf(t,a)}catch(l){je(e,e.return,l)}}}function pd(e,t,a){a.props=fl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){je(e,t,l)}}function Hn(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(n){je(e,t,n)}}function Vt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){je(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){je(e,t,n)}else a.current=null}function yd(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(n){je(e,e.return,n)}}function Er(e,t,a){try{var l=e.stateNode;Pp(l,e.type,a,t),l[st]=t}catch(n){je(e,e.return,n)}}function gd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ha(e.type)||e.tag===4}function _r(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gd(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&&Ha(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 Tr(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=$t));else if(l!==4&&(l===27&&Ha(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Tr(e,t,a),e=e.sibling;e!==null;)Tr(e,t,a),e=e.sibling}function ls(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&&Ha(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ls(e,t,a),e=e.sibling;e!==null;)ls(e,t,a),e=e.sibling}function vd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);et(t,l,a),t[Fe]=e,t[st]=a}catch(s){je(e,e.return,s)}}var ia=!1,Ze=!1,Nr=!1,xd=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Op(e,t){if(e=e.containerInfo,Zr=Ts,e=zc(e),vu(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 n=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var c=0,h=-1,S=-1,A=0,H=0,Q=e,w=null;t:for(;;){for(var O;Q!==a||n!==0&&Q.nodeType!==3||(h=c+n),Q!==s||l!==0&&Q.nodeType!==3||(S=c+l),Q.nodeType===3&&(c+=Q.nodeValue.length),(O=Q.firstChild)!==null;)w=Q,Q=O;for(;;){if(Q===e)break t;if(w===a&&++A===n&&(h=c),w===s&&++H===l&&(S=c),(O=Q.nextSibling)!==null)break;Q=w,w=Q.parentNode}Q=O}a=h===-1||S===-1?null:{start:h,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Kr={focusedElem:e,selectionRange:a},Ts=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,s=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++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,n=s.memoizedProps,s=s.memoizedState,l=a.stateNode;try{var W=fl(a.type,n);e=l.getSnapshotBeforeUpdate(W,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(ne){je(a,a.return,ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Fr(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Fr(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}}function bd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ua(e,a),l&4&&Ln(5,a);break;case 1:if(ua(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(c){je(a,a.return,c)}else{var n=fl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){je(a,a.return,c)}}l&64&&hd(a),l&512&&Hn(a,a.return);break;case 3:if(ua(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{lf(e,t)}catch(c){je(a,a.return,c)}}break;case 27:t===null&&l&4&&vd(a);case 26:case 5:ua(e,a),t===null&&l&4&&yd(a),l&512&&Hn(a,a.return);break;case 12:ua(e,a);break;case 31:ua(e,a),l&4&&_d(e,a);break;case 13:ua(e,a),l&4&&Td(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Yp.bind(null,a),uy(e,a))));break;case 22:if(l=a.memoizedState!==null||ia,!l){t=t!==null&&t.memoizedState!==null||Ze,n=ia;var s=Ze;ia=l,(Ze=t)&&!s?ra(e,a,(a.subtreeFlags&8772)!==0):ua(e,a),ia=n,Ze=s}break;case 30:break;default:ua(e,a)}}function Sd(e){var t=e.alternate;t!==null&&(e.alternate=null,Sd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&tu(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 Ue=null,rt=!1;function sa(e,t,a){for(a=a.child;a!==null;)Ed(e,t,a),a=a.sibling}function Ed(e,t,a){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(rn,a)}catch{}switch(a.tag){case 26:Ze||Vt(a,t),sa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ze||Vt(a,t);var l=Ue,n=rt;Ha(a.type)&&(Ue=a.stateNode,rt=!1),sa(e,t,a),Kn(a.stateNode),Ue=l,rt=n;break;case 5:Ze||Vt(a,t);case 6:if(l=Ue,n=rt,Ue=null,sa(e,t,a),Ue=l,rt=n,Ue!==null)if(rt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(a.stateNode)}catch(s){je(a,t,s)}else try{Ue.removeChild(a.stateNode)}catch(s){je(a,t,s)}break;case 18:Ue!==null&&(rt?(e=Ue,hm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),tn(e)):hm(Ue,a.stateNode));break;case 4:l=Ue,n=rt,Ue=a.stateNode.containerInfo,rt=!0,sa(e,t,a),Ue=l,rt=n;break;case 0:case 11:case 14:case 15:Ma(2,a,t),Ze||Ma(4,a,t),sa(e,t,a);break;case 1:Ze||(Vt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&pd(a,t,l)),sa(e,t,a);break;case 21:sa(e,t,a);break;case 22:Ze=(l=Ze)||a.memoizedState!==null,sa(e,t,a),Ze=l;break;default:sa(e,t,a)}}function _d(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{tn(e)}catch(a){je(t,t.return,a)}}}function Td(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{tn(e)}catch(a){je(t,t.return,a)}}function Rp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new xd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new xd),t;default:throw Error(r(435,e.tag))}}function ns(e,t){var a=Rp(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=Gp.bind(null,e,l);l.then(n,n)}})}function ot(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],s=e,c=t,h=c;e:for(;h!==null;){switch(h.tag){case 27:if(Ha(h.type)){Ue=h.stateNode,rt=!1;break e}break;case 5:Ue=h.stateNode,rt=!1;break e;case 3:case 4:Ue=h.stateNode.containerInfo,rt=!0;break e}h=h.return}if(Ue===null)throw Error(r(160));Ed(s,c,n),Ue=null,rt=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Nd(t,e),t=t.sibling}var Lt=null;function Nd(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ot(t,e),ct(e),l&4&&(Ma(3,e,e.return),Ln(3,e),Ma(5,e,e.return));break;case 1:ot(t,e),ct(e),l&512&&(Ze||a===null||Vt(a,a.return)),l&64&&ia&&(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 n=Lt;if(ot(t,e),ct(e),l&512&&(Ze||a===null||Vt(a,a.return)),l&4){var s=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,n=n.ownerDocument||n;t:switch(l){case"title":s=n.getElementsByTagName("title")[0],(!s||s[fn]||s[Fe]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=n.createElement(l),n.head.insertBefore(s,n.querySelector("head > title"))),et(s,l,a),s[Fe]=e,Je(s),l=s;break e;case"link":var c=Nm("link","href",n).get(l+(a.href||""));if(c){for(var h=0;h<c.length;h++)if(s=c[h],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){c.splice(h,1);break t}}s=n.createElement(l),et(s,l,a),n.head.appendChild(s);break;case"meta":if(c=Nm("meta","content",n).get(l+(a.content||""))){for(h=0;h<c.length;h++)if(s=c[h],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){c.splice(h,1);break t}}s=n.createElement(l),et(s,l,a),n.head.appendChild(s);break;default:throw Error(r(468,l))}s[Fe]=e,Je(s),l=s}e.stateNode=l}else jm(n,e.type,e.stateNode);else e.stateNode=Tm(n,l,e.memoizedProps);else s!==l?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,l===null?jm(n,e.type,e.stateNode):Tm(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Er(e,e.memoizedProps,a.memoizedProps)}break;case 27:ot(t,e),ct(e),l&512&&(Ze||a===null||Vt(a,a.return)),a!==null&&l&4&&Er(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ot(t,e),ct(e),l&512&&(Ze||a===null||Vt(a,a.return)),e.flags&32){n=e.stateNode;try{Tl(n,"")}catch(W){je(e,e.return,W)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,Er(e,n,a!==null?a.memoizedProps:n)),l&1024&&(Nr=!0);break;case 6:if(ot(t,e),ct(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(W){je(e,e.return,W)}}break;case 3:if(bs=null,n=Lt,Lt=vs(t.containerInfo),ot(t,e),Lt=n,ct(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{tn(t.containerInfo)}catch(W){je(e,e.return,W)}Nr&&(Nr=!1,jd(e));break;case 4:l=Lt,Lt=vs(e.stateNode.containerInfo),ot(t,e),ct(e),Lt=l;break;case 12:ot(t,e),ct(e);break;case 31:ot(t,e),ct(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ns(e,l)));break;case 13:ot(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ss=mt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ns(e,l)));break;case 22:n=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,A=ia,H=Ze;if(ia=A||n,Ze=H||S,ot(t,e),Ze=H,ia=A,ct(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||S||ia||Ze||dl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(s=S.stateNode,n)c=s.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{h=S.stateNode;var Q=S.memoizedProps.style,w=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;h.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(W){je(S,S.return,W)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=n?"":S.memoizedProps}catch(W){je(S,S.return,W)}}}else if(t.tag===18){if(a===null){S=t;try{var O=S.stateNode;n?pm(O,!0):pm(S.stateNode,!1)}catch(W){je(S,S.return,W)}}}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,ns(e,a))));break;case 19:ot(t,e),ct(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ns(e,l)));break;case 30:break;case 21:break;default:ot(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(gd(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var n=a.stateNode,s=_r(e);ls(e,s,n);break;case 5:var c=a.stateNode;a.flags&32&&(Tl(c,""),a.flags&=-33);var h=_r(e);ls(e,h,c);break;case 3:case 4:var S=a.stateNode.containerInfo,A=_r(e);Tr(e,A,S);break;default:throw Error(r(161))}}catch(H){je(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ua(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bd(e,t.alternate,t),t=t.sibling}function dl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ma(4,t,t.return),dl(t);break;case 1:Vt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&pd(t,t.return,a),dl(t);break;case 27:Kn(t.stateNode);case 26:case 5:Vt(t,t.return),dl(t);break;case 22:t.memoizedState===null&&dl(t);break;case 30:dl(t);break;default:dl(t)}e=e.sibling}}function ra(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,s=t,c=s.flags;switch(s.tag){case 0:case 11:case 15:ra(n,s,a),Ln(4,s);break;case 1:if(ra(n,s,a),l=s,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){je(l,l.return,A)}if(l=s,n=l.updateQueue,n!==null){var h=l.stateNode;try{var S=n.shared.hiddenCallbacks;if(S!==null)for(n.shared.hiddenCallbacks=null,n=0;n<S.length;n++)af(S[n],h)}catch(A){je(l,l.return,A)}}a&&c&64&&hd(s),Hn(s,s.return);break;case 27:vd(s);case 26:case 5:ra(n,s,a),a&&l===null&&c&4&&yd(s),Hn(s,s.return);break;case 12:ra(n,s,a);break;case 31:ra(n,s,a),a&&c&4&&_d(n,s);break;case 13:ra(n,s,a),a&&c&4&&Td(n,s);break;case 22:s.memoizedState===null&&ra(n,s,a),Hn(s,s.return);break;case 30:break;default:ra(n,s,a)}t=t.sibling}}function jr(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&&Tn(a))}function Cr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tn(e))}function Ht(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Cd(e,t,a,l),t=t.sibling}function Cd(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,a,l),n&2048&&Ln(9,t);break;case 1:Ht(e,t,a,l);break;case 3:Ht(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tn(e)));break;case 12:if(n&2048){Ht(e,t,a,l),e=t.stateNode;try{var s=t.memoizedProps,c=s.id,h=s.onPostCommit;typeof h=="function"&&h(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){je(t,t.return,S)}}else Ht(e,t,a,l);break;case 31:Ht(e,t,a,l);break;case 13:Ht(e,t,a,l);break;case 23:break;case 22:s=t.stateNode,c=t.alternate,t.memoizedState!==null?s._visibility&2?Ht(e,t,a,l):kn(e,t):s._visibility&2?Ht(e,t,a,l):(s._visibility|=2,Ql(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&jr(c,t);break;case 24:Ht(e,t,a,l),n&2048&&Cr(t.alternate,t);break;default:Ht(e,t,a,l)}}function Ql(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,c=t,h=a,S=l,A=c.flags;switch(c.tag){case 0:case 11:case 15:Ql(s,c,h,S,n),Ln(8,c);break;case 23:break;case 22:var H=c.stateNode;c.memoizedState!==null?H._visibility&2?Ql(s,c,h,S,n):kn(s,c):(H._visibility|=2,Ql(s,c,h,S,n)),n&&A&2048&&jr(c.alternate,c);break;case 24:Ql(s,c,h,S,n),n&&A&2048&&Cr(c.alternate,c);break;default:Ql(s,c,h,S,n)}t=t.sibling}}function kn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:kn(a,l),n&2048&&jr(l.alternate,l);break;case 24:kn(a,l),n&2048&&Cr(l.alternate,l);break;default:kn(a,l)}t=t.sibling}}var qn=8192;function Vl(e,t,a){if(e.subtreeFlags&qn)for(e=e.child;e!==null;)Ad(e,t,a),e=e.sibling}function Ad(e,t,a){switch(e.tag){case 26:Vl(e,t,a),e.flags&qn&&e.memoizedState!==null&&xy(a,Lt,e.memoizedState,e.memoizedProps);break;case 5:Vl(e,t,a);break;case 3:case 4:var l=Lt;Lt=vs(e.stateNode.containerInfo),Vl(e,t,a),Lt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=qn,qn=16777216,Vl(e,t,a),qn=l):Vl(e,t,a));break;default:Vl(e,t,a)}}function wd(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 Yn(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];$e=l,Md(l,e)}wd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zd(e),e=e.sibling}function zd(e){switch(e.tag){case 0:case 11:case 15:Yn(e),e.flags&2048&&Ma(9,e,e.return);break;case 3:Yn(e);break;case 12:Yn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,is(e)):Yn(e);break;default:Yn(e)}}function is(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];$e=l,Md(l,e)}wd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ma(8,t,t.return),is(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,is(t));break;default:is(t)}e=e.sibling}}function Md(e,t){for(;$e!==null;){var a=$e;switch(a.tag){case 0:case 11:case 15:Ma(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:Tn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,$e=l;else e:for(a=e;$e!==null;){l=$e;var n=l.sibling,s=l.return;if(Sd(l),l===a){$e=null;break e}if(n!==null){n.return=s,$e=n;break e}$e=s}}}var Dp={getCacheForType:function(e){var t=Ie(Xe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ie(Xe).controller.signal}},Bp=typeof WeakMap=="function"?WeakMap:Map,Ee=0,ze=null,pe=null,ge=0,Ne=0,bt=null,Oa=!1,Zl=!1,Ar=!1,oa=0,ke=0,Ra=0,ml=0,wr=0,St=0,Kl=0,Gn=null,ft=null,zr=!1,ss=0,Od=0,us=1/0,rs=null,Da=null,Ke=0,Ba=null,Jl=null,ca=0,Mr=0,Or=null,Rd=null,Xn=0,Rr=null;function Et(){return(Ee&2)!==0&&ge!==0?ge&-ge:R.T!==null?kr():Jo()}function Dd(){if(St===0)if((ge&536870912)===0||xe){var e=yi;yi<<=1,(yi&3932160)===0&&(yi=262144),St=e}else St=536870912;return e=vt.current,e!==null&&(e.flags|=32),St}function dt(e,t,a){(e===ze&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&($l(e,0),Ua(e,ge,St,!1)),cn(e,a),((Ee&2)===0||e!==ze)&&(e===ze&&((Ee&2)===0&&(ml|=a),ke===4&&Ua(e,ge,St,!1)),Zt(e))}function Bd(e,t,a){if((Ee&6)!==0)throw Error(r(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||on(e,t),n=l?Hp(e,t):Br(e,t,!0),s=l;do{if(n===0){Zl&&!l&&Ua(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!Up(a)){n=Br(e,t,!1),s=!1;continue}if(n===2){if(s=t,e.errorRecoveryDisabledLanes&s)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var h=e;n=Gn;var S=h.current.memoizedState.isDehydrated;if(S&&($l(h,c).flags|=256),c=Br(h,c,!1),c!==2){if(Ar&&!S){h.errorRecoveryDisabledLanes|=s,ml|=s,n=4;break e}s=ft,ft=n,s!==null&&(ft===null?ft=s:ft.push.apply(ft,s))}n=c}if(s=!1,n!==2)continue}}if(n===1){$l(e,0),Ua(e,t,0,!0);break}e:{switch(l=e,s=n,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ua(l,t,St,!Oa);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=ss+300-mt(),10<n)){if(Ua(l,t,St,!Oa),vi(l,0,!0)!==0)break e;ca=t,l.timeoutHandle=dm(Ud.bind(null,l,a,ft,rs,zr,t,St,ml,Kl,Oa,s,"Throttled",-0,0),n);break e}Ud(l,a,ft,rs,zr,t,St,ml,Kl,Oa,s,null,-0,0)}}break}while(!0);Zt(e)}function Ud(e,t,a,l,n,s,c,h,S,A,H,Q,w,O){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},Ad(t,s,Q);var W=(s&62914560)===s?ss-mt():(s&4194048)===s?Od-mt():0;if(W=by(Q,W),W!==null){ca=s,e.cancelPendingCommit=W(Qd.bind(null,e,t,s,a,l,n,c,h,S,H,Q,null,w,O)),Ua(e,s,c,!A);return}}Qd(e,t,s,a,l,n,c,h,S)}function Up(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 n=a[l],s=n.getSnapshot;n=n.value;try{if(!yt(s(),n))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 Ua(e,t,a,l){t&=~wr,t&=~ml,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var s=31-pt(n),c=1<<s;l[s]=-1,n&=~c}a!==0&&Vo(e,a,t)}function os(){return(Ee&6)===0?(Qn(0),!1):!0}function Dr(){if(pe!==null){if(Ne===0)var e=pe.return;else e=pe,Pt=nl=null,Fu(e),kl=null,jn=0,e=pe;for(;e!==null;)md(e.alternate,e),e=e.return;pe=null}}function $l(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,ay(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ca=0,Dr(),ze=e,pe=a=Wt(e.current,null),ge=t,Ne=0,bt=null,Oa=!1,Zl=on(e,t),Ar=!1,Kl=St=wr=ml=Ra=ke=0,ft=Gn=null,zr=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-pt(l),s=1<<n;t|=e[n],l&=~s}return oa=t,zi(),a}function Ld(e,t){de=null,R.H=Dn,t===Hl||t===Hi?(t=Ic(),Ne=3):t===Hu?(t=Ic(),Ne=4):Ne=t===dr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,pe===null&&(ke=1,Ii(e,At(t,e.current)))}function Hd(){var e=vt.current;return e===null?!0:(ge&4194048)===ge?Ot===null:(ge&62914560)===ge||(ge&536870912)!==0?e===Ot:!1}function kd(){var e=R.H;return R.H=Dn,e===null?Dn:e}function qd(){var e=R.A;return R.A=Dp,e}function cs(){ke=4,Oa||(ge&4194048)!==ge&&vt.current!==null||(Zl=!0),(Ra&134217727)===0&&(ml&134217727)===0||ze===null||Ua(ze,ge,St,!1)}function Br(e,t,a){var l=Ee;Ee|=2;var n=kd(),s=qd();(ze!==e||ge!==t)&&(rs=null,$l(e,t)),t=!1;var c=ke;e:do try{if(Ne!==0&&pe!==null){var h=pe,S=bt;switch(Ne){case 8:Dr(),c=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var A=Ne;if(Ne=0,bt=null,Fl(e,h,S,A),a&&Zl){c=0;break e}break;default:A=Ne,Ne=0,bt=null,Fl(e,h,S,A)}}Lp(),c=ke;break}catch(H){Ld(e,H)}while(!0);return t&&e.shellSuspendCounter++,Pt=nl=null,Ee=l,R.H=n,R.A=s,pe===null&&(ze=null,ge=0,zi()),c}function Lp(){for(;pe!==null;)Yd(pe)}function Hp(e,t){var a=Ee;Ee|=2;var l=kd(),n=qd();ze!==e||ge!==t?(rs=null,us=mt()+500,$l(e,t)):Zl=on(e,t);e:do try{if(Ne!==0&&pe!==null){t=pe;var s=bt;t:switch(Ne){case 1:Ne=0,bt=null,Fl(e,t,s,1);break;case 2:case 9:if(Fc(s)){Ne=0,bt=null,Gd(t);break}t=function(){Ne!==2&&Ne!==9||ze!==e||(Ne=7),Zt(e)},s.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:Fc(s)?(Ne=0,bt=null,Gd(t)):(Ne=0,bt=null,Fl(e,t,s,7));break;case 5:var c=null;switch(pe.tag){case 26:c=pe.memoizedState;case 5:case 27:var h=pe;if(c?Cm(c):h.stateNode.complete){Ne=0,bt=null;var S=h.sibling;if(S!==null)pe=S;else{var A=h.return;A!==null?(pe=A,fs(A)):pe=null}break t}}Ne=0,bt=null,Fl(e,t,s,5);break;case 6:Ne=0,bt=null,Fl(e,t,s,6);break;case 8:Dr(),ke=6;break e;default:throw Error(r(462))}}kp();break}catch(H){Ld(e,H)}while(!0);return Pt=nl=null,R.H=l,R.A=n,Ee=a,pe!==null?0:(ze=null,ge=0,zi(),ke)}function kp(){for(;pe!==null&&!r0();)Yd(pe)}function Yd(e){var t=fd(e.alternate,e,oa);e.memoizedProps=e.pendingProps,t===null?fs(e):pe=t}function Gd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=id(a,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=id(a,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:Fu(t);default:md(a,t),t=pe=kc(t,oa),t=fd(a,t,oa)}e.memoizedProps=e.pendingProps,t===null?fs(e):pe=t}function Fl(e,t,a,l){Pt=nl=null,Fu(t),kl=null,jn=0;var n=t.return;try{if(Cp(e,n,t,a,ge)){ke=1,Ii(e,At(a,e.current)),pe=null;return}}catch(s){if(n!==null)throw pe=n,s;ke=1,Ii(e,At(a,e.current)),pe=null;return}t.flags&32768?(xe||l===1?e=!0:Zl||(ge&536870912)!==0?e=!1:(Oa=e=!0,(l===2||l===9||l===3||l===6)&&(l=vt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Xd(t,e)):fs(t)}function fs(e){var t=e;do{if((t.flags&32768)!==0){Xd(t,Oa);return}e=t.return;var a=zp(t.alternate,t,oa);if(a!==null){pe=a;return}if(t=t.sibling,t!==null){pe=t;return}pe=t=e}while(t!==null);ke===0&&(ke=5)}function Xd(e,t){do{var a=Mp(e.alternate,e);if(a!==null){a.flags&=32767,pe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){pe=e;return}pe=e=a}while(e!==null);ke=6,pe=null}function Qd(e,t,a,l,n,s,c,h,S){e.cancelPendingCommit=null;do ds();while(Ke!==0);if((Ee&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(s=t.lanes|t.childLanes,s|=_u,v0(e,a,s,c,h,S),e===ze&&(pe=ze=null,ge=0),Jl=t,Ba=e,ca=a,Mr=s,Or=n,Rd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Xp(hi,function(){return $d(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null,n=$.p,$.p=2,c=Ee,Ee|=4;try{Op(e,t,a)}finally{Ee=c,$.p=n,R.T=l}}Ke=1,Vd(),Zd(),Kd()}}function Vd(){if(Ke===1){Ke=0;var e=Ba,t=Jl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var l=$.p;$.p=2;var n=Ee;Ee|=4;try{Nd(t,e);var s=Kr,c=zc(e.containerInfo),h=s.focusedElem,S=s.selectionRange;if(c!==h&&h&&h.ownerDocument&&wc(h.ownerDocument.documentElement,h)){if(S!==null&&vu(h)){var A=S.start,H=S.end;if(H===void 0&&(H=A),"selectionStart"in h)h.selectionStart=A,h.selectionEnd=Math.min(H,h.value.length);else{var Q=h.ownerDocument||document,w=Q&&Q.defaultView||window;if(w.getSelection){var O=w.getSelection(),W=h.textContent.length,ne=Math.min(S.start,W),we=S.end===void 0?ne:Math.min(S.end,W);!O.extend&&ne>we&&(c=we,we=ne,ne=c);var N=Ac(h,ne),T=Ac(h,we);if(N&&T&&(O.rangeCount!==1||O.anchorNode!==N.node||O.anchorOffset!==N.offset||O.focusNode!==T.node||O.focusOffset!==T.offset)){var C=Q.createRange();C.setStart(N.node,N.offset),O.removeAllRanges(),ne>we?(O.addRange(C),O.extend(T.node,T.offset)):(C.setEnd(T.node,T.offset),O.addRange(C))}}}}for(Q=[],O=h;O=O.parentNode;)O.nodeType===1&&Q.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<Q.length;h++){var G=Q[h];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Ts=!!Zr,Kr=Zr=null}finally{Ee=n,$.p=l,R.T=a}}e.current=t,Ke=2}}function Zd(){if(Ke===2){Ke=0;var e=Ba,t=Jl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var l=$.p;$.p=2;var n=Ee;Ee|=4;try{bd(e,t.alternate,t)}finally{Ee=n,$.p=l,R.T=a}}Ke=3}}function Kd(){if(Ke===4||Ke===3){Ke=0,o0();var e=Ba,t=Jl,a=ca,l=Rd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ke=5:(Ke=0,Jl=Ba=null,Jd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Da=null),Ps(a),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(rn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=R.T,n=$.p,$.p=2,R.T=null;try{for(var s=e.onRecoverableError,c=0;c<l.length;c++){var h=l[c];s(h.value,{componentStack:h.stack})}}finally{R.T=t,$.p=n}}(ca&3)!==0&&ds(),Zt(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Rr?Xn++:(Xn=0,Rr=e):Xn=0,Qn(0)}}function Jd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Tn(t)))}function ds(){return Vd(),Zd(),Kd(),$d()}function $d(){if(Ke!==5)return!1;var e=Ba,t=Mr;Mr=0;var a=Ps(ca),l=R.T,n=$.p;try{$.p=32>a?32:a,R.T=null,a=Or,Or=null;var s=Ba,c=ca;if(Ke=0,Jl=Ba=null,ca=0,(Ee&6)!==0)throw Error(r(331));var h=Ee;if(Ee|=4,zd(s.current),Cd(s,s.current,c,a),Ee=h,Qn(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(rn,s)}catch{}return!0}finally{$.p=n,R.T=l,Jd(e,t)}}function Fd(e,t,a){t=At(a,t),t=fr(e.stateNode,t,2),e=Aa(e,t,2),e!==null&&(cn(e,2),Zt(e))}function je(e,t,a){if(e.tag===3)Fd(e,e,a);else for(;t!==null;){if(t.tag===3){Fd(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Da===null||!Da.has(l))){e=At(a,e),a=Wf(2),l=Aa(t,a,2),l!==null&&(If(a,l,t,e),cn(l,2),Zt(l));break}}t=t.return}}function Ur(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Bp;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Ar=!0,n.add(a),e=qp.bind(null,e,t,a),t.then(e,e))}function qp(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ze===e&&(ge&a)===a&&(ke===4||ke===3&&(ge&62914560)===ge&&300>mt()-ss?(Ee&2)===0&&$l(e,0):wr|=a,Kl===ge&&(Kl=0)),Zt(e)}function Wd(e,t){t===0&&(t=Qo()),e=tl(e,t),e!==null&&(cn(e,t),Zt(e))}function Yp(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Wd(e,a)}function Gp(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Wd(e,a)}function Xp(e,t){return $s(e,t)}var ms=null,Wl=null,Lr=!1,hs=!1,Hr=!1,La=0;function Zt(e){e!==Wl&&e.next===null&&(Wl===null?ms=Wl=e:Wl=Wl.next=e),hs=!0,Lr||(Lr=!0,Vp())}function Qn(e,t){if(!Hr&&hs){Hr=!0;do for(var a=!1,l=ms;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var s=0;else{var c=l.suspendedLanes,h=l.pingedLanes;s=(1<<31-pt(42|e)+1)-1,s&=n&~(c&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,tm(l,s))}else s=ge,s=vi(l,l===ze?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||on(l,s)||(a=!0,tm(l,s));l=l.next}while(a);Hr=!1}}function Qp(){Id()}function Id(){hs=Lr=!1;var e=0;La!==0&&ty()&&(e=La);for(var t=mt(),a=null,l=ms;l!==null;){var n=l.next,s=Pd(l,t);s===0?(l.next=null,a===null?ms=n:a.next=n,n===null&&(Wl=a)):(a=l,(e!==0||(s&3)!==0)&&(hs=!0)),l=n}Ke!==0&&Ke!==5||Qn(e),La!==0&&(La=0)}function Pd(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var c=31-pt(s),h=1<<c,S=n[c];S===-1?((h&a)===0||(h&l)!==0)&&(n[c]=g0(h,t)):S<=t&&(e.expiredLanes|=h),s&=~h}if(t=ze,a=ge,a=vi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Fs(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||on(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Fs(l),Ps(a)){case 2:case 8:a=Go;break;case 32:a=hi;break;case 268435456:a=Xo;break;default:a=hi}return l=em.bind(null,e),a=$s(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Fs(l),e.callbackPriority=2,e.callbackNode=null,2}function em(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ds()&&e.callbackNode!==a)return null;var l=ge;return l=vi(e,e===ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Bd(e,l,t),Pd(e,mt()),e.callbackNode!=null&&e.callbackNode===a?em.bind(null,e):null)}function tm(e,t){if(ds())return null;Bd(e,t,!0)}function Vp(){ly(function(){(Ee&6)!==0?$s(Yo,Qp):Id()})}function kr(){if(La===0){var e=Ul;e===0&&(e=pi,pi<<=1,(pi&261888)===0&&(pi=256)),La=e}return La}function am(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ei(""+e)}function lm(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 Zp(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var s=am((n[st]||null).action),c=l.submitter;c&&(t=(t=c[st]||null)?am(t.formAction):c.getAttribute("formAction"),t!==null&&(s=t,c=null));var h=new ji("action","action",null,l,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(La!==0){var S=c?lm(n,c):new FormData(n);ir(a,{pending:!0,data:S,method:n.method,action:s},null,S)}}else typeof s=="function"&&(h.preventDefault(),S=c?lm(n,c):new FormData(n),ir(a,{pending:!0,data:S,method:n.method,action:s},s,S))},currentTarget:n}]})}}for(var qr=0;qr<Eu.length;qr++){var Yr=Eu[qr],Kp=Yr.toLowerCase(),Jp=Yr[0].toUpperCase()+Yr.slice(1);Ut(Kp,"on"+Jp)}Ut(Rc,"onAnimationEnd"),Ut(Dc,"onAnimationIteration"),Ut(Bc,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(cp,"onTransitionRun"),Ut(fp,"onTransitionStart"),Ut(dp,"onTransitionCancel"),Ut(Uc,"onTransitionEnd"),El("onMouseEnter",["mouseout","mouseover"]),El("onMouseLeave",["mouseout","mouseover"]),El("onPointerEnter",["pointerout","pointerover"]),El("onPointerLeave",["pointerout","pointerover"]),Wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vn="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(" "),$p=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vn));function nm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var c=l.length-1;0<=c;c--){var h=l[c],S=h.instance,A=h.currentTarget;if(h=h.listener,S!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=A;try{s(n)}catch(H){wi(H)}n.currentTarget=null,s=S}else for(c=0;c<l.length;c++){if(h=l[c],S=h.instance,A=h.currentTarget,h=h.listener,S!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=A;try{s(n)}catch(H){wi(H)}n.currentTarget=null,s=S}}}}function ye(e,t){var a=t[eu];a===void 0&&(a=t[eu]=new Set);var l=e+"__bubble";a.has(l)||(im(t,e,2,!1),a.add(l))}function Gr(e,t,a){var l=0;t&&(l|=4),im(a,e,l,t)}var ps="_reactListening"+Math.random().toString(36).slice(2);function Xr(e){if(!e[ps]){e[ps]=!0,Wo.forEach(function(a){a!=="selectionchange"&&($p.has(a)||Gr(a,!1,e),Gr(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ps]||(t[ps]=!0,Gr("selectionchange",!1,t))}}function im(e,t,a,l){switch(Dm(t)){case 2:var n=_y;break;case 8:n=Ty;break;default:n=no}a=n.bind(null,t,a,e),n=void 0,!ou||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function Qr(e,t,a,l,n){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var c=l.tag;if(c===3||c===4){var h=l.stateNode.containerInfo;if(h===n)break;if(c===4)for(c=l.return;c!==null;){var S=c.tag;if((S===3||S===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;h!==null;){if(c=xl(h),c===null)return;if(S=c.tag,S===5||S===6||S===26||S===27){l=s=c;continue e}h=h.parentNode}}l=l.return}oc(function(){var A=s,H=uu(a),Q=[];e:{var w=Lc.get(e);if(w!==void 0){var O=ji,W=e;switch(e){case"keypress":if(Ti(a)===0)break e;case"keydown":case"keyup":O=G0;break;case"focusin":W="focus",O=mu;break;case"focusout":W="blur",O=mu;break;case"beforeblur":case"afterblur":O=mu;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":O=dc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=z0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=V0;break;case Rc:case Dc:case Bc:O=R0;break;case Uc:O=K0;break;case"scroll":case"scrollend":O=A0;break;case"wheel":O=$0;break;case"copy":case"cut":case"paste":O=B0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=hc;break;case"toggle":case"beforetoggle":O=W0}var ne=(t&4)!==0,we=!ne&&(e==="scroll"||e==="scrollend"),N=ne?w!==null?w+"Capture":null:w;ne=[];for(var T=A,C;T!==null;){var G=T;if(C=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||C===null||N===null||(G=mn(T,N),G!=null&&ne.push(Zn(T,G,C))),we)break;T=T.return}0<ne.length&&(w=new O(w,W,null,a,H),Q.push({event:w,listeners:ne}))}}if((t&7)===0){e:{if(w=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",w&&a!==su&&(W=a.relatedTarget||a.fromElement)&&(xl(W)||W[vl]))break e;if((O||w)&&(w=H.window===H?H:(w=H.ownerDocument)?w.defaultView||w.parentWindow:window,O?(W=a.relatedTarget||a.toElement,O=A,W=W?xl(W):null,W!==null&&(we=m(W),ne=W.tag,W!==we||ne!==5&&ne!==27&&ne!==6)&&(W=null)):(O=null,W=A),O!==W)){if(ne=dc,G="onMouseLeave",N="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ne=hc,G="onPointerLeave",N="onPointerEnter",T="pointer"),we=O==null?w:dn(O),C=W==null?w:dn(W),w=new ne(G,T+"leave",O,a,H),w.target=we,w.relatedTarget=C,G=null,xl(H)===A&&(ne=new ne(N,T+"enter",W,a,H),ne.target=C,ne.relatedTarget=we,G=ne),we=G,O&&W)t:{for(ne=Fp,N=O,T=W,C=0,G=N;G;G=ne(G))C++;G=0;for(var le=T;le;le=ne(le))G++;for(;0<C-G;)N=ne(N),C--;for(;0<G-C;)T=ne(T),G--;for(;C--;){if(N===T||T!==null&&N===T.alternate){ne=N;break t}N=ne(N),T=ne(T)}ne=null}else ne=null;O!==null&&sm(Q,w,O,ne,!1),W!==null&&we!==null&&sm(Q,we,W,ne,!0)}}e:{if(w=A?dn(A):window,O=w.nodeName&&w.nodeName.toLowerCase(),O==="select"||O==="input"&&w.type==="file")var be=Ec;else if(bc(w))if(_c)be=up;else{be=ip;var P=np}else O=w.nodeName,!O||O.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?A&&iu(A.elementType)&&(be=Ec):be=sp;if(be&&(be=be(e,A))){Sc(Q,be,a,H);break e}P&&P(e,w,A),e==="focusout"&&A&&w.type==="number"&&A.memoizedProps.value!=null&&nu(w,"number",w.value)}switch(P=A?dn(A):window,e){case"focusin":(bc(P)||P.contentEditable==="true")&&(Al=P,xu=A,Sn=null);break;case"focusout":Sn=xu=Al=null;break;case"mousedown":bu=!0;break;case"contextmenu":case"mouseup":case"dragend":bu=!1,Mc(Q,a,H);break;case"selectionchange":if(op)break;case"keydown":case"keyup":Mc(Q,a,H)}var me;if(pu)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Cl?vc(e,a)&&(ve="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ve="onCompositionStart");ve&&(pc&&a.locale!=="ko"&&(Cl||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Cl&&(me=cc()):(Sa=H,cu="value"in Sa?Sa.value:Sa.textContent,Cl=!0)),P=ys(A,ve),0<P.length&&(ve=new mc(ve,e,null,a,H),Q.push({event:ve,listeners:P}),me?ve.data=me:(me=xc(a),me!==null&&(ve.data=me)))),(me=P0?ep(e,a):tp(e,a))&&(ve=ys(A,"onBeforeInput"),0<ve.length&&(P=new mc("onBeforeInput","beforeinput",null,a,H),Q.push({event:P,listeners:ve}),P.data=me)),Zp(Q,e,A,a,H)}nm(Q,t)})}function Zn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ys(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=mn(e,a),n!=null&&l.unshift(Zn(e,n,s)),n=mn(e,t),n!=null&&l.push(Zn(e,n,s))),e.tag===3)return l;e=e.return}return[]}function Fp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function sm(e,t,a,l,n){for(var s=t._reactName,c=[];a!==null&&a!==l;){var h=a,S=h.alternate,A=h.stateNode;if(h=h.tag,S!==null&&S===l)break;h!==5&&h!==26&&h!==27||A===null||(S=A,n?(A=mn(a,s),A!=null&&c.unshift(Zn(a,A,S))):n||(A=mn(a,s),A!=null&&c.push(Zn(a,A,S)))),a=a.return}c.length!==0&&e.push({event:t,listeners:c})}var Wp=/\r\n?/g,Ip=/\u0000|\uFFFD/g;function um(e){return(typeof e=="string"?e:""+e).replace(Wp,`
`).replace(Ip,"")}function rm(e,t){return t=um(t),um(e)===t}function Ae(e,t,a,l,n,s){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Tl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Tl(e,""+l);break;case"className":bi(e,"class",l);break;case"tabIndex":bi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":bi(e,a,l);break;case"style":uc(e,l,s);break;case"data":if(t!=="object"){bi(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=Ei(""+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 s=="function"&&(a==="formAction"?(t!=="input"&&Ae(e,t,"name",n.name,n,null),Ae(e,t,"formEncType",n.formEncType,n,null),Ae(e,t,"formMethod",n.formMethod,n,null),Ae(e,t,"formTarget",n.formTarget,n,null)):(Ae(e,t,"encType",n.encType,n,null),Ae(e,t,"method",n.method,n,null),Ae(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ei(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=$t);break;case"onScroll":l!=null&&ye("scroll",e);break;case"onScrollEnd":l!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(r(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=Ei(""+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":ye("beforetoggle",e),ye("toggle",e),xi(e,"popover",l);break;case"xlinkActuate":Jt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Jt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Jt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Jt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Jt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Jt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":xi(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=j0.get(a)||a,xi(e,a,l))}}function Vr(e,t,a,l,n,s){switch(a){case"style":uc(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Tl(e,l):(typeof l=="number"||typeof l=="bigint")&&Tl(e,""+l);break;case"onScroll":l!=null&&ye("scroll",e);break;case"onScrollEnd":l!=null&&ye("scrollend",e);break;case"onClick":l!=null&&(e.onclick=$t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Io.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),s=e[st]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,n),typeof l=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):xi(e,a,l)}}}function et(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("load",e);var l=!1,n=!1,s;for(s in a)if(a.hasOwnProperty(s)){var c=a[s];if(c!=null)switch(s){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ae(e,t,s,c,a,null)}}n&&Ae(e,t,"srcSet",a.srcSet,a,null),l&&Ae(e,t,"src",a.src,a,null);return;case"input":ye("invalid",e);var h=s=c=n=null,S=null,A=null;for(l in a)if(a.hasOwnProperty(l)){var H=a[l];if(H!=null)switch(l){case"name":n=H;break;case"type":c=H;break;case"checked":S=H;break;case"defaultChecked":A=H;break;case"value":s=H;break;case"defaultValue":h=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:Ae(e,t,l,H,a,null)}}lc(e,s,h,S,A,c,n,!1);return;case"select":ye("invalid",e),l=c=s=null;for(n in a)if(a.hasOwnProperty(n)&&(h=a[n],h!=null))switch(n){case"value":s=h;break;case"defaultValue":c=h;break;case"multiple":l=h;default:Ae(e,t,n,h,a,null)}t=s,a=c,e.multiple=!!l,t!=null?_l(e,!!l,t,!1):a!=null&&_l(e,!!l,a,!0);return;case"textarea":ye("invalid",e),s=n=l=null;for(c in a)if(a.hasOwnProperty(c)&&(h=a[c],h!=null))switch(c){case"value":l=h;break;case"defaultValue":n=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:Ae(e,t,c,h,a,null)}ic(e,l,n,s);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(l=a[S],l!=null))switch(S){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ae(e,t,S,l,a,null)}return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(l=0;l<Vn.length;l++)ye(Vn[l],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("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(A in a)if(a.hasOwnProperty(A)&&(l=a[A],l!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ae(e,t,A,l,a,null)}return;default:if(iu(t)){for(H in a)a.hasOwnProperty(H)&&(l=a[H],l!==void 0&&Vr(e,t,H,l,a,void 0));return}}for(h in a)a.hasOwnProperty(h)&&(l=a[h],l!=null&&Ae(e,t,h,l,a,null))}function Pp(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 n=null,s=null,c=null,h=null,S=null,A=null,H=null;for(O in a){var Q=a[O];if(a.hasOwnProperty(O)&&Q!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":S=Q;default:l.hasOwnProperty(O)||Ae(e,t,O,null,l,Q)}}for(var w in l){var O=l[w];if(Q=a[w],l.hasOwnProperty(w)&&(O!=null||Q!=null))switch(w){case"type":s=O;break;case"name":n=O;break;case"checked":A=O;break;case"defaultChecked":H=O;break;case"value":c=O;break;case"defaultValue":h=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:O!==Q&&Ae(e,t,w,O,l,Q)}}lu(e,c,h,S,A,H,s,n);return;case"select":O=c=h=w=null;for(s in a)if(S=a[s],a.hasOwnProperty(s)&&S!=null)switch(s){case"value":break;case"multiple":O=S;default:l.hasOwnProperty(s)||Ae(e,t,s,null,l,S)}for(n in l)if(s=l[n],S=a[n],l.hasOwnProperty(n)&&(s!=null||S!=null))switch(n){case"value":w=s;break;case"defaultValue":h=s;break;case"multiple":c=s;default:s!==S&&Ae(e,t,n,s,l,S)}t=h,a=c,l=O,w!=null?_l(e,!!a,w,!1):!!l!=!!a&&(t!=null?_l(e,!!a,t,!0):_l(e,!!a,a?[]:"",!1));return;case"textarea":O=w=null;for(h in a)if(n=a[h],a.hasOwnProperty(h)&&n!=null&&!l.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Ae(e,t,h,null,l,n)}for(c in l)if(n=l[c],s=a[c],l.hasOwnProperty(c)&&(n!=null||s!=null))switch(c){case"value":w=n;break;case"defaultValue":O=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==s&&Ae(e,t,c,n,l,s)}nc(e,w,O);return;case"option":for(var W in a)if(w=a[W],a.hasOwnProperty(W)&&w!=null&&!l.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Ae(e,t,W,null,l,w)}for(S in l)if(w=l[S],O=a[S],l.hasOwnProperty(S)&&w!==O&&(w!=null||O!=null))switch(S){case"selected":e.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Ae(e,t,S,w,l,O)}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 ne in a)w=a[ne],a.hasOwnProperty(ne)&&w!=null&&!l.hasOwnProperty(ne)&&Ae(e,t,ne,null,l,w);for(A in l)if(w=l[A],O=a[A],l.hasOwnProperty(A)&&w!==O&&(w!=null||O!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(137,t));break;default:Ae(e,t,A,w,l,O)}return;default:if(iu(t)){for(var we in a)w=a[we],a.hasOwnProperty(we)&&w!==void 0&&!l.hasOwnProperty(we)&&Vr(e,t,we,void 0,l,w);for(H in l)w=l[H],O=a[H],!l.hasOwnProperty(H)||w===O||w===void 0&&O===void 0||Vr(e,t,H,w,l,O);return}}for(var N in a)w=a[N],a.hasOwnProperty(N)&&w!=null&&!l.hasOwnProperty(N)&&Ae(e,t,N,null,l,w);for(Q in l)w=l[Q],O=a[Q],!l.hasOwnProperty(Q)||w===O||w==null&&O==null||Ae(e,t,Q,w,l,O)}function om(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ey(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],s=n.transferSize,c=n.initiatorType,h=n.duration;if(s&&h&&om(c)){for(c=0,h=n.responseEnd,l+=1;l<a.length;l++){var S=a[l],A=S.startTime;if(A>h)break;var H=S.transferSize,Q=S.initiatorType;H&&om(Q)&&(S=S.responseEnd,c+=H*(S<h?1:(h-A)/(S-A)))}if(--l,t+=8*(s+c)/(n.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 Zr=null,Kr=null;function gs(e){return e.nodeType===9?e:e.ownerDocument}function cm(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 fm(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 Jr(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 $r=null;function ty(){var e=window.event;return e&&e.type==="popstate"?e===$r?!1:($r=e,!0):($r=null,!1)}var dm=typeof setTimeout=="function"?setTimeout:void 0,ay=typeof clearTimeout=="function"?clearTimeout:void 0,mm=typeof Promise=="function"?Promise:void 0,ly=typeof queueMicrotask=="function"?queueMicrotask:typeof mm<"u"?function(e){return mm.resolve(null).then(e).catch(ny)}:dm;function ny(e){setTimeout(function(){throw e})}function Ha(e){return e==="head"}function hm(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),tn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Kn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Kn(a);for(var s=a.firstChild;s;){var c=s.nextSibling,h=s.nodeName;s[fn]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=c}}else a==="body"&&Kn(e.ownerDocument.body);a=n}while(a);tn(t)}function pm(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 Fr(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":Fr(a),tu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function iy(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[fn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Rt(e.nextSibling),e===null)break}return null}function sy(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Rt(e.nextSibling),e===null))return null;return e}function ym(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Rt(e.nextSibling),e===null))return null;return e}function Wr(e){return e.data==="$?"||e.data==="$~"}function Ir(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function uy(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 Rt(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 Pr=null;function gm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Rt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function vm(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 xm(e,t,a){switch(t=gs(a),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Kn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);tu(e)}var Dt=new Map,bm=new Set;function vs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fa=$.d;$.d={f:ry,r:oy,D:cy,C:fy,L:dy,m:my,X:py,S:hy,M:yy};function ry(){var e=fa.f(),t=os();return e||t}function oy(e){var t=bl(e);t!==null&&t.tag===5&&t.type==="form"?Lf(t):fa.r(e)}var Il=typeof document>"u"?null:document;function Sm(e,t,a){var l=Il;if(l&&typeof t=="string"&&t){var n=jt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),bm.has(n)||(bm.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),et(t,"link",e),Je(t),l.head.appendChild(t)))}}function cy(e){fa.D(e),Sm("dns-prefetch",e,null)}function fy(e,t){fa.C(e,t),Sm("preconnect",e,t)}function dy(e,t,a){fa.L(e,t,a);var l=Il;if(l&&e&&t){var n='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+jt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+jt(a.imageSizes)+'"]')):n+='[href="'+jt(e)+'"]';var s=n;switch(t){case"style":s=Pl(e);break;case"script":s=en(e)}Dt.has(s)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Dt.set(s,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Jn(s))||t==="script"&&l.querySelector($n(s))||(t=l.createElement("link"),et(t,"link",e),Je(t),l.head.appendChild(t)))}}function my(e,t){fa.m(e,t);var a=Il;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+jt(l)+'"][href="'+jt(e)+'"]',s=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=en(e)}if(!Dt.has(s)&&(e=b({rel:"modulepreload",href:e},t),Dt.set(s,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector($n(s)))return}l=a.createElement("link"),et(l,"link",e),Je(l),a.head.appendChild(l)}}}function hy(e,t,a){fa.S(e,t,a);var l=Il;if(l&&e){var n=Sl(l).hoistableStyles,s=Pl(e);t=t||"default";var c=n.get(s);if(!c){var h={loading:0,preload:null};if(c=l.querySelector(Jn(s)))h.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Dt.get(s))&&eo(e,a);var S=c=l.createElement("link");Je(S),et(S,"link",e),S._p=new Promise(function(A,H){S.onload=A,S.onerror=H}),S.addEventListener("load",function(){h.loading|=1}),S.addEventListener("error",function(){h.loading|=2}),h.loading|=4,xs(c,t,l)}c={type:"stylesheet",instance:c,count:1,state:h},n.set(s,c)}}}function py(e,t){fa.X(e,t);var a=Il;if(a&&e){var l=Sl(a).hoistableScripts,n=en(e),s=l.get(n);s||(s=a.querySelector($n(n)),s||(e=b({src:e,async:!0},t),(t=Dt.get(n))&&to(e,t),s=a.createElement("script"),Je(s),et(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(n,s))}}function yy(e,t){fa.M(e,t);var a=Il;if(a&&e){var l=Sl(a).hoistableScripts,n=en(e),s=l.get(n);s||(s=a.querySelector($n(n)),s||(e=b({src:e,async:!0,type:"module"},t),(t=Dt.get(n))&&to(e,t),s=a.createElement("script"),Je(s),et(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(n,s))}}function Em(e,t,a,l){var n=(n=he.current)?vs(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Pl(a.href),a=Sl(n).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=Pl(a.href);var s=Sl(n).hoistableStyles,c=s.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,c),(s=n.querySelector(Jn(e)))&&!s._p&&(c.instance=s,c.state.loading=5),Dt.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},Dt.set(e,a),s||gy(n,e,a,c.state))),t&&l===null)throw Error(r(528,""));return c}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=en(a),a=Sl(n).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(r(444,e))}}function Pl(e){return'href="'+jt(e)+'"'}function Jn(e){return'link[rel="stylesheet"]['+e+"]"}function _m(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function gy(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}),et(t,"link",a),Je(t),e.head.appendChild(t))}function en(e){return'[src="'+jt(e)+'"]'}function $n(e){return"script[async]"+e}function Tm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+jt(a.href)+'"]');if(l)return t.instance=l,Je(l),l;var n=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Je(l),et(l,"style",n),xs(l,a.precedence,e),t.instance=l;case"stylesheet":n=Pl(a.href);var s=e.querySelector(Jn(n));if(s)return t.state.loading|=4,t.instance=s,Je(s),s;l=_m(a),(n=Dt.get(n))&&eo(l,n),s=(e.ownerDocument||e).createElement("link"),Je(s);var c=s;return c._p=new Promise(function(h,S){c.onload=h,c.onerror=S}),et(s,"link",l),t.state.loading|=4,xs(s,a.precedence,e),t.instance=s;case"script":return s=en(a.src),(n=e.querySelector($n(s)))?(t.instance=n,Je(n),n):(l=a,(n=Dt.get(s))&&(l=b({},a),to(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Je(n),et(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,xs(l,a.precedence,e));return t.instance}function xs(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,s=n,c=0;c<l.length;c++){var h=l[c];if(h.dataset.precedence===t)s=h;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function eo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function to(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bs=null;function Nm(e,t,a){if(bs===null){var l=new Map,n=bs=new Map;n.set(a,l)}else n=bs,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var s=a[n];if(!(s[fn]||s[Fe]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var c=s.getAttribute(t)||"";c=e+c;var h=l.get(c);h?h.push(s):l.set(c,[s])}}return l}function jm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function vy(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 Cm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function xy(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 n=Pl(l.href),s=t.querySelector(Jn(n));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ss.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,Je(s);return}s=t.ownerDocument||t,l=_m(l),(n=Dt.get(n))&&eo(l,n),s=s.createElement("link"),Je(s);var c=s;c._p=new Promise(function(h,S){c.onload=h,c.onerror=S}),et(s,"link",l),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ss.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ao=0;function by(e,t){return e.stylesheets&&e.count===0&&_s(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&_s(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&ao===0&&(ao=62500*ey());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&_s(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>ao?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function Ss(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_s(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Es=null;function _s(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Es=new Map,t.forEach(Sy,e),Es=null,Ss.call(e))}function Sy(e,t){if(!(t.state.loading&4)){var a=Es.get(e);if(a)var l=a.get(null);else{a=new Map,Es.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var c=n[s];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(a.set(c.dataset.precedence,c),l=c)}l&&a.set(null,l)}n=t.instance,c=n.getAttribute("data-precedence"),s=a.get(c)||l,s===l&&a.set(null,n),a.set(c,n),this.count++,l=Ss.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Fn={$$typeof:M,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function Ey(e,t,a,l,n,s,c,h,S){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=Ws(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ws(0),this.hiddenUpdates=Ws(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Am(e,t,a,l,n,s,c,h,S,A,H,Q){return e=new Ey(e,t,a,c,S,A,H,Q,h),t=1,s===!0&&(t|=24),s=gt(3,null,null,t),e.current=s,s.stateNode=e,t=Bu(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:a,cache:t},ku(s),e}function wm(e){return e?(e=Ml,e):Ml}function zm(e,t,a,l,n,s){n=wm(n),l.context===null?l.context=n:l.pendingContext=n,l=Ca(t),l.payload={element:a},s=s===void 0?null:s,s!==null&&(l.callback=s),a=Aa(e,l,t),a!==null&&(dt(a,e,t),An(a,e,t))}function Mm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function lo(e,t){Mm(e,t),(e=e.alternate)&&Mm(e,t)}function Om(e){if(e.tag===13||e.tag===31){var t=tl(e,67108864);t!==null&&dt(t,e,67108864),lo(e,67108864)}}function Rm(e){if(e.tag===13||e.tag===31){var t=Et();t=Is(t);var a=tl(e,t);a!==null&&dt(a,e,t),lo(e,t)}}var Ts=!0;function _y(e,t,a,l){var n=R.T;R.T=null;var s=$.p;try{$.p=2,no(e,t,a,l)}finally{$.p=s,R.T=n}}function Ty(e,t,a,l){var n=R.T;R.T=null;var s=$.p;try{$.p=8,no(e,t,a,l)}finally{$.p=s,R.T=n}}function no(e,t,a,l){if(Ts){var n=io(l);if(n===null)Qr(e,t,l,Ns,a),Bm(e,l);else if(jy(n,e,t,a,l))l.stopPropagation();else if(Bm(e,l),t&4&&-1<Ny.indexOf(e)){for(;n!==null;){var s=bl(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var c=Fa(s.pendingLanes);if(c!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;c;){var S=1<<31-pt(c);h.entanglements[1]|=S,c&=~S}Zt(s),(Ee&6)===0&&(us=mt()+500,Qn(0))}}break;case 31:case 13:h=tl(s,2),h!==null&&dt(h,s,2),os(),lo(s,2)}if(s=io(l),s===null&&Qr(e,t,l,Ns,a),s===n)break;n=s}n!==null&&l.stopPropagation()}else Qr(e,t,l,null,a)}}function io(e){return e=uu(e),so(e)}var Ns=null;function so(e){if(Ns=null,e=xl(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=p(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 Ns=e,null}function Dm(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(c0()){case Yo:return 2;case Go:return 8;case hi:case f0:return 32;case Xo:return 268435456;default:return 32}default:return 32}}var uo=!1,ka=null,qa=null,Ya=null,Wn=new Map,In=new Map,Ga=[],Ny="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 Bm(e,t){switch(e){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":Wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":In.delete(t.pointerId)}}function Pn(e,t,a,l,n,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:s,targetContainers:[n]},t!==null&&(t=bl(t),t!==null&&Om(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function jy(e,t,a,l,n){switch(t){case"focusin":return ka=Pn(ka,e,t,a,l,n),!0;case"dragenter":return qa=Pn(qa,e,t,a,l,n),!0;case"mouseover":return Ya=Pn(Ya,e,t,a,l,n),!0;case"pointerover":var s=n.pointerId;return Wn.set(s,Pn(Wn.get(s)||null,e,t,a,l,n)),!0;case"gotpointercapture":return s=n.pointerId,In.set(s,Pn(In.get(s)||null,e,t,a,l,n)),!0}return!1}function Um(e){var t=xl(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=p(a),t!==null){e.blockedOn=t,$o(e.priority,function(){Rm(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,$o(e.priority,function(){Rm(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 js(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=io(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);su=l,a.target.dispatchEvent(l),su=null}else return t=bl(a),t!==null&&Om(t),e.blockedOn=a,!1;t.shift()}return!0}function Lm(e,t,a){js(e)&&a.delete(t)}function Cy(){uo=!1,ka!==null&&js(ka)&&(ka=null),qa!==null&&js(qa)&&(qa=null),Ya!==null&&js(Ya)&&(Ya=null),Wn.forEach(Lm),In.forEach(Lm)}function Cs(e,t){e.blockedOn===t&&(e.blockedOn=null,uo||(uo=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Cy)))}var As=null;function Hm(e){As!==e&&(As=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){As===e&&(As=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(so(l||a)===null)continue;break}var s=bl(a);s!==null&&(e.splice(t,3),t-=3,ir(s,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function tn(e){function t(S){return Cs(S,e)}ka!==null&&Cs(ka,e),qa!==null&&Cs(qa,e),Ya!==null&&Cs(Ya,e),Wn.forEach(t),In.forEach(t);for(var a=0;a<Ga.length;a++){var l=Ga[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ga.length&&(a=Ga[0],a.blockedOn===null);)Um(a),a.blockedOn===null&&Ga.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],s=a[l+1],c=n[st]||null;if(typeof s=="function")c||Hm(a);else if(c){var h=null;if(s&&s.hasAttribute("formAction")){if(n=s,c=s[st]||null)h=c.formAction;else if(so(n)!==null)continue}else h=c.action;typeof h=="function"?a[l+1]=h:(a.splice(l,3),l-=3),Hm(a)}}}function km(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=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),n!==null&&(n(),n=null)}}}function ro(e){this._internalRoot=e}ws.prototype.render=ro.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,l=Et();zm(a,l,e,t,null,null)},ws.prototype.unmount=ro.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zm(e.current,2,null,e,null,null),os(),t[vl]=null}};function ws(e){this._internalRoot=e}ws.prototype.unstable_scheduleHydration=function(e){if(e){var t=Jo();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ga.length&&t!==0&&t<Ga[a].priority;a++);Ga.splice(a,0,e),a===0&&Um(e)}};var qm=u.version;if(qm!=="19.2.3")throw Error(r(527,qm,"19.2.3"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var Ay={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zs.isDisabled&&zs.supportsFiber)try{rn=zs.inject(Ay),ht=zs}catch{}}return ti.createRoot=function(e,t){if(!d(e))throw Error(r(299));var a=!1,l="",n=Kf,s=Jf,c=$f;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Am(e,1,!1,null,null,a,l,null,n,s,c,km),e[vl]=t.current,Xr(e),new ro(t)},ti.hydrateRoot=function(e,t,a){if(!d(e))throw Error(r(299));var l=!1,n="",s=Kf,c=Jf,h=$f,S=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Am(e,1,!0,t,a??null,l,n,S,s,c,h,km),t.context=wm(null),a=t.current,l=Et(),l=Is(l),n=Ca(l),n.callback=null,Aa(a,n,l),a=l,t.current.lanes=a,cn(t,a),Zt(t),e[vl]=t.current,Xr(e),new ws(t)},ti.version="19.2.3",ti}var Fm;function Hy(){if(Fm)return co.exports;Fm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(u){console.error(u)}}return i(),co.exports=Ly(),co.exports}var ky=Hy();const qy=dh(ky);var x=Oo();const Be=dh(x),mh="/express/assets/no_image-DuvbomyT.png";function qt(i){return Intl.NumberFormat("es-CL",{style:"currency",currency:"CLP"}).format(i)}const hh=x.createContext(void 0),si=()=>{const i=x.useContext(hh);if(!i)throw new Error("useDialog debe ser usado dentro de un DialogProvider");return i},Yy=({children:i})=>{var te,V,ee,ue,Oe,_e,Me,R,$,ae;const[u,o]=x.useState(!1),[r,d]=x.useState({type:"confirm"}),[m,p]=x.useState(""),[v,g]=x.useState(!1),[y,E]=x.useState({}),[b,j]=x.useState(!1),[z,q]=x.useState({method:()=>{}}),D=x.useRef(()=>{}),X=x.useRef(null),B=ie=>{const ce=Math.min(window.innerWidth-32,400),_=500,L=(window.innerHeight-_)/2,J=(window.innerWidth-ce)/2;return{top:`${L}px`,left:`${J}px`,width:`${ce}px`,height:`${_}px`,opacity:1,borderRadius:"16px"}},k=x.useCallback((ie,ce,_)=>{var L;return d({type:"confirm",message:ie,icon:ce,options:_}),g(((L=_==null?void 0:_.checkboxOptions)==null?void 0:L.defaultChecked)||!1),o(!0),new Promise(J=>{D.current=J})},[]),M=x.useCallback((ie,ce,_)=>{var L;return d({type:"prompt",message:ie,icon:ce,options:_}),p((_==null?void 0:_.defaultValue)||""),g(((L=_==null?void 0:_.checkboxOptions)==null?void 0:L.defaultChecked)||!1),o(!0),setTimeout(()=>{var J;return(J=X.current)==null?void 0:J.focus()},50),new Promise(J=>{D.current=J})},[]),U=x.useCallback((ie,ce,_)=>(d({type:"choose",message:ie,icon:ce,options:_}),o(!0),new Promise(L=>{D.current=L})),[]),Z=x.useCallback((ie,ce,_)=>(d({type:"product",options:{product:ie,originRect:_}}),_?(j(!0),E({position:"fixed",top:`${_.top}px`,left:`${_.left}px`,width:`${_.width}px`,height:`${_.height}px`,opacity:0,zIndex:50,filter:"blur(50px)",borderRadius:"12px",overflow:"hidden",transition:"all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)"}),o(!0),q({method:()=>ce(ie)}),setTimeout(()=>{E(L=>({...L,...B(),filter:"blur(0px)",opacity:1,height:"auto",minHeight:"400px"})),setTimeout(()=>j(!1),300)},10)):o(!0),new Promise(L=>{D.current=L})),[]);x.useCallback(()=>{z.method(),K()},[z]);const K=x.useCallback((ie=null)=>{o(!1),D.current(ie),setTimeout(()=>E({}),300)},[z]),Y=ie=>{var _,L;ie.key==="Escape"&&K(!1);const ce=((L=(_=r.options)==null?void 0:_.checkboxOptions)==null?void 0:L.required)&&!v;r.type==="prompt"&&ie.key==="Enter"&&!ce&&K(m)},F=((V=(te=r.options)==null?void 0:te.checkboxOptions)==null?void 0:V.required)&&!v;return f.jsxs(hh.Provider,{value:{confirm:k,prompt:M,choose:U,showProduct:Z},children:[i,u&&f.jsxs("div",{"aria-modal":"true",className:"fixed inset-0 z-50 flex items-center justify-center px-4",role:"dialog",children:[f.jsx("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-sm transition-opacity duration-300 animate-in fade-in",onClick:()=>K(null)}),r.type==="product"&&((ee=r.options)!=null&&ee.product)?f.jsxs("div",{style:y,className:"bg-[#201512] border border-white/10 shadow-2xl flex flex-col relative",children:[f.jsxs("div",{className:"h-48 w-full relative shrink-0",children:[f.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url("${r.options.product.image||mh}")`}}),f.jsx("button",{onClick:()=>K(),className:"absolute top-2 right-2 bg-black/50 hover:bg-black/70 text-white rounded-full p-1 transition-colors z-10",children:f.jsx("span",{className:"material-symbols-outlined text-xl",children:"close"})})]}),f.jsxs("div",{className:`p-6 flex flex-col flex-1 transition-opacity duration-300 delay-100 ${b?"opacity-0":"opacity-100"}`,children:[f.jsxs("div",{className:"flex justify-between items-start mb-2",children:[f.jsx("h2",{className:"text-2xl font-bold text-white font-display",children:r.options.product.name}),f.jsx("span",{className:"text-xl font-bold text-[#a33f1e]",children:qt(r.options.product.price)})]}),f.jsx("p",{className:"text-gray-300 text-sm leading-relaxed mb-6",children:r.options.product.description}),f.jsx("div",{className:"mt-auto"})]})]}):f.jsxs("div",{className:`relative bg-[#201512] rounded-2xl border border-white/10 shadow-2xl w-full transform transition-all p-6 overflow-hidden animate-in fade-in zoom-in duration-200 ${r.type==="choose"&&((ue=r.options)==null?void 0:ue.style)==="block"?"max-w-md":"max-w-xs"}`,children:[f.jsx("div",{className:"flex justify-center mb-4",children:f.jsx("div",{className:"bg-[#a33f1e]/20 p-3 rounded-full",children:f.jsx("span",{className:"material-symbols-outlined text-[#a33f1e] text-3xl select-none",children:r.icon})})}),f.jsx("p",{className:"text-white text-lg font-bold text-center mb-2 font-display leading-tight",children:r.message}),r.type==="prompt"&&f.jsx("div",{className:"mb-6 mt-4",children:f.jsx("input",{ref:X,type:((Oe=r.options)==null?void 0:Oe.inputType)||"text",value:m,onChange:ie=>p(ie.target.value),onKeyDown:Y,placeholder:(_e=r.options)==null?void 0:_e.placeholder,className:"w-full bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-white placeholder-white/30 focus:outline-none focus:border-[#a33f1e] transition-all"})}),((Me=r.options)==null?void 0:Me.checkboxOptions)&&f.jsxs("div",{className:"mt-4 flex items-start gap-3  p-3 rounded-xl  cursor-pointer hover:bg-white/10 transition-colors",onClick:()=>g(!v),children:[f.jsx("div",{className:`mt-0.5 w-5 h-5 aspect-square rounded border flex items-center justify-center transition-all ${v?"bg-[#a33f1e] border-[#a33f1e]":"border-white/30"}`,children:v&&f.jsx("span",{className:"material-symbols-outlined text-white text-sm font-bold",children:"check"})}),f.jsx("span",{className:"text-sm text-gray-300 select-none leading-tight",children:r.options.checkboxOptions.label})]}),r.type==="choose"&&((R=r.options)==null?void 0:R.choices)&&f.jsx("div",{className:`mt-6 ${r.options.style==="block"?"grid grid-cols-2 gap-3":"flex flex-col space-y-2"}`,children:r.options.choices.map(ie=>{var ce;return f.jsx("button",{onClick:()=>{o(!1),D.current(ie.value)},className:`group relative overflow-hidden rounded-xl border border-white/10 transition-all hover:border-[#a33f1e]/50 hover:bg-white/5 ${((ce=r.options)==null?void 0:ce.style)==="block"?"flex flex-col items-center p-4":"flex items-center w-full p-3"}`,children:f.jsx("span",{className:"text-white text-sm",children:ie.label})},ie.value)})}),f.jsxs("div",{className:`grid ${r.type==="choose"?"grid-cols-1 mt-6":"grid-cols-2 gap-3 mt-6"}`,children:[f.jsx("button",{onClick:()=>K(!1),className:"px-4 py-3 rounded-xl border border-white/20 text-white text-sm hover:bg-white/5",children:(($=r.options)==null?void 0:$.cancelText)||"Cancelar"}),r.type!=="choose"&&f.jsx("button",{disabled:F,onClick:()=>K(r.type==="prompt"?m:!0),className:`px-4 py-3 rounded-xl text-white text-sm transition-all
                      ${F?"bg-gray-600 opacity-50 cursor-not-allowed":"bg-[#a33f1e] hover:bg-[#8f3322]"}
                    `,children:((ae=r.options)==null?void 0:ae.confirmText)||(r.type==="prompt"?"Aceptar":"Sí")})]})]})]})]})},Gy=({product:i,onAdd:u})=>{const o=si(),r=d=>{const m=d.currentTarget.getBoundingClientRect();o.showProduct(i,u,m)};return f.jsxs("div",{onClick:r,className:"group bg-[#2a201c] rounded-xl overflow-hidden border border-white/5 flex flex-col h-full shadow-md hover:border-white/10 transition-colors cursor-pointer",children:[f.jsxs("div",{className:"aspect-square w-full relative overflow-hidden bg-gray-800",children:[f.jsx("div",{className:"absolute inset-0 bg-cover bg-center transition-transform duration-500 group-hover:scale-110",style:{backgroundImage:`url("${i.image||mh}")`}}),i.badges&&i.badges.length>0&&f.jsx("div",{className:"absolute top-2 left-2 flex flex-col gap-1 z-10 pointer-events-none",children:i.badges.map((d,m)=>f.jsx("span",{className:`${d.color} text-white text-[10px] font-bold px-2 py-0.5 rounded uppercase tracking-wide shadow-sm w-fit`,children:d.text},`${d.text}-${m}`))})]}),f.jsxs("div",{className:"p-3 flex flex-col flex-1",children:[f.jsx("h3",{className:"text-white font-bold text-lg leading-tight mb-1 group-hover:text-[#a33f1e] transition-colors",children:i.name}),f.jsx("p",{className:"text-gray-400 text-xs line-clamp-2 mb-3 leading-relaxed",children:i.description}),f.jsx("div",{className:"mt-auto flex items-center justify-between",children:f.jsx("span",{className:"text-white font-bold text-lg",children:qt(i.price)})})]})]})};function Xy(i,u=500){const[o,r]=x.useState(i);return x.useEffect(()=>{const d=setTimeout(()=>{r(i)},u);return()=>{clearTimeout(d)}},[i,u]),o}function pa(i){return Array.isArray?Array.isArray(i):gh(i)==="[object Array]"}function Qy(i){if(typeof i=="string")return i;let u=i+"";return u=="0"&&1/i==-1/0?"-0":u}function Vy(i){return i==null?"":Qy(i)}function Kt(i){return typeof i=="string"}function ph(i){return typeof i=="number"}function Zy(i){return i===!0||i===!1||Ky(i)&&gh(i)=="[object Boolean]"}function yh(i){return typeof i=="object"}function Ky(i){return yh(i)&&i!==null}function _t(i){return i!=null}function yo(i){return!i.trim().length}function gh(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(i)}const Jy="Incorrect 'index' type",$y=i=>`Invalid value for key ${i}`,Fy=i=>`Pattern length exceeds max of ${i}.`,Wy=i=>`Missing ${i} property in key`,Iy=i=>`Property 'weight' in key '${i}' must be a positive integer`,Wm=Object.prototype.hasOwnProperty;class Py{constructor(u){this._keys=[],this._keyMap={};let o=0;u.forEach(r=>{let d=vh(r);this._keys.push(d),this._keyMap[d.id]=d,o+=d.weight}),this._keys.forEach(r=>{r.weight/=o})}get(u){return this._keyMap[u]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function vh(i){let u=null,o=null,r=null,d=1,m=null;if(Kt(i)||pa(i))r=i,u=Im(i),o=bo(i);else{if(!Wm.call(i,"name"))throw new Error(Wy("name"));const p=i.name;if(r=p,Wm.call(i,"weight")&&(d=i.weight,d<=0))throw new Error(Iy(p));u=Im(p),o=bo(p),m=i.getFn}return{path:u,id:o,weight:d,src:r,getFn:m}}function Im(i){return pa(i)?i:i.split(".")}function bo(i){return pa(i)?i.join("."):i}function eg(i,u){let o=[],r=!1;const d=(m,p,v)=>{if(_t(m))if(!p[v])o.push(m);else{let g=p[v];const y=m[g];if(!_t(y))return;if(v===p.length-1&&(Kt(y)||ph(y)||Zy(y)))o.push(Vy(y));else if(pa(y)){r=!0;for(let E=0,b=y.length;E<b;E+=1)d(y[E],p,v+1)}else p.length&&d(y,p,v+1)}};return d(i,Kt(u)?u.split("."):u,0),r?o:o[0]}const tg={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},ag={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(i,u)=>i.score===u.score?i.idx<u.idx?-1:1:i.score<u.score?-1:1},lg={location:0,threshold:.6,distance:100},ng={useExtendedSearch:!1,getFn:eg,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var se={...ag,...tg,...lg,...ng};const ig=/[^ ]+/g;function sg(i=1,u=3){const o=new Map,r=Math.pow(10,u);return{get(d){const m=d.match(ig).length;if(o.has(m))return o.get(m);const p=1/Math.pow(m,.5*i),v=parseFloat(Math.round(p*r)/r);return o.set(m,v),v},clear(){o.clear()}}}class Ro{constructor({getFn:u=se.getFn,fieldNormWeight:o=se.fieldNormWeight}={}){this.norm=sg(o,3),this.getFn=u,this.isCreated=!1,this.setIndexRecords()}setSources(u=[]){this.docs=u}setIndexRecords(u=[]){this.records=u}setKeys(u=[]){this.keys=u,this._keysMap={},u.forEach((o,r)=>{this._keysMap[o.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Kt(this.docs[0])?this.docs.forEach((u,o)=>{this._addString(u,o)}):this.docs.forEach((u,o)=>{this._addObject(u,o)}),this.norm.clear())}add(u){const o=this.size();Kt(u)?this._addString(u,o):this._addObject(u,o)}removeAt(u){this.records.splice(u,1);for(let o=u,r=this.size();o<r;o+=1)this.records[o].i-=1}getValueForItemAtKeyId(u,o){return u[this._keysMap[o]]}size(){return this.records.length}_addString(u,o){if(!_t(u)||yo(u))return;let r={v:u,i:o,n:this.norm.get(u)};this.records.push(r)}_addObject(u,o){let r={i:o,$:{}};this.keys.forEach((d,m)=>{let p=d.getFn?d.getFn(u):this.getFn(u,d.path);if(_t(p)){if(pa(p)){let v=[];const g=[{nestedArrIndex:-1,value:p}];for(;g.length;){const{nestedArrIndex:y,value:E}=g.pop();if(_t(E))if(Kt(E)&&!yo(E)){let b={v:E,i:y,n:this.norm.get(E)};v.push(b)}else pa(E)&&E.forEach((b,j)=>{g.push({nestedArrIndex:j,value:b})})}r.$[m]=v}else if(Kt(p)&&!yo(p)){let v={v:p,n:this.norm.get(p)};r.$[m]=v}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function xh(i,u,{getFn:o=se.getFn,fieldNormWeight:r=se.fieldNormWeight}={}){const d=new Ro({getFn:o,fieldNormWeight:r});return d.setKeys(i.map(vh)),d.setSources(u),d.create(),d}function ug(i,{getFn:u=se.getFn,fieldNormWeight:o=se.fieldNormWeight}={}){const{keys:r,records:d}=i,m=new Ro({getFn:u,fieldNormWeight:o});return m.setKeys(r),m.setIndexRecords(d),m}function Ms(i,{errors:u=0,currentLocation:o=0,expectedLocation:r=0,distance:d=se.distance,ignoreLocation:m=se.ignoreLocation}={}){const p=u/i.length;if(m)return p;const v=Math.abs(r-o);return d?p+v/d:v?1:p}function rg(i=[],u=se.minMatchCharLength){let o=[],r=-1,d=-1,m=0;for(let p=i.length;m<p;m+=1){let v=i[m];v&&r===-1?r=m:!v&&r!==-1&&(d=m-1,d-r+1>=u&&o.push([r,d]),r=-1)}return i[m-1]&&m-r>=u&&o.push([r,m-1]),o}const hl=32;function og(i,u,o,{location:r=se.location,distance:d=se.distance,threshold:m=se.threshold,findAllMatches:p=se.findAllMatches,minMatchCharLength:v=se.minMatchCharLength,includeMatches:g=se.includeMatches,ignoreLocation:y=se.ignoreLocation}={}){if(u.length>hl)throw new Error(Fy(hl));const E=u.length,b=i.length,j=Math.max(0,Math.min(r,b));let z=m,q=j;const D=v>1||g,X=D?Array(b):[];let B;for(;(B=i.indexOf(u,q))>-1;){let Y=Ms(u,{currentLocation:B,expectedLocation:j,distance:d,ignoreLocation:y});if(z=Math.min(Y,z),q=B+E,D){let F=0;for(;F<E;)X[B+F]=1,F+=1}}q=-1;let k=[],M=1,U=E+b;const Z=1<<E-1;for(let Y=0;Y<E;Y+=1){let F=0,te=U;for(;F<te;)Ms(u,{errors:Y,currentLocation:j+te,expectedLocation:j,distance:d,ignoreLocation:y})<=z?F=te:U=te,te=Math.floor((U-F)/2+F);U=te;let V=Math.max(1,j-te+1),ee=p?b:Math.min(j+te,b)+E,ue=Array(ee+2);ue[ee+1]=(1<<Y)-1;for(let _e=ee;_e>=V;_e-=1){let Me=_e-1,R=o[i.charAt(Me)];if(D&&(X[Me]=+!!R),ue[_e]=(ue[_e+1]<<1|1)&R,Y&&(ue[_e]|=(k[_e+1]|k[_e])<<1|1|k[_e+1]),ue[_e]&Z&&(M=Ms(u,{errors:Y,currentLocation:Me,expectedLocation:j,distance:d,ignoreLocation:y}),M<=z)){if(z=M,q=Me,q<=j)break;V=Math.max(1,2*j-q)}}if(Ms(u,{errors:Y+1,currentLocation:j,expectedLocation:j,distance:d,ignoreLocation:y})>z)break;k=ue}const K={isMatch:q>=0,score:Math.max(.001,M)};if(D){const Y=rg(X,v);Y.length?g&&(K.indices=Y):K.isMatch=!1}return K}function cg(i){let u={};for(let o=0,r=i.length;o<r;o+=1){const d=i.charAt(o);u[d]=(u[d]||0)|1<<r-o-1}return u}const Ls=String.prototype.normalize?(i=>i.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(i=>i);class bh{constructor(u,{location:o=se.location,threshold:r=se.threshold,distance:d=se.distance,includeMatches:m=se.includeMatches,findAllMatches:p=se.findAllMatches,minMatchCharLength:v=se.minMatchCharLength,isCaseSensitive:g=se.isCaseSensitive,ignoreDiacritics:y=se.ignoreDiacritics,ignoreLocation:E=se.ignoreLocation}={}){if(this.options={location:o,threshold:r,distance:d,includeMatches:m,findAllMatches:p,minMatchCharLength:v,isCaseSensitive:g,ignoreDiacritics:y,ignoreLocation:E},u=g?u:u.toLowerCase(),u=y?Ls(u):u,this.pattern=u,this.chunks=[],!this.pattern.length)return;const b=(z,q)=>{this.chunks.push({pattern:z,alphabet:cg(z),startIndex:q})},j=this.pattern.length;if(j>hl){let z=0;const q=j%hl,D=j-q;for(;z<D;)b(this.pattern.substr(z,hl),z),z+=hl;if(q){const X=j-hl;b(this.pattern.substr(X),X)}}else b(this.pattern,0)}searchIn(u){const{isCaseSensitive:o,ignoreDiacritics:r,includeMatches:d}=this.options;if(u=o?u:u.toLowerCase(),u=r?Ls(u):u,this.pattern===u){let D={isMatch:!0,score:0};return d&&(D.indices=[[0,u.length-1]]),D}const{location:m,distance:p,threshold:v,findAllMatches:g,minMatchCharLength:y,ignoreLocation:E}=this.options;let b=[],j=0,z=!1;this.chunks.forEach(({pattern:D,alphabet:X,startIndex:B})=>{const{isMatch:k,score:M,indices:U}=og(u,D,X,{location:m+B,distance:p,threshold:v,findAllMatches:g,minMatchCharLength:y,includeMatches:d,ignoreLocation:E});k&&(z=!0),j+=M,k&&U&&(b=[...b,...U])});let q={isMatch:z,score:z?j/this.chunks.length:1};return z&&d&&(q.indices=b),q}}class Va{constructor(u){this.pattern=u}static isMultiMatch(u){return Pm(u,this.multiRegex)}static isSingleMatch(u){return Pm(u,this.singleRegex)}search(){}}function Pm(i,u){const o=i.match(u);return o?o[1]:null}class fg extends Va{constructor(u){super(u)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(u){const o=u===this.pattern;return{isMatch:o,score:o?0:1,indices:[0,this.pattern.length-1]}}}class dg extends Va{constructor(u){super(u)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(u){const r=u.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,u.length-1]}}}class mg extends Va{constructor(u){super(u)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(u){const o=u.startsWith(this.pattern);return{isMatch:o,score:o?0:1,indices:[0,this.pattern.length-1]}}}class hg extends Va{constructor(u){super(u)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(u){const o=!u.startsWith(this.pattern);return{isMatch:o,score:o?0:1,indices:[0,u.length-1]}}}class pg extends Va{constructor(u){super(u)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(u){const o=u.endsWith(this.pattern);return{isMatch:o,score:o?0:1,indices:[u.length-this.pattern.length,u.length-1]}}}class yg extends Va{constructor(u){super(u)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(u){const o=!u.endsWith(this.pattern);return{isMatch:o,score:o?0:1,indices:[0,u.length-1]}}}class Sh extends Va{constructor(u,{location:o=se.location,threshold:r=se.threshold,distance:d=se.distance,includeMatches:m=se.includeMatches,findAllMatches:p=se.findAllMatches,minMatchCharLength:v=se.minMatchCharLength,isCaseSensitive:g=se.isCaseSensitive,ignoreDiacritics:y=se.ignoreDiacritics,ignoreLocation:E=se.ignoreLocation}={}){super(u),this._bitapSearch=new bh(u,{location:o,threshold:r,distance:d,includeMatches:m,findAllMatches:p,minMatchCharLength:v,isCaseSensitive:g,ignoreDiacritics:y,ignoreLocation:E})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(u){return this._bitapSearch.searchIn(u)}}class Eh extends Va{constructor(u){super(u)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(u){let o=0,r;const d=[],m=this.pattern.length;for(;(r=u.indexOf(this.pattern,o))>-1;)o=r+m,d.push([r,o-1]);const p=!!d.length;return{isMatch:p,score:p?0:1,indices:d}}}const So=[fg,Eh,mg,hg,yg,pg,dg,Sh],eh=So.length,gg=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,vg="|";function xg(i,u={}){return i.split(vg).map(o=>{let r=o.trim().split(gg).filter(m=>m&&!!m.trim()),d=[];for(let m=0,p=r.length;m<p;m+=1){const v=r[m];let g=!1,y=-1;for(;!g&&++y<eh;){const E=So[y];let b=E.isMultiMatch(v);b&&(d.push(new E(b,u)),g=!0)}if(!g)for(y=-1;++y<eh;){const E=So[y];let b=E.isSingleMatch(v);if(b){d.push(new E(b,u));break}}}return d})}const bg=new Set([Sh.type,Eh.type]);class Sg{constructor(u,{isCaseSensitive:o=se.isCaseSensitive,ignoreDiacritics:r=se.ignoreDiacritics,includeMatches:d=se.includeMatches,minMatchCharLength:m=se.minMatchCharLength,ignoreLocation:p=se.ignoreLocation,findAllMatches:v=se.findAllMatches,location:g=se.location,threshold:y=se.threshold,distance:E=se.distance}={}){this.query=null,this.options={isCaseSensitive:o,ignoreDiacritics:r,includeMatches:d,minMatchCharLength:m,findAllMatches:v,ignoreLocation:p,location:g,threshold:y,distance:E},u=o?u:u.toLowerCase(),u=r?Ls(u):u,this.pattern=u,this.query=xg(this.pattern,this.options)}static condition(u,o){return o.useExtendedSearch}searchIn(u){const o=this.query;if(!o)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:d,ignoreDiacritics:m}=this.options;u=d?u:u.toLowerCase(),u=m?Ls(u):u;let p=0,v=[],g=0;for(let y=0,E=o.length;y<E;y+=1){const b=o[y];v.length=0,p=0;for(let j=0,z=b.length;j<z;j+=1){const q=b[j],{isMatch:D,indices:X,score:B}=q.search(u);if(D){if(p+=1,g+=B,r){const k=q.constructor.type;bg.has(k)?v=[...v,...X]:v.push(X)}}else{g=0,p=0,v.length=0;break}}if(p){let j={isMatch:!0,score:g/p};return r&&(j.indices=v),j}}return{isMatch:!1,score:1}}}const Eo=[];function Eg(...i){Eo.push(...i)}function _o(i,u){for(let o=0,r=Eo.length;o<r;o+=1){let d=Eo[o];if(d.condition(i,u))return new d(i,u)}return new bh(i,u)}const Hs={AND:"$and",OR:"$or"},To={PATH:"$path",PATTERN:"$val"},No=i=>!!(i[Hs.AND]||i[Hs.OR]),_g=i=>!!i[To.PATH],Tg=i=>!pa(i)&&yh(i)&&!No(i),th=i=>({[Hs.AND]:Object.keys(i).map(u=>({[u]:i[u]}))});function _h(i,u,{auto:o=!0}={}){const r=d=>{let m=Object.keys(d);const p=_g(d);if(!p&&m.length>1&&!No(d))return r(th(d));if(Tg(d)){const g=p?d[To.PATH]:m[0],y=p?d[To.PATTERN]:d[g];if(!Kt(y))throw new Error($y(g));const E={keyId:bo(g),pattern:y};return o&&(E.searcher=_o(y,u)),E}let v={children:[],operator:m[0]};return m.forEach(g=>{const y=d[g];pa(y)&&y.forEach(E=>{v.children.push(r(E))})}),v};return No(i)||(i=th(i)),r(i)}function Ng(i,{ignoreFieldNorm:u=se.ignoreFieldNorm}){i.forEach(o=>{let r=1;o.matches.forEach(({key:d,norm:m,score:p})=>{const v=d?d.weight:null;r*=Math.pow(p===0&&v?Number.EPSILON:p,(v||1)*(u?1:m))}),o.score=r})}function jg(i,u){const o=i.matches;u.matches=[],_t(o)&&o.forEach(r=>{if(!_t(r.indices)||!r.indices.length)return;const{indices:d,value:m}=r;let p={indices:d,value:m};r.key&&(p.key=r.key.src),r.idx>-1&&(p.refIndex=r.idx),u.matches.push(p)})}function Cg(i,u){u.score=i.score}function Ag(i,u,{includeMatches:o=se.includeMatches,includeScore:r=se.includeScore}={}){const d=[];return o&&d.push(jg),r&&d.push(Cg),i.map(m=>{const{idx:p}=m,v={item:u[p],refIndex:p};return d.length&&d.forEach(g=>{g(m,v)}),v})}class an{constructor(u,o={},r){this.options={...se,...o},this.options.useExtendedSearch,this._keyStore=new Py(this.options.keys),this.setCollection(u,r)}setCollection(u,o){if(this._docs=u,o&&!(o instanceof Ro))throw new Error(Jy);this._myIndex=o||xh(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(u){_t(u)&&(this._docs.push(u),this._myIndex.add(u))}remove(u=()=>!1){const o=[];for(let r=0,d=this._docs.length;r<d;r+=1){const m=this._docs[r];u(m,r)&&(this.removeAt(r),r-=1,d-=1,o.push(m))}return o}removeAt(u){this._docs.splice(u,1),this._myIndex.removeAt(u)}getIndex(){return this._myIndex}search(u,{limit:o=-1}={}){const{includeMatches:r,includeScore:d,shouldSort:m,sortFn:p,ignoreFieldNorm:v}=this.options;let g=Kt(u)?Kt(this._docs[0])?this._searchStringList(u):this._searchObjectList(u):this._searchLogical(u);return Ng(g,{ignoreFieldNorm:v}),m&&g.sort(p),ph(o)&&o>-1&&(g=g.slice(0,o)),Ag(g,this._docs,{includeMatches:r,includeScore:d})}_searchStringList(u){const o=_o(u,this.options),{records:r}=this._myIndex,d=[];return r.forEach(({v:m,i:p,n:v})=>{if(!_t(m))return;const{isMatch:g,score:y,indices:E}=o.searchIn(m);g&&d.push({item:m,idx:p,matches:[{score:y,value:m,norm:v,indices:E}]})}),d}_searchLogical(u){const o=_h(u,this.options),r=(v,g,y)=>{if(!v.children){const{keyId:b,searcher:j}=v,z=this._findMatches({key:this._keyStore.get(b),value:this._myIndex.getValueForItemAtKeyId(g,b),searcher:j});return z&&z.length?[{idx:y,item:g,matches:z}]:[]}const E=[];for(let b=0,j=v.children.length;b<j;b+=1){const z=v.children[b],q=r(z,g,y);if(q.length)E.push(...q);else if(v.operator===Hs.AND)return[]}return E},d=this._myIndex.records,m={},p=[];return d.forEach(({$:v,i:g})=>{if(_t(v)){let y=r(o,v,g);y.length&&(m[g]||(m[g]={idx:g,item:v,matches:[]},p.push(m[g])),y.forEach(({matches:E})=>{m[g].matches.push(...E)}))}}),p}_searchObjectList(u){const o=_o(u,this.options),{keys:r,records:d}=this._myIndex,m=[];return d.forEach(({$:p,i:v})=>{if(!_t(p))return;let g=[];r.forEach((y,E)=>{g.push(...this._findMatches({key:y,value:p[E],searcher:o}))}),g.length&&m.push({idx:v,item:p,matches:g})}),m}_findMatches({key:u,value:o,searcher:r}){if(!_t(o))return[];let d=[];if(pa(o))o.forEach(({v:m,i:p,n:v})=>{if(!_t(m))return;const{isMatch:g,score:y,indices:E}=r.searchIn(m);g&&d.push({score:y,key:u,value:m,idx:p,norm:v,indices:E})});else{const{v:m,n:p}=o,{isMatch:v,score:g,indices:y}=r.searchIn(m);v&&d.push({score:g,key:u,value:m,norm:p,indices:y})}return d}}an.version="7.1.0";an.createIndex=xh;an.parseIndex=ug;an.config=se;an.parseQuery=_h;Eg(Sg);const wg=(i,u,o=.5)=>{const[r,d]=x.useState(""),m=x.useMemo(()=>new an(i,{keys:u,threshold:o,ignoreLocation:!0,minMatchCharLength:2}),[i,u,o]),p=x.useMemo(()=>r?m.search(r).map(v=>v.item):i,[m,r,i]);return{query:r,setQuery:d,results:p}},Gt=window.location.hostname==="localhost"?"http://localhost:6001":"https://kleinexpress.store",Th=i=>{localStorage.setItem("token",i)},Za=()=>localStorage.getItem("token"),zg=async(i,u)=>await(await fetch(`${Gt}/api/users/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,pin:u})})).json(),ln=async()=>(await fetch(`${Gt}/api/users/guest`,{method:"GET",headers:{"Content-Type":"application/json"}})).json(),Mg=async i=>await(await fetch(`${Gt}/api/users/user`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`}})).json(),Og=async i=>{const u=i?Za():(await ln()).data.token;return await(await fetch(`${Gt}/api/products?status=1`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`}})).json()},Rg=async(i,u)=>{const o=u?Za():(await ln()).data.token;return await(await fetch(`${Gt}/api/orders/send`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(i)})).json()},Nh=async(i,u)=>{const o=u?Za():(await ln()).data.token;return await(await fetch(`${Gt}/api/products/table/${i}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}})).json()},jh=async(i,u,o)=>{const r=i?Za():(await ln()).data.token;return await(await fetch(`${Gt}/api/orders/billing`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify({table:u,payment:o})})).json()},Dg=async(i,u)=>{const o=i?Za():(await ln()).data.token,r=await fetch(`${Gt}/api/products/free-beer/${u}`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}}),d=await r.json();return{success:r.status===200,message:d.message}},Bg=async i=>{const u=i?Za():(await ln()).data.token,r=await(await fetch(`${Gt}/api/store/state`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`}})).json();return console.log("data",r),r.data.state},Ch=x.createContext(void 0),Ug=({children:i})=>{const[u,o]=x.useState(!1),[r,d]=x.useState(),[m,p]=x.useState(0),[v,g]=x.useState(""),y=x.useCallback((z,q)=>{q&&!q.token&&(q.token=Za()),o(z),d(q),p(q?q.reward_progress:0),g(q?q.token:"")},[]),E=x.useCallback(z=>{g(z)},[]),b=x.useCallback(z=>{p(z)},[]),j=x.useMemo(()=>({isLogged:u,user:r,token:v,setIsLoggedIn:y,promoPercent:m,setPromoPercent:b,setToken:E}),[u,r,v,y,m,b,E]);return f.jsx(Ch.Provider,{value:j,children:i})},Tt=()=>x.useContext(Ch),li=[289,6,885,655,18,27],Os=["Klein Day","Cervezas","Gin Day","Promo Miércoles de Pizza","Promo Miércoles de pizza.","Pizzas Familiares","Pizza Medianas"];function Lg(i){return i.map(u=>{const o={...u};if(o.badges=[],li.includes(u.id)&&o.badges.push({text:"HOT",color:"bg-red-600"}),["Cervezas","Klein Day"].includes(o.type)&&o.description){const m=/IBU\s*:?\s*(\d+(?:\.\d+)?)/i.exec(o.description);m&&o.badges.push({text:"IBU "+m[1],color:"bg-black/60 backdrop-blur"});const v=/(\d+(?:[\.,]\d+)?)\s*(?:º|grados)/i.exec(o.description);if(v){let g=v[1].replace(".",",");g.includes(",")||(g+=",0"),o.badges.push({text:`${g}º`,color:"bg-black/60 backdrop-blur"})}}return["Pizza Medianas","Pizzas Familiares","Sandwich de Autor"].includes(u.type)&&(o.description.toLowerCase().includes("veggie")||o.description.toLowerCase().includes("vegetarian")||o.description.toLowerCase().includes("vegan")||o.name.toLowerCase().includes("veggie")||o.name.toLowerCase().includes("vegetarian")||o.name.toLowerCase().includes("vegan"))&&o.badges.push({text:"VEGGIE",color:"bg-green-600"}),o})}const Hg=(i,u)=>{const o=li.includes(i.id),r=li.includes(u.id);if(o&&!r)return-1;if(!o&&r)return 1;if(o&&r){const d=li.indexOf(i.id),m=li.indexOf(u.id);return d-m}return 0},kg=(i,u)=>{const o=Os.includes(i),r=Os.includes(u);if(o&&!r)return-1;if(!o&&r)return 1;if(o&&r){const d=Os.indexOf(i),m=Os.indexOf(u);return d-m}return 0},Ah=x.createContext(void 0),qg=({children:i})=>{const[u,o]=x.useState(!1),[r,d]=x.useState("Cargando..."),m=(p,v="Cargando...")=>{o(p),setTimeout(()=>{d(v)},p?0:2e3)};return f.jsxs(Ah.Provider,{value:{isLoading:u,setIsLoading:m},children:[f.jsx("div",{children:f.jsx("div",{className:`fixed inset-0 z-50 flex items-center justify-center bg-background-dark/60 backdrop-blur-sm pointer-events-none transition-opacity duration-300 opacity-0 ${u?"opacity-100":"opacity-0"}`,children:f.jsxs("div",{className:"flex flex-col items-center justify-center w-full h-full",children:[f.jsxs("div",{className:"animate-spin relative not-first:animate-spin flex justify-center space-x-8 h-12 w-full max-w-xsrounded-xl",children:[f.jsx("div",{className:"h-2 w-2 rounded-full bg-white"}),f.jsx("div",{className:"h-2 w-2 rounded-full bg-white -translate-y-19"}),f.jsx("div",{className:"h-2 w-2 rounded-full bg-white translate-y-19"}),f.jsx("div",{className:"h-2 w-2 rounded-full bg-white absolute left-1/2 top-1/2 -translate-y-1/2"}),f.jsx("div",{className:"h-2 w-2 rounded-full bg-white"})]}),f.jsx("div",{className:"text-white text-center text-md font-display translate-y-25",children:r})]})})}),i]})},ui=()=>x.useContext(Ah);/**
 * react-router v7.12.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var ah="popstate";function Yg(i={}){function u(r,d){let{pathname:m,search:p,hash:v}=r.location;return jo("",{pathname:m,search:p,hash:v},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function o(r,d){return typeof d=="string"?d:ni(d)}return Xg(u,o,null,i)}function Le(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function Yt(i,u){if(!i){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Gg(){return Math.random().toString(36).substring(2,10)}function lh(i,u){return{usr:i.state,key:i.key,idx:u}}function jo(i,u,o=null,r){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof u=="string"?nn(u):u,state:o,key:u&&u.key||r||Gg()}}function ni({pathname:i="/",search:u="",hash:o=""}){return u&&u!=="?"&&(i+=u.charAt(0)==="?"?u:"?"+u),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function nn(i){let u={};if(i){let o=i.indexOf("#");o>=0&&(u.hash=i.substring(o),i=i.substring(0,o));let r=i.indexOf("?");r>=0&&(u.search=i.substring(r),i=i.substring(0,r)),i&&(u.pathname=i)}return u}function Xg(i,u,o,r={}){let{window:d=document.defaultView,v5Compat:m=!1}=r,p=d.history,v="POP",g=null,y=E();y==null&&(y=0,p.replaceState({...p.state,idx:y},""));function E(){return(p.state||{idx:null}).idx}function b(){v="POP";let X=E(),B=X==null?null:X-y;y=X,g&&g({action:v,location:D.location,delta:B})}function j(X,B){v="PUSH";let k=jo(D.location,X,B);y=E()+1;let M=lh(k,y),U=D.createHref(k);try{p.pushState(M,"",U)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;d.location.assign(U)}m&&g&&g({action:v,location:D.location,delta:1})}function z(X,B){v="REPLACE";let k=jo(D.location,X,B);y=E();let M=lh(k,y),U=D.createHref(k);p.replaceState(M,"",U),m&&g&&g({action:v,location:D.location,delta:0})}function q(X){return Qg(X)}let D={get action(){return v},get location(){return i(d,p)},listen(X){if(g)throw new Error("A history only accepts one active listener");return d.addEventListener(ah,b),g=X,()=>{d.removeEventListener(ah,b),g=null}},createHref(X){return u(d,X)},createURL:q,encodeLocation(X){let B=q(X);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:j,replace:z,go(X){return p.go(X)}};return D}function Qg(i,u=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Le(o,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:ni(i);return r=r.replace(/ $/,"%20"),!u&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function wh(i,u,o="/"){return Vg(i,u,o,!1)}function Vg(i,u,o,r){let d=typeof u=="string"?nn(u):u,m=ya(d.pathname||"/",o);if(m==null)return null;let p=zh(i);Zg(p);let v=null;for(let g=0;v==null&&g<p.length;++g){let y=lv(m);v=tv(p[g],y,r)}return v}function zh(i,u=[],o=[],r="",d=!1){let m=(p,v,g=d,y)=>{let E={relativePath:y===void 0?p.path||"":y,caseSensitive:p.caseSensitive===!0,childrenIndex:v,route:p};if(E.relativePath.startsWith("/")){if(!E.relativePath.startsWith(r)&&g)return;Le(E.relativePath.startsWith(r),`Absolute route path "${E.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(r.length)}let b=ma([r,E.relativePath]),j=o.concat(E);p.children&&p.children.length>0&&(Le(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),zh(p.children,u,j,b,g)),!(p.path==null&&!p.index)&&u.push({path:b,score:Pg(b,p.index),routesMeta:j})};return i.forEach((p,v)=>{var g;if(p.path===""||!((g=p.path)!=null&&g.includes("?")))m(p,v);else for(let y of Mh(p.path))m(p,v,!0,y)}),u}function Mh(i){let u=i.split("/");if(u.length===0)return[];let[o,...r]=u,d=o.endsWith("?"),m=o.replace(/\?$/,"");if(r.length===0)return d?[m,""]:[m];let p=Mh(r.join("/")),v=[];return v.push(...p.map(g=>g===""?m:[m,g].join("/"))),d&&v.push(...p),v.map(g=>i.startsWith("/")&&g===""?"/":g)}function Zg(i){i.sort((u,o)=>u.score!==o.score?o.score-u.score:ev(u.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var Kg=/^:[\w-]+$/,Jg=3,$g=2,Fg=1,Wg=10,Ig=-2,nh=i=>i==="*";function Pg(i,u){let o=i.split("/"),r=o.length;return o.some(nh)&&(r+=Ig),u&&(r+=$g),o.filter(d=>!nh(d)).reduce((d,m)=>d+(Kg.test(m)?Jg:m===""?Fg:Wg),r)}function ev(i,u){return i.length===u.length&&i.slice(0,-1).every((r,d)=>r===u[d])?i[i.length-1]-u[u.length-1]:0}function tv(i,u,o=!1){let{routesMeta:r}=i,d={},m="/",p=[];for(let v=0;v<r.length;++v){let g=r[v],y=v===r.length-1,E=m==="/"?u:u.slice(m.length)||"/",b=ks({path:g.relativePath,caseSensitive:g.caseSensitive,end:y},E),j=g.route;if(!b&&y&&o&&!r[r.length-1].route.index&&(b=ks({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},E)),!b)return null;Object.assign(d,b.params),p.push({params:d,pathname:ma([m,b.pathname]),pathnameBase:uv(ma([m,b.pathnameBase])),route:j}),b.pathnameBase!=="/"&&(m=ma([m,b.pathnameBase]))}return p}function ks(i,u){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,r]=av(i.path,i.caseSensitive,i.end),d=u.match(o);if(!d)return null;let m=d[0],p=m.replace(/(.)\/+$/,"$1"),v=d.slice(1);return{params:r.reduce((y,{paramName:E,isOptional:b},j)=>{if(E==="*"){let q=v[j]||"";p=m.slice(0,m.length-q.length).replace(/(.)\/+$/,"$1")}const z=v[j];return b&&!z?y[E]=void 0:y[E]=(z||"").replace(/%2F/g,"/"),y},{}),pathname:m,pathnameBase:p,pattern:i}}function av(i,u=!1,o=!0){Yt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,v,g)=>(r.push({paramName:v,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,u?void 0:"i"),r]}function lv(i){try{return i.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Yt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),i}}function ya(i,u){if(u==="/")return i;if(!i.toLowerCase().startsWith(u.toLowerCase()))return null;let o=u.endsWith("/")?u.length-1:u.length,r=i.charAt(o);return r&&r!=="/"?null:i.slice(o)||"/"}var Oh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nv=i=>Oh.test(i);function iv(i,u="/"){let{pathname:o,search:r="",hash:d=""}=typeof i=="string"?nn(i):i,m;if(o)if(nv(o))m=o;else{if(o.includes("//")){let p=o;o=o.replace(/\/\/+/g,"/"),Yt(!1,`Pathnames cannot have embedded double slashes - normalizing ${p} -> ${o}`)}o.startsWith("/")?m=ih(o.substring(1),"/"):m=ih(o,u)}else m=u;return{pathname:m,search:rv(r),hash:ov(d)}}function ih(i,u){let o=u.replace(/\/+$/,"").split("/");return i.split("/").forEach(d=>{d===".."?o.length>1&&o.pop():d!=="."&&o.push(d)}),o.length>1?o.join("/"):"/"}function go(i,u,o,r){return`Cannot include a '${i}' character in a manually specified \`to.${u}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function sv(i){return i.filter((u,o)=>o===0||u.route.path&&u.route.path.length>0)}function Rh(i){let u=sv(i);return u.map((o,r)=>r===u.length-1?o.pathname:o.pathnameBase)}function Dh(i,u,o,r=!1){let d;typeof i=="string"?d=nn(i):(d={...i},Le(!d.pathname||!d.pathname.includes("?"),go("?","pathname","search",d)),Le(!d.pathname||!d.pathname.includes("#"),go("#","pathname","hash",d)),Le(!d.search||!d.search.includes("#"),go("#","search","hash",d)));let m=i===""||d.pathname==="",p=m?"/":d.pathname,v;if(p==null)v=o;else{let b=u.length-1;if(!r&&p.startsWith("..")){let j=p.split("/");for(;j[0]==="..";)j.shift(),b-=1;d.pathname=j.join("/")}v=b>=0?u[b]:"/"}let g=iv(d,v),y=p&&p!=="/"&&p.endsWith("/"),E=(m||p===".")&&o.endsWith("/");return!g.pathname.endsWith("/")&&(y||E)&&(g.pathname+="/"),g}var ma=i=>i.join("/").replace(/\/\/+/g,"/"),uv=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),rv=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,ov=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,cv=class{constructor(i,u,o,r=!1){this.status=i,this.statusText=u||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function fv(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function dv(i){return i.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Bh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Uh(i,u){let o=i;if(typeof o!="string"||!Oh.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,d=!1;if(Bh)try{let m=new URL(window.location.href),p=o.startsWith("//")?new URL(m.protocol+o):new URL(o),v=ya(p.pathname,u);p.origin===m.origin&&v!=null?o=v+p.search+p.hash:d=!0}catch{Yt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:d,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Lh=["POST","PUT","PATCH","DELETE"];new Set(Lh);var mv=["GET",...Lh];new Set(mv);var sn=x.createContext(null);sn.displayName="DataRouter";var qs=x.createContext(null);qs.displayName="DataRouterState";var hv=x.createContext(!1),Hh=x.createContext({isTransitioning:!1});Hh.displayName="ViewTransition";var pv=x.createContext(new Map);pv.displayName="Fetchers";var yv=x.createContext(null);yv.displayName="Await";var Bt=x.createContext(null);Bt.displayName="Navigation";var ri=x.createContext(null);ri.displayName="Location";var va=x.createContext({outlet:null,matches:[],isDataRoute:!1});va.displayName="Route";var Do=x.createContext(null);Do.displayName="RouteError";var kh="REACT_ROUTER_ERROR",gv="REDIRECT",vv="ROUTE_ERROR_RESPONSE";function xv(i){if(i.startsWith(`${kh}:${gv}:{`))try{let u=JSON.parse(i.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function bv(i){if(i.startsWith(`${kh}:${vv}:{`))try{let u=JSON.parse(i.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new cv(u.status,u.statusText,u.data)}catch{}}function Sv(i,{relative:u}={}){Le(oi(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=x.useContext(Bt),{hash:d,pathname:m,search:p}=ci(i,{relative:u}),v=m;return o!=="/"&&(v=m==="/"?o:ma([o,m])),r.createHref({pathname:v,search:p,hash:d})}function oi(){return x.useContext(ri)!=null}function Ka(){return Le(oi(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(ri).location}var qh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Yh(i){x.useContext(Bt).static||x.useLayoutEffect(i)}function Ja(){let{isDataRoute:i}=x.useContext(va);return i?Dv():Ev()}function Ev(){Le(oi(),"useNavigate() may be used only in the context of a <Router> component.");let i=x.useContext(sn),{basename:u,navigator:o}=x.useContext(Bt),{matches:r}=x.useContext(va),{pathname:d}=Ka(),m=JSON.stringify(Rh(r)),p=x.useRef(!1);return Yh(()=>{p.current=!0}),x.useCallback((g,y={})=>{if(Yt(p.current,qh),!p.current)return;if(typeof g=="number"){o.go(g);return}let E=Dh(g,JSON.parse(m),d,y.relative==="path");i==null&&u!=="/"&&(E.pathname=E.pathname==="/"?u:ma([u,E.pathname])),(y.replace?o.replace:o.push)(E,y.state,y)},[u,o,m,d,i])}x.createContext(null);function ci(i,{relative:u}={}){let{matches:o}=x.useContext(va),{pathname:r}=Ka(),d=JSON.stringify(Rh(o));return x.useMemo(()=>Dh(i,JSON.parse(d),r,u==="path"),[i,d,r,u])}function _v(i,u){return Gh(i,u)}function Gh(i,u,o,r,d){var k;Le(oi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:m}=x.useContext(Bt),{matches:p}=x.useContext(va),v=p[p.length-1],g=v?v.params:{},y=v?v.pathname:"/",E=v?v.pathnameBase:"/",b=v&&v.route;{let M=b&&b.path||"";Qh(y,!b||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${M}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let j=Ka(),z;if(u){let M=typeof u=="string"?nn(u):u;Le(E==="/"||((k=M.pathname)==null?void 0:k.startsWith(E)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${E}" but pathname "${M.pathname}" was given in the \`location\` prop.`),z=M}else z=j;let q=z.pathname||"/",D=q;if(E!=="/"){let M=E.replace(/^\//,"").split("/");D="/"+q.replace(/^\//,"").split("/").slice(M.length).join("/")}let X=wh(i,{pathname:D});Yt(b||X!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),Yt(X==null||X[X.length-1].route.element!==void 0||X[X.length-1].route.Component!==void 0||X[X.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let B=Av(X&&X.map(M=>Object.assign({},M,{params:Object.assign({},g,M.params),pathname:ma([E,m.encodeLocation?m.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?E:ma([E,m.encodeLocation?m.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),p,o,r,d);return u&&B?x.createElement(ri.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...z},navigationType:"POP"}},B):B}function Tv(){let i=Rv(),u=fv(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:r},m={padding:"2px 4px",backgroundColor:r},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:m},"ErrorBoundary")," or"," ",x.createElement("code",{style:m},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},u),o?x.createElement("pre",{style:d},o):null,p)}var Nv=x.createElement(Tv,null),Xh=class extends x.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,u){return u.location!==i.location||u.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:u.error,location:u.location,revalidation:i.revalidation||u.revalidation}}componentDidCatch(i,u){this.props.onError?this.props.onError(i,u):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const o=bv(i.digest);o&&(i=o)}let u=i!==void 0?x.createElement(va.Provider,{value:this.props.routeContext},x.createElement(Do.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?x.createElement(jv,{error:i},u):u}};Xh.contextType=hv;var vo=new WeakMap;function jv({children:i,error:u}){let{basename:o}=x.useContext(Bt);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let r=xv(u.digest);if(r){let d=vo.get(u);if(d)throw d;let m=Uh(r.location,o);if(Bh&&!vo.get(u))if(m.isExternal||r.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:r.replace}));throw vo.set(u,p),p}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function Cv({routeContext:i,match:u,children:o}){let r=x.useContext(sn);return r&&r.static&&r.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=u.route.id),x.createElement(va.Provider,{value:i},o)}function Av(i,u=[],o=null,r=null,d=null){if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(u.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let m=i,p=o==null?void 0:o.errors;if(p!=null){let E=m.findIndex(b=>b.route.id&&(p==null?void 0:p[b.route.id])!==void 0);Le(E>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(p).join(",")}`),m=m.slice(0,Math.min(m.length,E+1))}let v=!1,g=-1;if(o)for(let E=0;E<m.length;E++){let b=m[E];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(g=E),b.route.id){let{loaderData:j,errors:z}=o,q=b.route.loader&&!j.hasOwnProperty(b.route.id)&&(!z||z[b.route.id]===void 0);if(b.route.lazy||q){v=!0,g>=0?m=m.slice(0,g+1):m=[m[0]];break}}}let y=o&&r?(E,b)=>{var j,z;r(E,{location:o.location,params:((z=(j=o.matches)==null?void 0:j[0])==null?void 0:z.params)??{},unstable_pattern:dv(o.matches),errorInfo:b})}:void 0;return m.reduceRight((E,b,j)=>{let z,q=!1,D=null,X=null;o&&(z=p&&b.route.id?p[b.route.id]:void 0,D=b.route.errorElement||Nv,v&&(g<0&&j===0?(Qh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),q=!0,X=null):g===j&&(q=!0,X=b.route.hydrateFallbackElement||null)));let B=u.concat(m.slice(0,j+1)),k=()=>{let M;return z?M=D:q?M=X:b.route.Component?M=x.createElement(b.route.Component,null):b.route.element?M=b.route.element:M=E,x.createElement(Cv,{match:b,routeContext:{outlet:E,matches:B,isDataRoute:o!=null},children:M})};return o&&(b.route.ErrorBoundary||b.route.errorElement||j===0)?x.createElement(Xh,{location:o.location,revalidation:o.revalidation,component:D,error:z,children:k(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:y}):k()},null)}function Bo(i){return`${i} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function wv(i){let u=x.useContext(sn);return Le(u,Bo(i)),u}function zv(i){let u=x.useContext(qs);return Le(u,Bo(i)),u}function Mv(i){let u=x.useContext(va);return Le(u,Bo(i)),u}function Uo(i){let u=Mv(i),o=u.matches[u.matches.length-1];return Le(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function Ov(){return Uo("useRouteId")}function Rv(){var r;let i=x.useContext(Do),u=zv("useRouteError"),o=Uo("useRouteError");return i!==void 0?i:(r=u.errors)==null?void 0:r[o]}function Dv(){let{router:i}=wv("useNavigate"),u=Uo("useNavigate"),o=x.useRef(!1);return Yh(()=>{o.current=!0}),x.useCallback(async(d,m={})=>{Yt(o.current,qh),o.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:u,...m}))},[i,u])}var sh={};function Qh(i,u,o){!u&&!sh[i]&&(sh[i]=!0,Yt(!1,o))}x.memo(Bv);function Bv({routes:i,future:u,state:o,onError:r}){return Gh(i,void 0,o,r,u)}function kt(i){Le(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Uv({basename:i="/",children:u=null,location:o,navigationType:r="POP",navigator:d,static:m=!1,unstable_useTransitions:p}){Le(!oi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=i.replace(/^\/*/,"/"),g=x.useMemo(()=>({basename:v,navigator:d,static:m,unstable_useTransitions:p,future:{}}),[v,d,m,p]);typeof o=="string"&&(o=nn(o));let{pathname:y="/",search:E="",hash:b="",state:j=null,key:z="default"}=o,q=x.useMemo(()=>{let D=ya(y,v);return D==null?null:{location:{pathname:D,search:E,hash:b,state:j,key:z},navigationType:r}},[v,y,E,b,j,z,r]);return Yt(q!=null,`<Router basename="${v}"> is not able to match the URL "${y}${E}${b}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:x.createElement(Bt.Provider,{value:g},x.createElement(ri.Provider,{children:u,value:q}))}function Lv({children:i,location:u}){return _v(Co(i),u)}function Co(i,u=[]){let o=[];return x.Children.forEach(i,(r,d)=>{if(!x.isValidElement(r))return;let m=[...u,d];if(r.type===x.Fragment){o.push.apply(o,Co(r.props.children,m));return}Le(r.type===kt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Le(!r.props.index||!r.props.children,"An index route cannot have child routes.");let p={id:r.props.id||m.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(p.children=Co(r.props.children,m)),o.push(p)}),o}var Bs="get",Us="application/x-www-form-urlencoded";function Ys(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Hv(i){return Ys(i)&&i.tagName.toLowerCase()==="button"}function kv(i){return Ys(i)&&i.tagName.toLowerCase()==="form"}function qv(i){return Ys(i)&&i.tagName.toLowerCase()==="input"}function Yv(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Gv(i,u){return i.button===0&&(!u||u==="_self")&&!Yv(i)}var Rs=null;function Xv(){if(Rs===null)try{new FormData(document.createElement("form"),0),Rs=!1}catch{Rs=!0}return Rs}var Qv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xo(i){return i!=null&&!Qv.has(i)?(Yt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Us}"`),null):i}function Vv(i,u){let o,r,d,m,p;if(kv(i)){let v=i.getAttribute("action");r=v?ya(v,u):null,o=i.getAttribute("method")||Bs,d=xo(i.getAttribute("enctype"))||Us,m=new FormData(i)}else if(Hv(i)||qv(i)&&(i.type==="submit"||i.type==="image")){let v=i.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||v.getAttribute("action");if(r=g?ya(g,u):null,o=i.getAttribute("formmethod")||v.getAttribute("method")||Bs,d=xo(i.getAttribute("formenctype"))||xo(v.getAttribute("enctype"))||Us,m=new FormData(v,i),!Xv()){let{name:y,type:E,value:b}=i;if(E==="image"){let j=y?`${y}.`:"";m.append(`${j}x`,"0"),m.append(`${j}y`,"0")}else y&&m.append(y,b)}}else{if(Ys(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Bs,r=null,d=Us,p=i}return m&&d==="text/plain"&&(p=m,m=void 0),{action:r,method:o.toLowerCase(),encType:d,formData:m,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Lo(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function Zv(i,u,o,r){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${r}`:d.pathname=`${d.pathname}.${r}`:d.pathname==="/"?d.pathname=`_root.${r}`:u&&ya(d.pathname,u)==="/"?d.pathname=`${u.replace(/\/$/,"")}/_root.${r}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${r}`,d}async function Kv(i,u){if(i.id in u)return u[i.id];try{let o=await import(i.module);return u[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Jv(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function $v(i,u,o){let r=await Promise.all(i.map(async d=>{let m=u.routes[d.route.id];if(m){let p=await Kv(m,o);return p.links?p.links():[]}return[]}));return Pv(r.flat(1).filter(Jv).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function uh(i,u,o,r,d,m){let p=(g,y)=>o[y]?g.route.id!==o[y].route.id:!0,v=(g,y)=>{var E;return o[y].pathname!==g.pathname||((E=o[y].route.path)==null?void 0:E.endsWith("*"))&&o[y].params["*"]!==g.params["*"]};return m==="assets"?u.filter((g,y)=>p(g,y)||v(g,y)):m==="data"?u.filter((g,y)=>{var b;let E=r.routes[g.route.id];if(!E||!E.hasLoader)return!1;if(p(g,y)||v(g,y))return!0;if(g.route.shouldRevalidate){let j=g.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((b=o[0])==null?void 0:b.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof j=="boolean")return j}return!0}):[]}function Fv(i,u,{includeHydrateFallback:o}={}){return Wv(i.map(r=>{let d=u.routes[r.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),o&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function Wv(i){return[...new Set(i)]}function Iv(i){let u={},o=Object.keys(i).sort();for(let r of o)u[r]=i[r];return u}function Pv(i,u){let o=new Set;return new Set(u),i.reduce((r,d)=>{let m=JSON.stringify(Iv(d));return o.has(m)||(o.add(m),r.push({key:m,link:d})),r},[])}function Vh(){let i=x.useContext(sn);return Lo(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function ex(){let i=x.useContext(qs);return Lo(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Ho=x.createContext(void 0);Ho.displayName="FrameworkContext";function Zh(){let i=x.useContext(Ho);return Lo(i,"You must render this element inside a <HydratedRouter> element"),i}function tx(i,u){let o=x.useContext(Ho),[r,d]=x.useState(!1),[m,p]=x.useState(!1),{onFocus:v,onBlur:g,onMouseEnter:y,onMouseLeave:E,onTouchStart:b}=u,j=x.useRef(null);x.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let D=B=>{B.forEach(k=>{p(k.isIntersecting)})},X=new IntersectionObserver(D,{threshold:.5});return j.current&&X.observe(j.current),()=>{X.disconnect()}}},[i]),x.useEffect(()=>{if(r){let D=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(D)}}},[r]);let z=()=>{d(!0)},q=()=>{d(!1),p(!1)};return o?i!=="intent"?[m,j,{}]:[m,j,{onFocus:ai(v,z),onBlur:ai(g,q),onMouseEnter:ai(y,z),onMouseLeave:ai(E,q),onTouchStart:ai(b,z)}]:[!1,j,{}]}function ai(i,u){return o=>{i&&i(o),o.defaultPrevented||u(o)}}function ax({page:i,...u}){let{router:o}=Vh(),r=x.useMemo(()=>wh(o.routes,i,o.basename),[o.routes,i,o.basename]);return r?x.createElement(nx,{page:i,matches:r,...u}):null}function lx(i){let{manifest:u,routeModules:o}=Zh(),[r,d]=x.useState([]);return x.useEffect(()=>{let m=!1;return $v(i,u,o).then(p=>{m||d(p)}),()=>{m=!0}},[i,u,o]),r}function nx({page:i,matches:u,...o}){let r=Ka(),{future:d,manifest:m,routeModules:p}=Zh(),{basename:v}=Vh(),{loaderData:g,matches:y}=ex(),E=x.useMemo(()=>uh(i,u,y,m,r,"data"),[i,u,y,m,r]),b=x.useMemo(()=>uh(i,u,y,m,r,"assets"),[i,u,y,m,r]),j=x.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let D=new Set,X=!1;if(u.forEach(k=>{var U;let M=m.routes[k.route.id];!M||!M.hasLoader||(!E.some(Z=>Z.route.id===k.route.id)&&k.route.id in g&&((U=p[k.route.id])!=null&&U.shouldRevalidate)||M.hasClientLoader?X=!0:D.add(k.route.id))}),D.size===0)return[];let B=Zv(i,v,d.unstable_trailingSlashAwareDataRequests,"data");return X&&D.size>0&&B.searchParams.set("_routes",u.filter(k=>D.has(k.route.id)).map(k=>k.route.id).join(",")),[B.pathname+B.search]},[v,d.unstable_trailingSlashAwareDataRequests,g,r,m,E,u,i,p]),z=x.useMemo(()=>Fv(b,m),[b,m]),q=lx(b);return x.createElement(x.Fragment,null,j.map(D=>x.createElement("link",{key:D,rel:"prefetch",as:"fetch",href:D,...o})),z.map(D=>x.createElement("link",{key:D,rel:"modulepreload",href:D,...o})),q.map(({key:D,link:X})=>x.createElement("link",{key:D,nonce:o.nonce,...X})))}function ix(...i){return u=>{i.forEach(o=>{typeof o=="function"?o(u):o!=null&&(o.current=u)})}}var sx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{sx&&(window.__reactRouterVersion="7.12.0")}catch{}function ux({basename:i,children:u,unstable_useTransitions:o,window:r}){let d=x.useRef();d.current==null&&(d.current=Yg({window:r,v5Compat:!0}));let m=d.current,[p,v]=x.useState({action:m.action,location:m.location}),g=x.useCallback(y=>{o===!1?v(y):x.startTransition(()=>v(y))},[o]);return x.useLayoutEffect(()=>m.listen(g),[m,g]),x.createElement(Uv,{basename:i,children:u,location:p.location,navigationType:p.action,navigator:m,unstable_useTransitions:o})}var Kh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ha=x.forwardRef(function({onClick:u,discover:o="render",prefetch:r="none",relative:d,reloadDocument:m,replace:p,state:v,target:g,to:y,preventScrollReset:E,viewTransition:b,unstable_defaultShouldRevalidate:j,...z},q){let{basename:D,unstable_useTransitions:X}=x.useContext(Bt),B=typeof y=="string"&&Kh.test(y),k=Uh(y,D);y=k.to;let M=Sv(y,{relative:d}),[U,Z,K]=tx(r,z),Y=fx(y,{replace:p,state:v,target:g,preventScrollReset:E,relative:d,viewTransition:b,unstable_defaultShouldRevalidate:j,unstable_useTransitions:X});function F(V){u&&u(V),V.defaultPrevented||Y(V)}let te=x.createElement("a",{...z,...K,href:k.absoluteURL||M,onClick:k.isExternal||m?u:F,ref:ix(q,Z),target:g,"data-discover":!B&&o==="render"?"true":void 0});return U&&!B?x.createElement(x.Fragment,null,te,x.createElement(ax,{page:M})):te});ha.displayName="Link";var rx=x.forwardRef(function({"aria-current":u="page",caseSensitive:o=!1,className:r="",end:d=!1,style:m,to:p,viewTransition:v,children:g,...y},E){let b=ci(p,{relative:y.relative}),j=Ka(),z=x.useContext(qs),{navigator:q,basename:D}=x.useContext(Bt),X=z!=null&&yx(b)&&v===!0,B=q.encodeLocation?q.encodeLocation(b).pathname:b.pathname,k=j.pathname,M=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;o||(k=k.toLowerCase(),M=M?M.toLowerCase():null,B=B.toLowerCase()),M&&D&&(M=ya(M,D)||M);const U=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let Z=k===B||!d&&k.startsWith(B)&&k.charAt(U)==="/",K=M!=null&&(M===B||!d&&M.startsWith(B)&&M.charAt(B.length)==="/"),Y={isActive:Z,isPending:K,isTransitioning:X},F=Z?u:void 0,te;typeof r=="function"?te=r(Y):te=[r,Z?"active":null,K?"pending":null,X?"transitioning":null].filter(Boolean).join(" ");let V=typeof m=="function"?m(Y):m;return x.createElement(ha,{...y,"aria-current":F,className:te,ref:E,style:V,to:p,viewTransition:v},typeof g=="function"?g(Y):g)});rx.displayName="NavLink";var ox=x.forwardRef(({discover:i="render",fetcherKey:u,navigate:o,reloadDocument:r,replace:d,state:m,method:p=Bs,action:v,onSubmit:g,relative:y,preventScrollReset:E,viewTransition:b,unstable_defaultShouldRevalidate:j,...z},q)=>{let{unstable_useTransitions:D}=x.useContext(Bt),X=hx(),B=px(v,{relative:y}),k=p.toLowerCase()==="get"?"get":"post",M=typeof v=="string"&&Kh.test(v),U=Z=>{if(g&&g(Z),Z.defaultPrevented)return;Z.preventDefault();let K=Z.nativeEvent.submitter,Y=(K==null?void 0:K.getAttribute("formmethod"))||p,F=()=>X(K||Z.currentTarget,{fetcherKey:u,method:Y,navigate:o,replace:d,state:m,relative:y,preventScrollReset:E,viewTransition:b,unstable_defaultShouldRevalidate:j});D&&o!==!1?x.startTransition(()=>F()):F()};return x.createElement("form",{ref:q,method:k,action:B,onSubmit:r?g:U,...z,"data-discover":!M&&i==="render"?"true":void 0})});ox.displayName="Form";function cx(i){return`${i} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jh(i){let u=x.useContext(sn);return Le(u,cx(i)),u}function fx(i,{target:u,replace:o,state:r,preventScrollReset:d,relative:m,viewTransition:p,unstable_defaultShouldRevalidate:v,unstable_useTransitions:g}={}){let y=Ja(),E=Ka(),b=ci(i,{relative:m});return x.useCallback(j=>{if(Gv(j,u)){j.preventDefault();let z=o!==void 0?o:ni(E)===ni(b),q=()=>y(i,{replace:z,state:r,preventScrollReset:d,relative:m,viewTransition:p,unstable_defaultShouldRevalidate:v});g?x.startTransition(()=>q()):q()}},[E,y,b,o,r,u,i,d,m,p,v,g])}var dx=0,mx=()=>`__${String(++dx)}__`;function hx(){let{router:i}=Jh("useSubmit"),{basename:u}=x.useContext(Bt),o=Ov(),r=i.fetch,d=i.navigate;return x.useCallback(async(m,p={})=>{let{action:v,method:g,encType:y,formData:E,body:b}=Vv(m,u);if(p.navigate===!1){let j=p.fetcherKey||mx();await r(j,o,p.action||v,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:E,body:b,formMethod:p.method||g,formEncType:p.encType||y,flushSync:p.flushSync})}else await d(p.action||v,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:E,body:b,formMethod:p.method||g,formEncType:p.encType||y,replace:p.replace,state:p.state,fromRouteId:o,flushSync:p.flushSync,viewTransition:p.viewTransition})},[r,d,u,o])}function px(i,{relative:u}={}){let{basename:o}=x.useContext(Bt),r=x.useContext(va);Le(r,"useFormAction must be used inside a RouteContext");let[d]=r.matches.slice(-1),m={...ci(i||".",{relative:u})},p=Ka();if(i==null){m.search=p.search;let v=new URLSearchParams(m.search),g=v.getAll("index");if(g.some(E=>E==="")){v.delete("index"),g.filter(b=>b).forEach(b=>v.append("index",b));let E=v.toString();m.search=E?`?${E}`:""}}return(!i||i===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(m.pathname=m.pathname==="/"?o:ma([o,m.pathname])),ni(m)}function yx(i,{relative:u}={}){let o=x.useContext(Hh);Le(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Jh("useViewTransitionState"),d=ci(i,{relative:u});if(!o.isTransitioning)return!1;let m=ya(o.currentLocation.pathname,r)||o.currentLocation.pathname,p=ya(o.nextLocation.pathname,r)||o.nextLocation.pathname;return ks(d.pathname,p)!=null||ks(d.pathname,m)!=null}function $h(i){var u,o,r="";if(typeof i=="string"||typeof i=="number")r+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(u=0;u<d;u++)i[u]&&(o=$h(i[u]))&&(r&&(r+=" "),r+=o)}else for(o in i)i[o]&&(r&&(r+=" "),r+=o);return r}function pl(){for(var i,u,o=0,r="",d=arguments.length;o<d;o++)(i=arguments[o])&&(u=$h(i))&&(r&&(r+=" "),r+=u);return r}function gx(i){if(typeof document>"u")return;let u=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",u.firstChild?u.insertBefore(o,u.firstChild):u.appendChild(o),o.styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i))}gx(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
`);var fi=i=>typeof i=="number"&&!isNaN(i),yl=i=>typeof i=="string",ga=i=>typeof i=="function",vx=i=>yl(i)||fi(i),Ao=i=>yl(i)||ga(i)?i:null,xx=(i,u)=>i===!1||fi(i)&&i>0?i:u,wo=i=>x.isValidElement(i)||yl(i)||ga(i)||fi(i);function bx(i,u,o=300){let{scrollHeight:r,style:d}=i;requestAnimationFrame(()=>{d.minHeight="initial",d.height=r+"px",d.transition=`all ${o}ms`,requestAnimationFrame(()=>{d.height="0",d.padding="0",d.margin="0",setTimeout(u,o)})})}function Sx({enter:i,exit:u,appendPosition:o=!1,collapse:r=!0,collapseDuration:d=300}){return function({children:m,position:p,preventExitTransition:v,done:g,nodeRef:y,isIn:E,playToast:b}){let j=o?`${i}--${p}`:i,z=o?`${u}--${p}`:u,q=x.useRef(0);return x.useLayoutEffect(()=>{let D=y.current,X=j.split(" "),B=k=>{k.target===y.current&&(b(),D.removeEventListener("animationend",B),D.removeEventListener("animationcancel",B),q.current===0&&k.type!=="animationcancel"&&D.classList.remove(...X))};D.classList.add(...X),D.addEventListener("animationend",B),D.addEventListener("animationcancel",B)},[]),x.useEffect(()=>{let D=y.current,X=()=>{D.removeEventListener("animationend",X),r?bx(D,g,d):g()};E||(v?X():(q.current=1,D.className+=` ${z}`,D.addEventListener("animationend",X)))},[E]),Be.createElement(Be.Fragment,null,m)}}function rh(i,u){return{content:Fh(i.content,i.props),containerId:i.props.containerId,id:i.props.toastId,theme:i.props.theme,type:i.props.type,data:i.props.data||{},isLoading:i.props.isLoading,icon:i.props.icon,reason:i.removalReason,status:u}}function Fh(i,u,o=!1){return x.isValidElement(i)&&!yl(i.type)?x.cloneElement(i,{closeToast:u.closeToast,toastProps:u,data:u.data,isPaused:o}):ga(i)?i({closeToast:u.closeToast,toastProps:u,data:u.data,isPaused:o}):i}function Ex({closeToast:i,theme:u,ariaLabel:o="close"}){return Be.createElement("button",{className:`Toastify__close-button Toastify__close-button--${u}`,type:"button",onClick:r=>{r.stopPropagation(),i(!0)},"aria-label":o},Be.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Be.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function _x({delay:i,isRunning:u,closeToast:o,type:r="default",hide:d,className:m,controlledProgress:p,progress:v,rtl:g,isIn:y,theme:E}){let b=d||p&&v===0,j={animationDuration:`${i}ms`,animationPlayState:u?"running":"paused"};p&&(j.transform=`scaleX(${v})`);let z=pl("Toastify__progress-bar",p?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${E}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":g}),q=ga(m)?m({rtl:g,type:r,defaultClassName:z}):pl(z,m),D={[p&&v>=1?"onTransitionEnd":"onAnimationEnd"]:p&&v<1?null:()=>{y&&o()}};return Be.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":b},Be.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${E} Toastify__progress-bar--${r}`}),Be.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:q,style:j,...D}))}var Tx=1,Wh=()=>`${Tx++}`;function Nx(i,u,o){let r=1,d=0,m=[],p=[],v=u,g=new Map,y=new Set,E=k=>(y.add(k),()=>y.delete(k)),b=()=>{p=Array.from(g.values()),y.forEach(k=>k())},j=({containerId:k,toastId:M,updateId:U})=>{let Z=k?k!==i:i!==1,K=g.has(M)&&U==null;return Z||K},z=(k,M)=>{g.forEach(U=>{var Z;(M==null||M===U.props.toastId)&&((Z=U.toggle)==null||Z.call(U,k))})},q=k=>{var M,U;(U=(M=k.props)==null?void 0:M.onClose)==null||U.call(M,k.removalReason),k.isActive=!1},D=k=>{if(k==null)g.forEach(q);else{let M=g.get(k);M&&q(M)}b()},X=()=>{d-=m.length,m=[]},B=k=>{var M,U;let{toastId:Z,updateId:K}=k.props,Y=K==null;k.staleId&&g.delete(k.staleId),k.isActive=!0,g.set(Z,k),b(),o(rh(k,Y?"added":"updated")),Y&&((U=(M=k.props).onOpen)==null||U.call(M))};return{id:i,props:v,observe:E,toggle:z,removeToast:D,toasts:g,clearQueue:X,buildToast:(k,M)=>{if(j(M))return;let{toastId:U,updateId:Z,data:K,staleId:Y,delay:F}=M,te=Z==null;te&&d++;let V={...v,style:v.toastStyle,key:r++,...Object.fromEntries(Object.entries(M).filter(([ue,Oe])=>Oe!=null)),toastId:U,updateId:Z,data:K,isIn:!1,className:Ao(M.className||v.toastClassName),progressClassName:Ao(M.progressClassName||v.progressClassName),autoClose:M.isLoading?!1:xx(M.autoClose,v.autoClose),closeToast(ue){g.get(U).removalReason=ue,D(U)},deleteToast(){let ue=g.get(U);if(ue!=null){if(o(rh(ue,"removed")),g.delete(U),d--,d<0&&(d=0),m.length>0){B(m.shift());return}b()}}};V.closeButton=v.closeButton,M.closeButton===!1||wo(M.closeButton)?V.closeButton=M.closeButton:M.closeButton===!0&&(V.closeButton=wo(v.closeButton)?v.closeButton:!0);let ee={content:k,props:V,staleId:Y};v.limit&&v.limit>0&&d>v.limit&&te?m.push(ee):fi(F)?setTimeout(()=>{B(ee)},F):B(ee)},setProps(k){v=k},setToggle:(k,M)=>{let U=g.get(k);U&&(U.toggle=M)},isToastActive:k=>{var M;return(M=g.get(k))==null?void 0:M.isActive},getSnapshot:()=>p}}var it=new Map,ii=[],zo=new Set,jx=i=>zo.forEach(u=>u(i)),Ih=()=>it.size>0;function Cx(){ii.forEach(i=>e0(i.content,i.options)),ii=[]}var Ax=(i,{containerId:u})=>{var o;return(o=it.get(u||1))==null?void 0:o.toasts.get(i)};function Ph(i,u){var o;if(u)return!!((o=it.get(u))!=null&&o.isToastActive(i));let r=!1;return it.forEach(d=>{d.isToastActive(i)&&(r=!0)}),r}function wx(i){if(!Ih()){ii=ii.filter(u=>i!=null&&u.options.toastId!==i);return}if(i==null||vx(i))it.forEach(u=>{u.removeToast(i)});else if(i&&("containerId"in i||"id"in i)){let u=it.get(i.containerId);u?u.removeToast(i.id):it.forEach(o=>{o.removeToast(i.id)})}}var zx=(i={})=>{it.forEach(u=>{u.props.limit&&(!i.containerId||u.id===i.containerId)&&u.clearQueue()})};function e0(i,u){wo(i)&&(Ih()||ii.push({content:i,options:u}),it.forEach(o=>{o.buildToast(i,u)}))}function Mx(i){var u;(u=it.get(i.containerId||1))==null||u.setToggle(i.id,i.fn)}function t0(i,u){it.forEach(o=>{(u==null||!(u!=null&&u.containerId)||(u==null?void 0:u.containerId)===o.id)&&o.toggle(i,u==null?void 0:u.id)})}function Ox(i){let u=i.containerId||1;return{subscribe(o){let r=Nx(u,i,jx);it.set(u,r);let d=r.observe(o);return Cx(),()=>{d(),it.delete(u)}},setProps(o){var r;(r=it.get(u))==null||r.setProps(o)},getSnapshot(){var o;return(o=it.get(u))==null?void 0:o.getSnapshot()}}}function Rx(i){return zo.add(i),()=>{zo.delete(i)}}function Dx(i){return i&&(yl(i.toastId)||fi(i.toastId))?i.toastId:Wh()}function di(i,u){return e0(i,u),u.toastId}function Gs(i,u){return{...u,type:u&&u.type||i,toastId:Dx(u)}}function Xs(i){return(u,o)=>di(u,Gs(i,o))}function oe(i,u){return di(i,Gs("default",u))}oe.loading=(i,u)=>di(i,Gs("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...u}));function Bx(i,{pending:u,error:o,success:r},d){let m;u&&(m=yl(u)?oe.loading(u,d):oe.loading(u.render,{...d,...u}));let p={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},v=(y,E,b)=>{if(E==null){oe.dismiss(m);return}let j={type:y,...p,...d,data:b},z=yl(E)?{render:E}:E;return m?oe.update(m,{...j,...z}):oe(z.render,{...j,...z}),b},g=ga(i)?i():i;return g.then(y=>v("success",r,y)).catch(y=>v("error",o,y)),g}oe.promise=Bx;oe.success=Xs("success");oe.info=Xs("info");oe.error=Xs("error");oe.warning=Xs("warning");oe.warn=oe.warning;oe.dark=(i,u)=>di(i,Gs("default",{theme:"dark",...u}));function Ux(i){wx(i)}oe.dismiss=Ux;oe.clearWaitingQueue=zx;oe.isActive=Ph;oe.update=(i,u={})=>{let o=Ax(i,u);if(o){let{props:r,content:d}=o,m={delay:100,...r,...u,toastId:u.toastId||i,updateId:Wh()};m.toastId!==i&&(m.staleId=i);let p=m.render||d;delete m.render,di(p,m)}};oe.done=i=>{oe.update(i,{progress:1})};oe.onChange=Rx;oe.play=i=>t0(!0,i);oe.pause=i=>t0(!1,i);function Lx(i){var u;let{subscribe:o,getSnapshot:r,setProps:d}=x.useRef(Ox(i)).current;d(i);let m=(u=x.useSyncExternalStore(o,r,r))==null?void 0:u.slice();function p(v){if(!m)return[];let g=new Map;return i.newestOnTop&&m.reverse(),m.forEach(y=>{let{position:E}=y.props;g.has(E)||g.set(E,[]),g.get(E).push(y)}),Array.from(g,y=>v(y[0],y[1]))}return{getToastToRender:p,isToastActive:Ph,count:m==null?void 0:m.length}}function Hx(i){let[u,o]=x.useState(!1),[r,d]=x.useState(!1),m=x.useRef(null),p=x.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:v,pauseOnHover:g,closeToast:y,onClick:E,closeOnClick:b}=i;Mx({id:i.toastId,containerId:i.containerId,fn:o}),x.useEffect(()=>{if(i.pauseOnFocusLoss)return j(),()=>{z()}},[i.pauseOnFocusLoss]);function j(){document.hasFocus()||B(),window.addEventListener("focus",X),window.addEventListener("blur",B)}function z(){window.removeEventListener("focus",X),window.removeEventListener("blur",B)}function q(Y){if(i.draggable===!0||i.draggable===Y.pointerType){k();let F=m.current;p.canCloseOnClick=!0,p.canDrag=!0,F.style.transition="none",i.draggableDirection==="x"?(p.start=Y.clientX,p.removalDistance=F.offsetWidth*(i.draggablePercent/100)):(p.start=Y.clientY,p.removalDistance=F.offsetHeight*(i.draggablePercent===80?i.draggablePercent*1.5:i.draggablePercent)/100)}}function D(Y){let{top:F,bottom:te,left:V,right:ee}=m.current.getBoundingClientRect();Y.nativeEvent.type!=="touchend"&&i.pauseOnHover&&Y.clientX>=V&&Y.clientX<=ee&&Y.clientY>=F&&Y.clientY<=te?B():X()}function X(){o(!0)}function B(){o(!1)}function k(){p.didMove=!1,document.addEventListener("pointermove",U),document.addEventListener("pointerup",Z)}function M(){document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",Z)}function U(Y){let F=m.current;if(p.canDrag&&F){p.didMove=!0,u&&B(),i.draggableDirection==="x"?p.delta=Y.clientX-p.start:p.delta=Y.clientY-p.start,p.start!==Y.clientX&&(p.canCloseOnClick=!1);let te=i.draggableDirection==="x"?`${p.delta}px, var(--y)`:`0, calc(${p.delta}px + var(--y))`;F.style.transform=`translate3d(${te},0)`,F.style.opacity=`${1-Math.abs(p.delta/p.removalDistance)}`}}function Z(){M();let Y=m.current;if(p.canDrag&&p.didMove&&Y){if(p.canDrag=!1,Math.abs(p.delta)>p.removalDistance){d(!0),i.closeToast(!0),i.collapseAll();return}Y.style.transition="transform 0.2s, opacity 0.2s",Y.style.removeProperty("transform"),Y.style.removeProperty("opacity")}}let K={onPointerDown:q,onPointerUp:D};return v&&g&&(K.onMouseEnter=B,i.stacked||(K.onMouseLeave=X)),b&&(K.onClick=Y=>{E&&E(Y),p.canCloseOnClick&&y(!0)}),{playToast:X,pauseToast:B,isRunning:u,preventExitTransition:r,toastRef:m,eventHandlers:K}}var kx=typeof window<"u"?x.useLayoutEffect:x.useEffect,Qs=({theme:i,type:u,isLoading:o,...r})=>Be.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:i==="colored"?"currentColor":`var(--toastify-icon-color-${u})`,...r});function qx(i){return Be.createElement(Qs,{...i},Be.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function Yx(i){return Be.createElement(Qs,{...i},Be.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function Gx(i){return Be.createElement(Qs,{...i},Be.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function Xx(i){return Be.createElement(Qs,{...i},Be.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function Qx(){return Be.createElement("div",{className:"Toastify__spinner"})}var Mo={info:Yx,warning:qx,success:Gx,error:Xx,spinner:Qx},Vx=i=>i in Mo;function Zx({theme:i,type:u,isLoading:o,icon:r}){let d=null,m={theme:i,type:u};return r===!1||(ga(r)?d=r({...m,isLoading:o}):x.isValidElement(r)?d=x.cloneElement(r,m):o?d=Mo.spinner():Vx(u)&&(d=Mo[u](m))),d}var Kx=i=>{let{isRunning:u,preventExitTransition:o,toastRef:r,eventHandlers:d,playToast:m}=Hx(i),{closeButton:p,children:v,autoClose:g,onClick:y,type:E,hideProgressBar:b,closeToast:j,transition:z,position:q,className:D,style:X,progressClassName:B,updateId:k,role:M,progress:U,rtl:Z,toastId:K,deleteToast:Y,isIn:F,isLoading:te,closeOnClick:V,theme:ee,ariaLabel:ue}=i,Oe=pl("Toastify__toast",`Toastify__toast-theme--${ee}`,`Toastify__toast--${E}`,{"Toastify__toast--rtl":Z},{"Toastify__toast--close-on-click":V}),_e=ga(D)?D({rtl:Z,position:q,type:E,defaultClassName:Oe}):pl(Oe,D),Me=Zx(i),R=!!U||!g,$={closeToast:j,type:E,theme:ee},ae=null;return p===!1||(ga(p)?ae=p($):x.isValidElement(p)?ae=x.cloneElement(p,$):ae=Ex($)),Be.createElement(z,{isIn:F,done:Y,position:q,preventExitTransition:o,nodeRef:r,playToast:m},Be.createElement("div",{id:K,tabIndex:0,onClick:y,"data-in":F,className:_e,...d,style:X,ref:r,...F&&{role:M,"aria-label":ue}},Me!=null&&Be.createElement("div",{className:pl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},Me),Fh(v,i,!u),ae,!i.customProgressBar&&Be.createElement(_x,{...k&&!R?{key:`p-${k}`}:{},rtl:Z,theme:ee,delay:g,isRunning:u,isIn:F,closeToast:j,hide:b,type:E,className:B,controlledProgress:R,progress:U||0})))},Jx=(i,u=!1)=>({enter:`Toastify--animate Toastify__${i}-enter`,exit:`Toastify--animate Toastify__${i}-exit`,appendPosition:u}),$x=Sx(Jx("bounce",!0)),Fx={position:"top-right",transition:$x,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:i=>i.altKey&&i.code==="KeyT"};function Wx(i){let u={...Fx,...i},o=i.stacked,[r,d]=x.useState(!0),m=x.useRef(null),{getToastToRender:p,isToastActive:v,count:g}=Lx(u),{className:y,style:E,rtl:b,containerId:j,hotKeys:z}=u;function q(X){let B=pl("Toastify__toast-container",`Toastify__toast-container--${X}`,{"Toastify__toast-container--rtl":b});return ga(y)?y({position:X,rtl:b,defaultClassName:B}):pl(B,Ao(y))}function D(){o&&(d(!0),oe.play())}return kx(()=>{var X;if(o){let B=m.current.querySelectorAll('[data-in="true"]'),k=12,M=(X=u.position)==null?void 0:X.includes("top"),U=0,Z=0;Array.from(B).reverse().forEach((K,Y)=>{let F=K;F.classList.add("Toastify__toast--stacked"),Y>0&&(F.dataset.collapsed=`${r}`),F.dataset.pos||(F.dataset.pos=M?"top":"bot");let te=U*(r?.2:1)+(r?0:k*Y);F.style.setProperty("--y",`${M?te:te*-1}px`),F.style.setProperty("--g",`${k}`),F.style.setProperty("--s",`${1-(r?Z:0)}`),U+=F.offsetHeight,Z+=.025})}},[r,g,o]),x.useEffect(()=>{function X(B){var k;let M=m.current;z(B)&&((k=M.querySelector('[tabIndex="0"]'))==null||k.focus(),d(!1),oe.pause()),B.key==="Escape"&&(document.activeElement===M||M!=null&&M.contains(document.activeElement))&&(d(!0),oe.play())}return document.addEventListener("keydown",X),()=>{document.removeEventListener("keydown",X)}},[z]),Be.createElement("section",{ref:m,className:"Toastify",id:j,onMouseEnter:()=>{o&&(d(!1),oe.pause())},onMouseLeave:D,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":u["aria-label"]},p((X,B)=>{let k=B.length?{...E}:{...E,pointerEvents:"none"};return Be.createElement("div",{tabIndex:-1,className:q(X),"data-stacked":o,style:k,key:`c-${X}`},B.map(({content:M,props:U})=>Be.createElement(Kx,{...U,stacked:o,collapseAll:D,isIn:v(U.toastId,U.containerId),key:`t-${U.key}`},M)))}))}const a0=x.createContext(void 0),Ix=({children:i})=>{const[u,o]=x.useState([]),[r,d]=x.useState(void 0),[m,p]=x.useState([]),[v,g]=x.useState([]),y=Ka(),E=Ja(),[b,j]=x.useState(y.pathname==="/cart"),z=x.useCallback((...U)=>{const Z=u.filter(K=>U.some(Y=>Y.id===K.id));return Z.forEach(K=>K.quantity=0),Z.map(K=>{const Y={...K};return Y.quantity=U.filter(F=>F.id===K.id).reduce((F,te)=>F+te.quantity,0),Y})},[u]),q=x.useCallback((U,Z)=>{const K=u.map(Y=>Y.id===U?{...Y,price:Z}:Y);o(K)},[u]),D=x.useCallback(U=>{o(U),p(U.reduce((Z,K)=>(Z.includes(K.type)||Z.push(K.type),Z),[]))},[o]),X=x.useCallback(U=>{const Z=u.filter(K=>K.id!==U);o(Z)},[u]),B=x.useCallback(U=>{U!==b&&(j(U),U?E("/cart"):y.pathname==="/cart"&&E("/",{replace:!0}))},[b,E,y.pathname]),k=x.useMemo(()=>({items:v,isOpen:b,setItems:g,addProduct:U=>{g(Z=>Z.find(Y=>Y.id===U.id)?Z.map(Y=>Y.id===U.id?{...Y,quantity:Y.quantity+1}:Y):(oe(`Se ha añadido ${U.name} al carrito`,{type:"success",autoClose:2e3}),[...Z,{...U,quantity:1}]))},changeQuantity:(U,Z)=>{g(K=>K.map(Y=>{if(Y.id===U){const F=Y.quantity+Z;return{...Y,quantity:F}}return Y}).filter(Y=>Y.quantity>0))},removeProduct:U=>{g(Z=>Z.filter(K=>K.id!==U))},clear:()=>g([]),toggleCart:B}),[v,g,b]),M=x.useMemo(()=>({products:u,setProducts:D,categories:m,table:r,cart:k,setTable:d,getItems:z,updateProduct:q,removeProduct:X}),[u,o,r,d,k,z,q,X]);return f.jsx(a0.Provider,{value:M,children:i})},gl=()=>x.useContext(a0),da="Todos",Px=({onAddProduct:i})=>{const[u,o]=x.useState(""),[r,d]=x.useState(da),{products:m,categories:p,setProducts:v}=gl(),{setQuery:g,results:y}=wg(m,["name","description"],.4),E=Xy(u,500),{setIsLoading:b}=ui(),{isLogged:j}=Tt(),z=x.useRef(null),q=x.useRef(null),D=B=>{r!==da&&B!==""&&d(da),o(B)},X=x.useCallback(B=>{var k=z.current;k&&q.current&&(q.current.value=""),o(""),k&&k.animate([{filter:"blur(0px)"},{filter:"blur(10px)"},{filter:"blur(0px)"}],{duration:300,fill:"forwards"}),k.scrollIntoView({behavior:"instant",block:"start"}),setTimeout(()=>{d(B)},300)},[z]);return x.useEffect(()=>{r!==da&&u!==""&&d(da);var B=z.current;B&&B.animate([{filter:"blur(0px)"},{filter:"blur(10px)"},{filter:"blur(0px)"}],{duration:150,fill:"forwards"}),setTimeout(()=>{g(E),z.current.scrollIntoView({behavior:"instant",block:"start"})},150)},[E]),x.useEffect(()=>{(async()=>{if(m.length>0)return;b(!0,"Cargando Productos...");const k=await Og(j),M=k.data.products;if(k.success){const U=Lg(M);v(U),m.length>0&&setTimeout(()=>{b(!1)},1e3)}})()},[]),f.jsxs("section",{className:"flex-1 bg-background-dark overflow-y-auto relative flex flex-col z-10 h-full",children:[f.jsxs("div",{className:"sticky top-0 z-20 bg-background-dark/95 backdrop-blur-sm border-b border-white/5 px-4 py-4",children:[f.jsxs("div",{className:"relative mb-4 group",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 group-focus-within:text-primary transition-colors",children:"search"})}),f.jsx("input",{className:"block w-full pl-10 pr-3 py-2.5 border border-white/10 rounded-xl leading-5 bg-[#2a201c] text-gray-100 placeholder-gray-500 focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary sm:text-sm transition-all shadow-sm scrollbar-thin scrollbar-corner-amber-400",placeholder:"Busca lo que quieras...",type:"text",ref:q,onChange:B=>D(B.target.value)})]}),f.jsxs("div",{className:"flex gap-3 overflow-x-auto scrollbar-hide pb-1",children:[f.jsx("button",{className:"px-5 py-2 rounded-full text-white text-sm font-medium whitespace-nowrap shadow-lg"+(r===da?" bg-primary  shadow-primary/20":" bg-[#2a201c] hover:bg-[#3a2c26]"),onClick:()=>X(da),children:da}),p.sort(kg).map(B=>f.jsx("button",{className:"px-5 py-2 rounded-full bg-[#2a201c] text-gray-300 text-sm font-medium whitespace-nowrap  border border-white/5"+(r===B?" bg-primary  shadow-primary/20":" hover:bg-[#3a2c26]"),onClick:()=>X(B),children:B},B))]})]}),f.jsx("div",{ref:z,id:"productGrid",className:"p-4 grid grid-cols-2 gap-4 pb-28 scroll-m-30",children:y?y.sort(Hg).map(B=>{if(r===da||B.type===r)return f.jsx(Gy,{product:B,onAdd:i},B.id)}):"No se encontraron productos"})]})},oh=`${Gt}/api/chat`;class eb{constructor(){this.socket=null,this.messageHandler=null,this.errorHandler=null,this.closeHandler=null,this.mentionHandler=null}connect(u){this.socket&&this.socket.close();const r=`${Gt.replace(/^http/,"ws")}/api/chat/ws?token=${encodeURIComponent(u)}`;return this.socket=new WebSocket(r),this.socket.onopen=()=>{},this.socket.onmessage=d=>{try{const m=JSON.parse(d.data);if(m.type==="ping"){this.send({type:"pong"});return}if(m.type==="mention"){this.mentionHandler&&this.mentionHandler(m.username);return}this.messageHandler&&this.messageHandler(m)}catch(m){console.error("Error al parsear mensaje del WS:",m)}},this.socket.onerror=d=>{console.error("WebSocket error:",d),this.errorHandler&&this.errorHandler(d)},this.socket.onclose=()=>{this.closeHandler&&this.closeHandler()},!0}send(u){this.socket&&this.socket.readyState===WebSocket.OPEN?this.socket.send(JSON.stringify(u)):console.warn("No se pudo enviar el mensaje: WebSocket no conectado.")}join(u){this.send({type:"join",username:u})}sendMessage(u,o){this.send({type:"message",username:u,message:o})}sendAiMessage(u,o){this.send({type:"ai_message",username:u,message:o})}sendMention(u,o){this.send({type:"mention",username:o})}leave(u){this.send({type:"leave",username:u}),setTimeout(()=>{this.disconnect()},3e3)}disconnect(){this.socket&&(this.socket.close(),this.socket=null)}onMessage(u){this.messageHandler=u}onError(u){this.errorHandler=u}onClose(u){this.closeHandler=u}onMention(u){this.mentionHandler=u}async getConnectedUsers(u,o){var p;const r=new URL(`${oh}/users`);o&&r.searchParams.append("q",o);const d=await fetch(r.toString(),{headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json"}});if(!d.ok)throw new Error("Error fetching users");const m=await d.json();return((p=m.data)==null?void 0:p.users)||m.data||[]}async getOnlineCount(u){var d;const o=await fetch(`${oh}/onlines`,{headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json"}});if(!o.ok)throw new Error("Error fetching count");return((d=(await o.json()).data)==null?void 0:d.count)||0}async mention(u){this.send({type:"mention",username:u})}}const at=new eb,l0=x.createContext(void 0),tb=(i,u)=>`${i.name.split(" ")[0].toLowerCase()}_${u}`,ab=({children:i})=>{const[u,o]=x.useState([]),[r,d]=x.useState([]),[m,p]=x.useState(0),[v,g]=x.useState(!1),[y,E]=x.useState(null),[b,j]=x.useState(null),{isLogged:z,user:q,token:D}=Tt(),{table:X}=gl();x.useEffect(()=>(at.onMessage(V=>{o(ee=>[...ee,V]),V.type==="join"&&V.username?(d(ee=>Array.from(new Set([...ee,V.username]))),p(ee=>ee+1)):V.type==="leave"&&V.username&&(d(ee=>ee.filter(ue=>ue!==V.username)),p(ee=>Math.max(0,ee-1)))}),at.onError(()=>{E("Error de conexión en el WebSocket."),g(!1)}),at.onClose(()=>{g(!1)}),at.onMention(V=>{V===b&&oe.info("has sido mencionado en el chat",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,theme:"dark",toastId:`mention-${Date.now()}`})}),()=>{at.disconnect()}),[]);const B=x.useCallback(async()=>{try{const V=await at.getConnectedUsers(D),ee=await at.getOnlineCount(D);d(V),p(ee)}catch(V){console.error("Error refreshing users",V)}},[D]),k=x.useCallback(()=>{try{E(null);const V=at.connect(D);if(!V){E("Error de conexión en el WebSocket."),g(!1);return}const ee=tb(q,X);j(ee),g(V),B(),setTimeout(()=>{at.join(ee)},500)}catch(V){E(V.message||"Error al conectar"),g(!1)}},[B,q]),M=x.useCallback(()=>{b&&v&&at.leave(b),at.disconnect(),g(!1),o([]),j(null)},[b]),U=x.useCallback(V=>{q&&at.sendMessage(b,V)},[q,b]),Z=x.useCallback(async V=>{q&&at.sendAiMessage(b,V)},[q,b]),K=x.useCallback(V=>{at.join(V),j(V)},[]),Y=x.useCallback(async()=>await at.getConnectedUsers(D),[D]),F=x.useCallback(V=>{at.mention(V)},[]);x.useEffect(()=>{!z&&v&&M()},[z]);const te=x.useMemo(()=>({username:b,messages:u,onlineUsers:r,onlineCount:m,isConnected:v,error:y,connectChat:k,disconnectChat:M,sendMessage:U,sendAiMessage:Z,mentionUser:F,joinRoom:K,refreshUsers:B,getUsers:Y}),[b,u,r,F,m,v,y,k,M,U,Z,K,B,Y]);return f.jsx(l0.Provider,{value:te,children:i})},lb=()=>{const i=x.useContext(l0);if(i===void 0)throw new Error("useChat debe ser usado dentro de un ChatProvider");return i},ch=["text-red-600","text-green-600","text-blue-600","text-yellow-600","text-purple-600","text-pink-600","text-orange-600","text-cyan-600","text-sky-600","text-lime-600","text-emerald-600","text-teal-600","text-indigo-600"],nb=i=>{const u=Math.abs(i.split("").reduce((o,r)=>o+r.charCodeAt(0),0))%ch.length;return ch[u]},ib=({onBrowseMenu:i})=>{const{username:u,messages:o,sendMessage:r,sendAiMessage:d,connectChat:m,onlineCount:p,isConnected:v,getUsers:g,mentionUser:y}=lb(),{user:E}=Tt(),[b,j]=x.useState(""),[z,q]=x.useState(!1),[D,X]=x.useState(""),[B,k]=x.useState([]),M=x.useRef(null),U=x.useRef(null);x.useEffect(()=>{v||m()},[]),x.useEffect(()=>{M.current&&(M.current.scrollTop=M.current.scrollHeight)},[o]),x.useEffect(()=>{const V=o[o.length-1];V&&V.type==="mentioned"&&V.username===u&&oe.info("has sido mencionado en el chat",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,theme:"dark",toastId:`mention-${Date.now()}`})},[o,u]),x.useEffect(()=>{z&&g().then(V=>{V.push("IAKlein"),V=V.filter(ee=>ee!==u),k(V)})},[z,g]);const Z=x.useMemo(()=>o.filter(V=>!["mentioned","ping","pong"].includes(V.type)).map((V,ee)=>{const ue=new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});let Oe=V.username||"Unknown",_e=V.message||"",Me=!1,R=!1;switch(V.type){case"join":Oe="system",_e=`${V.username} se ha conectado al chat`,Me=!0;break;case"leave":Oe="system",_e=`${V.username} se ha desconectado del chat`,Me=!0;break;case"ai_message":Oe="ai",R=!0;break}return{id:ee,timestamp:ue,sender:Oe,text:_e,isSystem:Me,isAi:R}}),[o]),K=V=>{const ee=V.target.value;j(ee);const ue=ee.split(" ").pop();ue&&ue.startsWith("@")?(X(ue.slice(1)),q(!0)):q(!1)},Y=V=>{var ue;const ee=b.split(" ");ee.pop(),ee.push(`@${V} `),j(ee.join(" ")),q(!1),(ue=U.current)==null||ue.focus()},F=V=>{if(V.preventDefault(),!b.trim())return;r(b.trim());const ee=b.match(/@(\w+)/g);ee&&ee.forEach(ue=>{const Oe=ue.substring(1);Oe==="IAKlein"?d(b.trim()):Oe!==u&&y(Oe)}),j(""),q(!1)},te=B.filter(V=>V.toLowerCase().includes(D.toLowerCase()));return f.jsxs("section",{className:"absolute inset-0 bg-terminal-bg flex flex-col z-0",children:[f.jsx("div",{className:"absolute inset-0 scanlines z-10 opacity-30 pointer-events-none"}),f.jsxs("div",{className:"flex items-center justify-between px-4 py-2 bg-[#1a1a1a] border-b border-[#333] z-20 shrink-0",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:`size-2 rounded-full ${v?"bg-green-500":"bg-red-500"} animate-pulse-fast`}),f.jsxs("h3",{className:"text-terminal-text tracking-widest text-xs uppercase font-bold",children:[v?"EN LINEA":"DESCONECTADO"," (",p,")"]})]}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs("button",{onClick:i,className:"text-terminal-text text-sm cursor-pointer hover:text-white transition-colors flex items-center gap-1 font-bold",children:[f.jsx("span",{className:"material-symbols-outlined text-base",children:"storefront"}),f.jsx("span",{children:"Ver Menu"})]}),f.jsx("span",{className:"text-[#666] text-xs font-mono",children:"v2.4.0"})]})]}),f.jsxs("div",{ref:M,className:"flex-1 overflow-y-auto p-4 space-y-3 font-mono text-sm z-0 relative pb-18",children:[Z.map(V=>f.jsx("div",{className:"flex gap-3 group",children:f.jsxs("div",{className:"flex-1 wrap-break-word",children:[f.jsxs("span",{className:"text-primary font-bold text-xs mr-2",children:["[",V.timestamp,"]"]}),V.isSystem?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"text-white font-bold mr-1",children:"<Sistema>"}),f.jsx("span",{className:"text-gray-300",children:V.text})]}):V.isAi?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"text-terminal-text font-bold mr-1",children:"<@IAKlein>"}),f.jsx("span",{className:"text-white",children:V.text})]}):f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:`${nb(V.sender)} font-bold mr-1`,children:["<",V.sender,">"]}),f.jsx("span",{className:"text-white",children:V.text.split(" ").map((ee,ue)=>ee.startsWith("@")?f.jsxs("span",{className:"text-yellow-400 font-bold",children:[ee," "]},ue):ee+" ")})]})]})},V.id)),!v&&o.length>0&&f.jsx("div",{className:"text-red-500 font-bold text-xs mt-2",children:"> CONNECTION LOST. RECONNECTING..."})]}),z&&te.length>0&&f.jsxs("div",{className:"absolute bottom-16 left-4 bg-[#0d0d0d] border border-[#333] w-48 max-h-40 overflow-y-auto z-30 shadow-lg",children:[f.jsx("div",{className:"text-xs text-gray-500 px-2 py-1 border-b border-[#333]",children:"SUGGESTIONS"}),te.map(V=>f.jsxs("button",{type:"button",onClick:()=>Y(V),className:"w-full text-left px-3 py-2 text-terminal-text hover:bg-[#222] hover:text-white text-sm font-mono transition-colors",children:["@",V]},V))]}),f.jsx("form",{className:"absolute bottom-0 left-0 right-0 p-2 bg-[#1a1a1a] z-20 shrink-0 pb-18",onSubmit:F,children:f.jsxs("div",{className:"flex w-full items-center rounded bg-black border border-[#333] px-3 py-2",children:[f.jsx("span",{className:"text-primary font-bold mr-2",children:">"}),f.jsx("input",{ref:U,value:b,onChange:K,className:"flex-1 bg-transparent border-none text-white font-mono text-sm focus:ring-0 focus:outline-none placeholder:text-white/60 p-0",placeholder:v?"Escribe: @IAKlein ayudame a maridar la Hoppy Mosh":"Connectando...",autoFocus:!0,disabled:!v}),f.jsx("button",{type:"submit",className:`text-terminal-text hover:text-white transition-colors ${v?"":"opacity-50 cursor-not-allowed"}`,disabled:!v,children:f.jsx("span",{className:"material-symbols-outlined text-lg",children:"send"})})]})})]})},sb=({icon:i,title:u,subtitle:o,type:r,onClick:d,to:m,needLogin:p,inDevelopment:v})=>{const g=Ja(),{isLogged:y}=Tt(),E=()=>{if(v){g("/coming-soon");return}if(p&&!y){oe("Debes estar logueado para acceder a esta sección",{type:"error"}),g("/login");return}r===0?d&&d():r===1&&m&&g(m)};return f.jsxs("button",{onClick:E,className:"group flex items-center gap-4 p-4 rounded-xl hover:bg-white/5 transition-colors active:bg-white/10 w-full text-left",children:[f.jsx("div",{className:"h-10 w-10 rounded-full bg-surface-dark flex items-center justify-center border border-white/5 group-hover:border-primary/50 group-hover:text-primary transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-gray-300 group-hover:text-primary",children:i})}),f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"text-base font-bold text-gray-100",children:u}),f.jsx("span",{className:"text-xs text-gray-500",children:o})]})]})},ub=({isOpen:i,onClose:u})=>{const[o,r]=x.useState(!1),[d,m]=x.useState(!1),{isLogged:p,user:v,setIsLoggedIn:g}=Tt(),{table:y}=gl(),{choose:E}=si(),{setIsLoading:b}=ui(),j=Ja(),z=async()=>{const D=await E("Selecciona el tipo de pago","wallet",{choices:[{value:"Efectivo",label:"Efectivo",icon:"payments"},{value:"Tarjeta",label:"Tarjeta",icon:"credit_card"}],style:"block"});if(!D)return;if(m(!1),b(!0,"Llamando a tu garzón..."),!(await Nh(y,p)).data){b(!1),oe("La Mesa no tiene productos para pagar",{type:"warning",autoClose:2e3});return}const B=await jh(p,y,D);B.success?(j(`/summary?table=${y}`),oe("La factura ha sido impresa correctamente",{type:"success",autoClose:2e3})):alert(B.message),b(!1)};x.useEffect(()=>{if(i){r(!0);const D=setTimeout(()=>m(!0),10);return()=>clearTimeout(D)}else{m(!1);const D=setTimeout(()=>r(!1),300);return()=>clearTimeout(D)}},[i]);const q=()=>{g(!1),Th("")};return o?f.jsxs("div",{className:"fixed inset-0 z-50 flex h-full w-full",children:[f.jsx("div",{className:`absolute inset-0 bg-[#0f0a08]/60 backdrop-blur-sm transition-opacity duration-300 ${d?"opacity-100":"opacity-0"}`,onClick:u}),f.jsxs("div",{className:`relative z-50 h-full w-[85%] max-w-85 bg-background-dark text-white shadow-2xl rounded-r-3xl flex flex-col border-r border-white/5 transform transition-transform duration-300 ease-out ${d?"translate-x-0":"-translate-x-full"}`,children:[f.jsxs("div",{className:"px-6 pt-12 pb-6 border-b border-white/5 flex items-center justify-between shrink-0",children:[f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"h-12 w-12 rounded-full overflow-hidden border-2 border-gray-600/50 shadow-lg shadow-primary/20 bg-surface-dark flex items-center justify-center",children:f.jsx("span",{className:"material-symbols-outlined text-gray-400 text-3xl",children:"account_circle"})}),p&&f.jsx("div",{className:"absolute bottom-0 right-0 h-3 w-3 bg-green-500 border-2 border-background-dark rounded-full"})]}),f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:`${p?"text-primary":"text-gray-400 "} text-xs font-medium tracking-wider uppercase`,children:p?"En Linea":"ESTADO: DESCONECTADO"}),f.jsx("span",{className:"text-xl font-bold leading-tight",children:p?`Hola, ${v==null?void 0:v.name}`:"Bienvenido"})]})]}),f.jsx("button",{onClick:u,className:"text-gray-400 hover:text-white p-2 rounded-full hover:bg-white/10 transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-3xl",children:"close"})})]}),f.jsxs("div",{className:"flex-1 overflow-y-auto py-8 px-4 flex flex-col gap-6 scrollbar-hide",children:[f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("p",{className:"px-4 text-xs font-bold text-gray-500 uppercase tracking-widest",children:p?"Sesión":"Acceso"}),p?f.jsx("button",{className:"flex items-center justify-center gap-2 py-4 px-6 rounded-2xl bg-primary text-white font-bold shadow-lg shadow-primary/25 active:scale-[0.98] transition-all",onClick:q,children:" Cerrar Sesión"}):f.jsxs(f.Fragment,{children:[f.jsxs(ha,{className:"flex items-center justify-center gap-2 py-4 px-6 rounded-2xl bg-primary text-white font-bold shadow-lg shadow-primary/25 active:scale-[0.98] transition-all",to:"/login",children:[f.jsx("span",{className:"material-symbols-outlined",children:"login"}),f.jsx("span",{children:"Iniciar Sesión"})]}),f.jsxs(ha,{className:"flex items-center justify-center gap-2 py-4 px-6 rounded-2xl border-2 border-primary text-primary font-bold active:scale-[0.98] transition-all",to:"/register",children:[f.jsx("span",{className:"material-symbols-outlined",children:"person_add"}),f.jsx("span",{children:"Registrarse"})]})]})]}),f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("p",{className:"px-4 text-xs font-bold text-gray-500 uppercase tracking-widest",children:"Acciones Rápidas"}),f.jsx("button",{className:"group relative w-full overflow-hidden rounded-2xl bg-[#a33f1e] p-1 shadow-[0_8px_20px_-6px_rgba(163,63,30,0.5)] transition-all active:scale-[0.97]",onClick:z,children:f.jsxs("div",{className:"relative w-full h-full bg-[#a33f1e] rounded-[0.9rem] border-t border-white/20 border-b overflow-hidden",children:[f.jsx("div",{className:"absolute inset-0 bg-linear-to-br from-white/10 via-transparent to-black/10 pointer-events-none"}),f.jsxs("div",{className:"relative z-10 flex items-center gap-5 p-5",children:[f.jsx("div",{className:"h-14 w-14 rounded-xl bg-black/20 backdrop-blur-sm border border-white/10 flex items-center justify-center shadow-inner text-[#ffdac1]",children:f.jsx("span",{className:"material-symbols-outlined text-3xl drop-shadow-sm",children:"receipt_long"})}),f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"text-xl font-bold leading-none text-white tracking-tight drop-shadow-md",children:"Solicitar Cuenta"}),f.jsx("span",{className:"text-xs text-white/80 font-medium mt-1.5 tracking-wide",children:"Llama un garzón"})]}),f.jsx("span",{className:"material-symbols-outlined ml-auto text-white/60 group-hover:text-white group-hover:translate-x-1 transition-all text-2xl",children:"arrow_forward"})]})]})}),f.jsxs(ha,{className:"group relative flex items-center gap-4 p-4 rounded-xl bg-[#252525]/40 backdrop-blur-md border border-white/5 hover:bg-white/5 hover:border-white/10 transition-all active:bg-white/10",to:"/summary",children:[f.jsx("div",{className:"h-10 w-10 rounded-lg bg-surface-dark/80 flex items-center justify-center border border-white/5 shadow-sm",children:f.jsx("span",{className:"material-symbols-outlined text-gray-300 text-[1.35rem]",children:"list_alt"})}),f.jsxs("div",{className:"flex flex-col z-10",children:[f.jsx("span",{className:"text-[0.95rem] font-bold text-gray-100 tracking-tight",children:"Consumo Actual"}),f.jsx("span",{className:"text-[11px] text-gray-500 font-medium tracking-wide uppercase",children:"Ver desglose de la cuenta"})]}),f.jsx("span",{className:"material-symbols-outlined ml-auto text-gray-600 group-hover:text-gray-400 transition-colors text-xl",children:"chevron_right"})]})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("p",{className:"px-4 text-xs font-bold text-gray-500 uppercase tracking-widest mt-2",children:"Navegación"}),[{icon:"checkroom",title:"Indumentaria",subtitle:"Merch oficial IRC",type:1,to:"/coming-soon"},{icon:"calendar_month",title:"Coordinar Banquetes",subtitle:"Reservas especiales",type:1,to:"/coming-soon"},{icon:"reviews",title:"Evaluar Servicio",subtitle:"Tu opinión nos ayuda",type:1,to:"/coming-soon"}].map(D=>f.jsx(sb,{...D},D.title))]})]}),f.jsxs("div",{className:"mt-auto px-6 py-8 border-t border-white/5 bg-[#1a100c]",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2 opacity-60",children:[f.jsx("span",{className:"material-symbols-outlined text-primary text-lg",children:"local_bar"}),f.jsx("span",{className:"font-bold text-sm tracking-widest uppercase",children:"Camilo Klein IRC"})]}),f.jsx("p",{className:"text-xs text-gray-600 font-mono",children:"v2.0.0 • Build 326"})]})]})]}):null},rb=99887766,ob=836295738,cb=i=>(parseInt(i.split("").reverse().join(""),12)^ob)-rb;function n0(){let u=new URLSearchParams(window.location.search).get("table");return u||(u=sessionStorage.getItem("table")),u?(sessionStorage.setItem("table",u),Number(cb(u))):-1}const fb=({isOpen:i,onClose:u,items:o})=>i?f.jsxs("div",{className:"fixed inset-0 z-60 flex items-center justify-center px-4",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[f.jsx("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-sm transition-opacity",onClick:u}),f.jsxs("div",{className:"relative w-full max-w-sm overflow-hidden rounded-2xl bg-[#201512] border border-white/10 shadow-2xl transition-all",children:[f.jsxs("div",{className:"p-6 pb-2",children:[f.jsx("div",{className:"flex items-center justify-center mb-5",children:f.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-orange-500/10 ring-1 ring-orange-500/20",children:f.jsx("span",{className:"material-symbols-outlined text-orange-400",style:{fontSize:"24px"},children:"notifications_active"})})}),f.jsxs("div",{className:"text-center",children:[f.jsx("h3",{className:"text-xl font-bold leading-6 text-white",id:"modal-title",children:"Actualizacion de Productos"}),f.jsx("p",{className:"mt-2 text-sm text-gray-400",children:"El precio y disponibilidad de los productos en tu carrito han cambiado."})]})]}),f.jsx("div",{className:"px-5 py-4 space-y-3 max-h-[40vh] overflow-y-auto no-scrollbar",children:o.map(r=>f.jsx(db,{item:r},r.product.id))}),f.jsx("div",{className:"bg-[#201512] px-5 pb-6 pt-2",children:f.jsx("button",{type:"button",onClick:u,className:"inline-flex w-full justify-center rounded-xl bg-[#a33f1e] px-3 py-3.5 text-sm font-bold text-white shadow-sm hover:bg-[#8f3619] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#a33f1e] transition-colors",children:"Entendido"})})]})]}):null,db=({item:i})=>{const u=i.newPrice>i.oldPrice,o=u?"text-red-500":"text-green-500",r=u?"arrow_upward":"arrow_downward";return i.isAvailable?f.jsxs("div",{className:"flex items-center gap-3 rounded-xl bg-white/5 p-3 ring-1 ring-white/10",children:[f.jsx("div",{className:"h-12 w-12 shrink-0 overflow-hidden rounded-lg bg-gray-800",children:f.jsx("div",{className:"h-full w-full bg-cover bg-center",style:{backgroundImage:`url("${i.product.image}")`}})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"text-sm font-bold text-white truncate",children:i.product.name}),f.jsxs("div",{className:"mt-1 flex items-baseline gap-2",children:[f.jsx("span",{className:"text-xs text-gray-500 line-through",children:qt(i.oldPrice)}),f.jsxs("span",{className:`flex items-center text-sm font-bold ${o}`,children:[qt(i.newPrice),f.jsx("span",{className:"material-symbols-outlined ml-0.5",style:{fontSize:"16px"},children:r})]})]})]})]}):f.jsxs("div",{className:"relative flex items-center gap-3 rounded-xl bg-white/5 p-3 ring-1 ring-white/10 opacity-60 grayscale",children:[f.jsx("div",{className:"h-12 w-12 shrink-0 overflow-hidden rounded-lg bg-gray-800",children:f.jsx("div",{className:"h-full w-full bg-cover bg-center",style:{backgroundImage:`url("${i.product.image}")`}})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"text-sm font-bold text-white truncate",children:i.product.name}),f.jsx("span",{className:"mt-1 inline-flex items-center rounded bg-gray-700/50 px-1.5 py-0.5 text-[10px] font-medium text-gray-200 ring-1 ring-inset ring-gray-500/20",children:"No disponible por ahora"})]})]})},mb=({cart:i,onClose:u})=>{const[o,r]=x.useState(!1),{user:d,isLogged:m,setPromoPercent:p}=Tt(),[v,g]=x.useState([]),{table:y,setTable:E,updateProduct:b,removeProduct:j}=gl(),{setIsLoading:z}=ui(),q=Ja(),{confirm:D,prompt:X}=si(),B=x.useCallback(async U=>{console.log("Agregando comentario");const Z=await X("Notas del pedido","comment",{placeholder:"Sin hielo por favor",defaultValue:U.comment});console.log("comment",Z),!(!Z&&Z!=="")&&i.setItems(i.items.map(K=>K.id===U.id?{...K,comment:Z}:K))},[i.items]),k=async U=>{if(!await D(`¿Deseas agregar el pedido a la mesa ${y}?`,"restaurant",{confirmText:"Enviar Pedido",cancelText:"Revisar",checkboxOptions:{label:"He revisado mi pedido y acepto los términos de pago",required:!0}}))return;if(i.items.length===0){oe("No tienes productos en tu carrito",{type:"warning",autoClose:2e3});return}z(!0,"Enviando pedido...");const K=await Bg(m);if(console.log("status",K),!K){z(!1),oe("Los pedidos se encuentran deshabilitados temporalmente",{type:"error",autoClose:3e3});return}const Y={customerId:(d==null?void 0:d.id)||0,table:y,items:i.items.map(te=>({id:te.id,price:te.price,quantity:te.quantity,comment:te.comment??""})),totalAmount:M,orderDate:new Date().toISOString()},F=await Rg(Y,m);if(z(!1),F.success){if(!("new_progress"in F.data)){g(F.data);for(const te of F.data)te.isAvailable?b(te.product.id,te.newPrice):j(te.product.id);return}oe("Pedido enviado correctamente",{type:"success",autoClose:2e3}),p(F.data.new_progress),u(),i.clear()}else alert(F.message)};x.useEffect(()=>{if(i.isOpen)r(!0);else{const U=setTimeout(()=>r(!1),300);return()=>clearTimeout(U)}},[i.isOpen]),x.useEffect(()=>{const U=n0();if(U===-1){q("/no-table");return}E(U)},[]);const M=i.items.reduce((U,Z)=>U+Z.price*Z.quantity,0);return o?f.jsxs("div",{className:"fixed inset-0 z-40 flex flex-col justify-end",children:[f.jsx(fb,{isOpen:v.length>0,onClose:()=>g([]),items:v}),f.jsx("div",{className:`absolute inset-0 bg-background-dark/60 backdrop-blur-md transition-opacity duration-300 ${i.isOpen?"opacity-100":"opacity-0"}`,onClick:u}),f.jsxs("div",{className:`relative z-40 flex flex-col w-full max-w-md mx-auto bg-background-light dark:bg-background-dark rounded-t-3xl h-[94vh] shadow-2xl border-t border-white/5 ring-1 ring-white/10 transform transition-transform duration-300 ease-out ${i.isOpen?"translate-y-0":"-translate-y-full"}`,children:[f.jsx("div",{className:"flex flex-col items-center pt-3 pb-2 shrink-0 w-full cursor-grab active:cursor-grabbing hover:opacity-80 transition-opacity",onClick:u,children:f.jsx("div",{className:"h-1 w-10 rounded-full bg-gray-300 dark:bg-[#54413b]"})}),f.jsxs("div",{className:"flex items-center px-6 pb-4 pt-1 justify-between shrink-0",children:[f.jsx("button",{onClick:u,className:"group flex items-center justify-center size-10 rounded-full bg-gray-200 dark:bg-white/5 hover:bg-gray-300 dark:hover:bg-white/10 transition-all active:scale-95",children:f.jsx("span",{className:"material-symbols-outlined text-gray-700 dark:text-white group-hover:rotate-90 transition-transform duration-300",style:{fontSize:"24px"},children:"close"})}),f.jsxs("div",{className:"flex flex-col items-center",children:[f.jsx("h2",{className:"text-gray-900 dark:text-white text-lg font-bold leading-none tracking-tight",children:"Pedidos Express"}),f.jsxs("span",{className:"text-xs text-primary font-medium mt-1 tracking-wider uppercase",children:["Mesa #",y]})]}),f.jsx("button",{onClick:i.clear,className:"text-[#b9a49d] hover:text-primary text-sm font-bold leading-normal tracking-wide transition-colors",children:"Clear"})]}),f.jsx("div",{className:"flex-1 overflow-y-auto no-scrollbar px-5 pb-40",children:i.items.length===0?f.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-gray-500",children:[f.jsx("span",{className:"material-symbols-outlined text-6xl mb-4 opacity-50",children:"shopping_cart_off"}),f.jsx("p",{children:"Your cart is empty."})]}):f.jsx("div",{className:"flex flex-col gap-4 mt-2",children:i.items.map(U=>f.jsxs("div",{className:"group relative flex gap-4 bg-white dark:bg-[#2a1d18] p-3 rounded-2xl shadow-sm border border-gray-100 dark:border-white/5 hover:border-primary/30 transition-colors",children:[f.jsxs("div",{className:"shrink-0 relative",children:[f.jsx("div",{className:"bg-center bg-no-repeat bg-cover rounded-xl size-20 shadow-inner",style:{backgroundImage:`url("${U.image}")`}}),U.quantity>1&&f.jsxs("div",{className:"absolute -top-2 -left-2 bg-primary text-white text-[10px] font-bold px-1.5 py-0.5 rounded-md shadow-sm",children:["x",U.quantity]})]}),f.jsxs("div",{className:"flex flex-1 flex-col justify-between py-0.5",children:[f.jsxs("div",{className:"flex justify-between items-start gap-2",children:[f.jsx("h3",{className:"text-gray-900 dark:text-white text-base font-bold leading-tight",children:U.name}),f.jsx("p",{className:"text-gray-900 dark:text-white font-bold text-base",children:qt(U.price*U.quantity)})]}),f.jsx("p",{className:"text-primary text-sm",children:U.comment}),f.jsxs("p",{className:"text-gray-500 dark:text-[#b9a49d] text-xs font-medium",children:[qt(U.price)," / unidad"]}),f.jsxs("div",{className:"flex items-center justify-start mt-2 gap-2",children:[f.jsxs("div",{className:"flex items-center gap-1 bg-gray-100 dark:bg-[#181311] rounded-lg p-1 border border-transparent dark:border-white/5",children:[f.jsx("button",{onClick:()=>i.changeQuantity(U.id,-1),className:"size-7 flex items-center justify-center rounded-md bg-white dark:bg-[#2f1f1a] text-gray-600 dark:text-gray-300 shadow-sm hover:text-primary transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"remove"})}),f.jsx("input",{className:"w-8 text-center bg-transparent text-sm font-bold text-gray-900 dark:text-white border-none focus:ring-0 p-0",readOnly:!0,type:"number",value:U.quantity}),f.jsx("button",{onClick:()=>i.changeQuantity(U.id,1),className:"size-7 flex items-center justify-center rounded-md bg-white dark:bg-[#2f1f1a] text-gray-600 dark:text-gray-300 shadow-sm hover:text-primary transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"add"})})]}),f.jsx("button",{onClick:()=>{B(U)},className:"flex items-center mx-2",children:f.jsx("span",{className:"material-symbols-outlined text-2xl text-white/70",children:"add_comment"})})]})]})]},U.id))})}),f.jsxs("div",{className:"absolute bottom-0 left-0 w-full bg-background-light/95 dark:bg-background-dark/95 backdrop-blur-md border-t border-gray-200 dark:border-white/5 z-20 pb-8 pt-4 px-6 rounded-t-2xl shadow-[0_-10px_40px_-15px_rgba(0,0,0,0.5)]",children:[f.jsx("div",{className:"flex justify-between items-end mb-4",children:f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"text-gray-500 dark:text-[#b9a49d] text-xs font-bold uppercase tracking-wider mb-1",children:"Total a pagar"}),f.jsx("div",{className:"flex items-baseline gap-1",children:f.jsx("span",{className:"text-3xl font-bold text-gray-900 dark:text-white tracking-tighter",children:qt(M)})})]})}),f.jsxs("button",{onClick:k,className:"relative w-full group overflow-hidden bg-primary text-white rounded-xl p-4 shadow-lg shadow-primary/25 transition-all active:scale-[0.98]",children:[f.jsx("div",{className:"absolute inset-0 bg-white/20 translate-y-full group-hover:translate-y-0 transition-transform duration-300 ease-out"}),f.jsxs("div",{className:"relative flex items-center justify-center gap-3",children:[f.jsx("span",{className:"font-bold text-lg tracking-wide",children:"Finalizar Pedido"}),f.jsx("span",{className:"material-symbols-outlined animate-pulse",children:"arrow_forward"})]})]})]})]})]}):null};function hb({setIsSidebarOpen:i,setIsCartOpen:u,totalItems:o}){return f.jsxs("header",{className:"flex items-center bg-background-dark p-4 pb-2 justify-between border-b border-white/10 z-20 shrink-0",children:[f.jsx("button",{onClick:()=>i(!0),className:"text-white flex size-12 shrink-0 items-center justify-start cursor-pointer hover:text-primary transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-3xl",children:"menu"})}),f.jsx("h2",{className:"text-white text-lg font-bold leading-tight tracking-[-0.015em] flex-1 text-center",children:"Pide directo a tu mesa"}),f.jsxs("button",{onClick:()=>u(!0),className:"text-white flex size-12 shrink-0 items-center justify-end relative hover:text-primary transition-colors",children:[f.jsx("span",{className:"material-symbols-outlined text-2xl",children:"shopping_cart"}),o>0&&f.jsx("span",{className:"absolute top-2 right-1 bg-primary text-white text-[10px] font-bold px-1.5 py-0.5 rounded-full ring-2 ring-background-dark",children:o})]})]})}var Qa=(i=>(i.SHOP="SHOP",i.CHAT="CHAT",i))(Qa||{});function fh({activeTab:i,setActiveTab:u,tab:o,tabName:r,icon:d,needLogin:m,inDevelopment:p}){const{isLogged:v}=Tt(),g=Ja(),y=()=>{if(p){g("/coming-soon");return}if(m&&!v){oe("Debes estar logueado para acceder a esta sección",{type:"error"}),g("/login");return}u(o)};return f.jsxs("button",{onClick:y,className:`flex flex-col items-center justify-center w-full h-full transition-colors ${i===o?"text-primary":"text-gray-400 hover:text-white"}`,children:[f.jsx("span",{className:`material-symbols-outlined text-2xl ${i===o?"fill-1":"fill-0"}`,children:d}),f.jsx("span",{className:"text-xs font-medium mt-1",children:r})]})}function pb({activeTab:i,setActiveTab:u}){return f.jsx("nav",{className:"bg-background-dark border-t border-white/10 p-2 z-30 sticky bottom-0 shrink-0",children:f.jsxs("div",{className:"flex justify-around items-center h-14",children:[f.jsx(fh,{setActiveTab:u,tab:Qa.SHOP,activeTab:i,tabName:"Tienda",icon:"home"}),f.jsx(fh,{setActiveTab:u,tab:Qa.CHAT,activeTab:i,tabName:"Chat",icon:"chat",needLogin:!0})]})})}function yb({active:i}){const{promoPercent:u}=Tt(),{confirm:o}=si(),{table:r}=gl(),{isLogged:d,setPromoPercent:m}=Tt(),p=x.useCallback(async()=>{if(u>=100){if(!await o("¿Seguro que quieres reclamar?","reclamar"))return;const g=await Dg(d,r);g.success?m(0):alert(g.message)}},[d,r,u,o]);return i&&f.jsxs("div",{className:"bg-[#8f3322] px-4 py-2 flex items-center justify-between z-20 shrink-0 shadow-lg border-b border-[#602014]",children:[f.jsxs("div",{className:"flex flex-col flex-1 mr-4",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[f.jsx("span",{className:"material-symbols-outlined text-white text-lg font-bold",children:"celebration"}),f.jsxs("span",{className:"text-white text-xs font-bold uppercase tracking-wider drop-shadow-sm",children:[u??0,"% para tu cerveza gratis!"]})]}),f.jsx("div",{className:"w-full bg-black/30 h-1.5 rounded-full overflow-hidden",children:f.jsx("div",{className:"bg-[#fcd34d] h-full rounded-full shadow-[0_0_8px_rgba(252,211,77,0.6)] animate-pulse",style:{width:`${u??0}%`}})})]}),f.jsx("button",{onClick:p,className:"bg-[#1f1f1f] text-[#FFB800] border border-[#FFB800]/20 text-[10px] font-black uppercase px-3 py-1.5 rounded shadow-md active:scale-95 transition-transform hover:bg-[#000000] disabled:opacity-50 disabled:cursor-not-allowed",disabled:u<100,children:"Reclamar"})]})}function i0(){return f.jsxs("header",{className:"flex items-center bg-background-dark p-4 pb-2 justify-between border-b border-white/10 z-20 shrink-0",children:[f.jsx(ha,{className:"text-white flex size-12 shrink-0 items-center justify-start cursor-pointer",to:"/",children:f.jsx("span",{className:"material-symbols-outlined text-3xl",children:"chevron_left"})}),f.jsx("h2",{className:"text-white text-lg font-bold leading-tight tracking-[-0.015em] flex-1 text-center",children:"Registro Pedidos Express"}),f.jsx("div",{className:"size-12 shrink-0"})]})}function gb(){const{setIsLoggedIn:i}=Tt(),u=Ja(),o=async r=>{r.preventDefault();const d=r.currentTarget.querySelector("input#email").value,m=r.currentTarget.querySelector("input#pin").value;if(!d){oe("El email no puede estar vacío",{type:"error"});return}if(!m){oe("El pin no puede estar vacío",{type:"error"});return}if(m.length!==4){oe("El pin debe tener 4 dígitos",{type:"error"});return}const p=await zg(d,m);if(p.success===!1){oe(p.message,{type:"error"});return}Th(p.data.token),i(!0,p.data),u("/")};return f.jsxs("div",{className:"bg-background-dark font-display antialiased overflow-hidden h-screen flex flex-col",children:[f.jsx(i0,{}),f.jsx("main",{className:"bg-background-dark font-display antialiased h-screen flex flex-col items-center justify-center p-6",children:f.jsxs("div",{className:"w-full max-w-sm flex flex-col items-center space-y-8",children:[f.jsxs("div",{className:"text-center space-y-2",children:[f.jsx("div",{className:"size-20 bg-primary rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg shadow-primary/20",children:f.jsx("span",{className:"material-symbols-outlined text-white text-5xl",children:"sports_bar"})}),f.jsx("h1",{className:"text-white text-3xl font-bold tracking-tight",children:"Pedidos Express"}),f.jsx("p",{className:"text-gray-400 text-sm",children:"Brewery & Artisan Slices"})]}),f.jsxs("form",{className:"w-full space-y-5",onSubmit:o,children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-gray-400 text-xs font-semibold uppercase tracking-wider mb-2 ml-1",htmlFor:"email",children:"Email"}),f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl",children:"mail"})}),f.jsx("input",{className:"block w-full pl-10 pr-4 py-3 border border-white/10 rounded-xl bg-[#2a201c] text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all shadow-sm",id:"email",placeholder:"your@email.com",type:"email"})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-gray-400 text-xs font-semibold uppercase tracking-wider mb-2 ml-1",htmlFor:"pin",children:"4-Digit PIN"}),f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl",children:"lock"})}),f.jsx("input",{className:"block w-full pl-10 pr-4 py-3 border border-white/10 rounded-xl bg-[#2a201c] text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all shadow-sm tracking-[0.5em] font-mono",id:"pin",inputMode:"numeric",maxLength:4,placeholder:"••••",type:"password"})]})]})]}),f.jsxs("button",{className:"w-full bg-primary hover:bg-[#b84a26] text-white font-bold py-4 mt-30 rounded-xl shadow-lg shadow-primary/20 transition-all active:scale-[0.98] flex items-center justify-center gap-2",type:"submit",children:["Iniciar Sesión",f.jsx("span",{className:"material-symbols-outlined text-xl",children:"arrow_forward"})]})]}),f.jsxs("div",{className:"text-center space-y-2",children:[f.jsx("p",{className:"text-gray-400 text-sm",children:"¿No tienes una cuenta?"}),f.jsx(ha,{className:"text-primary font-bold hover:underline",to:"/register",children:"Crear cuenta"})]})]})})]})}function vb(){return f.jsxs("div",{className:"bg-background-dark font-display antialiased overflow-hidden h-screen flex flex-col",children:[f.jsx(i0,{}),f.jsx("main",{className:"bg-background-dark font-display antialiased h-screen flex flex-col items-center justify-center p-6",children:f.jsxs("section",{className:"flex-1 bg-background-dark overflow-y-auto relative flex flex-col z-10 p-6",children:[f.jsxs("div",{className:"mb-8 text-center",children:[f.jsx("div",{className:"inline-flex items-center justify-center size-16 bg-primary/20 rounded-2xl mb-4",children:f.jsx("span",{className:"material-symbols-outlined text-primary text-4xl",children:"person_add"})}),f.jsx("h1",{className:"text-white text-2xl font-bold mb-2",children:"Únete a la comunidad"}),f.jsx("p",{className:"text-gray-400 text-sm",children:"Regístrate para pedir tus cervezas y pizzas favoritas."})]}),f.jsxs("form",{className:"space-y-6 max-w-md mx-auto w-full",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"text-gray-300 text-sm font-medium ml-1",children:"Email"}),f.jsxs("div",{className:"relative group",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl group-focus-within:text-primary transition-colors",children:"mail"})}),f.jsx("input",{className:"block w-full pl-11 pr-4 py-3.5 border border-white/10 rounded-xl leading-5 bg-[#2a201c] text-gray-100 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all",placeholder:"ejemplo@correo.com",type:"email"})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"text-gray-300 text-sm font-medium ml-1",children:"Nombre Completo"}),f.jsxs("div",{className:"relative group",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl group-focus-within:text-primary transition-colors",children:"person"})}),f.jsx("input",{className:"block w-full pl-11 pr-4 py-3.5 border border-white/10 rounded-xl leading-5 bg-[#2a201c] text-gray-100 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all",placeholder:"Tu nombre y apellido",type:"text"})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"text-gray-300 text-sm font-medium ml-1",children:"RUT"}),f.jsxs("div",{className:"relative group",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl group-focus-within:text-primary transition-colors",children:"fingerprint"})}),f.jsx("input",{className:"block w-full pl-11 pr-4 py-3.5 border border-white/10 rounded-xl leading-5 bg-[#2a201c] text-gray-100 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all",placeholder:"12.345.678-9",type:"text"})]})]})]}),f.jsxs("div",{className:"flex items-start gap-3 px-1 mt-4",children:[f.jsx("div",{className:"flex items-center h-5",children:f.jsx("input",{className:"w-5 h-5 rounded border-white/10 bg-[#2a201c] text-primary focus:ring-primary focus:ring-offset-0 focus:ring-offset-transparent cursor-pointer",id:"terms",type:"checkbox"})}),f.jsx("label",{className:"text-sm text-gray-300 leading-snug cursor-pointer select-none",htmlFor:"terms",children:"Confirmo que tengo 18 años o más y acepto los términos de distribución de bebidas alcohólicas."})]}),f.jsx("button",{className:"w-full bg-primary hover:bg-orange-800 text-white font-bold py-4 rounded-xl shadow-lg shadow-primary/20 transition-all active:scale-[0.98] mt-2",type:"submit",children:"Registrarse"}),f.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[f.jsx("p",{className:"text-center text-gray-500 text-sm mt-6",children:"¿Ya tienes una cuenta?"}),f.jsx(ha,{className:"text-primary font-semibold hover:underline",to:"/login",children:"Inicia sesión"})]})]})]})})]})}const xb=({product:i})=>f.jsxs("div",{className:"flex gap-4 bg-card-dark p-4 rounded-2xl border border-white/5 shadow-xl",children:[f.jsx("div",{className:"shrink-0",children:f.jsx("div",{className:"bg-center bg-cover rounded-xl size-16 ring-1 ring-white/10",style:{backgroundImage:`url("${i.image}")`}})}),f.jsxs("div",{className:"flex-1 flex flex-col justify-center",children:[f.jsxs("div",{className:"flex justify-between items-start",children:[f.jsx("h3",{className:"text-white font-bold text-lg leading-tight",children:i.name}),f.jsx("span",{className:"text-white font-bold",children:qt(i.price*i.quantity)})]}),f.jsx("div",{className:"flex justify-between items-center mt-1",children:f.jsxs("p",{className:"text-[#b9a49d] text-sm",children:[i.quantity," ",i.quantity===1?"unidad":"unidades"," x ",qt(i.price)]})})]})]}),bb=({total:i})=>f.jsx("div",{className:"mt-8 space-y-3 py-6 border-t border-dashed border-white/10",children:f.jsxs("div",{className:"flex justify-between items-center text-sm",children:[f.jsx("span",{className:"text-[#b9a49d] font-medium",children:"Total"}),f.jsx("span",{className:"text-white font-bold",children:qt(i)})]})}),Sb=({total:i,onBack:u,onRequestBill:o})=>f.jsxs("div",{className:"absolute bottom-0 left-0 w-full bg-background-dark/80 backdrop-blur-xl border-t border-white/10 px-6 pt-6 pb-10 space-y-4",children:[f.jsx("div",{className:"flex justify-between items-end",children:f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"text-[#b9a49d] text-xs font-bold uppercase tracking-widest mb-1",children:"Total Acumulado"}),f.jsx("span",{className:"text-4xl font-bold text-white tracking-tighter",children:qt(i)})]})}),f.jsxs("div",{className:"flex gap-3",children:[f.jsx("button",{onClick:u,className:"flex-1 bg-white/5 text-white font-bold py-4 rounded-xl border border-white/10 active:scale-95 transition-all",children:"Volver"}),f.jsxs("button",{onClick:o,className:"flex-2 bg-primary text-white font-bold py-4 rounded-xl shadow-lg shadow-primary/20 active:scale-95 transition-all flex items-center justify-center gap-2",children:["Solicitar Cuenta",f.jsx("span",{className:"material-symbols-outlined text-[20px]",children:"receipt_long"})]})]})]}),Eb=()=>{const[i,u]=x.useState(0),[o,r]=x.useState([]),{getItems:d,table:m,setTable:p}=gl(),{isLogged:v}=Tt(),{setIsLoading:g}=ui(),{choose:y}=si(),E=Ja(),b=async()=>{const j=await y("Selecciona el tipo de pago","wallet",{choices:[{value:"Efectivo",label:"Efectivo",icon:"payments"},{value:"Tarjeta",label:"Tarjeta",icon:"credit_card"}],style:"block"});if(!j)return;g(!0,"Llamando a tu garzón...");const z=await jh(v,m,j);z.success?oe("Tu garzon vendra enseguida, por favor espera",{type:"success",autoClose:2e3}):alert(z.message),g(!1)};return x.useEffect(()=>{(async()=>{g(!0,"Cargando Historial...");let j=m;if(!j){if(j=n0(),j===-1){E("/no-table");return}p(j)}let z=await Nh(j,v),q;g(!1),z&&z.success?q=z.data:(oe("La Mesa aun no tiene consumo😁",{type:"warning",autoClose:2e3}),E("/"));const D=d(...q);r(D),u(D.reduce((X,B)=>X+B.price*B.quantity,0)),g(!1)})()},[]),f.jsxs("div",{className:"bg-background-dark font-display selection:bg-primary selection:text-white overflow-hidden h-screen w-full flex flex-col relative",children:[f.jsx("div",{className:"fixed inset-0 z-0 opacity-20 pointer-events-none",children:f.jsx("div",{className:"absolute inset-0 bg-linear-to-b from-primary/20 to-transparent"})}),f.jsx("header",{className:"relative z-10 shrink-0 px-6 pt-12 pb-6",children:f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("button",{onClick:()=>{history.back()},className:"flex items-center justify-center size-10 rounded-full bg-white/5 border border-white/10 active:scale-90 transition-transform",children:f.jsx("span",{className:"material-symbols-outlined text-white",children:"chevron_left"})}),f.jsxs("div",{children:[f.jsxs("h1",{className:"text-white text-2xl font-bold tracking-tight",children:["Consumo Mesa #",m]}),f.jsx("p",{className:"text-primary font-medium text-sm uppercase tracking-widest",children:"Consumo Total"})]})]})}),f.jsxs("main",{className:"relative z-10 flex-1 overflow-y-auto no-scrollbar px-6 pb-80",children:[f.jsx("div",{className:"space-y-4",children:o.map(j=>f.jsx(xb,{product:j},j.id))}),f.jsx(bb,{total:i})]}),f.jsx("div",{className:"relative z-20",children:f.jsx(Sb,{total:i,points:50,onBack:()=>E("/"),onRequestBill:()=>b()})})]})};function _b(){return f.jsxs("div",{className:"bg-background-dark text-white h-screen w-full flex flex-col items-center justify-center relative overflow-hidden selection:bg-primary selection:text-white font-body",children:[f.jsx("div",{className:"absolute inset-0 bg-qr-pattern z-0 opacity-100 pointer-events-none"}),f.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-background-dark via-background-dark/95 to-background-dark/80 z-0 pointer-events-none"}),f.jsxs("main",{className:"relative z-10 w-full max-w-md mx-auto px-8 flex flex-col items-center text-center justify-center h-full",children:[f.jsxs("div",{className:"relative w-72 h-72 flex items-center justify-center mb-10",children:[f.jsx("div",{className:"absolute inset-0 bg-primary/10 rounded-full blur-3xl animate-pulse"}),f.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[f.jsx("span",{className:"material-symbols-outlined text-[12rem]! text-surface-dark leading-none drop-shadow-2xl w-max h-max",children:"table_restaurant"}),f.jsx("div",{className:"absolute -top-4 -right-4 bg-background-dark rounded-full p-2 ring-4 ring-background-dark shadow-xl",children:f.jsx("span",{className:"material-symbols-outlined text-6xl text-primary",children:"question_mark"})}),f.jsx("div",{className:"w-32 h-4 bg-black/40 blur-lg rounded-full -mt-4"})]})]}),f.jsxs("div",{className:"flex flex-col items-center space-y-5 max-w-80 animate-in slide-in-from-bottom-8 fade-in duration-1000",children:[f.jsx("h1",{className:"text-3xl md:text-4xl font-display font-bold text-white tracking-tight leading-tight",children:"Mesa no Encontrada"}),f.jsxs("p",{className:"text-gray-400 text-lg leading-relaxed font-light",children:["No pudimos identificar tu ubicación. Para realizar tu pedido, por favor ",f.jsx("strong",{className:"text-primary font-medium",children:"escanea nuevamente"})," el código QR situado en tu mesa."]})]})]}),f.jsx("div",{className:"h-6 w-full absolute bottom-0"})]})}const Tb=()=>f.jsxs("div",{className:"bg-background-dark text-white h-screen w-full flex flex-col items-center justify-center relative overflow-hidden selection:bg-primary selection:text-white font-body",style:{minHeight:"max(884px, 100dvh)",overscrollBehavior:"none"},children:[f.jsx("div",{className:"absolute inset-0 bg-bubbles-pattern z-0 opacity-100 pointer-events-none"}),f.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-background-dark via-background-dark/95 to-background-dark/80 z-0 pointer-events-none"}),f.jsxs("main",{className:"relative z-10 w-full max-w-md mx-auto px-8 flex flex-col items-center text-center justify-center h-full",children:[f.jsxs("div",{className:"relative w-72 h-72 flex items-center justify-center mb-10",children:[f.jsx("div",{className:"absolute inset-0 bg-primary/20 rounded-full blur-3xl"}),f.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[f.jsx("span",{className:"material-symbols-outlined text-[11rem] text-surface-dark leading-none drop-shadow-2xl",style:{fontVariationSettings:"'FILL' 1, 'wght' 200"},children:"propane_tank"}),f.jsx("div",{className:"absolute -bottom-2 -right-2 bg-background-dark rounded-full p-3 ring-4 ring-background-dark shadow-xl flex items-center justify-center",children:f.jsx("span",{className:"material-symbols-outlined text-4xl text-primary",children:"construction"})}),f.jsx("div",{className:"absolute top-10 right-0 w-3 h-3 bg-primary/40 rounded-full blur-[1px]"}),f.jsx("div",{className:"absolute top-4 right-8 w-2 h-2 bg-primary/30 rounded-full blur-[1px]"})]})]}),f.jsxs("div",{className:"flex flex-col items-center space-y-6 max-w-85",children:[f.jsxs("h1",{className:"text-3xl md:text-4xl font-display font-bold text-white tracking-tight leading-tight",children:["Estamos Cocinando ",f.jsx("br",{})," ",f.jsx("span",{className:"text-primary",children:"Algo Nuevo"})]}),f.jsx("p",{className:"text-gray-400 text-lg leading-relaxed font-light",children:"Esta sección está en desarrollo para mejorar tu experiencia en Pedidos Express. Vuelve pronto para ver las novedades."}),f.jsxs("button",{onClick:()=>{history.back()},className:"mt-4 inline-flex items-center gap-2 px-6 py-3 rounded-full bg-surface-dark/50 border border-white/10 hover:bg-surface-dark hover:border-primary/50 text-white transition-all duration-300 group backdrop-blur-sm",children:[f.jsx("span",{className:"material-symbols-outlined text-sm transition-transform group-hover:-translate-x-1",children:"arrow_back"}),f.jsx("span",{children:"Volver atrás"})]})]})]}),f.jsx("div",{className:"h-6 w-full absolute bottom-0"})]}),Nb=()=>f.jsxs("div",{className:"bg-background-dark text-white h-screen w-full flex flex-col items-center justify-center relative overflow-hidden selection:bg-primary selection:text-white font-body",style:{minHeight:"max(884px, 100dvh)",overscrollBehavior:"none"},children:[f.jsx("div",{className:"absolute inset-0 bg-bubbles-pattern z-0 opacity-100 pointer-events-none"}),f.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-background-dark via-background-dark/95 to-background-dark/80 z-0 pointer-events-none"}),f.jsxs("main",{className:"relative z-10 w-full max-w-md mx-auto px-8 flex flex-col items-center text-center justify-center h-full",children:[f.jsxs("div",{className:"relative w-72 h-72 flex items-center justify-center mb-10",children:[f.jsx("div",{className:"absolute inset-0 bg-primary/20 rounded-full blur-3xl"}),f.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[f.jsx("span",{className:"material-symbols-outlined text-[11rem] text-surface-dark leading-none drop-shadow-2xl",style:{fontVariationSettings:"'FILL' 0, 'wght' 200"},children:"sports_bar"}),f.jsx("div",{className:"absolute -bottom-2 -right-2 bg-background-dark rounded-full p-3 ring-4 ring-background-dark shadow-xl flex items-center justify-center",children:f.jsx("span",{className:"material-symbols-outlined text-4xl text-primary font-bold",children:"broken_image"})}),f.jsx("div",{className:"absolute top-10 right-10 w-3 h-3 bg-primary/40 rounded-full blur-[1px]"}),f.jsx("div",{className:"absolute top-4 right-16 w-2 h-2 bg-primary/30 rounded-full blur-[1px]"}),f.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-primary/10 text-6xl font-display font-bold select-none pointer-events-none",children:"?"})]})]}),f.jsxs("div",{className:"flex flex-col items-center space-y-6 max-w-85",children:[f.jsx("h1",{className:"text-6xl md:text-7xl font-display font-bold text-primary tracking-tighter leading-none",children:"404"}),f.jsx("h2",{className:"text-2xl md:text-3xl font-display font-medium text-white tracking-tight leading-tight",children:"Página no Encontrada"}),f.jsx("p",{className:"text-gray-400 text-lg leading-relaxed font-light",children:"Parece que esta ronda no existe o se ha agotado. Verifica la dirección o vuelve a la barra principal."}),f.jsxs(ha,{to:"/",className:"mt-4 px-8 py-3 bg-primary hover:bg-primary/90 text-background-dark font-bold rounded-full transition-colors duration-200 shadow-lg shadow-primary/20 flex items-center gap-2",children:[f.jsx("span",{className:"material-symbols-outlined text-xl",children:"home"}),"Volver al Inicio"]})]})]}),f.jsx("div",{className:"h-6 w-full absolute bottom-0"})]}),jb=({children:i})=>f.jsxs(Ug,{children:[f.jsx(Wx,{theme:"dark",closeOnClick:!0,toastStyle:{backgroundColor:"#4B362A",color:"#fff",borderRadius:"10px",overflow:"hidden","--toastify-color-progress-dark":"#a33f1e"},progressClassName:"bg-red!"}),f.jsx(ux,{children:f.jsx(qg,{children:f.jsx(Ix,{children:f.jsx(Yy,{children:f.jsx(ab,{children:i})})})})})]}),Ds=()=>{const[i,u]=x.useState(Qa.SHOP),[o,r]=x.useState(!1),{isLogged:d}=Tt(),{cart:m}=gl(),{setIsLoading:p}=ui(),{setIsLoggedIn:v}=Tt(),g=x.useCallback(()=>{oe("Los pedidos no estan disponibles en este momento, pronto volveran :)")},[]),y=x.useCallback(async b=>{const j=await Mg(b);return j.success&&v(!0,j.data),j.success},[]);x.useEffect(()=>{(async()=>{if(!d){let j=!1;p(!0,"Iniciando sesión...");const z=Za();z&&(j=await y(z)),j||g(),p(!1)}})()},[]);const E=m.items.reduce((b,j)=>b+j.quantity,0);return f.jsxs("div",{className:"relative h-dvh flex flex-col overflow-hidden bg-background-dark font-display",children:[f.jsx(hb,{setIsSidebarOpen:r,setIsCartOpen:m.toggleCart,totalItems:E}),f.jsx(yb,{active:i===Qa.SHOP&&d}),f.jsxs("main",{className:"flex-1 relative flex flex-col h-full overflow-hidden",children:[i===Qa.SHOP&&f.jsx(Px,{onAddProduct:m.addProduct}),i===Qa.CHAT&&f.jsx(ib,{onBrowseMenu:()=>u(Qa.SHOP)})]}),f.jsx(pb,{activeTab:i,setActiveTab:u}),f.jsx(ub,{isOpen:o,onClose:()=>r(!1)}),f.jsx(mb,{onClose:()=>m.toggleCart(!1),cart:m})]})},Cb=()=>f.jsx(jb,{children:f.jsxs(Lv,{children:[f.jsxs(kt,{element:f.jsx(Ds,{}),children:[f.jsx(kt,{path:"/",element:f.jsx(Ds,{})}),f.jsx(kt,{path:"/cart",element:f.jsx(Ds,{})}),f.jsx(kt,{path:"/chat",element:f.jsx(Ds,{})})]}),f.jsx(kt,{path:"/login",element:f.jsx(gb,{})}),f.jsx(kt,{path:"/register",element:f.jsx(vb,{})}),f.jsx(kt,{path:"/summary",element:f.jsx(Eb,{})}),f.jsx(kt,{path:"/no-table",element:f.jsx(_b,{})}),f.jsx(kt,{path:"/coming-soon",element:f.jsx(Tb,{})}),f.jsx(kt,{path:"*",element:f.jsx(Nb,{})})]})}),s0=document.getElementById("root");if(!s0)throw new Error("Could not find root element to mount to");const Ab=qy.createRoot(s0);Ab.render(f.jsx(Cb,{}));
