@undefineds.co/xpod 0.2.8 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- function Tx(a,i){for(var r=0;r<i.length;r++){const s=i[r];if(typeof s!="string"&&!Array.isArray(s)){for(const f in s)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(s,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>s[f]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))s(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(f){if(f.ep)return;f.ep=!0;const d=r(f);fetch(f.href,d)}})();function uv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var cu={exports:{}},Ai={};var fp;function Ax(){if(fp)return Ai;fp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(s,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var p in f)p!=="key"&&(d[p]=f[p])}else d=f;return f=d.ref,{$$typeof:a,type:s,key:h,ref:f!==void 0?f:null,props:d}}return Ai.Fragment=i,Ai.jsx=r,Ai.jsxs=r,Ai}var dp;function Rx(){return dp||(dp=1,cu.exports=Ax()),cu.exports}var u=Rx(),ou={exports:{}},pe={};var hp;function Ox(){if(hp)return pe;hp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function N(T){return T===null||typeof T!="object"?null:(T=C&&T[C]||T["@@iterator"],typeof T=="function"?T:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,j={};function R(T,G,$){this.props=T,this.context=G,this.refs=j,this.updater=$||D}R.prototype.isReactComponent={},R.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,G,"setState")},R.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function O(){}O.prototype=R.prototype;function M(T,G,$){this.props=T,this.context=G,this.refs=j,this.updater=$||D}var q=M.prototype=new O;q.constructor=M,w(q,R.prototype),q.isPureReactComponent=!0;var Q=Array.isArray;function J(){}var Y={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function le(T,G,$){var te=$.ref;return{$$typeof:a,type:T,key:G,ref:te!==void 0?te:null,props:$}}function re(T,G){return le(T.type,G,T.props)}function se(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function W(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function($){return G[$]})}var ne=/\/+/g;function ee(T,G){return typeof T=="object"&&T!==null&&T.key!=null?W(""+T.key):G.toString(36)}function ae(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(J,J):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function _(T,G,$,te,de){var Z=typeof T;(Z==="undefined"||Z==="boolean")&&(T=null);var P=!1;if(T===null)P=!0;else switch(Z){case"bigint":case"string":case"number":P=!0;break;case"object":switch(T.$$typeof){case a:case i:P=!0;break;case S:return P=T._init,_(P(T._payload),G,$,te,de)}}if(P)return de=de(T),P=te===""?"."+ee(T,0):te,Q(de)?($="",P!=null&&($=P.replace(ne,"$&/")+"/"),_(de,G,$,"",function(je){return je})):de!=null&&(se(de)&&(de=re(de,$+(de.key==null||T&&T.key===de.key?"":(""+de.key).replace(ne,"$&/")+"/")+P)),G.push(de)),1;P=0;var fe=te===""?".":te+":";if(Q(T))for(var ge=0;ge<T.length;ge++)te=T[ge],Z=fe+ee(te,ge),P+=_(te,G,$,Z,de);else if(ge=N(T),typeof ge=="function")for(T=ge.call(T),ge=0;!(te=T.next()).done;)te=te.value,Z=fe+ee(te,ge++),P+=_(te,G,$,Z,de);else if(Z==="object"){if(typeof T.then=="function")return _(ae(T),G,$,te,de);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return P}function L(T,G,$){if(T==null)return T;var te=[],de=0;return _(T,te,"","",function(Z){return G.call($,Z,de++)}),te}function X(T){if(T._status===-1){var G=T._result;G=G(),G.then(function($){(T._status===0||T._status===-1)&&(T._status=1,T._result=$)},function($){(T._status===0||T._status===-1)&&(T._status=2,T._result=$)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var ce=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},me={map:L,forEach:function(T,G,$){L(T,function(){G.apply(this,arguments)},$)},count:function(T){var G=0;return L(T,function(){G++}),G},toArray:function(T){return L(T,function(G){return G})||[]},only:function(T){if(!se(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return pe.Activity=b,pe.Children=me,pe.Component=R,pe.Fragment=r,pe.Profiler=f,pe.PureComponent=M,pe.StrictMode=s,pe.Suspense=v,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,pe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return Y.H.useMemoCache(T)}},pe.cache=function(T){return function(){return T.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(T,G,$){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var te=w({},T.props),de=T.key;if(G!=null)for(Z in G.key!==void 0&&(de=""+G.key),G)!I.call(G,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&G.ref===void 0||(te[Z]=G[Z]);var Z=arguments.length-2;if(Z===1)te.children=$;else if(1<Z){for(var P=Array(Z),fe=0;fe<Z;fe++)P[fe]=arguments[fe+2];te.children=P}return le(T.type,de,te)},pe.createContext=function(T){return T={$$typeof:h,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:d,_context:T},T},pe.createElement=function(T,G,$){var te,de={},Z=null;if(G!=null)for(te in G.key!==void 0&&(Z=""+G.key),G)I.call(G,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(de[te]=G[te]);var P=arguments.length-2;if(P===1)de.children=$;else if(1<P){for(var fe=Array(P),ge=0;ge<P;ge++)fe[ge]=arguments[ge+2];de.children=fe}if(T&&T.defaultProps)for(te in P=T.defaultProps,P)de[te]===void 0&&(de[te]=P[te]);return le(T,Z,de)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(T){return{$$typeof:p,render:T}},pe.isValidElement=se,pe.lazy=function(T){return{$$typeof:S,_payload:{_status:-1,_result:T},_init:X}},pe.memo=function(T,G){return{$$typeof:y,type:T,compare:G===void 0?null:G}},pe.startTransition=function(T){var G=Y.T,$={};Y.T=$;try{var te=T(),de=Y.S;de!==null&&de($,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(J,ce)}catch(Z){ce(Z)}finally{G!==null&&$.types!==null&&(G.types=$.types),Y.T=G}},pe.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},pe.use=function(T){return Y.H.use(T)},pe.useActionState=function(T,G,$){return Y.H.useActionState(T,G,$)},pe.useCallback=function(T,G){return Y.H.useCallback(T,G)},pe.useContext=function(T){return Y.H.useContext(T)},pe.useDebugValue=function(){},pe.useDeferredValue=function(T,G){return Y.H.useDeferredValue(T,G)},pe.useEffect=function(T,G){return Y.H.useEffect(T,G)},pe.useEffectEvent=function(T){return Y.H.useEffectEvent(T)},pe.useId=function(){return Y.H.useId()},pe.useImperativeHandle=function(T,G,$){return Y.H.useImperativeHandle(T,G,$)},pe.useInsertionEffect=function(T,G){return Y.H.useInsertionEffect(T,G)},pe.useLayoutEffect=function(T,G){return Y.H.useLayoutEffect(T,G)},pe.useMemo=function(T,G){return Y.H.useMemo(T,G)},pe.useOptimistic=function(T,G){return Y.H.useOptimistic(T,G)},pe.useReducer=function(T,G,$){return Y.H.useReducer(T,G,$)},pe.useRef=function(T){return Y.H.useRef(T)},pe.useState=function(T){return Y.H.useState(T)},pe.useSyncExternalStore=function(T,G,$){return Y.H.useSyncExternalStore(T,G,$)},pe.useTransition=function(){return Y.H.useTransition()},pe.version="19.2.3",pe}var mp;function Fu(){return mp||(mp=1,ou.exports=Ox()),ou.exports}var g=Fu();const Pt=uv(g),fv=Tx({__proto__:null,default:Pt},[g]);var ru={exports:{}},Ri={},su={exports:{}},uu={};var pp;function zx(){return pp||(pp=1,(function(a){function i(_,L){var X=_.length;_.push(L);e:for(;0<X;){var ce=X-1>>>1,me=_[ce];if(0<f(me,L))_[ce]=L,_[X]=me,X=ce;else break e}}function r(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var L=_[0],X=_.pop();if(X!==L){_[0]=X;e:for(var ce=0,me=_.length,T=me>>>1;ce<T;){var G=2*(ce+1)-1,$=_[G],te=G+1,de=_[te];if(0>f($,X))te<me&&0>f(de,$)?(_[ce]=de,_[te]=X,ce=te):(_[ce]=$,_[G]=X,ce=G);else if(te<me&&0>f(de,X))_[ce]=de,_[te]=X,ce=te;else break e}}return L}function f(_,L){var X=_.sortIndex-L.sortIndex;return X!==0?X:_.id-L.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();a.unstable_now=function(){return h.now()-p}}var v=[],y=[],S=1,b=null,C=3,N=!1,D=!1,w=!1,j=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function q(_){for(var L=r(y);L!==null;){if(L.callback===null)s(y);else if(L.startTime<=_)s(y),L.sortIndex=L.expirationTime,i(v,L);else break;L=r(y)}}function Q(_){if(w=!1,q(_),!D)if(r(v)!==null)D=!0,J||(J=!0,W());else{var L=r(y);L!==null&&ae(Q,L.startTime-_)}}var J=!1,Y=-1,I=5,le=-1;function re(){return j?!0:!(a.unstable_now()-le<I)}function se(){if(j=!1,J){var _=a.unstable_now();le=_;var L=!0;try{e:{D=!1,w&&(w=!1,O(Y),Y=-1),N=!0;var X=C;try{t:{for(q(_),b=r(v);b!==null&&!(b.expirationTime>_&&re());){var ce=b.callback;if(typeof ce=="function"){b.callback=null,C=b.priorityLevel;var me=ce(b.expirationTime<=_);if(_=a.unstable_now(),typeof me=="function"){b.callback=me,q(_),L=!0;break t}b===r(v)&&s(v),q(_)}else s(v);b=r(v)}if(b!==null)L=!0;else{var T=r(y);T!==null&&ae(Q,T.startTime-_),L=!1}}break e}finally{b=null,C=X,N=!1}L=void 0}}finally{L?W():J=!1}}}var W;if(typeof M=="function")W=function(){M(se)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ee=ne.port2;ne.port1.onmessage=se,W=function(){ee.postMessage(null)}}else W=function(){R(se,0)};function ae(_,L){Y=R(function(){_(a.unstable_now())},L)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(_){_.callback=null},a.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return C},a.unstable_next=function(_){switch(C){case 1:case 2:case 3:var L=3;break;default:L=C}var X=C;C=L;try{return _()}finally{C=X}},a.unstable_requestPaint=function(){j=!0},a.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var X=C;C=_;try{return L()}finally{C=X}},a.unstable_scheduleCallback=function(_,L,X){var ce=a.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?ce+X:ce):X=ce,_){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=X+me,_={id:S++,callback:L,priorityLevel:_,startTime:X,expirationTime:me,sortIndex:-1},X>ce?(_.sortIndex=X,i(y,_),r(v)===null&&_===r(y)&&(w?(O(Y),Y=-1):w=!0,ae(Q,X-ce))):(_.sortIndex=me,i(v,_),D||N||(D=!0,J||(J=!0,W()))),_},a.unstable_shouldYield=re,a.unstable_wrapCallback=function(_){var L=C;return function(){var X=C;C=L;try{return _.apply(this,arguments)}finally{C=X}}}})(uu)),uu}var vp;function _x(){return vp||(vp=1,su.exports=zx()),su.exports}var fu={exports:{}},ot={};var gp;function Dx(){if(gp)return ot;gp=1;var a=Fu();function i(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)y+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(v,y,S){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:b==null?null:""+b,children:v,containerInfo:y,implementation:S}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ot.createPortal=function(v,y){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return d(v,y,null,S)},ot.flushSync=function(v){var y=h.T,S=s.p;try{if(h.T=null,s.p=2,v)return v()}finally{h.T=y,s.p=S,s.d.f()}},ot.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(v,y))},ot.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},ot.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var S=y.as,b=p(S,y.crossOrigin),C=typeof y.integrity=="string"?y.integrity:void 0,N=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;S==="style"?s.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:N}):S==="script"&&s.d.X(v,{crossOrigin:b,integrity:C,fetchPriority:N,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ot.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var S=p(y.as,y.crossOrigin);s.d.M(v,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(v)},ot.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var S=y.as,b=p(S,y.crossOrigin);s.d.L(v,S,{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})}},ot.preloadModule=function(v,y){if(typeof v=="string")if(y){var S=p(y.as,y.crossOrigin);s.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(v)},ot.requestFormReset=function(v){s.d.r(v)},ot.unstable_batchedUpdates=function(v,y){return v(y)},ot.useFormState=function(v,y,S){return h.H.useFormState(v,y,S)},ot.useFormStatus=function(){return h.H.useHostTransitionStatus()},ot.version="19.2.3",ot}var yp;function dv(){if(yp)return fu.exports;yp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),fu.exports=Dx(),fu.exports}var xp;function Mx(){if(xp)return Ri;xp=1;var a=_x(),i=Fu(),r=dv();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(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 p(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 v(e){if(d(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,l=t;;){var c=n.return;if(c===null)break;var o=c.alternate;if(o===null){if(l=c.return,l!==null){n=l;continue}break}if(c.child===o.child){for(o=c.child;o;){if(o===n)return v(c),e;if(o===l)return v(c),t;o=o.sibling}throw Error(s(188))}if(n.return!==l.return)n=c,l=o;else{for(var m=!1,x=c.child;x;){if(x===n){m=!0,n=c,l=o;break}if(x===l){m=!0,l=c,n=o;break}x=x.sibling}if(!m){for(x=o.child;x;){if(x===n){m=!0,n=o,l=c;break}if(x===l){m=!0,l=o,n=c;break}x=x.sibling}if(!m)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,C=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),M=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function ee(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case R:return"Profiler";case j:return"StrictMode";case Q:return"Suspense";case J:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case M:return e.displayName||"Context";case O:return(e._context.displayName||"Context")+".Consumer";case q: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:ee(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}var ae=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},ce=[],me=-1;function T(e){return{current:e}}function G(e){0>me||(e.current=ce[me],ce[me]=null,me--)}function $(e,t){me++,ce[me]=e.current,e.current=t}var te=T(null),de=T(null),Z=T(null),P=T(null);function fe(e,t){switch($(Z,t),$(de,e),$(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mm(t),e=Lm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(te),$(te,e)}function ge(){G(te),G(de),G(Z)}function je(e){e.memoizedState!==null&&$(P,e);var t=te.current,n=Lm(t,e.type);t!==n&&($(de,e),$(te,n))}function Ae(e){de.current===e&&(G(te),G(de)),P.current===e&&(G(P),Ci._currentValue=X)}var He,rt;function st(e){if(He===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);He=t&&t[1]||"",rt=-1<n.stack.indexOf(`
1
+ function Ax(a,i){for(var o=0;o<i.length;o++){const s=i[o];if(typeof s!="string"&&!Array.isArray(s)){for(const f in s)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(s,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>s[f]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))s(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();function fv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ou={exports:{}},Ai={};var dp;function Rx(){if(dp)return Ai;dp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(s,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var p in f)p!=="key"&&(d[p]=f[p])}else d=f;return f=d.ref,{$$typeof:a,type:s,key:h,ref:f!==void 0?f:null,props:d}}return Ai.Fragment=i,Ai.jsx=o,Ai.jsxs=o,Ai}var hp;function zx(){return hp||(hp=1,ou.exports=Rx()),ou.exports}var u=zx(),ru={exports:{}},ve={};var mp;function Ox(){if(mp)return ve;mp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function N(T){return T===null||typeof T!="object"?null:(T=C&&T[C]||T["@@iterator"],typeof T=="function"?T:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,j={};function z(T,G,$){this.props=T,this.context=G,this.refs=j,this.updater=$||D}z.prototype.isReactComponent={},z.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,G,"setState")},z.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function R(){}R.prototype=z.prototype;function M(T,G,$){this.props=T,this.context=G,this.refs=j,this.updater=$||D}var Y=M.prototype=new R;Y.constructor=M,w(Y,z.prototype),Y.isPureReactComponent=!0;var Z=Array.isArray;function J(){}var q={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function ne(T,G,$){var ee=$.ref;return{$$typeof:a,type:T,key:G,ref:ee!==void 0?ee:null,props:$}}function ce(T,G){return ne(T.type,G,T.props)}function oe(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function P(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function($){return G[$]})}var te=/\/+/g;function I(T,G){return typeof T=="object"&&T!==null&&T.key!=null?P(""+T.key):G.toString(36)}function re(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(J,J):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function _(T,G,$,ee,de){var me=typeof T;(me==="undefined"||me==="boolean")&&(T=null);var V=!1;if(T===null)V=!0;else switch(me){case"bigint":case"string":case"number":V=!0;break;case"object":switch(T.$$typeof){case a:case i:V=!0;break;case S:return V=T._init,_(V(T._payload),G,$,ee,de)}}if(V)return de=de(T),V=ee===""?"."+I(T,0):ee,Z(de)?($="",V!=null&&($=V.replace(te,"$&/")+"/"),_(de,G,$,"",function(Ee){return Ee})):de!=null&&(oe(de)&&(de=ce(de,$+(de.key==null||T&&T.key===de.key?"":(""+de.key).replace(te,"$&/")+"/")+V)),G.push(de)),1;V=0;var se=ee===""?".":ee+":";if(Z(T))for(var fe=0;fe<T.length;fe++)ee=T[fe],me=se+I(ee,fe),V+=_(ee,G,$,me,de);else if(fe=N(T),typeof fe=="function")for(T=fe.call(T),fe=0;!(ee=T.next()).done;)ee=ee.value,me=se+I(ee,fe++),V+=_(ee,G,$,me,de);else if(me==="object"){if(typeof T.then=="function")return _(re(T),G,$,ee,de);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return V}function L(T,G,$){if(T==null)return T;var ee=[],de=0;return _(T,ee,"","",function(me){return G.call($,me,de++)}),ee}function K(T){if(T._status===-1){var G=T._result;G=G(),G.then(function($){(T._status===0||T._status===-1)&&(T._status=1,T._result=$)},function($){(T._status===0||T._status===-1)&&(T._status=2,T._result=$)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var le=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},pe={map:L,forEach:function(T,G,$){L(T,function(){G.apply(this,arguments)},$)},count:function(T){var G=0;return L(T,function(){G++}),G},toArray:function(T){return L(T,function(G){return G})||[]},only:function(T){if(!oe(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ve.Activity=b,ve.Children=pe,ve.Component=z,ve.Fragment=o,ve.Profiler=f,ve.PureComponent=M,ve.StrictMode=s,ve.Suspense=v,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,ve.__COMPILER_RUNTIME={__proto__:null,c:function(T){return q.H.useMemoCache(T)}},ve.cache=function(T){return function(){return T.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function(T,G,$){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ee=w({},T.props),de=T.key;if(G!=null)for(me in G.key!==void 0&&(de=""+G.key),G)!W.call(G,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&G.ref===void 0||(ee[me]=G[me]);var me=arguments.length-2;if(me===1)ee.children=$;else if(1<me){for(var V=Array(me),se=0;se<me;se++)V[se]=arguments[se+2];ee.children=V}return ne(T.type,de,ee)},ve.createContext=function(T){return T={$$typeof:h,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:d,_context:T},T},ve.createElement=function(T,G,$){var ee,de={},me=null;if(G!=null)for(ee in G.key!==void 0&&(me=""+G.key),G)W.call(G,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(de[ee]=G[ee]);var V=arguments.length-2;if(V===1)de.children=$;else if(1<V){for(var se=Array(V),fe=0;fe<V;fe++)se[fe]=arguments[fe+2];de.children=se}if(T&&T.defaultProps)for(ee in V=T.defaultProps,V)de[ee]===void 0&&(de[ee]=V[ee]);return ne(T,me,de)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(T){return{$$typeof:p,render:T}},ve.isValidElement=oe,ve.lazy=function(T){return{$$typeof:S,_payload:{_status:-1,_result:T},_init:K}},ve.memo=function(T,G){return{$$typeof:y,type:T,compare:G===void 0?null:G}},ve.startTransition=function(T){var G=q.T,$={};q.T=$;try{var ee=T(),de=q.S;de!==null&&de($,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(J,le)}catch(me){le(me)}finally{G!==null&&$.types!==null&&(G.types=$.types),q.T=G}},ve.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},ve.use=function(T){return q.H.use(T)},ve.useActionState=function(T,G,$){return q.H.useActionState(T,G,$)},ve.useCallback=function(T,G){return q.H.useCallback(T,G)},ve.useContext=function(T){return q.H.useContext(T)},ve.useDebugValue=function(){},ve.useDeferredValue=function(T,G){return q.H.useDeferredValue(T,G)},ve.useEffect=function(T,G){return q.H.useEffect(T,G)},ve.useEffectEvent=function(T){return q.H.useEffectEvent(T)},ve.useId=function(){return q.H.useId()},ve.useImperativeHandle=function(T,G,$){return q.H.useImperativeHandle(T,G,$)},ve.useInsertionEffect=function(T,G){return q.H.useInsertionEffect(T,G)},ve.useLayoutEffect=function(T,G){return q.H.useLayoutEffect(T,G)},ve.useMemo=function(T,G){return q.H.useMemo(T,G)},ve.useOptimistic=function(T,G){return q.H.useOptimistic(T,G)},ve.useReducer=function(T,G,$){return q.H.useReducer(T,G,$)},ve.useRef=function(T){return q.H.useRef(T)},ve.useState=function(T){return q.H.useState(T)},ve.useSyncExternalStore=function(T,G,$){return q.H.useSyncExternalStore(T,G,$)},ve.useTransition=function(){return q.H.useTransition()},ve.version="19.2.3",ve}var pp;function Ku(){return pp||(pp=1,ru.exports=Ox()),ru.exports}var g=Ku();const Pt=fv(g),dv=Ax({__proto__:null,default:Pt},[g]);var su={exports:{}},Ri={},uu={exports:{}},fu={};var vp;function _x(){return vp||(vp=1,(function(a){function i(_,L){var K=_.length;_.push(L);e:for(;0<K;){var le=K-1>>>1,pe=_[le];if(0<f(pe,L))_[le]=L,_[K]=pe,K=le;else break e}}function o(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var L=_[0],K=_.pop();if(K!==L){_[0]=K;e:for(var le=0,pe=_.length,T=pe>>>1;le<T;){var G=2*(le+1)-1,$=_[G],ee=G+1,de=_[ee];if(0>f($,K))ee<pe&&0>f(de,$)?(_[le]=de,_[ee]=K,le=ee):(_[le]=$,_[G]=K,le=G);else if(ee<pe&&0>f(de,K))_[le]=de,_[ee]=K,le=ee;else break e}}return L}function f(_,L){var K=_.sortIndex-L.sortIndex;return K!==0?K:_.id-L.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();a.unstable_now=function(){return h.now()-p}}var v=[],y=[],S=1,b=null,C=3,N=!1,D=!1,w=!1,j=!1,z=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function Y(_){for(var L=o(y);L!==null;){if(L.callback===null)s(y);else if(L.startTime<=_)s(y),L.sortIndex=L.expirationTime,i(v,L);else break;L=o(y)}}function Z(_){if(w=!1,Y(_),!D)if(o(v)!==null)D=!0,J||(J=!0,P());else{var L=o(y);L!==null&&re(Z,L.startTime-_)}}var J=!1,q=-1,W=5,ne=-1;function ce(){return j?!0:!(a.unstable_now()-ne<W)}function oe(){if(j=!1,J){var _=a.unstable_now();ne=_;var L=!0;try{e:{D=!1,w&&(w=!1,R(q),q=-1),N=!0;var K=C;try{t:{for(Y(_),b=o(v);b!==null&&!(b.expirationTime>_&&ce());){var le=b.callback;if(typeof le=="function"){b.callback=null,C=b.priorityLevel;var pe=le(b.expirationTime<=_);if(_=a.unstable_now(),typeof pe=="function"){b.callback=pe,Y(_),L=!0;break t}b===o(v)&&s(v),Y(_)}else s(v);b=o(v)}if(b!==null)L=!0;else{var T=o(y);T!==null&&re(Z,T.startTime-_),L=!1}}break e}finally{b=null,C=K,N=!1}L=void 0}}finally{L?P():J=!1}}}var P;if(typeof M=="function")P=function(){M(oe)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,I=te.port2;te.port1.onmessage=oe,P=function(){I.postMessage(null)}}else P=function(){z(oe,0)};function re(_,L){q=z(function(){_(a.unstable_now())},L)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(_){_.callback=null},a.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return C},a.unstable_next=function(_){switch(C){case 1:case 2:case 3:var L=3;break;default:L=C}var K=C;C=L;try{return _()}finally{C=K}},a.unstable_requestPaint=function(){j=!0},a.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var K=C;C=_;try{return L()}finally{C=K}},a.unstable_scheduleCallback=function(_,L,K){var le=a.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?le+K:le):K=le,_){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=K+pe,_={id:S++,callback:L,priorityLevel:_,startTime:K,expirationTime:pe,sortIndex:-1},K>le?(_.sortIndex=K,i(y,_),o(v)===null&&_===o(y)&&(w?(R(q),q=-1):w=!0,re(Z,K-le))):(_.sortIndex=pe,i(v,_),D||N||(D=!0,J||(J=!0,P()))),_},a.unstable_shouldYield=ce,a.unstable_wrapCallback=function(_){var L=C;return function(){var K=C;C=L;try{return _.apply(this,arguments)}finally{C=K}}}})(fu)),fu}var gp;function Dx(){return gp||(gp=1,uu.exports=_x()),uu.exports}var du={exports:{}},ot={};var yp;function Mx(){if(yp)return ot;yp=1;var a=Ku();function i(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)y+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(v,y,S){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:b==null?null:""+b,children:v,containerInfo:y,implementation:S}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ot.createPortal=function(v,y){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return d(v,y,null,S)},ot.flushSync=function(v){var y=h.T,S=s.p;try{if(h.T=null,s.p=2,v)return v()}finally{h.T=y,s.p=S,s.d.f()}},ot.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(v,y))},ot.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},ot.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var S=y.as,b=p(S,y.crossOrigin),C=typeof y.integrity=="string"?y.integrity:void 0,N=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;S==="style"?s.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:N}):S==="script"&&s.d.X(v,{crossOrigin:b,integrity:C,fetchPriority:N,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ot.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var S=p(y.as,y.crossOrigin);s.d.M(v,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(v)},ot.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var S=y.as,b=p(S,y.crossOrigin);s.d.L(v,S,{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})}},ot.preloadModule=function(v,y){if(typeof v=="string")if(y){var S=p(y.as,y.crossOrigin);s.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(v)},ot.requestFormReset=function(v){s.d.r(v)},ot.unstable_batchedUpdates=function(v,y){return v(y)},ot.useFormState=function(v,y,S){return h.H.useFormState(v,y,S)},ot.useFormStatus=function(){return h.H.useHostTransitionStatus()},ot.version="19.2.3",ot}var xp;function hv(){if(xp)return du.exports;xp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),du.exports=Mx(),du.exports}var bp;function Lx(){if(bp)return Ri;bp=1;var a=Dx(),i=Ku(),o=hv();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(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 p(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 v(e){if(d(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,l=t;;){var c=n.return;if(c===null)break;var r=c.alternate;if(r===null){if(l=c.return,l!==null){n=l;continue}break}if(c.child===r.child){for(r=c.child;r;){if(r===n)return v(c),e;if(r===l)return v(c),t;r=r.sibling}throw Error(s(188))}if(n.return!==l.return)n=c,l=r;else{for(var m=!1,x=c.child;x;){if(x===n){m=!0,n=c,l=r;break}if(x===l){m=!0,l=c,n=r;break}x=x.sibling}if(!m){for(x=r.child;x;){if(x===n){m=!0,n=r,l=c;break}if(x===l){m=!0,l=r,n=c;break}x=x.sibling}if(!m)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,C=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),M=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function I(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case z:return"Profiler";case j:return"StrictMode";case Z:return"Suspense";case J:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case M:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case Y:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:I(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return I(e(t))}catch{}}return null}var re=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},le=[],pe=-1;function T(e){return{current:e}}function G(e){0>pe||(e.current=le[pe],le[pe]=null,pe--)}function $(e,t){pe++,le[pe]=e.current,e.current=t}var ee=T(null),de=T(null),me=T(null),V=T(null);function se(e,t){switch($(me,t),$(de,e),$(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Lm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Lm(t),e=Um(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(ee),$(ee,e)}function fe(){G(ee),G(de),G(me)}function Ee(e){e.memoizedState!==null&&$(V,e);var t=ee.current,n=Um(t,e.type);t!==n&&($(de,e),$(ee,n))}function Ae(e){de.current===e&&(G(ee),G(de)),V.current===e&&(G(V),Ci._currentValue=K)}var He,rt;function st(e){if(He===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);He=t&&t[1]||"",rt=-1<n.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+He+e+rt}var hl=!1;function ml(e,t){if(!e||hl)return"";hl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(k){var B=k}Reflect.construct(e,[],K)}else{try{K.call()}catch(k){B=k}e.call(K.prototype)}}else{try{throw Error()}catch(k){B=k}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(k){if(k&&B&&typeof k.stack=="string")return[k.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),m=o[0],x=o[1];if(m&&x){var E=m.split(`
3
+ `+He+e+rt}var hl=!1;function ml(e,t){if(!e||hl)return"";hl=!0;var n=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(k){var B=k}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(k){B=k}e.call(Q.prototype)}}else{try{throw Error()}catch(k){B=k}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(k){if(k&&B&&typeof k.stack=="string")return[k.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),m=r[0],x=r[1];if(m&&x){var E=m.split(`
4
4
  `),H=x.split(`
5
- `);for(c=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;c<H.length&&!H[c].includes("DetermineComponentFrameRoot");)c++;if(l===E.length||c===H.length)for(l=E.length-1,c=H.length-1;1<=l&&0<=c&&E[l]!==H[c];)c--;for(;1<=l&&0<=c;l--,c--)if(E[l]!==H[c]){if(l!==1||c!==1)do if(l--,c--,0>c||E[l]!==H[c]){var V=`
6
- `+E[l].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=l&&0<=c);break}}}finally{hl=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?st(n):""}function La(e,t){switch(e.tag){case 26:case 27:case 5:return st(e.type);case 16:return st("Lazy");case 13:return e.child!==t&&t!==null?st("Suspense Fallback"):st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return ml(e.type,!1);case 11:return ml(e.type.render,!1);case 1:return ml(e.type,!0);case 31:return st("Activity");default:return""}}function ff(e){try{var t="",n=null;do t+=La(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
5
+ `);for(c=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;c<H.length&&!H[c].includes("DetermineComponentFrameRoot");)c++;if(l===E.length||c===H.length)for(l=E.length-1,c=H.length-1;1<=l&&0<=c&&E[l]!==H[c];)c--;for(;1<=l&&0<=c;l--,c--)if(E[l]!==H[c]){if(l!==1||c!==1)do if(l--,c--,0>c||E[l]!==H[c]){var X=`
6
+ `+E[l].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=l&&0<=c);break}}}finally{hl=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?st(n):""}function La(e,t){switch(e.tag){case 26:case 27:case 5:return st(e.type);case 16:return st("Lazy");case 13:return e.child!==t&&t!==null?st("Suspense Fallback"):st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return ml(e.type,!1);case 11:return ml(e.type.render,!1);case 1:return ml(e.type,!0);case 31:return st("Activity");default:return""}}function df(e){try{var t="",n=null;do t+=La(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
- `+l.stack}}var Fo=Object.prototype.hasOwnProperty,Ko=a.unstable_scheduleCallback,Qo=a.unstable_cancelCallback,iy=a.unstable_shouldYield,cy=a.unstable_requestPaint,xt=a.unstable_now,oy=a.unstable_getCurrentPriorityLevel,df=a.unstable_ImmediatePriority,hf=a.unstable_UserBlockingPriority,Ji=a.unstable_NormalPriority,ry=a.unstable_LowPriority,mf=a.unstable_IdlePriority,sy=a.log,uy=a.unstable_setDisableYieldValue,Ua=null,bt=null;function Un(e){if(typeof sy=="function"&&uy(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(Ua,e)}catch{}}var St=Math.clz32?Math.clz32:hy,fy=Math.log,dy=Math.LN2;function hy(e){return e>>>=0,e===0?32:31-(fy(e)/dy|0)|0}var Wi=256,Ii=262144,$i=4194304;function pl(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 ec(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var c=0,o=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~o,l!==0?c=pl(l):(m&=x,m!==0?c=pl(m):n||(n=x&~e,n!==0&&(c=pl(n))))):(x=l&~o,x!==0?c=pl(x):m!==0?c=pl(m):n||(n=l&~e,n!==0&&(c=pl(n)))),c===0?0:t!==0&&t!==c&&(t&o)===0&&(o=c&-c,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:c}function Ha(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function my(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 pf(){var e=$i;return $i<<=1,($i&62914560)===0&&($i=4194304),e}function Zo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ba(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function py(e,t,n,l,c,o){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,E=e.expirationTimes,H=e.hiddenUpdates;for(n=m&~n;0<n;){var V=31-St(n),K=1<<V;x[V]=0,E[V]=-1;var B=H[V];if(B!==null)for(H[V]=null,V=0;V<B.length;V++){var k=B[V];k!==null&&(k.lane&=-536870913)}n&=~K}l!==0&&vf(e,l,0),o!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function vf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-St(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function gf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-St(n),c=1<<l;c&t|e[l]&t&&(e[l]|=t),n&=~c}}function yf(e,t){var n=t&-t;return n=(n&42)!==0?1:Po(n),(n&(e.suspendedLanes|t))!==0?0:n}function Po(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 Jo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function xf(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:ap(e.type))}function bf(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var Hn=Math.random().toString(36).slice(2),tt="__reactFiber$"+Hn,ft="__reactProps$"+Hn,Hl="__reactContainer$"+Hn,Wo="__reactEvents$"+Hn,vy="__reactListeners$"+Hn,gy="__reactHandles$"+Hn,Sf="__reactResources$"+Hn,ka="__reactMarker$"+Hn;function Io(e){delete e[tt],delete e[ft],delete e[Wo],delete e[vy],delete e[gy]}function Bl(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hl]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Vm(e);e!==null;){if(n=e[tt])return n;e=Vm(e)}return t}e=n,n=e.parentNode}return null}function kl(e){if(e=e[tt]||e[Hl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ya(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Yl(e){var t=e[Sf];return t||(t=e[Sf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[ka]=!0}var wf=new Set,Ef={};function vl(e,t){ql(e,t),ql(e+"Capture",t)}function ql(e,t){for(Ef[e]=t,e=0;e<t.length;e++)wf.add(t[e])}var yy=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]*$"),Cf={},Nf={};function xy(e){return Fo.call(Nf,e)?!0:Fo.call(Cf,e)?!1:yy.test(e)?Nf[e]=!0:(Cf[e]=!0,!1)}function tc(e,t,n){if(xy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function nc(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function fn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Lt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function by(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,o=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){n=""+m,o.call(this,m)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $o(e){if(!e._valueTracker){var t=jf(e)?"checked":"value";e._valueTracker=by(e,t,""+e[t])}}function Tf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=jf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function lc(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 Sy=/[\n"\\]/g;function Ut(e){return e.replace(Sy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function er(e,t,n,l,c,o,m,x){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Lt(t)):e.value!==""+Lt(t)&&(e.value=""+Lt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?tr(e,m,Lt(t)):n!=null?tr(e,m,Lt(n)):l!=null&&e.removeAttribute("value"),c==null&&o!=null&&(e.defaultChecked=!!o),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Lt(x):e.removeAttribute("name")}function Af(e,t,n,l,c,o,m,x){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){$o(e);return}n=n!=null?""+Lt(n):"",t=t!=null?""+Lt(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),$o(e)}function tr(e,t,n){t==="number"&&lc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Vl(e,t,n,l){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Lt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Rf(e,t,n){if(t!=null&&(t=""+Lt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Lt(n):""}function Of(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(ae(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Lt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),$o(e)}function Xl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wy=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 zf(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||wy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function _f(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&n[c]!==l&&zf(e,c,l)}else for(var o in t)t.hasOwnProperty(o)&&zf(e,o,t[o])}function nr(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 Ey=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"]]),Cy=/^[\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 ac(e){return Cy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dn(){}var lr=null;function ar(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gl=null,Fl=null;function Df(e){var t=kl(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(er(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ut(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var c=l[ft]||null;if(!c)throw Error(s(90));er(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Tf(l)}break e;case"textarea":Rf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Vl(e,!!n.multiple,t,!1)}}}var ir=!1;function Mf(e,t,n){if(ir)return e(t,n);ir=!0;try{var l=e(t);return l}finally{if(ir=!1,(Gl!==null||Fl!==null)&&(Fc(),Gl&&(t=Gl,e=Fl,Fl=Gl=null,Df(t),e)))for(t=0;t<e.length;t++)Df(e[t])}}function qa(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ft]||null;if(l===null)return null;n=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(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cr=!1;if(hn)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){cr=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{cr=!1}var Bn=null,or=null,ic=null;function Lf(){if(ic)return ic;var e,t=or,n=t.length,l,c="value"in Bn?Bn.value:Bn.textContent,o=c.length;for(e=0;e<n&&t[e]===c[e];e++);var m=n-e;for(l=1;l<=m&&t[n-l]===c[o-l];l++);return ic=c.slice(e,1<l?1-l:void 0)}function cc(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 oc(){return!0}function Uf(){return!1}function dt(e){function t(n,l,c,o,m){this._reactName=n,this._targetInst=c,this.type=l,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(o):o[x]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?oc:Uf,this.isPropagationStopped=Uf,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=oc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=oc)},persist:function(){},isPersistent:oc}),t}var gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rc=dt(gl),Xa=b({},gl,{view:0,detail:0}),Ny=dt(Xa),rr,sr,Ga,sc=b({},Xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fr,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!==Ga&&(Ga&&e.type==="mousemove"?(rr=e.screenX-Ga.screenX,sr=e.screenY-Ga.screenY):sr=rr=0,Ga=e),rr)},movementY:function(e){return"movementY"in e?e.movementY:sr}}),Hf=dt(sc),jy=b({},sc,{dataTransfer:0}),Ty=dt(jy),Ay=b({},Xa,{relatedTarget:0}),ur=dt(Ay),Ry=b({},gl,{animationName:0,elapsedTime:0,pseudoElement:0}),Oy=dt(Ry),zy=b({},gl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_y=dt(zy),Dy=b({},gl,{data:0}),Bf=dt(Dy),My={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ly={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"},Uy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uy[e])?!!t[e]:!1}function fr(){return Hy}var By=b({},Xa,{key:function(e){if(e.key){var t=My[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ly[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fr,charCode:function(e){return e.type==="keypress"?cc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ky=dt(By),Yy=b({},sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kf=dt(Yy),qy=b({},Xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fr}),Vy=dt(qy),Xy=b({},gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gy=dt(Xy),Fy=b({},sc,{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}),Ky=dt(Fy),Qy=b({},gl,{newState:0,oldState:0}),Zy=dt(Qy),Py=[9,13,27,32],dr=hn&&"CompositionEvent"in window,Fa=null;hn&&"documentMode"in document&&(Fa=document.documentMode);var Jy=hn&&"TextEvent"in window&&!Fa,Yf=hn&&(!dr||Fa&&8<Fa&&11>=Fa),qf=" ",Vf=!1;function Xf(e,t){switch(e){case"keyup":return Py.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kl=!1;function Wy(e,t){switch(e){case"compositionend":return Gf(t);case"keypress":return t.which!==32?null:(Vf=!0,qf);case"textInput":return e=t.data,e===qf&&Vf?null:e;default:return null}}function Iy(e,t){if(Kl)return e==="compositionend"||!dr&&Xf(e,t)?(e=Lf(),ic=or=Bn=null,Kl=!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 Yf&&t.locale!=="ko"?null:t.data;default:return null}}var $y={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 Ff(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$y[e.type]:t==="textarea"}function Kf(e,t,n,l){Gl?Fl?Fl.push(l):Fl=[l]:Gl=l,t=Ic(t,"onChange"),0<t.length&&(n=new rc("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ka=null,Qa=null;function e0(e){Am(e,0)}function uc(e){var t=Ya(e);if(Tf(t))return e}function Qf(e,t){if(e==="change")return t}var Zf=!1;if(hn){var hr;if(hn){var mr="oninput"in document;if(!mr){var Pf=document.createElement("div");Pf.setAttribute("oninput","return;"),mr=typeof Pf.oninput=="function"}hr=mr}else hr=!1;Zf=hr&&(!document.documentMode||9<document.documentMode)}function Jf(){Ka&&(Ka.detachEvent("onpropertychange",Wf),Qa=Ka=null)}function Wf(e){if(e.propertyName==="value"&&uc(Qa)){var t=[];Kf(t,Qa,e,ar(e)),Mf(e0,t)}}function t0(e,t,n){e==="focusin"?(Jf(),Ka=t,Qa=n,Ka.attachEvent("onpropertychange",Wf)):e==="focusout"&&Jf()}function n0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return uc(Qa)}function l0(e,t){if(e==="click")return uc(t)}function a0(e,t){if(e==="input"||e==="change")return uc(t)}function i0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:i0;function Za(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var c=n[l];if(!Fo.call(t,c)||!wt(e[c],t[c]))return!1}return!0}function If(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $f(e,t){var n=If(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=If(n)}}function ed(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ed(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function td(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lc(e.document)}return t}function pr(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 c0=hn&&"documentMode"in document&&11>=document.documentMode,Ql=null,vr=null,Pa=null,gr=!1;function nd(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gr||Ql==null||Ql!==lc(l)||(l=Ql,"selectionStart"in l&&pr(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}),Pa&&Za(Pa,l)||(Pa=l,l=Ic(vr,"onSelect"),0<l.length&&(t=new rc("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Ql)))}function yl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zl={animationend:yl("Animation","AnimationEnd"),animationiteration:yl("Animation","AnimationIteration"),animationstart:yl("Animation","AnimationStart"),transitionrun:yl("Transition","TransitionRun"),transitionstart:yl("Transition","TransitionStart"),transitioncancel:yl("Transition","TransitionCancel"),transitionend:yl("Transition","TransitionEnd")},yr={},ld={};hn&&(ld=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function xl(e){if(yr[e])return yr[e];if(!Zl[e])return e;var t=Zl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ld)return yr[e]=t[n];return e}var ad=xl("animationend"),id=xl("animationiteration"),cd=xl("animationstart"),o0=xl("transitionrun"),r0=xl("transitionstart"),s0=xl("transitioncancel"),od=xl("transitionend"),rd=new Map,xr="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(" ");xr.push("scrollEnd");function Ft(e,t){rd.set(e,t),vl(t,[e])}var fc=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)},Ht=[],Pl=0,br=0;function dc(){for(var e=Pl,t=br=Pl=0;t<e;){var n=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var c=Ht[t];Ht[t++]=null;var o=Ht[t];if(Ht[t++]=null,l!==null&&c!==null){var m=l.pending;m===null?c.next=c:(c.next=m.next,m.next=c),l.pending=c}o!==0&&sd(n,c,o)}}function hc(e,t,n,l){Ht[Pl++]=e,Ht[Pl++]=t,Ht[Pl++]=n,Ht[Pl++]=l,br|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Sr(e,t,n,l){return hc(e,t,n,l),mc(e)}function bl(e,t){return hc(e,null,null,t),mc(e)}function sd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var c=!1,o=e.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(c=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,c&&t!==null&&(c=31-St(n),e=o.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=n|536870912),o):null}function mc(e){if(50<gi)throw gi=0,Os=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Jl={};function u0(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=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 Et(e,t,n,l){return new u0(e,t,n,l)}function wr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mn(e,t){var n=e.alternate;return n===null?(n=Et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ud(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pc(e,t,n,l,c,o){var m=0;if(l=e,typeof e=="function")wr(e)&&(m=1);else if(typeof e=="string")m=px(e,n,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Et(31,n,t,c),e.elementType=le,e.lanes=o,e;case w:return Sl(n.children,c,o,t);case j:m=8,c|=24;break;case R:return e=Et(12,n,t,c|2),e.elementType=R,e.lanes=o,e;case Q:return e=Et(13,n,t,c),e.elementType=Q,e.lanes=o,e;case J:return e=Et(19,n,t,c),e.elementType=J,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:m=10;break e;case O:m=9;break e;case q:m=11;break e;case Y:m=14;break e;case I:m=16,l=null;break e}m=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Et(m,n,t,c),t.elementType=e,t.type=l,t.lanes=o,t}function Sl(e,t,n,l){return e=Et(7,e,l,t),e.lanes=n,e}function Er(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function fd(e){var t=Et(18,null,null,0);return t.stateNode=e,t}function Cr(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var dd=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var n=dd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ff(t)},dd.set(e,t),t)}return{value:e,source:t,stack:ff(t)}}var Wl=[],Il=0,vc=null,Ja=0,kt=[],Yt=0,kn=null,$t=1,en="";function pn(e,t){Wl[Il++]=Ja,Wl[Il++]=vc,vc=e,Ja=t}function hd(e,t,n){kt[Yt++]=$t,kt[Yt++]=en,kt[Yt++]=kn,kn=e;var l=$t;e=en;var c=32-St(l)-1;l&=~(1<<c),n+=1;var o=32-St(t)+c;if(30<o){var m=c-c%5;o=(l&(1<<m)-1).toString(32),l>>=m,c-=m,$t=1<<32-St(t)+c|n<<c|l,en=o+e}else $t=1<<o|n<<c|l,en=e}function Nr(e){e.return!==null&&(pn(e,1),hd(e,1,0))}function jr(e){for(;e===vc;)vc=Wl[--Il],Wl[Il]=null,Ja=Wl[--Il],Wl[Il]=null;for(;e===kn;)kn=kt[--Yt],kt[Yt]=null,en=kt[--Yt],kt[Yt]=null,$t=kt[--Yt],kt[Yt]=null}function md(e,t){kt[Yt++]=$t,kt[Yt++]=en,kt[Yt++]=kn,$t=t.id,en=t.overflow,kn=e}var nt=null,Le=null,Ee=!1,Yn=null,qt=!1,Tr=Error(s(519));function qn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wa(Bt(t,e)),Tr}function pd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[tt]=e,t[ft]=l,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<xi.length;n++)be(xi[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Af(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Of(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||_m(t.textContent,n)?(l.popover!=null&&(be("beforetoggle",t),be("toggle",t)),l.onScroll!=null&&be("scroll",t),l.onScrollEnd!=null&&be("scrollend",t),l.onClick!=null&&(t.onclick=dn),t=!0):t=!1,t||qn(e,!0)}function vd(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:qt=!1;return;case 27:case 3:qt=!0;return;default:nt=nt.return}}function $l(e){if(e!==nt)return!1;if(!Ee)return vd(e),Ee=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Fs(e.type,e.memoizedProps)),n=!n),n&&Le&&qn(e),vd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Le=qm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Le=qm(e)}else t===27?(t=Le,tl(e.type)?(e=Js,Js=null,Le=e):Le=t):Le=nt?Xt(e.stateNode.nextSibling):null;return!0}function wl(){Le=nt=null,Ee=!1}function Ar(){var e=Yn;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),Yn=null),e}function Wa(e){Yn===null?Yn=[e]:Yn.push(e)}var Rr=T(null),El=null,vn=null;function Vn(e,t,n){$(Rr,t._currentValue),t._currentValue=n}function gn(e){e._currentValue=Rr.current,G(Rr)}function Or(e,t,n){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===n)break;e=e.return}}function zr(e,t,n,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var o=c.dependencies;if(o!==null){var m=c.child;o=o.firstContext;e:for(;o!==null;){var x=o;o=c;for(var E=0;E<t.length;E++)if(x.context===t[E]){o.lanes|=n,x=o.alternate,x!==null&&(x.lanes|=n),Or(o.return,n,e),l||(m=null);break e}o=x.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(s(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Or(m,n,e),m=null}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===e){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}}function ea(e,t,n,l){e=null;for(var c=t,o=!1;c!==null;){if(!o){if((c.flags&524288)!==0)o=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var x=c.type;wt(c.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(c===P.current){if(m=c.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Ci):e=[Ci])}c=c.return}e!==null&&zr(t,e,n,l),t.flags|=262144}function gc(e){for(e=e.firstContext;e!==null;){if(!wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Cl(e){El=e,vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return gd(El,e)}function yc(e,t){return El===null&&Cl(e),gd(e,t)}function gd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},vn===null){if(e===null)throw Error(s(308));vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vn=vn.next=t;return n}var f0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},d0=a.unstable_scheduleCallback,h0=a.unstable_NormalPriority,Ke={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _r(){return{controller:new f0,data:new Map,refCount:0}}function Ia(e){e.refCount--,e.refCount===0&&d0(h0,function(){e.controller.abort()})}var $a=null,Dr=0,ta=0,na=null;function m0(e,t){if($a===null){var n=$a=[];Dr=0,ta=Us(),na={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Dr++,t.then(yd,yd),t}function yd(){if(--Dr===0&&$a!==null){na!==null&&(na.status="fulfilled");var e=$a;$a=null,ta=0,na=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function p0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),l}var xd=_.S;_.S=function(e,t){nm=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&m0(e,t),xd!==null&&xd(e,t)};var Nl=T(null);function Mr(){var e=Nl.current;return e!==null?e:Me.pooledCache}function xc(e,t){t===null?$(Nl,Nl.current):$(Nl,t.pool)}function bd(){var e=Mr();return e===null?null:{parent:Ke._currentValue,pool:e}}var la=Error(s(460)),Lr=Error(s(474)),bc=Error(s(542)),Sc={then:function(){}};function Sd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(dn,dn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cd(e),e;default:if(typeof t.status=="string")t.then(dn,dn);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cd(e),e}throw Tl=t,la}}function jl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Tl=n,la):n}}var Tl=null;function Ed(){if(Tl===null)throw Error(s(459));var e=Tl;return Tl=null,e}function Cd(e){if(e===la||e===bc)throw Error(s(483))}var aa=null,ei=0;function wc(e){var t=ei;return ei+=1,aa===null&&(aa=[]),wd(aa,e,t)}function ti(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ec(e,t){throw t.$$typeof===C?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Nd(e){function t(z,A){if(e){var U=z.deletions;U===null?(z.deletions=[A],z.flags|=16):U.push(A)}}function n(z,A){if(!e)return null;for(;A!==null;)t(z,A),A=A.sibling;return null}function l(z){for(var A=new Map;z!==null;)z.key!==null?A.set(z.key,z):A.set(z.index,z),z=z.sibling;return A}function c(z,A){return z=mn(z,A),z.index=0,z.sibling=null,z}function o(z,A,U){return z.index=U,e?(U=z.alternate,U!==null?(U=U.index,U<A?(z.flags|=67108866,A):U):(z.flags|=67108866,A)):(z.flags|=1048576,A)}function m(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function x(z,A,U,F){return A===null||A.tag!==6?(A=Er(U,z.mode,F),A.return=z,A):(A=c(A,U),A.return=z,A)}function E(z,A,U,F){var ue=U.type;return ue===w?V(z,A,U.props.children,F,U.key):A!==null&&(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===I&&jl(ue)===A.type)?(A=c(A,U.props),ti(A,U),A.return=z,A):(A=pc(U.type,U.key,U.props,null,z.mode,F),ti(A,U),A.return=z,A)}function H(z,A,U,F){return A===null||A.tag!==4||A.stateNode.containerInfo!==U.containerInfo||A.stateNode.implementation!==U.implementation?(A=Cr(U,z.mode,F),A.return=z,A):(A=c(A,U.children||[]),A.return=z,A)}function V(z,A,U,F,ue){return A===null||A.tag!==7?(A=Sl(U,z.mode,F,ue),A.return=z,A):(A=c(A,U),A.return=z,A)}function K(z,A,U){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Er(""+A,z.mode,U),A.return=z,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return U=pc(A.type,A.key,A.props,null,z.mode,U),ti(U,A),U.return=z,U;case D:return A=Cr(A,z.mode,U),A.return=z,A;case I:return A=jl(A),K(z,A,U)}if(ae(A)||W(A))return A=Sl(A,z.mode,U,null),A.return=z,A;if(typeof A.then=="function")return K(z,wc(A),U);if(A.$$typeof===M)return K(z,yc(z,A),U);Ec(z,A)}return null}function B(z,A,U,F){var ue=A!==null?A.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ue!==null?null:x(z,A,""+U,F);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case N:return U.key===ue?E(z,A,U,F):null;case D:return U.key===ue?H(z,A,U,F):null;case I:return U=jl(U),B(z,A,U,F)}if(ae(U)||W(U))return ue!==null?null:V(z,A,U,F,null);if(typeof U.then=="function")return B(z,A,wc(U),F);if(U.$$typeof===M)return B(z,A,yc(z,U),F);Ec(z,U)}return null}function k(z,A,U,F,ue){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return z=z.get(U)||null,x(A,z,""+F,ue);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case N:return z=z.get(F.key===null?U:F.key)||null,E(A,z,F,ue);case D:return z=z.get(F.key===null?U:F.key)||null,H(A,z,F,ue);case I:return F=jl(F),k(z,A,U,F,ue)}if(ae(F)||W(F))return z=z.get(U)||null,V(A,z,F,ue,null);if(typeof F.then=="function")return k(z,A,U,wc(F),ue);if(F.$$typeof===M)return k(z,A,U,yc(A,F),ue);Ec(A,F)}return null}function ie(z,A,U,F){for(var ue=null,Ce=null,oe=A,ye=A=0,we=null;oe!==null&&ye<U.length;ye++){oe.index>ye?(we=oe,oe=null):we=oe.sibling;var Ne=B(z,oe,U[ye],F);if(Ne===null){oe===null&&(oe=we);break}e&&oe&&Ne.alternate===null&&t(z,oe),A=o(Ne,A,ye),Ce===null?ue=Ne:Ce.sibling=Ne,Ce=Ne,oe=we}if(ye===U.length)return n(z,oe),Ee&&pn(z,ye),ue;if(oe===null){for(;ye<U.length;ye++)oe=K(z,U[ye],F),oe!==null&&(A=o(oe,A,ye),Ce===null?ue=oe:Ce.sibling=oe,Ce=oe);return Ee&&pn(z,ye),ue}for(oe=l(oe);ye<U.length;ye++)we=k(oe,z,ye,U[ye],F),we!==null&&(e&&we.alternate!==null&&oe.delete(we.key===null?ye:we.key),A=o(we,A,ye),Ce===null?ue=we:Ce.sibling=we,Ce=we);return e&&oe.forEach(function(cl){return t(z,cl)}),Ee&&pn(z,ye),ue}function he(z,A,U,F){if(U==null)throw Error(s(151));for(var ue=null,Ce=null,oe=A,ye=A=0,we=null,Ne=U.next();oe!==null&&!Ne.done;ye++,Ne=U.next()){oe.index>ye?(we=oe,oe=null):we=oe.sibling;var cl=B(z,oe,Ne.value,F);if(cl===null){oe===null&&(oe=we);break}e&&oe&&cl.alternate===null&&t(z,oe),A=o(cl,A,ye),Ce===null?ue=cl:Ce.sibling=cl,Ce=cl,oe=we}if(Ne.done)return n(z,oe),Ee&&pn(z,ye),ue;if(oe===null){for(;!Ne.done;ye++,Ne=U.next())Ne=K(z,Ne.value,F),Ne!==null&&(A=o(Ne,A,ye),Ce===null?ue=Ne:Ce.sibling=Ne,Ce=Ne);return Ee&&pn(z,ye),ue}for(oe=l(oe);!Ne.done;ye++,Ne=U.next())Ne=k(oe,z,ye,Ne.value,F),Ne!==null&&(e&&Ne.alternate!==null&&oe.delete(Ne.key===null?ye:Ne.key),A=o(Ne,A,ye),Ce===null?ue=Ne:Ce.sibling=Ne,Ce=Ne);return e&&oe.forEach(function(jx){return t(z,jx)}),Ee&&pn(z,ye),ue}function De(z,A,U,F){if(typeof U=="object"&&U!==null&&U.type===w&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case N:e:{for(var ue=U.key;A!==null;){if(A.key===ue){if(ue=U.type,ue===w){if(A.tag===7){n(z,A.sibling),F=c(A,U.props.children),F.return=z,z=F;break e}}else if(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===I&&jl(ue)===A.type){n(z,A.sibling),F=c(A,U.props),ti(F,U),F.return=z,z=F;break e}n(z,A);break}else t(z,A);A=A.sibling}U.type===w?(F=Sl(U.props.children,z.mode,F,U.key),F.return=z,z=F):(F=pc(U.type,U.key,U.props,null,z.mode,F),ti(F,U),F.return=z,z=F)}return m(z);case D:e:{for(ue=U.key;A!==null;){if(A.key===ue)if(A.tag===4&&A.stateNode.containerInfo===U.containerInfo&&A.stateNode.implementation===U.implementation){n(z,A.sibling),F=c(A,U.children||[]),F.return=z,z=F;break e}else{n(z,A);break}else t(z,A);A=A.sibling}F=Cr(U,z.mode,F),F.return=z,z=F}return m(z);case I:return U=jl(U),De(z,A,U,F)}if(ae(U))return ie(z,A,U,F);if(W(U)){if(ue=W(U),typeof ue!="function")throw Error(s(150));return U=ue.call(U),he(z,A,U,F)}if(typeof U.then=="function")return De(z,A,wc(U),F);if(U.$$typeof===M)return De(z,A,yc(z,U),F);Ec(z,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,A!==null&&A.tag===6?(n(z,A.sibling),F=c(A,U),F.return=z,z=F):(n(z,A),F=Er(U,z.mode,F),F.return=z,z=F),m(z)):n(z,A)}return function(z,A,U,F){try{ei=0;var ue=De(z,A,U,F);return aa=null,ue}catch(oe){if(oe===la||oe===bc)throw oe;var Ce=Et(29,oe,null,z.mode);return Ce.lanes=F,Ce.return=z,Ce}}}var Al=Nd(!0),jd=Nd(!1),Xn=!1;function Ur(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hr(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 Gn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Te&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=mc(e),sd(e,null,n),t}return hc(e,l,t,n),mc(e)}function ni(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,gf(e,n)}}function Br(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var c=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?c=o=m:o=o.next=m,n=n.next}while(n!==null);o===null?c=o=t:o=o.next=t}else c=o=t;n={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var kr=!1;function li(){if(kr){var e=na;if(e!==null)throw e}}function ai(e,t,n,l){kr=!1;var c=e.updateQueue;Xn=!1;var o=c.firstBaseUpdate,m=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var E=x,H=E.next;E.next=null,m===null?o=H:m.next=H,m=E;var V=e.alternate;V!==null&&(V=V.updateQueue,x=V.lastBaseUpdate,x!==m&&(x===null?V.firstBaseUpdate=H:x.next=H,V.lastBaseUpdate=E))}if(o!==null){var K=c.baseState;m=0,V=H=E=null,x=o;do{var B=x.lane&-536870913,k=B!==x.lane;if(k?(Se&B)===B:(l&B)===B){B!==0&&B===ta&&(kr=!0),V!==null&&(V=V.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ie=e,he=x;B=t;var De=n;switch(he.tag){case 1:if(ie=he.payload,typeof ie=="function"){K=ie.call(De,K,B);break e}K=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=he.payload,B=typeof ie=="function"?ie.call(De,K,B):ie,B==null)break e;K=b({},K,B);break e;case 2:Xn=!0}}B=x.callback,B!==null&&(e.flags|=64,k&&(e.flags|=8192),k=c.callbacks,k===null?c.callbacks=[B]:k.push(B))}else k={lane:B,tag:x.tag,payload:x.payload,callback:x.callback,next:null},V===null?(H=V=k,E=K):V=V.next=k,m|=B;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;k=x,x=k.next,k.next=null,c.lastBaseUpdate=k,c.shared.pending=null}}while(!0);V===null&&(E=K),c.baseState=E,c.firstBaseUpdate=H,c.lastBaseUpdate=V,o===null&&(c.shared.lanes=0),Jn|=m,e.lanes=m,e.memoizedState=K}}function Td(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Ad(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Td(n[e],t)}var ia=T(null),Cc=T(0);function Rd(e,t){e=jn,$(Cc,e),$(ia,t),jn=e|t.baseLanes}function Yr(){$(Cc,jn),$(ia,ia.current)}function qr(){jn=Cc.current,G(ia),G(Cc)}var Ct=T(null),Vt=null;function Kn(e){var t=e.alternate;$(Xe,Xe.current&1),$(Ct,e),Vt===null&&(t===null||ia.current!==null||t.memoizedState!==null)&&(Vt=e)}function Vr(e){$(Xe,Xe.current),$(Ct,e),Vt===null&&(Vt=e)}function Od(e){e.tag===22?($(Xe,Xe.current),$(Ct,e),Vt===null&&(Vt=e)):Qn()}function Qn(){$(Xe,Xe.current),$(Ct,Ct.current)}function Nt(e){G(Ct),Vt===e&&(Vt=null),G(Xe)}var Xe=T(0);function Nc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Zs(n)||Ps(n)))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 yn=0,ve=null,ze=null,Qe=null,jc=!1,ca=!1,Rl=!1,Tc=0,ii=0,oa=null,v0=0;function qe(){throw Error(s(321))}function Xr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wt(e[n],t[n]))return!1;return!0}function Gr(e,t,n,l,c,o){return yn=o,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?hh:is,Rl=!1,o=n(l,c),Rl=!1,ca&&(o=_d(t,n,l,c)),zd(e),o}function zd(e){_.H=ri;var t=ze!==null&&ze.next!==null;if(yn=0,Qe=ze=ve=null,jc=!1,ii=0,oa=null,t)throw Error(s(300));e===null||Ze||(e=e.dependencies,e!==null&&gc(e)&&(Ze=!0))}function _d(e,t,n,l){ve=e;var c=0;do{if(ca&&(oa=null),ii=0,ca=!1,25<=c)throw Error(s(301));if(c+=1,Qe=ze=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}_.H=mh,o=t(n,l)}while(ca);return o}function g0(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?ci(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ve.flags|=1024),t}function Fr(){var e=Tc!==0;return Tc=0,e}function Kr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Qr(e){if(jc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jc=!1}yn=0,Qe=ze=ve=null,ca=!1,ii=Tc=0,oa=null}function ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ve.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ge(){if(ze===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Qe===null?ve.memoizedState:Qe.next;if(t!==null)Qe=t,ze=e;else{if(e===null)throw ve.alternate===null?Error(s(467)):Error(s(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Qe===null?ve.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Ac(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ci(e){var t=ii;return ii+=1,oa===null&&(oa=[]),e=wd(oa,e,t),t=ve,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?hh:is),e}function Rc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ci(e);if(e.$$typeof===M)return lt(e)}throw Error(s(438,String(e)))}function Zr(e){var t=null,n=ve.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ve.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ac(),ve.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=re;return t.index++,n}function xn(e,t){return typeof t=="function"?t(e):t}function Oc(e){var t=Ge();return Pr(t,ze,e)}function Pr(e,t,n){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var c=e.baseQueue,o=l.pending;if(o!==null){if(c!==null){var m=c.next;c.next=o.next,o.next=m}t.baseQueue=c=o,l.pending=null}if(o=e.baseState,c===null)e.memoizedState=o;else{t=c.next;var x=m=null,E=null,H=t,V=!1;do{var K=H.lane&-536870913;if(K!==H.lane?(Se&K)===K:(yn&K)===K){var B=H.revertLane;if(B===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),K===ta&&(V=!0);else if((yn&B)===B){H=H.next,B===ta&&(V=!0);continue}else K={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(x=E=K,m=o):E=E.next=K,ve.lanes|=B,Jn|=B;K=H.action,Rl&&n(o,K),o=H.hasEagerState?H.eagerState:n(o,K)}else B={lane:K,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(x=E=B,m=o):E=E.next=B,ve.lanes|=K,Jn|=K;H=H.next}while(H!==null&&H!==t);if(E===null?m=o:E.next=x,!wt(o,e.memoizedState)&&(Ze=!0,V&&(n=na,n!==null)))throw n;e.memoizedState=o,e.baseState=m,e.baseQueue=E,l.lastRenderedState=o}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Jr(e){var t=Ge(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var l=n.dispatch,c=n.pending,o=t.memoizedState;if(c!==null){n.pending=null;var m=c=c.next;do o=e(o,m.action),m=m.next;while(m!==c);wt(o,t.memoizedState)||(Ze=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,l]}function Dd(e,t,n){var l=ve,c=Ge(),o=Ee;if(o){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!wt((ze||c).memoizedState,n);if(m&&(c.memoizedState=n,Ze=!0),c=c.queue,$r(Ud.bind(null,l,c,e),[e]),c.getSnapshot!==t||m||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,ra(9,{destroy:void 0},Ld.bind(null,l,c,n,t),null),Me===null)throw Error(s(349));o||(yn&127)!==0||Md(l,t,n)}return n}function Md(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t=Ac(),ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ld(e,t,n,l){t.value=n,t.getSnapshot=l,Hd(t)&&Bd(e)}function Ud(e,t,n){return n(function(){Hd(t)&&Bd(e)})}function Hd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wt(e,n)}catch{return!0}}function Bd(e){var t=bl(e,2);t!==null&&gt(t,e,2)}function Wr(e){var t=ut();if(typeof e=="function"){var n=e;if(e=n(),Rl){Un(!0);try{n()}finally{Un(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:e},t}function kd(e,t,n,l){return e.baseState=n,Pr(e,ze,typeof l=="function"?l:xn)}function y0(e,t,n,l,c){if(Dc(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};_.T!==null?n(!0):o.isTransition=!1,l(o),n=t.pending,n===null?(o.next=t.pending=o,Yd(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Yd(e,t){var n=t.action,l=t.payload,c=e.state;if(t.isTransition){var o=_.T,m={};_.T=m;try{var x=n(c,l),E=_.S;E!==null&&E(m,x),qd(e,t,x)}catch(H){Ir(e,t,H)}finally{o!==null&&m.types!==null&&(o.types=m.types),_.T=o}}else try{o=n(c,l),qd(e,t,o)}catch(H){Ir(e,t,H)}}function qd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Vd(e,t,l)},function(l){return Ir(e,t,l)}):Vd(e,t,n)}function Vd(e,t,n){t.status="fulfilled",t.value=n,Xd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Yd(e,n)))}function Ir(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Xd(t),t=t.next;while(t!==l)}e.action=null}function Xd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Gd(e,t){return t}function Fd(e,t){if(Ee){var n=Me.formState;if(n!==null){e:{var l=ve;if(Ee){if(Le){t:{for(var c=Le,o=qt;c.nodeType!==8;){if(!o){c=null;break t}if(c=Xt(c.nextSibling),c===null){c=null;break t}}o=c.data,c=o==="F!"||o==="F"?c:null}if(c){Le=Xt(c.nextSibling),l=c.data==="F!";break e}}qn(l)}l=!1}l&&(t=n[0])}}return n=ut(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gd,lastRenderedState:t},n.queue=l,n=uh.bind(null,ve,l),l.dispatch=n,l=Wr(!1),o=as.bind(null,ve,!1,l.queue),l=ut(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,n=y0.bind(null,ve,c,o,n),c.dispatch=n,l.memoizedState=e,[t,n,!1]}function Kd(e){var t=Ge();return Qd(t,ze,e)}function Qd(e,t,n){if(t=Pr(e,t,Gd)[0],e=Oc(xn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ci(t)}catch(m){throw m===la?bc:m}else l=t;t=Ge();var c=t.queue,o=c.dispatch;return n!==t.memoizedState&&(ve.flags|=2048,ra(9,{destroy:void 0},x0.bind(null,c,n),null)),[l,o,e]}function x0(e,t){e.action=t}function Zd(e){var t=Ge(),n=ze;if(n!==null)return Qd(t,n,e);Ge(),t=t.memoizedState,n=Ge();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function ra(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ve.updateQueue,t===null&&(t=Ac(),ve.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Pd(){return Ge().memoizedState}function zc(e,t,n,l){var c=ut();ve.flags|=e,c.memoizedState=ra(1|t,{destroy:void 0},n,l===void 0?null:l)}function _c(e,t,n,l){var c=Ge();l=l===void 0?null:l;var o=c.memoizedState.inst;ze!==null&&l!==null&&Xr(l,ze.memoizedState.deps)?c.memoizedState=ra(t,o,n,l):(ve.flags|=e,c.memoizedState=ra(1|t,o,n,l))}function Jd(e,t){zc(8390656,8,e,t)}function $r(e,t){_c(2048,8,e,t)}function b0(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=Ac(),ve.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Wd(e){var t=Ge().memoizedState;return b0({ref:t,nextImpl:e}),function(){if((Te&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Id(e,t){return _c(4,2,e,t)}function $d(e,t){return _c(4,4,e,t)}function eh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function th(e,t,n){n=n!=null?n.concat([e]):null,_c(4,4,eh.bind(null,t,e),n)}function es(){}function nh(e,t){var n=Ge();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Xr(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function lh(e,t){var n=Ge();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Xr(t,l[1]))return l[0];if(l=e(),Rl){Un(!0);try{e()}finally{Un(!1)}}return n.memoizedState=[l,t],l}function ts(e,t,n){return n===void 0||(yn&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=am(),ve.lanes|=e,Jn|=e,n)}function ah(e,t,n,l){return wt(n,t)?n:ia.current!==null?(e=ts(e,n,l),wt(e,t)||(Ze=!0),e):(yn&42)===0||(yn&1073741824)!==0&&(Se&261930)===0?(Ze=!0,e.memoizedState=n):(e=am(),ve.lanes|=e,Jn|=e,t)}function ih(e,t,n,l,c){var o=L.p;L.p=o!==0&&8>o?o:8;var m=_.T,x={};_.T=x,as(e,!1,t,n);try{var E=c(),H=_.S;if(H!==null&&H(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var V=p0(E,l);oi(e,t,V,At(e))}else oi(e,t,l,At(e))}catch(K){oi(e,t,{then:function(){},status:"rejected",reason:K},At())}finally{L.p=o,m!==null&&x.types!==null&&(m.types=x.types),_.T=m}}function S0(){}function ns(e,t,n,l){if(e.tag!==5)throw Error(s(476));var c=ch(e).queue;ih(e,c,t,X,n===null?S0:function(){return oh(e),n(l)})}function ch(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:X},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function oh(e){var t=ch(e);t.next===null&&(t=e.alternate.memoizedState),oi(e,t.next.queue,{},At())}function ls(){return lt(Ci)}function rh(){return Ge().memoizedState}function sh(){return Ge().memoizedState}function w0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=At();e=Gn(n);var l=Fn(t,e,n);l!==null&&(gt(l,t,n),ni(l,t,n)),t={cache:_r()},e.payload=t;return}t=t.return}}function E0(e,t,n){var l=At();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Dc(e)?fh(t,n):(n=Sr(e,t,n,l),n!==null&&(gt(n,e,l),dh(n,t,l)))}function uh(e,t,n){var l=At();oi(e,t,n,l)}function oi(e,t,n,l){var c={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Dc(e))fh(t,c);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,x=o(m,n);if(c.hasEagerState=!0,c.eagerState=x,wt(x,m))return hc(e,t,c,0),Me===null&&dc(),!1}catch{}if(n=Sr(e,t,c,l),n!==null)return gt(n,e,l),dh(n,t,l),!0}return!1}function as(e,t,n,l){if(l={lane:2,revertLane:Us(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Dc(e)){if(t)throw Error(s(479))}else t=Sr(e,n,l,2),t!==null&&gt(t,e,2)}function Dc(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function fh(e,t){ca=jc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,gf(e,n)}}var ri={readContext:lt,use:Rc,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};ri.useEffectEvent=qe;var hh={readContext:lt,use:Rc,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Jd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,zc(4194308,4,eh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zc(4194308,4,e,t)},useInsertionEffect:function(e,t){zc(4,2,e,t)},useMemo:function(e,t){var n=ut();t=t===void 0?null:t;var l=e();if(Rl){Un(!0);try{e()}finally{Un(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=ut();if(n!==void 0){var c=n(t);if(Rl){Un(!0);try{n(t)}finally{Un(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=E0.bind(null,ve,e),[l.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:function(e){e=Wr(e);var t=e.queue,n=uh.bind(null,ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:es,useDeferredValue:function(e,t){var n=ut();return ts(n,e,t)},useTransition:function(){var e=Wr(!1);return e=ih.bind(null,ve,e.queue,!0,!1),ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ve,c=ut();if(Ee){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Me===null)throw Error(s(349));(Se&127)!==0||Md(l,t,n)}c.memoizedState=n;var o={value:n,getSnapshot:t};return c.queue=o,Jd(Ud.bind(null,l,o,e),[e]),l.flags|=2048,ra(9,{destroy:void 0},Ld.bind(null,l,o,n,t),null),n},useId:function(){var e=ut(),t=Me.identifierPrefix;if(Ee){var n=en,l=$t;n=(l&~(1<<32-St(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Tc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=v0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ls,useFormState:Fd,useActionState:Fd,useOptimistic:function(e){var t=ut();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=as.bind(null,ve,!0,n),n.dispatch=t,[e,t]},useMemoCache:Zr,useCacheRefresh:function(){return ut().memoizedState=w0.bind(null,ve)},useEffectEvent:function(e){var t=ut(),n={impl:e};return t.memoizedState=n,function(){if((Te&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},is={readContext:lt,use:Rc,useCallback:nh,useContext:lt,useEffect:$r,useImperativeHandle:th,useInsertionEffect:Id,useLayoutEffect:$d,useMemo:lh,useReducer:Oc,useRef:Pd,useState:function(){return Oc(xn)},useDebugValue:es,useDeferredValue:function(e,t){var n=Ge();return ah(n,ze.memoizedState,e,t)},useTransition:function(){var e=Oc(xn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:Dd,useId:rh,useHostTransitionStatus:ls,useFormState:Kd,useActionState:Kd,useOptimistic:function(e,t){var n=Ge();return kd(n,ze,e,t)},useMemoCache:Zr,useCacheRefresh:sh};is.useEffectEvent=Wd;var mh={readContext:lt,use:Rc,useCallback:nh,useContext:lt,useEffect:$r,useImperativeHandle:th,useInsertionEffect:Id,useLayoutEffect:$d,useMemo:lh,useReducer:Jr,useRef:Pd,useState:function(){return Jr(xn)},useDebugValue:es,useDeferredValue:function(e,t){var n=Ge();return ze===null?ts(n,e,t):ah(n,ze.memoizedState,e,t)},useTransition:function(){var e=Jr(xn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:Dd,useId:rh,useHostTransitionStatus:ls,useFormState:Zd,useActionState:Zd,useOptimistic:function(e,t){var n=Ge();return ze!==null?kd(n,ze,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Zr,useCacheRefresh:sh};mh.useEffectEvent=Wd;function cs(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var os={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=At(),c=Gn(l);c.payload=t,n!=null&&(c.callback=n),t=Fn(e,c,l),t!==null&&(gt(t,e,l),ni(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=At(),c=Gn(l);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=Fn(e,c,l),t!==null&&(gt(t,e,l),ni(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=At(),l=Gn(n);l.tag=2,t!=null&&(l.callback=t),t=Fn(e,l,n),t!==null&&(gt(t,e,n),ni(t,e,n))}};function ph(e,t,n,l,c,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,o,m):t.prototype&&t.prototype.isPureReactComponent?!Za(n,l)||!Za(c,o):!0}function vh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function Ol(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function gh(e){fc(e)}function yh(e){console.error(e)}function xh(e){fc(e)}function Mc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function bh(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function rs(e,t,n){return n=Gn(n),n.tag=3,n.payload={element:null},n.callback=function(){Mc(e,t)},n}function Sh(e){return e=Gn(e),e.tag=3,e}function wh(e,t,n,l){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var o=l.value;e.payload=function(){return c(o)},e.callback=function(){bh(t,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){bh(t,n,l),typeof c!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function C0(e,t,n,l,c){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ea(t,n,c,!0),n=Ct.current,n!==null){switch(n.tag){case 31:case 13:return Vt===null?Kc():n.alternate===null&&Ve===0&&(Ve=3),n.flags&=-257,n.flags|=65536,n.lanes=c,l===Sc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Ds(e,l,c)),!1;case 22:return n.flags|=65536,l===Sc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Ds(e,l,c)),!1}throw Error(s(435,n.tag))}return Ds(e,l,c),Kc(),!1}if(Ee)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==Tr&&(e=Error(s(422),{cause:l}),Wa(Bt(e,n)))):(l!==Tr&&(t=Error(s(423),{cause:l}),Wa(Bt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=Bt(l,n),c=rs(e.stateNode,l,c),Br(e,c),Ve!==4&&(Ve=2)),!1;var o=Error(s(520),{cause:l});if(o=Bt(o,n),vi===null?vi=[o]:vi.push(o),Ve!==4&&(Ve=2),t===null)return!0;l=Bt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=rs(n.stateNode,l,e),Br(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Wn===null||!Wn.has(o))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Sh(c),wh(c,e,n,l),Br(n,c),!1}n=n.return}while(n!==null);return!1}var ss=Error(s(461)),Ze=!1;function at(e,t,n,l){t.child=e===null?jd(t,null,n,l):Al(t,e.child,n,l)}function Eh(e,t,n,l,c){n=n.render;var o=t.ref;if("ref"in l){var m={};for(var x in l)x!=="ref"&&(m[x]=l[x])}else m=l;return Cl(t),l=Gr(e,t,n,m,o,c),x=Fr(),e!==null&&!Ze?(Kr(e,t,c),bn(e,t,c)):(Ee&&x&&Nr(t),t.flags|=1,at(e,t,l,c),t.child)}function Ch(e,t,n,l,c){if(e===null){var o=n.type;return typeof o=="function"&&!wr(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Nh(e,t,o,l,c)):(e=pc(n.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!gs(e,c)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:Za,n(m,l)&&e.ref===t.ref)return bn(e,t,c)}return t.flags|=1,e=mn(o,l),e.ref=t.ref,e.return=t,t.child=e}function Nh(e,t,n,l,c){if(e!==null){var o=e.memoizedProps;if(Za(o,l)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=l=o,gs(e,c))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,bn(e,t,c)}return us(e,t,n,l,c)}function jh(e,t,n,l){var c=l.children,o=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(o=o!==null?o.baseLanes|n:n,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~o}else l=0,t.child=null;return Th(e,t,o,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xc(t,o!==null?o.cachePool:null),o!==null?Rd(t,o):Yr(),Od(t);else return l=t.lanes=536870912,Th(e,t,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(xc(t,o.cachePool),Rd(t,o),Qn(),t.memoizedState=null):(e!==null&&xc(t,null),Yr(),Qn());return at(e,t,c,n),t.child}function si(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Th(e,t,n,l,c){var o=Mr();return o=o===null?null:{parent:Ke._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&xc(t,null),Yr(),Od(t),e!==null&&ea(e,t,l,!0),t.childLanes=c,null}function Lc(e,t){return t=Hc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ah(e,t,n){return Al(t,e.child,null,n),e=Lc(t,t.pendingProps),e.flags|=2,Nt(t),t.memoizedState=null,e}function N0(e,t,n){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(l.mode==="hidden")return e=Lc(t,l),t.lanes=536870912,si(null,e);if(Vr(t),(e=Le)?(e=Ym(e,qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:$t,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=fd(e),n.return=t,t.child=n,nt=t,Le=null)):e=null,e===null)throw qn(t);return t.lanes=536870912,null}return Lc(t,l)}var o=e.memoizedState;if(o!==null){var m=o.dehydrated;if(Vr(t),c)if(t.flags&256)t.flags&=-257,t=Ah(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ze||ea(e,t,n,!1),c=(n&e.childLanes)!==0,Ze||c){if(l=Me,l!==null&&(m=yf(l,n),m!==0&&m!==o.retryLane))throw o.retryLane=m,bl(e,m),gt(l,e,m),ss;Kc(),t=Ah(e,t,n)}else e=o.treeContext,Le=Xt(m.nextSibling),nt=t,Ee=!0,Yn=null,qt=!1,e!==null&&md(t,e),t=Lc(t,l),t.flags|=4096;return t}return e=mn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function us(e,t,n,l,c){return Cl(t),n=Gr(e,t,n,l,void 0,c),l=Fr(),e!==null&&!Ze?(Kr(e,t,c),bn(e,t,c)):(Ee&&l&&Nr(t),t.flags|=1,at(e,t,n,c),t.child)}function Rh(e,t,n,l,c,o){return Cl(t),t.updateQueue=null,n=_d(t,l,n,c),zd(e),l=Fr(),e!==null&&!Ze?(Kr(e,t,o),bn(e,t,o)):(Ee&&l&&Nr(t),t.flags|=1,at(e,t,n,o),t.child)}function Oh(e,t,n,l,c){if(Cl(t),t.stateNode===null){var o=Jl,m=n.contextType;typeof m=="object"&&m!==null&&(o=lt(m)),o=new n(l,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=os,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=l,o.state=t.memoizedState,o.refs={},Ur(t),m=n.contextType,o.context=typeof m=="object"&&m!==null?lt(m):Jl,o.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(cs(t,n,m,l),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&os.enqueueReplaceState(o,o.state,null),ai(t,l,o,c),li(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){o=t.stateNode;var x=t.memoizedProps,E=Ol(n,x);o.props=E;var H=o.context,V=n.contextType;m=Jl,typeof V=="object"&&V!==null&&(m=lt(V));var K=n.getDerivedStateFromProps;V=typeof K=="function"||typeof o.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,V||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(x||H!==m)&&vh(t,o,l,m),Xn=!1;var B=t.memoizedState;o.state=B,ai(t,l,o,c),li(),H=t.memoizedState,x||B!==H||Xn?(typeof K=="function"&&(cs(t,n,K,l),H=t.memoizedState),(E=Xn||ph(t,n,E,l,B,H,m))?(V||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=H),o.props=l,o.state=H,o.context=m,l=E):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{o=t.stateNode,Hr(e,t),m=t.memoizedProps,V=Ol(n,m),o.props=V,K=t.pendingProps,B=o.context,H=n.contextType,E=Jl,typeof H=="object"&&H!==null&&(E=lt(H)),x=n.getDerivedStateFromProps,(H=typeof x=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==K||B!==E)&&vh(t,o,l,E),Xn=!1,B=t.memoizedState,o.state=B,ai(t,l,o,c),li();var k=t.memoizedState;m!==K||B!==k||Xn||e!==null&&e.dependencies!==null&&gc(e.dependencies)?(typeof x=="function"&&(cs(t,n,x,l),k=t.memoizedState),(V=Xn||ph(t,n,V,l,B,k,E)||e!==null&&e.dependencies!==null&&gc(e.dependencies))?(H||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,k,E),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,k,E)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=k),o.props=l,o.state=k,o.context=E,l=V):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),l=!1)}return o=l,Uc(e,t),l=(t.flags&128)!==0,o||l?(o=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&l?(t.child=Al(t,e.child,null,c),t.child=Al(t,null,n,c)):at(e,t,n,c),t.memoizedState=o.state,e=t.child):e=bn(e,t,c),e}function zh(e,t,n,l){return wl(),t.flags|=256,at(e,t,n,l),t.child}var fs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ds(e){return{baseLanes:e,cachePool:bd()}}function hs(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Tt),e}function _h(e,t,n){var l=t.pendingProps,c=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),m&&(c=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(c?Kn(t):Qn(),(e=Le)?(e=Ym(e,qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:$t,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=fd(e),n.return=t,t.child=n,nt=t,Le=null)):e=null,e===null)throw qn(t);return Ps(e)?t.lanes=32:t.lanes=536870912,null}var x=l.children;return l=l.fallback,c?(Qn(),c=t.mode,x=Hc({mode:"hidden",children:x},c),l=Sl(l,c,n,null),x.return=t,l.return=t,x.sibling=l,t.child=x,l=t.child,l.memoizedState=ds(n),l.childLanes=hs(e,m,n),t.memoizedState=fs,si(null,l)):(Kn(t),ms(t,x))}var E=e.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(o)t.flags&256?(Kn(t),t.flags&=-257,t=ps(e,t,n)):t.memoizedState!==null?(Qn(),t.child=e.child,t.flags|=128,t=null):(Qn(),x=l.fallback,c=t.mode,l=Hc({mode:"visible",children:l.children},c),x=Sl(x,c,n,null),x.flags|=2,l.return=t,x.return=t,l.sibling=x,t.child=l,Al(t,e.child,null,n),l=t.child,l.memoizedState=ds(n),l.childLanes=hs(e,m,n),t.memoizedState=fs,t=si(null,l));else if(Kn(t),Ps(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var H=m.dgst;m=H,l=Error(s(419)),l.stack="",l.digest=m,Wa({value:l,source:null,stack:null}),t=ps(e,t,n)}else if(Ze||ea(e,t,n,!1),m=(n&e.childLanes)!==0,Ze||m){if(m=Me,m!==null&&(l=yf(m,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,bl(e,l),gt(m,e,l),ss;Zs(x)||Kc(),t=ps(e,t,n)}else Zs(x)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Le=Xt(x.nextSibling),nt=t,Ee=!0,Yn=null,qt=!1,e!==null&&md(t,e),t=ms(t,l.children),t.flags|=4096);return t}return c?(Qn(),x=l.fallback,c=t.mode,E=e.child,H=E.sibling,l=mn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,H!==null?x=mn(H,x):(x=Sl(x,c,n,null),x.flags|=2),x.return=t,l.return=t,l.sibling=x,t.child=l,si(null,l),l=t.child,x=e.child.memoizedState,x===null?x=ds(n):(c=x.cachePool,c!==null?(E=Ke._currentValue,c=c.parent!==E?{parent:E,pool:E}:c):c=bd(),x={baseLanes:x.baseLanes|n,cachePool:c}),l.memoizedState=x,l.childLanes=hs(e,m,n),t.memoizedState=fs,si(e.child,l)):(Kn(t),n=e.child,e=n.sibling,n=mn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function ms(e,t){return t=Hc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Hc(e,t){return e=Et(22,e,null,t),e.lanes=0,e}function ps(e,t,n){return Al(t,e.child,null,n),e=ms(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Or(e.return,t,n)}function vs(e,t,n,l,c,o){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:c,treeForkCount:o}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=c,m.treeForkCount=o)}function Mh(e,t,n){var l=t.pendingProps,c=l.revealOrder,o=l.tail;l=l.children;var m=Xe.current,x=(m&2)!==0;if(x?(m=m&1|2,t.flags|=128):m&=1,$(Xe,m),at(e,t,l,n),l=Ee?Ja:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dh(e,n,t);else if(e.tag===19)Dh(e,n,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(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Nc(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),vs(t,!1,c,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Nc(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}vs(t,!0,n,null,o,l);break;case"together":vs(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&gc(e)))}function j0(e,t,n){switch(t.tag){case 3:fe(t,t.stateNode.containerInfo),Vn(t,Ke,e.memoizedState.cache),wl();break;case 27:case 5:je(t);break;case 4:fe(t,t.stateNode.containerInfo);break;case 10:Vn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Kn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?_h(e,t,n):(Kn(t),e=bn(e,t,n),e!==null?e.sibling:null);Kn(t);break;case 19:var c=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ea(e,t,n,!1),l=(n&t.childLanes)!==0),c){if(l)return Mh(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),$(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,jh(e,t,n,t.pendingProps);case 24:Vn(t,Ke,e.memoizedState.cache)}return bn(e,t,n)}function Lh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!gs(e,n)&&(t.flags&128)===0)return Ze=!1,j0(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,Ee&&(t.flags&1048576)!==0&&hd(t,Ja,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=jl(t.elementType),t.type=e,typeof e=="function")wr(e)?(l=Ol(e,l),t.tag=1,t=Oh(null,t,e,l,n)):(t.tag=0,t=us(null,t,e,l,n));else{if(e!=null){var c=e.$$typeof;if(c===q){t.tag=11,t=Eh(null,t,e,l,n);break e}else if(c===Y){t.tag=14,t=Ch(null,t,e,l,n);break e}}throw t=ee(e)||e,Error(s(306,t,""))}}return t;case 0:return us(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,c=Ol(l,t.pendingProps),Oh(e,t,l,c,n);case 3:e:{if(fe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var o=t.memoizedState;c=o.element,Hr(e,t),ai(t,l,null,n);var m=t.memoizedState;if(l=m.cache,Vn(t,Ke,l),l!==o.cache&&zr(t,[Ke],n,!0),li(),l=m.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=zh(e,t,l,n);break e}else if(l!==c){c=Bt(Error(s(424)),t),Wa(c),t=zh(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Le=Xt(e.firstChild),nt=t,Ee=!0,Yn=null,qt=!0,n=jd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wl(),l===c){t=bn(e,t,n);break e}at(e,t,l,n)}t=t.child}return t;case 26:return Uc(e,t),e===null?(n=Km(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ee||(n=t.type,e=t.pendingProps,l=$c(Z.current).createElement(n),l[tt]=t,l[ft]=e,it(l,n,e),$e(l),t.stateNode=l):t.memoizedState=Km(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&&Ee&&(l=t.stateNode=Xm(t.type,t.pendingProps,Z.current),nt=t,qt=!0,c=Le,tl(t.type)?(Js=c,Le=Xt(l.firstChild)):Le=c),at(e,t,t.pendingProps.children,n),Uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((c=l=Le)&&(l=nx(l,t.type,t.pendingProps,qt),l!==null?(t.stateNode=l,nt=t,Le=Xt(l.firstChild),qt=!1,c=!0):c=!1),c||qn(t)),je(t),c=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,l=o.children,Fs(c,o)?l=null:m!==null&&Fs(c,m)&&(t.flags|=32),t.memoizedState!==null&&(c=Gr(e,t,g0,null,null,n),Ci._currentValue=c),Uc(e,t),at(e,t,l,n),t.child;case 6:return e===null&&Ee&&((e=n=Le)&&(n=lx(n,t.pendingProps,qt),n!==null?(t.stateNode=n,nt=t,Le=null,e=!0):e=!1),e||qn(t)),null;case 13:return _h(e,t,n);case 4:return fe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Al(t,null,l,n):at(e,t,l,n),t.child;case 11:return Eh(e,t,t.type,t.pendingProps,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Vn(t,t.type,l.value),at(e,t,l.children,n),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Cl(t),c=lt(c),l=l(c),t.flags|=1,at(e,t,l,n),t.child;case 14:return Ch(e,t,t.type,t.pendingProps,n);case 15:return Nh(e,t,t.type,t.pendingProps,n);case 19:return Mh(e,t,n);case 31:return N0(e,t,n);case 22:return jh(e,t,n,t.pendingProps);case 24:return Cl(t),l=lt(Ke),e===null?(c=Mr(),c===null&&(c=Me,o=_r(),c.pooledCache=o,o.refCount++,o!==null&&(c.pooledCacheLanes|=n),c=o),t.memoizedState={parent:l,cache:c},Ur(t),Vn(t,Ke,c)):((e.lanes&n)!==0&&(Hr(e,t),ai(t,null,null,n),li()),c=e.memoizedState,o=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Vn(t,Ke,l)):(l=o.cache,Vn(t,Ke,l),l!==c.cache&&zr(t,[Ke],n,!0))),at(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Sn(e){e.flags|=4}function ys(e,t,n,l,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(rm())e.flags|=8192;else throw Tl=Sc,Lr}else e.flags&=-16777217}function Uh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Wm(t))if(rm())e.flags|=8192;else throw Tl=Sc,Lr}function Bc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?pf():536870912,e.lanes|=t,da|=t)}function ui(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function T0(e,t,n){var l=t.pendingProps;switch(jr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),gn(Ke),ge(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&($l(t)?Sn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ar())),Ue(t),null;case 26:var c=t.type,o=t.memoizedState;return e===null?(Sn(t),o!==null?(Ue(t),Uh(t,o)):(Ue(t),ys(t,c,null,l,n))):o?o!==e.memoizedState?(Sn(t),Ue(t),Uh(t,o)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Sn(t),Ue(t),ys(t,c,e,l,n)),null;case 27:if(Ae(t),n=Z.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ue(t),null}e=te.current,$l(t)?pd(t):(e=Xm(c,l,n),t.stateNode=e,Sn(t))}return Ue(t),null;case 5:if(Ae(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ue(t),null}if(o=te.current,$l(t))pd(t);else{var m=$c(Z.current);switch(o){case 1:o=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:o=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":o=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":o=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":o=m.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?m.createElement(c,{is:l.is}):m.createElement(c)}}o[tt]=t,o[ft]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)o.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=o;e:switch(it(o,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Sn(t)}}return Ue(t),ys(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=Z.current,$l(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,c=nt,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||_m(e.nodeValue,n)),e||qn(t,!0)}else e=$c(e).createTextNode(l),e[tt]=t,t.stateNode=e}return Ue(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=$l(t),n!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else n=Ar(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Nt(t),t):(Nt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ue(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=$l(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[tt]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),c=!1}else c=Ar(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Nt(t),t):(Nt(t),null)}return Nt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==c&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),Ue(t),null);case 4:return ge(),e===null&&Ys(t.stateNode.containerInfo),Ue(t),null;case 10:return gn(t.type),Ue(t),null;case 19:if(G(Xe),l=t.memoizedState,l===null)return Ue(t),null;if(c=(t.flags&128)!==0,o=l.rendering,o===null)if(c)ui(l,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Nc(e),o!==null){for(t.flags|=128,ui(l,!1),e=o.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ud(n,e),n=n.sibling;return $(Xe,Xe.current&1|2),Ee&&pn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&xt()>Xc&&(t.flags|=128,c=!0,ui(l,!1),t.lanes=4194304)}else{if(!c)if(e=Nc(o),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),ui(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!Ee)return Ue(t),null}else 2*xt()-l.renderingStartTime>Xc&&n!==536870912&&(t.flags|=128,c=!0,ui(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(e=l.last,e!==null?e.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=xt(),e.sibling=null,n=Xe.current,$(Xe,c?n&1|2:n&1),Ee&&pn(t,l.treeForkCount),e):(Ue(t),null);case 22:case 23:return Nt(t),qr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&G(Nl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),gn(Ke),Ue(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function A0(e,t){switch(jr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gn(Ke),ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ae(t),null;case 31:if(t.memoizedState!==null){if(Nt(t),t.alternate===null)throw Error(s(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Xe),null;case 4:return ge(),null;case 10:return gn(t.type),null;case 22:case 23:return Nt(t),qr(),e!==null&&G(Nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gn(Ke),null;case 25:return null;default:return null}}function Hh(e,t){switch(jr(t),t.tag){case 3:gn(Ke),ge();break;case 26:case 27:case 5:Ae(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&Nt(t);break;case 13:Nt(t);break;case 19:G(Xe);break;case 10:gn(t.type);break;case 22:case 23:Nt(t),qr(),e!==null&&G(Nl);break;case 24:gn(Ke)}}function fi(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var c=l.next;n=c;do{if((n.tag&e)===e){l=void 0;var o=n.create,m=n.inst;l=o(),m.destroy=l}n=n.next}while(n!==c)}}catch(x){Oe(t,t.return,x)}}function Zn(e,t,n){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var o=c.next;l=o;do{if((l.tag&e)===e){var m=l.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,c=t;var E=n,H=x;try{H()}catch(V){Oe(c,E,V)}}}l=l.next}while(l!==o)}}catch(V){Oe(t,t.return,V)}}function Bh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ad(t,n)}catch(l){Oe(e,e.return,l)}}}function kh(e,t,n){n.props=Ol(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Oe(e,t,l)}}function di(e,t){try{var n=e.ref;if(n!==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 n=="function"?e.refCleanup=n(l):n.current=l}}catch(c){Oe(e,t,c)}}function tn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(c){Oe(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Oe(e,t,c)}else n.current=null}function Yh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(c){Oe(e,e.return,c)}}function xs(e,t,n){try{var l=e.stateNode;J0(l,e.type,n,t),l[ft]=t}catch(c){Oe(e,e.return,c)}}function qh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tl(e.type)||e.tag===4}function bs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qh(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&&tl(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 Ss(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dn));else if(l!==4&&(l===27&&tl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ss(e,t,n),e=e.sibling;e!==null;)Ss(e,t,n),e=e.sibling}function kc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&tl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(kc(e,t,n),e=e.sibling;e!==null;)kc(e,t,n),e=e.sibling}function Vh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);it(t,l,n),t[tt]=e,t[ft]=n}catch(o){Oe(e,e.return,o)}}var wn=!1,Pe=!1,ws=!1,Xh=typeof WeakSet=="function"?WeakSet:Set,et=null;function R0(e,t){if(e=e.containerInfo,Xs=co,e=td(e),pr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var c=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var m=0,x=-1,E=-1,H=0,V=0,K=e,B=null;t:for(;;){for(var k;K!==n||c!==0&&K.nodeType!==3||(x=m+c),K!==o||l!==0&&K.nodeType!==3||(E=m+l),K.nodeType===3&&(m+=K.nodeValue.length),(k=K.firstChild)!==null;)B=K,K=k;for(;;){if(K===e)break t;if(B===n&&++H===c&&(x=m),B===o&&++V===l&&(E=m),(k=K.nextSibling)!==null)break;K=B,B=K.parentNode}K=k}n=x===-1||E===-1?null:{start:x,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gs={focusedElem:e,selectionRange:n},co=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,o=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(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,c=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var ie=Ol(n.type,c);e=l.getSnapshotBeforeUpdate(ie,o),l.__reactInternalSnapshotBeforeUpdate=e}catch(he){Oe(n,n.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Qs(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qs(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function Gh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Cn(e,n),l&4&&fi(5,n);break;case 1:if(Cn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Oe(n,n.return,m)}else{var c=Ol(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Oe(n,n.return,m)}}l&64&&Bh(n),l&512&&di(n,n.return);break;case 3:if(Cn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ad(e,t)}catch(m){Oe(n,n.return,m)}}break;case 27:t===null&&l&4&&Vh(n);case 26:case 5:Cn(e,n),t===null&&l&4&&Yh(n),l&512&&di(n,n.return);break;case 12:Cn(e,n);break;case 31:Cn(e,n),l&4&&Qh(e,n);break;case 13:Cn(e,n),l&4&&Zh(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=B0.bind(null,n),ax(e,n))));break;case 22:if(l=n.memoizedState!==null||wn,!l){t=t!==null&&t.memoizedState!==null||Pe,c=wn;var o=Pe;wn=l,(Pe=t)&&!o?Nn(e,n,(n.subtreeFlags&8772)!==0):Cn(e,n),wn=c,Pe=o}break;case 30:break;default:Cn(e,n)}}function Fh(e){var t=e.alternate;t!==null&&(e.alternate=null,Fh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Io(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 Be=null,ht=!1;function En(e,t,n){for(n=n.child;n!==null;)Kh(e,t,n),n=n.sibling}function Kh(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Ua,n)}catch{}switch(n.tag){case 26:Pe||tn(n,t),En(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pe||tn(n,t);var l=Be,c=ht;tl(n.type)&&(Be=n.stateNode,ht=!1),En(e,t,n),Si(n.stateNode),Be=l,ht=c;break;case 5:Pe||tn(n,t);case 6:if(l=Be,c=ht,Be=null,En(e,t,n),Be=l,ht=c,Be!==null)if(ht)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(n.stateNode)}catch(o){Oe(n,t,o)}else try{Be.removeChild(n.stateNode)}catch(o){Oe(n,t,o)}break;case 18:Be!==null&&(ht?(e=Be,Bm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ba(e)):Bm(Be,n.stateNode));break;case 4:l=Be,c=ht,Be=n.stateNode.containerInfo,ht=!0,En(e,t,n),Be=l,ht=c;break;case 0:case 11:case 14:case 15:Zn(2,n,t),Pe||Zn(4,n,t),En(e,t,n);break;case 1:Pe||(tn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&kh(n,t,l)),En(e,t,n);break;case 21:En(e,t,n);break;case 22:Pe=(l=Pe)||n.memoizedState!==null,En(e,t,n),Pe=l;break;default:En(e,t,n)}}function Qh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ba(e)}catch(n){Oe(t,t.return,n)}}}function Zh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ba(e)}catch(n){Oe(t,t.return,n)}}function O0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Xh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Xh),t;default:throw Error(s(435,e.tag))}}function Yc(e,t){var n=O0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var c=k0.bind(null,e,l);l.then(c,c)}})}function mt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var c=n[l],o=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 27:if(tl(x.type)){Be=x.stateNode,ht=!1;break e}break;case 5:Be=x.stateNode,ht=!1;break e;case 3:case 4:Be=x.stateNode.containerInfo,ht=!0;break e}x=x.return}if(Be===null)throw Error(s(160));Kh(o,m,c),Be=null,ht=!1,o=c.alternate,o!==null&&(o.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ph(t,e),t=t.sibling}var Kt=null;function Ph(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:mt(t,e),pt(e),l&4&&(Zn(3,e,e.return),fi(3,e),Zn(5,e,e.return));break;case 1:mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),l&64&&wn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var c=Kt;if(mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),l&4){var o=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":o=c.getElementsByTagName("title")[0],(!o||o[ka]||o[tt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=c.createElement(l),c.head.insertBefore(o,c.querySelector("head > title"))),it(o,l,n),o[tt]=e,$e(o),l=o;break e;case"link":var m=Pm("link","href",c).get(l+(n.href||""));if(m){for(var x=0;x<m.length;x++)if(o=m[x],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(x,1);break t}}o=c.createElement(l),it(o,l,n),c.head.appendChild(o);break;case"meta":if(m=Pm("meta","content",c).get(l+(n.content||""))){for(x=0;x<m.length;x++)if(o=m[x],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(x,1);break t}}o=c.createElement(l),it(o,l,n),c.head.appendChild(o);break;default:throw Error(s(468,l))}o[tt]=e,$e(o),l=o}e.stateNode=l}else Jm(c,e.type,e.stateNode);else e.stateNode=Zm(c,l,e.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?Jm(c,e.type,e.stateNode):Zm(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&xs(e,e.memoizedProps,n.memoizedProps)}break;case 27:mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),n!==null&&l&4&&xs(e,e.memoizedProps,n.memoizedProps);break;case 5:if(mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),e.flags&32){c=e.stateNode;try{Xl(c,"")}catch(ie){Oe(e,e.return,ie)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,xs(e,c,n!==null?n.memoizedProps:c)),l&1024&&(ws=!0);break;case 6:if(mt(t,e),pt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ie){Oe(e,e.return,ie)}}break;case 3:if(no=null,c=Kt,Kt=eo(t.containerInfo),mt(t,e),Kt=c,pt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ba(t.containerInfo)}catch(ie){Oe(e,e.return,ie)}ws&&(ws=!1,Jh(e));break;case 4:l=Kt,Kt=eo(e.stateNode.containerInfo),mt(t,e),pt(e),Kt=l;break;case 12:mt(t,e),pt(e);break;case 31:mt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 13:mt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Vc=xt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 22:c=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,H=wn,V=Pe;if(wn=H||c,Pe=V||E,mt(t,e),Pe=V,wn=H,pt(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||E||wn||Pe||zl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(o=E.stateNode,c)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=E.stateNode;var K=E.memoizedProps.style,B=K!=null&&K.hasOwnProperty("display")?K.display:null;x.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(ie){Oe(E,E.return,ie)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=c?"":E.memoizedProps}catch(ie){Oe(E,E.return,ie)}}}else if(t.tag===18){if(n===null){E=t;try{var k=E.stateNode;c?km(k,!0):km(E.stateNode,!1)}catch(ie){Oe(E,E.return,ie)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Yc(e,n))));break;case 19:mt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 30:break;case 21:break;default:mt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(qh(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var c=n.stateNode,o=bs(e);kc(e,o,c);break;case 5:var m=n.stateNode;n.flags&32&&(Xl(m,""),n.flags&=-33);var x=bs(e);kc(e,x,m);break;case 3:case 4:var E=n.stateNode.containerInfo,H=bs(e);Ss(e,H,E);break;default:throw Error(s(161))}}catch(V){Oe(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Gh(e,t.alternate,t),t=t.sibling}function zl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Zn(4,t,t.return),zl(t);break;case 1:tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&kh(t,t.return,n),zl(t);break;case 27:Si(t.stateNode);case 26:case 5:tn(t,t.return),zl(t);break;case 22:t.memoizedState===null&&zl(t);break;case 30:zl(t);break;default:zl(t)}e=e.sibling}}function Nn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:Nn(c,o,n),fi(4,o);break;case 1:if(Nn(c,o,n),l=o,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(H){Oe(l,l.return,H)}if(l=o,c=l.updateQueue,c!==null){var x=l.stateNode;try{var E=c.shared.hiddenCallbacks;if(E!==null)for(c.shared.hiddenCallbacks=null,c=0;c<E.length;c++)Td(E[c],x)}catch(H){Oe(l,l.return,H)}}n&&m&64&&Bh(o),di(o,o.return);break;case 27:Vh(o);case 26:case 5:Nn(c,o,n),n&&l===null&&m&4&&Yh(o),di(o,o.return);break;case 12:Nn(c,o,n);break;case 31:Nn(c,o,n),n&&m&4&&Qh(c,o);break;case 13:Nn(c,o,n),n&&m&4&&Zh(c,o);break;case 22:o.memoizedState===null&&Nn(c,o,n),di(o,o.return);break;case 30:break;default:Nn(c,o,n)}t=t.sibling}}function Es(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ia(n))}function Cs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ia(e))}function Qt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Wh(e,t,n,l),t=t.sibling}function Wh(e,t,n,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,n,l),c&2048&&fi(9,t);break;case 1:Qt(e,t,n,l);break;case 3:Qt(e,t,n,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ia(e)));break;case 12:if(c&2048){Qt(e,t,n,l),e=t.stateNode;try{var o=t.memoizedProps,m=o.id,x=o.onPostCommit;typeof x=="function"&&x(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Oe(t,t.return,E)}}else Qt(e,t,n,l);break;case 31:Qt(e,t,n,l);break;case 13:Qt(e,t,n,l);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?o._visibility&2?Qt(e,t,n,l):hi(e,t):o._visibility&2?Qt(e,t,n,l):(o._visibility|=2,sa(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Es(m,t);break;case 24:Qt(e,t,n,l),c&2048&&Cs(t.alternate,t);break;default:Qt(e,t,n,l)}}function sa(e,t,n,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,m=t,x=n,E=l,H=m.flags;switch(m.tag){case 0:case 11:case 15:sa(o,m,x,E,c),fi(8,m);break;case 23:break;case 22:var V=m.stateNode;m.memoizedState!==null?V._visibility&2?sa(o,m,x,E,c):hi(o,m):(V._visibility|=2,sa(o,m,x,E,c)),c&&H&2048&&Es(m.alternate,m);break;case 24:sa(o,m,x,E,c),c&&H&2048&&Cs(m.alternate,m);break;default:sa(o,m,x,E,c)}t=t.sibling}}function hi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,c=l.flags;switch(l.tag){case 22:hi(n,l),c&2048&&Es(l.alternate,l);break;case 24:hi(n,l),c&2048&&Cs(l.alternate,l);break;default:hi(n,l)}t=t.sibling}}var mi=8192;function ua(e,t,n){if(e.subtreeFlags&mi)for(e=e.child;e!==null;)Ih(e,t,n),e=e.sibling}function Ih(e,t,n){switch(e.tag){case 26:ua(e,t,n),e.flags&mi&&e.memoizedState!==null&&vx(n,Kt,e.memoizedState,e.memoizedProps);break;case 5:ua(e,t,n);break;case 3:case 4:var l=Kt;Kt=eo(e.stateNode.containerInfo),ua(e,t,n),Kt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=mi,mi=16777216,ua(e,t,n),mi=l):ua(e,t,n));break;default:ua(e,t,n)}}function $h(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 pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];et=l,tm(l,e)}$h(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)em(e),e=e.sibling}function em(e){switch(e.tag){case 0:case 11:case 15:pi(e),e.flags&2048&&Zn(9,e,e.return);break;case 3:pi(e);break;case 12:pi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qc(e)):pi(e);break;default:pi(e)}}function qc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];et=l,tm(l,e)}$h(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Zn(8,t,t.return),qc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,qc(t));break;default:qc(t)}e=e.sibling}}function tm(e,t){for(;et!==null;){var n=et;switch(n.tag){case 0:case 11:case 15:Zn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ia(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,et=l;else e:for(n=e;et!==null;){l=et;var c=l.sibling,o=l.return;if(Fh(l),l===n){et=null;break e}if(c!==null){c.return=o,et=c;break e}et=o}}}var z0={getCacheForType:function(e){var t=lt(Ke),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return lt(Ke).controller.signal}},_0=typeof WeakMap=="function"?WeakMap:Map,Te=0,Me=null,xe=null,Se=0,Re=0,jt=null,Pn=!1,fa=!1,Ns=!1,jn=0,Ve=0,Jn=0,_l=0,js=0,Tt=0,da=0,vi=null,vt=null,Ts=!1,Vc=0,nm=0,Xc=1/0,Gc=null,Wn=null,We=0,In=null,ha=null,Tn=0,As=0,Rs=null,lm=null,gi=0,Os=null;function At(){return(Te&2)!==0&&Se!==0?Se&-Se:_.T!==null?Us():xf()}function am(){if(Tt===0)if((Se&536870912)===0||Ee){var e=Ii;Ii<<=1,(Ii&3932160)===0&&(Ii=262144),Tt=e}else Tt=536870912;return e=Ct.current,e!==null&&(e.flags|=32),Tt}function gt(e,t,n){(e===Me&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(ma(e,0),$n(e,Se,Tt,!1)),Ba(e,n),((Te&2)===0||e!==Me)&&(e===Me&&((Te&2)===0&&(_l|=n),Ve===4&&$n(e,Se,Tt,!1)),nn(e))}function im(e,t,n){if((Te&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ha(e,t),c=l?L0(e,t):_s(e,t,!0),o=l;do{if(c===0){fa&&!l&&$n(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!D0(n)){c=_s(e,t,!1),o=!1;continue}if(c===2){if(o=t,e.errorRecoveryDisabledLanes&o)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var x=e;c=vi;var E=x.current.memoizedState.isDehydrated;if(E&&(ma(x,m).flags|=256),m=_s(x,m,!1),m!==2){if(Ns&&!E){x.errorRecoveryDisabledLanes|=o,_l|=o,c=4;break e}o=vt,vt=c,o!==null&&(vt===null?vt=o:vt.push.apply(vt,o))}c=m}if(o=!1,c!==2)continue}}if(c===1){ma(e,0),$n(e,t,0,!0);break}e:{switch(l=e,o=c,o){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:$n(l,t,Tt,!Pn);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(c=Vc+300-xt(),10<c)){if($n(l,t,Tt,!Pn),ec(l,0,!0)!==0)break e;Tn=t,l.timeoutHandle=Um(cm.bind(null,l,n,vt,Gc,Ts,t,Tt,_l,da,Pn,o,"Throttled",-0,0),c);break e}cm(l,n,vt,Gc,Ts,t,Tt,_l,da,Pn,o,null,-0,0)}}break}while(!0);nn(e)}function cm(e,t,n,l,c,o,m,x,E,H,V,K,B,k){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dn},Ih(t,o,K);var ie=(o&62914560)===o?Vc-xt():(o&4194048)===o?nm-xt():0;if(ie=gx(K,ie),ie!==null){Tn=o,e.cancelPendingCommit=ie(mm.bind(null,e,t,o,n,l,c,m,x,E,V,K,null,B,k)),$n(e,o,m,!H);return}}mm(e,t,o,n,l,c,m,x,E)}function D0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var c=n[l],o=c.getSnapshot;c=c.value;try{if(!wt(o(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 $n(e,t,n,l){t&=~js,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var o=31-St(c),m=1<<o;l[o]=-1,c&=~m}n!==0&&vf(e,n,t)}function Fc(){return(Te&6)===0?(yi(0),!1):!0}function zs(){if(xe!==null){if(Re===0)var e=xe.return;else e=xe,vn=El=null,Qr(e),aa=null,ei=0,e=xe;for(;e!==null;)Hh(e.alternate,e),e=e.return;xe=null}}function ma(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,$0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Tn=0,zs(),Me=e,xe=n=mn(e.current,null),Se=t,Re=0,jt=null,Pn=!1,fa=Ha(e,t),Ns=!1,da=Tt=js=_l=Jn=Ve=0,vt=vi=null,Ts=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-St(l),o=1<<c;t|=e[c],l&=~o}return jn=t,dc(),n}function om(e,t){ve=null,_.H=ri,t===la||t===bc?(t=Ed(),Re=3):t===Lr?(t=Ed(),Re=4):Re=t===ss?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,xe===null&&(Ve=1,Mc(e,Bt(t,e.current)))}function rm(){var e=Ct.current;return e===null?!0:(Se&4194048)===Se?Vt===null:(Se&62914560)===Se||(Se&536870912)!==0?e===Vt:!1}function sm(){var e=_.H;return _.H=ri,e===null?ri:e}function um(){var e=_.A;return _.A=z0,e}function Kc(){Ve=4,Pn||(Se&4194048)!==Se&&Ct.current!==null||(fa=!0),(Jn&134217727)===0&&(_l&134217727)===0||Me===null||$n(Me,Se,Tt,!1)}function _s(e,t,n){var l=Te;Te|=2;var c=sm(),o=um();(Me!==e||Se!==t)&&(Gc=null,ma(e,t)),t=!1;var m=Ve;e:do try{if(Re!==0&&xe!==null){var x=xe,E=jt;switch(Re){case 8:zs(),m=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var H=Re;if(Re=0,jt=null,pa(e,x,E,H),n&&fa){m=0;break e}break;default:H=Re,Re=0,jt=null,pa(e,x,E,H)}}M0(),m=Ve;break}catch(V){om(e,V)}while(!0);return t&&e.shellSuspendCounter++,vn=El=null,Te=l,_.H=c,_.A=o,xe===null&&(Me=null,Se=0,dc()),m}function M0(){for(;xe!==null;)fm(xe)}function L0(e,t){var n=Te;Te|=2;var l=sm(),c=um();Me!==e||Se!==t?(Gc=null,Xc=xt()+500,ma(e,t)):fa=Ha(e,t);e:do try{if(Re!==0&&xe!==null){t=xe;var o=jt;t:switch(Re){case 1:Re=0,jt=null,pa(e,t,o,1);break;case 2:case 9:if(Sd(o)){Re=0,jt=null,dm(t);break}t=function(){Re!==2&&Re!==9||Me!==e||(Re=7),nn(e)},o.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:Sd(o)?(Re=0,jt=null,dm(t)):(Re=0,jt=null,pa(e,t,o,7));break;case 5:var m=null;switch(xe.tag){case 26:m=xe.memoizedState;case 5:case 27:var x=xe;if(m?Wm(m):x.stateNode.complete){Re=0,jt=null;var E=x.sibling;if(E!==null)xe=E;else{var H=x.return;H!==null?(xe=H,Qc(H)):xe=null}break t}}Re=0,jt=null,pa(e,t,o,5);break;case 6:Re=0,jt=null,pa(e,t,o,6);break;case 8:zs(),Ve=6;break e;default:throw Error(s(462))}}U0();break}catch(V){om(e,V)}while(!0);return vn=El=null,_.H=l,_.A=c,Te=n,xe!==null?0:(Me=null,Se=0,dc(),Ve)}function U0(){for(;xe!==null&&!iy();)fm(xe)}function fm(e){var t=Lh(e.alternate,e,jn);e.memoizedProps=e.pendingProps,t===null?Qc(e):xe=t}function dm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Rh(n,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=Rh(n,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Qr(t);default:Hh(n,t),t=xe=ud(t,jn),t=Lh(n,t,jn)}e.memoizedProps=e.pendingProps,t===null?Qc(e):xe=t}function pa(e,t,n,l){vn=El=null,Qr(t),aa=null,ei=0;var c=t.return;try{if(C0(e,c,t,n,Se)){Ve=1,Mc(e,Bt(n,e.current)),xe=null;return}}catch(o){if(c!==null)throw xe=c,o;Ve=1,Mc(e,Bt(n,e.current)),xe=null;return}t.flags&32768?(Ee||l===1?e=!0:fa||(Se&536870912)!==0?e=!1:(Pn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ct.current,l!==null&&l.tag===13&&(l.flags|=16384))),hm(t,e)):Qc(t)}function Qc(e){var t=e;do{if((t.flags&32768)!==0){hm(t,Pn);return}e=t.return;var n=T0(t.alternate,t,jn);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Ve===0&&(Ve=5)}function hm(e,t){do{var n=A0(e.alternate,e);if(n!==null){n.flags&=32767,xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=n}while(e!==null);Ve=6,xe=null}function mm(e,t,n,l,c,o,m,x,E){e.cancelPendingCommit=null;do Zc();while(We!==0);if((Te&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=br,py(e,n,o,m,x,E),e===Me&&(xe=Me=null,Se=0),ha=t,In=e,Tn=n,As=o,Rs=c,lm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Y0(Ji,function(){return xm(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,c=L.p,L.p=2,m=Te,Te|=4;try{R0(e,t,n)}finally{Te=m,L.p=c,_.T=l}}We=1,pm(),vm(),gm()}}function pm(){if(We===1){We=0;var e=In,t=ha,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var l=L.p;L.p=2;var c=Te;Te|=4;try{Ph(t,e);var o=Gs,m=td(e.containerInfo),x=o.focusedElem,E=o.selectionRange;if(m!==x&&x&&x.ownerDocument&&ed(x.ownerDocument.documentElement,x)){if(E!==null&&pr(x)){var H=E.start,V=E.end;if(V===void 0&&(V=H),"selectionStart"in x)x.selectionStart=H,x.selectionEnd=Math.min(V,x.value.length);else{var K=x.ownerDocument||document,B=K&&K.defaultView||window;if(B.getSelection){var k=B.getSelection(),ie=x.textContent.length,he=Math.min(E.start,ie),De=E.end===void 0?he:Math.min(E.end,ie);!k.extend&&he>De&&(m=De,De=he,he=m);var z=$f(x,he),A=$f(x,De);if(z&&A&&(k.rangeCount!==1||k.anchorNode!==z.node||k.anchorOffset!==z.offset||k.focusNode!==A.node||k.focusOffset!==A.offset)){var U=K.createRange();U.setStart(z.node,z.offset),k.removeAllRanges(),he>De?(k.addRange(U),k.extend(A.node,A.offset)):(U.setEnd(A.node,A.offset),k.addRange(U))}}}}for(K=[],k=x;k=k.parentNode;)k.nodeType===1&&K.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<K.length;x++){var F=K[x];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}co=!!Xs,Gs=Xs=null}finally{Te=c,L.p=l,_.T=n}}e.current=t,We=2}}function vm(){if(We===2){We=0;var e=In,t=ha,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var l=L.p;L.p=2;var c=Te;Te|=4;try{Gh(e,t.alternate,t)}finally{Te=c,L.p=l,_.T=n}}We=3}}function gm(){if(We===4||We===3){We=0,cy();var e=In,t=ha,n=Tn,l=lm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,ha=In=null,ym(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Wn=null),Jo(n),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(Ua,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=_.T,c=L.p,L.p=2,_.T=null;try{for(var o=e.onRecoverableError,m=0;m<l.length;m++){var x=l[m];o(x.value,{componentStack:x.stack})}}finally{_.T=t,L.p=c}}(Tn&3)!==0&&Zc(),nn(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===Os?gi++:(gi=0,Os=e):gi=0,yi(0)}}function ym(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ia(t)))}function Zc(){return pm(),vm(),gm(),xm()}function xm(){if(We!==5)return!1;var e=In,t=As;As=0;var n=Jo(Tn),l=_.T,c=L.p;try{L.p=32>n?32:n,_.T=null,n=Rs,Rs=null;var o=In,m=Tn;if(We=0,ha=In=null,Tn=0,(Te&6)!==0)throw Error(s(331));var x=Te;if(Te|=4,em(o.current),Wh(o,o.current,m,n),Te=x,yi(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(Ua,o)}catch{}return!0}finally{L.p=c,_.T=l,ym(e,t)}}function bm(e,t,n){t=Bt(n,t),t=rs(e.stateNode,t,2),e=Fn(e,t,2),e!==null&&(Ba(e,2),nn(e))}function Oe(e,t,n){if(e.tag===3)bm(e,e,n);else for(;t!==null;){if(t.tag===3){bm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Wn===null||!Wn.has(l))){e=Bt(n,e),n=Sh(2),l=Fn(t,n,2),l!==null&&(wh(n,l,t,e),Ba(l,2),nn(l));break}}t=t.return}}function Ds(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new _0;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(n)||(Ns=!0,c.add(n),e=H0.bind(null,e,t,n),t.then(e,e))}function H0(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Me===e&&(Se&n)===n&&(Ve===4||Ve===3&&(Se&62914560)===Se&&300>xt()-Vc?(Te&2)===0&&ma(e,0):js|=n,da===Se&&(da=0)),nn(e)}function Sm(e,t){t===0&&(t=pf()),e=bl(e,t),e!==null&&(Ba(e,t),nn(e))}function B0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sm(e,n)}function k0(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Sm(e,n)}function Y0(e,t){return Ko(e,t)}var Pc=null,va=null,Ms=!1,Jc=!1,Ls=!1,el=0;function nn(e){e!==va&&e.next===null&&(va===null?Pc=va=e:va=va.next=e),Jc=!0,Ms||(Ms=!0,V0())}function yi(e,t){if(!Ls&&Jc){Ls=!0;do for(var n=!1,l=Pc;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var o=0;else{var m=l.suspendedLanes,x=l.pingedLanes;o=(1<<31-St(42|e)+1)-1,o&=c&~(m&~x),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Nm(l,o))}else o=Se,o=ec(l,l===Me?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||Ha(l,o)||(n=!0,Nm(l,o));l=l.next}while(n);Ls=!1}}function q0(){wm()}function wm(){Jc=Ms=!1;var e=0;el!==0&&I0()&&(e=el);for(var t=xt(),n=null,l=Pc;l!==null;){var c=l.next,o=Em(l,t);o===0?(l.next=null,n===null?Pc=c:n.next=c,c===null&&(va=n)):(n=l,(e!==0||(o&3)!==0)&&(Jc=!0)),l=c}We!==0&&We!==5||yi(e),el!==0&&(el=0)}function Em(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-St(o),x=1<<m,E=c[m];E===-1?((x&n)===0||(x&l)!==0)&&(c[m]=my(x,t)):E<=t&&(e.expiredLanes|=x),o&=~x}if(t=Me,n=Se,n=ec(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Qo(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ha(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Qo(l),Jo(n)){case 2:case 8:n=hf;break;case 32:n=Ji;break;case 268435456:n=mf;break;default:n=Ji}return l=Cm.bind(null,e),n=Ko(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Qo(l),e.callbackPriority=2,e.callbackNode=null,2}function Cm(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Zc()&&e.callbackNode!==n)return null;var l=Se;return l=ec(e,e===Me?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(im(e,l,t),Em(e,xt()),e.callbackNode!=null&&e.callbackNode===n?Cm.bind(null,e):null)}function Nm(e,t){if(Zc())return null;im(e,t,!0)}function V0(){ex(function(){(Te&6)!==0?Ko(df,q0):wm()})}function Us(){if(el===0){var e=ta;e===0&&(e=Wi,Wi<<=1,(Wi&261888)===0&&(Wi=256)),el=e}return el}function jm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ac(""+e)}function Tm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function X0(e,t,n,l,c){if(t==="submit"&&n&&n.stateNode===c){var o=jm((c[ft]||null).action),m=l.submitter;m&&(t=(t=m[ft]||null)?jm(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var x=new rc("action","action",null,l,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(el!==0){var E=m?Tm(c,m):new FormData(c);ns(n,{pending:!0,data:E,method:c.method,action:o},null,E)}}else typeof o=="function"&&(x.preventDefault(),E=m?Tm(c,m):new FormData(c),ns(n,{pending:!0,data:E,method:c.method,action:o},o,E))},currentTarget:c}]})}}for(var Hs=0;Hs<xr.length;Hs++){var Bs=xr[Hs],G0=Bs.toLowerCase(),F0=Bs[0].toUpperCase()+Bs.slice(1);Ft(G0,"on"+F0)}Ft(ad,"onAnimationEnd"),Ft(id,"onAnimationIteration"),Ft(cd,"onAnimationStart"),Ft("dblclick","onDoubleClick"),Ft("focusin","onFocus"),Ft("focusout","onBlur"),Ft(o0,"onTransitionRun"),Ft(r0,"onTransitionStart"),Ft(s0,"onTransitionCancel"),Ft(od,"onTransitionEnd"),ql("onMouseEnter",["mouseout","mouseover"]),ql("onMouseLeave",["mouseout","mouseover"]),ql("onPointerEnter",["pointerout","pointerover"]),ql("onPointerLeave",["pointerout","pointerover"]),vl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vl("onBeforeInput",["compositionend","keypress","textInput","paste"]),vl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xi="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(" "),K0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xi));function Am(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],c=l.event;l=l.listeners;e:{var o=void 0;if(t)for(var m=l.length-1;0<=m;m--){var x=l[m],E=x.instance,H=x.currentTarget;if(x=x.listener,E!==o&&c.isPropagationStopped())break e;o=x,c.currentTarget=H;try{o(c)}catch(V){fc(V)}c.currentTarget=null,o=E}else for(m=0;m<l.length;m++){if(x=l[m],E=x.instance,H=x.currentTarget,x=x.listener,E!==o&&c.isPropagationStopped())break e;o=x,c.currentTarget=H;try{o(c)}catch(V){fc(V)}c.currentTarget=null,o=E}}}}function be(e,t){var n=t[Wo];n===void 0&&(n=t[Wo]=new Set);var l=e+"__bubble";n.has(l)||(Rm(t,e,2,!1),n.add(l))}function ks(e,t,n){var l=0;t&&(l|=4),Rm(n,e,l,t)}var Wc="_reactListening"+Math.random().toString(36).slice(2);function Ys(e){if(!e[Wc]){e[Wc]=!0,wf.forEach(function(n){n!=="selectionchange"&&(K0.has(n)||ks(n,!1,e),ks(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wc]||(t[Wc]=!0,ks("selectionchange",!1,t))}}function Rm(e,t,n,l){switch(ap(t)){case 2:var c=bx;break;case 8:c=Sx;break;default:c=tu}n=c.bind(null,t,n,e),c=void 0,!cr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function qs(e,t,n,l,c){var o=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var x=l.stateNode.containerInfo;if(x===c)break;if(m===4)for(m=l.return;m!==null;){var E=m.tag;if((E===3||E===4)&&m.stateNode.containerInfo===c)return;m=m.return}for(;x!==null;){if(m=Bl(x),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){l=o=m;continue e}x=x.parentNode}}l=l.return}Mf(function(){var H=o,V=ar(n),K=[];e:{var B=rd.get(e);if(B!==void 0){var k=rc,ie=e;switch(e){case"keypress":if(cc(n)===0)break e;case"keydown":case"keyup":k=ky;break;case"focusin":ie="focus",k=ur;break;case"focusout":ie="blur",k=ur;break;case"beforeblur":case"afterblur":k=ur;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Ty;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Vy;break;case ad:case id:case cd:k=Oy;break;case od:k=Gy;break;case"scroll":case"scrollend":k=Ny;break;case"wheel":k=Ky;break;case"copy":case"cut":case"paste":k=_y;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=kf;break;case"toggle":case"beforetoggle":k=Zy}var he=(t&4)!==0,De=!he&&(e==="scroll"||e==="scrollend"),z=he?B!==null?B+"Capture":null:B;he=[];for(var A=H,U;A!==null;){var F=A;if(U=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||U===null||z===null||(F=qa(A,z),F!=null&&he.push(bi(A,F,U))),De)break;A=A.return}0<he.length&&(B=new k(B,ie,null,n,V),K.push({event:B,listeners:he}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",B&&n!==lr&&(ie=n.relatedTarget||n.fromElement)&&(Bl(ie)||ie[Hl]))break e;if((k||B)&&(B=V.window===V?V:(B=V.ownerDocument)?B.defaultView||B.parentWindow:window,k?(ie=n.relatedTarget||n.toElement,k=H,ie=ie?Bl(ie):null,ie!==null&&(De=d(ie),he=ie.tag,ie!==De||he!==5&&he!==27&&he!==6)&&(ie=null)):(k=null,ie=H),k!==ie)){if(he=Hf,F="onMouseLeave",z="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(he=kf,F="onPointerLeave",z="onPointerEnter",A="pointer"),De=k==null?B:Ya(k),U=ie==null?B:Ya(ie),B=new he(F,A+"leave",k,n,V),B.target=De,B.relatedTarget=U,F=null,Bl(V)===H&&(he=new he(z,A+"enter",ie,n,V),he.target=U,he.relatedTarget=De,F=he),De=F,k&&ie)t:{for(he=Q0,z=k,A=ie,U=0,F=z;F;F=he(F))U++;F=0;for(var ue=A;ue;ue=he(ue))F++;for(;0<U-F;)z=he(z),U--;for(;0<F-U;)A=he(A),F--;for(;U--;){if(z===A||A!==null&&z===A.alternate){he=z;break t}z=he(z),A=he(A)}he=null}else he=null;k!==null&&Om(K,B,k,he,!1),ie!==null&&De!==null&&Om(K,De,ie,he,!0)}}e:{if(B=H?Ya(H):window,k=B.nodeName&&B.nodeName.toLowerCase(),k==="select"||k==="input"&&B.type==="file")var Ce=Qf;else if(Ff(B))if(Zf)Ce=a0;else{Ce=n0;var oe=t0}else k=B.nodeName,!k||k.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?H&&nr(H.elementType)&&(Ce=Qf):Ce=l0;if(Ce&&(Ce=Ce(e,H))){Kf(K,Ce,n,V);break e}oe&&oe(e,B,H),e==="focusout"&&H&&B.type==="number"&&H.memoizedProps.value!=null&&tr(B,"number",B.value)}switch(oe=H?Ya(H):window,e){case"focusin":(Ff(oe)||oe.contentEditable==="true")&&(Ql=oe,vr=H,Pa=null);break;case"focusout":Pa=vr=Ql=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,nd(K,n,V);break;case"selectionchange":if(c0)break;case"keydown":case"keyup":nd(K,n,V)}var ye;if(dr)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Kl?Xf(e,n)&&(we="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(we="onCompositionStart");we&&(Yf&&n.locale!=="ko"&&(Kl||we!=="onCompositionStart"?we==="onCompositionEnd"&&Kl&&(ye=Lf()):(Bn=V,or="value"in Bn?Bn.value:Bn.textContent,Kl=!0)),oe=Ic(H,we),0<oe.length&&(we=new Bf(we,e,null,n,V),K.push({event:we,listeners:oe}),ye?we.data=ye:(ye=Gf(n),ye!==null&&(we.data=ye)))),(ye=Jy?Wy(e,n):Iy(e,n))&&(we=Ic(H,"onBeforeInput"),0<we.length&&(oe=new Bf("onBeforeInput","beforeinput",null,n,V),K.push({event:oe,listeners:we}),oe.data=ye)),X0(K,e,H,n,V)}Am(K,t)})}function bi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ic(e,t){for(var n=t+"Capture",l=[];e!==null;){var c=e,o=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||o===null||(c=qa(e,n),c!=null&&l.unshift(bi(e,c,o)),c=qa(e,t),c!=null&&l.push(bi(e,c,o))),e.tag===3)return l;e=e.return}return[]}function Q0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Om(e,t,n,l,c){for(var o=t._reactName,m=[];n!==null&&n!==l;){var x=n,E=x.alternate,H=x.stateNode;if(x=x.tag,E!==null&&E===l)break;x!==5&&x!==26&&x!==27||H===null||(E=H,c?(H=qa(n,o),H!=null&&m.unshift(bi(n,H,E))):c||(H=qa(n,o),H!=null&&m.push(bi(n,H,E)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var Z0=/\r\n?/g,P0=/\u0000|\uFFFD/g;function zm(e){return(typeof e=="string"?e:""+e).replace(Z0,`
9
- `).replace(P0,"")}function _m(e,t){return t=zm(t),zm(e)===t}function _e(e,t,n,l,c,o){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Xl(e,""+l);break;case"className":nc(e,"class",l);break;case"tabIndex":nc(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":nc(e,n,l);break;case"style":_f(e,l,o);break;case"data":if(t!=="object"){nc(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ac(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&_e(e,t,"name",c.name,c,null),_e(e,t,"formEncType",c.formEncType,c,null),_e(e,t,"formMethod",c.formMethod,c,null),_e(e,t,"formTarget",c.formTarget,c,null)):(_e(e,t,"encType",c.encType,c,null),_e(e,t,"method",c.method,c,null),_e(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ac(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=dn);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=n}}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}n=ac(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":be("beforetoggle",e),be("toggle",e),tc(e,"popover",l);break;case"xlinkActuate":fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":fn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":fn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":fn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":fn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":tc(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ey.get(n)||n,tc(e,n,l))}}function Vs(e,t,n,l,c,o){switch(n){case"style":_f(e,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&Xl(e,""+l);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"onClick":l!=null&&(e.onclick=dn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ef.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),o=e[ft]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,c),typeof l=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,c);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):tc(e,n,l)}}}function it(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var l=!1,c=!1,o;for(o in n)if(n.hasOwnProperty(o)){var m=n[o];if(m!=null)switch(o){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:_e(e,t,o,m,n,null)}}c&&_e(e,t,"srcSet",n.srcSet,n,null),l&&_e(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var x=o=m=c=null,E=null,H=null;for(l in n)if(n.hasOwnProperty(l)){var V=n[l];if(V!=null)switch(l){case"name":c=V;break;case"type":m=V;break;case"checked":E=V;break;case"defaultChecked":H=V;break;case"value":o=V;break;case"defaultValue":x=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:_e(e,t,l,V,n,null)}}Af(e,o,x,E,H,m,c,!1);return;case"select":be("invalid",e),l=m=o=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":o=x;break;case"defaultValue":m=x;break;case"multiple":l=x;default:_e(e,t,c,x,n,null)}t=o,n=m,e.multiple=!!l,t!=null?Vl(e,!!l,t,!1):n!=null&&Vl(e,!!l,n,!0);return;case"textarea":be("invalid",e),o=c=l=null;for(m in n)if(n.hasOwnProperty(m)&&(x=n[m],x!=null))switch(m){case"value":l=x;break;case"defaultValue":c=x;break;case"children":o=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(s(91));break;default:_e(e,t,m,x,n,null)}Of(e,l,c,o);return;case"option":for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":_e(e,t,E,l,n,null));return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(l=0;l<xi.length;l++)be(xi[l],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("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(H in n)if(n.hasOwnProperty(H)&&(l=n[H],l!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:_e(e,t,H,l,n,null)}return;default:if(nr(t)){for(V in n)n.hasOwnProperty(V)&&(l=n[V],l!==void 0&&Vs(e,t,V,l,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(l=n[x],l!=null&&_e(e,t,x,l,n,null))}function J0(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,o=null,m=null,x=null,E=null,H=null,V=null;for(k in n){var K=n[k];if(n.hasOwnProperty(k)&&K!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":E=K;default:l.hasOwnProperty(k)||_e(e,t,k,null,l,K)}}for(var B in l){var k=l[B];if(K=n[B],l.hasOwnProperty(B)&&(k!=null||K!=null))switch(B){case"type":o=k;break;case"name":c=k;break;case"checked":H=k;break;case"defaultChecked":V=k;break;case"value":m=k;break;case"defaultValue":x=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:k!==K&&_e(e,t,B,k,l,K)}}er(e,m,x,E,H,V,o,c);return;case"select":k=m=x=B=null;for(o in n)if(E=n[o],n.hasOwnProperty(o)&&E!=null)switch(o){case"value":break;case"multiple":k=E;default:l.hasOwnProperty(o)||_e(e,t,o,null,l,E)}for(c in l)if(o=l[c],E=n[c],l.hasOwnProperty(c)&&(o!=null||E!=null))switch(c){case"value":B=o;break;case"defaultValue":x=o;break;case"multiple":m=o;default:o!==E&&_e(e,t,c,o,l,E)}t=x,n=m,l=k,B!=null?Vl(e,!!n,B,!1):!!l!=!!n&&(t!=null?Vl(e,!!n,t,!0):Vl(e,!!n,n?[]:"",!1));return;case"textarea":k=B=null;for(x in n)if(c=n[x],n.hasOwnProperty(x)&&c!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:_e(e,t,x,null,l,c)}for(m in l)if(c=l[m],o=n[m],l.hasOwnProperty(m)&&(c!=null||o!=null))switch(m){case"value":B=c;break;case"defaultValue":k=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:c!==o&&_e(e,t,m,c,l,o)}Rf(e,B,k);return;case"option":for(var ie in n)B=n[ie],n.hasOwnProperty(ie)&&B!=null&&!l.hasOwnProperty(ie)&&(ie==="selected"?e.selected=!1:_e(e,t,ie,null,l,B));for(E in l)B=l[E],k=n[E],l.hasOwnProperty(E)&&B!==k&&(B!=null||k!=null)&&(E==="selected"?e.selected=B&&typeof B!="function"&&typeof B!="symbol":_e(e,t,E,B,l,k));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 he in n)B=n[he],n.hasOwnProperty(he)&&B!=null&&!l.hasOwnProperty(he)&&_e(e,t,he,null,l,B);for(H in l)if(B=l[H],k=n[H],l.hasOwnProperty(H)&&B!==k&&(B!=null||k!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:_e(e,t,H,B,l,k)}return;default:if(nr(t)){for(var De in n)B=n[De],n.hasOwnProperty(De)&&B!==void 0&&!l.hasOwnProperty(De)&&Vs(e,t,De,void 0,l,B);for(V in l)B=l[V],k=n[V],!l.hasOwnProperty(V)||B===k||B===void 0&&k===void 0||Vs(e,t,V,B,l,k);return}}for(var z in n)B=n[z],n.hasOwnProperty(z)&&B!=null&&!l.hasOwnProperty(z)&&_e(e,t,z,null,l,B);for(K in l)B=l[K],k=n[K],!l.hasOwnProperty(K)||B===k||B==null&&k==null||_e(e,t,K,B,l,k)}function Dm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function W0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var c=n[l],o=c.transferSize,m=c.initiatorType,x=c.duration;if(o&&x&&Dm(m)){for(m=0,x=c.responseEnd,l+=1;l<n.length;l++){var E=n[l],H=E.startTime;if(H>x)break;var V=E.transferSize,K=E.initiatorType;V&&Dm(K)&&(E=E.responseEnd,m+=V*(E<x?1:(x-H)/(E-H)))}if(--l,t+=8*(o+m)/(c.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 Xs=null,Gs=null;function $c(e){return e.nodeType===9?e:e.ownerDocument}function Mm(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 Lm(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 Fs(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 Ks=null;function I0(){var e=window.event;return e&&e.type==="popstate"?e===Ks?!1:(Ks=e,!0):(Ks=null,!1)}var Um=typeof setTimeout=="function"?setTimeout:void 0,$0=typeof clearTimeout=="function"?clearTimeout:void 0,Hm=typeof Promise=="function"?Promise:void 0,ex=typeof queueMicrotask=="function"?queueMicrotask:typeof Hm<"u"?function(e){return Hm.resolve(null).then(e).catch(tx)}:Um;function tx(e){setTimeout(function(){throw e})}function tl(e){return e==="head"}function Bm(e,t){var n=t,l=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(c),ba(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Si(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Si(n);for(var o=n.firstChild;o;){var m=o.nextSibling,x=o.nodeName;o[ka]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=m}}else n==="body"&&Si(e.ownerDocument.body);n=c}while(n);ba(t)}function km(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Qs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Qs(n),Io(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function nx(e,t,n,l){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ka])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function lx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Xt(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=Xt(e.nextSibling),e===null))return null;return e}function Zs(e){return e.data==="$?"||e.data==="$~"}function Ps(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ax(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Xt(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 Js=null;function qm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Xt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Vm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Xm(e,t,n){switch(t=$c(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Si(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Io(e)}var Gt=new Map,Gm=new Set;function eo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var An=L.d;L.d={f:ix,r:cx,D:ox,C:rx,L:sx,m:ux,X:dx,S:fx,M:hx};function ix(){var e=An.f(),t=Fc();return e||t}function cx(e){var t=kl(e);t!==null&&t.tag===5&&t.type==="form"?oh(t):An.r(e)}var ga=typeof document>"u"?null:document;function Fm(e,t,n){var l=ga;if(l&&typeof t=="string"&&t){var c=Ut(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),Gm.has(c)||(Gm.add(c),e={rel:e,crossOrigin:n,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),it(t,"link",e),$e(t),l.head.appendChild(t)))}}function ox(e){An.D(e),Fm("dns-prefetch",e,null)}function rx(e,t){An.C(e,t),Fm("preconnect",e,t)}function sx(e,t,n){An.L(e,t,n);var l=ga;if(l&&e&&t){var c='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Ut(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Ut(n.imageSizes)+'"]')):c+='[href="'+Ut(e)+'"]';var o=c;switch(t){case"style":o=ya(e);break;case"script":o=xa(e)}Gt.has(o)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Gt.set(o,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(wi(o))||t==="script"&&l.querySelector(Ei(o))||(t=l.createElement("link"),it(t,"link",e),$e(t),l.head.appendChild(t)))}}function ux(e,t){An.m(e,t);var n=ga;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',o=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=xa(e)}if(!Gt.has(o)&&(e=b({rel:"modulepreload",href:e},t),Gt.set(o,e),n.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ei(o)))return}l=n.createElement("link"),it(l,"link",e),$e(l),n.head.appendChild(l)}}}function fx(e,t,n){An.S(e,t,n);var l=ga;if(l&&e){var c=Yl(l).hoistableStyles,o=ya(e);t=t||"default";var m=c.get(o);if(!m){var x={loading:0,preload:null};if(m=l.querySelector(wi(o)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Gt.get(o))&&Ws(e,n);var E=m=l.createElement("link");$e(E),it(E,"link",e),E._p=new Promise(function(H,V){E.onload=H,E.onerror=V}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,to(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:x},c.set(o,m)}}}function dx(e,t){An.X(e,t);var n=ga;if(n&&e){var l=Yl(n).hoistableScripts,c=xa(e),o=l.get(c);o||(o=n.querySelector(Ei(c)),o||(e=b({src:e,async:!0},t),(t=Gt.get(c))&&Is(e,t),o=n.createElement("script"),$e(o),it(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(c,o))}}function hx(e,t){An.M(e,t);var n=ga;if(n&&e){var l=Yl(n).hoistableScripts,c=xa(e),o=l.get(c);o||(o=n.querySelector(Ei(c)),o||(e=b({src:e,async:!0,type:"module"},t),(t=Gt.get(c))&&Is(e,t),o=n.createElement("script"),$e(o),it(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(c,o))}}function Km(e,t,n,l){var c=(c=Z.current)?eo(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ya(n.href),n=Yl(c).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ya(n.href);var o=Yl(c).hoistableStyles,m=o.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=c.querySelector(wi(e)))&&!o._p&&(m.instance=o,m.state.loading=5),Gt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Gt.set(e,n),o||mx(c,e,n,m.state))),t&&l===null)throw Error(s(528,""));return m}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xa(n),n=Yl(c).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ya(e){return'href="'+Ut(e)+'"'}function wi(e){return'link[rel="stylesheet"]['+e+"]"}function Qm(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function mx(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),it(t,"link",n),$e(t),e.head.appendChild(t))}function xa(e){return'[src="'+Ut(e)+'"]'}function Ei(e){return"script[async]"+e}function Zm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ut(n.href)+'"]');if(l)return t.instance=l,$e(l),l;var c=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),$e(l),it(l,"style",c),to(l,n.precedence,e),t.instance=l;case"stylesheet":c=ya(n.href);var o=e.querySelector(wi(c));if(o)return t.state.loading|=4,t.instance=o,$e(o),o;l=Qm(n),(c=Gt.get(c))&&Ws(l,c),o=(e.ownerDocument||e).createElement("link"),$e(o);var m=o;return m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),it(o,"link",l),t.state.loading|=4,to(o,n.precedence,e),t.instance=o;case"script":return o=xa(n.src),(c=e.querySelector(Ei(o)))?(t.instance=c,$e(c),c):(l=n,(c=Gt.get(o))&&(l=b({},n),Is(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),$e(c),it(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,to(l,n.precedence,e));return t.instance}function to(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,o=c,m=0;m<l.length;m++){var x=l[m];if(x.dataset.precedence===t)o=x;else if(o!==c)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ws(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var no=null;function Pm(e,t,n){if(no===null){var l=new Map,c=no=new Map;c.set(n,l)}else c=no,l=c.get(n),l||(l=new Map,c.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var o=n[c];if(!(o[ka]||o[tt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(t)||"";m=e+m;var x=l.get(m);x?x.push(o):l.set(m,[o])}}return l}function Jm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function px(e,t,n){if(n===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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 Wm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function vx(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=ya(l.href),o=t.querySelector(wi(c));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,$e(o);return}o=t.ownerDocument||t,l=Qm(l),(c=Gt.get(c))&&Ws(l,c),o=o.createElement("link"),$e(o);var m=o;m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),it(o,"link",l),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=lo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var $s=0;function gx(e,t){return e.stylesheets&&e.count===0&&io(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&io(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&$s===0&&($s=62500*W0());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&io(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>$s?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function lo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)io(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ao=null;function io(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ao=new Map,t.forEach(yx,e),ao=null,lo.call(e))}function yx(e,t){if(!(t.state.loading&4)){var n=ao.get(e);if(n)var l=n.get(null);else{n=new Map,ao.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<c.length;o++){var m=c[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),l=m)}l&&n.set(null,l)}c=t.instance,m=c.getAttribute("data-precedence"),o=n.get(m)||l,o===l&&n.set(null,c),n.set(m,c),this.count++,l=lo.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),o?o.parentNode.insertBefore(c,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Ci={$$typeof:M,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function xx(e,t,n,l,c,o,m,x,E){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=Zo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zo(0),this.hiddenUpdates=Zo(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Im(e,t,n,l,c,o,m,x,E,H,V,K){return e=new xx(e,t,n,m,E,H,V,K,x),t=1,o===!0&&(t|=24),o=Et(3,null,null,t),e.current=o,o.stateNode=e,t=_r(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:t},Ur(o),e}function $m(e){return e?(e=Jl,e):Jl}function ep(e,t,n,l,c,o){c=$m(c),l.context===null?l.context=c:l.pendingContext=c,l=Gn(t),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Fn(e,l,t),n!==null&&(gt(n,e,t),ni(n,e,t))}function tp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function eu(e,t){tp(e,t),(e=e.alternate)&&tp(e,t)}function np(e){if(e.tag===13||e.tag===31){var t=bl(e,67108864);t!==null&&gt(t,e,67108864),eu(e,67108864)}}function lp(e){if(e.tag===13||e.tag===31){var t=At();t=Po(t);var n=bl(e,t);n!==null&&gt(n,e,t),eu(e,t)}}var co=!0;function bx(e,t,n,l){var c=_.T;_.T=null;var o=L.p;try{L.p=2,tu(e,t,n,l)}finally{L.p=o,_.T=c}}function Sx(e,t,n,l){var c=_.T;_.T=null;var o=L.p;try{L.p=8,tu(e,t,n,l)}finally{L.p=o,_.T=c}}function tu(e,t,n,l){if(co){var c=nu(l);if(c===null)qs(e,t,l,oo,n),ip(e,l);else if(Ex(c,e,t,n,l))l.stopPropagation();else if(ip(e,l),t&4&&-1<wx.indexOf(e)){for(;c!==null;){var o=kl(c);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=pl(o.pendingLanes);if(m!==0){var x=o;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var E=1<<31-St(m);x.entanglements[1]|=E,m&=~E}nn(o),(Te&6)===0&&(Xc=xt()+500,yi(0))}}break;case 31:case 13:x=bl(o,2),x!==null&&gt(x,o,2),Fc(),eu(o,2)}if(o=nu(l),o===null&&qs(e,t,l,oo,n),o===c)break;c=o}c!==null&&l.stopPropagation()}else qs(e,t,l,null,n)}}function nu(e){return e=ar(e),lu(e)}var oo=null;function lu(e){if(oo=null,e=Bl(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return oo=e,null}function ap(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(oy()){case df:return 2;case hf:return 8;case Ji:case ry:return 32;case mf:return 268435456;default:return 32}default:return 32}}var au=!1,nl=null,ll=null,al=null,Ni=new Map,ji=new Map,il=[],wx="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 ip(e,t){switch(e){case"focusin":case"focusout":nl=null;break;case"dragenter":case"dragleave":ll=null;break;case"mouseover":case"mouseout":al=null;break;case"pointerover":case"pointerout":Ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ji.delete(t.pointerId)}}function Ti(e,t,n,l,c,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[c]},t!==null&&(t=kl(t),t!==null&&np(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Ex(e,t,n,l,c){switch(t){case"focusin":return nl=Ti(nl,e,t,n,l,c),!0;case"dragenter":return ll=Ti(ll,e,t,n,l,c),!0;case"mouseover":return al=Ti(al,e,t,n,l,c),!0;case"pointerover":var o=c.pointerId;return Ni.set(o,Ti(Ni.get(o)||null,e,t,n,l,c)),!0;case"gotpointercapture":return o=c.pointerId,ji.set(o,Ti(ji.get(o)||null,e,t,n,l,c)),!0}return!1}function cp(e){var t=Bl(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,bf(e.priority,function(){lp(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,bf(e.priority,function(){lp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ro(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=nu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);lr=l,n.target.dispatchEvent(l),lr=null}else return t=kl(n),t!==null&&np(t),e.blockedOn=n,!1;t.shift()}return!0}function op(e,t,n){ro(e)&&n.delete(t)}function Cx(){au=!1,nl!==null&&ro(nl)&&(nl=null),ll!==null&&ro(ll)&&(ll=null),al!==null&&ro(al)&&(al=null),Ni.forEach(op),ji.forEach(op)}function so(e,t){e.blockedOn===t&&(e.blockedOn=null,au||(au=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Cx)))}var uo=null;function rp(e){uo!==e&&(uo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){uo===e&&(uo=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(lu(l||n)===null)continue;break}var o=kl(n);o!==null&&(e.splice(t,3),t-=3,ns(o,{pending:!0,data:c,method:n.method,action:l},l,c))}}))}function ba(e){function t(E){return so(E,e)}nl!==null&&so(nl,e),ll!==null&&so(ll,e),al!==null&&so(al,e),Ni.forEach(t),ji.forEach(t);for(var n=0;n<il.length;n++){var l=il[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<il.length&&(n=il[0],n.blockedOn===null);)cp(n),n.blockedOn===null&&il.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var c=n[l],o=n[l+1],m=c[ft]||null;if(typeof o=="function")m||rp(n);else if(m){var x=null;if(o&&o.hasAttribute("formAction")){if(c=o,m=o[ft]||null)x=m.formAction;else if(lu(c)!==null)continue}else x=m.action;typeof x=="function"?n[l+1]=x:(n.splice(l,3),l-=3),rp(n)}}}function sp(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(m){return c=m})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function iu(e){this._internalRoot=e}fo.prototype.render=iu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=At();ep(n,l,e,t,null,null)},fo.prototype.unmount=iu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ep(e.current,2,null,e,null,null),Fc(),t[Hl]=null}};function fo(e){this._internalRoot=e}fo.prototype.unstable_scheduleHydration=function(e){if(e){var t=xf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<il.length&&t!==0&&t<il[n].priority;n++);il.splice(n,0,e),n===0&&cp(e)}};var up=i.version;if(up!=="19.2.3")throw Error(s(527,up,"19.2.3"));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var Nx={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ho.isDisabled&&ho.supportsFiber)try{Ua=ho.inject(Nx),bt=ho}catch{}}return Ri.createRoot=function(e,t){if(!f(e))throw Error(s(299));var n=!1,l="",c=gh,o=yh,m=xh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Im(e,1,!1,null,null,n,l,null,c,o,m,sp),e[Hl]=t.current,Ys(e),new iu(t)},Ri.hydrateRoot=function(e,t,n){if(!f(e))throw Error(s(299));var l=!1,c="",o=gh,m=yh,x=xh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=Im(e,1,!0,t,n??null,l,c,E,o,m,x,sp),t.context=$m(null),n=t.current,l=At(),l=Po(l),c=Gn(l),c.callback=null,Fn(n,c,l),n=l,t.current.lanes=n,Ba(t,n),nn(t),e[Hl]=t.current,Ys(e),new fo(t)},Ri.version="19.2.3",Ri}var bp;function Lx(){if(bp)return ru.exports;bp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ru.exports=Mx(),ru.exports}var Ux=Lx();var Sp="popstate";function Hx(a={}){function i(s,f){let{pathname:d,search:h,hash:p}=s.location;return Au("",{pathname:d,search:h,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function r(s,f){return typeof f=="string"?f:Yi(f)}return kx(i,r,null,a)}function ke(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Dt(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Bx(){return Math.random().toString(36).substring(2,10)}function wp(a,i){return{usr:a.state,key:a.key,idx:i}}function Au(a,i,r=null,s){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Ra(i):i,state:r,key:i&&i.key||s||Bx()}}function Yi({pathname:a="/",search:i="",hash:r=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(a+=r.charAt(0)==="#"?r:"#"+r),a}function Ra(a){let i={};if(a){let r=a.indexOf("#");r>=0&&(i.hash=a.substring(r),a=a.substring(0,r));let s=a.indexOf("?");s>=0&&(i.search=a.substring(s),a=a.substring(0,s)),a&&(i.pathname=a)}return i}function kx(a,i,r,s={}){let{window:f=document.defaultView,v5Compat:d=!1}=s,h=f.history,p="POP",v=null,y=S();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function S(){return(h.state||{idx:null}).idx}function b(){p="POP";let j=S(),R=j==null?null:j-y;y=j,v&&v({action:p,location:w.location,delta:R})}function C(j,R){p="PUSH";let O=Au(w.location,j,R);y=S()+1;let M=wp(O,y),q=w.createHref(O);try{h.pushState(M,"",q)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;f.location.assign(q)}d&&v&&v({action:p,location:w.location,delta:1})}function N(j,R){p="REPLACE";let O=Au(w.location,j,R);y=S();let M=wp(O,y),q=w.createHref(O);h.replaceState(M,"",q),d&&v&&v({action:p,location:w.location,delta:0})}function D(j){return Yx(j)}let w={get action(){return p},get location(){return a(f,h)},listen(j){if(v)throw new Error("A history only accepts one active listener");return f.addEventListener(Sp,b),v=j,()=>{f.removeEventListener(Sp,b),v=null}},createHref(j){return i(f,j)},createURL:D,encodeLocation(j){let R=D(j);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:C,replace:N,go(j){return h.go(j)}};return w}function Yx(a,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),ke(r,"No window.location.(origin|href) available to create URL");let s=typeof a=="string"?a:Yi(a);return s=s.replace(/ $/,"%20"),!i&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function hv(a,i,r="/"){return qx(a,i,r,!1)}function qx(a,i,r,s){let f=typeof i=="string"?Ra(i):i,d=zn(f.pathname||"/",r);if(d==null)return null;let h=mv(a);Vx(h);let p=null;for(let v=0;p==null&&v<h.length;++v){let y=$x(d);p=Wx(h[v],y,s)}return p}function mv(a,i=[],r=[],s="",f=!1){let d=(h,p,v=f,y)=>{let S={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(s)&&v)return;ke(S.relativePath.startsWith(s),`Absolute route path "${S.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(s.length)}let b=On([s,S.relativePath]),C=r.concat(S);h.children&&h.children.length>0&&(ke(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),mv(h.children,i,C,b,v)),!(h.path==null&&!h.index)&&i.push({path:b,score:Px(b,h.index),routesMeta:C})};return a.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))d(h,p);else for(let v of pv(h.path))d(h,p,!0,v)}),i}function pv(a){let i=a.split("/");if(i.length===0)return[];let[r,...s]=i,f=r.endsWith("?"),d=r.replace(/\?$/,"");if(s.length===0)return f?[d,""]:[d];let h=pv(s.join("/")),p=[];return p.push(...h.map(v=>v===""?d:[d,v].join("/"))),f&&p.push(...h),p.map(v=>a.startsWith("/")&&v===""?"/":v)}function Vx(a){a.sort((i,r)=>i.score!==r.score?r.score-i.score:Jx(i.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var Xx=/^:[\w-]+$/,Gx=3,Fx=2,Kx=1,Qx=10,Zx=-2,Ep=a=>a==="*";function Px(a,i){let r=a.split("/"),s=r.length;return r.some(Ep)&&(s+=Zx),i&&(s+=Fx),r.filter(f=>!Ep(f)).reduce((f,d)=>f+(Xx.test(d)?Gx:d===""?Kx:Qx),s)}function Jx(a,i){return a.length===i.length&&a.slice(0,-1).every((s,f)=>s===i[f])?a[a.length-1]-i[i.length-1]:0}function Wx(a,i,r=!1){let{routesMeta:s}=a,f={},d="/",h=[];for(let p=0;p<s.length;++p){let v=s[p],y=p===s.length-1,S=d==="/"?i:i.slice(d.length)||"/",b=Ao({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},S),C=v.route;if(!b&&y&&r&&!s[s.length-1].route.index&&(b=Ao({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},S)),!b)return null;Object.assign(f,b.params),h.push({params:f,pathname:On([d,b.pathname]),pathnameBase:lb(On([d,b.pathnameBase])),route:C}),b.pathnameBase!=="/"&&(d=On([d,b.pathnameBase]))}return h}function Ao(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[r,s]=Ix(a.path,a.caseSensitive,a.end),f=i.match(r);if(!f)return null;let d=f[0],h=d.replace(/(.)\/+$/,"$1"),p=f.slice(1);return{params:s.reduce((y,{paramName:S,isOptional:b},C)=>{if(S==="*"){let D=p[C]||"";h=d.slice(0,d.length-D.length).replace(/(.)\/+$/,"$1")}const N=p[C];return b&&!N?y[S]=void 0:y[S]=(N||"").replace(/%2F/g,"/"),y},{}),pathname:d,pathnameBase:h,pattern:a}}function Ix(a,i=!1,r=!0){Dt(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let s=[],f="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,v)=>(s.push({paramName:p,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(s.push({paramName:"*"}),f+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?f+="\\/*$":a!==""&&a!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),s]}function $x(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Dt(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function zn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,s=a.charAt(r);return s&&s!=="/"?null:a.slice(r)||"/"}var vv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eb=a=>vv.test(a);function tb(a,i="/"){let{pathname:r,search:s="",hash:f=""}=typeof a=="string"?Ra(a):a,d;if(r)if(eb(r))d=r;else{if(r.includes("//")){let h=r;r=r.replace(/\/\/+/g,"/"),Dt(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${r}`)}r.startsWith("/")?d=Cp(r.substring(1),"/"):d=Cp(r,i)}else d=i;return{pathname:d,search:ab(s),hash:ib(f)}}function Cp(a,i){let r=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(f=>{f===".."?r.length>1&&r.pop():f!=="."&&r.push(f)}),r.length>1?r.join("/"):"/"}function du(a,i,r,s){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function nb(a){return a.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Ku(a){let i=nb(a);return i.map((r,s)=>s===i.length-1?r.pathname:r.pathnameBase)}function Qu(a,i,r,s=!1){let f;typeof a=="string"?f=Ra(a):(f={...a},ke(!f.pathname||!f.pathname.includes("?"),du("?","pathname","search",f)),ke(!f.pathname||!f.pathname.includes("#"),du("#","pathname","hash",f)),ke(!f.search||!f.search.includes("#"),du("#","search","hash",f)));let d=a===""||f.pathname==="",h=d?"/":f.pathname,p;if(h==null)p=r;else{let b=i.length-1;if(!s&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),b-=1;f.pathname=C.join("/")}p=b>=0?i[b]:"/"}let v=tb(f,p),y=h&&h!=="/"&&h.endsWith("/"),S=(d||h===".")&&r.endsWith("/");return!v.pathname.endsWith("/")&&(y||S)&&(v.pathname+="/"),v}var On=a=>a.join("/").replace(/\/\/+/g,"/"),lb=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),ab=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,ib=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,cb=class{constructor(a,i,r,s=!1){this.status=a,this.statusText=i||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function ob(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function rb(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yv(a,i){let r=a;if(typeof r!="string"||!vv.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,f=!1;if(gv)try{let d=new URL(window.location.href),h=r.startsWith("//")?new URL(d.protocol+r):new URL(r),p=zn(h.pathname,i);h.origin===d.origin&&p!=null?r=p+h.search+h.hash:f=!0}catch{Dt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:f,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var xv=["POST","PUT","PATCH","DELETE"];new Set(xv);var sb=["GET",...xv];new Set(sb);var Oa=g.createContext(null);Oa.displayName="DataRouter";var Lo=g.createContext(null);Lo.displayName="DataRouterState";var ub=g.createContext(!1),bv=g.createContext({isTransitioning:!1});bv.displayName="ViewTransition";var fb=g.createContext(new Map);fb.displayName="Fetchers";var db=g.createContext(null);db.displayName="Await";var Mt=g.createContext(null);Mt.displayName="Navigation";var Gi=g.createContext(null);Gi.displayName="Location";var rn=g.createContext({outlet:null,matches:[],isDataRoute:!1});rn.displayName="Route";var Zu=g.createContext(null);Zu.displayName="RouteError";var Sv="REACT_ROUTER_ERROR",hb="REDIRECT",mb="ROUTE_ERROR_RESPONSE";function pb(a){if(a.startsWith(`${Sv}:${hb}:{`))try{let i=JSON.parse(a.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function vb(a){if(a.startsWith(`${Sv}:${mb}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new cb(i.status,i.statusText,i.data)}catch{}}function gb(a,{relative:i}={}){ke(za(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=g.useContext(Mt),{hash:f,pathname:d,search:h}=Fi(a,{relative:i}),p=d;return r!=="/"&&(p=d==="/"?r:On([r,d])),s.createHref({pathname:p,search:h,hash:f})}function za(){return g.useContext(Gi)!=null}function sn(){return ke(za(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Gi).location}var wv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ev(a){g.useContext(Mt).static||g.useLayoutEffect(a)}function Ln(){let{isDataRoute:a}=g.useContext(rn);return a?Ob():yb()}function yb(){ke(za(),"useNavigate() may be used only in the context of a <Router> component.");let a=g.useContext(Oa),{basename:i,navigator:r}=g.useContext(Mt),{matches:s}=g.useContext(rn),{pathname:f}=sn(),d=JSON.stringify(Ku(s)),h=g.useRef(!1);return Ev(()=>{h.current=!0}),g.useCallback((v,y={})=>{if(Dt(h.current,wv),!h.current)return;if(typeof v=="number"){r.go(v);return}let S=Qu(v,JSON.parse(d),f,y.relative==="path");a==null&&i!=="/"&&(S.pathname=S.pathname==="/"?i:On([i,S.pathname])),(y.replace?r.replace:r.push)(S,y.state,y)},[i,r,d,f,a])}g.createContext(null);function Fi(a,{relative:i}={}){let{matches:r}=g.useContext(rn),{pathname:s}=sn(),f=JSON.stringify(Ku(r));return g.useMemo(()=>Qu(a,JSON.parse(f),s,i==="path"),[a,f,s,i])}function xb(a,i){return Cv(a,i)}function Cv(a,i,r,s,f){ke(za(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=g.useContext(Mt),{matches:h}=g.useContext(rn),p=h[h.length-1],v=p?p.params:{},y=p?p.pathname:"/",S=p?p.pathnameBase:"/",b=p&&p.route;{let O=b&&b.path||"";jv(y,!b||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${O}">) 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.
8
+ `+l.stack}}var Ko=Object.prototype.hasOwnProperty,Qo=a.unstable_scheduleCallback,Zo=a.unstable_cancelCallback,cy=a.unstable_shouldYield,oy=a.unstable_requestPaint,xt=a.unstable_now,ry=a.unstable_getCurrentPriorityLevel,hf=a.unstable_ImmediatePriority,mf=a.unstable_UserBlockingPriority,Zi=a.unstable_NormalPriority,sy=a.unstable_LowPriority,pf=a.unstable_IdlePriority,uy=a.log,fy=a.unstable_setDisableYieldValue,Ua=null,bt=null;function Hn(e){if(typeof uy=="function"&&fy(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(Ua,e)}catch{}}var St=Math.clz32?Math.clz32:my,dy=Math.log,hy=Math.LN2;function my(e){return e>>>=0,e===0?32:31-(dy(e)/hy|0)|0}var Pi=256,Ji=262144,Wi=4194304;function pl(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 $i(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var c=0,r=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~r,l!==0?c=pl(l):(m&=x,m!==0?c=pl(m):n||(n=x&~e,n!==0&&(c=pl(n))))):(x=l&~r,x!==0?c=pl(x):m!==0?c=pl(m):n||(n=l&~e,n!==0&&(c=pl(n)))),c===0?0:t!==0&&t!==c&&(t&r)===0&&(r=c&-c,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:c}function Ha(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function py(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 vf(){var e=Wi;return Wi<<=1,(Wi&62914560)===0&&(Wi=4194304),e}function Po(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ba(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vy(e,t,n,l,c,r){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,E=e.expirationTimes,H=e.hiddenUpdates;for(n=m&~n;0<n;){var X=31-St(n),Q=1<<X;x[X]=0,E[X]=-1;var B=H[X];if(B!==null)for(H[X]=null,X=0;X<B.length;X++){var k=B[X];k!==null&&(k.lane&=-536870913)}n&=~Q}l!==0&&gf(e,l,0),r!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=r&~(m&~t))}function gf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-St(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function yf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-St(n),c=1<<l;c&t|e[l]&t&&(e[l]|=t),n&=~c}}function xf(e,t){var n=t&-t;return n=(n&42)!==0?1:Jo(n),(n&(e.suspendedLanes|t))!==0?0:n}function Jo(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 Wo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function bf(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:ip(e.type))}function Sf(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var Bn=Math.random().toString(36).slice(2),tt="__reactFiber$"+Bn,ft="__reactProps$"+Bn,Hl="__reactContainer$"+Bn,$o="__reactEvents$"+Bn,gy="__reactListeners$"+Bn,yy="__reactHandles$"+Bn,wf="__reactResources$"+Bn,ka="__reactMarker$"+Bn;function Io(e){delete e[tt],delete e[ft],delete e[$o],delete e[gy],delete e[yy]}function Bl(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hl]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xm(e);e!==null;){if(n=e[tt])return n;e=Xm(e)}return t}e=n,n=e.parentNode}return null}function kl(e){if(e=e[tt]||e[Hl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ya(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Yl(e){var t=e[wf];return t||(t=e[wf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[ka]=!0}var Ef=new Set,Cf={};function vl(e,t){ql(e,t),ql(e+"Capture",t)}function ql(e,t){for(Cf[e]=t,e=0;e<t.length;e++)Ef.add(t[e])}var xy=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]*$"),Nf={},jf={};function by(e){return Ko.call(jf,e)?!0:Ko.call(Nf,e)?!1:xy.test(e)?jf[e]=!0:(Nf[e]=!0,!1)}function Ii(e,t,n){if(by(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function ec(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function fn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Lt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sy(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,r=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){n=""+m,r.call(this,m)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function er(e){if(!e._valueTracker){var t=Tf(e)?"checked":"value";e._valueTracker=Sy(e,t,""+e[t])}}function Af(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Tf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function tc(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 wy=/[\n"\\]/g;function Ut(e){return e.replace(wy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function tr(e,t,n,l,c,r,m,x){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Lt(t)):e.value!==""+Lt(t)&&(e.value=""+Lt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?nr(e,m,Lt(t)):n!=null?nr(e,m,Lt(n)):l!=null&&e.removeAttribute("value"),c==null&&r!=null&&(e.defaultChecked=!!r),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Lt(x):e.removeAttribute("name")}function Rf(e,t,n,l,c,r,m,x){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){er(e);return}n=n!=null?""+Lt(n):"",t=t!=null?""+Lt(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),er(e)}function nr(e,t,n){t==="number"&&tc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Vl(e,t,n,l){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Lt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function zf(e,t,n){if(t!=null&&(t=""+Lt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Lt(n):""}function Of(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(re(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Lt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),er(e)}function Xl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ey=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 _f(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Ey.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Df(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&n[c]!==l&&_f(e,c,l)}else for(var r in t)t.hasOwnProperty(r)&&_f(e,r,t[r])}function lr(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 Cy=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"]]),Ny=/^[\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 nc(e){return Ny.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dn(){}var ar=null;function ir(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gl=null,Fl=null;function Mf(e){var t=kl(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(tr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ut(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var c=l[ft]||null;if(!c)throw Error(s(90));tr(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Af(l)}break e;case"textarea":zf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Vl(e,!!n.multiple,t,!1)}}}var cr=!1;function Lf(e,t,n){if(cr)return e(t,n);cr=!0;try{var l=e(t);return l}finally{if(cr=!1,(Gl!==null||Fl!==null)&&(Xc(),Gl&&(t=Gl,e=Fl,Fl=Gl=null,Mf(t),e)))for(t=0;t<e.length;t++)Mf(e[t])}}function qa(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ft]||null;if(l===null)return null;n=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(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),or=!1;if(hn)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){or=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{or=!1}var kn=null,rr=null,lc=null;function Uf(){if(lc)return lc;var e,t=rr,n=t.length,l,c="value"in kn?kn.value:kn.textContent,r=c.length;for(e=0;e<n&&t[e]===c[e];e++);var m=n-e;for(l=1;l<=m&&t[n-l]===c[r-l];l++);return lc=c.slice(e,1<l?1-l:void 0)}function ac(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 ic(){return!0}function Hf(){return!1}function dt(e){function t(n,l,c,r,m){this._reactName=n,this._targetInst=c,this.type=l,this.nativeEvent=r,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(r):r[x]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ic:Hf,this.isPropagationStopped=Hf,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ic)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ic)},persist:function(){},isPersistent:ic}),t}var gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cc=dt(gl),Xa=b({},gl,{view:0,detail:0}),jy=dt(Xa),sr,ur,Ga,oc=b({},Xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dr,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!==Ga&&(Ga&&e.type==="mousemove"?(sr=e.screenX-Ga.screenX,ur=e.screenY-Ga.screenY):ur=sr=0,Ga=e),sr)},movementY:function(e){return"movementY"in e?e.movementY:ur}}),Bf=dt(oc),Ty=b({},oc,{dataTransfer:0}),Ay=dt(Ty),Ry=b({},Xa,{relatedTarget:0}),fr=dt(Ry),zy=b({},gl,{animationName:0,elapsedTime:0,pseudoElement:0}),Oy=dt(zy),_y=b({},gl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dy=dt(_y),My=b({},gl,{data:0}),kf=dt(My),Ly={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Uy={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"},Hy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function By(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hy[e])?!!t[e]:!1}function dr(){return By}var ky=b({},Xa,{key:function(e){if(e.key){var t=Ly[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ac(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Uy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dr,charCode:function(e){return e.type==="keypress"?ac(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ac(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yy=dt(ky),qy=b({},oc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yf=dt(qy),Vy=b({},Xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dr}),Xy=dt(Vy),Gy=b({},gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fy=dt(Gy),Ky=b({},oc,{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}),Qy=dt(Ky),Zy=b({},gl,{newState:0,oldState:0}),Py=dt(Zy),Jy=[9,13,27,32],hr=hn&&"CompositionEvent"in window,Fa=null;hn&&"documentMode"in document&&(Fa=document.documentMode);var Wy=hn&&"TextEvent"in window&&!Fa,qf=hn&&(!hr||Fa&&8<Fa&&11>=Fa),Vf=" ",Xf=!1;function Gf(e,t){switch(e){case"keyup":return Jy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kl=!1;function $y(e,t){switch(e){case"compositionend":return Ff(t);case"keypress":return t.which!==32?null:(Xf=!0,Vf);case"textInput":return e=t.data,e===Vf&&Xf?null:e;default:return null}}function Iy(e,t){if(Kl)return e==="compositionend"||!hr&&Gf(e,t)?(e=Uf(),lc=rr=kn=null,Kl=!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 qf&&t.locale!=="ko"?null:t.data;default:return null}}var e0={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 Kf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!e0[e.type]:t==="textarea"}function Qf(e,t,n,l){Gl?Fl?Fl.push(l):Fl=[l]:Gl=l,t=Jc(t,"onChange"),0<t.length&&(n=new cc("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ka=null,Qa=null;function t0(e){Rm(e,0)}function rc(e){var t=Ya(e);if(Af(t))return e}function Zf(e,t){if(e==="change")return t}var Pf=!1;if(hn){var mr;if(hn){var pr="oninput"in document;if(!pr){var Jf=document.createElement("div");Jf.setAttribute("oninput","return;"),pr=typeof Jf.oninput=="function"}mr=pr}else mr=!1;Pf=mr&&(!document.documentMode||9<document.documentMode)}function Wf(){Ka&&(Ka.detachEvent("onpropertychange",$f),Qa=Ka=null)}function $f(e){if(e.propertyName==="value"&&rc(Qa)){var t=[];Qf(t,Qa,e,ir(e)),Lf(t0,t)}}function n0(e,t,n){e==="focusin"?(Wf(),Ka=t,Qa=n,Ka.attachEvent("onpropertychange",$f)):e==="focusout"&&Wf()}function l0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return rc(Qa)}function a0(e,t){if(e==="click")return rc(t)}function i0(e,t){if(e==="input"||e==="change")return rc(t)}function c0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:c0;function Za(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var c=n[l];if(!Ko.call(t,c)||!wt(e[c],t[c]))return!1}return!0}function If(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ed(e,t){var n=If(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=If(n)}}function td(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?td(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=tc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=tc(e.document)}return t}function vr(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 o0=hn&&"documentMode"in document&&11>=document.documentMode,Ql=null,gr=null,Pa=null,yr=!1;function ld(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yr||Ql==null||Ql!==tc(l)||(l=Ql,"selectionStart"in l&&vr(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}),Pa&&Za(Pa,l)||(Pa=l,l=Jc(gr,"onSelect"),0<l.length&&(t=new cc("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Ql)))}function yl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zl={animationend:yl("Animation","AnimationEnd"),animationiteration:yl("Animation","AnimationIteration"),animationstart:yl("Animation","AnimationStart"),transitionrun:yl("Transition","TransitionRun"),transitionstart:yl("Transition","TransitionStart"),transitioncancel:yl("Transition","TransitionCancel"),transitionend:yl("Transition","TransitionEnd")},xr={},ad={};hn&&(ad=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function xl(e){if(xr[e])return xr[e];if(!Zl[e])return e;var t=Zl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ad)return xr[e]=t[n];return e}var id=xl("animationend"),cd=xl("animationiteration"),od=xl("animationstart"),r0=xl("transitionrun"),s0=xl("transitionstart"),u0=xl("transitioncancel"),rd=xl("transitionend"),sd=new Map,br="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(" ");br.push("scrollEnd");function Ft(e,t){sd.set(e,t),vl(t,[e])}var sc=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)},Ht=[],Pl=0,Sr=0;function uc(){for(var e=Pl,t=Sr=Pl=0;t<e;){var n=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var c=Ht[t];Ht[t++]=null;var r=Ht[t];if(Ht[t++]=null,l!==null&&c!==null){var m=l.pending;m===null?c.next=c:(c.next=m.next,m.next=c),l.pending=c}r!==0&&ud(n,c,r)}}function fc(e,t,n,l){Ht[Pl++]=e,Ht[Pl++]=t,Ht[Pl++]=n,Ht[Pl++]=l,Sr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function wr(e,t,n,l){return fc(e,t,n,l),dc(e)}function bl(e,t){return fc(e,null,null,t),dc(e)}function ud(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var c=!1,r=e.return;r!==null;)r.childLanes|=n,l=r.alternate,l!==null&&(l.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(c=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,c&&t!==null&&(c=31-St(n),e=r.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=n|536870912),r):null}function dc(e){if(50<gi)throw gi=0,Os=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Jl={};function f0(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=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 Et(e,t,n,l){return new f0(e,t,n,l)}function Er(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mn(e,t){var n=e.alternate;return n===null?(n=Et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function fd(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function hc(e,t,n,l,c,r){var m=0;if(l=e,typeof e=="function")Er(e)&&(m=1);else if(typeof e=="string")m=vx(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=Et(31,n,t,c),e.elementType=ne,e.lanes=r,e;case w:return Sl(n.children,c,r,t);case j:m=8,c|=24;break;case z:return e=Et(12,n,t,c|2),e.elementType=z,e.lanes=r,e;case Z:return e=Et(13,n,t,c),e.elementType=Z,e.lanes=r,e;case J:return e=Et(19,n,t,c),e.elementType=J,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:m=10;break e;case R:m=9;break e;case Y:m=11;break e;case q:m=14;break e;case W:m=16,l=null;break e}m=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Et(m,n,t,c),t.elementType=e,t.type=l,t.lanes=r,t}function Sl(e,t,n,l){return e=Et(7,e,l,t),e.lanes=n,e}function Cr(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function dd(e){var t=Et(18,null,null,0);return t.stateNode=e,t}function Nr(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var hd=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var n=hd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:df(t)},hd.set(e,t),t)}return{value:e,source:t,stack:df(t)}}var Wl=[],$l=0,mc=null,Ja=0,kt=[],Yt=0,Yn=null,It=1,en="";function pn(e,t){Wl[$l++]=Ja,Wl[$l++]=mc,mc=e,Ja=t}function md(e,t,n){kt[Yt++]=It,kt[Yt++]=en,kt[Yt++]=Yn,Yn=e;var l=It;e=en;var c=32-St(l)-1;l&=~(1<<c),n+=1;var r=32-St(t)+c;if(30<r){var m=c-c%5;r=(l&(1<<m)-1).toString(32),l>>=m,c-=m,It=1<<32-St(t)+c|n<<c|l,en=r+e}else It=1<<r|n<<c|l,en=e}function jr(e){e.return!==null&&(pn(e,1),md(e,1,0))}function Tr(e){for(;e===mc;)mc=Wl[--$l],Wl[$l]=null,Ja=Wl[--$l],Wl[$l]=null;for(;e===Yn;)Yn=kt[--Yt],kt[Yt]=null,en=kt[--Yt],kt[Yt]=null,It=kt[--Yt],kt[Yt]=null}function pd(e,t){kt[Yt++]=It,kt[Yt++]=en,kt[Yt++]=Yn,It=t.id,en=t.overflow,Yn=e}var nt=null,Le=null,Ce=!1,qn=null,qt=!1,Ar=Error(s(519));function Vn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wa(Bt(t,e)),Ar}function vd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[tt]=e,t[ft]=l,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<xi.length;n++)be(xi[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Rf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Of(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Dm(t.textContent,n)?(l.popover!=null&&(be("beforetoggle",t),be("toggle",t)),l.onScroll!=null&&be("scroll",t),l.onScrollEnd!=null&&be("scrollend",t),l.onClick!=null&&(t.onclick=dn),t=!0):t=!1,t||Vn(e,!0)}function gd(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:qt=!1;return;case 27:case 3:qt=!0;return;default:nt=nt.return}}function Il(e){if(e!==nt)return!1;if(!Ce)return gd(e),Ce=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ks(e.type,e.memoizedProps)),n=!n),n&&Le&&Vn(e),gd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Le=Vm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Le=Vm(e)}else t===27?(t=Le,nl(e.type)?(e=Ws,Ws=null,Le=e):Le=t):Le=nt?Xt(e.stateNode.nextSibling):null;return!0}function wl(){Le=nt=null,Ce=!1}function Rr(){var e=qn;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),qn=null),e}function Wa(e){qn===null?qn=[e]:qn.push(e)}var zr=T(null),El=null,vn=null;function Xn(e,t,n){$(zr,t._currentValue),t._currentValue=n}function gn(e){e._currentValue=zr.current,G(zr)}function Or(e,t,n){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===n)break;e=e.return}}function _r(e,t,n,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var r=c.dependencies;if(r!==null){var m=c.child;r=r.firstContext;e:for(;r!==null;){var x=r;r=c;for(var E=0;E<t.length;E++)if(x.context===t[E]){r.lanes|=n,x=r.alternate,x!==null&&(x.lanes|=n),Or(r.return,n,e),l||(m=null);break e}r=x.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(s(341));m.lanes|=n,r=m.alternate,r!==null&&(r.lanes|=n),Or(m,n,e),m=null}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===e){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}}function ea(e,t,n,l){e=null;for(var c=t,r=!1;c!==null;){if(!r){if((c.flags&524288)!==0)r=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var x=c.type;wt(c.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(c===V.current){if(m=c.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Ci):e=[Ci])}c=c.return}e!==null&&_r(t,e,n,l),t.flags|=262144}function pc(e){for(e=e.firstContext;e!==null;){if(!wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Cl(e){El=e,vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return yd(El,e)}function vc(e,t){return El===null&&Cl(e),yd(e,t)}function yd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},vn===null){if(e===null)throw Error(s(308));vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vn=vn.next=t;return n}var d0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},h0=a.unstable_scheduleCallback,m0=a.unstable_NormalPriority,Ke={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dr(){return{controller:new d0,data:new Map,refCount:0}}function $a(e){e.refCount--,e.refCount===0&&h0(m0,function(){e.controller.abort()})}var Ia=null,Mr=0,ta=0,na=null;function p0(e,t){if(Ia===null){var n=Ia=[];Mr=0,ta=Hs(),na={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Mr++,t.then(xd,xd),t}function xd(){if(--Mr===0&&Ia!==null){na!==null&&(na.status="fulfilled");var e=Ia;Ia=null,ta=0,na=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function v0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),l}var bd=_.S;_.S=function(e,t){lm=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&p0(e,t),bd!==null&&bd(e,t)};var Nl=T(null);function Lr(){var e=Nl.current;return e!==null?e:Me.pooledCache}function gc(e,t){t===null?$(Nl,Nl.current):$(Nl,t.pool)}function Sd(){var e=Lr();return e===null?null:{parent:Ke._currentValue,pool:e}}var la=Error(s(460)),Ur=Error(s(474)),yc=Error(s(542)),xc={then:function(){}};function wd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ed(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(dn,dn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nd(e),e;default:if(typeof t.status=="string")t.then(dn,dn);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nd(e),e}throw Tl=t,la}}function jl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Tl=n,la):n}}var Tl=null;function Cd(){if(Tl===null)throw Error(s(459));var e=Tl;return Tl=null,e}function Nd(e){if(e===la||e===yc)throw Error(s(483))}var aa=null,ei=0;function bc(e){var t=ei;return ei+=1,aa===null&&(aa=[]),Ed(aa,e,t)}function ti(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Sc(e,t){throw t.$$typeof===C?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function jd(e){function t(O,A){if(e){var U=O.deletions;U===null?(O.deletions=[A],O.flags|=16):U.push(A)}}function n(O,A){if(!e)return null;for(;A!==null;)t(O,A),A=A.sibling;return null}function l(O){for(var A=new Map;O!==null;)O.key!==null?A.set(O.key,O):A.set(O.index,O),O=O.sibling;return A}function c(O,A){return O=mn(O,A),O.index=0,O.sibling=null,O}function r(O,A,U){return O.index=U,e?(U=O.alternate,U!==null?(U=U.index,U<A?(O.flags|=67108866,A):U):(O.flags|=67108866,A)):(O.flags|=1048576,A)}function m(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function x(O,A,U,F){return A===null||A.tag!==6?(A=Cr(U,O.mode,F),A.return=O,A):(A=c(A,U),A.return=O,A)}function E(O,A,U,F){var ue=U.type;return ue===w?X(O,A,U.props.children,F,U.key):A!==null&&(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===W&&jl(ue)===A.type)?(A=c(A,U.props),ti(A,U),A.return=O,A):(A=hc(U.type,U.key,U.props,null,O.mode,F),ti(A,U),A.return=O,A)}function H(O,A,U,F){return A===null||A.tag!==4||A.stateNode.containerInfo!==U.containerInfo||A.stateNode.implementation!==U.implementation?(A=Nr(U,O.mode,F),A.return=O,A):(A=c(A,U.children||[]),A.return=O,A)}function X(O,A,U,F,ue){return A===null||A.tag!==7?(A=Sl(U,O.mode,F,ue),A.return=O,A):(A=c(A,U),A.return=O,A)}function Q(O,A,U){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Cr(""+A,O.mode,U),A.return=O,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return U=hc(A.type,A.key,A.props,null,O.mode,U),ti(U,A),U.return=O,U;case D:return A=Nr(A,O.mode,U),A.return=O,A;case W:return A=jl(A),Q(O,A,U)}if(re(A)||P(A))return A=Sl(A,O.mode,U,null),A.return=O,A;if(typeof A.then=="function")return Q(O,bc(A),U);if(A.$$typeof===M)return Q(O,vc(O,A),U);Sc(O,A)}return null}function B(O,A,U,F){var ue=A!==null?A.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ue!==null?null:x(O,A,""+U,F);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case N:return U.key===ue?E(O,A,U,F):null;case D:return U.key===ue?H(O,A,U,F):null;case W:return U=jl(U),B(O,A,U,F)}if(re(U)||P(U))return ue!==null?null:X(O,A,U,F,null);if(typeof U.then=="function")return B(O,A,bc(U),F);if(U.$$typeof===M)return B(O,A,vc(O,U),F);Sc(O,U)}return null}function k(O,A,U,F,ue){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return O=O.get(U)||null,x(A,O,""+F,ue);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case N:return O=O.get(F.key===null?U:F.key)||null,E(A,O,F,ue);case D:return O=O.get(F.key===null?U:F.key)||null,H(A,O,F,ue);case W:return F=jl(F),k(O,A,U,F,ue)}if(re(F)||P(F))return O=O.get(U)||null,X(A,O,F,ue,null);if(typeof F.then=="function")return k(O,A,U,bc(F),ue);if(F.$$typeof===M)return k(O,A,U,vc(A,F),ue);Sc(A,F)}return null}function ae(O,A,U,F){for(var ue=null,Ne=null,ie=A,ye=A=0,we=null;ie!==null&&ye<U.length;ye++){ie.index>ye?(we=ie,ie=null):we=ie.sibling;var je=B(O,ie,U[ye],F);if(je===null){ie===null&&(ie=we);break}e&&ie&&je.alternate===null&&t(O,ie),A=r(je,A,ye),Ne===null?ue=je:Ne.sibling=je,Ne=je,ie=we}if(ye===U.length)return n(O,ie),Ce&&pn(O,ye),ue;if(ie===null){for(;ye<U.length;ye++)ie=Q(O,U[ye],F),ie!==null&&(A=r(ie,A,ye),Ne===null?ue=ie:Ne.sibling=ie,Ne=ie);return Ce&&pn(O,ye),ue}for(ie=l(ie);ye<U.length;ye++)we=k(ie,O,ye,U[ye],F),we!==null&&(e&&we.alternate!==null&&ie.delete(we.key===null?ye:we.key),A=r(we,A,ye),Ne===null?ue=we:Ne.sibling=we,Ne=we);return e&&ie.forEach(function(ol){return t(O,ol)}),Ce&&pn(O,ye),ue}function he(O,A,U,F){if(U==null)throw Error(s(151));for(var ue=null,Ne=null,ie=A,ye=A=0,we=null,je=U.next();ie!==null&&!je.done;ye++,je=U.next()){ie.index>ye?(we=ie,ie=null):we=ie.sibling;var ol=B(O,ie,je.value,F);if(ol===null){ie===null&&(ie=we);break}e&&ie&&ol.alternate===null&&t(O,ie),A=r(ol,A,ye),Ne===null?ue=ol:Ne.sibling=ol,Ne=ol,ie=we}if(je.done)return n(O,ie),Ce&&pn(O,ye),ue;if(ie===null){for(;!je.done;ye++,je=U.next())je=Q(O,je.value,F),je!==null&&(A=r(je,A,ye),Ne===null?ue=je:Ne.sibling=je,Ne=je);return Ce&&pn(O,ye),ue}for(ie=l(ie);!je.done;ye++,je=U.next())je=k(ie,O,ye,je.value,F),je!==null&&(e&&je.alternate!==null&&ie.delete(je.key===null?ye:je.key),A=r(je,A,ye),Ne===null?ue=je:Ne.sibling=je,Ne=je);return e&&ie.forEach(function(Tx){return t(O,Tx)}),Ce&&pn(O,ye),ue}function De(O,A,U,F){if(typeof U=="object"&&U!==null&&U.type===w&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case N:e:{for(var ue=U.key;A!==null;){if(A.key===ue){if(ue=U.type,ue===w){if(A.tag===7){n(O,A.sibling),F=c(A,U.props.children),F.return=O,O=F;break e}}else if(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===W&&jl(ue)===A.type){n(O,A.sibling),F=c(A,U.props),ti(F,U),F.return=O,O=F;break e}n(O,A);break}else t(O,A);A=A.sibling}U.type===w?(F=Sl(U.props.children,O.mode,F,U.key),F.return=O,O=F):(F=hc(U.type,U.key,U.props,null,O.mode,F),ti(F,U),F.return=O,O=F)}return m(O);case D:e:{for(ue=U.key;A!==null;){if(A.key===ue)if(A.tag===4&&A.stateNode.containerInfo===U.containerInfo&&A.stateNode.implementation===U.implementation){n(O,A.sibling),F=c(A,U.children||[]),F.return=O,O=F;break e}else{n(O,A);break}else t(O,A);A=A.sibling}F=Nr(U,O.mode,F),F.return=O,O=F}return m(O);case W:return U=jl(U),De(O,A,U,F)}if(re(U))return ae(O,A,U,F);if(P(U)){if(ue=P(U),typeof ue!="function")throw Error(s(150));return U=ue.call(U),he(O,A,U,F)}if(typeof U.then=="function")return De(O,A,bc(U),F);if(U.$$typeof===M)return De(O,A,vc(O,U),F);Sc(O,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,A!==null&&A.tag===6?(n(O,A.sibling),F=c(A,U),F.return=O,O=F):(n(O,A),F=Cr(U,O.mode,F),F.return=O,O=F),m(O)):n(O,A)}return function(O,A,U,F){try{ei=0;var ue=De(O,A,U,F);return aa=null,ue}catch(ie){if(ie===la||ie===yc)throw ie;var Ne=Et(29,ie,null,O.mode);return Ne.lanes=F,Ne.return=O,Ne}}}var Al=jd(!0),Td=jd(!1),Gn=!1;function Hr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Br(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 Fn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Te&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=dc(e),ud(e,null,n),t}return fc(e,l,t,n),dc(e)}function ni(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,yf(e,n)}}function kr(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var c=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?c=r=m:r=r.next=m,n=n.next}while(n!==null);r===null?c=r=t:r=r.next=t}else c=r=t;n={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Yr=!1;function li(){if(Yr){var e=na;if(e!==null)throw e}}function ai(e,t,n,l){Yr=!1;var c=e.updateQueue;Gn=!1;var r=c.firstBaseUpdate,m=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var E=x,H=E.next;E.next=null,m===null?r=H:m.next=H,m=E;var X=e.alternate;X!==null&&(X=X.updateQueue,x=X.lastBaseUpdate,x!==m&&(x===null?X.firstBaseUpdate=H:x.next=H,X.lastBaseUpdate=E))}if(r!==null){var Q=c.baseState;m=0,X=H=E=null,x=r;do{var B=x.lane&-536870913,k=B!==x.lane;if(k?(Se&B)===B:(l&B)===B){B!==0&&B===ta&&(Yr=!0),X!==null&&(X=X.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ae=e,he=x;B=t;var De=n;switch(he.tag){case 1:if(ae=he.payload,typeof ae=="function"){Q=ae.call(De,Q,B);break e}Q=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=he.payload,B=typeof ae=="function"?ae.call(De,Q,B):ae,B==null)break e;Q=b({},Q,B);break e;case 2:Gn=!0}}B=x.callback,B!==null&&(e.flags|=64,k&&(e.flags|=8192),k=c.callbacks,k===null?c.callbacks=[B]:k.push(B))}else k={lane:B,tag:x.tag,payload:x.payload,callback:x.callback,next:null},X===null?(H=X=k,E=Q):X=X.next=k,m|=B;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;k=x,x=k.next,k.next=null,c.lastBaseUpdate=k,c.shared.pending=null}}while(!0);X===null&&(E=Q),c.baseState=E,c.firstBaseUpdate=H,c.lastBaseUpdate=X,r===null&&(c.shared.lanes=0),Wn|=m,e.lanes=m,e.memoizedState=Q}}function Ad(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Rd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ad(n[e],t)}var ia=T(null),wc=T(0);function zd(e,t){e=jn,$(wc,e),$(ia,t),jn=e|t.baseLanes}function qr(){$(wc,jn),$(ia,ia.current)}function Vr(){jn=wc.current,G(ia),G(wc)}var Ct=T(null),Vt=null;function Qn(e){var t=e.alternate;$(Xe,Xe.current&1),$(Ct,e),Vt===null&&(t===null||ia.current!==null||t.memoizedState!==null)&&(Vt=e)}function Xr(e){$(Xe,Xe.current),$(Ct,e),Vt===null&&(Vt=e)}function Od(e){e.tag===22?($(Xe,Xe.current),$(Ct,e),Vt===null&&(Vt=e)):Zn()}function Zn(){$(Xe,Xe.current),$(Ct,Ct.current)}function Nt(e){G(Ct),Vt===e&&(Vt=null),G(Xe)}var Xe=T(0);function Ec(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ps(n)||Js(n)))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 yn=0,ge=null,Oe=null,Qe=null,Cc=!1,ca=!1,Rl=!1,Nc=0,ii=0,oa=null,g0=0;function Ye(){throw Error(s(321))}function Gr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wt(e[n],t[n]))return!1;return!0}function Fr(e,t,n,l,c,r){return yn=r,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?mh:cs,Rl=!1,r=n(l,c),Rl=!1,ca&&(r=Dd(t,n,l,c)),_d(e),r}function _d(e){_.H=ri;var t=Oe!==null&&Oe.next!==null;if(yn=0,Qe=Oe=ge=null,Cc=!1,ii=0,oa=null,t)throw Error(s(300));e===null||Ze||(e=e.dependencies,e!==null&&pc(e)&&(Ze=!0))}function Dd(e,t,n,l){ge=e;var c=0;do{if(ca&&(oa=null),ii=0,ca=!1,25<=c)throw Error(s(301));if(c+=1,Qe=Oe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}_.H=ph,r=t(n,l)}while(ca);return r}function y0(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?ci(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(ge.flags|=1024),t}function Kr(){var e=Nc!==0;return Nc=0,e}function Qr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Zr(e){if(Cc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Cc=!1}yn=0,Qe=Oe=ge=null,ca=!1,ii=Nc=0,oa=null}function ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ge(){if(Oe===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Qe===null?ge.memoizedState:Qe.next;if(t!==null)Qe=t,Oe=e;else{if(e===null)throw ge.alternate===null?Error(s(467)):Error(s(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function jc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ci(e){var t=ii;return ii+=1,oa===null&&(oa=[]),e=Ed(oa,e,t),t=ge,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?mh:cs),e}function Tc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ci(e);if(e.$$typeof===M)return lt(e)}throw Error(s(438,String(e)))}function Pr(e){var t=null,n=ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ge.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=jc(),ge.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ce;return t.index++,n}function xn(e,t){return typeof t=="function"?t(e):t}function Ac(e){var t=Ge();return Jr(t,Oe,e)}function Jr(e,t,n){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var c=e.baseQueue,r=l.pending;if(r!==null){if(c!==null){var m=c.next;c.next=r.next,r.next=m}t.baseQueue=c=r,l.pending=null}if(r=e.baseState,c===null)e.memoizedState=r;else{t=c.next;var x=m=null,E=null,H=t,X=!1;do{var Q=H.lane&-536870913;if(Q!==H.lane?(Se&Q)===Q:(yn&Q)===Q){var B=H.revertLane;if(B===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),Q===ta&&(X=!0);else if((yn&B)===B){H=H.next,B===ta&&(X=!0);continue}else Q={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(x=E=Q,m=r):E=E.next=Q,ge.lanes|=B,Wn|=B;Q=H.action,Rl&&n(r,Q),r=H.hasEagerState?H.eagerState:n(r,Q)}else B={lane:Q,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(x=E=B,m=r):E=E.next=B,ge.lanes|=Q,Wn|=Q;H=H.next}while(H!==null&&H!==t);if(E===null?m=r:E.next=x,!wt(r,e.memoizedState)&&(Ze=!0,X&&(n=na,n!==null)))throw n;e.memoizedState=r,e.baseState=m,e.baseQueue=E,l.lastRenderedState=r}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Wr(e){var t=Ge(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var l=n.dispatch,c=n.pending,r=t.memoizedState;if(c!==null){n.pending=null;var m=c=c.next;do r=e(r,m.action),m=m.next;while(m!==c);wt(r,t.memoizedState)||(Ze=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,l]}function Md(e,t,n){var l=ge,c=Ge(),r=Ce;if(r){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!wt((Oe||c).memoizedState,n);if(m&&(c.memoizedState=n,Ze=!0),c=c.queue,es(Hd.bind(null,l,c,e),[e]),c.getSnapshot!==t||m||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,ra(9,{destroy:void 0},Ud.bind(null,l,c,n,t),null),Me===null)throw Error(s(349));r||(yn&127)!==0||Ld(l,t,n)}return n}function Ld(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t=jc(),ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ud(e,t,n,l){t.value=n,t.getSnapshot=l,Bd(t)&&kd(e)}function Hd(e,t,n){return n(function(){Bd(t)&&kd(e)})}function Bd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wt(e,n)}catch{return!0}}function kd(e){var t=bl(e,2);t!==null&&gt(t,e,2)}function $r(e){var t=ut();if(typeof e=="function"){var n=e;if(e=n(),Rl){Hn(!0);try{n()}finally{Hn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:e},t}function Yd(e,t,n,l){return e.baseState=n,Jr(e,Oe,typeof l=="function"?l:xn)}function x0(e,t,n,l,c){if(Oc(e))throw Error(s(485));if(e=t.action,e!==null){var r={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){r.listeners.push(m)}};_.T!==null?n(!0):r.isTransition=!1,l(r),n=t.pending,n===null?(r.next=t.pending=r,qd(t,r)):(r.next=n.next,t.pending=n.next=r)}}function qd(e,t){var n=t.action,l=t.payload,c=e.state;if(t.isTransition){var r=_.T,m={};_.T=m;try{var x=n(c,l),E=_.S;E!==null&&E(m,x),Vd(e,t,x)}catch(H){Ir(e,t,H)}finally{r!==null&&m.types!==null&&(r.types=m.types),_.T=r}}else try{r=n(c,l),Vd(e,t,r)}catch(H){Ir(e,t,H)}}function Vd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Xd(e,t,l)},function(l){return Ir(e,t,l)}):Xd(e,t,n)}function Xd(e,t,n){t.status="fulfilled",t.value=n,Gd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,qd(e,n)))}function Ir(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Gd(t),t=t.next;while(t!==l)}e.action=null}function Gd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Fd(e,t){return t}function Kd(e,t){if(Ce){var n=Me.formState;if(n!==null){e:{var l=ge;if(Ce){if(Le){t:{for(var c=Le,r=qt;c.nodeType!==8;){if(!r){c=null;break t}if(c=Xt(c.nextSibling),c===null){c=null;break t}}r=c.data,c=r==="F!"||r==="F"?c:null}if(c){Le=Xt(c.nextSibling),l=c.data==="F!";break e}}Vn(l)}l=!1}l&&(t=n[0])}}return n=ut(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fd,lastRenderedState:t},n.queue=l,n=fh.bind(null,ge,l),l.dispatch=n,l=$r(!1),r=is.bind(null,ge,!1,l.queue),l=ut(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,n=x0.bind(null,ge,c,r,n),c.dispatch=n,l.memoizedState=e,[t,n,!1]}function Qd(e){var t=Ge();return Zd(t,Oe,e)}function Zd(e,t,n){if(t=Jr(e,t,Fd)[0],e=Ac(xn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ci(t)}catch(m){throw m===la?yc:m}else l=t;t=Ge();var c=t.queue,r=c.dispatch;return n!==t.memoizedState&&(ge.flags|=2048,ra(9,{destroy:void 0},b0.bind(null,c,n),null)),[l,r,e]}function b0(e,t){e.action=t}function Pd(e){var t=Ge(),n=Oe;if(n!==null)return Zd(t,n,e);Ge(),t=t.memoizedState,n=Ge();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function ra(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ge.updateQueue,t===null&&(t=jc(),ge.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Jd(){return Ge().memoizedState}function Rc(e,t,n,l){var c=ut();ge.flags|=e,c.memoizedState=ra(1|t,{destroy:void 0},n,l===void 0?null:l)}function zc(e,t,n,l){var c=Ge();l=l===void 0?null:l;var r=c.memoizedState.inst;Oe!==null&&l!==null&&Gr(l,Oe.memoizedState.deps)?c.memoizedState=ra(t,r,n,l):(ge.flags|=e,c.memoizedState=ra(1|t,r,n,l))}function Wd(e,t){Rc(8390656,8,e,t)}function es(e,t){zc(2048,8,e,t)}function S0(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=jc(),ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function $d(e){var t=Ge().memoizedState;return S0({ref:t,nextImpl:e}),function(){if((Te&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Id(e,t){return zc(4,2,e,t)}function eh(e,t){return zc(4,4,e,t)}function th(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function nh(e,t,n){n=n!=null?n.concat([e]):null,zc(4,4,th.bind(null,t,e),n)}function ts(){}function lh(e,t){var n=Ge();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Gr(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function ah(e,t){var n=Ge();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Gr(t,l[1]))return l[0];if(l=e(),Rl){Hn(!0);try{e()}finally{Hn(!1)}}return n.memoizedState=[l,t],l}function ns(e,t,n){return n===void 0||(yn&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=im(),ge.lanes|=e,Wn|=e,n)}function ih(e,t,n,l){return wt(n,t)?n:ia.current!==null?(e=ns(e,n,l),wt(e,t)||(Ze=!0),e):(yn&42)===0||(yn&1073741824)!==0&&(Se&261930)===0?(Ze=!0,e.memoizedState=n):(e=im(),ge.lanes|=e,Wn|=e,t)}function ch(e,t,n,l,c){var r=L.p;L.p=r!==0&&8>r?r:8;var m=_.T,x={};_.T=x,is(e,!1,t,n);try{var E=c(),H=_.S;if(H!==null&&H(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var X=v0(E,l);oi(e,t,X,At(e))}else oi(e,t,l,At(e))}catch(Q){oi(e,t,{then:function(){},status:"rejected",reason:Q},At())}finally{L.p=r,m!==null&&x.types!==null&&(m.types=x.types),_.T=m}}function w0(){}function ls(e,t,n,l){if(e.tag!==5)throw Error(s(476));var c=oh(e).queue;ch(e,c,t,K,n===null?w0:function(){return rh(e),n(l)})}function oh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:K},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rh(e){var t=oh(e);t.next===null&&(t=e.alternate.memoizedState),oi(e,t.next.queue,{},At())}function as(){return lt(Ci)}function sh(){return Ge().memoizedState}function uh(){return Ge().memoizedState}function E0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=At();e=Fn(n);var l=Kn(t,e,n);l!==null&&(gt(l,t,n),ni(l,t,n)),t={cache:Dr()},e.payload=t;return}t=t.return}}function C0(e,t,n){var l=At();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Oc(e)?dh(t,n):(n=wr(e,t,n,l),n!==null&&(gt(n,e,l),hh(n,t,l)))}function fh(e,t,n){var l=At();oi(e,t,n,l)}function oi(e,t,n,l){var c={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Oc(e))dh(t,c);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var m=t.lastRenderedState,x=r(m,n);if(c.hasEagerState=!0,c.eagerState=x,wt(x,m))return fc(e,t,c,0),Me===null&&uc(),!1}catch{}if(n=wr(e,t,c,l),n!==null)return gt(n,e,l),hh(n,t,l),!0}return!1}function is(e,t,n,l){if(l={lane:2,revertLane:Hs(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Oc(e)){if(t)throw Error(s(479))}else t=wr(e,n,l,2),t!==null&&gt(t,e,2)}function Oc(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function dh(e,t){ca=Cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,yf(e,n)}}var ri={readContext:lt,use:Tc,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};ri.useEffectEvent=Ye;var mh={readContext:lt,use:Tc,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Wd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Rc(4194308,4,th.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rc(4194308,4,e,t)},useInsertionEffect:function(e,t){Rc(4,2,e,t)},useMemo:function(e,t){var n=ut();t=t===void 0?null:t;var l=e();if(Rl){Hn(!0);try{e()}finally{Hn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=ut();if(n!==void 0){var c=n(t);if(Rl){Hn(!0);try{n(t)}finally{Hn(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=C0.bind(null,ge,e),[l.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:function(e){e=$r(e);var t=e.queue,n=fh.bind(null,ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ts,useDeferredValue:function(e,t){var n=ut();return ns(n,e,t)},useTransition:function(){var e=$r(!1);return e=ch.bind(null,ge,e.queue,!0,!1),ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ge,c=ut();if(Ce){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Me===null)throw Error(s(349));(Se&127)!==0||Ld(l,t,n)}c.memoizedState=n;var r={value:n,getSnapshot:t};return c.queue=r,Wd(Hd.bind(null,l,r,e),[e]),l.flags|=2048,ra(9,{destroy:void 0},Ud.bind(null,l,r,n,t),null),n},useId:function(){var e=ut(),t=Me.identifierPrefix;if(Ce){var n=en,l=It;n=(l&~(1<<32-St(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Nc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=g0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:as,useFormState:Kd,useActionState:Kd,useOptimistic:function(e){var t=ut();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=is.bind(null,ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:Pr,useCacheRefresh:function(){return ut().memoizedState=E0.bind(null,ge)},useEffectEvent:function(e){var t=ut(),n={impl:e};return t.memoizedState=n,function(){if((Te&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},cs={readContext:lt,use:Tc,useCallback:lh,useContext:lt,useEffect:es,useImperativeHandle:nh,useInsertionEffect:Id,useLayoutEffect:eh,useMemo:ah,useReducer:Ac,useRef:Jd,useState:function(){return Ac(xn)},useDebugValue:ts,useDeferredValue:function(e,t){var n=Ge();return ih(n,Oe.memoizedState,e,t)},useTransition:function(){var e=Ac(xn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:Md,useId:sh,useHostTransitionStatus:as,useFormState:Qd,useActionState:Qd,useOptimistic:function(e,t){var n=Ge();return Yd(n,Oe,e,t)},useMemoCache:Pr,useCacheRefresh:uh};cs.useEffectEvent=$d;var ph={readContext:lt,use:Tc,useCallback:lh,useContext:lt,useEffect:es,useImperativeHandle:nh,useInsertionEffect:Id,useLayoutEffect:eh,useMemo:ah,useReducer:Wr,useRef:Jd,useState:function(){return Wr(xn)},useDebugValue:ts,useDeferredValue:function(e,t){var n=Ge();return Oe===null?ns(n,e,t):ih(n,Oe.memoizedState,e,t)},useTransition:function(){var e=Wr(xn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:Md,useId:sh,useHostTransitionStatus:as,useFormState:Pd,useActionState:Pd,useOptimistic:function(e,t){var n=Ge();return Oe!==null?Yd(n,Oe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Pr,useCacheRefresh:uh};ph.useEffectEvent=$d;function os(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var rs={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=At(),c=Fn(l);c.payload=t,n!=null&&(c.callback=n),t=Kn(e,c,l),t!==null&&(gt(t,e,l),ni(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=At(),c=Fn(l);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=Kn(e,c,l),t!==null&&(gt(t,e,l),ni(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=At(),l=Fn(n);l.tag=2,t!=null&&(l.callback=t),t=Kn(e,l,n),t!==null&&(gt(t,e,n),ni(t,e,n))}};function vh(e,t,n,l,c,r,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,r,m):t.prototype&&t.prototype.isPureReactComponent?!Za(n,l)||!Za(c,r):!0}function gh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&rs.enqueueReplaceState(t,t.state,null)}function zl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function yh(e){sc(e)}function xh(e){console.error(e)}function bh(e){sc(e)}function _c(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Sh(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function ss(e,t,n){return n=Fn(n),n.tag=3,n.payload={element:null},n.callback=function(){_c(e,t)},n}function wh(e){return e=Fn(e),e.tag=3,e}function Eh(e,t,n,l){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var r=l.value;e.payload=function(){return c(r)},e.callback=function(){Sh(t,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Sh(t,n,l),typeof c!="function"&&($n===null?$n=new Set([this]):$n.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function N0(e,t,n,l,c){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ea(t,n,c,!0),n=Ct.current,n!==null){switch(n.tag){case 31:case 13:return Vt===null?Gc():n.alternate===null&&qe===0&&(qe=3),n.flags&=-257,n.flags|=65536,n.lanes=c,l===xc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Ms(e,l,c)),!1;case 22:return n.flags|=65536,l===xc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Ms(e,l,c)),!1}throw Error(s(435,n.tag))}return Ms(e,l,c),Gc(),!1}if(Ce)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==Ar&&(e=Error(s(422),{cause:l}),Wa(Bt(e,n)))):(l!==Ar&&(t=Error(s(423),{cause:l}),Wa(Bt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=Bt(l,n),c=ss(e.stateNode,l,c),kr(e,c),qe!==4&&(qe=2)),!1;var r=Error(s(520),{cause:l});if(r=Bt(r,n),vi===null?vi=[r]:vi.push(r),qe!==4&&(qe=2),t===null)return!0;l=Bt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=ss(n.stateNode,l,e),kr(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&($n===null||!$n.has(r))))return n.flags|=65536,c&=-c,n.lanes|=c,c=wh(c),Eh(c,e,n,l),kr(n,c),!1}n=n.return}while(n!==null);return!1}var us=Error(s(461)),Ze=!1;function at(e,t,n,l){t.child=e===null?Td(t,null,n,l):Al(t,e.child,n,l)}function Ch(e,t,n,l,c){n=n.render;var r=t.ref;if("ref"in l){var m={};for(var x in l)x!=="ref"&&(m[x]=l[x])}else m=l;return Cl(t),l=Fr(e,t,n,m,r,c),x=Kr(),e!==null&&!Ze?(Qr(e,t,c),bn(e,t,c)):(Ce&&x&&jr(t),t.flags|=1,at(e,t,l,c),t.child)}function Nh(e,t,n,l,c){if(e===null){var r=n.type;return typeof r=="function"&&!Er(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,jh(e,t,r,l,c)):(e=hc(n.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!ys(e,c)){var m=r.memoizedProps;if(n=n.compare,n=n!==null?n:Za,n(m,l)&&e.ref===t.ref)return bn(e,t,c)}return t.flags|=1,e=mn(r,l),e.ref=t.ref,e.return=t,t.child=e}function jh(e,t,n,l,c){if(e!==null){var r=e.memoizedProps;if(Za(r,l)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=l=r,ys(e,c))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,bn(e,t,c)}return fs(e,t,n,l,c)}function Th(e,t,n,l){var c=l.children,r=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(r=r!==null?r.baseLanes|n:n,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~r}else l=0,t.child=null;return Ah(e,t,r,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&gc(t,r!==null?r.cachePool:null),r!==null?zd(t,r):qr(),Od(t);else return l=t.lanes=536870912,Ah(e,t,r!==null?r.baseLanes|n:n,n,l)}else r!==null?(gc(t,r.cachePool),zd(t,r),Zn(),t.memoizedState=null):(e!==null&&gc(t,null),qr(),Zn());return at(e,t,c,n),t.child}function si(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ah(e,t,n,l,c){var r=Lr();return r=r===null?null:{parent:Ke._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&gc(t,null),qr(),Od(t),e!==null&&ea(e,t,l,!0),t.childLanes=c,null}function Dc(e,t){return t=Lc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Rh(e,t,n){return Al(t,e.child,null,n),e=Dc(t,t.pendingProps),e.flags|=2,Nt(t),t.memoizedState=null,e}function j0(e,t,n){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(l.mode==="hidden")return e=Dc(t,l),t.lanes=536870912,si(null,e);if(Xr(t),(e=Le)?(e=qm(e,qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yn!==null?{id:It,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=dd(e),n.return=t,t.child=n,nt=t,Le=null)):e=null,e===null)throw Vn(t);return t.lanes=536870912,null}return Dc(t,l)}var r=e.memoizedState;if(r!==null){var m=r.dehydrated;if(Xr(t),c)if(t.flags&256)t.flags&=-257,t=Rh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ze||ea(e,t,n,!1),c=(n&e.childLanes)!==0,Ze||c){if(l=Me,l!==null&&(m=xf(l,n),m!==0&&m!==r.retryLane))throw r.retryLane=m,bl(e,m),gt(l,e,m),us;Gc(),t=Rh(e,t,n)}else e=r.treeContext,Le=Xt(m.nextSibling),nt=t,Ce=!0,qn=null,qt=!1,e!==null&&pd(t,e),t=Dc(t,l),t.flags|=4096;return t}return e=mn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Mc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function fs(e,t,n,l,c){return Cl(t),n=Fr(e,t,n,l,void 0,c),l=Kr(),e!==null&&!Ze?(Qr(e,t,c),bn(e,t,c)):(Ce&&l&&jr(t),t.flags|=1,at(e,t,n,c),t.child)}function zh(e,t,n,l,c,r){return Cl(t),t.updateQueue=null,n=Dd(t,l,n,c),_d(e),l=Kr(),e!==null&&!Ze?(Qr(e,t,r),bn(e,t,r)):(Ce&&l&&jr(t),t.flags|=1,at(e,t,n,r),t.child)}function Oh(e,t,n,l,c){if(Cl(t),t.stateNode===null){var r=Jl,m=n.contextType;typeof m=="object"&&m!==null&&(r=lt(m)),r=new n(l,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=rs,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=l,r.state=t.memoizedState,r.refs={},Hr(t),m=n.contextType,r.context=typeof m=="object"&&m!==null?lt(m):Jl,r.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(os(t,n,m,l),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(m=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),m!==r.state&&rs.enqueueReplaceState(r,r.state,null),ai(t,l,r,c),li(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){r=t.stateNode;var x=t.memoizedProps,E=zl(n,x);r.props=E;var H=r.context,X=n.contextType;m=Jl,typeof X=="object"&&X!==null&&(m=lt(X));var Q=n.getDerivedStateFromProps;X=typeof Q=="function"||typeof r.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,X||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(x||H!==m)&&gh(t,r,l,m),Gn=!1;var B=t.memoizedState;r.state=B,ai(t,l,r,c),li(),H=t.memoizedState,x||B!==H||Gn?(typeof Q=="function"&&(os(t,n,Q,l),H=t.memoizedState),(E=Gn||vh(t,n,E,l,B,H,m))?(X||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=H),r.props=l,r.state=H,r.context=m,l=E):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{r=t.stateNode,Br(e,t),m=t.memoizedProps,X=zl(n,m),r.props=X,Q=t.pendingProps,B=r.context,H=n.contextType,E=Jl,typeof H=="object"&&H!==null&&(E=lt(H)),x=n.getDerivedStateFromProps,(H=typeof x=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m!==Q||B!==E)&&gh(t,r,l,E),Gn=!1,B=t.memoizedState,r.state=B,ai(t,l,r,c),li();var k=t.memoizedState;m!==Q||B!==k||Gn||e!==null&&e.dependencies!==null&&pc(e.dependencies)?(typeof x=="function"&&(os(t,n,x,l),k=t.memoizedState),(X=Gn||vh(t,n,X,l,B,k,E)||e!==null&&e.dependencies!==null&&pc(e.dependencies))?(H||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,k,E),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,k,E)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=k),r.props=l,r.state=k,r.context=E,l=X):(typeof r.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),l=!1)}return r=l,Mc(e,t),l=(t.flags&128)!==0,r||l?(r=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&l?(t.child=Al(t,e.child,null,c),t.child=Al(t,null,n,c)):at(e,t,n,c),t.memoizedState=r.state,e=t.child):e=bn(e,t,c),e}function _h(e,t,n,l){return wl(),t.flags|=256,at(e,t,n,l),t.child}var ds={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hs(e){return{baseLanes:e,cachePool:Sd()}}function ms(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Tt),e}function Dh(e,t,n){var l=t.pendingProps,c=!1,r=(t.flags&128)!==0,m;if((m=r)||(m=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),m&&(c=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(c?Qn(t):Zn(),(e=Le)?(e=qm(e,qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yn!==null?{id:It,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=dd(e),n.return=t,t.child=n,nt=t,Le=null)):e=null,e===null)throw Vn(t);return Js(e)?t.lanes=32:t.lanes=536870912,null}var x=l.children;return l=l.fallback,c?(Zn(),c=t.mode,x=Lc({mode:"hidden",children:x},c),l=Sl(l,c,n,null),x.return=t,l.return=t,x.sibling=l,t.child=x,l=t.child,l.memoizedState=hs(n),l.childLanes=ms(e,m,n),t.memoizedState=ds,si(null,l)):(Qn(t),ps(t,x))}var E=e.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(r)t.flags&256?(Qn(t),t.flags&=-257,t=vs(e,t,n)):t.memoizedState!==null?(Zn(),t.child=e.child,t.flags|=128,t=null):(Zn(),x=l.fallback,c=t.mode,l=Lc({mode:"visible",children:l.children},c),x=Sl(x,c,n,null),x.flags|=2,l.return=t,x.return=t,l.sibling=x,t.child=l,Al(t,e.child,null,n),l=t.child,l.memoizedState=hs(n),l.childLanes=ms(e,m,n),t.memoizedState=ds,t=si(null,l));else if(Qn(t),Js(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var H=m.dgst;m=H,l=Error(s(419)),l.stack="",l.digest=m,Wa({value:l,source:null,stack:null}),t=vs(e,t,n)}else if(Ze||ea(e,t,n,!1),m=(n&e.childLanes)!==0,Ze||m){if(m=Me,m!==null&&(l=xf(m,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,bl(e,l),gt(m,e,l),us;Ps(x)||Gc(),t=vs(e,t,n)}else Ps(x)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Le=Xt(x.nextSibling),nt=t,Ce=!0,qn=null,qt=!1,e!==null&&pd(t,e),t=ps(t,l.children),t.flags|=4096);return t}return c?(Zn(),x=l.fallback,c=t.mode,E=e.child,H=E.sibling,l=mn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,H!==null?x=mn(H,x):(x=Sl(x,c,n,null),x.flags|=2),x.return=t,l.return=t,l.sibling=x,t.child=l,si(null,l),l=t.child,x=e.child.memoizedState,x===null?x=hs(n):(c=x.cachePool,c!==null?(E=Ke._currentValue,c=c.parent!==E?{parent:E,pool:E}:c):c=Sd(),x={baseLanes:x.baseLanes|n,cachePool:c}),l.memoizedState=x,l.childLanes=ms(e,m,n),t.memoizedState=ds,si(e.child,l)):(Qn(t),n=e.child,e=n.sibling,n=mn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function ps(e,t){return t=Lc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Lc(e,t){return e=Et(22,e,null,t),e.lanes=0,e}function vs(e,t,n){return Al(t,e.child,null,n),e=ps(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Or(e.return,t,n)}function gs(e,t,n,l,c,r){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:c,treeForkCount:r}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=c,m.treeForkCount=r)}function Lh(e,t,n){var l=t.pendingProps,c=l.revealOrder,r=l.tail;l=l.children;var m=Xe.current,x=(m&2)!==0;if(x?(m=m&1|2,t.flags|=128):m&=1,$(Xe,m),at(e,t,l,n),l=Ce?Ja:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Mh(e,n,t);else if(e.tag===19)Mh(e,n,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(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Ec(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),gs(t,!1,c,n,r,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Ec(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}gs(t,!0,n,null,r,l);break;case"together":gs(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ys(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&pc(e)))}function T0(e,t,n){switch(t.tag){case 3:se(t,t.stateNode.containerInfo),Xn(t,Ke,e.memoizedState.cache),wl();break;case 27:case 5:Ee(t);break;case 4:se(t,t.stateNode.containerInfo);break;case 10:Xn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Qn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Dh(e,t,n):(Qn(t),e=bn(e,t,n),e!==null?e.sibling:null);Qn(t);break;case 19:var c=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ea(e,t,n,!1),l=(n&t.childLanes)!==0),c){if(l)return Lh(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),$(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,Th(e,t,n,t.pendingProps);case 24:Xn(t,Ke,e.memoizedState.cache)}return bn(e,t,n)}function Uh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!ys(e,n)&&(t.flags&128)===0)return Ze=!1,T0(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,Ce&&(t.flags&1048576)!==0&&md(t,Ja,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=jl(t.elementType),t.type=e,typeof e=="function")Er(e)?(l=zl(e,l),t.tag=1,t=Oh(null,t,e,l,n)):(t.tag=0,t=fs(null,t,e,l,n));else{if(e!=null){var c=e.$$typeof;if(c===Y){t.tag=11,t=Ch(null,t,e,l,n);break e}else if(c===q){t.tag=14,t=Nh(null,t,e,l,n);break e}}throw t=I(e)||e,Error(s(306,t,""))}}return t;case 0:return fs(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,c=zl(l,t.pendingProps),Oh(e,t,l,c,n);case 3:e:{if(se(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var r=t.memoizedState;c=r.element,Br(e,t),ai(t,l,null,n);var m=t.memoizedState;if(l=m.cache,Xn(t,Ke,l),l!==r.cache&&_r(t,[Ke],n,!0),li(),l=m.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=_h(e,t,l,n);break e}else if(l!==c){c=Bt(Error(s(424)),t),Wa(c),t=_h(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Le=Xt(e.firstChild),nt=t,Ce=!0,qn=null,qt=!0,n=Td(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wl(),l===c){t=bn(e,t,n);break e}at(e,t,l,n)}t=t.child}return t;case 26:return Mc(e,t),e===null?(n=Qm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ce||(n=t.type,e=t.pendingProps,l=Wc(me.current).createElement(n),l[tt]=t,l[ft]=e,it(l,n,e),Ie(l),t.stateNode=l):t.memoizedState=Qm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&Ce&&(l=t.stateNode=Gm(t.type,t.pendingProps,me.current),nt=t,qt=!0,c=Le,nl(t.type)?(Ws=c,Le=Xt(l.firstChild)):Le=c),at(e,t,t.pendingProps.children,n),Mc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((c=l=Le)&&(l=lx(l,t.type,t.pendingProps,qt),l!==null?(t.stateNode=l,nt=t,Le=Xt(l.firstChild),qt=!1,c=!0):c=!1),c||Vn(t)),Ee(t),c=t.type,r=t.pendingProps,m=e!==null?e.memoizedProps:null,l=r.children,Ks(c,r)?l=null:m!==null&&Ks(c,m)&&(t.flags|=32),t.memoizedState!==null&&(c=Fr(e,t,y0,null,null,n),Ci._currentValue=c),Mc(e,t),at(e,t,l,n),t.child;case 6:return e===null&&Ce&&((e=n=Le)&&(n=ax(n,t.pendingProps,qt),n!==null?(t.stateNode=n,nt=t,Le=null,e=!0):e=!1),e||Vn(t)),null;case 13:return Dh(e,t,n);case 4:return se(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Al(t,null,l,n):at(e,t,l,n),t.child;case 11:return Ch(e,t,t.type,t.pendingProps,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Xn(t,t.type,l.value),at(e,t,l.children,n),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Cl(t),c=lt(c),l=l(c),t.flags|=1,at(e,t,l,n),t.child;case 14:return Nh(e,t,t.type,t.pendingProps,n);case 15:return jh(e,t,t.type,t.pendingProps,n);case 19:return Lh(e,t,n);case 31:return j0(e,t,n);case 22:return Th(e,t,n,t.pendingProps);case 24:return Cl(t),l=lt(Ke),e===null?(c=Lr(),c===null&&(c=Me,r=Dr(),c.pooledCache=r,r.refCount++,r!==null&&(c.pooledCacheLanes|=n),c=r),t.memoizedState={parent:l,cache:c},Hr(t),Xn(t,Ke,c)):((e.lanes&n)!==0&&(Br(e,t),ai(t,null,null,n),li()),c=e.memoizedState,r=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Xn(t,Ke,l)):(l=r.cache,Xn(t,Ke,l),l!==c.cache&&_r(t,[Ke],n,!0))),at(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Sn(e){e.flags|=4}function xs(e,t,n,l,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(sm())e.flags|=8192;else throw Tl=xc,Ur}else e.flags&=-16777217}function Hh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$m(t))if(sm())e.flags|=8192;else throw Tl=xc,Ur}function Uc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?vf():536870912,e.lanes|=t,da|=t)}function ui(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function A0(e,t,n){var l=t.pendingProps;switch(Tr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),gn(Ke),fe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Il(t)?Sn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rr())),Ue(t),null;case 26:var c=t.type,r=t.memoizedState;return e===null?(Sn(t),r!==null?(Ue(t),Hh(t,r)):(Ue(t),xs(t,c,null,l,n))):r?r!==e.memoizedState?(Sn(t),Ue(t),Hh(t,r)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Sn(t),Ue(t),xs(t,c,e,l,n)),null;case 27:if(Ae(t),n=me.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ue(t),null}e=ee.current,Il(t)?vd(t):(e=Gm(c,l,n),t.stateNode=e,Sn(t))}return Ue(t),null;case 5:if(Ae(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ue(t),null}if(r=ee.current,Il(t))vd(t);else{var m=Wc(me.current);switch(r){case 1:r=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:r=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":r=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":r=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":r=m.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?m.createElement(c,{is:l.is}):m.createElement(c)}}r[tt]=t,r[ft]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)r.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=r;e:switch(it(r,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Sn(t)}}return Ue(t),xs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=me.current,Il(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,c=nt,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Dm(e.nodeValue,n)),e||Vn(t,!0)}else e=Wc(e).createTextNode(l),e[tt]=t,t.stateNode=e}return Ue(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Il(t),n!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else n=Rr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Nt(t),t):(Nt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ue(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Il(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[tt]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),c=!1}else c=Rr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Nt(t),t):(Nt(t),null)}return Nt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==c&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Uc(t,t.updateQueue),Ue(t),null);case 4:return fe(),e===null&&qs(t.stateNode.containerInfo),Ue(t),null;case 10:return gn(t.type),Ue(t),null;case 19:if(G(Xe),l=t.memoizedState,l===null)return Ue(t),null;if(c=(t.flags&128)!==0,r=l.rendering,r===null)if(c)ui(l,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Ec(e),r!==null){for(t.flags|=128,ui(l,!1),e=r.updateQueue,t.updateQueue=e,Uc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)fd(n,e),n=n.sibling;return $(Xe,Xe.current&1|2),Ce&&pn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&xt()>qc&&(t.flags|=128,c=!0,ui(l,!1),t.lanes=4194304)}else{if(!c)if(e=Ec(r),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Uc(t,e),ui(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!Ce)return Ue(t),null}else 2*xt()-l.renderingStartTime>qc&&n!==536870912&&(t.flags|=128,c=!0,ui(l,!1),t.lanes=4194304);l.isBackwards?(r.sibling=t.child,t.child=r):(e=l.last,e!==null?e.sibling=r:t.child=r,l.last=r)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=xt(),e.sibling=null,n=Xe.current,$(Xe,c?n&1|2:n&1),Ce&&pn(t,l.treeForkCount),e):(Ue(t),null);case 22:case 23:return Nt(t),Vr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),n=t.updateQueue,n!==null&&Uc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&G(Nl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),gn(Ke),Ue(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function R0(e,t){switch(Tr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gn(Ke),fe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ae(t),null;case 31:if(t.memoizedState!==null){if(Nt(t),t.alternate===null)throw Error(s(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Xe),null;case 4:return fe(),null;case 10:return gn(t.type),null;case 22:case 23:return Nt(t),Vr(),e!==null&&G(Nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gn(Ke),null;case 25:return null;default:return null}}function Bh(e,t){switch(Tr(t),t.tag){case 3:gn(Ke),fe();break;case 26:case 27:case 5:Ae(t);break;case 4:fe();break;case 31:t.memoizedState!==null&&Nt(t);break;case 13:Nt(t);break;case 19:G(Xe);break;case 10:gn(t.type);break;case 22:case 23:Nt(t),Vr(),e!==null&&G(Nl);break;case 24:gn(Ke)}}function fi(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var c=l.next;n=c;do{if((n.tag&e)===e){l=void 0;var r=n.create,m=n.inst;l=r(),m.destroy=l}n=n.next}while(n!==c)}}catch(x){ze(t,t.return,x)}}function Pn(e,t,n){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var r=c.next;l=r;do{if((l.tag&e)===e){var m=l.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,c=t;var E=n,H=x;try{H()}catch(X){ze(c,E,X)}}}l=l.next}while(l!==r)}}catch(X){ze(t,t.return,X)}}function kh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Rd(t,n)}catch(l){ze(e,e.return,l)}}}function Yh(e,t,n){n.props=zl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){ze(e,t,l)}}function di(e,t){try{var n=e.ref;if(n!==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 n=="function"?e.refCleanup=n(l):n.current=l}}catch(c){ze(e,t,c)}}function tn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(c){ze(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){ze(e,t,c)}else n.current=null}function qh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(c){ze(e,e.return,c)}}function bs(e,t,n){try{var l=e.stateNode;W0(l,e.type,n,t),l[ft]=t}catch(c){ze(e,e.return,c)}}function Vh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nl(e.type)||e.tag===4}function Ss(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vh(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&&nl(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 ws(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dn));else if(l!==4&&(l===27&&nl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ws(e,t,n),e=e.sibling;e!==null;)ws(e,t,n),e=e.sibling}function Hc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&nl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Hc(e,t,n),e=e.sibling;e!==null;)Hc(e,t,n),e=e.sibling}function Xh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);it(t,l,n),t[tt]=e,t[ft]=n}catch(r){ze(e,e.return,r)}}var wn=!1,Pe=!1,Es=!1,Gh=typeof WeakSet=="function"?WeakSet:Set,et=null;function z0(e,t){if(e=e.containerInfo,Gs=ao,e=nd(e),vr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var c=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var m=0,x=-1,E=-1,H=0,X=0,Q=e,B=null;t:for(;;){for(var k;Q!==n||c!==0&&Q.nodeType!==3||(x=m+c),Q!==r||l!==0&&Q.nodeType!==3||(E=m+l),Q.nodeType===3&&(m+=Q.nodeValue.length),(k=Q.firstChild)!==null;)B=Q,Q=k;for(;;){if(Q===e)break t;if(B===n&&++H===c&&(x=m),B===r&&++X===l&&(E=m),(k=Q.nextSibling)!==null)break;Q=B,B=Q.parentNode}Q=k}n=x===-1||E===-1?null:{start:x,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fs={focusedElem:e,selectionRange:n},ao=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,r=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(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,n=t,c=r.memoizedProps,r=r.memoizedState,l=n.stateNode;try{var ae=zl(n.type,c);e=l.getSnapshotBeforeUpdate(ae,r),l.__reactInternalSnapshotBeforeUpdate=e}catch(he){ze(n,n.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Zs(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zs(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function Fh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Cn(e,n),l&4&&fi(5,n);break;case 1:if(Cn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){ze(n,n.return,m)}else{var c=zl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){ze(n,n.return,m)}}l&64&&kh(n),l&512&&di(n,n.return);break;case 3:if(Cn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Rd(e,t)}catch(m){ze(n,n.return,m)}}break;case 27:t===null&&l&4&&Xh(n);case 26:case 5:Cn(e,n),t===null&&l&4&&qh(n),l&512&&di(n,n.return);break;case 12:Cn(e,n);break;case 31:Cn(e,n),l&4&&Zh(e,n);break;case 13:Cn(e,n),l&4&&Ph(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=k0.bind(null,n),ix(e,n))));break;case 22:if(l=n.memoizedState!==null||wn,!l){t=t!==null&&t.memoizedState!==null||Pe,c=wn;var r=Pe;wn=l,(Pe=t)&&!r?Nn(e,n,(n.subtreeFlags&8772)!==0):Cn(e,n),wn=c,Pe=r}break;case 30:break;default:Cn(e,n)}}function Kh(e){var t=e.alternate;t!==null&&(e.alternate=null,Kh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Io(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 Be=null,ht=!1;function En(e,t,n){for(n=n.child;n!==null;)Qh(e,t,n),n=n.sibling}function Qh(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Ua,n)}catch{}switch(n.tag){case 26:Pe||tn(n,t),En(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pe||tn(n,t);var l=Be,c=ht;nl(n.type)&&(Be=n.stateNode,ht=!1),En(e,t,n),Si(n.stateNode),Be=l,ht=c;break;case 5:Pe||tn(n,t);case 6:if(l=Be,c=ht,Be=null,En(e,t,n),Be=l,ht=c,Be!==null)if(ht)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(n.stateNode)}catch(r){ze(n,t,r)}else try{Be.removeChild(n.stateNode)}catch(r){ze(n,t,r)}break;case 18:Be!==null&&(ht?(e=Be,km(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ba(e)):km(Be,n.stateNode));break;case 4:l=Be,c=ht,Be=n.stateNode.containerInfo,ht=!0,En(e,t,n),Be=l,ht=c;break;case 0:case 11:case 14:case 15:Pn(2,n,t),Pe||Pn(4,n,t),En(e,t,n);break;case 1:Pe||(tn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Yh(n,t,l)),En(e,t,n);break;case 21:En(e,t,n);break;case 22:Pe=(l=Pe)||n.memoizedState!==null,En(e,t,n),Pe=l;break;default:En(e,t,n)}}function Zh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ba(e)}catch(n){ze(t,t.return,n)}}}function Ph(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ba(e)}catch(n){ze(t,t.return,n)}}function O0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Gh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Gh),t;default:throw Error(s(435,e.tag))}}function Bc(e,t){var n=O0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var c=Y0.bind(null,e,l);l.then(c,c)}})}function mt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var c=n[l],r=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 27:if(nl(x.type)){Be=x.stateNode,ht=!1;break e}break;case 5:Be=x.stateNode,ht=!1;break e;case 3:case 4:Be=x.stateNode.containerInfo,ht=!0;break e}x=x.return}if(Be===null)throw Error(s(160));Qh(r,m,c),Be=null,ht=!1,r=c.alternate,r!==null&&(r.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Jh(t,e),t=t.sibling}var Kt=null;function Jh(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:mt(t,e),pt(e),l&4&&(Pn(3,e,e.return),fi(3,e),Pn(5,e,e.return));break;case 1:mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),l&64&&wn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var c=Kt;if(mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),l&4){var r=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":r=c.getElementsByTagName("title")[0],(!r||r[ka]||r[tt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=c.createElement(l),c.head.insertBefore(r,c.querySelector("head > title"))),it(r,l,n),r[tt]=e,Ie(r),l=r;break e;case"link":var m=Jm("link","href",c).get(l+(n.href||""));if(m){for(var x=0;x<m.length;x++)if(r=m[x],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(x,1);break t}}r=c.createElement(l),it(r,l,n),c.head.appendChild(r);break;case"meta":if(m=Jm("meta","content",c).get(l+(n.content||""))){for(x=0;x<m.length;x++)if(r=m[x],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(x,1);break t}}r=c.createElement(l),it(r,l,n),c.head.appendChild(r);break;default:throw Error(s(468,l))}r[tt]=e,Ie(r),l=r}e.stateNode=l}else Wm(c,e.type,e.stateNode);else e.stateNode=Pm(c,l,e.memoizedProps);else r!==l?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,l===null?Wm(c,e.type,e.stateNode):Pm(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&bs(e,e.memoizedProps,n.memoizedProps)}break;case 27:mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),n!==null&&l&4&&bs(e,e.memoizedProps,n.memoizedProps);break;case 5:if(mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),e.flags&32){c=e.stateNode;try{Xl(c,"")}catch(ae){ze(e,e.return,ae)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,bs(e,c,n!==null?n.memoizedProps:c)),l&1024&&(Es=!0);break;case 6:if(mt(t,e),pt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ae){ze(e,e.return,ae)}}break;case 3:if(eo=null,c=Kt,Kt=$c(t.containerInfo),mt(t,e),Kt=c,pt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ba(t.containerInfo)}catch(ae){ze(e,e.return,ae)}Es&&(Es=!1,Wh(e));break;case 4:l=Kt,Kt=$c(e.stateNode.containerInfo),mt(t,e),pt(e),Kt=l;break;case 12:mt(t,e),pt(e);break;case 31:mt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bc(e,l)));break;case 13:mt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Yc=xt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bc(e,l)));break;case 22:c=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,H=wn,X=Pe;if(wn=H||c,Pe=X||E,mt(t,e),Pe=X,wn=H,pt(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||E||wn||Pe||Ol(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(r=E.stateNode,c)m=r.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=E.stateNode;var Q=E.memoizedProps.style,B=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;x.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(ae){ze(E,E.return,ae)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=c?"":E.memoizedProps}catch(ae){ze(E,E.return,ae)}}}else if(t.tag===18){if(n===null){E=t;try{var k=E.stateNode;c?Ym(k,!0):Ym(E.stateNode,!1)}catch(ae){ze(E,E.return,ae)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Bc(e,n))));break;case 19:mt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bc(e,l)));break;case 30:break;case 21:break;default:mt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Vh(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var c=n.stateNode,r=Ss(e);Hc(e,r,c);break;case 5:var m=n.stateNode;n.flags&32&&(Xl(m,""),n.flags&=-33);var x=Ss(e);Hc(e,x,m);break;case 3:case 4:var E=n.stateNode.containerInfo,H=Ss(e);ws(e,H,E);break;default:throw Error(s(161))}}catch(X){ze(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Wh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Fh(e,t.alternate,t),t=t.sibling}function Ol(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pn(4,t,t.return),Ol(t);break;case 1:tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Yh(t,t.return,n),Ol(t);break;case 27:Si(t.stateNode);case 26:case 5:tn(t,t.return),Ol(t);break;case 22:t.memoizedState===null&&Ol(t);break;case 30:Ol(t);break;default:Ol(t)}e=e.sibling}}function Nn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,r=t,m=r.flags;switch(r.tag){case 0:case 11:case 15:Nn(c,r,n),fi(4,r);break;case 1:if(Nn(c,r,n),l=r,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(H){ze(l,l.return,H)}if(l=r,c=l.updateQueue,c!==null){var x=l.stateNode;try{var E=c.shared.hiddenCallbacks;if(E!==null)for(c.shared.hiddenCallbacks=null,c=0;c<E.length;c++)Ad(E[c],x)}catch(H){ze(l,l.return,H)}}n&&m&64&&kh(r),di(r,r.return);break;case 27:Xh(r);case 26:case 5:Nn(c,r,n),n&&l===null&&m&4&&qh(r),di(r,r.return);break;case 12:Nn(c,r,n);break;case 31:Nn(c,r,n),n&&m&4&&Zh(c,r);break;case 13:Nn(c,r,n),n&&m&4&&Ph(c,r);break;case 22:r.memoizedState===null&&Nn(c,r,n),di(r,r.return);break;case 30:break;default:Nn(c,r,n)}t=t.sibling}}function Cs(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&$a(n))}function Ns(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e))}function Qt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$h(e,t,n,l),t=t.sibling}function $h(e,t,n,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,n,l),c&2048&&fi(9,t);break;case 1:Qt(e,t,n,l);break;case 3:Qt(e,t,n,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e)));break;case 12:if(c&2048){Qt(e,t,n,l),e=t.stateNode;try{var r=t.memoizedProps,m=r.id,x=r.onPostCommit;typeof x=="function"&&x(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){ze(t,t.return,E)}}else Qt(e,t,n,l);break;case 31:Qt(e,t,n,l);break;case 13:Qt(e,t,n,l);break;case 23:break;case 22:r=t.stateNode,m=t.alternate,t.memoizedState!==null?r._visibility&2?Qt(e,t,n,l):hi(e,t):r._visibility&2?Qt(e,t,n,l):(r._visibility|=2,sa(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Cs(m,t);break;case 24:Qt(e,t,n,l),c&2048&&Ns(t.alternate,t);break;default:Qt(e,t,n,l)}}function sa(e,t,n,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,m=t,x=n,E=l,H=m.flags;switch(m.tag){case 0:case 11:case 15:sa(r,m,x,E,c),fi(8,m);break;case 23:break;case 22:var X=m.stateNode;m.memoizedState!==null?X._visibility&2?sa(r,m,x,E,c):hi(r,m):(X._visibility|=2,sa(r,m,x,E,c)),c&&H&2048&&Cs(m.alternate,m);break;case 24:sa(r,m,x,E,c),c&&H&2048&&Ns(m.alternate,m);break;default:sa(r,m,x,E,c)}t=t.sibling}}function hi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,c=l.flags;switch(l.tag){case 22:hi(n,l),c&2048&&Cs(l.alternate,l);break;case 24:hi(n,l),c&2048&&Ns(l.alternate,l);break;default:hi(n,l)}t=t.sibling}}var mi=8192;function ua(e,t,n){if(e.subtreeFlags&mi)for(e=e.child;e!==null;)Ih(e,t,n),e=e.sibling}function Ih(e,t,n){switch(e.tag){case 26:ua(e,t,n),e.flags&mi&&e.memoizedState!==null&&gx(n,Kt,e.memoizedState,e.memoizedProps);break;case 5:ua(e,t,n);break;case 3:case 4:var l=Kt;Kt=$c(e.stateNode.containerInfo),ua(e,t,n),Kt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=mi,mi=16777216,ua(e,t,n),mi=l):ua(e,t,n));break;default:ua(e,t,n)}}function em(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 pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];et=l,nm(l,e)}em(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)tm(e),e=e.sibling}function tm(e){switch(e.tag){case 0:case 11:case 15:pi(e),e.flags&2048&&Pn(9,e,e.return);break;case 3:pi(e);break;case 12:pi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,kc(e)):pi(e);break;default:pi(e)}}function kc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];et=l,nm(l,e)}em(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pn(8,t,t.return),kc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,kc(t));break;default:kc(t)}e=e.sibling}}function nm(e,t){for(;et!==null;){var n=et;switch(n.tag){case 0:case 11:case 15:Pn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:$a(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,et=l;else e:for(n=e;et!==null;){l=et;var c=l.sibling,r=l.return;if(Kh(l),l===n){et=null;break e}if(c!==null){c.return=r,et=c;break e}et=r}}}var _0={getCacheForType:function(e){var t=lt(Ke),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return lt(Ke).controller.signal}},D0=typeof WeakMap=="function"?WeakMap:Map,Te=0,Me=null,xe=null,Se=0,Re=0,jt=null,Jn=!1,fa=!1,js=!1,jn=0,qe=0,Wn=0,_l=0,Ts=0,Tt=0,da=0,vi=null,vt=null,As=!1,Yc=0,lm=0,qc=1/0,Vc=null,$n=null,We=0,In=null,ha=null,Tn=0,Rs=0,zs=null,am=null,gi=0,Os=null;function At(){return(Te&2)!==0&&Se!==0?Se&-Se:_.T!==null?Hs():bf()}function im(){if(Tt===0)if((Se&536870912)===0||Ce){var e=Ji;Ji<<=1,(Ji&3932160)===0&&(Ji=262144),Tt=e}else Tt=536870912;return e=Ct.current,e!==null&&(e.flags|=32),Tt}function gt(e,t,n){(e===Me&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(ma(e,0),el(e,Se,Tt,!1)),Ba(e,n),((Te&2)===0||e!==Me)&&(e===Me&&((Te&2)===0&&(_l|=n),qe===4&&el(e,Se,Tt,!1)),nn(e))}function cm(e,t,n){if((Te&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ha(e,t),c=l?U0(e,t):Ds(e,t,!0),r=l;do{if(c===0){fa&&!l&&el(e,t,0,!1);break}else{if(n=e.current.alternate,r&&!M0(n)){c=Ds(e,t,!1),r=!1;continue}if(c===2){if(r=t,e.errorRecoveryDisabledLanes&r)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var x=e;c=vi;var E=x.current.memoizedState.isDehydrated;if(E&&(ma(x,m).flags|=256),m=Ds(x,m,!1),m!==2){if(js&&!E){x.errorRecoveryDisabledLanes|=r,_l|=r,c=4;break e}r=vt,vt=c,r!==null&&(vt===null?vt=r:vt.push.apply(vt,r))}c=m}if(r=!1,c!==2)continue}}if(c===1){ma(e,0),el(e,t,0,!0);break}e:{switch(l=e,r=c,r){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:el(l,t,Tt,!Jn);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(c=Yc+300-xt(),10<c)){if(el(l,t,Tt,!Jn),$i(l,0,!0)!==0)break e;Tn=t,l.timeoutHandle=Hm(om.bind(null,l,n,vt,Vc,As,t,Tt,_l,da,Jn,r,"Throttled",-0,0),c);break e}om(l,n,vt,Vc,As,t,Tt,_l,da,Jn,r,null,-0,0)}}break}while(!0);nn(e)}function om(e,t,n,l,c,r,m,x,E,H,X,Q,B,k){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:dn},Ih(t,r,Q);var ae=(r&62914560)===r?Yc-xt():(r&4194048)===r?lm-xt():0;if(ae=yx(Q,ae),ae!==null){Tn=r,e.cancelPendingCommit=ae(pm.bind(null,e,t,r,n,l,c,m,x,E,X,Q,null,B,k)),el(e,r,m,!H);return}}pm(e,t,r,n,l,c,m,x,E)}function M0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var c=n[l],r=c.getSnapshot;c=c.value;try{if(!wt(r(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 el(e,t,n,l){t&=~Ts,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var r=31-St(c),m=1<<r;l[r]=-1,c&=~m}n!==0&&gf(e,n,t)}function Xc(){return(Te&6)===0?(yi(0),!1):!0}function _s(){if(xe!==null){if(Re===0)var e=xe.return;else e=xe,vn=El=null,Zr(e),aa=null,ei=0,e=xe;for(;e!==null;)Bh(e.alternate,e),e=e.return;xe=null}}function ma(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,ex(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Tn=0,_s(),Me=e,xe=n=mn(e.current,null),Se=t,Re=0,jt=null,Jn=!1,fa=Ha(e,t),js=!1,da=Tt=Ts=_l=Wn=qe=0,vt=vi=null,As=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-St(l),r=1<<c;t|=e[c],l&=~r}return jn=t,uc(),n}function rm(e,t){ge=null,_.H=ri,t===la||t===yc?(t=Cd(),Re=3):t===Ur?(t=Cd(),Re=4):Re=t===us?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,xe===null&&(qe=1,_c(e,Bt(t,e.current)))}function sm(){var e=Ct.current;return e===null?!0:(Se&4194048)===Se?Vt===null:(Se&62914560)===Se||(Se&536870912)!==0?e===Vt:!1}function um(){var e=_.H;return _.H=ri,e===null?ri:e}function fm(){var e=_.A;return _.A=_0,e}function Gc(){qe=4,Jn||(Se&4194048)!==Se&&Ct.current!==null||(fa=!0),(Wn&134217727)===0&&(_l&134217727)===0||Me===null||el(Me,Se,Tt,!1)}function Ds(e,t,n){var l=Te;Te|=2;var c=um(),r=fm();(Me!==e||Se!==t)&&(Vc=null,ma(e,t)),t=!1;var m=qe;e:do try{if(Re!==0&&xe!==null){var x=xe,E=jt;switch(Re){case 8:_s(),m=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var H=Re;if(Re=0,jt=null,pa(e,x,E,H),n&&fa){m=0;break e}break;default:H=Re,Re=0,jt=null,pa(e,x,E,H)}}L0(),m=qe;break}catch(X){rm(e,X)}while(!0);return t&&e.shellSuspendCounter++,vn=El=null,Te=l,_.H=c,_.A=r,xe===null&&(Me=null,Se=0,uc()),m}function L0(){for(;xe!==null;)dm(xe)}function U0(e,t){var n=Te;Te|=2;var l=um(),c=fm();Me!==e||Se!==t?(Vc=null,qc=xt()+500,ma(e,t)):fa=Ha(e,t);e:do try{if(Re!==0&&xe!==null){t=xe;var r=jt;t:switch(Re){case 1:Re=0,jt=null,pa(e,t,r,1);break;case 2:case 9:if(wd(r)){Re=0,jt=null,hm(t);break}t=function(){Re!==2&&Re!==9||Me!==e||(Re=7),nn(e)},r.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:wd(r)?(Re=0,jt=null,hm(t)):(Re=0,jt=null,pa(e,t,r,7));break;case 5:var m=null;switch(xe.tag){case 26:m=xe.memoizedState;case 5:case 27:var x=xe;if(m?$m(m):x.stateNode.complete){Re=0,jt=null;var E=x.sibling;if(E!==null)xe=E;else{var H=x.return;H!==null?(xe=H,Fc(H)):xe=null}break t}}Re=0,jt=null,pa(e,t,r,5);break;case 6:Re=0,jt=null,pa(e,t,r,6);break;case 8:_s(),qe=6;break e;default:throw Error(s(462))}}H0();break}catch(X){rm(e,X)}while(!0);return vn=El=null,_.H=l,_.A=c,Te=n,xe!==null?0:(Me=null,Se=0,uc(),qe)}function H0(){for(;xe!==null&&!cy();)dm(xe)}function dm(e){var t=Uh(e.alternate,e,jn);e.memoizedProps=e.pendingProps,t===null?Fc(e):xe=t}function hm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=zh(n,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=zh(n,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Zr(t);default:Bh(n,t),t=xe=fd(t,jn),t=Uh(n,t,jn)}e.memoizedProps=e.pendingProps,t===null?Fc(e):xe=t}function pa(e,t,n,l){vn=El=null,Zr(t),aa=null,ei=0;var c=t.return;try{if(N0(e,c,t,n,Se)){qe=1,_c(e,Bt(n,e.current)),xe=null;return}}catch(r){if(c!==null)throw xe=c,r;qe=1,_c(e,Bt(n,e.current)),xe=null;return}t.flags&32768?(Ce||l===1?e=!0:fa||(Se&536870912)!==0?e=!1:(Jn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ct.current,l!==null&&l.tag===13&&(l.flags|=16384))),mm(t,e)):Fc(t)}function Fc(e){var t=e;do{if((t.flags&32768)!==0){mm(t,Jn);return}e=t.return;var n=A0(t.alternate,t,jn);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);qe===0&&(qe=5)}function mm(e,t){do{var n=R0(e.alternate,e);if(n!==null){n.flags&=32767,xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=n}while(e!==null);qe=6,xe=null}function pm(e,t,n,l,c,r,m,x,E){e.cancelPendingCommit=null;do Kc();while(We!==0);if((Te&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(r=t.lanes|t.childLanes,r|=Sr,vy(e,n,r,m,x,E),e===Me&&(xe=Me=null,Se=0),ha=t,In=e,Tn=n,Rs=r,zs=c,am=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,q0(Zi,function(){return bm(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,c=L.p,L.p=2,m=Te,Te|=4;try{z0(e,t,n)}finally{Te=m,L.p=c,_.T=l}}We=1,vm(),gm(),ym()}}function vm(){if(We===1){We=0;var e=In,t=ha,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var l=L.p;L.p=2;var c=Te;Te|=4;try{Jh(t,e);var r=Fs,m=nd(e.containerInfo),x=r.focusedElem,E=r.selectionRange;if(m!==x&&x&&x.ownerDocument&&td(x.ownerDocument.documentElement,x)){if(E!==null&&vr(x)){var H=E.start,X=E.end;if(X===void 0&&(X=H),"selectionStart"in x)x.selectionStart=H,x.selectionEnd=Math.min(X,x.value.length);else{var Q=x.ownerDocument||document,B=Q&&Q.defaultView||window;if(B.getSelection){var k=B.getSelection(),ae=x.textContent.length,he=Math.min(E.start,ae),De=E.end===void 0?he:Math.min(E.end,ae);!k.extend&&he>De&&(m=De,De=he,he=m);var O=ed(x,he),A=ed(x,De);if(O&&A&&(k.rangeCount!==1||k.anchorNode!==O.node||k.anchorOffset!==O.offset||k.focusNode!==A.node||k.focusOffset!==A.offset)){var U=Q.createRange();U.setStart(O.node,O.offset),k.removeAllRanges(),he>De?(k.addRange(U),k.extend(A.node,A.offset)):(U.setEnd(A.node,A.offset),k.addRange(U))}}}}for(Q=[],k=x;k=k.parentNode;)k.nodeType===1&&Q.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Q.length;x++){var F=Q[x];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}ao=!!Gs,Fs=Gs=null}finally{Te=c,L.p=l,_.T=n}}e.current=t,We=2}}function gm(){if(We===2){We=0;var e=In,t=ha,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var l=L.p;L.p=2;var c=Te;Te|=4;try{Fh(e,t.alternate,t)}finally{Te=c,L.p=l,_.T=n}}We=3}}function ym(){if(We===4||We===3){We=0,oy();var e=In,t=ha,n=Tn,l=am;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,ha=In=null,xm(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&($n=null),Wo(n),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(Ua,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=_.T,c=L.p,L.p=2,_.T=null;try{for(var r=e.onRecoverableError,m=0;m<l.length;m++){var x=l[m];r(x.value,{componentStack:x.stack})}}finally{_.T=t,L.p=c}}(Tn&3)!==0&&Kc(),nn(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===Os?gi++:(gi=0,Os=e):gi=0,yi(0)}}function xm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$a(t)))}function Kc(){return vm(),gm(),ym(),bm()}function bm(){if(We!==5)return!1;var e=In,t=Rs;Rs=0;var n=Wo(Tn),l=_.T,c=L.p;try{L.p=32>n?32:n,_.T=null,n=zs,zs=null;var r=In,m=Tn;if(We=0,ha=In=null,Tn=0,(Te&6)!==0)throw Error(s(331));var x=Te;if(Te|=4,tm(r.current),$h(r,r.current,m,n),Te=x,yi(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(Ua,r)}catch{}return!0}finally{L.p=c,_.T=l,xm(e,t)}}function Sm(e,t,n){t=Bt(n,t),t=ss(e.stateNode,t,2),e=Kn(e,t,2),e!==null&&(Ba(e,2),nn(e))}function ze(e,t,n){if(e.tag===3)Sm(e,e,n);else for(;t!==null;){if(t.tag===3){Sm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&($n===null||!$n.has(l))){e=Bt(n,e),n=wh(2),l=Kn(t,n,2),l!==null&&(Eh(n,l,t,e),Ba(l,2),nn(l));break}}t=t.return}}function Ms(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new D0;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(n)||(js=!0,c.add(n),e=B0.bind(null,e,t,n),t.then(e,e))}function B0(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Me===e&&(Se&n)===n&&(qe===4||qe===3&&(Se&62914560)===Se&&300>xt()-Yc?(Te&2)===0&&ma(e,0):Ts|=n,da===Se&&(da=0)),nn(e)}function wm(e,t){t===0&&(t=vf()),e=bl(e,t),e!==null&&(Ba(e,t),nn(e))}function k0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wm(e,n)}function Y0(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),wm(e,n)}function q0(e,t){return Qo(e,t)}var Qc=null,va=null,Ls=!1,Zc=!1,Us=!1,tl=0;function nn(e){e!==va&&e.next===null&&(va===null?Qc=va=e:va=va.next=e),Zc=!0,Ls||(Ls=!0,X0())}function yi(e,t){if(!Us&&Zc){Us=!0;do for(var n=!1,l=Qc;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var r=0;else{var m=l.suspendedLanes,x=l.pingedLanes;r=(1<<31-St(42|e)+1)-1,r&=c&~(m&~x),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,jm(l,r))}else r=Se,r=$i(l,l===Me?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||Ha(l,r)||(n=!0,jm(l,r));l=l.next}while(n);Us=!1}}function V0(){Em()}function Em(){Zc=Ls=!1;var e=0;tl!==0&&I0()&&(e=tl);for(var t=xt(),n=null,l=Qc;l!==null;){var c=l.next,r=Cm(l,t);r===0?(l.next=null,n===null?Qc=c:n.next=c,c===null&&(va=n)):(n=l,(e!==0||(r&3)!==0)&&(Zc=!0)),l=c}We!==0&&We!==5||yi(e),tl!==0&&(tl=0)}function Cm(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var m=31-St(r),x=1<<m,E=c[m];E===-1?((x&n)===0||(x&l)!==0)&&(c[m]=py(x,t)):E<=t&&(e.expiredLanes|=x),r&=~x}if(t=Me,n=Se,n=$i(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Zo(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ha(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Zo(l),Wo(n)){case 2:case 8:n=mf;break;case 32:n=Zi;break;case 268435456:n=pf;break;default:n=Zi}return l=Nm.bind(null,e),n=Qo(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Zo(l),e.callbackPriority=2,e.callbackNode=null,2}function Nm(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Kc()&&e.callbackNode!==n)return null;var l=Se;return l=$i(e,e===Me?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(cm(e,l,t),Cm(e,xt()),e.callbackNode!=null&&e.callbackNode===n?Nm.bind(null,e):null)}function jm(e,t){if(Kc())return null;cm(e,t,!0)}function X0(){tx(function(){(Te&6)!==0?Qo(hf,V0):Em()})}function Hs(){if(tl===0){var e=ta;e===0&&(e=Pi,Pi<<=1,(Pi&261888)===0&&(Pi=256)),tl=e}return tl}function Tm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:nc(""+e)}function Am(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function G0(e,t,n,l,c){if(t==="submit"&&n&&n.stateNode===c){var r=Tm((c[ft]||null).action),m=l.submitter;m&&(t=(t=m[ft]||null)?Tm(t.formAction):m.getAttribute("formAction"),t!==null&&(r=t,m=null));var x=new cc("action","action",null,l,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(tl!==0){var E=m?Am(c,m):new FormData(c);ls(n,{pending:!0,data:E,method:c.method,action:r},null,E)}}else typeof r=="function"&&(x.preventDefault(),E=m?Am(c,m):new FormData(c),ls(n,{pending:!0,data:E,method:c.method,action:r},r,E))},currentTarget:c}]})}}for(var Bs=0;Bs<br.length;Bs++){var ks=br[Bs],F0=ks.toLowerCase(),K0=ks[0].toUpperCase()+ks.slice(1);Ft(F0,"on"+K0)}Ft(id,"onAnimationEnd"),Ft(cd,"onAnimationIteration"),Ft(od,"onAnimationStart"),Ft("dblclick","onDoubleClick"),Ft("focusin","onFocus"),Ft("focusout","onBlur"),Ft(r0,"onTransitionRun"),Ft(s0,"onTransitionStart"),Ft(u0,"onTransitionCancel"),Ft(rd,"onTransitionEnd"),ql("onMouseEnter",["mouseout","mouseover"]),ql("onMouseLeave",["mouseout","mouseover"]),ql("onPointerEnter",["pointerout","pointerover"]),ql("onPointerLeave",["pointerout","pointerover"]),vl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vl("onBeforeInput",["compositionend","keypress","textInput","paste"]),vl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xi="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(" "),Q0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xi));function Rm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],c=l.event;l=l.listeners;e:{var r=void 0;if(t)for(var m=l.length-1;0<=m;m--){var x=l[m],E=x.instance,H=x.currentTarget;if(x=x.listener,E!==r&&c.isPropagationStopped())break e;r=x,c.currentTarget=H;try{r(c)}catch(X){sc(X)}c.currentTarget=null,r=E}else for(m=0;m<l.length;m++){if(x=l[m],E=x.instance,H=x.currentTarget,x=x.listener,E!==r&&c.isPropagationStopped())break e;r=x,c.currentTarget=H;try{r(c)}catch(X){sc(X)}c.currentTarget=null,r=E}}}}function be(e,t){var n=t[$o];n===void 0&&(n=t[$o]=new Set);var l=e+"__bubble";n.has(l)||(zm(t,e,2,!1),n.add(l))}function Ys(e,t,n){var l=0;t&&(l|=4),zm(n,e,l,t)}var Pc="_reactListening"+Math.random().toString(36).slice(2);function qs(e){if(!e[Pc]){e[Pc]=!0,Ef.forEach(function(n){n!=="selectionchange"&&(Q0.has(n)||Ys(n,!1,e),Ys(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pc]||(t[Pc]=!0,Ys("selectionchange",!1,t))}}function zm(e,t,n,l){switch(ip(t)){case 2:var c=Sx;break;case 8:c=wx;break;default:c=nu}n=c.bind(null,t,n,e),c=void 0,!or||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function Vs(e,t,n,l,c){var r=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var x=l.stateNode.containerInfo;if(x===c)break;if(m===4)for(m=l.return;m!==null;){var E=m.tag;if((E===3||E===4)&&m.stateNode.containerInfo===c)return;m=m.return}for(;x!==null;){if(m=Bl(x),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){l=r=m;continue e}x=x.parentNode}}l=l.return}Lf(function(){var H=r,X=ir(n),Q=[];e:{var B=sd.get(e);if(B!==void 0){var k=cc,ae=e;switch(e){case"keypress":if(ac(n)===0)break e;case"keydown":case"keyup":k=Yy;break;case"focusin":ae="focus",k=fr;break;case"focusout":ae="blur",k=fr;break;case"beforeblur":case"afterblur":k=fr;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Bf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Ay;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Xy;break;case id:case cd:case od:k=Oy;break;case rd:k=Fy;break;case"scroll":case"scrollend":k=jy;break;case"wheel":k=Qy;break;case"copy":case"cut":case"paste":k=Dy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Yf;break;case"toggle":case"beforetoggle":k=Py}var he=(t&4)!==0,De=!he&&(e==="scroll"||e==="scrollend"),O=he?B!==null?B+"Capture":null:B;he=[];for(var A=H,U;A!==null;){var F=A;if(U=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||U===null||O===null||(F=qa(A,O),F!=null&&he.push(bi(A,F,U))),De)break;A=A.return}0<he.length&&(B=new k(B,ae,null,n,X),Q.push({event:B,listeners:he}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",B&&n!==ar&&(ae=n.relatedTarget||n.fromElement)&&(Bl(ae)||ae[Hl]))break e;if((k||B)&&(B=X.window===X?X:(B=X.ownerDocument)?B.defaultView||B.parentWindow:window,k?(ae=n.relatedTarget||n.toElement,k=H,ae=ae?Bl(ae):null,ae!==null&&(De=d(ae),he=ae.tag,ae!==De||he!==5&&he!==27&&he!==6)&&(ae=null)):(k=null,ae=H),k!==ae)){if(he=Bf,F="onMouseLeave",O="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(he=Yf,F="onPointerLeave",O="onPointerEnter",A="pointer"),De=k==null?B:Ya(k),U=ae==null?B:Ya(ae),B=new he(F,A+"leave",k,n,X),B.target=De,B.relatedTarget=U,F=null,Bl(X)===H&&(he=new he(O,A+"enter",ae,n,X),he.target=U,he.relatedTarget=De,F=he),De=F,k&&ae)t:{for(he=Z0,O=k,A=ae,U=0,F=O;F;F=he(F))U++;F=0;for(var ue=A;ue;ue=he(ue))F++;for(;0<U-F;)O=he(O),U--;for(;0<F-U;)A=he(A),F--;for(;U--;){if(O===A||A!==null&&O===A.alternate){he=O;break t}O=he(O),A=he(A)}he=null}else he=null;k!==null&&Om(Q,B,k,he,!1),ae!==null&&De!==null&&Om(Q,De,ae,he,!0)}}e:{if(B=H?Ya(H):window,k=B.nodeName&&B.nodeName.toLowerCase(),k==="select"||k==="input"&&B.type==="file")var Ne=Zf;else if(Kf(B))if(Pf)Ne=i0;else{Ne=l0;var ie=n0}else k=B.nodeName,!k||k.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?H&&lr(H.elementType)&&(Ne=Zf):Ne=a0;if(Ne&&(Ne=Ne(e,H))){Qf(Q,Ne,n,X);break e}ie&&ie(e,B,H),e==="focusout"&&H&&B.type==="number"&&H.memoizedProps.value!=null&&nr(B,"number",B.value)}switch(ie=H?Ya(H):window,e){case"focusin":(Kf(ie)||ie.contentEditable==="true")&&(Ql=ie,gr=H,Pa=null);break;case"focusout":Pa=gr=Ql=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,ld(Q,n,X);break;case"selectionchange":if(o0)break;case"keydown":case"keyup":ld(Q,n,X)}var ye;if(hr)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Kl?Gf(e,n)&&(we="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(we="onCompositionStart");we&&(qf&&n.locale!=="ko"&&(Kl||we!=="onCompositionStart"?we==="onCompositionEnd"&&Kl&&(ye=Uf()):(kn=X,rr="value"in kn?kn.value:kn.textContent,Kl=!0)),ie=Jc(H,we),0<ie.length&&(we=new kf(we,e,null,n,X),Q.push({event:we,listeners:ie}),ye?we.data=ye:(ye=Ff(n),ye!==null&&(we.data=ye)))),(ye=Wy?$y(e,n):Iy(e,n))&&(we=Jc(H,"onBeforeInput"),0<we.length&&(ie=new kf("onBeforeInput","beforeinput",null,n,X),Q.push({event:ie,listeners:we}),ie.data=ye)),G0(Q,e,H,n,X)}Rm(Q,t)})}function bi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jc(e,t){for(var n=t+"Capture",l=[];e!==null;){var c=e,r=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||r===null||(c=qa(e,n),c!=null&&l.unshift(bi(e,c,r)),c=qa(e,t),c!=null&&l.push(bi(e,c,r))),e.tag===3)return l;e=e.return}return[]}function Z0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Om(e,t,n,l,c){for(var r=t._reactName,m=[];n!==null&&n!==l;){var x=n,E=x.alternate,H=x.stateNode;if(x=x.tag,E!==null&&E===l)break;x!==5&&x!==26&&x!==27||H===null||(E=H,c?(H=qa(n,r),H!=null&&m.unshift(bi(n,H,E))):c||(H=qa(n,r),H!=null&&m.push(bi(n,H,E)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var P0=/\r\n?/g,J0=/\u0000|\uFFFD/g;function _m(e){return(typeof e=="string"?e:""+e).replace(P0,`
9
+ `).replace(J0,"")}function Dm(e,t){return t=_m(t),_m(e)===t}function _e(e,t,n,l,c,r){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Xl(e,""+l);break;case"className":ec(e,"class",l);break;case"tabIndex":ec(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ec(e,n,l);break;case"style":Df(e,l,r);break;case"data":if(t!=="object"){ec(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=nc(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&_e(e,t,"name",c.name,c,null),_e(e,t,"formEncType",c.formEncType,c,null),_e(e,t,"formMethod",c.formMethod,c,null),_e(e,t,"formTarget",c.formTarget,c,null)):(_e(e,t,"encType",c.encType,c,null),_e(e,t,"method",c.method,c,null),_e(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=nc(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=dn);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=n}}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}n=nc(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":be("beforetoggle",e),be("toggle",e),Ii(e,"popover",l);break;case"xlinkActuate":fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":fn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":fn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":fn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":fn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ii(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Cy.get(n)||n,Ii(e,n,l))}}function Xs(e,t,n,l,c,r){switch(n){case"style":Df(e,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&Xl(e,""+l);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"onClick":l!=null&&(e.onclick=dn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),r=e[ft]||null,r=r!=null?r[n]:null,typeof r=="function"&&e.removeEventListener(t,r,c),typeof l=="function")){typeof r!="function"&&r!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,c);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Ii(e,n,l)}}}function it(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var l=!1,c=!1,r;for(r in n)if(n.hasOwnProperty(r)){var m=n[r];if(m!=null)switch(r){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:_e(e,t,r,m,n,null)}}c&&_e(e,t,"srcSet",n.srcSet,n,null),l&&_e(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var x=r=m=c=null,E=null,H=null;for(l in n)if(n.hasOwnProperty(l)){var X=n[l];if(X!=null)switch(l){case"name":c=X;break;case"type":m=X;break;case"checked":E=X;break;case"defaultChecked":H=X;break;case"value":r=X;break;case"defaultValue":x=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,t));break;default:_e(e,t,l,X,n,null)}}Rf(e,r,x,E,H,m,c,!1);return;case"select":be("invalid",e),l=m=r=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":r=x;break;case"defaultValue":m=x;break;case"multiple":l=x;default:_e(e,t,c,x,n,null)}t=r,n=m,e.multiple=!!l,t!=null?Vl(e,!!l,t,!1):n!=null&&Vl(e,!!l,n,!0);return;case"textarea":be("invalid",e),r=c=l=null;for(m in n)if(n.hasOwnProperty(m)&&(x=n[m],x!=null))switch(m){case"value":l=x;break;case"defaultValue":c=x;break;case"children":r=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(s(91));break;default:_e(e,t,m,x,n,null)}Of(e,l,c,r);return;case"option":for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":_e(e,t,E,l,n,null));return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(l=0;l<xi.length;l++)be(xi[l],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("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(H in n)if(n.hasOwnProperty(H)&&(l=n[H],l!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:_e(e,t,H,l,n,null)}return;default:if(lr(t)){for(X in n)n.hasOwnProperty(X)&&(l=n[X],l!==void 0&&Xs(e,t,X,l,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(l=n[x],l!=null&&_e(e,t,x,l,n,null))}function W0(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,r=null,m=null,x=null,E=null,H=null,X=null;for(k in n){var Q=n[k];if(n.hasOwnProperty(k)&&Q!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":E=Q;default:l.hasOwnProperty(k)||_e(e,t,k,null,l,Q)}}for(var B in l){var k=l[B];if(Q=n[B],l.hasOwnProperty(B)&&(k!=null||Q!=null))switch(B){case"type":r=k;break;case"name":c=k;break;case"checked":H=k;break;case"defaultChecked":X=k;break;case"value":m=k;break;case"defaultValue":x=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:k!==Q&&_e(e,t,B,k,l,Q)}}tr(e,m,x,E,H,X,r,c);return;case"select":k=m=x=B=null;for(r in n)if(E=n[r],n.hasOwnProperty(r)&&E!=null)switch(r){case"value":break;case"multiple":k=E;default:l.hasOwnProperty(r)||_e(e,t,r,null,l,E)}for(c in l)if(r=l[c],E=n[c],l.hasOwnProperty(c)&&(r!=null||E!=null))switch(c){case"value":B=r;break;case"defaultValue":x=r;break;case"multiple":m=r;default:r!==E&&_e(e,t,c,r,l,E)}t=x,n=m,l=k,B!=null?Vl(e,!!n,B,!1):!!l!=!!n&&(t!=null?Vl(e,!!n,t,!0):Vl(e,!!n,n?[]:"",!1));return;case"textarea":k=B=null;for(x in n)if(c=n[x],n.hasOwnProperty(x)&&c!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:_e(e,t,x,null,l,c)}for(m in l)if(c=l[m],r=n[m],l.hasOwnProperty(m)&&(c!=null||r!=null))switch(m){case"value":B=c;break;case"defaultValue":k=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:c!==r&&_e(e,t,m,c,l,r)}zf(e,B,k);return;case"option":for(var ae in n)B=n[ae],n.hasOwnProperty(ae)&&B!=null&&!l.hasOwnProperty(ae)&&(ae==="selected"?e.selected=!1:_e(e,t,ae,null,l,B));for(E in l)B=l[E],k=n[E],l.hasOwnProperty(E)&&B!==k&&(B!=null||k!=null)&&(E==="selected"?e.selected=B&&typeof B!="function"&&typeof B!="symbol":_e(e,t,E,B,l,k));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 he in n)B=n[he],n.hasOwnProperty(he)&&B!=null&&!l.hasOwnProperty(he)&&_e(e,t,he,null,l,B);for(H in l)if(B=l[H],k=n[H],l.hasOwnProperty(H)&&B!==k&&(B!=null||k!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:_e(e,t,H,B,l,k)}return;default:if(lr(t)){for(var De in n)B=n[De],n.hasOwnProperty(De)&&B!==void 0&&!l.hasOwnProperty(De)&&Xs(e,t,De,void 0,l,B);for(X in l)B=l[X],k=n[X],!l.hasOwnProperty(X)||B===k||B===void 0&&k===void 0||Xs(e,t,X,B,l,k);return}}for(var O in n)B=n[O],n.hasOwnProperty(O)&&B!=null&&!l.hasOwnProperty(O)&&_e(e,t,O,null,l,B);for(Q in l)B=l[Q],k=n[Q],!l.hasOwnProperty(Q)||B===k||B==null&&k==null||_e(e,t,Q,B,l,k)}function Mm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var c=n[l],r=c.transferSize,m=c.initiatorType,x=c.duration;if(r&&x&&Mm(m)){for(m=0,x=c.responseEnd,l+=1;l<n.length;l++){var E=n[l],H=E.startTime;if(H>x)break;var X=E.transferSize,Q=E.initiatorType;X&&Mm(Q)&&(E=E.responseEnd,m+=X*(E<x?1:(x-H)/(E-H)))}if(--l,t+=8*(r+m)/(c.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 Gs=null,Fs=null;function Wc(e){return e.nodeType===9?e:e.ownerDocument}function Lm(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 Um(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 Ks(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 Qs=null;function I0(){var e=window.event;return e&&e.type==="popstate"?e===Qs?!1:(Qs=e,!0):(Qs=null,!1)}var Hm=typeof setTimeout=="function"?setTimeout:void 0,ex=typeof clearTimeout=="function"?clearTimeout:void 0,Bm=typeof Promise=="function"?Promise:void 0,tx=typeof queueMicrotask=="function"?queueMicrotask:typeof Bm<"u"?function(e){return Bm.resolve(null).then(e).catch(nx)}:Hm;function nx(e){setTimeout(function(){throw e})}function nl(e){return e==="head"}function km(e,t){var n=t,l=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(c),ba(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Si(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Si(n);for(var r=n.firstChild;r;){var m=r.nextSibling,x=r.nodeName;r[ka]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=m}}else n==="body"&&Si(e.ownerDocument.body);n=c}while(n);ba(t)}function Ym(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Zs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Zs(n),Io(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function lx(e,t,n,l){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ka])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function ax(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Xt(e.nextSibling),e===null))return null;return e}function qm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function Ps(e){return e.data==="$?"||e.data==="$~"}function Js(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ix(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Xt(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 Ws=null;function Vm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Xt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Xm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Gm(e,t,n){switch(t=Wc(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Si(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Io(e)}var Gt=new Map,Fm=new Set;function $c(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var An=L.d;L.d={f:cx,r:ox,D:rx,C:sx,L:ux,m:fx,X:hx,S:dx,M:mx};function cx(){var e=An.f(),t=Xc();return e||t}function ox(e){var t=kl(e);t!==null&&t.tag===5&&t.type==="form"?rh(t):An.r(e)}var ga=typeof document>"u"?null:document;function Km(e,t,n){var l=ga;if(l&&typeof t=="string"&&t){var c=Ut(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),Fm.has(c)||(Fm.add(c),e={rel:e,crossOrigin:n,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),it(t,"link",e),Ie(t),l.head.appendChild(t)))}}function rx(e){An.D(e),Km("dns-prefetch",e,null)}function sx(e,t){An.C(e,t),Km("preconnect",e,t)}function ux(e,t,n){An.L(e,t,n);var l=ga;if(l&&e&&t){var c='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Ut(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Ut(n.imageSizes)+'"]')):c+='[href="'+Ut(e)+'"]';var r=c;switch(t){case"style":r=ya(e);break;case"script":r=xa(e)}Gt.has(r)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Gt.set(r,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(wi(r))||t==="script"&&l.querySelector(Ei(r))||(t=l.createElement("link"),it(t,"link",e),Ie(t),l.head.appendChild(t)))}}function fx(e,t){An.m(e,t);var n=ga;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',r=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=xa(e)}if(!Gt.has(r)&&(e=b({rel:"modulepreload",href:e},t),Gt.set(r,e),n.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ei(r)))return}l=n.createElement("link"),it(l,"link",e),Ie(l),n.head.appendChild(l)}}}function dx(e,t,n){An.S(e,t,n);var l=ga;if(l&&e){var c=Yl(l).hoistableStyles,r=ya(e);t=t||"default";var m=c.get(r);if(!m){var x={loading:0,preload:null};if(m=l.querySelector(wi(r)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Gt.get(r))&&$s(e,n);var E=m=l.createElement("link");Ie(E),it(E,"link",e),E._p=new Promise(function(H,X){E.onload=H,E.onerror=X}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Ic(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:x},c.set(r,m)}}}function hx(e,t){An.X(e,t);var n=ga;if(n&&e){var l=Yl(n).hoistableScripts,c=xa(e),r=l.get(c);r||(r=n.querySelector(Ei(c)),r||(e=b({src:e,async:!0},t),(t=Gt.get(c))&&Is(e,t),r=n.createElement("script"),Ie(r),it(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(c,r))}}function mx(e,t){An.M(e,t);var n=ga;if(n&&e){var l=Yl(n).hoistableScripts,c=xa(e),r=l.get(c);r||(r=n.querySelector(Ei(c)),r||(e=b({src:e,async:!0,type:"module"},t),(t=Gt.get(c))&&Is(e,t),r=n.createElement("script"),Ie(r),it(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(c,r))}}function Qm(e,t,n,l){var c=(c=me.current)?$c(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ya(n.href),n=Yl(c).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ya(n.href);var r=Yl(c).hoistableStyles,m=r.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,m),(r=c.querySelector(wi(e)))&&!r._p&&(m.instance=r,m.state.loading=5),Gt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Gt.set(e,n),r||px(c,e,n,m.state))),t&&l===null)throw Error(s(528,""));return m}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xa(n),n=Yl(c).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ya(e){return'href="'+Ut(e)+'"'}function wi(e){return'link[rel="stylesheet"]['+e+"]"}function Zm(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function px(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),it(t,"link",n),Ie(t),e.head.appendChild(t))}function xa(e){return'[src="'+Ut(e)+'"]'}function Ei(e){return"script[async]"+e}function Pm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ut(n.href)+'"]');if(l)return t.instance=l,Ie(l),l;var c=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ie(l),it(l,"style",c),Ic(l,n.precedence,e),t.instance=l;case"stylesheet":c=ya(n.href);var r=e.querySelector(wi(c));if(r)return t.state.loading|=4,t.instance=r,Ie(r),r;l=Zm(n),(c=Gt.get(c))&&$s(l,c),r=(e.ownerDocument||e).createElement("link"),Ie(r);var m=r;return m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),it(r,"link",l),t.state.loading|=4,Ic(r,n.precedence,e),t.instance=r;case"script":return r=xa(n.src),(c=e.querySelector(Ei(r)))?(t.instance=c,Ie(c),c):(l=n,(c=Gt.get(r))&&(l=b({},n),Is(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),Ie(c),it(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ic(l,n.precedence,e));return t.instance}function Ic(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,r=c,m=0;m<l.length;m++){var x=l[m];if(x.dataset.precedence===t)r=x;else if(r!==c)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function $s(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var eo=null;function Jm(e,t,n){if(eo===null){var l=new Map,c=eo=new Map;c.set(n,l)}else c=eo,l=c.get(n),l||(l=new Map,c.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var r=n[c];if(!(r[ka]||r[tt]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var m=r.getAttribute(t)||"";m=e+m;var x=l.get(m);x?x.push(r):l.set(m,[r])}}return l}function Wm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function vx(e,t,n){if(n===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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 $m(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function gx(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=ya(l.href),r=t.querySelector(wi(c));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=to.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=r,Ie(r);return}r=t.ownerDocument||t,l=Zm(l),(c=Gt.get(c))&&$s(l,c),r=r.createElement("link"),Ie(r);var m=r;m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),it(r,"link",l),n.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=to.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var eu=0;function yx(e,t){return e.stylesheets&&e.count===0&&lo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&lo(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&eu===0&&(eu=62500*$0());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lo(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>eu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function to(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var no=null;function lo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,no=new Map,t.forEach(xx,e),no=null,to.call(e))}function xx(e,t){if(!(t.state.loading&4)){var n=no.get(e);if(n)var l=n.get(null);else{n=new Map,no.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<c.length;r++){var m=c[r];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),l=m)}l&&n.set(null,l)}c=t.instance,m=c.getAttribute("data-precedence"),r=n.get(m)||l,r===l&&n.set(null,c),n.set(m,c),this.count++,l=to.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),r?r.parentNode.insertBefore(c,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Ci={$$typeof:M,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function bx(e,t,n,l,c,r,m,x,E){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=Po(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Po(0),this.hiddenUpdates=Po(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=r,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Im(e,t,n,l,c,r,m,x,E,H,X,Q){return e=new bx(e,t,n,m,E,H,X,Q,x),t=1,r===!0&&(t|=24),r=Et(3,null,null,t),e.current=r,r.stateNode=e,t=Dr(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:l,isDehydrated:n,cache:t},Hr(r),e}function ep(e){return e?(e=Jl,e):Jl}function tp(e,t,n,l,c,r){c=ep(c),l.context===null?l.context=c:l.pendingContext=c,l=Fn(t),l.payload={element:n},r=r===void 0?null:r,r!==null&&(l.callback=r),n=Kn(e,l,t),n!==null&&(gt(n,e,t),ni(n,e,t))}function np(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function tu(e,t){np(e,t),(e=e.alternate)&&np(e,t)}function lp(e){if(e.tag===13||e.tag===31){var t=bl(e,67108864);t!==null&&gt(t,e,67108864),tu(e,67108864)}}function ap(e){if(e.tag===13||e.tag===31){var t=At();t=Jo(t);var n=bl(e,t);n!==null&&gt(n,e,t),tu(e,t)}}var ao=!0;function Sx(e,t,n,l){var c=_.T;_.T=null;var r=L.p;try{L.p=2,nu(e,t,n,l)}finally{L.p=r,_.T=c}}function wx(e,t,n,l){var c=_.T;_.T=null;var r=L.p;try{L.p=8,nu(e,t,n,l)}finally{L.p=r,_.T=c}}function nu(e,t,n,l){if(ao){var c=lu(l);if(c===null)Vs(e,t,l,io,n),cp(e,l);else if(Cx(c,e,t,n,l))l.stopPropagation();else if(cp(e,l),t&4&&-1<Ex.indexOf(e)){for(;c!==null;){var r=kl(c);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var m=pl(r.pendingLanes);if(m!==0){var x=r;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var E=1<<31-St(m);x.entanglements[1]|=E,m&=~E}nn(r),(Te&6)===0&&(qc=xt()+500,yi(0))}}break;case 31:case 13:x=bl(r,2),x!==null&&gt(x,r,2),Xc(),tu(r,2)}if(r=lu(l),r===null&&Vs(e,t,l,io,n),r===c)break;c=r}c!==null&&l.stopPropagation()}else Vs(e,t,l,null,n)}}function lu(e){return e=ir(e),au(e)}var io=null;function au(e){if(io=null,e=Bl(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return io=e,null}function ip(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(ry()){case hf:return 2;case mf:return 8;case Zi:case sy:return 32;case pf:return 268435456;default:return 32}default:return 32}}var iu=!1,ll=null,al=null,il=null,Ni=new Map,ji=new Map,cl=[],Ex="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 cp(e,t){switch(e){case"focusin":case"focusout":ll=null;break;case"dragenter":case"dragleave":al=null;break;case"mouseover":case"mouseout":il=null;break;case"pointerover":case"pointerout":Ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ji.delete(t.pointerId)}}function Ti(e,t,n,l,c,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:r,targetContainers:[c]},t!==null&&(t=kl(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Cx(e,t,n,l,c){switch(t){case"focusin":return ll=Ti(ll,e,t,n,l,c),!0;case"dragenter":return al=Ti(al,e,t,n,l,c),!0;case"mouseover":return il=Ti(il,e,t,n,l,c),!0;case"pointerover":var r=c.pointerId;return Ni.set(r,Ti(Ni.get(r)||null,e,t,n,l,c)),!0;case"gotpointercapture":return r=c.pointerId,ji.set(r,Ti(ji.get(r)||null,e,t,n,l,c)),!0}return!1}function op(e){var t=Bl(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Sf(e.priority,function(){ap(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Sf(e.priority,function(){ap(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function co(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=lu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);ar=l,n.target.dispatchEvent(l),ar=null}else return t=kl(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function rp(e,t,n){co(e)&&n.delete(t)}function Nx(){iu=!1,ll!==null&&co(ll)&&(ll=null),al!==null&&co(al)&&(al=null),il!==null&&co(il)&&(il=null),Ni.forEach(rp),ji.forEach(rp)}function oo(e,t){e.blockedOn===t&&(e.blockedOn=null,iu||(iu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Nx)))}var ro=null;function sp(e){ro!==e&&(ro=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){ro===e&&(ro=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(au(l||n)===null)continue;break}var r=kl(n);r!==null&&(e.splice(t,3),t-=3,ls(r,{pending:!0,data:c,method:n.method,action:l},l,c))}}))}function ba(e){function t(E){return oo(E,e)}ll!==null&&oo(ll,e),al!==null&&oo(al,e),il!==null&&oo(il,e),Ni.forEach(t),ji.forEach(t);for(var n=0;n<cl.length;n++){var l=cl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<cl.length&&(n=cl[0],n.blockedOn===null);)op(n),n.blockedOn===null&&cl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var c=n[l],r=n[l+1],m=c[ft]||null;if(typeof r=="function")m||sp(n);else if(m){var x=null;if(r&&r.hasAttribute("formAction")){if(c=r,m=r[ft]||null)x=m.formAction;else if(au(c)!==null)continue}else x=m.action;typeof x=="function"?n[l+1]=x:(n.splice(l,3),l-=3),sp(n)}}}function up(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(m){return c=m})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function cu(e){this._internalRoot=e}so.prototype.render=cu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=At();tp(n,l,e,t,null,null)},so.prototype.unmount=cu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;tp(e.current,2,null,e,null,null),Xc(),t[Hl]=null}};function so(e){this._internalRoot=e}so.prototype.unstable_scheduleHydration=function(e){if(e){var t=bf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cl.length&&t!==0&&t<cl[n].priority;n++);cl.splice(n,0,e),n===0&&op(e)}};var fp=i.version;if(fp!=="19.2.3")throw Error(s(527,fp,"19.2.3"));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var jx={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uo.isDisabled&&uo.supportsFiber)try{Ua=uo.inject(jx),bt=uo}catch{}}return Ri.createRoot=function(e,t){if(!f(e))throw Error(s(299));var n=!1,l="",c=yh,r=xh,m=bh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Im(e,1,!1,null,null,n,l,null,c,r,m,up),e[Hl]=t.current,qs(e),new cu(t)},Ri.hydrateRoot=function(e,t,n){if(!f(e))throw Error(s(299));var l=!1,c="",r=yh,m=xh,x=bh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=Im(e,1,!0,t,n??null,l,c,E,r,m,x,up),t.context=ep(null),n=t.current,l=At(),l=Jo(l),c=Fn(l),c.callback=null,Kn(n,c,l),n=l,t.current.lanes=n,Ba(t,n),nn(t),e[Hl]=t.current,qs(e),new so(t)},Ri.version="19.2.3",Ri}var Sp;function Ux(){if(Sp)return su.exports;Sp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),su.exports=Lx(),su.exports}var Hx=Ux();var wp="popstate";function Bx(a={}){function i(s,f){let{pathname:d,search:h,hash:p}=s.location;return Ru("",{pathname:d,search:h,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function o(s,f){return typeof f=="string"?f:ki(f)}return Yx(i,o,null,a)}function ke(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Dt(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function kx(){return Math.random().toString(36).substring(2,10)}function Ep(a,i){return{usr:a.state,key:a.key,idx:i}}function Ru(a,i,o=null,s){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Ra(i):i,state:o,key:i&&i.key||s||kx()}}function ki({pathname:a="/",search:i="",hash:o=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(a+=o.charAt(0)==="#"?o:"#"+o),a}function Ra(a){let i={};if(a){let o=a.indexOf("#");o>=0&&(i.hash=a.substring(o),a=a.substring(0,o));let s=a.indexOf("?");s>=0&&(i.search=a.substring(s),a=a.substring(0,s)),a&&(i.pathname=a)}return i}function Yx(a,i,o,s={}){let{window:f=document.defaultView,v5Compat:d=!1}=s,h=f.history,p="POP",v=null,y=S();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function S(){return(h.state||{idx:null}).idx}function b(){p="POP";let j=S(),z=j==null?null:j-y;y=j,v&&v({action:p,location:w.location,delta:z})}function C(j,z){p="PUSH";let R=Ru(w.location,j,z);y=S()+1;let M=Ep(R,y),Y=w.createHref(R);try{h.pushState(M,"",Y)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;f.location.assign(Y)}d&&v&&v({action:p,location:w.location,delta:1})}function N(j,z){p="REPLACE";let R=Ru(w.location,j,z);y=S();let M=Ep(R,y),Y=w.createHref(R);h.replaceState(M,"",Y),d&&v&&v({action:p,location:w.location,delta:0})}function D(j){return qx(j)}let w={get action(){return p},get location(){return a(f,h)},listen(j){if(v)throw new Error("A history only accepts one active listener");return f.addEventListener(wp,b),v=j,()=>{f.removeEventListener(wp,b),v=null}},createHref(j){return i(f,j)},createURL:D,encodeLocation(j){let z=D(j);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:C,replace:N,go(j){return h.go(j)}};return w}function qx(a,i=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),ke(o,"No window.location.(origin|href) available to create URL");let s=typeof a=="string"?a:ki(a);return s=s.replace(/ $/,"%20"),!i&&s.startsWith("//")&&(s=o+s),new URL(s,o)}function mv(a,i,o="/"){return Vx(a,i,o,!1)}function Vx(a,i,o,s){let f=typeof i=="string"?Ra(i):i,d=_n(f.pathname||"/",o);if(d==null)return null;let h=pv(a);Xx(h);let p=null;for(let v=0;p==null&&v<h.length;++v){let y=eb(d);p=$x(h[v],y,s)}return p}function pv(a,i=[],o=[],s="",f=!1){let d=(h,p,v=f,y)=>{let S={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(s)&&v)return;ke(S.relativePath.startsWith(s),`Absolute route path "${S.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(s.length)}let b=On([s,S.relativePath]),C=o.concat(S);h.children&&h.children.length>0&&(ke(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),pv(h.children,i,C,b,v)),!(h.path==null&&!h.index)&&i.push({path:b,score:Jx(b,h.index),routesMeta:C})};return a.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))d(h,p);else for(let v of vv(h.path))d(h,p,!0,v)}),i}function vv(a){let i=a.split("/");if(i.length===0)return[];let[o,...s]=i,f=o.endsWith("?"),d=o.replace(/\?$/,"");if(s.length===0)return f?[d,""]:[d];let h=vv(s.join("/")),p=[];return p.push(...h.map(v=>v===""?d:[d,v].join("/"))),f&&p.push(...h),p.map(v=>a.startsWith("/")&&v===""?"/":v)}function Xx(a){a.sort((i,o)=>i.score!==o.score?o.score-i.score:Wx(i.routesMeta.map(s=>s.childrenIndex),o.routesMeta.map(s=>s.childrenIndex)))}var Gx=/^:[\w-]+$/,Fx=3,Kx=2,Qx=1,Zx=10,Px=-2,Cp=a=>a==="*";function Jx(a,i){let o=a.split("/"),s=o.length;return o.some(Cp)&&(s+=Px),i&&(s+=Kx),o.filter(f=>!Cp(f)).reduce((f,d)=>f+(Gx.test(d)?Fx:d===""?Qx:Zx),s)}function Wx(a,i){return a.length===i.length&&a.slice(0,-1).every((s,f)=>s===i[f])?a[a.length-1]-i[i.length-1]:0}function $x(a,i,o=!1){let{routesMeta:s}=a,f={},d="/",h=[];for(let p=0;p<s.length;++p){let v=s[p],y=p===s.length-1,S=d==="/"?i:i.slice(d.length)||"/",b=To({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},S),C=v.route;if(!b&&y&&o&&!s[s.length-1].route.index&&(b=To({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},S)),!b)return null;Object.assign(f,b.params),h.push({params:f,pathname:On([d,b.pathname]),pathnameBase:ab(On([d,b.pathnameBase])),route:C}),b.pathnameBase!=="/"&&(d=On([d,b.pathnameBase]))}return h}function To(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[o,s]=Ix(a.path,a.caseSensitive,a.end),f=i.match(o);if(!f)return null;let d=f[0],h=d.replace(/(.)\/+$/,"$1"),p=f.slice(1);return{params:s.reduce((y,{paramName:S,isOptional:b},C)=>{if(S==="*"){let D=p[C]||"";h=d.slice(0,d.length-D.length).replace(/(.)\/+$/,"$1")}const N=p[C];return b&&!N?y[S]=void 0:y[S]=(N||"").replace(/%2F/g,"/"),y},{}),pathname:d,pathnameBase:h,pattern:a}}function Ix(a,i=!1,o=!0){Dt(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let s=[],f="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,v)=>(s.push({paramName:p,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(s.push({paramName:"*"}),f+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?f+="\\/*$":a!==""&&a!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),s]}function eb(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Dt(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function _n(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let o=i.endsWith("/")?i.length-1:i.length,s=a.charAt(o);return s&&s!=="/"?null:a.slice(o)||"/"}var gv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tb=a=>gv.test(a);function nb(a,i="/"){let{pathname:o,search:s="",hash:f=""}=typeof a=="string"?Ra(a):a,d;if(o)if(tb(o))d=o;else{if(o.includes("//")){let h=o;o=o.replace(/\/\/+/g,"/"),Dt(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${o}`)}o.startsWith("/")?d=Np(o.substring(1),"/"):d=Np(o,i)}else d=i;return{pathname:d,search:ib(s),hash:cb(f)}}function Np(a,i){let o=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(f=>{f===".."?o.length>1&&o.pop():f!=="."&&o.push(f)}),o.length>1?o.join("/"):"/"}function hu(a,i,o,s){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}]. 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 lb(a){return a.filter((i,o)=>o===0||i.route.path&&i.route.path.length>0)}function Qu(a){let i=lb(a);return i.map((o,s)=>s===i.length-1?o.pathname:o.pathnameBase)}function Zu(a,i,o,s=!1){let f;typeof a=="string"?f=Ra(a):(f={...a},ke(!f.pathname||!f.pathname.includes("?"),hu("?","pathname","search",f)),ke(!f.pathname||!f.pathname.includes("#"),hu("#","pathname","hash",f)),ke(!f.search||!f.search.includes("#"),hu("#","search","hash",f)));let d=a===""||f.pathname==="",h=d?"/":f.pathname,p;if(h==null)p=o;else{let b=i.length-1;if(!s&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),b-=1;f.pathname=C.join("/")}p=b>=0?i[b]:"/"}let v=nb(f,p),y=h&&h!=="/"&&h.endsWith("/"),S=(d||h===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(y||S)&&(v.pathname+="/"),v}var On=a=>a.join("/").replace(/\/\/+/g,"/"),ab=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),ib=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,cb=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,ob=class{constructor(a,i,o,s=!1){this.status=a,this.statusText=i||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function rb(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function sb(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var yv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function xv(a,i){let o=a;if(typeof o!="string"||!gv.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let s=o,f=!1;if(yv)try{let d=new URL(window.location.href),h=o.startsWith("//")?new URL(d.protocol+o):new URL(o),p=_n(h.pathname,i);h.origin===d.origin&&p!=null?o=p+h.search+h.hash:f=!0}catch{Dt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:f,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var bv=["POST","PUT","PATCH","DELETE"];new Set(bv);var ub=["GET",...bv];new Set(ub);var za=g.createContext(null);za.displayName="DataRouter";var Lo=g.createContext(null);Lo.displayName="DataRouterState";var fb=g.createContext(!1),Sv=g.createContext({isTransitioning:!1});Sv.displayName="ViewTransition";var db=g.createContext(new Map);db.displayName="Fetchers";var hb=g.createContext(null);hb.displayName="Await";var Mt=g.createContext(null);Mt.displayName="Navigation";var Vi=g.createContext(null);Vi.displayName="Location";var rn=g.createContext({outlet:null,matches:[],isDataRoute:!1});rn.displayName="Route";var Pu=g.createContext(null);Pu.displayName="RouteError";var wv="REACT_ROUTER_ERROR",mb="REDIRECT",pb="ROUTE_ERROR_RESPONSE";function vb(a){if(a.startsWith(`${wv}:${mb}:{`))try{let i=JSON.parse(a.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function gb(a){if(a.startsWith(`${wv}:${pb}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new ob(i.status,i.statusText,i.data)}catch{}}function yb(a,{relative:i}={}){ke(Oa(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:s}=g.useContext(Mt),{hash:f,pathname:d,search:h}=Xi(a,{relative:i}),p=d;return o!=="/"&&(p=d==="/"?o:On([o,d])),s.createHref({pathname:p,search:h,hash:f})}function Oa(){return g.useContext(Vi)!=null}function sn(){return ke(Oa(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Vi).location}var Ev="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Cv(a){g.useContext(Mt).static||g.useLayoutEffect(a)}function Un(){let{isDataRoute:a}=g.useContext(rn);return a?Ob():xb()}function xb(){ke(Oa(),"useNavigate() may be used only in the context of a <Router> component.");let a=g.useContext(za),{basename:i,navigator:o}=g.useContext(Mt),{matches:s}=g.useContext(rn),{pathname:f}=sn(),d=JSON.stringify(Qu(s)),h=g.useRef(!1);return Cv(()=>{h.current=!0}),g.useCallback((v,y={})=>{if(Dt(h.current,Ev),!h.current)return;if(typeof v=="number"){o.go(v);return}let S=Zu(v,JSON.parse(d),f,y.relative==="path");a==null&&i!=="/"&&(S.pathname=S.pathname==="/"?i:On([i,S.pathname])),(y.replace?o.replace:o.push)(S,y.state,y)},[i,o,d,f,a])}g.createContext(null);function Xi(a,{relative:i}={}){let{matches:o}=g.useContext(rn),{pathname:s}=sn(),f=JSON.stringify(Qu(o));return g.useMemo(()=>Zu(a,JSON.parse(f),s,i==="path"),[a,f,s,i])}function bb(a,i){return Nv(a,i)}function Nv(a,i,o,s,f){ke(Oa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=g.useContext(Mt),{matches:h}=g.useContext(rn),p=h[h.length-1],v=p?p.params:{},y=p?p.pathname:"/",S=p?p.pathnameBase:"/",b=p&&p.route;{let R=b&&b.path||"";Tv(y,!b||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${R}">) 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.
10
10
 
11
- Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let C=sn(),N;if(i){let O=typeof i=="string"?Ra(i):i;ke(S==="/"||O.pathname?.startsWith(S),`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 "${S}" but pathname "${O.pathname}" was given in the \`location\` prop.`),N=O}else N=C;let D=N.pathname||"/",w=D;if(S!=="/"){let O=S.replace(/^\//,"").split("/");w="/"+D.replace(/^\//,"").split("/").slice(O.length).join("/")}let j=hv(a,{pathname:w});Dt(b||j!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),Dt(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.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 R=Cb(j&&j.map(O=>Object.assign({},O,{params:Object.assign({},v,O.params),pathname:On([S,d.encodeLocation?d.encodeLocation(O.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?S:On([S,d.encodeLocation?d.encodeLocation(O.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),h,r,s,f);return i&&R?g.createElement(Gi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...N},navigationType:"POP"}},R):R}function bb(){let a=Rb(),i=ob(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),r=a instanceof Error?a.stack:null,s="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:s},d={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:d},"ErrorBoundary")," or"," ",g.createElement("code",{style:d},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},i),r?g.createElement("pre",{style:f},r):null,h)}var Sb=g.createElement(bb,null),Nv=class extends g.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const r=vb(a.digest);r&&(a=r)}let i=a!==void 0?g.createElement(rn.Provider,{value:this.props.routeContext},g.createElement(Zu.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?g.createElement(wb,{error:a},i):i}};Nv.contextType=ub;var hu=new WeakMap;function wb({children:a,error:i}){let{basename:r}=g.useContext(Mt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let s=pb(i.digest);if(s){let f=hu.get(i);if(f)throw f;let d=yv(s.location,r);if(gv&&!hu.get(i))if(d.isExternal||s.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:s.replace}));throw hu.set(i,h),h}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return a}function Eb({routeContext:a,match:i,children:r}){let s=g.useContext(Oa);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),g.createElement(rn.Provider,{value:a},r)}function Cb(a,i=[],r=null,s=null,f=null){if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let d=a,h=r?.errors;if(h!=null){let S=d.findIndex(b=>b.route.id&&h?.[b.route.id]!==void 0);ke(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,S+1))}let p=!1,v=-1;if(r)for(let S=0;S<d.length;S++){let b=d[S];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(v=S),b.route.id){let{loaderData:C,errors:N}=r,D=b.route.loader&&!C.hasOwnProperty(b.route.id)&&(!N||N[b.route.id]===void 0);if(b.route.lazy||D){p=!0,v>=0?d=d.slice(0,v+1):d=[d[0]];break}}}let y=r&&s?(S,b)=>{s(S,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:rb(r.matches),errorInfo:b})}:void 0;return d.reduceRight((S,b,C)=>{let N,D=!1,w=null,j=null;r&&(N=h&&b.route.id?h[b.route.id]:void 0,w=b.route.errorElement||Sb,p&&(v<0&&C===0?(jv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,j=null):v===C&&(D=!0,j=b.route.hydrateFallbackElement||null)));let R=i.concat(d.slice(0,C+1)),O=()=>{let M;return N?M=w:D?M=j:b.route.Component?M=g.createElement(b.route.Component,null):b.route.element?M=b.route.element:M=S,g.createElement(Eb,{match:b,routeContext:{outlet:S,matches:R,isDataRoute:r!=null},children:M})};return r&&(b.route.ErrorBoundary||b.route.errorElement||C===0)?g.createElement(Nv,{location:r.location,revalidation:r.revalidation,component:w,error:N,children:O(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:y}):O()},null)}function Pu(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nb(a){let i=g.useContext(Oa);return ke(i,Pu(a)),i}function jb(a){let i=g.useContext(Lo);return ke(i,Pu(a)),i}function Tb(a){let i=g.useContext(rn);return ke(i,Pu(a)),i}function Ju(a){let i=Tb(a),r=i.matches[i.matches.length-1];return ke(r.route.id,`${a} can only be used on routes that contain a unique "id"`),r.route.id}function Ab(){return Ju("useRouteId")}function Rb(){let a=g.useContext(Zu),i=jb("useRouteError"),r=Ju("useRouteError");return a!==void 0?a:i.errors?.[r]}function Ob(){let{router:a}=Nb("useNavigate"),i=Ju("useNavigate"),r=g.useRef(!1);return Ev(()=>{r.current=!0}),g.useCallback(async(f,d={})=>{Dt(r.current,wv),r.current&&(typeof f=="number"?await a.navigate(f):await a.navigate(f,{fromRouteId:i,...d}))},[a,i])}var Np={};function jv(a,i,r){!i&&!Np[a]&&(Np[a]=!0,Dt(!1,r))}g.memo(zb);function zb({routes:a,future:i,state:r,onError:s}){return Cv(a,void 0,r,s,i)}function _n({to:a,replace:i,state:r,relative:s}){ke(za(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=g.useContext(Mt);Dt(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=g.useContext(rn),{pathname:h}=sn(),p=Ln(),v=Qu(a,Ku(d),h,s==="path"),y=JSON.stringify(v);return g.useEffect(()=>{p(JSON.parse(y),{replace:i,state:r,relative:s})},[p,y,s,i,r]),null}function Rt(a){ke(!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 _b({basename:a="/",children:i=null,location:r,navigationType:s="POP",navigator:f,static:d=!1,unstable_useTransitions:h}){ke(!za(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=a.replace(/^\/*/,"/"),v=g.useMemo(()=>({basename:p,navigator:f,static:d,unstable_useTransitions:h,future:{}}),[p,f,d,h]);typeof r=="string"&&(r=Ra(r));let{pathname:y="/",search:S="",hash:b="",state:C=null,key:N="default"}=r,D=g.useMemo(()=>{let w=zn(y,p);return w==null?null:{location:{pathname:w,search:S,hash:b,state:C,key:N},navigationType:s}},[p,y,S,b,C,N,s]);return Dt(D!=null,`<Router basename="${p}"> is not able to match the URL "${y}${S}${b}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:g.createElement(Mt.Provider,{value:v},g.createElement(Gi.Provider,{children:i,value:D}))}function Db({children:a,location:i}){return xb(Ru(a),i)}function Ru(a,i=[]){let r=[];return g.Children.forEach(a,(s,f)=>{if(!g.isValidElement(s))return;let d=[...i,f];if(s.type===g.Fragment){r.push.apply(r,Ru(s.props.children,d));return}ke(s.type===Rt,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ke(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||d.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=Ru(s.props.children,d)),r.push(h)}),r}var Eo="get",Co="application/x-www-form-urlencoded";function Uo(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Mb(a){return Uo(a)&&a.tagName.toLowerCase()==="button"}function Lb(a){return Uo(a)&&a.tagName.toLowerCase()==="form"}function Ub(a){return Uo(a)&&a.tagName.toLowerCase()==="input"}function Hb(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function Bb(a,i){return a.button===0&&(!i||i==="_self")&&!Hb(a)}function Ou(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((i,r)=>{let s=a[r];return i.concat(Array.isArray(s)?s.map(f=>[r,f]):[[r,s]])},[]))}function kb(a,i){let r=Ou(a);return i&&i.forEach((s,f)=>{r.has(f)||i.getAll(f).forEach(d=>{r.append(f,d)})}),r}var mo=null;function Yb(){if(mo===null)try{new FormData(document.createElement("form"),0),mo=!1}catch{mo=!0}return mo}var qb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mu(a){return a!=null&&!qb.has(a)?(Dt(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Co}"`),null):a}function Vb(a,i){let r,s,f,d,h;if(Lb(a)){let p=a.getAttribute("action");s=p?zn(p,i):null,r=a.getAttribute("method")||Eo,f=mu(a.getAttribute("enctype"))||Co,d=new FormData(a)}else if(Mb(a)||Ub(a)&&(a.type==="submit"||a.type==="image")){let p=a.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=a.getAttribute("formaction")||p.getAttribute("action");if(s=v?zn(v,i):null,r=a.getAttribute("formmethod")||p.getAttribute("method")||Eo,f=mu(a.getAttribute("formenctype"))||mu(p.getAttribute("enctype"))||Co,d=new FormData(p,a),!Yb()){let{name:y,type:S,value:b}=a;if(S==="image"){let C=y?`${y}.`:"";d.append(`${C}x`,"0"),d.append(`${C}y`,"0")}else y&&d.append(y,b)}}else{if(Uo(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Eo,s=null,f=Co,h=a}return d&&f==="text/plain"&&(h=d,d=void 0),{action:s,method:r.toLowerCase(),encType:f,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Wu(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Xb(a,i,r,s){let f=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return r?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${s}`:f.pathname=`${f.pathname}.${s}`:f.pathname==="/"?f.pathname=`_root.${s}`:i&&zn(f.pathname,i)==="/"?f.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${s}`,f}async function Gb(a,i){if(a.id in i)return i[a.id];try{let r=await import(a.module);return i[a.id]=r,r}catch(r){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Fb(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function Kb(a,i,r){let s=await Promise.all(a.map(async f=>{let d=i.routes[f.route.id];if(d){let h=await Gb(d,r);return h.links?h.links():[]}return[]}));return Jb(s.flat(1).filter(Fb).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function jp(a,i,r,s,f,d){let h=(v,y)=>r[y]?v.route.id!==r[y].route.id:!0,p=(v,y)=>r[y].pathname!==v.pathname||r[y].route.path?.endsWith("*")&&r[y].params["*"]!==v.params["*"];return d==="assets"?i.filter((v,y)=>h(v,y)||p(v,y)):d==="data"?i.filter((v,y)=>{let S=s.routes[v.route.id];if(!S||!S.hasLoader)return!1;if(h(v,y)||p(v,y))return!0;if(v.route.shouldRevalidate){let b=v.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Qb(a,i,{includeHydrateFallback:r}={}){return Zb(a.map(s=>{let f=i.routes[s.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),r&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function Zb(a){return[...new Set(a)]}function Pb(a){let i={},r=Object.keys(a).sort();for(let s of r)i[s]=a[s];return i}function Jb(a,i){let r=new Set;return new Set(i),a.reduce((s,f)=>{let d=JSON.stringify(Pb(f));return r.has(d)||(r.add(d),s.push({key:d,link:f})),s},[])}function Tv(){let a=g.useContext(Oa);return Wu(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function Wb(){let a=g.useContext(Lo);return Wu(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Iu=g.createContext(void 0);Iu.displayName="FrameworkContext";function Av(){let a=g.useContext(Iu);return Wu(a,"You must render this element inside a <HydratedRouter> element"),a}function Ib(a,i){let r=g.useContext(Iu),[s,f]=g.useState(!1),[d,h]=g.useState(!1),{onFocus:p,onBlur:v,onMouseEnter:y,onMouseLeave:S,onTouchStart:b}=i,C=g.useRef(null);g.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let w=R=>{R.forEach(O=>{h(O.isIntersecting)})},j=new IntersectionObserver(w,{threshold:.5});return C.current&&j.observe(C.current),()=>{j.disconnect()}}},[a]),g.useEffect(()=>{if(s){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[s]);let N=()=>{f(!0)},D=()=>{f(!1),h(!1)};return r?a!=="intent"?[d,C,{}]:[d,C,{onFocus:Oi(p,N),onBlur:Oi(v,D),onMouseEnter:Oi(y,N),onMouseLeave:Oi(S,D),onTouchStart:Oi(b,N)}]:[!1,C,{}]}function Oi(a,i){return r=>{a&&a(r),r.defaultPrevented||i(r)}}function $b({page:a,...i}){let{router:r}=Tv(),s=g.useMemo(()=>hv(r.routes,a,r.basename),[r.routes,a,r.basename]);return s?g.createElement(t1,{page:a,matches:s,...i}):null}function e1(a){let{manifest:i,routeModules:r}=Av(),[s,f]=g.useState([]);return g.useEffect(()=>{let d=!1;return Kb(a,i,r).then(h=>{d||f(h)}),()=>{d=!0}},[a,i,r]),s}function t1({page:a,matches:i,...r}){let s=sn(),{future:f,manifest:d,routeModules:h}=Av(),{basename:p}=Tv(),{loaderData:v,matches:y}=Wb(),S=g.useMemo(()=>jp(a,i,y,d,s,"data"),[a,i,y,d,s]),b=g.useMemo(()=>jp(a,i,y,d,s,"assets"),[a,i,y,d,s]),C=g.useMemo(()=>{if(a===s.pathname+s.search+s.hash)return[];let w=new Set,j=!1;if(i.forEach(O=>{let M=d.routes[O.route.id];!M||!M.hasLoader||(!S.some(q=>q.route.id===O.route.id)&&O.route.id in v&&h[O.route.id]?.shouldRevalidate||M.hasClientLoader?j=!0:w.add(O.route.id))}),w.size===0)return[];let R=Xb(a,p,f.unstable_trailingSlashAwareDataRequests,"data");return j&&w.size>0&&R.searchParams.set("_routes",i.filter(O=>w.has(O.route.id)).map(O=>O.route.id).join(",")),[R.pathname+R.search]},[p,f.unstable_trailingSlashAwareDataRequests,v,s,d,S,i,a,h]),N=g.useMemo(()=>Qb(b,d),[b,d]),D=e1(b);return g.createElement(g.Fragment,null,C.map(w=>g.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),N.map(w=>g.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),D.map(({key:w,link:j})=>g.createElement("link",{key:w,nonce:r.nonce,...j})))}function n1(...a){return i=>{a.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var l1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{l1&&(window.__reactRouterVersion="7.12.0")}catch{}function a1({basename:a,children:i,unstable_useTransitions:r,window:s}){let f=g.useRef();f.current==null&&(f.current=Hx({window:s,v5Compat:!0}));let d=f.current,[h,p]=g.useState({action:d.action,location:d.location}),v=g.useCallback(y=>{r===!1?p(y):g.startTransition(()=>p(y))},[r]);return g.useLayoutEffect(()=>d.listen(v),[d,v]),g.createElement(_b,{basename:a,children:i,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:r})}var Rv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bi=g.forwardRef(function({onClick:i,discover:r="render",prefetch:s="none",relative:f,reloadDocument:d,replace:h,state:p,target:v,to:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...N},D){let{basename:w,unstable_useTransitions:j}=g.useContext(Mt),R=typeof y=="string"&&Rv.test(y),O=yv(y,w);y=O.to;let M=gb(y,{relative:f}),[q,Q,J]=Ib(s,N),Y=r1(y,{replace:h,state:p,target:v,preventScrollReset:S,relative:f,viewTransition:b,unstable_defaultShouldRevalidate:C,unstable_useTransitions:j});function I(re){i&&i(re),re.defaultPrevented||Y(re)}let le=g.createElement("a",{...N,...J,href:O.absoluteURL||M,onClick:O.isExternal||d?i:I,ref:n1(D,Q),target:v,"data-discover":!R&&r==="render"?"true":void 0});return q&&!R?g.createElement(g.Fragment,null,le,g.createElement($b,{page:M})):le});Bi.displayName="Link";var i1=g.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:s="",end:f=!1,style:d,to:h,viewTransition:p,children:v,...y},S){let b=Fi(h,{relative:y.relative}),C=sn(),N=g.useContext(Lo),{navigator:D,basename:w}=g.useContext(Mt),j=N!=null&&m1(b)&&p===!0,R=D.encodeLocation?D.encodeLocation(b).pathname:b.pathname,O=C.pathname,M=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;r||(O=O.toLowerCase(),M=M?M.toLowerCase():null,R=R.toLowerCase()),M&&w&&(M=zn(M,w)||M);const q=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let Q=O===R||!f&&O.startsWith(R)&&O.charAt(q)==="/",J=M!=null&&(M===R||!f&&M.startsWith(R)&&M.charAt(R.length)==="/"),Y={isActive:Q,isPending:J,isTransitioning:j},I=Q?i:void 0,le;typeof s=="function"?le=s(Y):le=[s,Q?"active":null,J?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let re=typeof d=="function"?d(Y):d;return g.createElement(Bi,{...y,"aria-current":I,className:le,ref:S,style:re,to:h,viewTransition:p},typeof v=="function"?v(Y):v)});i1.displayName="NavLink";var c1=g.forwardRef(({discover:a="render",fetcherKey:i,navigate:r,reloadDocument:s,replace:f,state:d,method:h=Eo,action:p,onSubmit:v,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...N},D)=>{let{unstable_useTransitions:w}=g.useContext(Mt),j=d1(),R=h1(p,{relative:y}),O=h.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&Rv.test(p),q=Q=>{if(v&&v(Q),Q.defaultPrevented)return;Q.preventDefault();let J=Q.nativeEvent.submitter,Y=J?.getAttribute("formmethod")||h,I=()=>j(J||Q.currentTarget,{fetcherKey:i,method:Y,navigate:r,replace:f,state:d,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C});w&&r!==!1?g.startTransition(()=>I()):I()};return g.createElement("form",{ref:D,method:O,action:R,onSubmit:s?v:q,...N,"data-discover":!M&&a==="render"?"true":void 0})});c1.displayName="Form";function o1(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ov(a){let i=g.useContext(Oa);return ke(i,o1(a)),i}function r1(a,{target:i,replace:r,state:s,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v}={}){let y=Ln(),S=sn(),b=Fi(a,{relative:d});return g.useCallback(C=>{if(Bb(C,i)){C.preventDefault();let N=r!==void 0?r:Yi(S)===Yi(b),D=()=>y(a,{replace:N,state:s,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p});v?g.startTransition(()=>D()):D()}},[S,y,b,r,s,i,a,f,d,h,p,v])}function s1(a){Dt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=g.useRef(Ou(a)),r=g.useRef(!1),s=sn(),f=g.useMemo(()=>kb(s.search,r.current?null:i.current),[s.search]),d=Ln(),h=g.useCallback((p,v)=>{const y=Ou(typeof p=="function"?p(new URLSearchParams(f)):p);r.current=!0,d("?"+y,v)},[d,f]);return[f,h]}var u1=0,f1=()=>`__${String(++u1)}__`;function d1(){let{router:a}=Ov("useSubmit"),{basename:i}=g.useContext(Mt),r=Ab(),s=a.fetch,f=a.navigate;return g.useCallback(async(d,h={})=>{let{action:p,method:v,encType:y,formData:S,body:b}=Vb(d,i);if(h.navigate===!1){let C=h.fetcherKey||f1();await s(C,r,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:b,formMethod:h.method||v,formEncType:h.encType||y,flushSync:h.flushSync})}else await f(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:b,formMethod:h.method||v,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,f,i,r])}function h1(a,{relative:i}={}){let{basename:r}=g.useContext(Mt),s=g.useContext(rn);ke(s,"useFormAction must be used inside a RouteContext");let[f]=s.matches.slice(-1),d={...Fi(a||".",{relative:i})},h=sn();if(a==null){d.search=h.search;let p=new URLSearchParams(d.search),v=p.getAll("index");if(v.some(S=>S==="")){p.delete("index"),v.filter(b=>b).forEach(b=>p.append("index",b));let S=p.toString();d.search=S?`?${S}`:""}}return(!a||a===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:On([r,d.pathname])),Yi(d)}function m1(a,{relative:i}={}){let r=g.useContext(bv);ke(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Ov("useViewTransitionState"),f=Fi(a,{relative:i});if(!r.isTransitioning)return!1;let d=zn(r.currentLocation.pathname,s)||r.currentLocation.pathname,h=zn(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Ao(f.pathname,h)!=null||Ao(f.pathname,d)!=null}var Ki=dv();const p1=uv(Ki),zv=g.createContext(null);function It(){const a=g.useContext(zv);if(!a)throw new Error("useAuth must be used within AuthProvider");return a}function v1({children:a}){const i="/.account/",[r,s]=g.useState(null),[f,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(!1),S=!!r?.account?.logout,b=f,C=async()=>{try{const w=await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});return w.ok?!!(await w.json()).client:!1}catch{return!1}},N=async()=>{try{const w=await fetch(i,{headers:{Accept:"application/json"},credentials:"include"});if(w.ok){const j=await w.json();let R=!1;j.controls?.account?.logout&&(R=await C()),y(R),s(j.controls||{})}else p(`Failed to load configuration (Status: ${w.status})`)}catch{p("Network error: Could not connect to authentication server")}};g.useEffect(()=>{(async()=>(await N(),d(!1)))()},[i]);const D=async()=>{await N()};return u.jsx(zv.Provider,{value:{controls:r,isInitializing:f,initError:h,idpIndex:i,isLoggedIn:S,authenticating:b,hasOidcPending:v,refetchControls:D},children:a})}const _v=(...a)=>a.filter((i,r,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===r).join(" ").trim();const g1=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const y1=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,s)=>s?s.toUpperCase():r.toLowerCase());const Tp=a=>{const i=y1(a);return i.charAt(0).toUpperCase()+i.slice(1)};var x1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const b1=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const S1=g.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:f="",children:d,iconNode:h,...p},v)=>g.createElement("svg",{ref:v,...x1,width:i,height:i,stroke:a,strokeWidth:s?Number(r)*24/Number(i):r,className:_v("lucide",f),...!d&&!b1(p)&&{"aria-hidden":"true"},...p},[...h.map(([y,S])=>g.createElement(y,S)),...Array.isArray(d)?d:[d]]));const Ye=(a,i)=>{const r=g.forwardRef(({className:s,...f},d)=>g.createElement(S1,{ref:d,iconNode:i,className:_v(`lucide-${g1(Tp(a))}`,`lucide-${a}`,s),...f}));return r.displayName=Tp(a),r};const w1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Dv=Ye("arrow-left",w1);const E1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],qi=Ye("arrow-right",E1);const C1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],rl=Ye("check",C1);const N1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mv=Ye("chevron-down",N1);const j1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Lv=Ye("circle-alert",j1);const T1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Uv=Ye("clock",T1);const A1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],pu=Ye("copy",A1);const R1=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],O1=Ye("database",R1);const z1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ap=Ye("external-link",z1);const _1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],D1=Ye("globe",_1);const M1=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],L1=Ye("hard-drive",M1);const U1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],H1=Ye("info",U1);const B1=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],vu=Ye("key",B1);const k1=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Hv=Ye("layers",k1);const Y1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ta=Ye("loader-circle",Y1);const q1=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ki=Ye("lock",q1);const V1=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],X1=Ye("log-out",V1);const G1=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],zu=Ye("mail",G1);const F1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],gu=Ye("plus",F1);const K1=[["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6.01 18H6",key:"19vcac"}],["path",{d:"M10.01 18H10",key:"uamcmx"}],["path",{d:"M15 10v4",key:"qjz1xs"}],["path",{d:"M17.84 7.17a4 4 0 0 0-5.66 0",key:"1rif40"}],["path",{d:"M20.66 4.34a8 8 0 0 0-11.31 0",key:"6a5xfq"}]],Q1=Ye("router",K1);const Z1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Vi=Ye("shield",Z1);const P1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Rp=Ye("trash-2",P1);const J1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Bv=Ye("user",J1);function kv(){return u.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:u.jsx(Ta,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function Qi({children:a,title:i,subtitle:r,icon:s,showBack:f,onBack:d}){return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[u.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:u.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),u.jsxs("div",{className:"w-full max-w-[360px] bg-white border border-zinc-200 rounded-3xl shadow-xl shadow-zinc-200/50 p-6 relative z-10",children:[u.jsxs("div",{className:"flex flex-col items-center mb-6",children:[u.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[f?u.jsx("button",{onClick:d,className:"p-2 -ml-2 rounded-full hover:bg-zinc-100 text-zinc-400 hover:text-zinc-900 transition-colors",children:u.jsx(Dv,{className:"w-4 h-4"})}):u.jsx("div",{className:"w-8"}),u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:s?u.jsx(s,{className:"w-5 h-5 text-white"}):u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),u.jsx("div",{className:"w-8"})]}),u.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:i}),r&&u.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:r})]}),a]})]})}function W1({message:a}){return u.jsx(Qi,{title:"Error",subtitle:a,icon:Lv,children:u.jsx("button",{onClick:()=>window.location.reload(),className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium transition-colors",children:"Retry"})})}const _u="xpod:returnTo";function Ca(a){try{a&&sessionStorage.setItem(_u,a)}catch{}}function I1(){try{const a=sessionStorage.getItem(_u);return a&&sessionStorage.removeItem(_u),a}catch{return null}}function $1(){try{return new URLSearchParams(window.location.search).get("returnTo")||null}catch{return null}}function eS(a,i,r=!1){return a&&i&&!r}function Op({children:a,allowOidcPending:i=!1}){const{isLoggedIn:r,hasOidcPending:s}=It(),f=sn();return eS(r,s,i)?u.jsx(_n,{to:"/.account/oidc/consent/",replace:!0}):r?u.jsx(u.Fragment,{children:a}):(Ca(f.pathname+f.search),u.jsx(_n,{to:"/.account/login/password/",replace:!0}))}function Yv(a){var i,r,s="";if(typeof a=="string"||typeof a=="number")s+=a;else if(typeof a=="object")if(Array.isArray(a)){var f=a.length;for(i=0;i<f;i++)a[i]&&(r=Yv(a[i]))&&(s&&(s+=" "),s+=r)}else for(r in a)a[r]&&(s&&(s+=" "),s+=r);return s}function Ie(){for(var a,i,r=0,s="",f=arguments.length;r<f;r++)(a=arguments[r])&&(i=Yv(a))&&(s&&(s+=" "),s+=i);return s}const zp=3,_p=63,tS=/^[a-z0-9-]+$/;function qv(a){return a.trim().toLowerCase()}function Dp(a){const i=qv(a);if(!i)return"Username is required";if(i.length<zp||i.length>_p)return`Username must be ${zp}-${_p} characters`;if(!tS.test(i))return"Username can only contain lowercase letters, numbers, and hyphens";if(i.startsWith("-")||i.endsWith("-"))return"Username cannot start or end with a hyphen"}function nS(){try{const a=sessionStorage.getItem("provisionCode")?.trim();return a||void 0}catch{return}}function Vv(){try{sessionStorage.removeItem("provisionCode")}catch{}}function Xv(a,i=nS()){const r={name:a.trim()};return i&&(r.settings={provisionCode:i}),r}async function lS(a,i,r=15e3){const s=Date.now()+r,f=`${i}oidc/pick-webid/`;for(;Date.now()<s;){try{const d=await a(f,{headers:{Accept:"application/json"},credentials:"include"});if(d.ok){const h=await d.json().catch(()=>({}));if((Array.isArray(h.webIds)?h.webIds:[]).length>0)return!0}}catch{}await new Promise(d=>setTimeout(d,500))}return!1}async function aS(a){const i=a.fetchImpl??fetch,{idpIndex:r,username:s,enableManagedProfile:f=!0}=a,d=await i("/api/v1/identity",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({username:s,storageMode:"local"})});if(!d.ok&&d.status!==409&&d.status!==404)throw new Error((await d.json().catch(()=>({}))).message||"Failed to create WebID profile");let h=await i(r,{headers:{Accept:"application/json"},credentials:"include"});const p=await h.json().catch(()=>({})),v=p.controls?.account?.pod,y=p.controls?.account?.webId;if(!v)throw new Error("Pod creation endpoint not found");if(h=await i(v,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify(Xv(s))}),!h.ok){const N=await h.json().catch(()=>({}));throw new Error(N.message||"Failed to create pod")}const S=await h.json().catch(()=>({}));Vv();const b=typeof S.podUrl=="string"&&S.podUrl.length>0?S.podUrl:void 0;if(b&&await i(`/api/v1/identity/${encodeURIComponent(s)}/storage`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({storageUrl:b,storageMode:"local"})}).catch(()=>{}),f&&d.status!==404&&y){const N=await i(`/api/v1/identity/${encodeURIComponent(s)}`,{headers:{Accept:"application/json"},credentials:"include"});if(!N.ok)throw new Error((await N.json().catch(()=>({}))).message||"Failed to load WebID profile");const D=await N.json().catch(()=>({})),w=typeof D.webidUrl=="string"?D.webidUrl:"";if(!w)throw new Error("WebID profile URL missing");const j=await i(y,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:w})});if(!j.ok)throw new Error((await j.json().catch(()=>({}))).message||"Failed to link WebID");const R=await i(`${r}oidc/pick-webid/`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:w,remember:!1})});if(!R.ok)throw new Error((await R.json().catch(()=>({}))).message||"Failed to select WebID")}await lS(i,r);const C=await i("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});return C.ok&&(await C.json().catch(()=>({}))).client?{redirectedToConsent:!0}:{redirectedToConsent:!1}}function Du({initialIsRegister:a=!1}){const{controls:i,idpIndex:r,isLoggedIn:s,authenticating:f}=It(),d=Ln(),[h,p]=g.useState(!1),[v,y]=g.useState(a),[S,b]=g.useState(""),[C,N]=g.useState(""),[D,w]=g.useState(""),[j,R]=g.useState(!1),O=C.length>0&&D.length>0&&C===D,M=v?Dp(S):void 0;if(g.useEffect(()=>{const I=$1();I&&Ca(I)},[]),s)return u.jsx(_n,{to:"/.account/account/",replace:!0});const q=[{icon:Uv,title:"Your AI Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:Hv,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Vi,title:"One Secretary, A Thousand Agents",desc:"Full power, full privacy"}],Q=async I=>{I.preventDefault(),p(!0);const le=new FormData(I.currentTarget),re=le.get("email"),se=le.get("password");try{if(v){const W=le.get("confirmPassword"),ne=qv(le.get("username")),ee=Dp(ne);if(se!==W){alert("Passwords do not match"),p(!1);return}if(ee){alert(ee),p(!1);return}let ae=await fetch(i?.account?.create||"/.account/account/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!ae.ok)throw new Error((await ae.json().catch(()=>({}))).message||"Failed to create account");ae=await fetch(r,{headers:{Accept:"application/json"},credentials:"include"});const _=await ae.json(),L=_.controls?.password?.create;if(!L)throw new Error("Password endpoint not found");if(ae=await fetch(L,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:re,password:se})}),!ae.ok)throw new Error((await ae.json().catch(()=>({}))).message||"Failed to set password");const X=_.controls?.password?.login||i?.password?.login||"/.account/login/password/";if(ae=await fetch(X,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:re,password:se})}),!ae.ok)throw new Error((await ae.json().catch(()=>({}))).message||"Auto-login failed");const ce=await aS({idpIndex:r,username:ne});window.location.href=ce.redirectedToConsent?"/.account/oidc/consent/":"/.account/account/"}else{const W=await fetch(i?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:re,password:se})}),ne=await W.json().catch(()=>({}));if(W.ok){const ee=W.headers.get("Location");if(ne.location){window.location.href=ne.location;return}if(ee){window.location.href=ee;return}const ae=I1();if(ae){window.location.href=ae;return}try{if((await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/account/"}else alert(ne.message||"Login failed")}}catch(W){alert(W.message||"Operation failed")}finally{p(!1)}},J=()=>{y(!v),b(""),N(""),w("")},Y=async()=>{if(i?.oidc?.cancel){R(!0);try{const le=await(await fetch(i.oidc.cancel,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include"})).json();le.location&&(window.location.href=le.location)}catch{alert("Failed to cancel"),R(!1)}}};return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[u.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[u.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),u.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),u.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[u.jsx("div",{className:"hidden lg:block px-8",children:u.jsxs("div",{className:"max-w-md ml-auto",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:u.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-4",children:u.jsx("div",{className:"space-y-3",children:q.map(({icon:I,title:le,desc:re})=>u.jsxs("div",{className:"flex gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:u.jsx(I,{className:"w-4 h-4 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:le}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:re})]})]},le))})}),u.jsx("div",{className:"mt-12",children:u.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",u.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),u.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[u.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"mb-6",children:[u.jsx("h2",{className:"text-xl font-bold",children:v?"Create account":"Welcome back"}),u.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:v?"Create your Xpod account to get started.":"Sign in to continue your identity workspace."})]}),u.jsxs("form",{className:"space-y-4",onSubmit:Q,children:[u.jsxs("div",{className:"space-y-3",children:[v&&u.jsxs("div",{className:"relative",children:[u.jsx(Bv,{className:Ie("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",M&&S.length>0?"text-amber-500":"text-zinc-400")}),u.jsx("input",{name:"username",type:"text",required:!0,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:S,onChange:I=>b(I.target.value.toLowerCase()),className:Ie("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",M&&S.length>0?"border-amber-300 focus:border-amber-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(zu,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Email"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(ki,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"password",type:"password",required:!0,value:C,onChange:I=>N(I.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Password"})]}),v&&u.jsxs("div",{className:"relative",children:[O?u.jsx(rl,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):u.jsx(ki,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:D,onChange:I=>w(I.target.value),className:Ie("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",O?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),v&&u.jsx("p",{className:Ie("text-[11px] leading-relaxed",M&&S.length>0?"text-amber-600":"text-zinc-500"),children:M&&S.length>0?M:"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens."}),!v&&u.jsx("div",{className:"flex justify-end",children:u.jsx("button",{type:"button",onClick:()=>d("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),u.jsx("button",{type:"submit",disabled:h||j||!!(v&&M),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:h?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:[v?"Sign up":"Sign in",u.jsx(qi,{className:"h-4 w-4"})]})}),f&&!v&&u.jsx("button",{type:"button",onClick:Y,disabled:j||h,className:"w-full py-3 border border-zinc-200 hover:bg-zinc-100 text-zinc-600 rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:j?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),u.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:u.jsxs("p",{className:"text-[11px] text-zinc-500",children:[v?"Already have an account? ":"Don't have an account? ",u.jsx("button",{onClick:J,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:v?"Sign in":"Sign up"})]})})]})})]})]})}function iS(){const{isLoggedIn:a,hasOidcPending:i}=It();return a&&i?u.jsx(_n,{to:"/.account/oidc/consent/",replace:!0}):a?u.jsx(_n,{to:"/.account/account/",replace:!0}):u.jsx(Du,{})}function cS(){const a=Ln(),{isLoggedIn:i}=It(),r=[{icon:Uv,title:"Your AI Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:Hv,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Vi,title:"One Secretary, A Thousand Agents",desc:"Full power, full privacy"}];return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[u.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[u.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),u.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),u.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[u.jsx("div",{className:"hidden lg:block px-8",children:u.jsxs("div",{className:"max-w-md ml-auto",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:u.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-4",children:u.jsx("div",{className:"space-y-3",children:r.map(({icon:s,title:f,desc:d})=>u.jsxs("div",{className:"flex gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:u.jsx(s,{className:"w-4 h-4 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:f}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:d})]})]},f))})}),u.jsx("div",{className:"mt-12",children:u.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",u.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),u.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[u.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"lg:hidden mb-8",children:[u.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-xs leading-relaxed mb-6",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-2",children:r.map(({icon:s,title:f,desc:d})=>u.jsxs("div",{className:"flex gap-2",children:[u.jsx(s,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),u.jsxs("div",{children:[u.jsx("span",{className:"text-xs font-medium text-zinc-900",children:f}),u.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",d]})]})]},f))})]}),u.jsxs("div",{className:"mb-6",children:[u.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),u.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),u.jsxs("div",{className:"space-y-3 mb-6",children:[u.jsxs("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:u.jsx(Ap,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),u.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),u.jsxs("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:u.jsx(Ap,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),u.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),u.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[u.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),u.jsxs("button",{onClick:()=>a(i?"/.account/account/":"/.account/login/password/"),className:"w-full py-3 border border-zinc-200 hover:bg-zinc-50 text-zinc-700 rounded-xl text-sm font-medium flex items-center justify-center gap-2 transition-colors",children:[u.jsx(Dv,{className:"w-4 h-4"}),i?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function Mp(a,i){return`sk-${btoa(`${a}:${i}`)}`}function oS(){const{controls:a,refetchControls:i,hasOidcPending:r}=It(),s=Ln(),[f,d]=g.useState(!1),[h,p]=g.useState([]),[v,y]=g.useState([]),[S,b]=g.useState(!1),[C,N]=g.useState(""),[D,w]=g.useState(!1),[j,R]=g.useState(""),[O,M]=g.useState([]),[q,Q]=g.useState(null),[J,Y]=g.useState(!1),[I,le]=g.useState(""),[re,se]=g.useState(""),[W,ne]=g.useState(null),[ee,ae]=g.useState(!1),_=g.useRef(null);g.useEffect(()=>{const Z=P=>{_.current&&!_.current.contains(P.target)&&ae(!1)};return document.addEventListener("mousedown",Z),()=>document.removeEventListener("mousedown",Z)},[]);const L=async(Z,P)=>{try{await navigator.clipboard.writeText(Z),ne(P),setTimeout(()=>ne(null),2e3)}catch{}},X=async()=>{try{if(a?.account?.webId){const Z=await fetch(a.account.webId,{headers:{Accept:"application/json"},credentials:"include"});if(Z.ok){const fe=(await Z.json()).webIdLinks||{};p(Object.keys(fe))}else p([])}if(a?.account?.pod){const Z=await fetch(a.account.pod,{headers:{Accept:"application/json"},credentials:"include"});if(Z.ok){const fe=(await Z.json()).pods||{};y(Object.keys(fe).map(ge=>({id:ge})))}else y([])}if(a?.account?.clientCredentials){const Z=await fetch(a.account.clientCredentials,{headers:{Accept:"application/json"},credentials:"include"});if(Z.ok){const fe=(await Z.json()).clientCredentials||{};M(Object.entries(fe).map(([ge])=>({id:ge})))}else M([])}}catch(Z){console.error("Failed to fetch account data:",Z)}};g.useEffect(()=>{X()},[a]);const ce=async()=>{if(a?.account?.logout){d(!0);try{(await fetch(a.account.logout,{method:"POST",headers:{Accept:"application/json"},credentials:"include"})).ok&&(await i(),s("/.account/"))}catch{alert("Logout failed")}finally{d(!1)}}},me=async Z=>{if(Z.preventDefault(),!(!a?.account?.pod||!C.trim())){d(!0);try{const P=await fetch(a.account.pod,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify(Xv(C))});if(P.ok)Vv(),N(""),b(!1),await i(),await X(),r&&s("/.account/oidc/consent/");else{const fe=await P.json().catch(()=>({}));alert(fe.message||"Failed to create pod")}}catch{alert("Network error")}finally{d(!1)}}},T=async Z=>{if(Z.preventDefault(),!(!a?.account?.webId||!j.trim())){d(!0);try{const P=await fetch(a.account.webId,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:j.trim()})});if(P.ok)R(""),w(!1),await X();else{const fe=await P.json().catch(()=>({}));alert(fe.message||"Failed to link WebID")}}catch{alert("Network error")}finally{d(!1)}}},G=async Z=>{if(confirm(`Delete pod ${Z}? This cannot be undone.`)){d(!0);try{(await fetch(Z,{method:"DELETE",credentials:"include"})).ok?await X():alert("Failed to delete pod")}catch{alert("Network error")}finally{d(!1)}}},$=async Z=>{if(Z.preventDefault(),!(!a?.account?.clientCredentials||!I||!re.trim())){d(!0);try{const P=await fetch(a.account.clientCredentials,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({name:re.trim(),webId:I})});if(P.ok){const fe=await P.json();Q({id:fe.id,secret:fe.secret}),Y(!1),le(""),se(""),await X()}else{const fe=await P.json().catch(()=>({}));alert(fe.message||"Failed to create credential")}}catch{alert("Network error")}finally{d(!1)}}},te=()=>{if(h.length===0){alert("Please create a Pod first to get a WebID");return}le(h[0]),se(""),Y(!0)},de=async Z=>{if(confirm("Delete this credential? This cannot be undone.")){d(!0);try{(await fetch(Z,{method:"DELETE",headers:{Accept:"application/json"},credentials:"include"})).ok?await X():alert("Failed to delete credential")}catch{alert("Network error")}finally{d(!1)}}};return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[u.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:u.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),u.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:u.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:u.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Bi,{to:"/.account/about/",className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[u.jsx(H1,{className:"w-3.5 h-3.5"}),"About"]}),u.jsxs("button",{onClick:ce,disabled:f,className:"flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[u.jsx(X1,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),u.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[r&&u.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:u.jsx(Vi,{className:"w-5 h-5 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),u.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),u.jsxs(Bi,{to:"/.account/oidc/consent/",className:"flex items-center gap-2 px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-sm font-medium rounded-lg transition-colors",children:["Continue",u.jsx(qi,{className:"w-4 h-4"})]})]})}),u.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(Q1,{className:"w-4 h-4 text-[#7C4DFF]"}),"外网接入"]}),u.jsxs(Bi,{to:"/.account/settings/",className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:["去设置",u.jsx(qi,{className:"w-3.5 h-3.5"})]})]}),u.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"登录后可在设置页填写隧道 / FRP 凭证,将当前节点从局域网访问升级为外网可访问,且不影响现有数据。"}),u.jsx("div",{className:"rounded-xl border border-zinc-200 bg-white p-4 shadow-sm",children:u.jsx("p",{className:"text-xs text-zinc-600 leading-6",children:"如果你现在只在局域网使用 Xpod,后续需要远程访问时,进入设置页配置隧道供应商与 Token 即可。"})})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(L1,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),a?.account?.pod&&u.jsxs("button",{onClick:()=>b(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(gu,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),u.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),S&&u.jsxs("form",{onSubmit:me,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"text",value:C,onChange:Z=>N(Z.target.value),placeholder:"my-pod",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Creating...":"Create"}),u.jsx("button",{type:"button",onClick:()=>b(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:v.length===0?u.jsx("div",{className:"p-4",children:u.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"No Pods found. Create one to get started."})}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:v.map(Z=>u.jsxs("li",{className:"p-3 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[u.jsx(O1,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("a",{href:Z.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:Z.id})]}),u.jsx("button",{onClick:()=>G(Z.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:u.jsx(Rp,{className:"w-4 h-4"})})]},Z.id))})})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(Bv,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),a?.account?.webId&&u.jsxs("button",{onClick:()=>w(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(gu,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),u.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),D&&u.jsxs("form",{onSubmit:T,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"url",value:j,onChange:Z=>R(Z.target.value),placeholder:"https://example.com/profile/card#me",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Linking...":"Link"}),u.jsx("button",{type:"button",onClick:()=>w(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:h.length===0?u.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:h.map(Z=>u.jsxs("li",{className:"p-3 flex items-center gap-3",children:[u.jsx(D1,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("a",{href:Z,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:Z})]},Z))})})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(vu,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),a?.account?.clientCredentials&&u.jsxs("button",{onClick:te,disabled:f,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(gu,{className:"w-3.5 h-3.5"}),"New Key"]})]}),u.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["API Keys for programmatic access. Use with ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"})]}),a?.account?.clientCredentials?u.jsxs(u.Fragment,{children:[J&&u.jsxs("form",{onSubmit:$,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),u.jsx("input",{type:"text",value:re,onChange:Z=>se(Z.target.value),placeholder:"my-app-key",className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),u.jsxs("div",{className:"relative",ref:_,children:[u.jsxs("button",{type:"button",onClick:()=>ae(!ee),className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none text-left flex items-center justify-between",children:[u.jsx("span",{className:"truncate text-zinc-700",children:I||"Select WebID"}),u.jsx(Mv,{className:`w-4 h-4 text-zinc-400 transition-transform ${ee?"rotate-180":""}`})]}),ee&&u.jsx("div",{className:"absolute z-10 mt-1 w-full bg-white border border-zinc-200 rounded-lg shadow-lg max-h-48 overflow-auto",children:h.map(Z=>u.jsx("button",{type:"button",onClick:()=>{le(Z),ae(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${I===Z?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:Z},Z))}),u.jsx("input",{type:"hidden",name:"webId",value:I,required:!0})]})]}),u.jsxs("div",{className:"flex gap-2 justify-end",children:[u.jsx("button",{type:"button",onClick:()=>Y(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Creating...":"Create"})]})]}),q&&u.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:u.jsxs("div",{className:"flex items-start gap-3",children:[u.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:u.jsx(vu,{className:"w-4 h-4 text-emerald-600"})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),u.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),u.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),u.jsx("p",{className:"text-zinc-600 truncate",children:q.id})]}),u.jsx("button",{onClick:()=>L(q.id,"id"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client ID",children:W==="id"?u.jsx(rl,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(pu,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),u.jsx("p",{className:"text-zinc-600 break-all",children:q.secret})]}),u.jsx("button",{onClick:()=>L(q.secret,"secret"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client Secret",children:W==="secret"?u.jsx(rl,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(pu,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),u.jsx("p",{className:"text-emerald-600 break-all font-medium",children:Mp(q.id,q.secret)})]}),u.jsx("button",{onClick:()=>L(Mp(q.id,q.secret),"apikey"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy API Key",children:W==="apikey"?u.jsx(rl,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(pu,{className:"w-3.5 h-3.5"})})]})]}),u.jsxs("p",{className:"mt-3 text-[10px] text-zinc-400",children:["Use the API Key with: ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"})]}),u.jsx("button",{onClick:()=>Q(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:O.length===0?u.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:O.map(Z=>u.jsxs("li",{className:"p-3 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[u.jsx(vu,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:Z.id})]}),u.jsx("button",{onClick:()=>de(Z.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:u.jsx(Rp,{className:"w-4 h-4"})})]},Z.id))})})]}):u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:u.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),u.jsxs("section",{children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[u.jsx(Vi,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),u.jsx("a",{href:a?.password?.forgot||"/.account/login/password/forgot/",className:"px-3 py-1.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 text-xs rounded-lg transition-colors",children:"Change Password"})]})]})]})]})}function rS(){const{idpIndex:a,isLoggedIn:i,controls:r}=It(),s=Ln(),[f,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(null),[S,b]=g.useState([]),[C,N]=g.useState(""),[D,w]=g.useState(null),[j,R]=g.useState(null),[O,M]=g.useState(!0),q=`${a}oidc/consent/`,Q=`${a}oidc/pick-webid/`,J=`${a}oidc/cancel`;g.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),Ca(window.location.href),(async()=>{try{const W=await fetch(q,{headers:{Accept:"application/json"},credentials:"include"});if(console.log("[Consent] GET consent response status:",W.status),W.status===401||W.status===403){w("Please sign in to continue authorization."),d(!1);return}if(!W.ok){const ae=await W.json().catch(()=>({}));throw new Error(ae.message||"Failed to load consent info")}const ne=await W.json();p(ne.client||{}),y(ne.webId||null);const ee=await fetch(Q,{headers:{Accept:"application/json"},credentials:"include"});if(ee.ok){const _=(await ee.json()).webIds||[];b(_),ne.webId&&_.includes(ne.webId)?N(ne.webId):_.length>0&&N(_[0])}}catch(W){w(W.message||"Failed to load consent info")}finally{d(!1)}})()},[q,Q]);const Y=W=>{try{const ne=new URL(W),ee=ne.pathname.split("/").filter(Boolean);return{provider:ne.host,podId:ee[0]??"-",full:W}}catch{return{provider:"-",podId:"-",full:W}}},I=async W=>{try{await navigator.clipboard.writeText(W),R(W),setTimeout(()=>R(null),1200)}catch{R(null)}},le=async()=>{try{r?.account?.logout&&await fetch(r.account.logout,{method:"POST",credentials:"include"}),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},re=async W=>{console.log("[Consent] handleConsent called, allow:",W);try{if(d(!0),w(null),!W){console.log("[Consent] Cancelling...");const X=await(await fetch(J,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})})).json();console.log("[Consent] Cancel response:",X),X.location&&(window.location.href=X.location);return}if(C&&C!==v){console.log("[Consent] Picking WebID:",C);const L=await fetch(Q,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:C,remember:!1})}),X=await L.json();if(!L.ok)throw new Error(X.message||"Failed to select WebID");X.location&&await fetch(X.location,{credentials:"include"})}const ne=await fetch(q,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({remember:O})}),ee=await ne.json();if(console.log("[Consent] Response:",ne.status,ee),console.log("[Consent] Location header:",ne.headers.get("Location")),!ne.ok)throw new Error(ee.message||"Consent failed");const ae=ne.headers.get("Location"),_=ee.location||ae;console.log("[Consent] Redirect URL:",_),_?window.location.href=_:(w("Authorization completed but no redirect URL received. The application may need to restart the login flow."),d(!1))}catch(ne){w(ne.message||"Consent failed"),d(!1)}},se=S.length>0?S:v?[v]:[];return u.jsxs(Qi,{title:"Authorize",subtitle:`${h?.client_name||"Application"} requests access`,icon:Vi,children:[!i&&u.jsxs("div",{className:"mb-4 bg-amber-50 border border-amber-200 rounded-xl p-3 text-zinc-600 text-[11px] space-y-3",children:[u.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),u.jsx("button",{onClick:()=>{Ca(window.location.href),s("/.account/login/password/")},className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium",children:"Go to Sign in"})]}),D&&u.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[u.jsx(Lv,{className:"w-4 h-4 inline mr-2"}),D]}),f?u.jsx("div",{className:"flex justify-center py-6",children:u.jsx(Ta,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):u.jsxs("div",{className:"space-y-4",children:[(h?.client_uri||h?.client_id)&&u.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[h?.client_uri&&u.jsx("div",{children:u.jsx("a",{href:h.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:h.client_uri})}),h?.client_id&&u.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:h.client_id,children:["ID: ",h.client_id]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),se.length>0&&u.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",u.jsx("span",{className:"text-zinc-600",children:Y(se[0]).provider})]})]}),se.length===0?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("p",{className:"text-zinc-500 text-xs mb-3",children:"You need to create a Pod first to get a WebID."}),u.jsx("button",{onClick:()=>{Ca(window.location.href),s("/.account/account/")},className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg",children:"Create Pod"})]}):u.jsx("div",{className:"space-y-1",children:se.map(W=>{const ne=Y(W);return u.jsxs("label",{className:Ie("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",C===W?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[u.jsx("input",{type:"radio",name:"webId",value:W,checked:C===W,onChange:ee=>N(ee.target.value),className:"text-[#7C4DFF]"}),u.jsx("div",{className:"min-w-0 flex-1",children:u.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:ne.full,children:ne.podId})}),u.jsx("button",{type:"button",onClick:ee=>{ee.preventDefault(),I(W)},className:"px-2 py-1 text-[10px] rounded-lg border border-zinc-300 text-zinc-600 hover:text-zinc-900 hover:border-[#7C4DFF]/50 shrink-0",children:j===W?"Copied":"Copy"})]},W)})})]}),u.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:O,onChange:W=>M(W.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[u.jsx("button",{onClick:()=>re(!1),disabled:f,className:"py-2.5 border border-zinc-200 rounded-xl text-xs text-zinc-500 hover:bg-zinc-100 disabled:opacity-50 transition-colors",children:"Deny"}),u.jsx("button",{onClick:()=>re(!0),disabled:f||se.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:f?"Authorizing...":"Authorize"})]}),u.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[u.jsx("button",{type:"button",onClick:()=>{Ca(window.location.href),s("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),u.jsx("button",{type:"button",onClick:le,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function sS(){const{controls:a,isLoggedIn:i}=It(),r=Ln(),[s,f]=g.useState(!1),[d,h]=g.useState(!1);if(i)return u.jsx(_n,{to:"/.account/account/",replace:!0});const p=async v=>{v.preventDefault(),f(!0);const y=new FormData(v.currentTarget).get("email");try{await fetch(a?.password?.forgot||"/.account/login/password/forgot/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:y})}),h(!0)}catch{alert("Failed to send reset email")}finally{f(!1)}};return u.jsx(Qi,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:zu,showBack:!0,onBack:()=>r("/.account/login/password/"),children:d?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[u.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:u.jsx(rl,{className:"w-5 h-5 text-emerald-600"})}),u.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),u.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"flex-1 py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Sign in"}),u.jsx("button",{onClick:()=>h(!1),className:"flex-1 py-3 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 rounded-xl text-sm font-medium",children:"Resend"})]})]}):u.jsxs("form",{className:"space-y-4",onSubmit:p,children:[u.jsxs("div",{className:"relative",children:[u.jsx(zu,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"Email address"})]}),u.jsx("button",{type:"submit",disabled:s,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:s?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:["Send Reset Link ",u.jsx(qi,{className:"h-4 w-4"})]})})]})})}function uS(){const{controls:a,isLoggedIn:i}=It(),r=Ln(),[s]=s1(),[f,d]=g.useState(!1),[h,p]=g.useState(!1),[v,y]=g.useState(null),[S,b]=g.useState(""),[C,N]=g.useState(""),D=s.get("rid"),w=S.length>0&&C.length>0&&S===C;if(i)return u.jsx(_n,{to:"/.account/account/",replace:!0});if(!D)return u.jsx(_n,{to:"/.account/login/password/forgot/",replace:!0});const j=async R=>{if(R.preventDefault(),!w){y("Passwords do not match");return}d(!0),y(null);try{const O=a?.password?.reset||"/.account/login/password/reset/",M=await fetch(O,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({recordId:D,password:S})});if(M.ok)p(!0);else{const q=await M.json().catch(()=>({}));y(q.message||"Failed to reset password")}}catch{y("Network error")}finally{d(!1)}};return u.jsx(Qi,{title:"Reset Password",subtitle:"Enter your new password.",icon:ki,children:h?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[u.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:u.jsx(rl,{className:"w-5 h-5 text-emerald-600"})}),u.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),u.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Go to Sign in"})]}):u.jsxs("form",{className:"space-y-4",onSubmit:j,children:[v&&u.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:v}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"relative",children:[u.jsx(ki,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"password",type:"password",required:!0,value:S,onChange:R=>b(R.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"New password"})]}),u.jsxs("div",{className:"relative",children:[w?u.jsx(rl,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):u.jsx(ki,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:C,onChange:R=>N(R.target.value),className:`block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors ${w?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"}`,placeholder:"Confirm new password"})]})]}),u.jsx("button",{type:"submit",disabled:f||!w,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:f?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:["Reset Password ",u.jsx(qi,{className:"h-4 w-4"})]})}),u.jsx("div",{className:"text-center",children:u.jsx("button",{type:"button",onClick:()=>r("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function fS(){const{controls:a,isLoggedIn:i}=It(),[r,s]=g.useState([]),[f,d]=g.useState(!0);return g.useEffect(()=>{if(i){window.location.href="/.account/account/";return}(async()=>{try{if(a?.main?.logins){const p=await(await fetch(a.main.logins,{headers:{Accept:"application/json"},credentials:"include"})).json(),v=Object.entries(p.logins||{});if(v.length===1){window.location.href=v[0][1];return}if(v.length===0){window.location.href="/.account/login/password/";return}s(v)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=a?.html?.password?.login||"/.account/login/password/"}finally{d(!1)}})()},[a,i]),f?u.jsx(kv,{}):u.jsx(Qi,{title:"Select Login Method",children:u.jsx("div",{className:"space-y-2",children:r.map(([h,p])=>u.jsx("a",{href:p,className:"block w-full py-3 px-4 bg-zinc-100 hover:bg-zinc-200 border border-zinc-200 rounded-xl text-center text-zinc-700 text-sm font-medium",children:h},h))})})}var Gv={"chatkit.error":"onError","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.tool.change":"onToolChange","chatkit.ready":"onReady","chatkit.effect":"onEffect"},dS=Object.keys(Gv),hS=g.forwardRef(function({control:i,...r},s){const f=g.useRef(null);return g.useLayoutEffect(()=>{const d=f.current;if(!d)return;if(customElements.get("openai-chatkit")){d.setOptions(i.options);return}let h=!0;return customElements.whenDefined("openai-chatkit").then(()=>{h&&d.setOptions(i.options)}),()=>{h=!1}},[i.options]),g.useEffect(()=>{const d=f.current;if(!d)return;const h=new AbortController;for(const p of dS)d.addEventListener(p,v=>{const y=Gv[p],S=i.handlers[y];typeof S=="function"&&S(v.detail)},{signal:h.signal});return()=>{h.abort()}},[i.handlers]),u.jsx("openai-chatkit",{ref:d=>{f.current=d,i.setInstance(d),typeof s=="function"?s(d):s&&(s.current=d),f.current},...r})});function Lp(a){return a!==null&&typeof a=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(a))||Array.isArray(a)}function Mu(a,i,r=new WeakMap){if(Object.is(a,i))return!0;if(typeof a=="function"&&typeof i=="function")return typeof a==typeof i;if(!Lp(a)||!Lp(i))return!1;const s=r.get(a);if(s&&s===i)return!0;if(r.set(a,i),Array.isArray(a)||Array.isArray(i)){if(!Array.isArray(a)||!Array.isArray(i)||a.length!==i.length)return!1;for(let h=0;h<a.length;h++)if(!Mu(a[h],i[h],r))return!1;return!0}const f=Object.keys(a),d=Object.keys(i);if(f.length!==d.length)return!1;for(let h=0;h<f.length;h++){const p=f[h];if(!Object.prototype.hasOwnProperty.call(i,p))return!1;const v=a[p],y=i[p];if(!Mu(v,y,r))return!1}return!0}function mS(a){const i=[],r=(d,h)=>h.reduce((p,v)=>p==null?p:p[v],d),s=(d,h)=>(...p)=>{const v=r(a.current,d),y=v?.[h];if(typeof y=="function")return y.apply(v,p)},f=d=>{if(typeof d=="function"){const h=i[i.length-1],p=i.slice(0,-1);return s(p,h)}if(Array.isArray(d)){const h=i.length,p=new Array(d.length);for(let v=0;v<d.length;v++)i[h]=v,p[v]=f(d[v]);return i.length=h,p}if(d&&typeof d=="object"){const h=i.length,p={};for(const v of Object.keys(d))i[h]=v,p[v]=f(d[v]);return i.length=h,p}return d};return f(a.current)}function pS(a){const i=Pt.useRef(a);i.current=a;const r=Pt.useRef(null);return(!r.current||!Mu(r.current.snapshot,a))&&(r.current={snapshot:a,shaped:mS(i)}),r.current.shaped}var vS=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function gS(a){const i=g.useRef(null),r=pS(a),s=g.useMemo(()=>vS.reduce((h,p)=>(h[p]=(...v)=>{if(!i.current){console.warn("ChatKit element is not mounted");return}return i.current[p](...v)},h),{}),[]),f=g.useCallback(h=>{i.current=h},[]),d=g.useMemo(()=>{const h={},p={};for(const[v,y]of Object.entries(r))/^on[A-Z]/.test(v)&&v!=="onClientTool"?p[v]=y:h[v]=y;return{setInstance:f,options:h,handlers:p}},[r,f]);return g.useMemo(()=>({...s,control:d,ref:i}),[s,d])}const Up="http://localhost:3000/chatkit",Hp="domain_pk_localhost_dev";function yS(){const{isLoggedIn:a}=It(),[i,r]=g.useState(""),[s,f]=g.useState(!1),d=g.useCallback(async(p,v={})=>{const y={...v.headers||{}};return i&&(y.Authorization=`Bearer ${i}`),fetch(p,{...v,headers:y,credentials:"include"})},[i]),h=gS({api:{url:Up,domainKey:Hp,fetch:d},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return u.jsxs("div",{className:"min-h-screen bg-gray-50",children:[u.jsxs("header",{className:"bg-white shadow-sm border-b",children:[u.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:u.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),u.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("button",{onClick:()=>f(!s),className:"text-sm text-gray-500 hover:text-gray-700",children:i?"🔑 API Key Set":"Set API Key"}),u.jsx("div",{className:"text-sm text-gray-500",children:a?u.jsx("span",{className:"text-green-600",children:"● Logged in"}):u.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),s&&u.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx("input",{type:"password",placeholder:"Enter API Key (sk-xxx)",value:i,onChange:p=>r(p.target.value),className:"flex-1 px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),u.jsx("button",{onClick:()=>f(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),u.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),u.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[u.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:u.jsx(hS,{control:h.control,style:{width:"100%",height:"100%"}})}),u.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[u.jsxs("p",{children:[u.jsx("strong",{children:"API URL:"})," ",Up]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Domain Key:"})," ",Hp]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Auth:"})," ",i?"API Key":a?"Session":"None"]})]})]})]})}function zi(a){const{className:i,variant:r,children:s}=a;return u.jsx("div",{className:Ie("rounded-xl bg-background",r==="bordered"&&"border border-border",i),children:s})}function _i(a){const{className:i,children:r}=a;return u.jsx("div",{className:Ie("px-5 pt-5",i),children:r})}function Di(a){const{className:i,children:r}=a;return u.jsx("div",{className:Ie("text-base font-semibold",i),children:r})}function Mi(a){const{className:i,children:r}=a;return u.jsx("div",{className:Ie("px-5 pb-5 pt-4",i),children:r})}function yu(a){const{className:i,variant:r="default",size:s="default",children:f,...d}=a,h="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary disabled:opacity-50 disabled:pointer-events-none",p={default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/80",ghost:"bg-transparent hover:bg-muted text-foreground"},v={default:"h-10 px-4 py-2",sm:"h-8 px-3"};return u.jsx("button",{className:Ie(h,p[r],v[s],i),...d,children:f})}function Rn(a){const{className:i,...r}=a;return u.jsx("input",{className:Ie("w-full h-10 rounded-md border border-input bg-background px-3 py-2 text-sm","placeholder:text-muted-foreground","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",i),...r})}function po(a){const{className:i,...r}=a;return u.jsx("label",{className:Ie("text-sm font-medium text-foreground",i),...r})}function Bp(a,[i,r]){return Math.min(r,Math.max(i,a))}function Je(a,i,{checkForDefaultPrevented:r=!0}={}){return function(f){if(a?.(f),r===!1||!f.defaultPrevented)return i?.(f)}}function $u(a,i=[]){let r=[];function s(d,h){const p=g.createContext(h),v=r.length;r=[...r,h];const y=b=>{const{scope:C,children:N,...D}=b,w=C?.[a]?.[v]||p,j=g.useMemo(()=>D,Object.values(D));return u.jsx(w.Provider,{value:j,children:N})};y.displayName=d+"Provider";function S(b,C){const N=C?.[a]?.[v]||p,D=g.useContext(N);if(D)return D;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${d}\``)}return[y,S]}const f=()=>{const d=r.map(h=>g.createContext(h));return function(p){const v=p?.[a]||d;return g.useMemo(()=>({[`__scope${a}`]:{...p,[a]:v}}),[p,v])}};return f.scopeName=a,[s,xS(f,...i)]}function xS(...a){const i=a[0];if(a.length===1)return i;const r=()=>{const s=a.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(d){const h=s.reduce((p,{useScope:v,scopeName:y})=>{const b=v(d)[`__scope${y}`];return{...p,...b}},{});return g.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return r.scopeName=i.scopeName,r}function kp(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function Fv(...a){return i=>{let r=!1;const s=a.map(f=>{const d=kp(f,i);return!r&&typeof d=="function"&&(r=!0),d});if(r)return()=>{for(let f=0;f<s.length;f++){const d=s[f];typeof d=="function"?d():kp(a[f],null)}}}}function ct(...a){return g.useCallback(Fv(...a),a)}function Ro(a){const i=bS(a),r=g.forwardRef((s,f)=>{const{children:d,...h}=s,p=g.Children.toArray(d),v=p.find(wS);if(v){const y=v.props.children,S=p.map(b=>b===v?g.Children.count(y)>1?g.Children.only(null):g.isValidElement(y)?y.props.children:null:b);return u.jsx(i,{...h,ref:f,children:g.isValidElement(y)?g.cloneElement(y,void 0,S):null})}return u.jsx(i,{...h,ref:f,children:d})});return r.displayName=`${a}.Slot`,r}function bS(a){const i=g.forwardRef((r,s)=>{const{children:f,...d}=r;if(g.isValidElement(f)){const h=CS(f),p=ES(d,f.props);return f.type!==g.Fragment&&(p.ref=s?Fv(s,h):h),g.cloneElement(f,p)}return g.Children.count(f)>1?g.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var SS=Symbol("radix.slottable");function wS(a){return g.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===SS}function ES(a,i){const r={...i};for(const s in i){const f=a[s],d=i[s];/^on[A-Z]/.test(s)?f&&d?r[s]=(...p)=>{const v=d(...p);return f(...p),v}:f&&(r[s]=f):s==="style"?r[s]={...f,...d}:s==="className"&&(r[s]=[f,d].filter(Boolean).join(" "))}return{...a,...r}}function CS(a){let i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?a.ref:(i=Object.getOwnPropertyDescriptor(a,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?a.props.ref:a.props.ref||a.ref)}function NS(a){const i=a+"CollectionProvider",[r,s]=$u(i),[f,d]=r(i,{collectionRef:{current:null},itemMap:new Map}),h=w=>{const{scope:j,children:R}=w,O=Pt.useRef(null),M=Pt.useRef(new Map).current;return u.jsx(f,{scope:j,itemMap:M,collectionRef:O,children:R})};h.displayName=i;const p=a+"CollectionSlot",v=Ro(p),y=Pt.forwardRef((w,j)=>{const{scope:R,children:O}=w,M=d(p,R),q=ct(j,M.collectionRef);return u.jsx(v,{ref:q,children:O})});y.displayName=p;const S=a+"CollectionItemSlot",b="data-radix-collection-item",C=Ro(S),N=Pt.forwardRef((w,j)=>{const{scope:R,children:O,...M}=w,q=Pt.useRef(null),Q=ct(j,q),J=d(S,R);return Pt.useEffect(()=>(J.itemMap.set(q,{ref:q,...M}),()=>{J.itemMap.delete(q)})),u.jsx(C,{[b]:"",ref:Q,children:O})});N.displayName=S;function D(w){const j=d(a+"CollectionConsumer",w);return Pt.useCallback(()=>{const O=j.collectionRef.current;if(!O)return[];const M=Array.from(O.querySelectorAll(`[${b}]`));return Array.from(j.itemMap.values()).sort((J,Y)=>M.indexOf(J.ref.current)-M.indexOf(Y.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:h,Slot:y,ItemSlot:N},D,s]}var jS=g.createContext(void 0);function TS(a){const i=g.useContext(jS);return a||i||"ltr"}var AS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=AS.reduce((a,i)=>{const r=Ro(`Primitive.${i}`),s=g.forwardRef((f,d)=>{const{asChild:h,...p}=f,v=h?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(v,{...p,ref:d})});return s.displayName=`Primitive.${i}`,{...a,[i]:s}},{});function RS(a,i){a&&Ki.flushSync(()=>a.dispatchEvent(i))}function Dl(a){const i=g.useRef(a);return g.useEffect(()=>{i.current=a}),g.useMemo(()=>(...r)=>i.current?.(...r),[])}function OS(a,i=globalThis?.document){const r=Dl(a);g.useEffect(()=>{const s=f=>{f.key==="Escape"&&r(f)};return i.addEventListener("keydown",s,{capture:!0}),()=>i.removeEventListener("keydown",s,{capture:!0})},[r,i])}var zS="DismissableLayer",Lu="dismissableLayer.update",_S="dismissableLayer.pointerDownOutside",DS="dismissableLayer.focusOutside",Yp,Kv=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qv=g.forwardRef((a,i)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:p,...v}=a,y=g.useContext(Kv),[S,b]=g.useState(null),C=S?.ownerDocument??globalThis?.document,[,N]=g.useState({}),D=ct(i,Y=>b(Y)),w=Array.from(y.layers),[j]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),R=w.indexOf(j),O=S?w.indexOf(S):-1,M=y.layersWithOutsidePointerEventsDisabled.size>0,q=O>=R,Q=US(Y=>{const I=Y.target,le=[...y.branches].some(re=>re.contains(I));!q||le||(f?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C),J=HS(Y=>{const I=Y.target;[...y.branches].some(re=>re.contains(I))||(d?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C);return OS(Y=>{O===y.layers.size-1&&(s?.(Y),!Y.defaultPrevented&&p&&(Y.preventDefault(),p()))},C),g.useEffect(()=>{if(S)return r&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Yp=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(S)),y.layers.add(S),qp(),()=>{r&&y.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=Yp)}},[S,C,r,y]),g.useEffect(()=>()=>{S&&(y.layers.delete(S),y.layersWithOutsidePointerEventsDisabled.delete(S),qp())},[S,y]),g.useEffect(()=>{const Y=()=>N({});return document.addEventListener(Lu,Y),()=>document.removeEventListener(Lu,Y)},[]),u.jsx(Fe.div,{...v,ref:D,style:{pointerEvents:M?q?"auto":"none":void 0,...a.style},onFocusCapture:Je(a.onFocusCapture,J.onFocusCapture),onBlurCapture:Je(a.onBlurCapture,J.onBlurCapture),onPointerDownCapture:Je(a.onPointerDownCapture,Q.onPointerDownCapture)})});Qv.displayName=zS;var MS="DismissableLayerBranch",LS=g.forwardRef((a,i)=>{const r=g.useContext(Kv),s=g.useRef(null),f=ct(i,s);return g.useEffect(()=>{const d=s.current;if(d)return r.branches.add(d),()=>{r.branches.delete(d)}},[r.branches]),u.jsx(Fe.div,{...a,ref:f})});LS.displayName=MS;function US(a,i=globalThis?.document){const r=Dl(a),s=g.useRef(!1),f=g.useRef(()=>{});return g.useEffect(()=>{const d=p=>{if(p.target&&!s.current){let v=function(){Zv(_S,r,y,{discrete:!0})};const y={originalEvent:p};p.pointerType==="touch"?(i.removeEventListener("click",f.current),f.current=v,i.addEventListener("click",f.current,{once:!0})):v()}else i.removeEventListener("click",f.current);s.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",d),i.removeEventListener("click",f.current)}},[i,r]),{onPointerDownCapture:()=>s.current=!0}}function HS(a,i=globalThis?.document){const r=Dl(a),s=g.useRef(!1);return g.useEffect(()=>{const f=d=>{d.target&&!s.current&&Zv(DS,r,{originalEvent:d},{discrete:!1})};return i.addEventListener("focusin",f),()=>i.removeEventListener("focusin",f)},[i,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function qp(){const a=new CustomEvent(Lu);document.dispatchEvent(a)}function Zv(a,i,r,{discrete:s}){const f=r.originalEvent.target,d=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:r});i&&f.addEventListener(a,i,{once:!0}),s?RS(f,d):f.dispatchEvent(d)}var xu=0;function BS(){g.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??Vp()),document.body.insertAdjacentElement("beforeend",a[1]??Vp()),xu++,()=>{xu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),xu--}},[])}function Vp(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var bu="focusScope.autoFocusOnMount",Su="focusScope.autoFocusOnUnmount",Xp={bubbles:!1,cancelable:!0},kS="FocusScope",Pv=g.forwardRef((a,i)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:f,onUnmountAutoFocus:d,...h}=a,[p,v]=g.useState(null),y=Dl(f),S=Dl(d),b=g.useRef(null),C=ct(i,w=>v(w)),N=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(s){let w=function(M){if(N.paused||!p)return;const q=M.target;p.contains(q)?b.current=q:ol(b.current,{select:!0})},j=function(M){if(N.paused||!p)return;const q=M.relatedTarget;q!==null&&(p.contains(q)||ol(b.current,{select:!0}))},R=function(M){if(document.activeElement===document.body)for(const Q of M)Q.removedNodes.length>0&&ol(p)};document.addEventListener("focusin",w),document.addEventListener("focusout",j);const O=new MutationObserver(R);return p&&O.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",j),O.disconnect()}}},[s,p,N.paused]),g.useEffect(()=>{if(p){Fp.add(N);const w=document.activeElement;if(!p.contains(w)){const R=new CustomEvent(bu,Xp);p.addEventListener(bu,y),p.dispatchEvent(R),R.defaultPrevented||(YS(FS(Jv(p)),{select:!0}),document.activeElement===w&&ol(p))}return()=>{p.removeEventListener(bu,y),setTimeout(()=>{const R=new CustomEvent(Su,Xp);p.addEventListener(Su,S),p.dispatchEvent(R),R.defaultPrevented||ol(w??document.body,{select:!0}),p.removeEventListener(Su,S),Fp.remove(N)},0)}}},[p,y,S,N]);const D=g.useCallback(w=>{if(!r&&!s||N.paused)return;const j=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,R=document.activeElement;if(j&&R){const O=w.currentTarget,[M,q]=qS(O);M&&q?!w.shiftKey&&R===q?(w.preventDefault(),r&&ol(M,{select:!0})):w.shiftKey&&R===M&&(w.preventDefault(),r&&ol(q,{select:!0})):R===O&&w.preventDefault()}},[r,s,N.paused]);return u.jsx(Fe.div,{tabIndex:-1,...h,ref:C,onKeyDown:D})});Pv.displayName=kS;function YS(a,{select:i=!1}={}){const r=document.activeElement;for(const s of a)if(ol(s,{select:i}),document.activeElement!==r)return}function qS(a){const i=Jv(a),r=Gp(i,a),s=Gp(i.reverse(),a);return[r,s]}function Jv(a){const i=[],r=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const f=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||f?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)i.push(r.currentNode);return i}function Gp(a,i){for(const r of a)if(!VS(r,{upTo:i}))return r}function VS(a,{upTo:i}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(i!==void 0&&a===i)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function XS(a){return a instanceof HTMLInputElement&&"select"in a}function ol(a,{select:i=!1}={}){if(a&&a.focus){const r=document.activeElement;a.focus({preventScroll:!0}),a!==r&&XS(a)&&i&&a.select()}}var Fp=GS();function GS(){let a=[];return{add(i){const r=a[0];i!==r&&r?.pause(),a=Kp(a,i),a.unshift(i)},remove(i){a=Kp(a,i),a[0]?.resume()}}}function Kp(a,i){const r=[...a],s=r.indexOf(i);return s!==-1&&r.splice(s,1),r}function FS(a){return a.filter(i=>i.tagName!=="A")}var yt=globalThis?.document?g.useLayoutEffect:()=>{},KS=fv[" useId ".trim().toString()]||(()=>{}),QS=0;function ef(a){const[i,r]=g.useState(KS());return yt(()=>{r(s=>s??String(QS++))},[a]),i?`radix-${i}`:""}const ZS=["top","right","bottom","left"],sl=Math.min,zt=Math.max,Oo=Math.round,vo=Math.floor,cn=a=>({x:a,y:a}),PS={left:"right",right:"left",bottom:"top",top:"bottom"},JS={start:"end",end:"start"};function Uu(a,i,r){return zt(a,sl(i,r))}function Dn(a,i){return typeof a=="function"?a(i):a}function Mn(a){return a.split("-")[0]}function _a(a){return a.split("-")[1]}function tf(a){return a==="x"?"y":"x"}function nf(a){return a==="y"?"height":"width"}const WS=new Set(["top","bottom"]);function an(a){return WS.has(Mn(a))?"y":"x"}function lf(a){return tf(an(a))}function IS(a,i,r){r===void 0&&(r=!1);const s=_a(a),f=lf(a),d=nf(f);let h=f==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[d]>i.floating[d]&&(h=zo(h)),[h,zo(h)]}function $S(a){const i=zo(a);return[Hu(a),i,Hu(i)]}function Hu(a){return a.replace(/start|end/g,i=>JS[i])}const Qp=["left","right"],Zp=["right","left"],ew=["top","bottom"],tw=["bottom","top"];function nw(a,i,r){switch(a){case"top":case"bottom":return r?i?Zp:Qp:i?Qp:Zp;case"left":case"right":return i?ew:tw;default:return[]}}function lw(a,i,r,s){const f=_a(a);let d=nw(Mn(a),r==="start",s);return f&&(d=d.map(h=>h+"-"+f),i&&(d=d.concat(d.map(Hu)))),d}function zo(a){return a.replace(/left|right|bottom|top/g,i=>PS[i])}function aw(a){return{top:0,right:0,bottom:0,left:0,...a}}function Wv(a){return typeof a!="number"?aw(a):{top:a,right:a,bottom:a,left:a}}function _o(a){const{x:i,y:r,width:s,height:f}=a;return{width:s,height:f,top:r,left:i,right:i+s,bottom:r+f,x:i,y:r}}function Pp(a,i,r){let{reference:s,floating:f}=a;const d=an(i),h=lf(i),p=nf(h),v=Mn(i),y=d==="y",S=s.x+s.width/2-f.width/2,b=s.y+s.height/2-f.height/2,C=s[p]/2-f[p]/2;let N;switch(v){case"top":N={x:S,y:s.y-f.height};break;case"bottom":N={x:S,y:s.y+s.height};break;case"right":N={x:s.x+s.width,y:b};break;case"left":N={x:s.x-f.width,y:b};break;default:N={x:s.x,y:s.y}}switch(_a(i)){case"start":N[h]-=C*(r&&y?-1:1);break;case"end":N[h]+=C*(r&&y?-1:1);break}return N}async function iw(a,i){var r;i===void 0&&(i={});const{x:s,y:f,platform:d,rects:h,elements:p,strategy:v}=a,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:b="floating",altBoundary:C=!1,padding:N=0}=Dn(i,a),D=Wv(N),j=p[C?b==="floating"?"reference":"floating":b],R=_o(await d.getClippingRect({element:(r=await(d.isElement==null?void 0:d.isElement(j)))==null||r?j:j.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:y,rootBoundary:S,strategy:v})),O=b==="floating"?{x:s,y:f,width:h.floating.width,height:h.floating.height}:h.reference,M=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),q=await(d.isElement==null?void 0:d.isElement(M))?await(d.getScale==null?void 0:d.getScale(M))||{x:1,y:1}:{x:1,y:1},Q=_o(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:O,offsetParent:M,strategy:v}):O);return{top:(R.top-Q.top+D.top)/q.y,bottom:(Q.bottom-R.bottom+D.bottom)/q.y,left:(R.left-Q.left+D.left)/q.x,right:(Q.right-R.right+D.right)/q.x}}const cw=async(a,i,r)=>{const{placement:s="bottom",strategy:f="absolute",middleware:d=[],platform:h}=r,p=d.filter(Boolean),v=await(h.isRTL==null?void 0:h.isRTL(i));let y=await h.getElementRects({reference:a,floating:i,strategy:f}),{x:S,y:b}=Pp(y,s,v),C=s,N={},D=0;for(let j=0;j<p.length;j++){var w;const{name:R,fn:O}=p[j],{x:M,y:q,data:Q,reset:J}=await O({x:S,y:b,initialPlacement:s,placement:C,strategy:f,middlewareData:N,rects:y,platform:{...h,detectOverflow:(w=h.detectOverflow)!=null?w:iw},elements:{reference:a,floating:i}});S=M??S,b=q??b,N={...N,[R]:{...N[R],...Q}},J&&D<=50&&(D++,typeof J=="object"&&(J.placement&&(C=J.placement),J.rects&&(y=J.rects===!0?await h.getElementRects({reference:a,floating:i,strategy:f}):J.rects),{x:S,y:b}=Pp(y,C,v)),j=-1)}return{x:S,y:b,placement:C,strategy:f,middlewareData:N}},ow=a=>({name:"arrow",options:a,async fn(i){const{x:r,y:s,placement:f,rects:d,platform:h,elements:p,middlewareData:v}=i,{element:y,padding:S=0}=Dn(a,i)||{};if(y==null)return{};const b=Wv(S),C={x:r,y:s},N=lf(f),D=nf(N),w=await h.getDimensions(y),j=N==="y",R=j?"top":"left",O=j?"bottom":"right",M=j?"clientHeight":"clientWidth",q=d.reference[D]+d.reference[N]-C[N]-d.floating[D],Q=C[N]-d.reference[N],J=await(h.getOffsetParent==null?void 0:h.getOffsetParent(y));let Y=J?J[M]:0;(!Y||!await(h.isElement==null?void 0:h.isElement(J)))&&(Y=p.floating[M]||d.floating[D]);const I=q/2-Q/2,le=Y/2-w[D]/2-1,re=sl(b[R],le),se=sl(b[O],le),W=re,ne=Y-w[D]-se,ee=Y/2-w[D]/2+I,ae=Uu(W,ee,ne),_=!v.arrow&&_a(f)!=null&&ee!==ae&&d.reference[D]/2-(ee<W?re:se)-w[D]/2<0,L=_?ee<W?ee-W:ee-ne:0;return{[N]:C[N]+L,data:{[N]:ae,centerOffset:ee-ae-L,..._&&{alignmentOffset:L}},reset:_}}}),rw=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var r,s;const{placement:f,middlewareData:d,rects:h,initialPlacement:p,platform:v,elements:y}=i,{mainAxis:S=!0,crossAxis:b=!0,fallbackPlacements:C,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:w=!0,...j}=Dn(a,i);if((r=d.arrow)!=null&&r.alignmentOffset)return{};const R=Mn(f),O=an(p),M=Mn(p)===p,q=await(v.isRTL==null?void 0:v.isRTL(y.floating)),Q=C||(M||!w?[zo(p)]:$S(p)),J=D!=="none";!C&&J&&Q.push(...lw(p,w,D,q));const Y=[p,...Q],I=await v.detectOverflow(i,j),le=[];let re=((s=d.flip)==null?void 0:s.overflows)||[];if(S&&le.push(I[R]),b){const ee=IS(f,h,q);le.push(I[ee[0]],I[ee[1]])}if(re=[...re,{placement:f,overflows:le}],!le.every(ee=>ee<=0)){var se,W;const ee=(((se=d.flip)==null?void 0:se.index)||0)+1,ae=Y[ee];if(ae&&(!(b==="alignment"?O!==an(ae):!1)||re.every(X=>an(X.placement)===O?X.overflows[0]>0:!0)))return{data:{index:ee,overflows:re},reset:{placement:ae}};let _=(W=re.filter(L=>L.overflows[0]<=0).sort((L,X)=>L.overflows[1]-X.overflows[1])[0])==null?void 0:W.placement;if(!_)switch(N){case"bestFit":{var ne;const L=(ne=re.filter(X=>{if(J){const ce=an(X.placement);return ce===O||ce==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(ce=>ce>0).reduce((ce,me)=>ce+me,0)]).sort((X,ce)=>X[1]-ce[1])[0])==null?void 0:ne[0];L&&(_=L);break}case"initialPlacement":_=p;break}if(f!==_)return{reset:{placement:_}}}return{}}}};function Jp(a,i){return{top:a.top-i.height,right:a.right-i.width,bottom:a.bottom-i.height,left:a.left-i.width}}function Wp(a){return ZS.some(i=>a[i]>=0)}const sw=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(i){const{rects:r,platform:s}=i,{strategy:f="referenceHidden",...d}=Dn(a,i);switch(f){case"referenceHidden":{const h=await s.detectOverflow(i,{...d,elementContext:"reference"}),p=Jp(h,r.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:Wp(p)}}}case"escaped":{const h=await s.detectOverflow(i,{...d,altBoundary:!0}),p=Jp(h,r.floating);return{data:{escapedOffsets:p,escaped:Wp(p)}}}default:return{}}}}},Iv=new Set(["left","top"]);async function uw(a,i){const{placement:r,platform:s,elements:f}=a,d=await(s.isRTL==null?void 0:s.isRTL(f.floating)),h=Mn(r),p=_a(r),v=an(r)==="y",y=Iv.has(h)?-1:1,S=d&&v?-1:1,b=Dn(i,a);let{mainAxis:C,crossAxis:N,alignmentAxis:D}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return p&&typeof D=="number"&&(N=p==="end"?D*-1:D),v?{x:N*S,y:C*y}:{x:C*y,y:N*S}}const fw=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var r,s;const{x:f,y:d,placement:h,middlewareData:p}=i,v=await uw(i,a);return h===((r=p.offset)==null?void 0:r.placement)&&(s=p.arrow)!=null&&s.alignmentOffset?{}:{x:f+v.x,y:d+v.y,data:{...v,placement:h}}}}},dw=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){const{x:r,y:s,placement:f,platform:d}=i,{mainAxis:h=!0,crossAxis:p=!1,limiter:v={fn:R=>{let{x:O,y:M}=R;return{x:O,y:M}}},...y}=Dn(a,i),S={x:r,y:s},b=await d.detectOverflow(i,y),C=an(Mn(f)),N=tf(C);let D=S[N],w=S[C];if(h){const R=N==="y"?"top":"left",O=N==="y"?"bottom":"right",M=D+b[R],q=D-b[O];D=Uu(M,D,q)}if(p){const R=C==="y"?"top":"left",O=C==="y"?"bottom":"right",M=w+b[R],q=w-b[O];w=Uu(M,w,q)}const j=v.fn({...i,[N]:D,[C]:w});return{...j,data:{x:j.x-r,y:j.y-s,enabled:{[N]:h,[C]:p}}}}}},hw=function(a){return a===void 0&&(a={}),{options:a,fn(i){const{x:r,y:s,placement:f,rects:d,middlewareData:h}=i,{offset:p=0,mainAxis:v=!0,crossAxis:y=!0}=Dn(a,i),S={x:r,y:s},b=an(f),C=tf(b);let N=S[C],D=S[b];const w=Dn(p,i),j=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(v){const M=C==="y"?"height":"width",q=d.reference[C]-d.floating[M]+j.mainAxis,Q=d.reference[C]+d.reference[M]-j.mainAxis;N<q?N=q:N>Q&&(N=Q)}if(y){var R,O;const M=C==="y"?"width":"height",q=Iv.has(Mn(f)),Q=d.reference[b]-d.floating[M]+(q&&((R=h.offset)==null?void 0:R[b])||0)+(q?0:j.crossAxis),J=d.reference[b]+d.reference[M]+(q?0:((O=h.offset)==null?void 0:O[b])||0)-(q?j.crossAxis:0);D<Q?D=Q:D>J&&(D=J)}return{[C]:N,[b]:D}}}},mw=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var r,s;const{placement:f,rects:d,platform:h,elements:p}=i,{apply:v=()=>{},...y}=Dn(a,i),S=await h.detectOverflow(i,y),b=Mn(f),C=_a(f),N=an(f)==="y",{width:D,height:w}=d.floating;let j,R;b==="top"||b==="bottom"?(j=b,R=C===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(R=b,j=C==="end"?"top":"bottom");const O=w-S.top-S.bottom,M=D-S.left-S.right,q=sl(w-S[j],O),Q=sl(D-S[R],M),J=!i.middlewareData.shift;let Y=q,I=Q;if((r=i.middlewareData.shift)!=null&&r.enabled.x&&(I=M),(s=i.middlewareData.shift)!=null&&s.enabled.y&&(Y=O),J&&!C){const re=zt(S.left,0),se=zt(S.right,0),W=zt(S.top,0),ne=zt(S.bottom,0);N?I=D-2*(re!==0||se!==0?re+se:zt(S.left,S.right)):Y=w-2*(W!==0||ne!==0?W+ne:zt(S.top,S.bottom))}await v({...i,availableWidth:I,availableHeight:Y});const le=await h.getDimensions(p.floating);return D!==le.width||w!==le.height?{reset:{rects:!0}}:{}}}};function Ho(){return typeof window<"u"}function Da(a){return $v(a)?(a.nodeName||"").toLowerCase():"#document"}function _t(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function un(a){var i;return(i=($v(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function $v(a){return Ho()?a instanceof Node||a instanceof _t(a).Node:!1}function Jt(a){return Ho()?a instanceof Element||a instanceof _t(a).Element:!1}function on(a){return Ho()?a instanceof HTMLElement||a instanceof _t(a).HTMLElement:!1}function Ip(a){return!Ho()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof _t(a).ShadowRoot}const pw=new Set(["inline","contents"]);function Zi(a){const{overflow:i,overflowX:r,overflowY:s,display:f}=Wt(a);return/auto|scroll|overlay|hidden|clip/.test(i+s+r)&&!pw.has(f)}const vw=new Set(["table","td","th"]);function gw(a){return vw.has(Da(a))}const yw=[":popover-open",":modal"];function Bo(a){return yw.some(i=>{try{return a.matches(i)}catch{return!1}})}const xw=["transform","translate","scale","rotate","perspective"],bw=["transform","translate","scale","rotate","perspective","filter"],Sw=["paint","layout","strict","content"];function af(a){const i=cf(),r=Jt(a)?Wt(a):a;return xw.some(s=>r[s]?r[s]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!i&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!i&&(r.filter?r.filter!=="none":!1)||bw.some(s=>(r.willChange||"").includes(s))||Sw.some(s=>(r.contain||"").includes(s))}function ww(a){let i=ul(a);for(;on(i)&&!Aa(i);){if(af(i))return i;if(Bo(i))return null;i=ul(i)}return null}function cf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ew=new Set(["html","body","#document"]);function Aa(a){return Ew.has(Da(a))}function Wt(a){return _t(a).getComputedStyle(a)}function ko(a){return Jt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ul(a){if(Da(a)==="html")return a;const i=a.assignedSlot||a.parentNode||Ip(a)&&a.host||un(a);return Ip(i)?i.host:i}function eg(a){const i=ul(a);return Aa(i)?a.ownerDocument?a.ownerDocument.body:a.body:on(i)&&Zi(i)?i:eg(i)}function Xi(a,i,r){var s;i===void 0&&(i=[]),r===void 0&&(r=!0);const f=eg(a),d=f===((s=a.ownerDocument)==null?void 0:s.body),h=_t(f);if(d){const p=Bu(h);return i.concat(h,h.visualViewport||[],Zi(f)?f:[],p&&r?Xi(p):[])}return i.concat(f,Xi(f,[],r))}function Bu(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function tg(a){const i=Wt(a);let r=parseFloat(i.width)||0,s=parseFloat(i.height)||0;const f=on(a),d=f?a.offsetWidth:r,h=f?a.offsetHeight:s,p=Oo(r)!==d||Oo(s)!==h;return p&&(r=d,s=h),{width:r,height:s,$:p}}function of(a){return Jt(a)?a:a.contextElement}function Na(a){const i=of(a);if(!on(i))return cn(1);const r=i.getBoundingClientRect(),{width:s,height:f,$:d}=tg(i);let h=(d?Oo(r.width):r.width)/s,p=(d?Oo(r.height):r.height)/f;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const Cw=cn(0);function ng(a){const i=_t(a);return!cf()||!i.visualViewport?Cw:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Nw(a,i,r){return i===void 0&&(i=!1),!r||i&&r!==_t(a)?!1:i}function Ml(a,i,r,s){i===void 0&&(i=!1),r===void 0&&(r=!1);const f=a.getBoundingClientRect(),d=of(a);let h=cn(1);i&&(s?Jt(s)&&(h=Na(s)):h=Na(a));const p=Nw(d,r,s)?ng(d):cn(0);let v=(f.left+p.x)/h.x,y=(f.top+p.y)/h.y,S=f.width/h.x,b=f.height/h.y;if(d){const C=_t(d),N=s&&Jt(s)?_t(s):s;let D=C,w=Bu(D);for(;w&&s&&N!==D;){const j=Na(w),R=w.getBoundingClientRect(),O=Wt(w),M=R.left+(w.clientLeft+parseFloat(O.paddingLeft))*j.x,q=R.top+(w.clientTop+parseFloat(O.paddingTop))*j.y;v*=j.x,y*=j.y,S*=j.x,b*=j.y,v+=M,y+=q,D=_t(w),w=Bu(D)}}return _o({width:S,height:b,x:v,y})}function Yo(a,i){const r=ko(a).scrollLeft;return i?i.left+r:Ml(un(a)).left+r}function lg(a,i){const r=a.getBoundingClientRect(),s=r.left+i.scrollLeft-Yo(a,r),f=r.top+i.scrollTop;return{x:s,y:f}}function jw(a){let{elements:i,rect:r,offsetParent:s,strategy:f}=a;const d=f==="fixed",h=un(s),p=i?Bo(i.floating):!1;if(s===h||p&&d)return r;let v={scrollLeft:0,scrollTop:0},y=cn(1);const S=cn(0),b=on(s);if((b||!b&&!d)&&((Da(s)!=="body"||Zi(h))&&(v=ko(s)),on(s))){const N=Ml(s);y=Na(s),S.x=N.x+s.clientLeft,S.y=N.y+s.clientTop}const C=h&&!b&&!d?lg(h,v):cn(0);return{width:r.width*y.x,height:r.height*y.y,x:r.x*y.x-v.scrollLeft*y.x+S.x+C.x,y:r.y*y.y-v.scrollTop*y.y+S.y+C.y}}function Tw(a){return Array.from(a.getClientRects())}function Aw(a){const i=un(a),r=ko(a),s=a.ownerDocument.body,f=zt(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),d=zt(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let h=-r.scrollLeft+Yo(a);const p=-r.scrollTop;return Wt(s).direction==="rtl"&&(h+=zt(i.clientWidth,s.clientWidth)-f),{width:f,height:d,x:h,y:p}}const $p=25;function Rw(a,i){const r=_t(a),s=un(a),f=r.visualViewport;let d=s.clientWidth,h=s.clientHeight,p=0,v=0;if(f){d=f.width,h=f.height;const S=cf();(!S||S&&i==="fixed")&&(p=f.offsetLeft,v=f.offsetTop)}const y=Yo(s);if(y<=0){const S=s.ownerDocument,b=S.body,C=getComputedStyle(b),N=S.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,D=Math.abs(s.clientWidth-b.clientWidth-N);D<=$p&&(d-=D)}else y<=$p&&(d+=y);return{width:d,height:h,x:p,y:v}}const Ow=new Set(["absolute","fixed"]);function zw(a,i){const r=Ml(a,!0,i==="fixed"),s=r.top+a.clientTop,f=r.left+a.clientLeft,d=on(a)?Na(a):cn(1),h=a.clientWidth*d.x,p=a.clientHeight*d.y,v=f*d.x,y=s*d.y;return{width:h,height:p,x:v,y}}function ev(a,i,r){let s;if(i==="viewport")s=Rw(a,r);else if(i==="document")s=Aw(un(a));else if(Jt(i))s=zw(i,r);else{const f=ng(a);s={x:i.x-f.x,y:i.y-f.y,width:i.width,height:i.height}}return _o(s)}function ag(a,i){const r=ul(a);return r===i||!Jt(r)||Aa(r)?!1:Wt(r).position==="fixed"||ag(r,i)}function _w(a,i){const r=i.get(a);if(r)return r;let s=Xi(a,[],!1).filter(p=>Jt(p)&&Da(p)!=="body"),f=null;const d=Wt(a).position==="fixed";let h=d?ul(a):a;for(;Jt(h)&&!Aa(h);){const p=Wt(h),v=af(h);!v&&p.position==="fixed"&&(f=null),(d?!v&&!f:!v&&p.position==="static"&&!!f&&Ow.has(f.position)||Zi(h)&&!v&&ag(a,h))?s=s.filter(S=>S!==h):f=p,h=ul(h)}return i.set(a,s),s}function Dw(a){let{element:i,boundary:r,rootBoundary:s,strategy:f}=a;const h=[...r==="clippingAncestors"?Bo(i)?[]:_w(i,this._c):[].concat(r),s],p=h[0],v=h.reduce((y,S)=>{const b=ev(i,S,f);return y.top=zt(b.top,y.top),y.right=sl(b.right,y.right),y.bottom=sl(b.bottom,y.bottom),y.left=zt(b.left,y.left),y},ev(i,p,f));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function Mw(a){const{width:i,height:r}=tg(a);return{width:i,height:r}}function Lw(a,i,r){const s=on(i),f=un(i),d=r==="fixed",h=Ml(a,!0,d,i);let p={scrollLeft:0,scrollTop:0};const v=cn(0);function y(){v.x=Yo(f)}if(s||!s&&!d)if((Da(i)!=="body"||Zi(f))&&(p=ko(i)),s){const N=Ml(i,!0,d,i);v.x=N.x+i.clientLeft,v.y=N.y+i.clientTop}else f&&y();d&&!s&&f&&y();const S=f&&!s&&!d?lg(f,p):cn(0),b=h.left+p.scrollLeft-v.x-S.x,C=h.top+p.scrollTop-v.y-S.y;return{x:b,y:C,width:h.width,height:h.height}}function wu(a){return Wt(a).position==="static"}function tv(a,i){if(!on(a)||Wt(a).position==="fixed")return null;if(i)return i(a);let r=a.offsetParent;return un(a)===r&&(r=r.ownerDocument.body),r}function ig(a,i){const r=_t(a);if(Bo(a))return r;if(!on(a)){let f=ul(a);for(;f&&!Aa(f);){if(Jt(f)&&!wu(f))return f;f=ul(f)}return r}let s=tv(a,i);for(;s&&gw(s)&&wu(s);)s=tv(s,i);return s&&Aa(s)&&wu(s)&&!af(s)?r:s||ww(a)||r}const Uw=async function(a){const i=this.getOffsetParent||ig,r=this.getDimensions,s=await r(a.floating);return{reference:Lw(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Hw(a){return Wt(a).direction==="rtl"}const Bw={convertOffsetParentRelativeRectToViewportRelativeRect:jw,getDocumentElement:un,getClippingRect:Dw,getOffsetParent:ig,getElementRects:Uw,getClientRects:Tw,getDimensions:Mw,getScale:Na,isElement:Jt,isRTL:Hw};function cg(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function kw(a,i){let r=null,s;const f=un(a);function d(){var p;clearTimeout(s),(p=r)==null||p.disconnect(),r=null}function h(p,v){p===void 0&&(p=!1),v===void 0&&(v=1),d();const y=a.getBoundingClientRect(),{left:S,top:b,width:C,height:N}=y;if(p||i(),!C||!N)return;const D=vo(b),w=vo(f.clientWidth-(S+C)),j=vo(f.clientHeight-(b+N)),R=vo(S),M={rootMargin:-D+"px "+-w+"px "+-j+"px "+-R+"px",threshold:zt(0,sl(1,v))||1};let q=!0;function Q(J){const Y=J[0].intersectionRatio;if(Y!==v){if(!q)return h();Y?h(!1,Y):s=setTimeout(()=>{h(!1,1e-7)},1e3)}Y===1&&!cg(y,a.getBoundingClientRect())&&h(),q=!1}try{r=new IntersectionObserver(Q,{...M,root:f.ownerDocument})}catch{r=new IntersectionObserver(Q,M)}r.observe(a)}return h(!0),d}function Yw(a,i,r,s){s===void 0&&(s={});const{ancestorScroll:f=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:v=!1}=s,y=of(a),S=f||d?[...y?Xi(y):[],...Xi(i)]:[];S.forEach(R=>{f&&R.addEventListener("scroll",r,{passive:!0}),d&&R.addEventListener("resize",r)});const b=y&&p?kw(y,r):null;let C=-1,N=null;h&&(N=new ResizeObserver(R=>{let[O]=R;O&&O.target===y&&N&&(N.unobserve(i),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var M;(M=N)==null||M.observe(i)})),r()}),y&&!v&&N.observe(y),N.observe(i));let D,w=v?Ml(a):null;v&&j();function j(){const R=Ml(a);w&&!cg(w,R)&&r(),w=R,D=requestAnimationFrame(j)}return r(),()=>{var R;S.forEach(O=>{f&&O.removeEventListener("scroll",r),d&&O.removeEventListener("resize",r)}),b?.(),(R=N)==null||R.disconnect(),N=null,v&&cancelAnimationFrame(D)}}const qw=fw,Vw=dw,Xw=rw,Gw=mw,Fw=sw,nv=ow,Kw=hw,Qw=(a,i,r)=>{const s=new Map,f={platform:Bw,...r},d={...f.platform,_c:s};return cw(a,i,{...f,platform:d})};var Zw=typeof document<"u",Pw=function(){},No=Zw?g.useLayoutEffect:Pw;function Do(a,i){if(a===i)return!0;if(typeof a!=typeof i)return!1;if(typeof a=="function"&&a.toString()===i.toString())return!0;let r,s,f;if(a&&i&&typeof a=="object"){if(Array.isArray(a)){if(r=a.length,r!==i.length)return!1;for(s=r;s--!==0;)if(!Do(a[s],i[s]))return!1;return!0}if(f=Object.keys(a),r=f.length,r!==Object.keys(i).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(i,f[s]))return!1;for(s=r;s--!==0;){const d=f[s];if(!(d==="_owner"&&a.$$typeof)&&!Do(a[d],i[d]))return!1}return!0}return a!==a&&i!==i}function og(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function lv(a,i){const r=og(a);return Math.round(i*r)/r}function Eu(a){const i=g.useRef(a);return No(()=>{i.current=a}),i}function Jw(a){a===void 0&&(a={});const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:f,elements:{reference:d,floating:h}={},transform:p=!0,whileElementsMounted:v,open:y}=a,[S,b]=g.useState({x:0,y:0,strategy:r,placement:i,middlewareData:{},isPositioned:!1}),[C,N]=g.useState(s);Do(C,s)||N(s);const[D,w]=g.useState(null),[j,R]=g.useState(null),O=g.useCallback(X=>{X!==J.current&&(J.current=X,w(X))},[]),M=g.useCallback(X=>{X!==Y.current&&(Y.current=X,R(X))},[]),q=d||D,Q=h||j,J=g.useRef(null),Y=g.useRef(null),I=g.useRef(S),le=v!=null,re=Eu(v),se=Eu(f),W=Eu(y),ne=g.useCallback(()=>{if(!J.current||!Y.current)return;const X={placement:i,strategy:r,middleware:C};se.current&&(X.platform=se.current),Qw(J.current,Y.current,X).then(ce=>{const me={...ce,isPositioned:W.current!==!1};ee.current&&!Do(I.current,me)&&(I.current=me,Ki.flushSync(()=>{b(me)}))})},[C,i,r,se,W]);No(()=>{y===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,b(X=>({...X,isPositioned:!1})))},[y]);const ee=g.useRef(!1);No(()=>(ee.current=!0,()=>{ee.current=!1}),[]),No(()=>{if(q&&(J.current=q),Q&&(Y.current=Q),q&&Q){if(re.current)return re.current(q,Q,ne);ne()}},[q,Q,ne,re,le]);const ae=g.useMemo(()=>({reference:J,floating:Y,setReference:O,setFloating:M}),[O,M]),_=g.useMemo(()=>({reference:q,floating:Q}),[q,Q]),L=g.useMemo(()=>{const X={position:r,left:0,top:0};if(!_.floating)return X;const ce=lv(_.floating,S.x),me=lv(_.floating,S.y);return p?{...X,transform:"translate("+ce+"px, "+me+"px)",...og(_.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ce,top:me}},[r,p,_.floating,S.x,S.y]);return g.useMemo(()=>({...S,update:ne,refs:ae,elements:_,floatingStyles:L}),[S,ne,ae,_,L])}const Ww=a=>{function i(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:a,fn(r){const{element:s,padding:f}=typeof a=="function"?a(r):a;return s&&i(s)?s.current!=null?nv({element:s.current,padding:f}).fn(r):{}:s?nv({element:s,padding:f}).fn(r):{}}}},Iw=(a,i)=>({...qw(a),options:[a,i]}),$w=(a,i)=>({...Vw(a),options:[a,i]}),eE=(a,i)=>({...Kw(a),options:[a,i]}),tE=(a,i)=>({...Xw(a),options:[a,i]}),nE=(a,i)=>({...Gw(a),options:[a,i]}),lE=(a,i)=>({...Fw(a),options:[a,i]}),aE=(a,i)=>({...Ww(a),options:[a,i]});var iE="Arrow",rg=g.forwardRef((a,i)=>{const{children:r,width:s=10,height:f=5,...d}=a;return u.jsx(Fe.svg,{...d,ref:i,width:s,height:f,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});rg.displayName=iE;var cE=rg;function oE(a){const[i,r]=g.useState(void 0);return yt(()=>{if(a){r({width:a.offsetWidth,height:a.offsetHeight});const s=new ResizeObserver(f=>{if(!Array.isArray(f)||!f.length)return;const d=f[0];let h,p;if("borderBoxSize"in d){const v=d.borderBoxSize,y=Array.isArray(v)?v[0]:v;h=y.inlineSize,p=y.blockSize}else h=a.offsetWidth,p=a.offsetHeight;r({width:h,height:p})});return s.observe(a,{box:"border-box"}),()=>s.unobserve(a)}else r(void 0)},[a]),i}var rf="Popper",[sg,ug]=$u(rf),[rE,fg]=sg(rf),dg=a=>{const{__scopePopper:i,children:r}=a,[s,f]=g.useState(null);return u.jsx(rE,{scope:i,anchor:s,onAnchorChange:f,children:r})};dg.displayName=rf;var hg="PopperAnchor",mg=g.forwardRef((a,i)=>{const{__scopePopper:r,virtualRef:s,...f}=a,d=fg(hg,r),h=g.useRef(null),p=ct(i,h),v=g.useRef(null);return g.useEffect(()=>{const y=v.current;v.current=s?.current||h.current,y!==v.current&&d.onAnchorChange(v.current)}),s?null:u.jsx(Fe.div,{...f,ref:p})});mg.displayName=hg;var sf="PopperContent",[sE,uE]=sg(sf),pg=g.forwardRef((a,i)=>{const{__scopePopper:r,side:s="bottom",sideOffset:f=0,align:d="center",alignOffset:h=0,arrowPadding:p=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:S=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:N="optimized",onPlaced:D,...w}=a,j=fg(sf,r),[R,O]=g.useState(null),M=ct(i,P=>O(P)),[q,Q]=g.useState(null),J=oE(q),Y=J?.width??0,I=J?.height??0,le=s+(d!=="center"?"-"+d:""),re=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},se=Array.isArray(y)?y:[y],W=se.length>0,ne={padding:re,boundary:se.filter(dE),altBoundary:W},{refs:ee,floatingStyles:ae,placement:_,isPositioned:L,middlewareData:X}=Jw({strategy:"fixed",placement:le,whileElementsMounted:(...P)=>Yw(...P,{animationFrame:N==="always"}),elements:{reference:j.anchor},middleware:[Iw({mainAxis:f+I,alignmentAxis:h}),v&&$w({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?eE():void 0,...ne}),v&&tE({...ne}),nE({...ne,apply:({elements:P,rects:fe,availableWidth:ge,availableHeight:je})=>{const{width:Ae,height:He}=fe.reference,rt=P.floating.style;rt.setProperty("--radix-popper-available-width",`${ge}px`),rt.setProperty("--radix-popper-available-height",`${je}px`),rt.setProperty("--radix-popper-anchor-width",`${Ae}px`),rt.setProperty("--radix-popper-anchor-height",`${He}px`)}}),q&&aE({element:q,padding:p}),hE({arrowWidth:Y,arrowHeight:I}),C&&lE({strategy:"referenceHidden",...ne})]}),[ce,me]=yg(_),T=Dl(D);yt(()=>{L&&T?.()},[L,T]);const G=X.arrow?.x,$=X.arrow?.y,te=X.arrow?.centerOffset!==0,[de,Z]=g.useState();return yt(()=>{R&&Z(window.getComputedStyle(R).zIndex)},[R]),u.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:L?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:u.jsx(sE,{scope:r,placedSide:ce,onArrowChange:Q,arrowX:G,arrowY:$,shouldHideArrow:te,children:u.jsx(Fe.div,{"data-side":ce,"data-align":me,...w,ref:M,style:{...w.style,animation:L?void 0:"none"}})})})});pg.displayName=sf;var vg="PopperArrow",fE={top:"bottom",right:"left",bottom:"top",left:"right"},gg=g.forwardRef(function(i,r){const{__scopePopper:s,...f}=i,d=uE(vg,s),h=fE[d.placedSide];return u.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:u.jsx(cE,{...f,ref:r,style:{...f.style,display:"block"}})})});gg.displayName=vg;function dE(a){return a!==null}var hE=a=>({name:"transformOrigin",options:a,fn(i){const{placement:r,rects:s,middlewareData:f}=i,h=f.arrow?.centerOffset!==0,p=h?0:a.arrowWidth,v=h?0:a.arrowHeight,[y,S]=yg(r),b={start:"0%",center:"50%",end:"100%"}[S],C=(f.arrow?.x??0)+p/2,N=(f.arrow?.y??0)+v/2;let D="",w="";return y==="bottom"?(D=h?b:`${C}px`,w=`${-v}px`):y==="top"?(D=h?b:`${C}px`,w=`${s.floating.height+v}px`):y==="right"?(D=`${-v}px`,w=h?b:`${N}px`):y==="left"&&(D=`${s.floating.width+v}px`,w=h?b:`${N}px`),{data:{x:D,y:w}}}});function yg(a){const[i,r="center"]=a.split("-");return[i,r]}var mE=dg,pE=mg,vE=pg,gE=gg,yE="Portal",xg=g.forwardRef((a,i)=>{const{container:r,...s}=a,[f,d]=g.useState(!1);yt(()=>d(!0),[]);const h=r||f&&globalThis?.document?.body;return h?p1.createPortal(u.jsx(Fe.div,{...s,ref:i}),h):null});xg.displayName=yE;var xE=fv[" useInsertionEffect ".trim().toString()]||yt;function av({prop:a,defaultProp:i,onChange:r=()=>{},caller:s}){const[f,d,h]=bE({defaultProp:i,onChange:r}),p=a!==void 0,v=p?a:f;{const S=g.useRef(a!==void 0);g.useEffect(()=>{const b=S.current;b!==p&&console.warn(`${s} is changing from ${b?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),S.current=p},[p,s])}const y=g.useCallback(S=>{if(p){const b=SE(S)?S(a):S;b!==a&&h.current?.(b)}else d(S)},[p,a,d,h]);return[v,y]}function bE({defaultProp:a,onChange:i}){const[r,s]=g.useState(a),f=g.useRef(r),d=g.useRef(i);return xE(()=>{d.current=i},[i]),g.useEffect(()=>{f.current!==r&&(d.current?.(r),f.current=r)},[r,f]),[r,s,d]}function SE(a){return typeof a=="function"}function wE(a){const i=g.useRef({value:a,previous:a});return g.useMemo(()=>(i.current.value!==a&&(i.current.previous=i.current.value,i.current.value=a),i.current.previous),[a])}var bg=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),EE="VisuallyHidden",CE=g.forwardRef((a,i)=>u.jsx(Fe.span,{...a,ref:i,style:{...bg,...a.style}}));CE.displayName=EE;var NE=function(a){if(typeof document>"u")return null;var i=Array.isArray(a)?a[0]:a;return i.ownerDocument.body},Sa=new WeakMap,go=new WeakMap,yo={},Cu=0,Sg=function(a){return a&&(a.host||Sg(a.parentNode))},jE=function(a,i){return i.map(function(r){if(a.contains(r))return r;var s=Sg(r);return s&&a.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",a,". Doing nothing"),null)}).filter(function(r){return!!r})},TE=function(a,i,r,s){var f=jE(i,Array.isArray(a)?a:[a]);yo[r]||(yo[r]=new WeakMap);var d=yo[r],h=[],p=new Set,v=new Set(f),y=function(b){!b||p.has(b)||(p.add(b),y(b.parentNode))};f.forEach(y);var S=function(b){!b||v.has(b)||Array.prototype.forEach.call(b.children,function(C){if(p.has(C))S(C);else try{var N=C.getAttribute(s),D=N!==null&&N!=="false",w=(Sa.get(C)||0)+1,j=(d.get(C)||0)+1;Sa.set(C,w),d.set(C,j),h.push(C),w===1&&D&&go.set(C,!0),j===1&&C.setAttribute(r,"true"),D||C.setAttribute(s,"true")}catch(R){console.error("aria-hidden: cannot operate on ",C,R)}})};return S(i),p.clear(),Cu++,function(){h.forEach(function(b){var C=Sa.get(b)-1,N=d.get(b)-1;Sa.set(b,C),d.set(b,N),C||(go.has(b)||b.removeAttribute(s),go.delete(b)),N||b.removeAttribute(r)}),Cu--,Cu||(Sa=new WeakMap,Sa=new WeakMap,go=new WeakMap,yo={})}},AE=function(a,i,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(a)?a:[a]),f=NE(a);return f?(s.push.apply(s,Array.from(f.querySelectorAll("[aria-live], script"))),TE(s,f,r,"aria-hidden")):function(){return null}},ln=function(){return ln=Object.assign||function(i){for(var r,s=1,f=arguments.length;s<f;s++){r=arguments[s];for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(i[d]=r[d])}return i},ln.apply(this,arguments)};function wg(a,i){var r={};for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.indexOf(s)<0&&(r[s]=a[s]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,s=Object.getOwnPropertySymbols(a);f<s.length;f++)i.indexOf(s[f])<0&&Object.prototype.propertyIsEnumerable.call(a,s[f])&&(r[s[f]]=a[s[f]]);return r}function RE(a,i,r){if(r||arguments.length===2)for(var s=0,f=i.length,d;s<f;s++)(d||!(s in i))&&(d||(d=Array.prototype.slice.call(i,0,s)),d[s]=i[s]);return a.concat(d||Array.prototype.slice.call(i))}var jo="right-scroll-bar-position",To="width-before-scroll-bar",OE="with-scroll-bars-hidden",zE="--removed-body-scroll-bar-size";function Nu(a,i){return typeof a=="function"?a(i):a&&(a.current=i),a}function _E(a,i){var r=g.useState(function(){return{value:a,callback:i,facade:{get current(){return r.value},set current(s){var f=r.value;f!==s&&(r.value=s,r.callback(s,f))}}}})[0];return r.callback=i,r.facade}var DE=typeof window<"u"?g.useLayoutEffect:g.useEffect,iv=new WeakMap;function ME(a,i){var r=_E(null,function(s){return a.forEach(function(f){return Nu(f,s)})});return DE(function(){var s=iv.get(r);if(s){var f=new Set(s),d=new Set(a),h=r.current;f.forEach(function(p){d.has(p)||Nu(p,null)}),d.forEach(function(p){f.has(p)||Nu(p,h)})}iv.set(r,a)},[a]),r}function LE(a){return a}function UE(a,i){i===void 0&&(i=LE);var r=[],s=!1,f={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:a},useMedium:function(d){var h=i(d,s);return r.push(h),function(){r=r.filter(function(p){return p!==h})}},assignSyncMedium:function(d){for(s=!0;r.length;){var h=r;r=[],h.forEach(d)}r={push:function(p){return d(p)},filter:function(){return r}}},assignMedium:function(d){s=!0;var h=[];if(r.length){var p=r;r=[],p.forEach(d),h=r}var v=function(){var S=h;h=[],S.forEach(d)},y=function(){return Promise.resolve().then(v)};y(),r={push:function(S){h.push(S),y()},filter:function(S){return h=h.filter(S),r}}}};return f}function HE(a){a===void 0&&(a={});var i=UE(null);return i.options=ln({async:!0,ssr:!1},a),i}var Eg=function(a){var i=a.sideCar,r=wg(a,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=i.read();if(!s)throw new Error("Sidecar medium not found");return g.createElement(s,ln({},r))};Eg.isSideCarExport=!0;function BE(a,i){return a.useMedium(i),Eg}var Cg=HE(),ju=function(){},qo=g.forwardRef(function(a,i){var r=g.useRef(null),s=g.useState({onScrollCapture:ju,onWheelCapture:ju,onTouchMoveCapture:ju}),f=s[0],d=s[1],h=a.forwardProps,p=a.children,v=a.className,y=a.removeScrollBar,S=a.enabled,b=a.shards,C=a.sideCar,N=a.noRelative,D=a.noIsolation,w=a.inert,j=a.allowPinchZoom,R=a.as,O=R===void 0?"div":R,M=a.gapMode,q=wg(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=C,J=ME([r,i]),Y=ln(ln({},q),f);return g.createElement(g.Fragment,null,S&&g.createElement(Q,{sideCar:Cg,removeScrollBar:y,shards:b,noRelative:N,noIsolation:D,inert:w,setCallbacks:d,allowPinchZoom:!!j,lockRef:r,gapMode:M}),h?g.cloneElement(g.Children.only(p),ln(ln({},Y),{ref:J})):g.createElement(O,ln({},Y,{className:v,ref:J}),p))});qo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};qo.classNames={fullWidth:To,zeroRight:jo};var kE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YE(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var i=kE();return i&&a.setAttribute("nonce",i),a}function qE(a,i){a.styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i))}function VE(a){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(a)}var XE=function(){var a=0,i=null;return{add:function(r){a==0&&(i=YE())&&(qE(i,r),VE(i)),a++},remove:function(){a--,!a&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},GE=function(){var a=XE();return function(i,r){g.useEffect(function(){return a.add(i),function(){a.remove()}},[i&&r])}},Ng=function(){var a=GE(),i=function(r){var s=r.styles,f=r.dynamic;return a(s,f),null};return i},FE={left:0,top:0,right:0,gap:0},Tu=function(a){return parseInt(a||"",10)||0},KE=function(a){var i=window.getComputedStyle(document.body),r=i[a==="padding"?"paddingLeft":"marginLeft"],s=i[a==="padding"?"paddingTop":"marginTop"],f=i[a==="padding"?"paddingRight":"marginRight"];return[Tu(r),Tu(s),Tu(f)]},QE=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return FE;var i=KE(a),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,s-r+i[2]-i[0])}},ZE=Ng(),ja="data-scroll-locked",PE=function(a,i,r,s){var f=a.left,d=a.top,h=a.right,p=a.gap;return r===void 0&&(r="margin"),`
11
+ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let C=sn(),N;if(i){let R=typeof i=="string"?Ra(i):i;ke(S==="/"||R.pathname?.startsWith(S),`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 "${S}" but pathname "${R.pathname}" was given in the \`location\` prop.`),N=R}else N=C;let D=N.pathname||"/",w=D;if(S!=="/"){let R=S.replace(/^\//,"").split("/");w="/"+D.replace(/^\//,"").split("/").slice(R.length).join("/")}let j=mv(a,{pathname:w});Dt(b||j!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),Dt(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.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 z=Nb(j&&j.map(R=>Object.assign({},R,{params:Object.assign({},v,R.params),pathname:On([S,d.encodeLocation?d.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?S:On([S,d.encodeLocation?d.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),h,o,s,f);return i&&z?g.createElement(Vi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...N},navigationType:"POP"}},z):z}function Sb(){let a=zb(),i=rb(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),o=a instanceof Error?a.stack:null,s="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:s},d={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:d},"ErrorBoundary")," or"," ",g.createElement("code",{style:d},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},i),o?g.createElement("pre",{style:f},o):null,h)}var wb=g.createElement(Sb,null),jv=class extends g.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const o=gb(a.digest);o&&(a=o)}let i=a!==void 0?g.createElement(rn.Provider,{value:this.props.routeContext},g.createElement(Pu.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?g.createElement(Eb,{error:a},i):i}};jv.contextType=fb;var mu=new WeakMap;function Eb({children:a,error:i}){let{basename:o}=g.useContext(Mt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let s=vb(i.digest);if(s){let f=mu.get(i);if(f)throw f;let d=xv(s.location,o);if(yv&&!mu.get(i))if(d.isExternal||s.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:s.replace}));throw mu.set(i,h),h}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return a}function Cb({routeContext:a,match:i,children:o}){let s=g.useContext(za);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),g.createElement(rn.Provider,{value:a},o)}function Nb(a,i=[],o=null,s=null,f=null){if(a==null){if(!o)return null;if(o.errors)a=o.matches;else if(i.length===0&&!o.initialized&&o.matches.length>0)a=o.matches;else return null}let d=a,h=o?.errors;if(h!=null){let S=d.findIndex(b=>b.route.id&&h?.[b.route.id]!==void 0);ke(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,S+1))}let p=!1,v=-1;if(o)for(let S=0;S<d.length;S++){let b=d[S];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(v=S),b.route.id){let{loaderData:C,errors:N}=o,D=b.route.loader&&!C.hasOwnProperty(b.route.id)&&(!N||N[b.route.id]===void 0);if(b.route.lazy||D){p=!0,v>=0?d=d.slice(0,v+1):d=[d[0]];break}}}let y=o&&s?(S,b)=>{s(S,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:sb(o.matches),errorInfo:b})}:void 0;return d.reduceRight((S,b,C)=>{let N,D=!1,w=null,j=null;o&&(N=h&&b.route.id?h[b.route.id]:void 0,w=b.route.errorElement||wb,p&&(v<0&&C===0?(Tv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,j=null):v===C&&(D=!0,j=b.route.hydrateFallbackElement||null)));let z=i.concat(d.slice(0,C+1)),R=()=>{let M;return N?M=w:D?M=j:b.route.Component?M=g.createElement(b.route.Component,null):b.route.element?M=b.route.element:M=S,g.createElement(Cb,{match:b,routeContext:{outlet:S,matches:z,isDataRoute:o!=null},children:M})};return o&&(b.route.ErrorBoundary||b.route.errorElement||C===0)?g.createElement(jv,{location:o.location,revalidation:o.revalidation,component:w,error:N,children:R(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:y}):R()},null)}function Ju(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jb(a){let i=g.useContext(za);return ke(i,Ju(a)),i}function Tb(a){let i=g.useContext(Lo);return ke(i,Ju(a)),i}function Ab(a){let i=g.useContext(rn);return ke(i,Ju(a)),i}function Wu(a){let i=Ab(a),o=i.matches[i.matches.length-1];return ke(o.route.id,`${a} can only be used on routes that contain a unique "id"`),o.route.id}function Rb(){return Wu("useRouteId")}function zb(){let a=g.useContext(Pu),i=Tb("useRouteError"),o=Wu("useRouteError");return a!==void 0?a:i.errors?.[o]}function Ob(){let{router:a}=jb("useNavigate"),i=Wu("useNavigate"),o=g.useRef(!1);return Cv(()=>{o.current=!0}),g.useCallback(async(f,d={})=>{Dt(o.current,Ev),o.current&&(typeof f=="number"?await a.navigate(f):await a.navigate(f,{fromRouteId:i,...d}))},[a,i])}var jp={};function Tv(a,i,o){!i&&!jp[a]&&(jp[a]=!0,Dt(!1,o))}g.memo(_b);function _b({routes:a,future:i,state:o,onError:s}){return Nv(a,void 0,o,s,i)}function Dn({to:a,replace:i,state:o,relative:s}){ke(Oa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=g.useContext(Mt);Dt(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=g.useContext(rn),{pathname:h}=sn(),p=Un(),v=Zu(a,Qu(d),h,s==="path"),y=JSON.stringify(v);return g.useEffect(()=>{p(JSON.parse(y),{replace:i,state:o,relative:s})},[p,y,s,i,o]),null}function Rt(a){ke(!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 Db({basename:a="/",children:i=null,location:o,navigationType:s="POP",navigator:f,static:d=!1,unstable_useTransitions:h}){ke(!Oa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=a.replace(/^\/*/,"/"),v=g.useMemo(()=>({basename:p,navigator:f,static:d,unstable_useTransitions:h,future:{}}),[p,f,d,h]);typeof o=="string"&&(o=Ra(o));let{pathname:y="/",search:S="",hash:b="",state:C=null,key:N="default"}=o,D=g.useMemo(()=>{let w=_n(y,p);return w==null?null:{location:{pathname:w,search:S,hash:b,state:C,key:N},navigationType:s}},[p,y,S,b,C,N,s]);return Dt(D!=null,`<Router basename="${p}"> is not able to match the URL "${y}${S}${b}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:g.createElement(Mt.Provider,{value:v},g.createElement(Vi.Provider,{children:i,value:D}))}function Mb({children:a,location:i}){return bb(zu(a),i)}function zu(a,i=[]){let o=[];return g.Children.forEach(a,(s,f)=>{if(!g.isValidElement(s))return;let d=[...i,f];if(s.type===g.Fragment){o.push.apply(o,zu(s.props.children,d));return}ke(s.type===Rt,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ke(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||d.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=zu(s.props.children,d)),o.push(h)}),o}var wo="get",Eo="application/x-www-form-urlencoded";function Uo(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Lb(a){return Uo(a)&&a.tagName.toLowerCase()==="button"}function Ub(a){return Uo(a)&&a.tagName.toLowerCase()==="form"}function Hb(a){return Uo(a)&&a.tagName.toLowerCase()==="input"}function Bb(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function kb(a,i){return a.button===0&&(!i||i==="_self")&&!Bb(a)}function Ou(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((i,o)=>{let s=a[o];return i.concat(Array.isArray(s)?s.map(f=>[o,f]):[[o,s]])},[]))}function Yb(a,i){let o=Ou(a);return i&&i.forEach((s,f)=>{o.has(f)||i.getAll(f).forEach(d=>{o.append(f,d)})}),o}var fo=null;function qb(){if(fo===null)try{new FormData(document.createElement("form"),0),fo=!1}catch{fo=!0}return fo}var Vb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function pu(a){return a!=null&&!Vb.has(a)?(Dt(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Eo}"`),null):a}function Xb(a,i){let o,s,f,d,h;if(Ub(a)){let p=a.getAttribute("action");s=p?_n(p,i):null,o=a.getAttribute("method")||wo,f=pu(a.getAttribute("enctype"))||Eo,d=new FormData(a)}else if(Lb(a)||Hb(a)&&(a.type==="submit"||a.type==="image")){let p=a.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=a.getAttribute("formaction")||p.getAttribute("action");if(s=v?_n(v,i):null,o=a.getAttribute("formmethod")||p.getAttribute("method")||wo,f=pu(a.getAttribute("formenctype"))||pu(p.getAttribute("enctype"))||Eo,d=new FormData(p,a),!qb()){let{name:y,type:S,value:b}=a;if(S==="image"){let C=y?`${y}.`:"";d.append(`${C}x`,"0"),d.append(`${C}y`,"0")}else y&&d.append(y,b)}}else{if(Uo(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=wo,s=null,f=Eo,h=a}return d&&f==="text/plain"&&(h=d,d=void 0),{action:s,method:o.toLowerCase(),encType:f,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function $u(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Gb(a,i,o,s){let f=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return o?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${s}`:f.pathname=`${f.pathname}.${s}`:f.pathname==="/"?f.pathname=`_root.${s}`:i&&_n(f.pathname,i)==="/"?f.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${s}`,f}async function Fb(a,i){if(a.id in i)return i[a.id];try{let o=await import(a.module);return i[a.id]=o,o}catch(o){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Kb(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function Qb(a,i,o){let s=await Promise.all(a.map(async f=>{let d=i.routes[f.route.id];if(d){let h=await Fb(d,o);return h.links?h.links():[]}return[]}));return Wb(s.flat(1).filter(Kb).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Tp(a,i,o,s,f,d){let h=(v,y)=>o[y]?v.route.id!==o[y].route.id:!0,p=(v,y)=>o[y].pathname!==v.pathname||o[y].route.path?.endsWith("*")&&o[y].params["*"]!==v.params["*"];return d==="assets"?i.filter((v,y)=>h(v,y)||p(v,y)):d==="data"?i.filter((v,y)=>{let S=s.routes[v.route.id];if(!S||!S.hasLoader)return!1;if(h(v,y)||p(v,y))return!0;if(v.route.shouldRevalidate){let b=v.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:o[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Zb(a,i,{includeHydrateFallback:o}={}){return Pb(a.map(s=>{let f=i.routes[s.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),o&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function Pb(a){return[...new Set(a)]}function Jb(a){let i={},o=Object.keys(a).sort();for(let s of o)i[s]=a[s];return i}function Wb(a,i){let o=new Set;return new Set(i),a.reduce((s,f)=>{let d=JSON.stringify(Jb(f));return o.has(d)||(o.add(d),s.push({key:d,link:f})),s},[])}function Av(){let a=g.useContext(za);return $u(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function $b(){let a=g.useContext(Lo);return $u(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Iu=g.createContext(void 0);Iu.displayName="FrameworkContext";function Rv(){let a=g.useContext(Iu);return $u(a,"You must render this element inside a <HydratedRouter> element"),a}function Ib(a,i){let o=g.useContext(Iu),[s,f]=g.useState(!1),[d,h]=g.useState(!1),{onFocus:p,onBlur:v,onMouseEnter:y,onMouseLeave:S,onTouchStart:b}=i,C=g.useRef(null);g.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let w=z=>{z.forEach(R=>{h(R.isIntersecting)})},j=new IntersectionObserver(w,{threshold:.5});return C.current&&j.observe(C.current),()=>{j.disconnect()}}},[a]),g.useEffect(()=>{if(s){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[s]);let N=()=>{f(!0)},D=()=>{f(!1),h(!1)};return o?a!=="intent"?[d,C,{}]:[d,C,{onFocus:zi(p,N),onBlur:zi(v,D),onMouseEnter:zi(y,N),onMouseLeave:zi(S,D),onTouchStart:zi(b,N)}]:[!1,C,{}]}function zi(a,i){return o=>{a&&a(o),o.defaultPrevented||i(o)}}function eS({page:a,...i}){let{router:o}=Av(),s=g.useMemo(()=>mv(o.routes,a,o.basename),[o.routes,a,o.basename]);return s?g.createElement(nS,{page:a,matches:s,...i}):null}function tS(a){let{manifest:i,routeModules:o}=Rv(),[s,f]=g.useState([]);return g.useEffect(()=>{let d=!1;return Qb(a,i,o).then(h=>{d||f(h)}),()=>{d=!0}},[a,i,o]),s}function nS({page:a,matches:i,...o}){let s=sn(),{future:f,manifest:d,routeModules:h}=Rv(),{basename:p}=Av(),{loaderData:v,matches:y}=$b(),S=g.useMemo(()=>Tp(a,i,y,d,s,"data"),[a,i,y,d,s]),b=g.useMemo(()=>Tp(a,i,y,d,s,"assets"),[a,i,y,d,s]),C=g.useMemo(()=>{if(a===s.pathname+s.search+s.hash)return[];let w=new Set,j=!1;if(i.forEach(R=>{let M=d.routes[R.route.id];!M||!M.hasLoader||(!S.some(Y=>Y.route.id===R.route.id)&&R.route.id in v&&h[R.route.id]?.shouldRevalidate||M.hasClientLoader?j=!0:w.add(R.route.id))}),w.size===0)return[];let z=Gb(a,p,f.unstable_trailingSlashAwareDataRequests,"data");return j&&w.size>0&&z.searchParams.set("_routes",i.filter(R=>w.has(R.route.id)).map(R=>R.route.id).join(",")),[z.pathname+z.search]},[p,f.unstable_trailingSlashAwareDataRequests,v,s,d,S,i,a,h]),N=g.useMemo(()=>Zb(b,d),[b,d]),D=tS(b);return g.createElement(g.Fragment,null,C.map(w=>g.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...o})),N.map(w=>g.createElement("link",{key:w,rel:"modulepreload",href:w,...o})),D.map(({key:w,link:j})=>g.createElement("link",{key:w,nonce:o.nonce,...j})))}function lS(...a){return i=>{a.forEach(o=>{typeof o=="function"?o(i):o!=null&&(o.current=i)})}}var aS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{aS&&(window.__reactRouterVersion="7.12.0")}catch{}function iS({basename:a,children:i,unstable_useTransitions:o,window:s}){let f=g.useRef();f.current==null&&(f.current=Bx({window:s,v5Compat:!0}));let d=f.current,[h,p]=g.useState({action:d.action,location:d.location}),v=g.useCallback(y=>{o===!1?p(y):g.startTransition(()=>p(y))},[o]);return g.useLayoutEffect(()=>d.listen(v),[d,v]),g.createElement(Db,{basename:a,children:i,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:o})}var zv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ao=g.forwardRef(function({onClick:i,discover:o="render",prefetch:s="none",relative:f,reloadDocument:d,replace:h,state:p,target:v,to:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...N},D){let{basename:w,unstable_useTransitions:j}=g.useContext(Mt),z=typeof y=="string"&&zv.test(y),R=xv(y,w);y=R.to;let M=yb(y,{relative:f}),[Y,Z,J]=Ib(s,N),q=sS(y,{replace:h,state:p,target:v,preventScrollReset:S,relative:f,viewTransition:b,unstable_defaultShouldRevalidate:C,unstable_useTransitions:j});function W(ce){i&&i(ce),ce.defaultPrevented||q(ce)}let ne=g.createElement("a",{...N,...J,href:R.absoluteURL||M,onClick:R.isExternal||d?i:W,ref:lS(D,Z),target:v,"data-discover":!z&&o==="render"?"true":void 0});return Y&&!z?g.createElement(g.Fragment,null,ne,g.createElement(eS,{page:M})):ne});Ao.displayName="Link";var cS=g.forwardRef(function({"aria-current":i="page",caseSensitive:o=!1,className:s="",end:f=!1,style:d,to:h,viewTransition:p,children:v,...y},S){let b=Xi(h,{relative:y.relative}),C=sn(),N=g.useContext(Lo),{navigator:D,basename:w}=g.useContext(Mt),j=N!=null&&pS(b)&&p===!0,z=D.encodeLocation?D.encodeLocation(b).pathname:b.pathname,R=C.pathname,M=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;o||(R=R.toLowerCase(),M=M?M.toLowerCase():null,z=z.toLowerCase()),M&&w&&(M=_n(M,w)||M);const Y=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let Z=R===z||!f&&R.startsWith(z)&&R.charAt(Y)==="/",J=M!=null&&(M===z||!f&&M.startsWith(z)&&M.charAt(z.length)==="/"),q={isActive:Z,isPending:J,isTransitioning:j},W=Z?i:void 0,ne;typeof s=="function"?ne=s(q):ne=[s,Z?"active":null,J?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let ce=typeof d=="function"?d(q):d;return g.createElement(Ao,{...y,"aria-current":W,className:ne,ref:S,style:ce,to:h,viewTransition:p},typeof v=="function"?v(q):v)});cS.displayName="NavLink";var oS=g.forwardRef(({discover:a="render",fetcherKey:i,navigate:o,reloadDocument:s,replace:f,state:d,method:h=wo,action:p,onSubmit:v,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...N},D)=>{let{unstable_useTransitions:w}=g.useContext(Mt),j=hS(),z=mS(p,{relative:y}),R=h.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&zv.test(p),Y=Z=>{if(v&&v(Z),Z.defaultPrevented)return;Z.preventDefault();let J=Z.nativeEvent.submitter,q=J?.getAttribute("formmethod")||h,W=()=>j(J||Z.currentTarget,{fetcherKey:i,method:q,navigate:o,replace:f,state:d,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C});w&&o!==!1?g.startTransition(()=>W()):W()};return g.createElement("form",{ref:D,method:R,action:z,onSubmit:s?v:Y,...N,"data-discover":!M&&a==="render"?"true":void 0})});oS.displayName="Form";function rS(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ov(a){let i=g.useContext(za);return ke(i,rS(a)),i}function sS(a,{target:i,replace:o,state:s,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v}={}){let y=Un(),S=sn(),b=Xi(a,{relative:d});return g.useCallback(C=>{if(kb(C,i)){C.preventDefault();let N=o!==void 0?o:ki(S)===ki(b),D=()=>y(a,{replace:N,state:s,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p});v?g.startTransition(()=>D()):D()}},[S,y,b,o,s,i,a,f,d,h,p,v])}function uS(a){Dt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=g.useRef(Ou(a)),o=g.useRef(!1),s=sn(),f=g.useMemo(()=>Yb(s.search,o.current?null:i.current),[s.search]),d=Un(),h=g.useCallback((p,v)=>{const y=Ou(typeof p=="function"?p(new URLSearchParams(f)):p);o.current=!0,d("?"+y,v)},[d,f]);return[f,h]}var fS=0,dS=()=>`__${String(++fS)}__`;function hS(){let{router:a}=Ov("useSubmit"),{basename:i}=g.useContext(Mt),o=Rb(),s=a.fetch,f=a.navigate;return g.useCallback(async(d,h={})=>{let{action:p,method:v,encType:y,formData:S,body:b}=Xb(d,i);if(h.navigate===!1){let C=h.fetcherKey||dS();await s(C,o,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:b,formMethod:h.method||v,formEncType:h.encType||y,flushSync:h.flushSync})}else await f(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:b,formMethod:h.method||v,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:o,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,f,i,o])}function mS(a,{relative:i}={}){let{basename:o}=g.useContext(Mt),s=g.useContext(rn);ke(s,"useFormAction must be used inside a RouteContext");let[f]=s.matches.slice(-1),d={...Xi(a||".",{relative:i})},h=sn();if(a==null){d.search=h.search;let p=new URLSearchParams(d.search),v=p.getAll("index");if(v.some(S=>S==="")){p.delete("index"),v.filter(b=>b).forEach(b=>p.append("index",b));let S=p.toString();d.search=S?`?${S}`:""}}return(!a||a===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:On([o,d.pathname])),ki(d)}function pS(a,{relative:i}={}){let o=g.useContext(Sv);ke(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Ov("useViewTransitionState"),f=Xi(a,{relative:i});if(!o.isTransitioning)return!1;let d=_n(o.currentLocation.pathname,s)||o.currentLocation.pathname,h=_n(o.nextLocation.pathname,s)||o.nextLocation.pathname;return To(f.pathname,h)!=null||To(f.pathname,d)!=null}var Gi=hv();const vS=fv(Gi),_v=g.createContext(null);function $t(){const a=g.useContext(_v);if(!a)throw new Error("useAuth must be used within AuthProvider");return a}function gS({children:a}){const i="/.account/",[o,s]=g.useState(null),[f,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(!1),S=!!o?.account?.logout,b=f,C=async()=>{try{const w=await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});return w.ok?!!(await w.json()).client:!1}catch{return!1}},N=async()=>{try{const w=await fetch(i,{headers:{Accept:"application/json"},credentials:"include"});if(w.ok){const j=await w.json();let z=!1;j.controls?.account?.logout&&(z=await C()),y(z),s(j.controls||{})}else p(`Failed to load configuration (Status: ${w.status})`)}catch{p("Network error: Could not connect to authentication server")}};g.useEffect(()=>{(async()=>(await N(),d(!1)))()},[i]);const D=async()=>{await N()};return u.jsx(_v.Provider,{value:{controls:o,isInitializing:f,initError:h,idpIndex:i,isLoggedIn:S,authenticating:b,hasOidcPending:v,refetchControls:D},children:a})}const Dv=(...a)=>a.filter((i,o,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===o).join(" ").trim();const yS=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const xS=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,o,s)=>s?s.toUpperCase():o.toLowerCase());const Ap=a=>{const i=xS(a);return i.charAt(0).toUpperCase()+i.slice(1)};var bS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const SS=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const wS=g.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:f="",children:d,iconNode:h,...p},v)=>g.createElement("svg",{ref:v,...bS,width:i,height:i,stroke:a,strokeWidth:s?Number(o)*24/Number(i):o,className:Dv("lucide",f),...!d&&!SS(p)&&{"aria-hidden":"true"},...p},[...h.map(([y,S])=>g.createElement(y,S)),...Array.isArray(d)?d:[d]]));const Ve=(a,i)=>{const o=g.forwardRef(({className:s,...f},d)=>g.createElement(wS,{ref:d,iconNode:i,className:Dv(`lucide-${yS(Ap(a))}`,`lucide-${a}`,s),...f}));return o.displayName=Ap(a),o};const ES=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Mv=Ve("arrow-left",ES);const CS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ho=Ve("arrow-right",CS);const NS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],zn=Ve("check",NS);const jS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Lv=Ve("chevron-down",jS);const TS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Uv=Ve("circle-alert",TS);const AS=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Hv=Ve("clock",AS);const RS=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ho=Ve("copy",RS);const zS=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],OS=Ve("database",zS);const _S=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Rp=Ve("external-link",_S);const DS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],MS=Ve("globe",DS);const LS=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],US=Ve("hard-drive",LS);const HS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],BS=Ve("info",HS);const kS=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],vu=Ve("key",kS);const YS=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Bv=Ve("layers",YS);const qS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ta=Ve("loader-circle",qS);const VS=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Bi=Ve("lock",VS);const XS=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],GS=Ve("log-out",XS);const FS=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],_u=Ve("mail",FS);const KS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],gu=Ve("plus",KS);const QS=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Yi=Ve("shield",QS);const ZS=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],zp=Ve("trash-2",ZS);const PS=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],kv=Ve("user",PS);function Yv(){return u.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:u.jsx(Ta,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function Fi({children:a,title:i,subtitle:o,icon:s,showBack:f,onBack:d}){return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[u.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:u.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),u.jsxs("div",{className:"w-full max-w-[360px] bg-white border border-zinc-200 rounded-3xl shadow-xl shadow-zinc-200/50 p-6 relative z-10",children:[u.jsxs("div",{className:"flex flex-col items-center mb-6",children:[u.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[f?u.jsx("button",{onClick:d,className:"p-2 -ml-2 rounded-full hover:bg-zinc-100 text-zinc-400 hover:text-zinc-900 transition-colors",children:u.jsx(Mv,{className:"w-4 h-4"})}):u.jsx("div",{className:"w-8"}),u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:s?u.jsx(s,{className:"w-5 h-5 text-white"}):u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),u.jsx("div",{className:"w-8"})]}),u.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:i}),o&&u.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:o})]}),a]})]})}function JS({message:a}){return u.jsx(Fi,{title:"Error",subtitle:a,icon:Uv,children:u.jsx("button",{onClick:()=>window.location.reload(),className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium transition-colors",children:"Retry"})})}const Du="xpod:returnTo";function Ca(a){try{a&&sessionStorage.setItem(Du,a)}catch{}}function WS(){try{const a=sessionStorage.getItem(Du);return a&&sessionStorage.removeItem(Du),a}catch{return null}}function $S(){try{return new URLSearchParams(window.location.search).get("returnTo")||null}catch{return null}}function IS(a,i,o=!1){return a&&i&&!o}function Op({children:a,allowOidcPending:i=!1}){const{isLoggedIn:o,hasOidcPending:s}=$t(),f=sn();return IS(o,s,i)?u.jsx(Dn,{to:"/.account/oidc/consent/",replace:!0}):o?u.jsx(u.Fragment,{children:a}):(Ca(f.pathname+f.search),u.jsx(Dn,{to:"/.account/login/password/",replace:!0}))}function qv(a){var i,o,s="";if(typeof a=="string"||typeof a=="number")s+=a;else if(typeof a=="object")if(Array.isArray(a)){var f=a.length;for(i=0;i<f;i++)a[i]&&(o=qv(a[i]))&&(s&&(s+=" "),s+=o)}else for(o in a)a[o]&&(s&&(s+=" "),s+=o);return s}function $e(){for(var a,i,o=0,s="",f=arguments.length;o<f;o++)(a=arguments[o])&&(i=qv(a))&&(s&&(s+=" "),s+=i);return s}const _p=3,Dp=63,e1=/^[a-z0-9-]+$/;function Vv(a){return a.trim().toLowerCase()}function Mp(a){const i=Vv(a);if(!i)return"Username is required";if(i.length<_p||i.length>Dp)return`Username must be ${_p}-${Dp} characters`;if(!e1.test(i))return"Username can only contain lowercase letters, numbers, and hyphens";if(i.startsWith("-")||i.endsWith("-"))return"Username cannot start or end with a hyphen"}function t1(){try{const a=sessionStorage.getItem("provisionCode")?.trim();return a||void 0}catch{return}}function Xv(){try{sessionStorage.removeItem("provisionCode")}catch{}}function Gv(a,i=t1()){const o={name:a.trim()};return i&&(o.settings={provisionCode:i}),o}function Lp(a){return{Accept:"application/json",Authorization:`CSS-Account-Token ${a}`}}async function n1(a){const i=a.fetchImpl??fetch;let o=await i(a.accountCreateUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!o.ok)throw new Error((await o.json().catch(()=>({}))).message||"Failed to create account");const s=await o.json().catch(()=>({})),f=typeof s.authorization=="string"?s.authorization:"";if(!f)throw new Error("Account token not returned");if(o=await i(a.idpIndex,{headers:Lp(f),credentials:"include"}),!o.ok)throw new Error((await o.json().catch(()=>({}))).message||"Failed to load account controls");const d=await o.json().catch(()=>({})),h=d.controls?.password?.create,p=d.controls?.password?.login;if(!h)throw new Error("Password endpoint not found");if(!p)throw new Error("Login endpoint not found");if(o=await i(h,{method:"POST",headers:{...Lp(f),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a.email,password:a.password})}),!o.ok)throw new Error((await o.json().catch(()=>({}))).message||"Failed to set password");return{loginUrl:p}}async function l1(a,i,o=15e3){const s=Date.now()+o,f=`${i}oidc/pick-webid/`;for(;Date.now()<s;){try{const d=await a(f,{headers:{Accept:"application/json"},credentials:"include"});if(d.ok){const h=await d.json().catch(()=>({}));if((Array.isArray(h.webIds)?h.webIds:[]).length>0)return!0}}catch{}await new Promise(d=>setTimeout(d,500))}return!1}async function a1(a){const i=a.fetchImpl??fetch,{idpIndex:o,username:s}=a;let f=await i(o,{headers:{Accept:"application/json"},credentials:"include"});const h=(await f.json().catch(()=>({}))).controls?.account?.pod;if(!h)throw new Error("Pod creation endpoint not found");if(f=await i(h,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify(Gv(s))}),!f.ok){const v=await f.json().catch(()=>({}));throw new Error(v.message||"Failed to create pod")}await f.json().catch(()=>({})),Xv(),await l1(i,o);const p=await i("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});return p.ok&&(await p.json().catch(()=>({}))).client?{redirectedToConsent:!0}:{redirectedToConsent:!1}}function Mu({initialIsRegister:a=!1}){const{controls:i,idpIndex:o,isLoggedIn:s,authenticating:f}=$t(),d=Un(),[h,p]=g.useState(!1),[v,y]=g.useState(a),[S,b]=g.useState(""),[C,N]=g.useState(""),[D,w]=g.useState(""),[j,z]=g.useState(!1),R=C.length>0&&D.length>0&&C===D,M=v?Mp(S):void 0;if(g.useEffect(()=>{const W=$S();W&&Ca(W)},[]),s)return u.jsx(Dn,{to:"/.account/account/",replace:!0});const Y=[{icon:Hv,title:"Your AI Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:Bv,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Yi,title:"One Secretary, A Thousand Agents",desc:"Full power, full privacy"}],Z=async W=>{W.preventDefault(),p(!0);const ne=new FormData(W.currentTarget),ce=ne.get("email"),oe=ne.get("password");try{if(v){const P=ne.get("confirmPassword"),te=Vv(ne.get("username")),I=Mp(te);if(oe!==P){alert("Passwords do not match"),p(!1);return}if(I){alert(I),p(!1);return}const{loginUrl:re}=await n1({accountCreateUrl:i?.account?.create||"/.account/account/",email:ce,password:oe,idpIndex:o});let _=await fetch(re,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:ce,password:oe})});if(!_.ok)throw new Error((await _.json().catch(()=>({}))).message||"Auto-login failed");const L=await a1({idpIndex:o,username:te});window.location.href=L.redirectedToConsent?"/.account/oidc/consent/":"/.account/account/"}else{const P=await fetch(i?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:ce,password:oe})}),te=await P.json().catch(()=>({}));if(P.ok){const I=P.headers.get("Location");if(te.location){window.location.href=te.location;return}if(I){window.location.href=I;return}const re=WS();if(re){window.location.href=re;return}try{if((await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/account/"}else alert(te.message||"Login failed")}}catch(P){alert(P.message||"Operation failed")}finally{p(!1)}},J=()=>{y(!v),b(""),N(""),w("")},q=async()=>{if(i?.oidc?.cancel){z(!0);try{const ne=await(await fetch(i.oidc.cancel,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include"})).json();ne.location&&(window.location.href=ne.location)}catch{alert("Failed to cancel"),z(!1)}}};return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[u.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[u.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),u.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),u.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[u.jsx("div",{className:"hidden lg:block px-8",children:u.jsxs("div",{className:"max-w-md ml-auto",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:u.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-4",children:u.jsx("div",{className:"space-y-3",children:Y.map(({icon:W,title:ne,desc:ce})=>u.jsxs("div",{className:"flex gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:u.jsx(W,{className:"w-4 h-4 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:ne}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:ce})]})]},ne))})}),u.jsx("div",{className:"mt-12",children:u.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",u.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),u.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[u.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"mb-6",children:[u.jsx("h2",{className:"text-xl font-bold",children:v?"Create account":"Welcome back"}),u.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:v?"Create your Xpod account to get started.":"Sign in to continue your identity workspace."})]}),u.jsxs("form",{className:"space-y-4",onSubmit:Z,children:[u.jsxs("div",{className:"space-y-3",children:[v&&u.jsxs("div",{className:"relative",children:[u.jsx(kv,{className:$e("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",M&&S.length>0?"text-amber-500":"text-zinc-400")}),u.jsx("input",{name:"username",type:"text",required:!0,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:S,onChange:W=>b(W.target.value.toLowerCase()),className:$e("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",M&&S.length>0?"border-amber-300 focus:border-amber-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(_u,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Email"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(Bi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"password",type:"password",required:!0,value:C,onChange:W=>N(W.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Password"})]}),v&&u.jsxs("div",{className:"relative",children:[R?u.jsx(zn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):u.jsx(Bi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:D,onChange:W=>w(W.target.value),className:$e("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",R?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),v&&u.jsx("p",{className:$e("text-[11px] leading-relaxed",M&&S.length>0?"text-amber-600":"text-zinc-500"),children:M&&S.length>0?M:"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens."}),!v&&u.jsx("div",{className:"flex justify-end",children:u.jsx("button",{type:"button",onClick:()=>d("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),u.jsx("button",{type:"submit",disabled:h||j||!!(v&&M),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:h?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:[v?"Sign up":"Sign in",u.jsx(Ho,{className:"h-4 w-4"})]})}),f&&!v&&u.jsx("button",{type:"button",onClick:q,disabled:j||h,className:"w-full py-3 border border-zinc-200 hover:bg-zinc-100 text-zinc-600 rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:j?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),u.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:u.jsxs("p",{className:"text-[11px] text-zinc-500",children:[v?"Already have an account? ":"Don't have an account? ",u.jsx("button",{onClick:J,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:v?"Sign in":"Sign up"})]})})]})})]})]})}function i1(){const{isLoggedIn:a,hasOidcPending:i}=$t();return a&&i?u.jsx(Dn,{to:"/.account/oidc/consent/",replace:!0}):a?u.jsx(Dn,{to:"/.account/account/",replace:!0}):u.jsx(Mu,{})}function c1(){const a=Un(),{isLoggedIn:i}=$t(),o=[{icon:Hv,title:"Your AI Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:Bv,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Yi,title:"One Secretary, A Thousand Agents",desc:"Full power, full privacy"}];return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[u.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[u.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),u.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),u.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[u.jsx("div",{className:"hidden lg:block px-8",children:u.jsxs("div",{className:"max-w-md ml-auto",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:u.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-4",children:u.jsx("div",{className:"space-y-3",children:o.map(({icon:s,title:f,desc:d})=>u.jsxs("div",{className:"flex gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:u.jsx(s,{className:"w-4 h-4 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:f}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:d})]})]},f))})}),u.jsx("div",{className:"mt-12",children:u.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",u.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),u.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[u.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"lg:hidden mb-8",children:[u.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-xs leading-relaxed mb-6",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-2",children:o.map(({icon:s,title:f,desc:d})=>u.jsxs("div",{className:"flex gap-2",children:[u.jsx(s,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),u.jsxs("div",{children:[u.jsx("span",{className:"text-xs font-medium text-zinc-900",children:f}),u.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",d]})]})]},f))})]}),u.jsxs("div",{className:"mb-6",children:[u.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),u.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),u.jsxs("div",{className:"space-y-3 mb-6",children:[u.jsxs("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:u.jsx(Rp,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),u.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),u.jsxs("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:u.jsx(Rp,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),u.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),u.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[u.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),u.jsxs("button",{onClick:()=>a(i?"/.account/account/":"/.account/login/password/"),className:"w-full py-3 border border-zinc-200 hover:bg-zinc-50 text-zinc-700 rounded-xl text-sm font-medium flex items-center justify-center gap-2 transition-colors",children:[u.jsx(Mv,{className:"w-4 h-4"}),i?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function yu(a,i){return`sk-${btoa(`${a}:${i}`)}`}function o1(){if(typeof window>"u")return"https://api.undefineds.co/v1";const{protocol:a,hostname:i,origin:o}=window.location;return i.startsWith("id.")?`${a}//api.${i.slice(3)}/v1`:i.startsWith("api.")?`${o}/v1`:`${o.replace(/\/$/,"")}/v1`}function r1(){const{controls:a,refetchControls:i,hasOidcPending:o}=$t(),s=Un(),[f,d]=g.useState(!1),[h,p]=g.useState([]),[v,y]=g.useState([]),[S,b]=g.useState(!1),[C,N]=g.useState(""),[D,w]=g.useState(!1),[j,z]=g.useState(""),[R,M]=g.useState([]),[Y,Z]=g.useState(null),[J,q]=g.useState(!1),[W,ne]=g.useState(""),[ce,oe]=g.useState(""),[P,te]=g.useState(null),[I,re]=g.useState(!1),_=g.useRef(null),L=o1();g.useEffect(()=>{const V=se=>{_.current&&!_.current.contains(se.target)&&re(!1)};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[]);const K=async(V,se)=>{try{await navigator.clipboard.writeText(V),te(se),setTimeout(()=>te(null),2e3)}catch{}},le=async()=>{try{if(a?.account?.webId){const V=await fetch(a.account.webId,{headers:{Accept:"application/json"},credentials:"include"});if(V.ok){const fe=(await V.json()).webIdLinks||{};p(Object.keys(fe))}else p([])}if(a?.account?.pod){const V=await fetch(a.account.pod,{headers:{Accept:"application/json"},credentials:"include"});if(V.ok){const fe=(await V.json()).pods||{};y(Object.keys(fe).map(Ee=>({id:Ee})))}else y([])}if(a?.account?.clientCredentials){const V=await fetch(a.account.clientCredentials,{headers:{Accept:"application/json"},credentials:"include"});if(V.ok){const fe=(await V.json()).clientCredentials||{};M(Object.entries(fe).map(([Ee])=>({id:Ee})))}else M([])}}catch(V){console.error("Failed to fetch account data:",V)}};g.useEffect(()=>{le()},[a]);const pe=async()=>{if(a?.account?.logout){d(!0);try{(await fetch(a.account.logout,{method:"POST",headers:{Accept:"application/json"},credentials:"include"})).ok&&(await i(),s("/.account/"))}catch{alert("Logout failed")}finally{d(!1)}}},T=async V=>{if(V.preventDefault(),!(!a?.account?.pod||!C.trim())){d(!0);try{const se=await fetch(a.account.pod,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify(Gv(C))});if(se.ok)Xv(),N(""),b(!1),await i(),await le(),o&&s("/.account/oidc/consent/");else{const fe=await se.json().catch(()=>({}));alert(fe.message||"Failed to create pod")}}catch{alert("Network error")}finally{d(!1)}}},G=async V=>{if(V.preventDefault(),!(!a?.account?.webId||!j.trim())){d(!0);try{const se=await fetch(a.account.webId,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:j.trim()})});if(se.ok)z(""),w(!1),await le();else{const fe=await se.json().catch(()=>({}));alert(fe.message||"Failed to link WebID")}}catch{alert("Network error")}finally{d(!1)}}},$=async V=>{if(confirm(`Delete pod ${V}? This cannot be undone.`)){d(!0);try{(await fetch(V,{method:"DELETE",credentials:"include"})).ok?await le():alert("Failed to delete pod")}catch{alert("Network error")}finally{d(!1)}}},ee=async V=>{if(V.preventDefault(),!(!a?.account?.clientCredentials||!W||!ce.trim())){d(!0);try{const se=await fetch(a.account.clientCredentials,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({name:ce.trim(),webId:W})});if(se.ok){const fe=await se.json();Z({id:fe.id,secret:fe.secret}),q(!1),ne(""),oe(""),await le()}else{const fe=await se.json().catch(()=>({}));alert(fe.message||"Failed to create credential")}}catch{alert("Network error")}finally{d(!1)}}},de=()=>{if(h.length===0){alert("Please create a Pod first to get a WebID");return}ne(h[0]),oe(""),q(!0)},me=async V=>{if(confirm("Delete this credential? This cannot be undone.")){d(!0);try{(await fetch(V,{method:"DELETE",headers:{Accept:"application/json"},credentials:"include"})).ok?await le():alert("Failed to delete credential")}catch{alert("Network error")}finally{d(!1)}}};return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[u.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:u.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),u.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:u.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:u.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Ao,{to:"/.account/about/",className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[u.jsx(BS,{className:"w-3.5 h-3.5"}),"About"]}),u.jsxs("button",{onClick:pe,disabled:f,className:"flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[u.jsx(GS,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),u.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[o&&u.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:u.jsx(Yi,{className:"w-5 h-5 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),u.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),u.jsxs(Ao,{to:"/.account/oidc/consent/",className:"flex items-center gap-2 px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-sm font-medium rounded-lg transition-colors",children:["Continue",u.jsx(Ho,{className:"w-4 h-4"})]})]})}),u.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(US,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),a?.account?.pod&&u.jsxs("button",{onClick:()=>b(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(gu,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),u.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),S&&u.jsxs("form",{onSubmit:T,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"text",value:C,onChange:V=>N(V.target.value),placeholder:"my-pod",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Creating...":"Create"}),u.jsx("button",{type:"button",onClick:()=>b(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:v.length===0?u.jsx("div",{className:"p-4",children:u.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"No Pods found. Create one to get started."})}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:v.map(V=>u.jsxs("li",{className:"p-3 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[u.jsx(OS,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("a",{href:V.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:V.id})]}),u.jsx("button",{onClick:()=>$(V.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:u.jsx(zp,{className:"w-4 h-4"})})]},V.id))})})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(kv,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),a?.account?.webId&&u.jsxs("button",{onClick:()=>w(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(gu,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),u.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),D&&u.jsxs("form",{onSubmit:G,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"url",value:j,onChange:V=>z(V.target.value),placeholder:"https://example.com/profile/card#me",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Linking...":"Link"}),u.jsx("button",{type:"button",onClick:()=>w(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:h.length===0?u.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:h.map(V=>u.jsxs("li",{className:"p-3 flex items-center gap-3",children:[u.jsx(MS,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("a",{href:V,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:V})]},V))})})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(vu,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),a?.account?.clientCredentials&&u.jsxs("button",{onClick:de,disabled:f,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(gu,{className:"w-3.5 h-3.5"}),"New Key"]})]}),u.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["AI API keys for model endpoints such as ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/chat/completions"})," and ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/responses"}),". Send as ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"}),"."]}),a?.account?.clientCredentials?u.jsxs(u.Fragment,{children:[J&&u.jsxs("form",{onSubmit:ee,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),u.jsx("input",{type:"text",value:ce,onChange:V=>oe(V.target.value),placeholder:"my-app-key",className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),u.jsxs("div",{className:"relative",ref:_,children:[u.jsxs("button",{type:"button",onClick:()=>re(!I),className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none text-left flex items-center justify-between",children:[u.jsx("span",{className:"truncate text-zinc-700",children:W||"Select WebID"}),u.jsx(Lv,{className:`w-4 h-4 text-zinc-400 transition-transform ${I?"rotate-180":""}`})]}),I&&u.jsx("div",{className:"absolute z-10 mt-1 w-full bg-white border border-zinc-200 rounded-lg shadow-lg max-h-48 overflow-auto",children:h.map(V=>u.jsx("button",{type:"button",onClick:()=>{ne(V),re(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${W===V?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:V},V))}),u.jsx("input",{type:"hidden",name:"webId",value:W,required:!0})]})]}),u.jsxs("div",{className:"flex gap-2 justify-end",children:[u.jsx("button",{type:"button",onClick:()=>q(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Creating...":"Create"})]})]}),Y&&u.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:u.jsxs("div",{className:"flex items-start gap-3",children:[u.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:u.jsx(vu,{className:"w-4 h-4 text-emerald-600"})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),u.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),u.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),u.jsx("p",{className:"text-zinc-600 truncate",children:Y.id})]}),u.jsx("button",{onClick:()=>K(Y.id,"id"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client ID",children:P==="id"?u.jsx(zn,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(ho,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),u.jsx("p",{className:"text-zinc-600 break-all",children:Y.secret})]}),u.jsx("button",{onClick:()=>K(Y.secret,"secret"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client Secret",children:P==="secret"?u.jsx(zn,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(ho,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),u.jsx("p",{className:"text-emerald-600 break-all font-medium",children:yu(Y.id,Y.secret)})]}),u.jsx("button",{onClick:()=>K(yu(Y.id,Y.secret),"apikey"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy API Key",children:P==="apikey"?u.jsx(zn,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(ho,{className:"w-3.5 h-3.5"})})]})]}),u.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-200 bg-white p-3 text-xs",children:[u.jsx("p",{className:"mb-2 font-medium text-zinc-700",children:"Usage"}),u.jsxs("div",{className:"space-y-2 font-mono text-[11px]",children:[u.jsxs("div",{className:"flex items-start justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Base URL"}),u.jsx("p",{className:"break-all text-zinc-600",children:L})]}),u.jsx("button",{onClick:()=>K(L,"baseurl"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Base URL",children:P==="baseurl"?u.jsx(zn,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(ho,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Authorization"}),u.jsxs("p",{className:"break-all text-zinc-600",children:["Bearer ",yu(Y.id,Y.secret)]})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Endpoints"}),u.jsx("p",{className:"break-all text-zinc-600",children:"/chat/completions · /responses · /models"})]})]})]}),u.jsx("button",{onClick:()=>Z(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:R.length===0?u.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:R.map(V=>u.jsxs("li",{className:"p-3 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[u.jsx(vu,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:V.id})]}),u.jsx("button",{onClick:()=>me(V.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:u.jsx(zp,{className:"w-4 h-4"})})]},V.id))})})]}):u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:u.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),u.jsxs("section",{children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[u.jsx(Yi,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),u.jsx("a",{href:a?.password?.forgot||"/.account/login/password/forgot/",className:"px-3 py-1.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 text-xs rounded-lg transition-colors",children:"Change Password"})]})]})]})]})}function s1(){const{idpIndex:a,isLoggedIn:i,controls:o}=$t(),s=Un(),[f,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(null),[S,b]=g.useState([]),[C,N]=g.useState(""),[D,w]=g.useState(null),[j,z]=g.useState(null),[R,M]=g.useState(!0),Y=`${a}oidc/consent/`,Z=`${a}oidc/pick-webid/`,J=`${a}oidc/cancel`;g.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),Ca(window.location.href),(async()=>{try{const P=await fetch(Y,{headers:{Accept:"application/json"},credentials:"include"});if(console.log("[Consent] GET consent response status:",P.status),P.status===401||P.status===403){w("Please sign in to continue authorization."),d(!1);return}if(!P.ok){const re=await P.json().catch(()=>({}));throw new Error(re.message||"Failed to load consent info")}const te=await P.json();p(te.client||{}),y(te.webId||null);const I=await fetch(Z,{headers:{Accept:"application/json"},credentials:"include"});if(I.ok){const _=(await I.json()).webIds||[];b(_),te.webId&&_.includes(te.webId)?N(te.webId):_.length>0&&N(_[0])}}catch(P){w(P.message||"Failed to load consent info")}finally{d(!1)}})()},[Y,Z]);const q=P=>{try{const te=new URL(P),I=te.pathname.split("/").filter(Boolean);return{provider:te.host,podId:I[0]??"-",full:P}}catch{return{provider:"-",podId:"-",full:P}}},W=async P=>{try{await navigator.clipboard.writeText(P),z(P),setTimeout(()=>z(null),1200)}catch{z(null)}},ne=async()=>{try{o?.account?.logout&&await fetch(o.account.logout,{method:"POST",credentials:"include"}),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},ce=async P=>{console.log("[Consent] handleConsent called, allow:",P);try{if(d(!0),w(null),!P){console.log("[Consent] Cancelling...");const K=await(await fetch(J,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})})).json();console.log("[Consent] Cancel response:",K),K.location&&(window.location.href=K.location);return}if(C&&C!==v){console.log("[Consent] Picking WebID:",C);const L=await fetch(Z,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:C,remember:!1})}),K=await L.json();if(!L.ok)throw new Error(K.message||"Failed to select WebID");K.location&&await fetch(K.location,{credentials:"include"})}const te=await fetch(Y,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({remember:R})}),I=await te.json();if(console.log("[Consent] Response:",te.status,I),console.log("[Consent] Location header:",te.headers.get("Location")),!te.ok)throw new Error(I.message||"Consent failed");const re=te.headers.get("Location"),_=I.location||re;console.log("[Consent] Redirect URL:",_),_?window.location.href=_:(w("Authorization completed but no redirect URL received. The application may need to restart the login flow."),d(!1))}catch(te){w(te.message||"Consent failed"),d(!1)}},oe=S.length>0?S:v?[v]:[];return u.jsxs(Fi,{title:"Authorize",subtitle:`${h?.client_name||"Application"} requests access`,icon:Yi,children:[!i&&u.jsxs("div",{className:"mb-4 bg-amber-50 border border-amber-200 rounded-xl p-3 text-zinc-600 text-[11px] space-y-3",children:[u.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),u.jsx("button",{onClick:()=>{Ca(window.location.href),s("/.account/login/password/")},className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium",children:"Go to Sign in"})]}),D&&u.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[u.jsx(Uv,{className:"w-4 h-4 inline mr-2"}),D]}),f?u.jsx("div",{className:"flex justify-center py-6",children:u.jsx(Ta,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):u.jsxs("div",{className:"space-y-4",children:[(h?.client_uri||h?.client_id)&&u.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[h?.client_uri&&u.jsx("div",{children:u.jsx("a",{href:h.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:h.client_uri})}),h?.client_id&&u.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:h.client_id,children:["ID: ",h.client_id]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),oe.length>0&&u.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",u.jsx("span",{className:"text-zinc-600",children:q(oe[0]).provider})]})]}),oe.length===0?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("p",{className:"text-zinc-500 text-xs mb-3",children:"You need to create a Pod first to get a WebID."}),u.jsx("button",{onClick:()=>{Ca(window.location.href),s("/.account/account/")},className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg",children:"Create Pod"})]}):u.jsx("div",{className:"space-y-1",children:oe.map(P=>{const te=q(P);return u.jsxs("label",{className:$e("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",C===P?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[u.jsx("input",{type:"radio",name:"webId",value:P,checked:C===P,onChange:I=>N(I.target.value),className:"text-[#7C4DFF]"}),u.jsx("div",{className:"min-w-0 flex-1",children:u.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:te.full,children:te.podId})}),u.jsx("button",{type:"button",onClick:I=>{I.preventDefault(),W(P)},className:"px-2 py-1 text-[10px] rounded-lg border border-zinc-300 text-zinc-600 hover:text-zinc-900 hover:border-[#7C4DFF]/50 shrink-0",children:j===P?"Copied":"Copy"})]},P)})})]}),u.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:R,onChange:P=>M(P.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[u.jsx("button",{onClick:()=>ce(!1),disabled:f,className:"py-2.5 border border-zinc-200 rounded-xl text-xs text-zinc-500 hover:bg-zinc-100 disabled:opacity-50 transition-colors",children:"Deny"}),u.jsx("button",{onClick:()=>ce(!0),disabled:f||oe.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:f?"Authorizing...":"Authorize"})]}),u.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[u.jsx("button",{type:"button",onClick:()=>{Ca(window.location.href),s("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),u.jsx("button",{type:"button",onClick:ne,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function u1(){const{controls:a,isLoggedIn:i}=$t(),o=Un(),[s,f]=g.useState(!1),[d,h]=g.useState(!1);if(i)return u.jsx(Dn,{to:"/.account/account/",replace:!0});const p=async v=>{v.preventDefault(),f(!0);const y=new FormData(v.currentTarget).get("email");try{await fetch(a?.password?.forgot||"/.account/login/password/forgot/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:y})}),h(!0)}catch{alert("Failed to send reset email")}finally{f(!1)}};return u.jsx(Fi,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:_u,showBack:!0,onBack:()=>o("/.account/login/password/"),children:d?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[u.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:u.jsx(zn,{className:"w-5 h-5 text-emerald-600"})}),u.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),u.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:()=>o("/.account/login/password/"),className:"flex-1 py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Sign in"}),u.jsx("button",{onClick:()=>h(!1),className:"flex-1 py-3 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 rounded-xl text-sm font-medium",children:"Resend"})]})]}):u.jsxs("form",{className:"space-y-4",onSubmit:p,children:[u.jsxs("div",{className:"relative",children:[u.jsx(_u,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"Email address"})]}),u.jsx("button",{type:"submit",disabled:s,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:s?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:["Send Reset Link ",u.jsx(Ho,{className:"h-4 w-4"})]})})]})})}function f1(){const{controls:a,isLoggedIn:i}=$t(),o=Un(),[s]=uS(),[f,d]=g.useState(!1),[h,p]=g.useState(!1),[v,y]=g.useState(null),[S,b]=g.useState(""),[C,N]=g.useState(""),D=s.get("rid"),w=S.length>0&&C.length>0&&S===C;if(i)return u.jsx(Dn,{to:"/.account/account/",replace:!0});if(!D)return u.jsx(Dn,{to:"/.account/login/password/forgot/",replace:!0});const j=async z=>{if(z.preventDefault(),!w){y("Passwords do not match");return}d(!0),y(null);try{const R=a?.password?.reset||"/.account/login/password/reset/",M=await fetch(R,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({recordId:D,password:S})});if(M.ok)p(!0);else{const Y=await M.json().catch(()=>({}));y(Y.message||"Failed to reset password")}}catch{y("Network error")}finally{d(!1)}};return u.jsx(Fi,{title:"Reset Password",subtitle:"Enter your new password.",icon:Bi,children:h?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[u.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:u.jsx(zn,{className:"w-5 h-5 text-emerald-600"})}),u.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),u.jsx("button",{onClick:()=>o("/.account/login/password/"),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Go to Sign in"})]}):u.jsxs("form",{className:"space-y-4",onSubmit:j,children:[v&&u.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:v}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"relative",children:[u.jsx(Bi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"password",type:"password",required:!0,value:S,onChange:z=>b(z.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"New password"})]}),u.jsxs("div",{className:"relative",children:[w?u.jsx(zn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):u.jsx(Bi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:C,onChange:z=>N(z.target.value),className:`block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors ${w?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"}`,placeholder:"Confirm new password"})]})]}),u.jsx("button",{type:"submit",disabled:f||!w,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:f?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:["Reset Password ",u.jsx(Ho,{className:"h-4 w-4"})]})}),u.jsx("div",{className:"text-center",children:u.jsx("button",{type:"button",onClick:()=>o("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function d1(){const{controls:a,isLoggedIn:i}=$t(),[o,s]=g.useState([]),[f,d]=g.useState(!0);return g.useEffect(()=>{if(i){window.location.href="/.account/account/";return}(async()=>{try{if(a?.main?.logins){const p=await(await fetch(a.main.logins,{headers:{Accept:"application/json"},credentials:"include"})).json(),v=Object.entries(p.logins||{});if(v.length===1){window.location.href=v[0][1];return}if(v.length===0){window.location.href="/.account/login/password/";return}s(v)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=a?.html?.password?.login||"/.account/login/password/"}finally{d(!1)}})()},[a,i]),f?u.jsx(Yv,{}):u.jsx(Fi,{title:"Select Login Method",children:u.jsx("div",{className:"space-y-2",children:o.map(([h,p])=>u.jsx("a",{href:p,className:"block w-full py-3 px-4 bg-zinc-100 hover:bg-zinc-200 border border-zinc-200 rounded-xl text-center text-zinc-700 text-sm font-medium",children:h},h))})})}var Fv={"chatkit.error":"onError","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.tool.change":"onToolChange","chatkit.ready":"onReady","chatkit.effect":"onEffect"},h1=Object.keys(Fv),m1=g.forwardRef(function({control:i,...o},s){const f=g.useRef(null);return g.useLayoutEffect(()=>{const d=f.current;if(!d)return;if(customElements.get("openai-chatkit")){d.setOptions(i.options);return}let h=!0;return customElements.whenDefined("openai-chatkit").then(()=>{h&&d.setOptions(i.options)}),()=>{h=!1}},[i.options]),g.useEffect(()=>{const d=f.current;if(!d)return;const h=new AbortController;for(const p of h1)d.addEventListener(p,v=>{const y=Fv[p],S=i.handlers[y];typeof S=="function"&&S(v.detail)},{signal:h.signal});return()=>{h.abort()}},[i.handlers]),u.jsx("openai-chatkit",{ref:d=>{f.current=d,i.setInstance(d),typeof s=="function"?s(d):s&&(s.current=d),f.current},...o})});function Up(a){return a!==null&&typeof a=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(a))||Array.isArray(a)}function Lu(a,i,o=new WeakMap){if(Object.is(a,i))return!0;if(typeof a=="function"&&typeof i=="function")return typeof a==typeof i;if(!Up(a)||!Up(i))return!1;const s=o.get(a);if(s&&s===i)return!0;if(o.set(a,i),Array.isArray(a)||Array.isArray(i)){if(!Array.isArray(a)||!Array.isArray(i)||a.length!==i.length)return!1;for(let h=0;h<a.length;h++)if(!Lu(a[h],i[h],o))return!1;return!0}const f=Object.keys(a),d=Object.keys(i);if(f.length!==d.length)return!1;for(let h=0;h<f.length;h++){const p=f[h];if(!Object.prototype.hasOwnProperty.call(i,p))return!1;const v=a[p],y=i[p];if(!Lu(v,y,o))return!1}return!0}function p1(a){const i=[],o=(d,h)=>h.reduce((p,v)=>p==null?p:p[v],d),s=(d,h)=>(...p)=>{const v=o(a.current,d),y=v?.[h];if(typeof y=="function")return y.apply(v,p)},f=d=>{if(typeof d=="function"){const h=i[i.length-1],p=i.slice(0,-1);return s(p,h)}if(Array.isArray(d)){const h=i.length,p=new Array(d.length);for(let v=0;v<d.length;v++)i[h]=v,p[v]=f(d[v]);return i.length=h,p}if(d&&typeof d=="object"){const h=i.length,p={};for(const v of Object.keys(d))i[h]=v,p[v]=f(d[v]);return i.length=h,p}return d};return f(a.current)}function v1(a){const i=Pt.useRef(a);i.current=a;const o=Pt.useRef(null);return(!o.current||!Lu(o.current.snapshot,a))&&(o.current={snapshot:a,shaped:p1(i)}),o.current.shaped}var g1=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function y1(a){const i=g.useRef(null),o=v1(a),s=g.useMemo(()=>g1.reduce((h,p)=>(h[p]=(...v)=>{if(!i.current){console.warn("ChatKit element is not mounted");return}return i.current[p](...v)},h),{}),[]),f=g.useCallback(h=>{i.current=h},[]),d=g.useMemo(()=>{const h={},p={};for(const[v,y]of Object.entries(o))/^on[A-Z]/.test(v)&&v!=="onClientTool"?p[v]=y:h[v]=y;return{setInstance:f,options:h,handlers:p}},[o,f]);return g.useMemo(()=>({...s,control:d,ref:i}),[s,d])}const Hp="http://localhost:3000/chatkit",Bp="domain_pk_localhost_dev";function x1(){const{isLoggedIn:a}=$t(),[i,o]=g.useState(""),[s,f]=g.useState(!1),d=g.useCallback(async(p,v={})=>{const y={...v.headers||{}};return i&&(y.Authorization=`Bearer ${i}`),fetch(p,{...v,headers:y,credentials:"include"})},[i]),h=y1({api:{url:Hp,domainKey:Bp,fetch:d},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return u.jsxs("div",{className:"min-h-screen bg-gray-50",children:[u.jsxs("header",{className:"bg-white shadow-sm border-b",children:[u.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:u.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),u.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("button",{onClick:()=>f(!s),className:"text-sm text-gray-500 hover:text-gray-700",children:i?"🔑 API Key Set":"Set API Key"}),u.jsx("div",{className:"text-sm text-gray-500",children:a?u.jsx("span",{className:"text-green-600",children:"● Logged in"}):u.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),s&&u.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx("input",{type:"password",placeholder:"Enter API Key (sk-xxx)",value:i,onChange:p=>o(p.target.value),className:"flex-1 px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),u.jsx("button",{onClick:()=>f(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),u.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),u.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[u.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:u.jsx(m1,{control:h.control,style:{width:"100%",height:"100%"}})}),u.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[u.jsxs("p",{children:[u.jsx("strong",{children:"API URL:"})," ",Hp]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Domain Key:"})," ",Bp]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Auth:"})," ",i?"API Key":a?"Session":"None"]})]})]})]})}function Oi(a){const{className:i,variant:o,children:s}=a;return u.jsx("div",{className:$e("rounded-xl bg-background",o==="bordered"&&"border border-border",i),children:s})}function _i(a){const{className:i,children:o}=a;return u.jsx("div",{className:$e("px-5 pt-5",i),children:o})}function Di(a){const{className:i,children:o}=a;return u.jsx("div",{className:$e("text-base font-semibold",i),children:o})}function Mi(a){const{className:i,children:o}=a;return u.jsx("div",{className:$e("px-5 pb-5 pt-4",i),children:o})}function xu(a){const{className:i,variant:o="default",size:s="default",children:f,...d}=a,h="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary disabled:opacity-50 disabled:pointer-events-none",p={default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/80",ghost:"bg-transparent hover:bg-muted text-foreground"},v={default:"h-10 px-4 py-2",sm:"h-8 px-3"};return u.jsx("button",{className:$e(h,p[o],v[s],i),...d,children:f})}function Rn(a){const{className:i,...o}=a;return u.jsx("input",{className:$e("w-full h-10 rounded-md border border-input bg-background px-3 py-2 text-sm","placeholder:text-muted-foreground","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",i),...o})}function mo(a){const{className:i,...o}=a;return u.jsx("label",{className:$e("text-sm font-medium text-foreground",i),...o})}function kp(a,[i,o]){return Math.min(o,Math.max(i,a))}function Je(a,i,{checkForDefaultPrevented:o=!0}={}){return function(f){if(a?.(f),o===!1||!f.defaultPrevented)return i?.(f)}}function ef(a,i=[]){let o=[];function s(d,h){const p=g.createContext(h),v=o.length;o=[...o,h];const y=b=>{const{scope:C,children:N,...D}=b,w=C?.[a]?.[v]||p,j=g.useMemo(()=>D,Object.values(D));return u.jsx(w.Provider,{value:j,children:N})};y.displayName=d+"Provider";function S(b,C){const N=C?.[a]?.[v]||p,D=g.useContext(N);if(D)return D;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${d}\``)}return[y,S]}const f=()=>{const d=o.map(h=>g.createContext(h));return function(p){const v=p?.[a]||d;return g.useMemo(()=>({[`__scope${a}`]:{...p,[a]:v}}),[p,v])}};return f.scopeName=a,[s,b1(f,...i)]}function b1(...a){const i=a[0];if(a.length===1)return i;const o=()=>{const s=a.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(d){const h=s.reduce((p,{useScope:v,scopeName:y})=>{const b=v(d)[`__scope${y}`];return{...p,...b}},{});return g.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return o.scopeName=i.scopeName,o}function Yp(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function Kv(...a){return i=>{let o=!1;const s=a.map(f=>{const d=Yp(f,i);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let f=0;f<s.length;f++){const d=s[f];typeof d=="function"?d():Yp(a[f],null)}}}}function ct(...a){return g.useCallback(Kv(...a),a)}function Ro(a){const i=S1(a),o=g.forwardRef((s,f)=>{const{children:d,...h}=s,p=g.Children.toArray(d),v=p.find(E1);if(v){const y=v.props.children,S=p.map(b=>b===v?g.Children.count(y)>1?g.Children.only(null):g.isValidElement(y)?y.props.children:null:b);return u.jsx(i,{...h,ref:f,children:g.isValidElement(y)?g.cloneElement(y,void 0,S):null})}return u.jsx(i,{...h,ref:f,children:d})});return o.displayName=`${a}.Slot`,o}function S1(a){const i=g.forwardRef((o,s)=>{const{children:f,...d}=o;if(g.isValidElement(f)){const h=N1(f),p=C1(d,f.props);return f.type!==g.Fragment&&(p.ref=s?Kv(s,h):h),g.cloneElement(f,p)}return g.Children.count(f)>1?g.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var w1=Symbol("radix.slottable");function E1(a){return g.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===w1}function C1(a,i){const o={...i};for(const s in i){const f=a[s],d=i[s];/^on[A-Z]/.test(s)?f&&d?o[s]=(...p)=>{const v=d(...p);return f(...p),v}:f&&(o[s]=f):s==="style"?o[s]={...f,...d}:s==="className"&&(o[s]=[f,d].filter(Boolean).join(" "))}return{...a,...o}}function N1(a){let i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?a.ref:(i=Object.getOwnPropertyDescriptor(a,"ref")?.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?a.props.ref:a.props.ref||a.ref)}function j1(a){const i=a+"CollectionProvider",[o,s]=ef(i),[f,d]=o(i,{collectionRef:{current:null},itemMap:new Map}),h=w=>{const{scope:j,children:z}=w,R=Pt.useRef(null),M=Pt.useRef(new Map).current;return u.jsx(f,{scope:j,itemMap:M,collectionRef:R,children:z})};h.displayName=i;const p=a+"CollectionSlot",v=Ro(p),y=Pt.forwardRef((w,j)=>{const{scope:z,children:R}=w,M=d(p,z),Y=ct(j,M.collectionRef);return u.jsx(v,{ref:Y,children:R})});y.displayName=p;const S=a+"CollectionItemSlot",b="data-radix-collection-item",C=Ro(S),N=Pt.forwardRef((w,j)=>{const{scope:z,children:R,...M}=w,Y=Pt.useRef(null),Z=ct(j,Y),J=d(S,z);return Pt.useEffect(()=>(J.itemMap.set(Y,{ref:Y,...M}),()=>{J.itemMap.delete(Y)})),u.jsx(C,{[b]:"",ref:Z,children:R})});N.displayName=S;function D(w){const j=d(a+"CollectionConsumer",w);return Pt.useCallback(()=>{const R=j.collectionRef.current;if(!R)return[];const M=Array.from(R.querySelectorAll(`[${b}]`));return Array.from(j.itemMap.values()).sort((J,q)=>M.indexOf(J.ref.current)-M.indexOf(q.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:h,Slot:y,ItemSlot:N},D,s]}var T1=g.createContext(void 0);function A1(a){const i=g.useContext(T1);return a||i||"ltr"}var R1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=R1.reduce((a,i)=>{const o=Ro(`Primitive.${i}`),s=g.forwardRef((f,d)=>{const{asChild:h,...p}=f,v=h?o:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(v,{...p,ref:d})});return s.displayName=`Primitive.${i}`,{...a,[i]:s}},{});function z1(a,i){a&&Gi.flushSync(()=>a.dispatchEvent(i))}function Dl(a){const i=g.useRef(a);return g.useEffect(()=>{i.current=a}),g.useMemo(()=>(...o)=>i.current?.(...o),[])}function O1(a,i=globalThis?.document){const o=Dl(a);g.useEffect(()=>{const s=f=>{f.key==="Escape"&&o(f)};return i.addEventListener("keydown",s,{capture:!0}),()=>i.removeEventListener("keydown",s,{capture:!0})},[o,i])}var _1="DismissableLayer",Uu="dismissableLayer.update",D1="dismissableLayer.pointerDownOutside",M1="dismissableLayer.focusOutside",qp,Qv=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zv=g.forwardRef((a,i)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:p,...v}=a,y=g.useContext(Qv),[S,b]=g.useState(null),C=S?.ownerDocument??globalThis?.document,[,N]=g.useState({}),D=ct(i,q=>b(q)),w=Array.from(y.layers),[j]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),z=w.indexOf(j),R=S?w.indexOf(S):-1,M=y.layersWithOutsidePointerEventsDisabled.size>0,Y=R>=z,Z=H1(q=>{const W=q.target,ne=[...y.branches].some(ce=>ce.contains(W));!Y||ne||(f?.(q),h?.(q),q.defaultPrevented||p?.())},C),J=B1(q=>{const W=q.target;[...y.branches].some(ce=>ce.contains(W))||(d?.(q),h?.(q),q.defaultPrevented||p?.())},C);return O1(q=>{R===y.layers.size-1&&(s?.(q),!q.defaultPrevented&&p&&(q.preventDefault(),p()))},C),g.useEffect(()=>{if(S)return o&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(qp=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(S)),y.layers.add(S),Vp(),()=>{o&&y.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=qp)}},[S,C,o,y]),g.useEffect(()=>()=>{S&&(y.layers.delete(S),y.layersWithOutsidePointerEventsDisabled.delete(S),Vp())},[S,y]),g.useEffect(()=>{const q=()=>N({});return document.addEventListener(Uu,q),()=>document.removeEventListener(Uu,q)},[]),u.jsx(Fe.div,{...v,ref:D,style:{pointerEvents:M?Y?"auto":"none":void 0,...a.style},onFocusCapture:Je(a.onFocusCapture,J.onFocusCapture),onBlurCapture:Je(a.onBlurCapture,J.onBlurCapture),onPointerDownCapture:Je(a.onPointerDownCapture,Z.onPointerDownCapture)})});Zv.displayName=_1;var L1="DismissableLayerBranch",U1=g.forwardRef((a,i)=>{const o=g.useContext(Qv),s=g.useRef(null),f=ct(i,s);return g.useEffect(()=>{const d=s.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),u.jsx(Fe.div,{...a,ref:f})});U1.displayName=L1;function H1(a,i=globalThis?.document){const o=Dl(a),s=g.useRef(!1),f=g.useRef(()=>{});return g.useEffect(()=>{const d=p=>{if(p.target&&!s.current){let v=function(){Pv(D1,o,y,{discrete:!0})};const y={originalEvent:p};p.pointerType==="touch"?(i.removeEventListener("click",f.current),f.current=v,i.addEventListener("click",f.current,{once:!0})):v()}else i.removeEventListener("click",f.current);s.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",d),i.removeEventListener("click",f.current)}},[i,o]),{onPointerDownCapture:()=>s.current=!0}}function B1(a,i=globalThis?.document){const o=Dl(a),s=g.useRef(!1);return g.useEffect(()=>{const f=d=>{d.target&&!s.current&&Pv(M1,o,{originalEvent:d},{discrete:!1})};return i.addEventListener("focusin",f),()=>i.removeEventListener("focusin",f)},[i,o]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Vp(){const a=new CustomEvent(Uu);document.dispatchEvent(a)}function Pv(a,i,o,{discrete:s}){const f=o.originalEvent.target,d=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:o});i&&f.addEventListener(a,i,{once:!0}),s?z1(f,d):f.dispatchEvent(d)}var bu=0;function k1(){g.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??Xp()),document.body.insertAdjacentElement("beforeend",a[1]??Xp()),bu++,()=>{bu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),bu--}},[])}function Xp(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var Su="focusScope.autoFocusOnMount",wu="focusScope.autoFocusOnUnmount",Gp={bubbles:!1,cancelable:!0},Y1="FocusScope",Jv=g.forwardRef((a,i)=>{const{loop:o=!1,trapped:s=!1,onMountAutoFocus:f,onUnmountAutoFocus:d,...h}=a,[p,v]=g.useState(null),y=Dl(f),S=Dl(d),b=g.useRef(null),C=ct(i,w=>v(w)),N=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(s){let w=function(M){if(N.paused||!p)return;const Y=M.target;p.contains(Y)?b.current=Y:rl(b.current,{select:!0})},j=function(M){if(N.paused||!p)return;const Y=M.relatedTarget;Y!==null&&(p.contains(Y)||rl(b.current,{select:!0}))},z=function(M){if(document.activeElement===document.body)for(const Z of M)Z.removedNodes.length>0&&rl(p)};document.addEventListener("focusin",w),document.addEventListener("focusout",j);const R=new MutationObserver(z);return p&&R.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",j),R.disconnect()}}},[s,p,N.paused]),g.useEffect(()=>{if(p){Kp.add(N);const w=document.activeElement;if(!p.contains(w)){const z=new CustomEvent(Su,Gp);p.addEventListener(Su,y),p.dispatchEvent(z),z.defaultPrevented||(q1(K1(Wv(p)),{select:!0}),document.activeElement===w&&rl(p))}return()=>{p.removeEventListener(Su,y),setTimeout(()=>{const z=new CustomEvent(wu,Gp);p.addEventListener(wu,S),p.dispatchEvent(z),z.defaultPrevented||rl(w??document.body,{select:!0}),p.removeEventListener(wu,S),Kp.remove(N)},0)}}},[p,y,S,N]);const D=g.useCallback(w=>{if(!o&&!s||N.paused)return;const j=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,z=document.activeElement;if(j&&z){const R=w.currentTarget,[M,Y]=V1(R);M&&Y?!w.shiftKey&&z===Y?(w.preventDefault(),o&&rl(M,{select:!0})):w.shiftKey&&z===M&&(w.preventDefault(),o&&rl(Y,{select:!0})):z===R&&w.preventDefault()}},[o,s,N.paused]);return u.jsx(Fe.div,{tabIndex:-1,...h,ref:C,onKeyDown:D})});Jv.displayName=Y1;function q1(a,{select:i=!1}={}){const o=document.activeElement;for(const s of a)if(rl(s,{select:i}),document.activeElement!==o)return}function V1(a){const i=Wv(a),o=Fp(i,a),s=Fp(i.reverse(),a);return[o,s]}function Wv(a){const i=[],o=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const f=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||f?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)i.push(o.currentNode);return i}function Fp(a,i){for(const o of a)if(!X1(o,{upTo:i}))return o}function X1(a,{upTo:i}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(i!==void 0&&a===i)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function G1(a){return a instanceof HTMLInputElement&&"select"in a}function rl(a,{select:i=!1}={}){if(a&&a.focus){const o=document.activeElement;a.focus({preventScroll:!0}),a!==o&&G1(a)&&i&&a.select()}}var Kp=F1();function F1(){let a=[];return{add(i){const o=a[0];i!==o&&o?.pause(),a=Qp(a,i),a.unshift(i)},remove(i){a=Qp(a,i),a[0]?.resume()}}}function Qp(a,i){const o=[...a],s=o.indexOf(i);return s!==-1&&o.splice(s,1),o}function K1(a){return a.filter(i=>i.tagName!=="A")}var yt=globalThis?.document?g.useLayoutEffect:()=>{},Q1=dv[" useId ".trim().toString()]||(()=>{}),Z1=0;function tf(a){const[i,o]=g.useState(Q1());return yt(()=>{o(s=>s??String(Z1++))},[a]),i?`radix-${i}`:""}const P1=["top","right","bottom","left"],sl=Math.min,Ot=Math.max,zo=Math.round,po=Math.floor,cn=a=>({x:a,y:a}),J1={left:"right",right:"left",bottom:"top",top:"bottom"},W1={start:"end",end:"start"};function Hu(a,i,o){return Ot(a,sl(i,o))}function Mn(a,i){return typeof a=="function"?a(i):a}function Ln(a){return a.split("-")[0]}function _a(a){return a.split("-")[1]}function nf(a){return a==="x"?"y":"x"}function lf(a){return a==="y"?"height":"width"}const $1=new Set(["top","bottom"]);function an(a){return $1.has(Ln(a))?"y":"x"}function af(a){return nf(an(a))}function I1(a,i,o){o===void 0&&(o=!1);const s=_a(a),f=af(a),d=lf(f);let h=f==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[d]>i.floating[d]&&(h=Oo(h)),[h,Oo(h)]}function ew(a){const i=Oo(a);return[Bu(a),i,Bu(i)]}function Bu(a){return a.replace(/start|end/g,i=>W1[i])}const Zp=["left","right"],Pp=["right","left"],tw=["top","bottom"],nw=["bottom","top"];function lw(a,i,o){switch(a){case"top":case"bottom":return o?i?Pp:Zp:i?Zp:Pp;case"left":case"right":return i?tw:nw;default:return[]}}function aw(a,i,o,s){const f=_a(a);let d=lw(Ln(a),o==="start",s);return f&&(d=d.map(h=>h+"-"+f),i&&(d=d.concat(d.map(Bu)))),d}function Oo(a){return a.replace(/left|right|bottom|top/g,i=>J1[i])}function iw(a){return{top:0,right:0,bottom:0,left:0,...a}}function $v(a){return typeof a!="number"?iw(a):{top:a,right:a,bottom:a,left:a}}function _o(a){const{x:i,y:o,width:s,height:f}=a;return{width:s,height:f,top:o,left:i,right:i+s,bottom:o+f,x:i,y:o}}function Jp(a,i,o){let{reference:s,floating:f}=a;const d=an(i),h=af(i),p=lf(h),v=Ln(i),y=d==="y",S=s.x+s.width/2-f.width/2,b=s.y+s.height/2-f.height/2,C=s[p]/2-f[p]/2;let N;switch(v){case"top":N={x:S,y:s.y-f.height};break;case"bottom":N={x:S,y:s.y+s.height};break;case"right":N={x:s.x+s.width,y:b};break;case"left":N={x:s.x-f.width,y:b};break;default:N={x:s.x,y:s.y}}switch(_a(i)){case"start":N[h]-=C*(o&&y?-1:1);break;case"end":N[h]+=C*(o&&y?-1:1);break}return N}async function cw(a,i){var o;i===void 0&&(i={});const{x:s,y:f,platform:d,rects:h,elements:p,strategy:v}=a,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:b="floating",altBoundary:C=!1,padding:N=0}=Mn(i,a),D=$v(N),j=p[C?b==="floating"?"reference":"floating":b],z=_o(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(j)))==null||o?j:j.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:y,rootBoundary:S,strategy:v})),R=b==="floating"?{x:s,y:f,width:h.floating.width,height:h.floating.height}:h.reference,M=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),Y=await(d.isElement==null?void 0:d.isElement(M))?await(d.getScale==null?void 0:d.getScale(M))||{x:1,y:1}:{x:1,y:1},Z=_o(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:R,offsetParent:M,strategy:v}):R);return{top:(z.top-Z.top+D.top)/Y.y,bottom:(Z.bottom-z.bottom+D.bottom)/Y.y,left:(z.left-Z.left+D.left)/Y.x,right:(Z.right-z.right+D.right)/Y.x}}const ow=async(a,i,o)=>{const{placement:s="bottom",strategy:f="absolute",middleware:d=[],platform:h}=o,p=d.filter(Boolean),v=await(h.isRTL==null?void 0:h.isRTL(i));let y=await h.getElementRects({reference:a,floating:i,strategy:f}),{x:S,y:b}=Jp(y,s,v),C=s,N={},D=0;for(let j=0;j<p.length;j++){var w;const{name:z,fn:R}=p[j],{x:M,y:Y,data:Z,reset:J}=await R({x:S,y:b,initialPlacement:s,placement:C,strategy:f,middlewareData:N,rects:y,platform:{...h,detectOverflow:(w=h.detectOverflow)!=null?w:cw},elements:{reference:a,floating:i}});S=M??S,b=Y??b,N={...N,[z]:{...N[z],...Z}},J&&D<=50&&(D++,typeof J=="object"&&(J.placement&&(C=J.placement),J.rects&&(y=J.rects===!0?await h.getElementRects({reference:a,floating:i,strategy:f}):J.rects),{x:S,y:b}=Jp(y,C,v)),j=-1)}return{x:S,y:b,placement:C,strategy:f,middlewareData:N}},rw=a=>({name:"arrow",options:a,async fn(i){const{x:o,y:s,placement:f,rects:d,platform:h,elements:p,middlewareData:v}=i,{element:y,padding:S=0}=Mn(a,i)||{};if(y==null)return{};const b=$v(S),C={x:o,y:s},N=af(f),D=lf(N),w=await h.getDimensions(y),j=N==="y",z=j?"top":"left",R=j?"bottom":"right",M=j?"clientHeight":"clientWidth",Y=d.reference[D]+d.reference[N]-C[N]-d.floating[D],Z=C[N]-d.reference[N],J=await(h.getOffsetParent==null?void 0:h.getOffsetParent(y));let q=J?J[M]:0;(!q||!await(h.isElement==null?void 0:h.isElement(J)))&&(q=p.floating[M]||d.floating[D]);const W=Y/2-Z/2,ne=q/2-w[D]/2-1,ce=sl(b[z],ne),oe=sl(b[R],ne),P=ce,te=q-w[D]-oe,I=q/2-w[D]/2+W,re=Hu(P,I,te),_=!v.arrow&&_a(f)!=null&&I!==re&&d.reference[D]/2-(I<P?ce:oe)-w[D]/2<0,L=_?I<P?I-P:I-te:0;return{[N]:C[N]+L,data:{[N]:re,centerOffset:I-re-L,..._&&{alignmentOffset:L}},reset:_}}}),sw=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var o,s;const{placement:f,middlewareData:d,rects:h,initialPlacement:p,platform:v,elements:y}=i,{mainAxis:S=!0,crossAxis:b=!0,fallbackPlacements:C,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:w=!0,...j}=Mn(a,i);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const z=Ln(f),R=an(p),M=Ln(p)===p,Y=await(v.isRTL==null?void 0:v.isRTL(y.floating)),Z=C||(M||!w?[Oo(p)]:ew(p)),J=D!=="none";!C&&J&&Z.push(...aw(p,w,D,Y));const q=[p,...Z],W=await v.detectOverflow(i,j),ne=[];let ce=((s=d.flip)==null?void 0:s.overflows)||[];if(S&&ne.push(W[z]),b){const I=I1(f,h,Y);ne.push(W[I[0]],W[I[1]])}if(ce=[...ce,{placement:f,overflows:ne}],!ne.every(I=>I<=0)){var oe,P;const I=(((oe=d.flip)==null?void 0:oe.index)||0)+1,re=q[I];if(re&&(!(b==="alignment"?R!==an(re):!1)||ce.every(K=>an(K.placement)===R?K.overflows[0]>0:!0)))return{data:{index:I,overflows:ce},reset:{placement:re}};let _=(P=ce.filter(L=>L.overflows[0]<=0).sort((L,K)=>L.overflows[1]-K.overflows[1])[0])==null?void 0:P.placement;if(!_)switch(N){case"bestFit":{var te;const L=(te=ce.filter(K=>{if(J){const le=an(K.placement);return le===R||le==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(le=>le>0).reduce((le,pe)=>le+pe,0)]).sort((K,le)=>K[1]-le[1])[0])==null?void 0:te[0];L&&(_=L);break}case"initialPlacement":_=p;break}if(f!==_)return{reset:{placement:_}}}return{}}}};function Wp(a,i){return{top:a.top-i.height,right:a.right-i.width,bottom:a.bottom-i.height,left:a.left-i.width}}function $p(a){return P1.some(i=>a[i]>=0)}const uw=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(i){const{rects:o,platform:s}=i,{strategy:f="referenceHidden",...d}=Mn(a,i);switch(f){case"referenceHidden":{const h=await s.detectOverflow(i,{...d,elementContext:"reference"}),p=Wp(h,o.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:$p(p)}}}case"escaped":{const h=await s.detectOverflow(i,{...d,altBoundary:!0}),p=Wp(h,o.floating);return{data:{escapedOffsets:p,escaped:$p(p)}}}default:return{}}}}},Iv=new Set(["left","top"]);async function fw(a,i){const{placement:o,platform:s,elements:f}=a,d=await(s.isRTL==null?void 0:s.isRTL(f.floating)),h=Ln(o),p=_a(o),v=an(o)==="y",y=Iv.has(h)?-1:1,S=d&&v?-1:1,b=Mn(i,a);let{mainAxis:C,crossAxis:N,alignmentAxis:D}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return p&&typeof D=="number"&&(N=p==="end"?D*-1:D),v?{x:N*S,y:C*y}:{x:C*y,y:N*S}}const dw=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var o,s;const{x:f,y:d,placement:h,middlewareData:p}=i,v=await fw(i,a);return h===((o=p.offset)==null?void 0:o.placement)&&(s=p.arrow)!=null&&s.alignmentOffset?{}:{x:f+v.x,y:d+v.y,data:{...v,placement:h}}}}},hw=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){const{x:o,y:s,placement:f,platform:d}=i,{mainAxis:h=!0,crossAxis:p=!1,limiter:v={fn:z=>{let{x:R,y:M}=z;return{x:R,y:M}}},...y}=Mn(a,i),S={x:o,y:s},b=await d.detectOverflow(i,y),C=an(Ln(f)),N=nf(C);let D=S[N],w=S[C];if(h){const z=N==="y"?"top":"left",R=N==="y"?"bottom":"right",M=D+b[z],Y=D-b[R];D=Hu(M,D,Y)}if(p){const z=C==="y"?"top":"left",R=C==="y"?"bottom":"right",M=w+b[z],Y=w-b[R];w=Hu(M,w,Y)}const j=v.fn({...i,[N]:D,[C]:w});return{...j,data:{x:j.x-o,y:j.y-s,enabled:{[N]:h,[C]:p}}}}}},mw=function(a){return a===void 0&&(a={}),{options:a,fn(i){const{x:o,y:s,placement:f,rects:d,middlewareData:h}=i,{offset:p=0,mainAxis:v=!0,crossAxis:y=!0}=Mn(a,i),S={x:o,y:s},b=an(f),C=nf(b);let N=S[C],D=S[b];const w=Mn(p,i),j=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(v){const M=C==="y"?"height":"width",Y=d.reference[C]-d.floating[M]+j.mainAxis,Z=d.reference[C]+d.reference[M]-j.mainAxis;N<Y?N=Y:N>Z&&(N=Z)}if(y){var z,R;const M=C==="y"?"width":"height",Y=Iv.has(Ln(f)),Z=d.reference[b]-d.floating[M]+(Y&&((z=h.offset)==null?void 0:z[b])||0)+(Y?0:j.crossAxis),J=d.reference[b]+d.reference[M]+(Y?0:((R=h.offset)==null?void 0:R[b])||0)-(Y?j.crossAxis:0);D<Z?D=Z:D>J&&(D=J)}return{[C]:N,[b]:D}}}},pw=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var o,s;const{placement:f,rects:d,platform:h,elements:p}=i,{apply:v=()=>{},...y}=Mn(a,i),S=await h.detectOverflow(i,y),b=Ln(f),C=_a(f),N=an(f)==="y",{width:D,height:w}=d.floating;let j,z;b==="top"||b==="bottom"?(j=b,z=C===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(z=b,j=C==="end"?"top":"bottom");const R=w-S.top-S.bottom,M=D-S.left-S.right,Y=sl(w-S[j],R),Z=sl(D-S[z],M),J=!i.middlewareData.shift;let q=Y,W=Z;if((o=i.middlewareData.shift)!=null&&o.enabled.x&&(W=M),(s=i.middlewareData.shift)!=null&&s.enabled.y&&(q=R),J&&!C){const ce=Ot(S.left,0),oe=Ot(S.right,0),P=Ot(S.top,0),te=Ot(S.bottom,0);N?W=D-2*(ce!==0||oe!==0?ce+oe:Ot(S.left,S.right)):q=w-2*(P!==0||te!==0?P+te:Ot(S.top,S.bottom))}await v({...i,availableWidth:W,availableHeight:q});const ne=await h.getDimensions(p.floating);return D!==ne.width||w!==ne.height?{reset:{rects:!0}}:{}}}};function Bo(){return typeof window<"u"}function Da(a){return eg(a)?(a.nodeName||"").toLowerCase():"#document"}function _t(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function un(a){var i;return(i=(eg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function eg(a){return Bo()?a instanceof Node||a instanceof _t(a).Node:!1}function Jt(a){return Bo()?a instanceof Element||a instanceof _t(a).Element:!1}function on(a){return Bo()?a instanceof HTMLElement||a instanceof _t(a).HTMLElement:!1}function Ip(a){return!Bo()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof _t(a).ShadowRoot}const vw=new Set(["inline","contents"]);function Ki(a){const{overflow:i,overflowX:o,overflowY:s,display:f}=Wt(a);return/auto|scroll|overlay|hidden|clip/.test(i+s+o)&&!vw.has(f)}const gw=new Set(["table","td","th"]);function yw(a){return gw.has(Da(a))}const xw=[":popover-open",":modal"];function ko(a){return xw.some(i=>{try{return a.matches(i)}catch{return!1}})}const bw=["transform","translate","scale","rotate","perspective"],Sw=["transform","translate","scale","rotate","perspective","filter"],ww=["paint","layout","strict","content"];function cf(a){const i=of(),o=Jt(a)?Wt(a):a;return bw.some(s=>o[s]?o[s]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!i&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!i&&(o.filter?o.filter!=="none":!1)||Sw.some(s=>(o.willChange||"").includes(s))||ww.some(s=>(o.contain||"").includes(s))}function Ew(a){let i=ul(a);for(;on(i)&&!Aa(i);){if(cf(i))return i;if(ko(i))return null;i=ul(i)}return null}function of(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Cw=new Set(["html","body","#document"]);function Aa(a){return Cw.has(Da(a))}function Wt(a){return _t(a).getComputedStyle(a)}function Yo(a){return Jt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ul(a){if(Da(a)==="html")return a;const i=a.assignedSlot||a.parentNode||Ip(a)&&a.host||un(a);return Ip(i)?i.host:i}function tg(a){const i=ul(a);return Aa(i)?a.ownerDocument?a.ownerDocument.body:a.body:on(i)&&Ki(i)?i:tg(i)}function qi(a,i,o){var s;i===void 0&&(i=[]),o===void 0&&(o=!0);const f=tg(a),d=f===((s=a.ownerDocument)==null?void 0:s.body),h=_t(f);if(d){const p=ku(h);return i.concat(h,h.visualViewport||[],Ki(f)?f:[],p&&o?qi(p):[])}return i.concat(f,qi(f,[],o))}function ku(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function ng(a){const i=Wt(a);let o=parseFloat(i.width)||0,s=parseFloat(i.height)||0;const f=on(a),d=f?a.offsetWidth:o,h=f?a.offsetHeight:s,p=zo(o)!==d||zo(s)!==h;return p&&(o=d,s=h),{width:o,height:s,$:p}}function rf(a){return Jt(a)?a:a.contextElement}function Na(a){const i=rf(a);if(!on(i))return cn(1);const o=i.getBoundingClientRect(),{width:s,height:f,$:d}=ng(i);let h=(d?zo(o.width):o.width)/s,p=(d?zo(o.height):o.height)/f;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const Nw=cn(0);function lg(a){const i=_t(a);return!of()||!i.visualViewport?Nw:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function jw(a,i,o){return i===void 0&&(i=!1),!o||i&&o!==_t(a)?!1:i}function Ml(a,i,o,s){i===void 0&&(i=!1),o===void 0&&(o=!1);const f=a.getBoundingClientRect(),d=rf(a);let h=cn(1);i&&(s?Jt(s)&&(h=Na(s)):h=Na(a));const p=jw(d,o,s)?lg(d):cn(0);let v=(f.left+p.x)/h.x,y=(f.top+p.y)/h.y,S=f.width/h.x,b=f.height/h.y;if(d){const C=_t(d),N=s&&Jt(s)?_t(s):s;let D=C,w=ku(D);for(;w&&s&&N!==D;){const j=Na(w),z=w.getBoundingClientRect(),R=Wt(w),M=z.left+(w.clientLeft+parseFloat(R.paddingLeft))*j.x,Y=z.top+(w.clientTop+parseFloat(R.paddingTop))*j.y;v*=j.x,y*=j.y,S*=j.x,b*=j.y,v+=M,y+=Y,D=_t(w),w=ku(D)}}return _o({width:S,height:b,x:v,y})}function qo(a,i){const o=Yo(a).scrollLeft;return i?i.left+o:Ml(un(a)).left+o}function ag(a,i){const o=a.getBoundingClientRect(),s=o.left+i.scrollLeft-qo(a,o),f=o.top+i.scrollTop;return{x:s,y:f}}function Tw(a){let{elements:i,rect:o,offsetParent:s,strategy:f}=a;const d=f==="fixed",h=un(s),p=i?ko(i.floating):!1;if(s===h||p&&d)return o;let v={scrollLeft:0,scrollTop:0},y=cn(1);const S=cn(0),b=on(s);if((b||!b&&!d)&&((Da(s)!=="body"||Ki(h))&&(v=Yo(s)),on(s))){const N=Ml(s);y=Na(s),S.x=N.x+s.clientLeft,S.y=N.y+s.clientTop}const C=h&&!b&&!d?ag(h,v):cn(0);return{width:o.width*y.x,height:o.height*y.y,x:o.x*y.x-v.scrollLeft*y.x+S.x+C.x,y:o.y*y.y-v.scrollTop*y.y+S.y+C.y}}function Aw(a){return Array.from(a.getClientRects())}function Rw(a){const i=un(a),o=Yo(a),s=a.ownerDocument.body,f=Ot(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),d=Ot(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let h=-o.scrollLeft+qo(a);const p=-o.scrollTop;return Wt(s).direction==="rtl"&&(h+=Ot(i.clientWidth,s.clientWidth)-f),{width:f,height:d,x:h,y:p}}const ev=25;function zw(a,i){const o=_t(a),s=un(a),f=o.visualViewport;let d=s.clientWidth,h=s.clientHeight,p=0,v=0;if(f){d=f.width,h=f.height;const S=of();(!S||S&&i==="fixed")&&(p=f.offsetLeft,v=f.offsetTop)}const y=qo(s);if(y<=0){const S=s.ownerDocument,b=S.body,C=getComputedStyle(b),N=S.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,D=Math.abs(s.clientWidth-b.clientWidth-N);D<=ev&&(d-=D)}else y<=ev&&(d+=y);return{width:d,height:h,x:p,y:v}}const Ow=new Set(["absolute","fixed"]);function _w(a,i){const o=Ml(a,!0,i==="fixed"),s=o.top+a.clientTop,f=o.left+a.clientLeft,d=on(a)?Na(a):cn(1),h=a.clientWidth*d.x,p=a.clientHeight*d.y,v=f*d.x,y=s*d.y;return{width:h,height:p,x:v,y}}function tv(a,i,o){let s;if(i==="viewport")s=zw(a,o);else if(i==="document")s=Rw(un(a));else if(Jt(i))s=_w(i,o);else{const f=lg(a);s={x:i.x-f.x,y:i.y-f.y,width:i.width,height:i.height}}return _o(s)}function ig(a,i){const o=ul(a);return o===i||!Jt(o)||Aa(o)?!1:Wt(o).position==="fixed"||ig(o,i)}function Dw(a,i){const o=i.get(a);if(o)return o;let s=qi(a,[],!1).filter(p=>Jt(p)&&Da(p)!=="body"),f=null;const d=Wt(a).position==="fixed";let h=d?ul(a):a;for(;Jt(h)&&!Aa(h);){const p=Wt(h),v=cf(h);!v&&p.position==="fixed"&&(f=null),(d?!v&&!f:!v&&p.position==="static"&&!!f&&Ow.has(f.position)||Ki(h)&&!v&&ig(a,h))?s=s.filter(S=>S!==h):f=p,h=ul(h)}return i.set(a,s),s}function Mw(a){let{element:i,boundary:o,rootBoundary:s,strategy:f}=a;const h=[...o==="clippingAncestors"?ko(i)?[]:Dw(i,this._c):[].concat(o),s],p=h[0],v=h.reduce((y,S)=>{const b=tv(i,S,f);return y.top=Ot(b.top,y.top),y.right=sl(b.right,y.right),y.bottom=sl(b.bottom,y.bottom),y.left=Ot(b.left,y.left),y},tv(i,p,f));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function Lw(a){const{width:i,height:o}=ng(a);return{width:i,height:o}}function Uw(a,i,o){const s=on(i),f=un(i),d=o==="fixed",h=Ml(a,!0,d,i);let p={scrollLeft:0,scrollTop:0};const v=cn(0);function y(){v.x=qo(f)}if(s||!s&&!d)if((Da(i)!=="body"||Ki(f))&&(p=Yo(i)),s){const N=Ml(i,!0,d,i);v.x=N.x+i.clientLeft,v.y=N.y+i.clientTop}else f&&y();d&&!s&&f&&y();const S=f&&!s&&!d?ag(f,p):cn(0),b=h.left+p.scrollLeft-v.x-S.x,C=h.top+p.scrollTop-v.y-S.y;return{x:b,y:C,width:h.width,height:h.height}}function Eu(a){return Wt(a).position==="static"}function nv(a,i){if(!on(a)||Wt(a).position==="fixed")return null;if(i)return i(a);let o=a.offsetParent;return un(a)===o&&(o=o.ownerDocument.body),o}function cg(a,i){const o=_t(a);if(ko(a))return o;if(!on(a)){let f=ul(a);for(;f&&!Aa(f);){if(Jt(f)&&!Eu(f))return f;f=ul(f)}return o}let s=nv(a,i);for(;s&&yw(s)&&Eu(s);)s=nv(s,i);return s&&Aa(s)&&Eu(s)&&!cf(s)?o:s||Ew(a)||o}const Hw=async function(a){const i=this.getOffsetParent||cg,o=this.getDimensions,s=await o(a.floating);return{reference:Uw(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Bw(a){return Wt(a).direction==="rtl"}const kw={convertOffsetParentRelativeRectToViewportRelativeRect:Tw,getDocumentElement:un,getClippingRect:Mw,getOffsetParent:cg,getElementRects:Hw,getClientRects:Aw,getDimensions:Lw,getScale:Na,isElement:Jt,isRTL:Bw};function og(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function Yw(a,i){let o=null,s;const f=un(a);function d(){var p;clearTimeout(s),(p=o)==null||p.disconnect(),o=null}function h(p,v){p===void 0&&(p=!1),v===void 0&&(v=1),d();const y=a.getBoundingClientRect(),{left:S,top:b,width:C,height:N}=y;if(p||i(),!C||!N)return;const D=po(b),w=po(f.clientWidth-(S+C)),j=po(f.clientHeight-(b+N)),z=po(S),M={rootMargin:-D+"px "+-w+"px "+-j+"px "+-z+"px",threshold:Ot(0,sl(1,v))||1};let Y=!0;function Z(J){const q=J[0].intersectionRatio;if(q!==v){if(!Y)return h();q?h(!1,q):s=setTimeout(()=>{h(!1,1e-7)},1e3)}q===1&&!og(y,a.getBoundingClientRect())&&h(),Y=!1}try{o=new IntersectionObserver(Z,{...M,root:f.ownerDocument})}catch{o=new IntersectionObserver(Z,M)}o.observe(a)}return h(!0),d}function qw(a,i,o,s){s===void 0&&(s={});const{ancestorScroll:f=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:v=!1}=s,y=rf(a),S=f||d?[...y?qi(y):[],...qi(i)]:[];S.forEach(z=>{f&&z.addEventListener("scroll",o,{passive:!0}),d&&z.addEventListener("resize",o)});const b=y&&p?Yw(y,o):null;let C=-1,N=null;h&&(N=new ResizeObserver(z=>{let[R]=z;R&&R.target===y&&N&&(N.unobserve(i),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var M;(M=N)==null||M.observe(i)})),o()}),y&&!v&&N.observe(y),N.observe(i));let D,w=v?Ml(a):null;v&&j();function j(){const z=Ml(a);w&&!og(w,z)&&o(),w=z,D=requestAnimationFrame(j)}return o(),()=>{var z;S.forEach(R=>{f&&R.removeEventListener("scroll",o),d&&R.removeEventListener("resize",o)}),b?.(),(z=N)==null||z.disconnect(),N=null,v&&cancelAnimationFrame(D)}}const Vw=dw,Xw=hw,Gw=sw,Fw=pw,Kw=uw,lv=rw,Qw=mw,Zw=(a,i,o)=>{const s=new Map,f={platform:kw,...o},d={...f.platform,_c:s};return ow(a,i,{...f,platform:d})};var Pw=typeof document<"u",Jw=function(){},Co=Pw?g.useLayoutEffect:Jw;function Do(a,i){if(a===i)return!0;if(typeof a!=typeof i)return!1;if(typeof a=="function"&&a.toString()===i.toString())return!0;let o,s,f;if(a&&i&&typeof a=="object"){if(Array.isArray(a)){if(o=a.length,o!==i.length)return!1;for(s=o;s--!==0;)if(!Do(a[s],i[s]))return!1;return!0}if(f=Object.keys(a),o=f.length,o!==Object.keys(i).length)return!1;for(s=o;s--!==0;)if(!{}.hasOwnProperty.call(i,f[s]))return!1;for(s=o;s--!==0;){const d=f[s];if(!(d==="_owner"&&a.$$typeof)&&!Do(a[d],i[d]))return!1}return!0}return a!==a&&i!==i}function rg(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function av(a,i){const o=rg(a);return Math.round(i*o)/o}function Cu(a){const i=g.useRef(a);return Co(()=>{i.current=a}),i}function Ww(a){a===void 0&&(a={});const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:f,elements:{reference:d,floating:h}={},transform:p=!0,whileElementsMounted:v,open:y}=a,[S,b]=g.useState({x:0,y:0,strategy:o,placement:i,middlewareData:{},isPositioned:!1}),[C,N]=g.useState(s);Do(C,s)||N(s);const[D,w]=g.useState(null),[j,z]=g.useState(null),R=g.useCallback(K=>{K!==J.current&&(J.current=K,w(K))},[]),M=g.useCallback(K=>{K!==q.current&&(q.current=K,z(K))},[]),Y=d||D,Z=h||j,J=g.useRef(null),q=g.useRef(null),W=g.useRef(S),ne=v!=null,ce=Cu(v),oe=Cu(f),P=Cu(y),te=g.useCallback(()=>{if(!J.current||!q.current)return;const K={placement:i,strategy:o,middleware:C};oe.current&&(K.platform=oe.current),Zw(J.current,q.current,K).then(le=>{const pe={...le,isPositioned:P.current!==!1};I.current&&!Do(W.current,pe)&&(W.current=pe,Gi.flushSync(()=>{b(pe)}))})},[C,i,o,oe,P]);Co(()=>{y===!1&&W.current.isPositioned&&(W.current.isPositioned=!1,b(K=>({...K,isPositioned:!1})))},[y]);const I=g.useRef(!1);Co(()=>(I.current=!0,()=>{I.current=!1}),[]),Co(()=>{if(Y&&(J.current=Y),Z&&(q.current=Z),Y&&Z){if(ce.current)return ce.current(Y,Z,te);te()}},[Y,Z,te,ce,ne]);const re=g.useMemo(()=>({reference:J,floating:q,setReference:R,setFloating:M}),[R,M]),_=g.useMemo(()=>({reference:Y,floating:Z}),[Y,Z]),L=g.useMemo(()=>{const K={position:o,left:0,top:0};if(!_.floating)return K;const le=av(_.floating,S.x),pe=av(_.floating,S.y);return p?{...K,transform:"translate("+le+"px, "+pe+"px)",...rg(_.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:le,top:pe}},[o,p,_.floating,S.x,S.y]);return g.useMemo(()=>({...S,update:te,refs:re,elements:_,floatingStyles:L}),[S,te,re,_,L])}const $w=a=>{function i(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:a,fn(o){const{element:s,padding:f}=typeof a=="function"?a(o):a;return s&&i(s)?s.current!=null?lv({element:s.current,padding:f}).fn(o):{}:s?lv({element:s,padding:f}).fn(o):{}}}},Iw=(a,i)=>({...Vw(a),options:[a,i]}),eE=(a,i)=>({...Xw(a),options:[a,i]}),tE=(a,i)=>({...Qw(a),options:[a,i]}),nE=(a,i)=>({...Gw(a),options:[a,i]}),lE=(a,i)=>({...Fw(a),options:[a,i]}),aE=(a,i)=>({...Kw(a),options:[a,i]}),iE=(a,i)=>({...$w(a),options:[a,i]});var cE="Arrow",sg=g.forwardRef((a,i)=>{const{children:o,width:s=10,height:f=5,...d}=a;return u.jsx(Fe.svg,{...d,ref:i,width:s,height:f,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?o:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});sg.displayName=cE;var oE=sg;function rE(a){const[i,o]=g.useState(void 0);return yt(()=>{if(a){o({width:a.offsetWidth,height:a.offsetHeight});const s=new ResizeObserver(f=>{if(!Array.isArray(f)||!f.length)return;const d=f[0];let h,p;if("borderBoxSize"in d){const v=d.borderBoxSize,y=Array.isArray(v)?v[0]:v;h=y.inlineSize,p=y.blockSize}else h=a.offsetWidth,p=a.offsetHeight;o({width:h,height:p})});return s.observe(a,{box:"border-box"}),()=>s.unobserve(a)}else o(void 0)},[a]),i}var sf="Popper",[ug,fg]=ef(sf),[sE,dg]=ug(sf),hg=a=>{const{__scopePopper:i,children:o}=a,[s,f]=g.useState(null);return u.jsx(sE,{scope:i,anchor:s,onAnchorChange:f,children:o})};hg.displayName=sf;var mg="PopperAnchor",pg=g.forwardRef((a,i)=>{const{__scopePopper:o,virtualRef:s,...f}=a,d=dg(mg,o),h=g.useRef(null),p=ct(i,h),v=g.useRef(null);return g.useEffect(()=>{const y=v.current;v.current=s?.current||h.current,y!==v.current&&d.onAnchorChange(v.current)}),s?null:u.jsx(Fe.div,{...f,ref:p})});pg.displayName=mg;var uf="PopperContent",[uE,fE]=ug(uf),vg=g.forwardRef((a,i)=>{const{__scopePopper:o,side:s="bottom",sideOffset:f=0,align:d="center",alignOffset:h=0,arrowPadding:p=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:S=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:N="optimized",onPlaced:D,...w}=a,j=dg(uf,o),[z,R]=g.useState(null),M=ct(i,V=>R(V)),[Y,Z]=g.useState(null),J=rE(Y),q=J?.width??0,W=J?.height??0,ne=s+(d!=="center"?"-"+d:""),ce=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},oe=Array.isArray(y)?y:[y],P=oe.length>0,te={padding:ce,boundary:oe.filter(hE),altBoundary:P},{refs:I,floatingStyles:re,placement:_,isPositioned:L,middlewareData:K}=Ww({strategy:"fixed",placement:ne,whileElementsMounted:(...V)=>qw(...V,{animationFrame:N==="always"}),elements:{reference:j.anchor},middleware:[Iw({mainAxis:f+W,alignmentAxis:h}),v&&eE({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?tE():void 0,...te}),v&&nE({...te}),lE({...te,apply:({elements:V,rects:se,availableWidth:fe,availableHeight:Ee})=>{const{width:Ae,height:He}=se.reference,rt=V.floating.style;rt.setProperty("--radix-popper-available-width",`${fe}px`),rt.setProperty("--radix-popper-available-height",`${Ee}px`),rt.setProperty("--radix-popper-anchor-width",`${Ae}px`),rt.setProperty("--radix-popper-anchor-height",`${He}px`)}}),Y&&iE({element:Y,padding:p}),mE({arrowWidth:q,arrowHeight:W}),C&&aE({strategy:"referenceHidden",...te})]}),[le,pe]=xg(_),T=Dl(D);yt(()=>{L&&T?.()},[L,T]);const G=K.arrow?.x,$=K.arrow?.y,ee=K.arrow?.centerOffset!==0,[de,me]=g.useState();return yt(()=>{z&&me(window.getComputedStyle(z).zIndex)},[z]),u.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:L?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[K.transformOrigin?.x,K.transformOrigin?.y].join(" "),...K.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:u.jsx(uE,{scope:o,placedSide:le,onArrowChange:Z,arrowX:G,arrowY:$,shouldHideArrow:ee,children:u.jsx(Fe.div,{"data-side":le,"data-align":pe,...w,ref:M,style:{...w.style,animation:L?void 0:"none"}})})})});vg.displayName=uf;var gg="PopperArrow",dE={top:"bottom",right:"left",bottom:"top",left:"right"},yg=g.forwardRef(function(i,o){const{__scopePopper:s,...f}=i,d=fE(gg,s),h=dE[d.placedSide];return u.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:u.jsx(oE,{...f,ref:o,style:{...f.style,display:"block"}})})});yg.displayName=gg;function hE(a){return a!==null}var mE=a=>({name:"transformOrigin",options:a,fn(i){const{placement:o,rects:s,middlewareData:f}=i,h=f.arrow?.centerOffset!==0,p=h?0:a.arrowWidth,v=h?0:a.arrowHeight,[y,S]=xg(o),b={start:"0%",center:"50%",end:"100%"}[S],C=(f.arrow?.x??0)+p/2,N=(f.arrow?.y??0)+v/2;let D="",w="";return y==="bottom"?(D=h?b:`${C}px`,w=`${-v}px`):y==="top"?(D=h?b:`${C}px`,w=`${s.floating.height+v}px`):y==="right"?(D=`${-v}px`,w=h?b:`${N}px`):y==="left"&&(D=`${s.floating.width+v}px`,w=h?b:`${N}px`),{data:{x:D,y:w}}}});function xg(a){const[i,o="center"]=a.split("-");return[i,o]}var pE=hg,vE=pg,gE=vg,yE=yg,xE="Portal",bg=g.forwardRef((a,i)=>{const{container:o,...s}=a,[f,d]=g.useState(!1);yt(()=>d(!0),[]);const h=o||f&&globalThis?.document?.body;return h?vS.createPortal(u.jsx(Fe.div,{...s,ref:i}),h):null});bg.displayName=xE;var bE=dv[" useInsertionEffect ".trim().toString()]||yt;function iv({prop:a,defaultProp:i,onChange:o=()=>{},caller:s}){const[f,d,h]=SE({defaultProp:i,onChange:o}),p=a!==void 0,v=p?a:f;{const S=g.useRef(a!==void 0);g.useEffect(()=>{const b=S.current;b!==p&&console.warn(`${s} is changing from ${b?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),S.current=p},[p,s])}const y=g.useCallback(S=>{if(p){const b=wE(S)?S(a):S;b!==a&&h.current?.(b)}else d(S)},[p,a,d,h]);return[v,y]}function SE({defaultProp:a,onChange:i}){const[o,s]=g.useState(a),f=g.useRef(o),d=g.useRef(i);return bE(()=>{d.current=i},[i]),g.useEffect(()=>{f.current!==o&&(d.current?.(o),f.current=o)},[o,f]),[o,s,d]}function wE(a){return typeof a=="function"}function EE(a){const i=g.useRef({value:a,previous:a});return g.useMemo(()=>(i.current.value!==a&&(i.current.previous=i.current.value,i.current.value=a),i.current.previous),[a])}var Sg=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),CE="VisuallyHidden",NE=g.forwardRef((a,i)=>u.jsx(Fe.span,{...a,ref:i,style:{...Sg,...a.style}}));NE.displayName=CE;var jE=function(a){if(typeof document>"u")return null;var i=Array.isArray(a)?a[0]:a;return i.ownerDocument.body},Sa=new WeakMap,vo=new WeakMap,go={},Nu=0,wg=function(a){return a&&(a.host||wg(a.parentNode))},TE=function(a,i){return i.map(function(o){if(a.contains(o))return o;var s=wg(o);return s&&a.contains(s)?s:(console.error("aria-hidden",o,"in not contained inside",a,". Doing nothing"),null)}).filter(function(o){return!!o})},AE=function(a,i,o,s){var f=TE(i,Array.isArray(a)?a:[a]);go[o]||(go[o]=new WeakMap);var d=go[o],h=[],p=new Set,v=new Set(f),y=function(b){!b||p.has(b)||(p.add(b),y(b.parentNode))};f.forEach(y);var S=function(b){!b||v.has(b)||Array.prototype.forEach.call(b.children,function(C){if(p.has(C))S(C);else try{var N=C.getAttribute(s),D=N!==null&&N!=="false",w=(Sa.get(C)||0)+1,j=(d.get(C)||0)+1;Sa.set(C,w),d.set(C,j),h.push(C),w===1&&D&&vo.set(C,!0),j===1&&C.setAttribute(o,"true"),D||C.setAttribute(s,"true")}catch(z){console.error("aria-hidden: cannot operate on ",C,z)}})};return S(i),p.clear(),Nu++,function(){h.forEach(function(b){var C=Sa.get(b)-1,N=d.get(b)-1;Sa.set(b,C),d.set(b,N),C||(vo.has(b)||b.removeAttribute(s),vo.delete(b)),N||b.removeAttribute(o)}),Nu--,Nu||(Sa=new WeakMap,Sa=new WeakMap,vo=new WeakMap,go={})}},RE=function(a,i,o){o===void 0&&(o="data-aria-hidden");var s=Array.from(Array.isArray(a)?a:[a]),f=jE(a);return f?(s.push.apply(s,Array.from(f.querySelectorAll("[aria-live], script"))),AE(s,f,o,"aria-hidden")):function(){return null}},ln=function(){return ln=Object.assign||function(i){for(var o,s=1,f=arguments.length;s<f;s++){o=arguments[s];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(i[d]=o[d])}return i},ln.apply(this,arguments)};function Eg(a,i){var o={};for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.indexOf(s)<0&&(o[s]=a[s]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,s=Object.getOwnPropertySymbols(a);f<s.length;f++)i.indexOf(s[f])<0&&Object.prototype.propertyIsEnumerable.call(a,s[f])&&(o[s[f]]=a[s[f]]);return o}function zE(a,i,o){if(o||arguments.length===2)for(var s=0,f=i.length,d;s<f;s++)(d||!(s in i))&&(d||(d=Array.prototype.slice.call(i,0,s)),d[s]=i[s]);return a.concat(d||Array.prototype.slice.call(i))}var No="right-scroll-bar-position",jo="width-before-scroll-bar",OE="with-scroll-bars-hidden",_E="--removed-body-scroll-bar-size";function ju(a,i){return typeof a=="function"?a(i):a&&(a.current=i),a}function DE(a,i){var o=g.useState(function(){return{value:a,callback:i,facade:{get current(){return o.value},set current(s){var f=o.value;f!==s&&(o.value=s,o.callback(s,f))}}}})[0];return o.callback=i,o.facade}var ME=typeof window<"u"?g.useLayoutEffect:g.useEffect,cv=new WeakMap;function LE(a,i){var o=DE(null,function(s){return a.forEach(function(f){return ju(f,s)})});return ME(function(){var s=cv.get(o);if(s){var f=new Set(s),d=new Set(a),h=o.current;f.forEach(function(p){d.has(p)||ju(p,null)}),d.forEach(function(p){f.has(p)||ju(p,h)})}cv.set(o,a)},[a]),o}function UE(a){return a}function HE(a,i){i===void 0&&(i=UE);var o=[],s=!1,f={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:a},useMedium:function(d){var h=i(d,s);return o.push(h),function(){o=o.filter(function(p){return p!==h})}},assignSyncMedium:function(d){for(s=!0;o.length;){var h=o;o=[],h.forEach(d)}o={push:function(p){return d(p)},filter:function(){return o}}},assignMedium:function(d){s=!0;var h=[];if(o.length){var p=o;o=[],p.forEach(d),h=o}var v=function(){var S=h;h=[],S.forEach(d)},y=function(){return Promise.resolve().then(v)};y(),o={push:function(S){h.push(S),y()},filter:function(S){return h=h.filter(S),o}}}};return f}function BE(a){a===void 0&&(a={});var i=HE(null);return i.options=ln({async:!0,ssr:!1},a),i}var Cg=function(a){var i=a.sideCar,o=Eg(a,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=i.read();if(!s)throw new Error("Sidecar medium not found");return g.createElement(s,ln({},o))};Cg.isSideCarExport=!0;function kE(a,i){return a.useMedium(i),Cg}var Ng=BE(),Tu=function(){},Vo=g.forwardRef(function(a,i){var o=g.useRef(null),s=g.useState({onScrollCapture:Tu,onWheelCapture:Tu,onTouchMoveCapture:Tu}),f=s[0],d=s[1],h=a.forwardProps,p=a.children,v=a.className,y=a.removeScrollBar,S=a.enabled,b=a.shards,C=a.sideCar,N=a.noRelative,D=a.noIsolation,w=a.inert,j=a.allowPinchZoom,z=a.as,R=z===void 0?"div":z,M=a.gapMode,Y=Eg(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Z=C,J=LE([o,i]),q=ln(ln({},Y),f);return g.createElement(g.Fragment,null,S&&g.createElement(Z,{sideCar:Ng,removeScrollBar:y,shards:b,noRelative:N,noIsolation:D,inert:w,setCallbacks:d,allowPinchZoom:!!j,lockRef:o,gapMode:M}),h?g.cloneElement(g.Children.only(p),ln(ln({},q),{ref:J})):g.createElement(R,ln({},q,{className:v,ref:J}),p))});Vo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vo.classNames={fullWidth:jo,zeroRight:No};var YE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qE(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var i=YE();return i&&a.setAttribute("nonce",i),a}function VE(a,i){a.styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i))}function XE(a){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(a)}var GE=function(){var a=0,i=null;return{add:function(o){a==0&&(i=qE())&&(VE(i,o),XE(i)),a++},remove:function(){a--,!a&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},FE=function(){var a=GE();return function(i,o){g.useEffect(function(){return a.add(i),function(){a.remove()}},[i&&o])}},jg=function(){var a=FE(),i=function(o){var s=o.styles,f=o.dynamic;return a(s,f),null};return i},KE={left:0,top:0,right:0,gap:0},Au=function(a){return parseInt(a||"",10)||0},QE=function(a){var i=window.getComputedStyle(document.body),o=i[a==="padding"?"paddingLeft":"marginLeft"],s=i[a==="padding"?"paddingTop":"marginTop"],f=i[a==="padding"?"paddingRight":"marginRight"];return[Au(o),Au(s),Au(f)]},ZE=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return KE;var i=QE(a),o=document.documentElement.clientWidth,s=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,s-o+i[2]-i[0])}},PE=jg(),ja="data-scroll-locked",JE=function(a,i,o,s){var f=a.left,d=a.top,h=a.right,p=a.gap;return o===void 0&&(o="margin"),`
12
12
  .`.concat(OE,` {
13
13
  overflow: hidden `).concat(s,`;
14
14
  padding-right: `).concat(p,"px ").concat(s,`;
@@ -16,36 +16,36 @@ Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}
16
16
  body[`).concat(ja,`] {
17
17
  overflow: hidden `).concat(s,`;
18
18
  overscroll-behavior: contain;
19
- `).concat([i&&"position: relative ".concat(s,";"),r==="margin"&&`
19
+ `).concat([i&&"position: relative ".concat(s,";"),o==="margin"&&`
20
20
  padding-left: `.concat(f,`px;
21
21
  padding-top: `).concat(d,`px;
22
22
  padding-right: `).concat(h,`px;
23
23
  margin-left:0;
24
24
  margin-top:0;
25
25
  margin-right: `).concat(p,"px ").concat(s,`;
26
- `),r==="padding"&&"padding-right: ".concat(p,"px ").concat(s,";")].filter(Boolean).join(""),`
26
+ `),o==="padding"&&"padding-right: ".concat(p,"px ").concat(s,";")].filter(Boolean).join(""),`
27
27
  }
28
28
 
29
- .`).concat(jo,` {
29
+ .`).concat(No,` {
30
30
  right: `).concat(p,"px ").concat(s,`;
31
31
  }
32
32
 
33
- .`).concat(To,` {
33
+ .`).concat(jo,` {
34
34
  margin-right: `).concat(p,"px ").concat(s,`;
35
35
  }
36
36
 
37
- .`).concat(jo," .").concat(jo,` {
37
+ .`).concat(No," .").concat(No,` {
38
38
  right: 0 `).concat(s,`;
39
39
  }
40
40
 
41
- .`).concat(To," .").concat(To,` {
41
+ .`).concat(jo," .").concat(jo,` {
42
42
  margin-right: 0 `).concat(s,`;
43
43
  }
44
44
 
45
45
  body[`).concat(ja,`] {
46
- `).concat(zE,": ").concat(p,`px;
46
+ `).concat(_E,": ").concat(p,`px;
47
47
  }
48
- `)},cv=function(){var a=parseInt(document.body.getAttribute(ja)||"0",10);return isFinite(a)?a:0},JE=function(){g.useEffect(function(){return document.body.setAttribute(ja,(cv()+1).toString()),function(){var a=cv()-1;a<=0?document.body.removeAttribute(ja):document.body.setAttribute(ja,a.toString())}},[])},WE=function(a){var i=a.noRelative,r=a.noImportant,s=a.gapMode,f=s===void 0?"margin":s;JE();var d=g.useMemo(function(){return QE(f)},[f]);return g.createElement(ZE,{styles:PE(d,!i,f,r?"":"!important")})},ku=!1;if(typeof window<"u")try{var xo=Object.defineProperty({},"passive",{get:function(){return ku=!0,!0}});window.addEventListener("test",xo,xo),window.removeEventListener("test",xo,xo)}catch{ku=!1}var wa=ku?{passive:!1}:!1,IE=function(a){return a.tagName==="TEXTAREA"},jg=function(a,i){if(!(a instanceof Element))return!1;var r=window.getComputedStyle(a);return r[i]!=="hidden"&&!(r.overflowY===r.overflowX&&!IE(a)&&r[i]==="visible")},$E=function(a){return jg(a,"overflowY")},e2=function(a){return jg(a,"overflowX")},ov=function(a,i){var r=i.ownerDocument,s=i;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var f=Tg(a,s);if(f){var d=Ag(a,s),h=d[1],p=d[2];if(h>p)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},t2=function(a){var i=a.scrollTop,r=a.scrollHeight,s=a.clientHeight;return[i,r,s]},n2=function(a){var i=a.scrollLeft,r=a.scrollWidth,s=a.clientWidth;return[i,r,s]},Tg=function(a,i){return a==="v"?$E(i):e2(i)},Ag=function(a,i){return a==="v"?t2(i):n2(i)},l2=function(a,i){return a==="h"&&i==="rtl"?-1:1},a2=function(a,i,r,s,f){var d=l2(a,window.getComputedStyle(i).direction),h=d*s,p=r.target,v=i.contains(p),y=!1,S=h>0,b=0,C=0;do{if(!p)break;var N=Ag(a,p),D=N[0],w=N[1],j=N[2],R=w-j-d*D;(D||R)&&Tg(a,p)&&(b+=R,C+=D);var O=p.parentNode;p=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!v&&p!==document.body||v&&(i.contains(p)||i===p));return(S&&Math.abs(b)<1||!S&&Math.abs(C)<1)&&(y=!0),y},bo=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},rv=function(a){return[a.deltaX,a.deltaY]},sv=function(a){return a&&"current"in a?a.current:a},i2=function(a,i){return a[0]===i[0]&&a[1]===i[1]},c2=function(a){return`
48
+ `)},ov=function(){var a=parseInt(document.body.getAttribute(ja)||"0",10);return isFinite(a)?a:0},WE=function(){g.useEffect(function(){return document.body.setAttribute(ja,(ov()+1).toString()),function(){var a=ov()-1;a<=0?document.body.removeAttribute(ja):document.body.setAttribute(ja,a.toString())}},[])},$E=function(a){var i=a.noRelative,o=a.noImportant,s=a.gapMode,f=s===void 0?"margin":s;WE();var d=g.useMemo(function(){return ZE(f)},[f]);return g.createElement(PE,{styles:JE(d,!i,f,o?"":"!important")})},Yu=!1;if(typeof window<"u")try{var yo=Object.defineProperty({},"passive",{get:function(){return Yu=!0,!0}});window.addEventListener("test",yo,yo),window.removeEventListener("test",yo,yo)}catch{Yu=!1}var wa=Yu?{passive:!1}:!1,IE=function(a){return a.tagName==="TEXTAREA"},Tg=function(a,i){if(!(a instanceof Element))return!1;var o=window.getComputedStyle(a);return o[i]!=="hidden"&&!(o.overflowY===o.overflowX&&!IE(a)&&o[i]==="visible")},e2=function(a){return Tg(a,"overflowY")},t2=function(a){return Tg(a,"overflowX")},rv=function(a,i){var o=i.ownerDocument,s=i;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var f=Ag(a,s);if(f){var d=Rg(a,s),h=d[1],p=d[2];if(h>p)return!0}s=s.parentNode}while(s&&s!==o.body);return!1},n2=function(a){var i=a.scrollTop,o=a.scrollHeight,s=a.clientHeight;return[i,o,s]},l2=function(a){var i=a.scrollLeft,o=a.scrollWidth,s=a.clientWidth;return[i,o,s]},Ag=function(a,i){return a==="v"?e2(i):t2(i)},Rg=function(a,i){return a==="v"?n2(i):l2(i)},a2=function(a,i){return a==="h"&&i==="rtl"?-1:1},i2=function(a,i,o,s,f){var d=a2(a,window.getComputedStyle(i).direction),h=d*s,p=o.target,v=i.contains(p),y=!1,S=h>0,b=0,C=0;do{if(!p)break;var N=Rg(a,p),D=N[0],w=N[1],j=N[2],z=w-j-d*D;(D||z)&&Ag(a,p)&&(b+=z,C+=D);var R=p.parentNode;p=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!v&&p!==document.body||v&&(i.contains(p)||i===p));return(S&&Math.abs(b)<1||!S&&Math.abs(C)<1)&&(y=!0),y},xo=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},sv=function(a){return[a.deltaX,a.deltaY]},uv=function(a){return a&&"current"in a?a.current:a},c2=function(a,i){return a[0]===i[0]&&a[1]===i[1]},o2=function(a){return`
49
49
  .block-interactivity-`.concat(a,` {pointer-events: none;}
50
50
  .allow-interactivity-`).concat(a,` {pointer-events: all;}
51
- `)},o2=0,Ea=[];function r2(a){var i=g.useRef([]),r=g.useRef([0,0]),s=g.useRef(),f=g.useState(o2++)[0],d=g.useState(Ng)[0],h=g.useRef(a);g.useEffect(function(){h.current=a},[a]),g.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(f));var w=RE([a.lockRef.current],(a.shards||[]).map(sv),!0).filter(Boolean);return w.forEach(function(j){return j.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),w.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(f))})}}},[a.inert,a.lockRef.current,a.shards]);var p=g.useCallback(function(w,j){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!h.current.allowPinchZoom;var R=bo(w),O=r.current,M="deltaX"in w?w.deltaX:O[0]-R[0],q="deltaY"in w?w.deltaY:O[1]-R[1],Q,J=w.target,Y=Math.abs(M)>Math.abs(q)?"h":"v";if("touches"in w&&Y==="h"&&J.type==="range")return!1;var I=window.getSelection(),le=I&&I.anchorNode,re=le?le===J||le.contains(J):!1;if(re)return!1;var se=ov(Y,J);if(!se)return!0;if(se?Q=Y:(Q=Y==="v"?"h":"v",se=ov(Y,J)),!se)return!1;if(!s.current&&"changedTouches"in w&&(M||q)&&(s.current=Q),!Q)return!0;var W=s.current||Q;return a2(W,j,w,W==="h"?M:q)},[]),v=g.useCallback(function(w){var j=w;if(!(!Ea.length||Ea[Ea.length-1]!==d)){var R="deltaY"in j?rv(j):bo(j),O=i.current.filter(function(Q){return Q.name===j.type&&(Q.target===j.target||j.target===Q.shadowParent)&&i2(Q.delta,R)})[0];if(O&&O.should){j.cancelable&&j.preventDefault();return}if(!O){var M=(h.current.shards||[]).map(sv).filter(Boolean).filter(function(Q){return Q.contains(j.target)}),q=M.length>0?p(j,M[0]):!h.current.noIsolation;q&&j.cancelable&&j.preventDefault()}}},[]),y=g.useCallback(function(w,j,R,O){var M={name:w,delta:j,target:R,should:O,shadowParent:s2(R)};i.current.push(M),setTimeout(function(){i.current=i.current.filter(function(q){return q!==M})},1)},[]),S=g.useCallback(function(w){r.current=bo(w),s.current=void 0},[]),b=g.useCallback(function(w){y(w.type,rv(w),w.target,p(w,a.lockRef.current))},[]),C=g.useCallback(function(w){y(w.type,bo(w),w.target,p(w,a.lockRef.current))},[]);g.useEffect(function(){return Ea.push(d),a.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",v,wa),document.addEventListener("touchmove",v,wa),document.addEventListener("touchstart",S,wa),function(){Ea=Ea.filter(function(w){return w!==d}),document.removeEventListener("wheel",v,wa),document.removeEventListener("touchmove",v,wa),document.removeEventListener("touchstart",S,wa)}},[]);var N=a.removeScrollBar,D=a.inert;return g.createElement(g.Fragment,null,D?g.createElement(d,{styles:c2(f)}):null,N?g.createElement(WE,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function s2(a){for(var i=null;a!==null;)a instanceof ShadowRoot&&(i=a.host,a=a.host),a=a.parentNode;return i}const u2=BE(Cg,r2);var Rg=g.forwardRef(function(a,i){return g.createElement(qo,ln({},a,{ref:i,sideCar:u2}))});Rg.classNames=qo.classNames;var f2=[" ","Enter","ArrowUp","ArrowDown"],d2=[" ","Enter"],Ll="Select",[Vo,Xo,h2]=NS(Ll),[Ma]=$u(Ll,[h2,ug]),Go=ug(),[m2,fl]=Ma(Ll),[p2,v2]=Ma(Ll),Og=a=>{const{__scopeSelect:i,children:r,open:s,defaultOpen:f,onOpenChange:d,value:h,defaultValue:p,onValueChange:v,dir:y,name:S,autoComplete:b,disabled:C,required:N,form:D}=a,w=Go(i),[j,R]=g.useState(null),[O,M]=g.useState(null),[q,Q]=g.useState(!1),J=TS(y),[Y,I]=av({prop:s,defaultProp:f??!1,onChange:d,caller:Ll}),[le,re]=av({prop:h,defaultProp:p,onChange:v,caller:Ll}),se=g.useRef(null),W=j?D||!!j.closest("form"):!0,[ne,ee]=g.useState(new Set),ae=Array.from(ne).map(_=>_.props.value).join(";");return u.jsx(mE,{...w,children:u.jsxs(m2,{required:N,scope:i,trigger:j,onTriggerChange:R,valueNode:O,onValueNodeChange:M,valueNodeHasChildren:q,onValueNodeHasChildrenChange:Q,contentId:ef(),value:le,onValueChange:re,open:Y,onOpenChange:I,dir:J,triggerPointerDownPosRef:se,disabled:C,children:[u.jsx(Vo.Provider,{scope:i,children:u.jsx(p2,{scope:a.__scopeSelect,onNativeOptionAdd:g.useCallback(_=>{ee(L=>new Set(L).add(_))},[]),onNativeOptionRemove:g.useCallback(_=>{ee(L=>{const X=new Set(L);return X.delete(_),X})},[]),children:r})}),W?u.jsxs(Wg,{"aria-hidden":!0,required:N,tabIndex:-1,name:S,autoComplete:b,value:le,onChange:_=>re(_.target.value),disabled:C,form:D,children:[le===void 0?u.jsx("option",{value:""}):null,Array.from(ne)]},ae):null]})})};Og.displayName=Ll;var zg="SelectTrigger",_g=g.forwardRef((a,i)=>{const{__scopeSelect:r,disabled:s=!1,...f}=a,d=Go(r),h=fl(zg,r),p=h.disabled||s,v=ct(i,h.onTriggerChange),y=Xo(r),S=g.useRef("touch"),[b,C,N]=$g(w=>{const j=y().filter(M=>!M.disabled),R=j.find(M=>M.value===h.value),O=ey(j,w,R);O!==void 0&&h.onValueChange(O.value)}),D=w=>{p||(h.onOpenChange(!0),N()),w&&(h.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return u.jsx(pE,{asChild:!0,...d,children:u.jsx(Fe.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":Ig(h.value)?"":void 0,...f,ref:v,onClick:Je(f.onClick,w=>{w.currentTarget.focus(),S.current!=="mouse"&&D(w)}),onPointerDown:Je(f.onPointerDown,w=>{S.current=w.pointerType;const j=w.target;j.hasPointerCapture(w.pointerId)&&j.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(D(w),w.preventDefault())}),onKeyDown:Je(f.onKeyDown,w=>{const j=b.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&C(w.key),!(j&&w.key===" ")&&f2.includes(w.key)&&(D(),w.preventDefault())})})})});_g.displayName=zg;var Dg="SelectValue",Mg=g.forwardRef((a,i)=>{const{__scopeSelect:r,className:s,style:f,children:d,placeholder:h="",...p}=a,v=fl(Dg,r),{onValueNodeHasChildrenChange:y}=v,S=d!==void 0,b=ct(i,v.onValueNodeChange);return yt(()=>{y(S)},[y,S]),u.jsx(Fe.span,{...p,ref:b,style:{pointerEvents:"none"},children:Ig(v.value)?u.jsx(u.Fragment,{children:h}):d})});Mg.displayName=Dg;var g2="SelectIcon",Lg=g.forwardRef((a,i)=>{const{__scopeSelect:r,children:s,...f}=a;return u.jsx(Fe.span,{"aria-hidden":!0,...f,ref:i,children:s||"▼"})});Lg.displayName=g2;var y2="SelectPortal",Ug=a=>u.jsx(xg,{asChild:!0,...a});Ug.displayName=y2;var Ul="SelectContent",Hg=g.forwardRef((a,i)=>{const r=fl(Ul,a.__scopeSelect),[s,f]=g.useState();if(yt(()=>{f(new DocumentFragment)},[]),!r.open){const d=s;return d?Ki.createPortal(u.jsx(Bg,{scope:a.__scopeSelect,children:u.jsx(Vo.Slot,{scope:a.__scopeSelect,children:u.jsx("div",{children:a.children})})}),d):null}return u.jsx(kg,{...a,ref:i})});Hg.displayName=Ul;var Zt=10,[Bg,dl]=Ma(Ul),x2="SelectContentImpl",b2=Ro("SelectContent.RemoveScroll"),kg=g.forwardRef((a,i)=>{const{__scopeSelect:r,position:s="item-aligned",onCloseAutoFocus:f,onEscapeKeyDown:d,onPointerDownOutside:h,side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:N,sticky:D,hideWhenDetached:w,avoidCollisions:j,...R}=a,O=fl(Ul,r),[M,q]=g.useState(null),[Q,J]=g.useState(null),Y=ct(i,P=>q(P)),[I,le]=g.useState(null),[re,se]=g.useState(null),W=Xo(r),[ne,ee]=g.useState(!1),ae=g.useRef(!1);g.useEffect(()=>{if(M)return AE(M)},[M]),BS();const _=g.useCallback(P=>{const[fe,...ge]=W().map(He=>He.ref.current),[je]=ge.slice(-1),Ae=document.activeElement;for(const He of P)if(He===Ae||(He?.scrollIntoView({block:"nearest"}),He===fe&&Q&&(Q.scrollTop=0),He===je&&Q&&(Q.scrollTop=Q.scrollHeight),He?.focus(),document.activeElement!==Ae))return},[W,Q]),L=g.useCallback(()=>_([I,M]),[_,I,M]);g.useEffect(()=>{ne&&L()},[ne,L]);const{onOpenChange:X,triggerPointerDownPosRef:ce}=O;g.useEffect(()=>{if(M){let P={x:0,y:0};const fe=je=>{P={x:Math.abs(Math.round(je.pageX)-(ce.current?.x??0)),y:Math.abs(Math.round(je.pageY)-(ce.current?.y??0))}},ge=je=>{P.x<=10&&P.y<=10?je.preventDefault():M.contains(je.target)||X(!1),document.removeEventListener("pointermove",fe),ce.current=null};return ce.current!==null&&(document.addEventListener("pointermove",fe),document.addEventListener("pointerup",ge,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",fe),document.removeEventListener("pointerup",ge,{capture:!0})}}},[M,X,ce]),g.useEffect(()=>{const P=()=>X(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[X]);const[me,T]=$g(P=>{const fe=W().filter(Ae=>!Ae.disabled),ge=fe.find(Ae=>Ae.ref.current===document.activeElement),je=ey(fe,P,ge);je&&setTimeout(()=>je.ref.current.focus())}),G=g.useCallback((P,fe,ge)=>{const je=!ae.current&&!ge;(O.value!==void 0&&O.value===fe||je)&&(le(P),je&&(ae.current=!0))},[O.value]),$=g.useCallback(()=>M?.focus(),[M]),te=g.useCallback((P,fe,ge)=>{const je=!ae.current&&!ge;(O.value!==void 0&&O.value===fe||je)&&se(P)},[O.value]),de=s==="popper"?Yu:Yg,Z=de===Yu?{side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:N,sticky:D,hideWhenDetached:w,avoidCollisions:j}:{};return u.jsx(Bg,{scope:r,content:M,viewport:Q,onViewportChange:J,itemRefCallback:G,selectedItem:I,onItemLeave:$,itemTextRefCallback:te,focusSelectedItem:L,selectedItemText:re,position:s,isPositioned:ne,searchRef:me,children:u.jsx(Rg,{as:b2,allowPinchZoom:!0,children:u.jsx(Pv,{asChild:!0,trapped:O.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:Je(f,P=>{O.trigger?.focus({preventScroll:!0}),P.preventDefault()}),children:u.jsx(Qv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>O.onOpenChange(!1),children:u.jsx(de,{role:"listbox",id:O.contentId,"data-state":O.open?"open":"closed",dir:O.dir,onContextMenu:P=>P.preventDefault(),...R,...Z,onPlaced:()=>ee(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:Je(R.onKeyDown,P=>{const fe=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!fe&&P.key.length===1&&T(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let je=W().filter(Ae=>!Ae.disabled).map(Ae=>Ae.ref.current);if(["ArrowUp","End"].includes(P.key)&&(je=je.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const Ae=P.target,He=je.indexOf(Ae);je=je.slice(He+1)}setTimeout(()=>_(je)),P.preventDefault()}})})})})})})});kg.displayName=x2;var S2="SelectItemAlignedPosition",Yg=g.forwardRef((a,i)=>{const{__scopeSelect:r,onPlaced:s,...f}=a,d=fl(Ul,r),h=dl(Ul,r),[p,v]=g.useState(null),[y,S]=g.useState(null),b=ct(i,Y=>S(Y)),C=Xo(r),N=g.useRef(!1),D=g.useRef(!0),{viewport:w,selectedItem:j,selectedItemText:R,focusSelectedItem:O}=h,M=g.useCallback(()=>{if(d.trigger&&d.valueNode&&p&&y&&w&&j&&R){const Y=d.trigger.getBoundingClientRect(),I=y.getBoundingClientRect(),le=d.valueNode.getBoundingClientRect(),re=R.getBoundingClientRect();if(d.dir!=="rtl"){const Ae=re.left-I.left,He=le.left-Ae,rt=Y.left-He,st=Y.width+rt,hl=Math.max(st,I.width),ml=window.innerWidth-Zt,La=Bp(He,[Zt,Math.max(Zt,ml-hl)]);p.style.minWidth=st+"px",p.style.left=La+"px"}else{const Ae=I.right-re.right,He=window.innerWidth-le.right-Ae,rt=window.innerWidth-Y.right-He,st=Y.width+rt,hl=Math.max(st,I.width),ml=window.innerWidth-Zt,La=Bp(He,[Zt,Math.max(Zt,ml-hl)]);p.style.minWidth=st+"px",p.style.right=La+"px"}const se=C(),W=window.innerHeight-Zt*2,ne=w.scrollHeight,ee=window.getComputedStyle(y),ae=parseInt(ee.borderTopWidth,10),_=parseInt(ee.paddingTop,10),L=parseInt(ee.borderBottomWidth,10),X=parseInt(ee.paddingBottom,10),ce=ae+_+ne+X+L,me=Math.min(j.offsetHeight*5,ce),T=window.getComputedStyle(w),G=parseInt(T.paddingTop,10),$=parseInt(T.paddingBottom,10),te=Y.top+Y.height/2-Zt,de=W-te,Z=j.offsetHeight/2,P=j.offsetTop+Z,fe=ae+_+P,ge=ce-fe;if(fe<=te){const Ae=se.length>0&&j===se[se.length-1].ref.current;p.style.bottom="0px";const He=y.clientHeight-w.offsetTop-w.offsetHeight,rt=Math.max(de,Z+(Ae?$:0)+He+L),st=fe+rt;p.style.height=st+"px"}else{const Ae=se.length>0&&j===se[0].ref.current;p.style.top="0px";const rt=Math.max(te,ae+w.offsetTop+(Ae?G:0)+Z)+ge;p.style.height=rt+"px",w.scrollTop=fe-te+w.offsetTop}p.style.margin=`${Zt}px 0`,p.style.minHeight=me+"px",p.style.maxHeight=W+"px",s?.(),requestAnimationFrame(()=>N.current=!0)}},[C,d.trigger,d.valueNode,p,y,w,j,R,d.dir,s]);yt(()=>M(),[M]);const[q,Q]=g.useState();yt(()=>{y&&Q(window.getComputedStyle(y).zIndex)},[y]);const J=g.useCallback(Y=>{Y&&D.current===!0&&(M(),O?.(),D.current=!1)},[M,O]);return u.jsx(E2,{scope:r,contentWrapper:p,shouldExpandOnScrollRef:N,onScrollButtonChange:J,children:u.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:q},children:u.jsx(Fe.div,{...f,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...f.style}})})})});Yg.displayName=S2;var w2="SelectPopperPosition",Yu=g.forwardRef((a,i)=>{const{__scopeSelect:r,align:s="start",collisionPadding:f=Zt,...d}=a,h=Go(r);return u.jsx(vE,{...h,...d,ref:i,align:s,collisionPadding:f,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Yu.displayName=w2;var[E2,uf]=Ma(Ul,{}),qu="SelectViewport",qg=g.forwardRef((a,i)=>{const{__scopeSelect:r,nonce:s,...f}=a,d=dl(qu,r),h=uf(qu,r),p=ct(i,d.onViewportChange),v=g.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),u.jsx(Vo.Slot,{scope:r,children:u.jsx(Fe.div,{"data-radix-select-viewport":"",role:"presentation",...f,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...f.style},onScroll:Je(f.onScroll,y=>{const S=y.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:C}=h;if(C?.current&&b){const N=Math.abs(v.current-S.scrollTop);if(N>0){const D=window.innerHeight-Zt*2,w=parseFloat(b.style.minHeight),j=parseFloat(b.style.height),R=Math.max(w,j);if(R<D){const O=R+N,M=Math.min(D,O),q=O-M;b.style.height=M+"px",b.style.bottom==="0px"&&(S.scrollTop=q>0?q:0,b.style.justifyContent="flex-end")}}}v.current=S.scrollTop})})})]})});qg.displayName=qu;var Vg="SelectGroup",[C2,N2]=Ma(Vg),j2=g.forwardRef((a,i)=>{const{__scopeSelect:r,...s}=a,f=ef();return u.jsx(C2,{scope:r,id:f,children:u.jsx(Fe.div,{role:"group","aria-labelledby":f,...s,ref:i})})});j2.displayName=Vg;var Xg="SelectLabel",Gg=g.forwardRef((a,i)=>{const{__scopeSelect:r,...s}=a,f=N2(Xg,r);return u.jsx(Fe.div,{id:f.id,...s,ref:i})});Gg.displayName=Xg;var Mo="SelectItem",[T2,Fg]=Ma(Mo),Kg=g.forwardRef((a,i)=>{const{__scopeSelect:r,value:s,disabled:f=!1,textValue:d,...h}=a,p=fl(Mo,r),v=dl(Mo,r),y=p.value===s,[S,b]=g.useState(d??""),[C,N]=g.useState(!1),D=ct(i,O=>v.itemRefCallback?.(O,s,f)),w=ef(),j=g.useRef("touch"),R=()=>{f||(p.onValueChange(s),p.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(T2,{scope:r,value:s,disabled:f,textId:w,isSelected:y,onItemTextChange:g.useCallback(O=>{b(M=>M||(O?.textContent??"").trim())},[]),children:u.jsx(Vo.ItemSlot,{scope:r,value:s,disabled:f,textValue:S,children:u.jsx(Fe.div,{role:"option","aria-labelledby":w,"data-highlighted":C?"":void 0,"aria-selected":y&&C,"data-state":y?"checked":"unchecked","aria-disabled":f||void 0,"data-disabled":f?"":void 0,tabIndex:f?void 0:-1,...h,ref:D,onFocus:Je(h.onFocus,()=>N(!0)),onBlur:Je(h.onBlur,()=>N(!1)),onClick:Je(h.onClick,()=>{j.current!=="mouse"&&R()}),onPointerUp:Je(h.onPointerUp,()=>{j.current==="mouse"&&R()}),onPointerDown:Je(h.onPointerDown,O=>{j.current=O.pointerType}),onPointerMove:Je(h.onPointerMove,O=>{j.current=O.pointerType,f?v.onItemLeave?.():j.current==="mouse"&&O.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(h.onPointerLeave,O=>{O.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:Je(h.onKeyDown,O=>{v.searchRef?.current!==""&&O.key===" "||(d2.includes(O.key)&&R(),O.key===" "&&O.preventDefault())})})})})});Kg.displayName=Mo;var Li="SelectItemText",Qg=g.forwardRef((a,i)=>{const{__scopeSelect:r,className:s,style:f,...d}=a,h=fl(Li,r),p=dl(Li,r),v=Fg(Li,r),y=v2(Li,r),[S,b]=g.useState(null),C=ct(i,R=>b(R),v.onItemTextChange,R=>p.itemTextRefCallback?.(R,v.value,v.disabled)),N=S?.textContent,D=g.useMemo(()=>u.jsx("option",{value:v.value,disabled:v.disabled,children:N},v.value),[v.disabled,v.value,N]),{onNativeOptionAdd:w,onNativeOptionRemove:j}=y;return yt(()=>(w(D),()=>j(D)),[w,j,D]),u.jsxs(u.Fragment,{children:[u.jsx(Fe.span,{id:v.textId,...d,ref:C}),v.isSelected&&h.valueNode&&!h.valueNodeHasChildren?Ki.createPortal(d.children,h.valueNode):null]})});Qg.displayName=Li;var Zg="SelectItemIndicator",Pg=g.forwardRef((a,i)=>{const{__scopeSelect:r,...s}=a;return Fg(Zg,r).isSelected?u.jsx(Fe.span,{"aria-hidden":!0,...s,ref:i}):null});Pg.displayName=Zg;var Vu="SelectScrollUpButton",A2=g.forwardRef((a,i)=>{const r=dl(Vu,a.__scopeSelect),s=uf(Vu,a.__scopeSelect),[f,d]=g.useState(!1),h=ct(i,s.onScrollButtonChange);return yt(()=>{if(r.viewport&&r.isPositioned){let p=function(){const y=v.scrollTop>0;d(y)};const v=r.viewport;return p(),v.addEventListener("scroll",p),()=>v.removeEventListener("scroll",p)}},[r.viewport,r.isPositioned]),f?u.jsx(Jg,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=r;p&&v&&(p.scrollTop=p.scrollTop-v.offsetHeight)}}):null});A2.displayName=Vu;var Xu="SelectScrollDownButton",R2=g.forwardRef((a,i)=>{const r=dl(Xu,a.__scopeSelect),s=uf(Xu,a.__scopeSelect),[f,d]=g.useState(!1),h=ct(i,s.onScrollButtonChange);return yt(()=>{if(r.viewport&&r.isPositioned){let p=function(){const y=v.scrollHeight-v.clientHeight,S=Math.ceil(v.scrollTop)<y;d(S)};const v=r.viewport;return p(),v.addEventListener("scroll",p),()=>v.removeEventListener("scroll",p)}},[r.viewport,r.isPositioned]),f?u.jsx(Jg,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=r;p&&v&&(p.scrollTop=p.scrollTop+v.offsetHeight)}}):null});R2.displayName=Xu;var Jg=g.forwardRef((a,i)=>{const{__scopeSelect:r,onAutoScroll:s,...f}=a,d=dl("SelectScrollButton",r),h=g.useRef(null),p=Xo(r),v=g.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),yt(()=>{p().find(S=>S.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),u.jsx(Fe.div,{"aria-hidden":!0,...f,ref:i,style:{flexShrink:0,...f.style},onPointerDown:Je(f.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(s,50))}),onPointerMove:Je(f.onPointerMove,()=>{d.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(s,50))}),onPointerLeave:Je(f.onPointerLeave,()=>{v()})})}),O2="SelectSeparator",z2=g.forwardRef((a,i)=>{const{__scopeSelect:r,...s}=a;return u.jsx(Fe.div,{"aria-hidden":!0,...s,ref:i})});z2.displayName=O2;var Gu="SelectArrow",_2=g.forwardRef((a,i)=>{const{__scopeSelect:r,...s}=a,f=Go(r),d=fl(Gu,r),h=dl(Gu,r);return d.open&&h.position==="popper"?u.jsx(gE,{...f,...s,ref:i}):null});_2.displayName=Gu;var D2="SelectBubbleInput",Wg=g.forwardRef(({__scopeSelect:a,value:i,...r},s)=>{const f=g.useRef(null),d=ct(s,f),h=wE(i);return g.useEffect(()=>{const p=f.current;if(!p)return;const v=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(v,"value").set;if(h!==i&&S){const b=new Event("change",{bubbles:!0});S.call(p,i),p.dispatchEvent(b)}},[h,i]),u.jsx(Fe.select,{...r,style:{...bg,...r.style},ref:d,defaultValue:i})});Wg.displayName=D2;function Ig(a){return a===""||a===void 0}function $g(a){const i=Dl(a),r=g.useRef(""),s=g.useRef(0),f=g.useCallback(h=>{const p=r.current+h;i(p),(function v(y){r.current=y,window.clearTimeout(s.current),y!==""&&(s.current=window.setTimeout(()=>v(""),1e3))})(p)},[i]),d=g.useCallback(()=>{r.current="",window.clearTimeout(s.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(s.current),[]),[r,f,d]}function ey(a,i,r){const f=i.length>1&&Array.from(i).every(y=>y===i[0])?i[0]:i,d=r?a.indexOf(r):-1;let h=M2(a,Math.max(d,0));f.length===1&&(h=h.filter(y=>y!==r));const v=h.find(y=>y.textValue.toLowerCase().startsWith(f.toLowerCase()));return v!==r?v:void 0}function M2(a,i){return a.map((r,s)=>a[(i+s)%a.length])}var L2=Og,ty=_g,U2=Mg,H2=Lg,B2=Ug,ny=Hg,k2=qg,ly=Gg,ay=Kg,Y2=Qg,q2=Pg;const So=L2,wo=U2,Ui=g.forwardRef(({className:a,children:i,...r},s)=>u.jsxs(ty,{ref:s,className:Ie("flex h-9 items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background","placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a),...r,children:[i,u.jsx(H2,{asChild:!0,children:u.jsx(Mv,{className:"h-4 w-4 opacity-50"})})]}));Ui.displayName=ty.displayName;const Hi=g.forwardRef(({className:a,children:i,position:r="popper",...s},f)=>u.jsx(B2,{children:u.jsx(ny,{ref:f,className:Ie("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:r,...s,children:u.jsx(k2,{className:Ie("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i})})}));Hi.displayName=ny.displayName;const V2=g.forwardRef(({className:a,...i},r)=>u.jsx(ly,{ref:r,className:Ie("px-2 py-1.5 text-sm font-semibold",a),...i}));V2.displayName=ly.displayName;const Ot=g.forwardRef(({className:a,children:i,...r},s)=>u.jsxs(ay,{ref:s,className:Ie("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[u.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(q2,{children:u.jsx(rl,{className:"h-4 w-4"})})}),u.jsx(Y2,{children:i})]}));Ot.displayName=ay.displayName;const Pi="/api/admin";async function X2(){try{const a=await fetch(`${Pi}/config`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get admin config:",a)}return null}async function G2(a){try{const i=a?"?baseUrl="+encodeURIComponent(a):"",r=await fetch(Pi+"/public-ip"+i);if(r.ok)return await r.json()}catch(i){console.error("Failed to get public ip check:",i)}return null}async function F2(a){try{return(await fetch(`${Pi}/config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({env:a})})).ok}catch(i){return console.error("Failed to update admin config:",i),!1}}async function K2(){try{return(await fetch(`${Pi}/restart`,{method:"POST"})).ok}catch(a){return console.error("Failed to trigger restart:",a),!1}}async function Q2(){try{const a=await fetch(`${Pi}/ddns`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get ddns status:",a)}return null}const Z2=["XPOD_DEPLOY_MODE","CSS_ROOT_FILE_PATH","CSS_BASE_URL","XPOD_TUNNEL_PROVIDER","CLOUDFLARE_TUNNEL_TOKEN","SAKURA_TUNNEL_TOKEN","XPOD_HTTPS_MODE","XPOD_HTTPS_CERT_PATH","XPOD_HTTPS_KEY_PATH","CSS_PORT","CSS_SPARQL_ENDPOINT","CSS_IDENTITY_DB_URL","CSS_LOGGING_LEVEL","CSS_SHOW_STACK_TRACE"];function P2(){const[a,i]=g.useState({}),[r,s]=g.useState(null),[f,d]=g.useState(null),[h,p]=g.useState(!0),[v,y]=g.useState(!1),[S,b]=g.useState(!1),[C,N]=g.useState(""),[D,w]=g.useState(!1),j=a.XPOD_DEPLOY_MODE==="standalone"?"standalone":"local",R=["none","cloudflare","sakura_frp"].includes(a.XPOD_TUNNEL_PROVIDER)?a.XPOD_TUNNEL_PROVIDER:"none",O=["none","acme","manual"].includes(a.XPOD_HTTPS_MODE)?a.XPOD_HTTPS_MODE:"none",M=r?.status??"unknown",q=j==="local",J=!!a.XPOD_CLOUD_API_ENDPOINT,Y=q&&J;g.useEffect(()=>{le()},[]),g.useEffect(()=>{h||re(a.CSS_BASE_URL)},[a.CSS_BASE_URL,j,h]),g.useEffect(()=>{h||(Y?I():d(null))},[Y,h]);const I=async()=>{try{const L=await Q2();d(L)}catch(L){console.error("Failed to load ddns status:",L),d(null)}},le=async()=>{try{const L=await X2();L&&i({...L.env})}catch(L){console.error("Failed to load config:",L)}finally{p(!1)}},re=async L=>{b(!0);try{const X=await G2(L);s(X)}catch(X){console.error("Failed to refresh public ip check:",X),s(null)}finally{b(!1)}},se=async()=>{if(ae)return N(ae),!1;y(!0),N("");try{const L={};for(const ce of Z2)ce in a&&(L[ce]=a[ce]);const X=await F2(L);return N(X?"配置已保存,需要重启服务生效":"保存失败"),!!X}catch{return N("保存失败"),!1}finally{y(!1)}},W=async()=>{N("正在重启服务..."),await K2()?(N("重启信号已发送,请稍候..."),setTimeout(()=>window.location.reload(),3e3)):N("重启失败")},ne=async()=>{await se()&&await W()},ee=(L,X)=>{i(ce=>({...ce,[L]:X}))},ae=g.useMemo(()=>{if(R==="cloudflare"&&!a.CLOUDFLARE_TUNNEL_TOKEN)return"请填写 Cloudflare Tunnel Token";if(R==="sakura_frp"&&!a.SAKURA_TUNNEL_TOKEN)return"请填写 Sakura Tunnel Token";if(Y&&f?.mode==="tunnel"&&R==="none")return"当前网络不可直连,必须启用隧道(选择供应商并填写 Token)";const X=(a.CSS_BASE_URL||"").trim().startsWith("https://");return!Y&&X&&R==="none"&&O==="none"?"独立部署使用 https:// Base URL 时,需要配置 HTTPS(或启用隧道由边缘终止 TLS)":""},[f?.mode,a.CLOUDFLARE_TUNNEL_TOKEN,a.SAKURA_TUNNEL_TOKEN,a.CSS_BASE_URL,O,Y,j,R]),_=g.useMemo(()=>S?"检测中...":M==="pass"?"✓ 可直连":M==="fail"?"✗ 不可直连":"? 未知",[S,M]);return h?u.jsx("div",{className:"p-8 text-foreground",children:"加载中..."}):u.jsxs("div",{className:"p-8 max-w-4xl",children:[u.jsx("h1",{className:"type-h1 mb-4",children:"设置"}),u.jsxs(zi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"存储目录"})}),u.jsx(Mi,{className:"space-y-2",children:u.jsx(Rn,{value:a.CSS_ROOT_FILE_PATH||"./data",onChange:L=>ee("CSS_ROOT_FILE_PATH",L.target.value)})})]}),u.jsxs(zi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"访问地址"})}),u.jsxs(Mi,{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(So,{value:j,onValueChange:L=>ee("XPOD_DEPLOY_MODE",L),children:[u.jsx(Ui,{className:"w-36 shrink-0",children:u.jsx(wo,{})}),u.jsxs(Hi,{children:[u.jsx(Ot,{value:"local",children:"边缘部署"}),u.jsx(Ot,{value:"standalone",children:"独立部署"})]})]}),Y?u.jsx("span",{className:"text-sm text-muted-foreground flex-1",children:f?.fqdn||"(等待分配)"}):u.jsx(Rn,{className:"flex-1",value:a.CSS_BASE_URL||"http://127.0.0.1:3000",onChange:L=>ee("CSS_BASE_URL",L.target.value),placeholder:"https://your-domain.com"})]}),u.jsx("div",{className:"text-xs text-muted-foreground",children:j==="local"?"边缘部署:接入云端,自动获得域名、身份认证和HTTPS证书,数据保留在本地":"独立部署:完全独立运行,域名、身份认证和证书需自行配置"})]})]}),u.jsxs(zi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{className:"pb-2",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(Di,{children:"隧道供应商"}),u.jsxs("span",{className:"text-sm",children:["外网:",u.jsx("span",{className:Ie("ml-1",M==="pass"?"text-green-600":M==="fail"?"text-red-600":"text-muted-foreground"),children:_})]})]})}),u.jsxs(Mi,{className:"space-y-2",children:[Y&&f?.mode==="tunnel"?u.jsx("div",{className:"text-xs text-destructive",children:"当前网络不可直连,请选择隧道供应商并填写 Token。"}):null,j==="standalone"?u.jsx("div",{className:"text-xs text-muted-foreground",children:"独立部署下仅当没有公网 IP 时才需要隧道,有公网 IP 可不配置。"}):null,u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(So,{value:R,onValueChange:L=>ee("XPOD_TUNNEL_PROVIDER",L),children:[u.jsx(Ui,{className:"w-36 shrink-0",children:u.jsx(wo,{})}),u.jsxs(Hi,{children:[u.jsx(Ot,{value:"none",children:"不使用隧道"}),u.jsx(Ot,{value:"cloudflare",children:"Cloudflare"}),u.jsx(Ot,{value:"sakura_frp",children:"Sakura FRP"})]})]}),R==="cloudflare"&&u.jsx(Rn,{className:"flex-1",placeholder:"Cloudflare Tunnel Token",value:a.CLOUDFLARE_TUNNEL_TOKEN||"",onChange:L=>ee("CLOUDFLARE_TUNNEL_TOKEN",L.target.value)}),R==="sakura_frp"&&u.jsx(Rn,{className:"flex-1",placeholder:"Sakura Tunnel Token",value:a.SAKURA_TUNNEL_TOKEN,onChange:L=>ee("SAKURA_TUNNEL_TOKEN",L.target.value)})]})]})]}),j==="standalone"&&u.jsxs(zi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"https证书"})}),u.jsx(Mi,{children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(So,{value:O,onValueChange:L=>ee("XPOD_HTTPS_MODE",L),children:[u.jsx(Ui,{className:"w-36 shrink-0",children:u.jsx(wo,{})}),u.jsxs(Hi,{children:[u.jsx(Ot,{value:"none",children:"关闭"}),u.jsx(Ot,{value:"acme",children:"自动申请 (ACME)"}),u.jsx(Ot,{value:"manual",children:"手动证书"})]})]}),O==="manual"&&u.jsxs(u.Fragment,{children:[u.jsx(Rn,{className:"flex-1",placeholder:"证书路径 (PEM)",value:a.XPOD_HTTPS_CERT_PATH||"",onChange:L=>ee("XPOD_HTTPS_CERT_PATH",L.target.value)}),u.jsx(Rn,{className:"flex-1",placeholder:"私钥路径 (PEM)",value:a.XPOD_HTTPS_KEY_PATH||"",onChange:L=>ee("XPOD_HTTPS_KEY_PATH",L.target.value)})]})]})})]}),u.jsx("div",{className:"mb-6",children:u.jsx(yu,{variant:"ghost",size:"sm",onClick:()=>w(L=>!L),children:D?"收起高级设置":"展开高级设置"})}),D&&u.jsxs(zi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"高级设置"})}),u.jsxs(Mi,{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx(po,{children:"端口"}),u.jsx(Rn,{value:a.CSS_PORT||"3000",onChange:L=>ee("CSS_PORT",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(po,{children:"SPARQL 存储"}),u.jsx(Rn,{value:a.CSS_SPARQL_ENDPOINT||"",onChange:L=>ee("CSS_SPARQL_ENDPOINT",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(po,{children:"身份数据库"}),u.jsx(Rn,{value:a.CSS_IDENTITY_DB_URL||"",onChange:L=>ee("CSS_IDENTITY_DB_URL",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(po,{children:"日志级别"}),u.jsxs(So,{value:a.CSS_LOGGING_LEVEL||"info",onValueChange:L=>ee("CSS_LOGGING_LEVEL",L),children:[u.jsx(Ui,{className:"w-40 shrink-0",children:u.jsx(wo,{})}),u.jsxs(Hi,{children:[u.jsx(Ot,{value:"error",children:"error"}),u.jsx(Ot,{value:"warn",children:"warn"}),u.jsx(Ot,{value:"info",children:"info"}),u.jsx(Ot,{value:"debug",children:"debug"})]})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("input",{type:"checkbox",id:"showStackTrace",checked:a.CSS_SHOW_STACK_TRACE==="true",onChange:L=>ee("CSS_SHOW_STACK_TRACE",L.target.checked?"true":"false"),className:"rounded border-input"}),u.jsx("label",{htmlFor:"showStackTrace",className:"text-sm text-foreground",children:"显示错误堆栈"})]})]})]}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(yu,{onClick:()=>{se()},disabled:v||!!ae,children:v?"保存中...":"保存配置"}),u.jsx(yu,{variant:"secondary",onClick:()=>{ne()},disabled:v||!!ae,children:"保存并重启"})]}),(C||ae)&&u.jsx("div",{className:Ie("mt-4 text-sm",ae||C&&C.includes("失败")?"text-destructive":"text-green-500"),children:C||ae})]})}function J2(){const{isInitializing:a,initError:i}=It();return a?u.jsx(kv,{}):i?u.jsx(W1,{message:i}):u.jsxs(Db,{children:[u.jsx(Rt,{path:"/.account/",element:u.jsx(iS,{})}),u.jsx(Rt,{path:"/.account/about/",element:u.jsx(cS,{})}),u.jsx(Rt,{path:"/.account/account/",element:u.jsx(Op,{allowOidcPending:!0,children:u.jsx(oS,{})})}),u.jsx(Rt,{path:"/.account/settings/",element:u.jsx(Op,{allowOidcPending:!0,children:u.jsx(P2,{})})}),u.jsx(Rt,{path:"/chat/",element:u.jsx(yS,{})}),u.jsx(Rt,{path:"/.account/login/",element:u.jsx(fS,{})}),u.jsx(Rt,{path:"/.account/login/password/",element:u.jsx(Du,{initialIsRegister:!1})}),u.jsx(Rt,{path:"/.account/login/password/register/",element:u.jsx(Du,{initialIsRegister:!0})}),u.jsx(Rt,{path:"/.account/login/password/forgot/",element:u.jsx(sS,{})}),u.jsx(Rt,{path:"/.account/login/password/reset/",element:u.jsx(uS,{})}),u.jsx(Rt,{path:"/.account/oidc/consent/",element:u.jsx(rS,{})}),u.jsx(Rt,{path:"*",element:u.jsx(_n,{to:"/.account/",replace:!0})})]})}function W2(){return u.jsx(a1,{children:u.jsx(v1,{children:u.jsx(J2,{})})})}try{const a=new URLSearchParams(location.search).get("provisionCode");a&&sessionStorage.setItem("provisionCode",a)}catch{}Ux.createRoot(document.getElementById("root")).render(u.jsx(Pt.StrictMode,{children:u.jsx(W2,{})}));
51
+ `)},r2=0,Ea=[];function s2(a){var i=g.useRef([]),o=g.useRef([0,0]),s=g.useRef(),f=g.useState(r2++)[0],d=g.useState(jg)[0],h=g.useRef(a);g.useEffect(function(){h.current=a},[a]),g.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(f));var w=zE([a.lockRef.current],(a.shards||[]).map(uv),!0).filter(Boolean);return w.forEach(function(j){return j.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),w.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(f))})}}},[a.inert,a.lockRef.current,a.shards]);var p=g.useCallback(function(w,j){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!h.current.allowPinchZoom;var z=xo(w),R=o.current,M="deltaX"in w?w.deltaX:R[0]-z[0],Y="deltaY"in w?w.deltaY:R[1]-z[1],Z,J=w.target,q=Math.abs(M)>Math.abs(Y)?"h":"v";if("touches"in w&&q==="h"&&J.type==="range")return!1;var W=window.getSelection(),ne=W&&W.anchorNode,ce=ne?ne===J||ne.contains(J):!1;if(ce)return!1;var oe=rv(q,J);if(!oe)return!0;if(oe?Z=q:(Z=q==="v"?"h":"v",oe=rv(q,J)),!oe)return!1;if(!s.current&&"changedTouches"in w&&(M||Y)&&(s.current=Z),!Z)return!0;var P=s.current||Z;return i2(P,j,w,P==="h"?M:Y)},[]),v=g.useCallback(function(w){var j=w;if(!(!Ea.length||Ea[Ea.length-1]!==d)){var z="deltaY"in j?sv(j):xo(j),R=i.current.filter(function(Z){return Z.name===j.type&&(Z.target===j.target||j.target===Z.shadowParent)&&c2(Z.delta,z)})[0];if(R&&R.should){j.cancelable&&j.preventDefault();return}if(!R){var M=(h.current.shards||[]).map(uv).filter(Boolean).filter(function(Z){return Z.contains(j.target)}),Y=M.length>0?p(j,M[0]):!h.current.noIsolation;Y&&j.cancelable&&j.preventDefault()}}},[]),y=g.useCallback(function(w,j,z,R){var M={name:w,delta:j,target:z,should:R,shadowParent:u2(z)};i.current.push(M),setTimeout(function(){i.current=i.current.filter(function(Y){return Y!==M})},1)},[]),S=g.useCallback(function(w){o.current=xo(w),s.current=void 0},[]),b=g.useCallback(function(w){y(w.type,sv(w),w.target,p(w,a.lockRef.current))},[]),C=g.useCallback(function(w){y(w.type,xo(w),w.target,p(w,a.lockRef.current))},[]);g.useEffect(function(){return Ea.push(d),a.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",v,wa),document.addEventListener("touchmove",v,wa),document.addEventListener("touchstart",S,wa),function(){Ea=Ea.filter(function(w){return w!==d}),document.removeEventListener("wheel",v,wa),document.removeEventListener("touchmove",v,wa),document.removeEventListener("touchstart",S,wa)}},[]);var N=a.removeScrollBar,D=a.inert;return g.createElement(g.Fragment,null,D?g.createElement(d,{styles:o2(f)}):null,N?g.createElement($E,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function u2(a){for(var i=null;a!==null;)a instanceof ShadowRoot&&(i=a.host,a=a.host),a=a.parentNode;return i}const f2=kE(Ng,s2);var zg=g.forwardRef(function(a,i){return g.createElement(Vo,ln({},a,{ref:i,sideCar:f2}))});zg.classNames=Vo.classNames;var d2=[" ","Enter","ArrowUp","ArrowDown"],h2=[" ","Enter"],Ll="Select",[Xo,Go,m2]=j1(Ll),[Ma]=ef(Ll,[m2,fg]),Fo=fg(),[p2,fl]=Ma(Ll),[v2,g2]=Ma(Ll),Og=a=>{const{__scopeSelect:i,children:o,open:s,defaultOpen:f,onOpenChange:d,value:h,defaultValue:p,onValueChange:v,dir:y,name:S,autoComplete:b,disabled:C,required:N,form:D}=a,w=Fo(i),[j,z]=g.useState(null),[R,M]=g.useState(null),[Y,Z]=g.useState(!1),J=A1(y),[q,W]=iv({prop:s,defaultProp:f??!1,onChange:d,caller:Ll}),[ne,ce]=iv({prop:h,defaultProp:p,onChange:v,caller:Ll}),oe=g.useRef(null),P=j?D||!!j.closest("form"):!0,[te,I]=g.useState(new Set),re=Array.from(te).map(_=>_.props.value).join(";");return u.jsx(pE,{...w,children:u.jsxs(p2,{required:N,scope:i,trigger:j,onTriggerChange:z,valueNode:R,onValueNodeChange:M,valueNodeHasChildren:Y,onValueNodeHasChildrenChange:Z,contentId:tf(),value:ne,onValueChange:ce,open:q,onOpenChange:W,dir:J,triggerPointerDownPosRef:oe,disabled:C,children:[u.jsx(Xo.Provider,{scope:i,children:u.jsx(v2,{scope:a.__scopeSelect,onNativeOptionAdd:g.useCallback(_=>{I(L=>new Set(L).add(_))},[]),onNativeOptionRemove:g.useCallback(_=>{I(L=>{const K=new Set(L);return K.delete(_),K})},[]),children:o})}),P?u.jsxs($g,{"aria-hidden":!0,required:N,tabIndex:-1,name:S,autoComplete:b,value:ne,onChange:_=>ce(_.target.value),disabled:C,form:D,children:[ne===void 0?u.jsx("option",{value:""}):null,Array.from(te)]},re):null]})})};Og.displayName=Ll;var _g="SelectTrigger",Dg=g.forwardRef((a,i)=>{const{__scopeSelect:o,disabled:s=!1,...f}=a,d=Fo(o),h=fl(_g,o),p=h.disabled||s,v=ct(i,h.onTriggerChange),y=Go(o),S=g.useRef("touch"),[b,C,N]=ey(w=>{const j=y().filter(M=>!M.disabled),z=j.find(M=>M.value===h.value),R=ty(j,w,z);R!==void 0&&h.onValueChange(R.value)}),D=w=>{p||(h.onOpenChange(!0),N()),w&&(h.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return u.jsx(vE,{asChild:!0,...d,children:u.jsx(Fe.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":Ig(h.value)?"":void 0,...f,ref:v,onClick:Je(f.onClick,w=>{w.currentTarget.focus(),S.current!=="mouse"&&D(w)}),onPointerDown:Je(f.onPointerDown,w=>{S.current=w.pointerType;const j=w.target;j.hasPointerCapture(w.pointerId)&&j.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(D(w),w.preventDefault())}),onKeyDown:Je(f.onKeyDown,w=>{const j=b.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&C(w.key),!(j&&w.key===" ")&&d2.includes(w.key)&&(D(),w.preventDefault())})})})});Dg.displayName=_g;var Mg="SelectValue",Lg=g.forwardRef((a,i)=>{const{__scopeSelect:o,className:s,style:f,children:d,placeholder:h="",...p}=a,v=fl(Mg,o),{onValueNodeHasChildrenChange:y}=v,S=d!==void 0,b=ct(i,v.onValueNodeChange);return yt(()=>{y(S)},[y,S]),u.jsx(Fe.span,{...p,ref:b,style:{pointerEvents:"none"},children:Ig(v.value)?u.jsx(u.Fragment,{children:h}):d})});Lg.displayName=Mg;var y2="SelectIcon",Ug=g.forwardRef((a,i)=>{const{__scopeSelect:o,children:s,...f}=a;return u.jsx(Fe.span,{"aria-hidden":!0,...f,ref:i,children:s||"▼"})});Ug.displayName=y2;var x2="SelectPortal",Hg=a=>u.jsx(bg,{asChild:!0,...a});Hg.displayName=x2;var Ul="SelectContent",Bg=g.forwardRef((a,i)=>{const o=fl(Ul,a.__scopeSelect),[s,f]=g.useState();if(yt(()=>{f(new DocumentFragment)},[]),!o.open){const d=s;return d?Gi.createPortal(u.jsx(kg,{scope:a.__scopeSelect,children:u.jsx(Xo.Slot,{scope:a.__scopeSelect,children:u.jsx("div",{children:a.children})})}),d):null}return u.jsx(Yg,{...a,ref:i})});Bg.displayName=Ul;var Zt=10,[kg,dl]=Ma(Ul),b2="SelectContentImpl",S2=Ro("SelectContent.RemoveScroll"),Yg=g.forwardRef((a,i)=>{const{__scopeSelect:o,position:s="item-aligned",onCloseAutoFocus:f,onEscapeKeyDown:d,onPointerDownOutside:h,side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:N,sticky:D,hideWhenDetached:w,avoidCollisions:j,...z}=a,R=fl(Ul,o),[M,Y]=g.useState(null),[Z,J]=g.useState(null),q=ct(i,V=>Y(V)),[W,ne]=g.useState(null),[ce,oe]=g.useState(null),P=Go(o),[te,I]=g.useState(!1),re=g.useRef(!1);g.useEffect(()=>{if(M)return RE(M)},[M]),k1();const _=g.useCallback(V=>{const[se,...fe]=P().map(He=>He.ref.current),[Ee]=fe.slice(-1),Ae=document.activeElement;for(const He of V)if(He===Ae||(He?.scrollIntoView({block:"nearest"}),He===se&&Z&&(Z.scrollTop=0),He===Ee&&Z&&(Z.scrollTop=Z.scrollHeight),He?.focus(),document.activeElement!==Ae))return},[P,Z]),L=g.useCallback(()=>_([W,M]),[_,W,M]);g.useEffect(()=>{te&&L()},[te,L]);const{onOpenChange:K,triggerPointerDownPosRef:le}=R;g.useEffect(()=>{if(M){let V={x:0,y:0};const se=Ee=>{V={x:Math.abs(Math.round(Ee.pageX)-(le.current?.x??0)),y:Math.abs(Math.round(Ee.pageY)-(le.current?.y??0))}},fe=Ee=>{V.x<=10&&V.y<=10?Ee.preventDefault():M.contains(Ee.target)||K(!1),document.removeEventListener("pointermove",se),le.current=null};return le.current!==null&&(document.addEventListener("pointermove",se),document.addEventListener("pointerup",fe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",se),document.removeEventListener("pointerup",fe,{capture:!0})}}},[M,K,le]),g.useEffect(()=>{const V=()=>K(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[K]);const[pe,T]=ey(V=>{const se=P().filter(Ae=>!Ae.disabled),fe=se.find(Ae=>Ae.ref.current===document.activeElement),Ee=ty(se,V,fe);Ee&&setTimeout(()=>Ee.ref.current.focus())}),G=g.useCallback((V,se,fe)=>{const Ee=!re.current&&!fe;(R.value!==void 0&&R.value===se||Ee)&&(ne(V),Ee&&(re.current=!0))},[R.value]),$=g.useCallback(()=>M?.focus(),[M]),ee=g.useCallback((V,se,fe)=>{const Ee=!re.current&&!fe;(R.value!==void 0&&R.value===se||Ee)&&oe(V)},[R.value]),de=s==="popper"?qu:qg,me=de===qu?{side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:N,sticky:D,hideWhenDetached:w,avoidCollisions:j}:{};return u.jsx(kg,{scope:o,content:M,viewport:Z,onViewportChange:J,itemRefCallback:G,selectedItem:W,onItemLeave:$,itemTextRefCallback:ee,focusSelectedItem:L,selectedItemText:ce,position:s,isPositioned:te,searchRef:pe,children:u.jsx(zg,{as:S2,allowPinchZoom:!0,children:u.jsx(Jv,{asChild:!0,trapped:R.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:Je(f,V=>{R.trigger?.focus({preventScroll:!0}),V.preventDefault()}),children:u.jsx(Zv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:u.jsx(de,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:V=>V.preventDefault(),...z,...me,onPlaced:()=>I(!0),ref:q,style:{display:"flex",flexDirection:"column",outline:"none",...z.style},onKeyDown:Je(z.onKeyDown,V=>{const se=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!se&&V.key.length===1&&T(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let Ee=P().filter(Ae=>!Ae.disabled).map(Ae=>Ae.ref.current);if(["ArrowUp","End"].includes(V.key)&&(Ee=Ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const Ae=V.target,He=Ee.indexOf(Ae);Ee=Ee.slice(He+1)}setTimeout(()=>_(Ee)),V.preventDefault()}})})})})})})});Yg.displayName=b2;var w2="SelectItemAlignedPosition",qg=g.forwardRef((a,i)=>{const{__scopeSelect:o,onPlaced:s,...f}=a,d=fl(Ul,o),h=dl(Ul,o),[p,v]=g.useState(null),[y,S]=g.useState(null),b=ct(i,q=>S(q)),C=Go(o),N=g.useRef(!1),D=g.useRef(!0),{viewport:w,selectedItem:j,selectedItemText:z,focusSelectedItem:R}=h,M=g.useCallback(()=>{if(d.trigger&&d.valueNode&&p&&y&&w&&j&&z){const q=d.trigger.getBoundingClientRect(),W=y.getBoundingClientRect(),ne=d.valueNode.getBoundingClientRect(),ce=z.getBoundingClientRect();if(d.dir!=="rtl"){const Ae=ce.left-W.left,He=ne.left-Ae,rt=q.left-He,st=q.width+rt,hl=Math.max(st,W.width),ml=window.innerWidth-Zt,La=kp(He,[Zt,Math.max(Zt,ml-hl)]);p.style.minWidth=st+"px",p.style.left=La+"px"}else{const Ae=W.right-ce.right,He=window.innerWidth-ne.right-Ae,rt=window.innerWidth-q.right-He,st=q.width+rt,hl=Math.max(st,W.width),ml=window.innerWidth-Zt,La=kp(He,[Zt,Math.max(Zt,ml-hl)]);p.style.minWidth=st+"px",p.style.right=La+"px"}const oe=C(),P=window.innerHeight-Zt*2,te=w.scrollHeight,I=window.getComputedStyle(y),re=parseInt(I.borderTopWidth,10),_=parseInt(I.paddingTop,10),L=parseInt(I.borderBottomWidth,10),K=parseInt(I.paddingBottom,10),le=re+_+te+K+L,pe=Math.min(j.offsetHeight*5,le),T=window.getComputedStyle(w),G=parseInt(T.paddingTop,10),$=parseInt(T.paddingBottom,10),ee=q.top+q.height/2-Zt,de=P-ee,me=j.offsetHeight/2,V=j.offsetTop+me,se=re+_+V,fe=le-se;if(se<=ee){const Ae=oe.length>0&&j===oe[oe.length-1].ref.current;p.style.bottom="0px";const He=y.clientHeight-w.offsetTop-w.offsetHeight,rt=Math.max(de,me+(Ae?$:0)+He+L),st=se+rt;p.style.height=st+"px"}else{const Ae=oe.length>0&&j===oe[0].ref.current;p.style.top="0px";const rt=Math.max(ee,re+w.offsetTop+(Ae?G:0)+me)+fe;p.style.height=rt+"px",w.scrollTop=se-ee+w.offsetTop}p.style.margin=`${Zt}px 0`,p.style.minHeight=pe+"px",p.style.maxHeight=P+"px",s?.(),requestAnimationFrame(()=>N.current=!0)}},[C,d.trigger,d.valueNode,p,y,w,j,z,d.dir,s]);yt(()=>M(),[M]);const[Y,Z]=g.useState();yt(()=>{y&&Z(window.getComputedStyle(y).zIndex)},[y]);const J=g.useCallback(q=>{q&&D.current===!0&&(M(),R?.(),D.current=!1)},[M,R]);return u.jsx(C2,{scope:o,contentWrapper:p,shouldExpandOnScrollRef:N,onScrollButtonChange:J,children:u.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:Y},children:u.jsx(Fe.div,{...f,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...f.style}})})})});qg.displayName=w2;var E2="SelectPopperPosition",qu=g.forwardRef((a,i)=>{const{__scopeSelect:o,align:s="start",collisionPadding:f=Zt,...d}=a,h=Fo(o);return u.jsx(gE,{...h,...d,ref:i,align:s,collisionPadding:f,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});qu.displayName=E2;var[C2,ff]=Ma(Ul,{}),Vu="SelectViewport",Vg=g.forwardRef((a,i)=>{const{__scopeSelect:o,nonce:s,...f}=a,d=dl(Vu,o),h=ff(Vu,o),p=ct(i,d.onViewportChange),v=g.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),u.jsx(Xo.Slot,{scope:o,children:u.jsx(Fe.div,{"data-radix-select-viewport":"",role:"presentation",...f,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...f.style},onScroll:Je(f.onScroll,y=>{const S=y.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:C}=h;if(C?.current&&b){const N=Math.abs(v.current-S.scrollTop);if(N>0){const D=window.innerHeight-Zt*2,w=parseFloat(b.style.minHeight),j=parseFloat(b.style.height),z=Math.max(w,j);if(z<D){const R=z+N,M=Math.min(D,R),Y=R-M;b.style.height=M+"px",b.style.bottom==="0px"&&(S.scrollTop=Y>0?Y:0,b.style.justifyContent="flex-end")}}}v.current=S.scrollTop})})})]})});Vg.displayName=Vu;var Xg="SelectGroup",[N2,j2]=Ma(Xg),T2=g.forwardRef((a,i)=>{const{__scopeSelect:o,...s}=a,f=tf();return u.jsx(N2,{scope:o,id:f,children:u.jsx(Fe.div,{role:"group","aria-labelledby":f,...s,ref:i})})});T2.displayName=Xg;var Gg="SelectLabel",Fg=g.forwardRef((a,i)=>{const{__scopeSelect:o,...s}=a,f=j2(Gg,o);return u.jsx(Fe.div,{id:f.id,...s,ref:i})});Fg.displayName=Gg;var Mo="SelectItem",[A2,Kg]=Ma(Mo),Qg=g.forwardRef((a,i)=>{const{__scopeSelect:o,value:s,disabled:f=!1,textValue:d,...h}=a,p=fl(Mo,o),v=dl(Mo,o),y=p.value===s,[S,b]=g.useState(d??""),[C,N]=g.useState(!1),D=ct(i,R=>v.itemRefCallback?.(R,s,f)),w=tf(),j=g.useRef("touch"),z=()=>{f||(p.onValueChange(s),p.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(A2,{scope:o,value:s,disabled:f,textId:w,isSelected:y,onItemTextChange:g.useCallback(R=>{b(M=>M||(R?.textContent??"").trim())},[]),children:u.jsx(Xo.ItemSlot,{scope:o,value:s,disabled:f,textValue:S,children:u.jsx(Fe.div,{role:"option","aria-labelledby":w,"data-highlighted":C?"":void 0,"aria-selected":y&&C,"data-state":y?"checked":"unchecked","aria-disabled":f||void 0,"data-disabled":f?"":void 0,tabIndex:f?void 0:-1,...h,ref:D,onFocus:Je(h.onFocus,()=>N(!0)),onBlur:Je(h.onBlur,()=>N(!1)),onClick:Je(h.onClick,()=>{j.current!=="mouse"&&z()}),onPointerUp:Je(h.onPointerUp,()=>{j.current==="mouse"&&z()}),onPointerDown:Je(h.onPointerDown,R=>{j.current=R.pointerType}),onPointerMove:Je(h.onPointerMove,R=>{j.current=R.pointerType,f?v.onItemLeave?.():j.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(h.onPointerLeave,R=>{R.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:Je(h.onKeyDown,R=>{v.searchRef?.current!==""&&R.key===" "||(h2.includes(R.key)&&z(),R.key===" "&&R.preventDefault())})})})})});Qg.displayName=Mo;var Li="SelectItemText",Zg=g.forwardRef((a,i)=>{const{__scopeSelect:o,className:s,style:f,...d}=a,h=fl(Li,o),p=dl(Li,o),v=Kg(Li,o),y=g2(Li,o),[S,b]=g.useState(null),C=ct(i,z=>b(z),v.onItemTextChange,z=>p.itemTextRefCallback?.(z,v.value,v.disabled)),N=S?.textContent,D=g.useMemo(()=>u.jsx("option",{value:v.value,disabled:v.disabled,children:N},v.value),[v.disabled,v.value,N]),{onNativeOptionAdd:w,onNativeOptionRemove:j}=y;return yt(()=>(w(D),()=>j(D)),[w,j,D]),u.jsxs(u.Fragment,{children:[u.jsx(Fe.span,{id:v.textId,...d,ref:C}),v.isSelected&&h.valueNode&&!h.valueNodeHasChildren?Gi.createPortal(d.children,h.valueNode):null]})});Zg.displayName=Li;var Pg="SelectItemIndicator",Jg=g.forwardRef((a,i)=>{const{__scopeSelect:o,...s}=a;return Kg(Pg,o).isSelected?u.jsx(Fe.span,{"aria-hidden":!0,...s,ref:i}):null});Jg.displayName=Pg;var Xu="SelectScrollUpButton",R2=g.forwardRef((a,i)=>{const o=dl(Xu,a.__scopeSelect),s=ff(Xu,a.__scopeSelect),[f,d]=g.useState(!1),h=ct(i,s.onScrollButtonChange);return yt(()=>{if(o.viewport&&o.isPositioned){let p=function(){const y=v.scrollTop>0;d(y)};const v=o.viewport;return p(),v.addEventListener("scroll",p),()=>v.removeEventListener("scroll",p)}},[o.viewport,o.isPositioned]),f?u.jsx(Wg,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=o;p&&v&&(p.scrollTop=p.scrollTop-v.offsetHeight)}}):null});R2.displayName=Xu;var Gu="SelectScrollDownButton",z2=g.forwardRef((a,i)=>{const o=dl(Gu,a.__scopeSelect),s=ff(Gu,a.__scopeSelect),[f,d]=g.useState(!1),h=ct(i,s.onScrollButtonChange);return yt(()=>{if(o.viewport&&o.isPositioned){let p=function(){const y=v.scrollHeight-v.clientHeight,S=Math.ceil(v.scrollTop)<y;d(S)};const v=o.viewport;return p(),v.addEventListener("scroll",p),()=>v.removeEventListener("scroll",p)}},[o.viewport,o.isPositioned]),f?u.jsx(Wg,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=o;p&&v&&(p.scrollTop=p.scrollTop+v.offsetHeight)}}):null});z2.displayName=Gu;var Wg=g.forwardRef((a,i)=>{const{__scopeSelect:o,onAutoScroll:s,...f}=a,d=dl("SelectScrollButton",o),h=g.useRef(null),p=Go(o),v=g.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),yt(()=>{p().find(S=>S.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),u.jsx(Fe.div,{"aria-hidden":!0,...f,ref:i,style:{flexShrink:0,...f.style},onPointerDown:Je(f.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(s,50))}),onPointerMove:Je(f.onPointerMove,()=>{d.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(s,50))}),onPointerLeave:Je(f.onPointerLeave,()=>{v()})})}),O2="SelectSeparator",_2=g.forwardRef((a,i)=>{const{__scopeSelect:o,...s}=a;return u.jsx(Fe.div,{"aria-hidden":!0,...s,ref:i})});_2.displayName=O2;var Fu="SelectArrow",D2=g.forwardRef((a,i)=>{const{__scopeSelect:o,...s}=a,f=Fo(o),d=fl(Fu,o),h=dl(Fu,o);return d.open&&h.position==="popper"?u.jsx(yE,{...f,...s,ref:i}):null});D2.displayName=Fu;var M2="SelectBubbleInput",$g=g.forwardRef(({__scopeSelect:a,value:i,...o},s)=>{const f=g.useRef(null),d=ct(s,f),h=EE(i);return g.useEffect(()=>{const p=f.current;if(!p)return;const v=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(v,"value").set;if(h!==i&&S){const b=new Event("change",{bubbles:!0});S.call(p,i),p.dispatchEvent(b)}},[h,i]),u.jsx(Fe.select,{...o,style:{...Sg,...o.style},ref:d,defaultValue:i})});$g.displayName=M2;function Ig(a){return a===""||a===void 0}function ey(a){const i=Dl(a),o=g.useRef(""),s=g.useRef(0),f=g.useCallback(h=>{const p=o.current+h;i(p),(function v(y){o.current=y,window.clearTimeout(s.current),y!==""&&(s.current=window.setTimeout(()=>v(""),1e3))})(p)},[i]),d=g.useCallback(()=>{o.current="",window.clearTimeout(s.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(s.current),[]),[o,f,d]}function ty(a,i,o){const f=i.length>1&&Array.from(i).every(y=>y===i[0])?i[0]:i,d=o?a.indexOf(o):-1;let h=L2(a,Math.max(d,0));f.length===1&&(h=h.filter(y=>y!==o));const v=h.find(y=>y.textValue.toLowerCase().startsWith(f.toLowerCase()));return v!==o?v:void 0}function L2(a,i){return a.map((o,s)=>a[(i+s)%a.length])}var U2=Og,ny=Dg,H2=Lg,B2=Ug,k2=Hg,ly=Bg,Y2=Vg,ay=Fg,iy=Qg,q2=Zg,V2=Jg;const bo=U2,So=H2,Ui=g.forwardRef(({className:a,children:i,...o},s)=>u.jsxs(ny,{ref:s,className:$e("flex h-9 items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background","placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a),...o,children:[i,u.jsx(B2,{asChild:!0,children:u.jsx(Lv,{className:"h-4 w-4 opacity-50"})})]}));Ui.displayName=ny.displayName;const Hi=g.forwardRef(({className:a,children:i,position:o="popper",...s},f)=>u.jsx(k2,{children:u.jsx(ly,{ref:f,className:$e("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:o,...s,children:u.jsx(Y2,{className:$e("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i})})}));Hi.displayName=ly.displayName;const X2=g.forwardRef(({className:a,...i},o)=>u.jsx(ay,{ref:o,className:$e("px-2 py-1.5 text-sm font-semibold",a),...i}));X2.displayName=ay.displayName;const zt=g.forwardRef(({className:a,children:i,...o},s)=>u.jsxs(iy,{ref:s,className:$e("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...o,children:[u.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(V2,{children:u.jsx(zn,{className:"h-4 w-4"})})}),u.jsx(q2,{children:i})]}));zt.displayName=iy.displayName;const Qi="/api/admin";async function G2(){try{const a=await fetch(`${Qi}/config`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get admin config:",a)}return null}async function F2(a){try{const i=a?"?baseUrl="+encodeURIComponent(a):"",o=await fetch(Qi+"/public-ip"+i);if(o.ok)return await o.json()}catch(i){console.error("Failed to get public ip check:",i)}return null}async function K2(a){try{return(await fetch(`${Qi}/config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({env:a})})).ok}catch(i){return console.error("Failed to update admin config:",i),!1}}async function Q2(){try{return(await fetch(`${Qi}/restart`,{method:"POST"})).ok}catch(a){return console.error("Failed to trigger restart:",a),!1}}async function Z2(){try{const a=await fetch(`${Qi}/ddns`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get ddns status:",a)}return null}const P2=["XPOD_DEPLOY_MODE","CSS_ROOT_FILE_PATH","CSS_BASE_URL","XPOD_TUNNEL_PROVIDER","CLOUDFLARE_TUNNEL_TOKEN","SAKURA_TUNNEL_TOKEN","XPOD_HTTPS_MODE","XPOD_HTTPS_CERT_PATH","XPOD_HTTPS_KEY_PATH","CSS_PORT","CSS_SPARQL_ENDPOINT","CSS_IDENTITY_DB_URL","CSS_LOGGING_LEVEL","CSS_SHOW_STACK_TRACE"];function J2(){const[a,i]=g.useState({}),[o,s]=g.useState(null),[f,d]=g.useState(null),[h,p]=g.useState(!0),[v,y]=g.useState(!1),[S,b]=g.useState(!1),[C,N]=g.useState(""),[D,w]=g.useState(!1),j=a.XPOD_DEPLOY_MODE==="standalone"?"standalone":"local",z=["none","cloudflare","sakura_frp"].includes(a.XPOD_TUNNEL_PROVIDER)?a.XPOD_TUNNEL_PROVIDER:"none",R=["none","acme","manual"].includes(a.XPOD_HTTPS_MODE)?a.XPOD_HTTPS_MODE:"none",M=o?.status??"unknown",Y=j==="local",J=!!a.XPOD_CLOUD_API_ENDPOINT,q=Y&&J;g.useEffect(()=>{ne()},[]),g.useEffect(()=>{h||ce(a.CSS_BASE_URL)},[a.CSS_BASE_URL,j,h]),g.useEffect(()=>{h||(q?W():d(null))},[q,h]);const W=async()=>{try{const L=await Z2();d(L)}catch(L){console.error("Failed to load ddns status:",L),d(null)}},ne=async()=>{try{const L=await G2();L&&i({...L.env})}catch(L){console.error("Failed to load config:",L)}finally{p(!1)}},ce=async L=>{b(!0);try{const K=await F2(L);s(K)}catch(K){console.error("Failed to refresh public ip check:",K),s(null)}finally{b(!1)}},oe=async()=>{if(re)return N(re),!1;y(!0),N("");try{const L={};for(const le of P2)le in a&&(L[le]=a[le]);const K=await K2(L);return N(K?"配置已保存,需要重启服务生效":"保存失败"),!!K}catch{return N("保存失败"),!1}finally{y(!1)}},P=async()=>{N("正在重启服务..."),await Q2()?(N("重启信号已发送,请稍候..."),setTimeout(()=>window.location.reload(),3e3)):N("重启失败")},te=async()=>{await oe()&&await P()},I=(L,K)=>{i(le=>({...le,[L]:K}))},re=g.useMemo(()=>{if(z==="cloudflare"&&!a.CLOUDFLARE_TUNNEL_TOKEN)return"请填写 Cloudflare Tunnel Token";if(z==="sakura_frp"&&!a.SAKURA_TUNNEL_TOKEN)return"请填写 Sakura Tunnel Token";if(q&&f?.mode==="tunnel"&&z==="none")return"当前网络不可直连,必须启用隧道(选择供应商并填写 Token)";const K=(a.CSS_BASE_URL||"").trim().startsWith("https://");return!q&&K&&z==="none"&&R==="none"?"独立部署使用 https:// Base URL 时,需要配置 HTTPS(或启用隧道由边缘终止 TLS)":""},[f?.mode,a.CLOUDFLARE_TUNNEL_TOKEN,a.SAKURA_TUNNEL_TOKEN,a.CSS_BASE_URL,R,q,j,z]),_=g.useMemo(()=>S?"检测中...":M==="pass"?"✓ 可直连":M==="fail"?"✗ 不可直连":"? 未知",[S,M]);return h?u.jsx("div",{className:"p-8 text-foreground",children:"加载中..."}):u.jsxs("div",{className:"p-8 max-w-4xl",children:[u.jsx("h1",{className:"type-h1 mb-4",children:"设置"}),u.jsxs(Oi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"存储目录"})}),u.jsx(Mi,{className:"space-y-2",children:u.jsx(Rn,{value:a.CSS_ROOT_FILE_PATH||"./data",onChange:L=>I("CSS_ROOT_FILE_PATH",L.target.value)})})]}),u.jsxs(Oi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"访问地址"})}),u.jsxs(Mi,{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(bo,{value:j,onValueChange:L=>I("XPOD_DEPLOY_MODE",L),children:[u.jsx(Ui,{className:"w-36 shrink-0",children:u.jsx(So,{})}),u.jsxs(Hi,{children:[u.jsx(zt,{value:"local",children:"边缘部署"}),u.jsx(zt,{value:"standalone",children:"独立部署"})]})]}),q?u.jsx("span",{className:"text-sm text-muted-foreground flex-1",children:f?.fqdn||"(等待分配)"}):u.jsx(Rn,{className:"flex-1",value:a.CSS_BASE_URL||"http://127.0.0.1:3000",onChange:L=>I("CSS_BASE_URL",L.target.value),placeholder:"https://your-domain.com"})]}),u.jsx("div",{className:"text-xs text-muted-foreground",children:j==="local"?"边缘部署:接入云端,自动获得域名、身份认证和HTTPS证书,数据保留在本地":"独立部署:完全独立运行,域名、身份认证和证书需自行配置"})]})]}),u.jsxs(Oi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{className:"pb-2",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(Di,{children:"隧道供应商"}),u.jsxs("span",{className:"text-sm",children:["外网:",u.jsx("span",{className:$e("ml-1",M==="pass"?"text-green-600":M==="fail"?"text-red-600":"text-muted-foreground"),children:_})]})]})}),u.jsxs(Mi,{className:"space-y-2",children:[q&&f?.mode==="tunnel"?u.jsx("div",{className:"text-xs text-destructive",children:"当前网络不可直连,请选择隧道供应商并填写 Token。"}):null,j==="standalone"?u.jsx("div",{className:"text-xs text-muted-foreground",children:"独立部署下仅当没有公网 IP 时才需要隧道,有公网 IP 可不配置。"}):null,u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(bo,{value:z,onValueChange:L=>I("XPOD_TUNNEL_PROVIDER",L),children:[u.jsx(Ui,{className:"w-36 shrink-0",children:u.jsx(So,{})}),u.jsxs(Hi,{children:[u.jsx(zt,{value:"none",children:"不使用隧道"}),u.jsx(zt,{value:"cloudflare",children:"Cloudflare"}),u.jsx(zt,{value:"sakura_frp",children:"Sakura FRP"})]})]}),z==="cloudflare"&&u.jsx(Rn,{className:"flex-1",placeholder:"Cloudflare Tunnel Token",value:a.CLOUDFLARE_TUNNEL_TOKEN||"",onChange:L=>I("CLOUDFLARE_TUNNEL_TOKEN",L.target.value)}),z==="sakura_frp"&&u.jsx(Rn,{className:"flex-1",placeholder:"Sakura Tunnel Token",value:a.SAKURA_TUNNEL_TOKEN,onChange:L=>I("SAKURA_TUNNEL_TOKEN",L.target.value)})]})]})]}),j==="standalone"&&u.jsxs(Oi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"https证书"})}),u.jsx(Mi,{children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(bo,{value:R,onValueChange:L=>I("XPOD_HTTPS_MODE",L),children:[u.jsx(Ui,{className:"w-36 shrink-0",children:u.jsx(So,{})}),u.jsxs(Hi,{children:[u.jsx(zt,{value:"none",children:"关闭"}),u.jsx(zt,{value:"acme",children:"自动申请 (ACME)"}),u.jsx(zt,{value:"manual",children:"手动证书"})]})]}),R==="manual"&&u.jsxs(u.Fragment,{children:[u.jsx(Rn,{className:"flex-1",placeholder:"证书路径 (PEM)",value:a.XPOD_HTTPS_CERT_PATH||"",onChange:L=>I("XPOD_HTTPS_CERT_PATH",L.target.value)}),u.jsx(Rn,{className:"flex-1",placeholder:"私钥路径 (PEM)",value:a.XPOD_HTTPS_KEY_PATH||"",onChange:L=>I("XPOD_HTTPS_KEY_PATH",L.target.value)})]})]})})]}),u.jsx("div",{className:"mb-6",children:u.jsx(xu,{variant:"ghost",size:"sm",onClick:()=>w(L=>!L),children:D?"收起高级设置":"展开高级设置"})}),D&&u.jsxs(Oi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"高级设置"})}),u.jsxs(Mi,{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx(mo,{children:"端口"}),u.jsx(Rn,{value:a.CSS_PORT||"3000",onChange:L=>I("CSS_PORT",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(mo,{children:"SPARQL 存储"}),u.jsx(Rn,{value:a.CSS_SPARQL_ENDPOINT||"",onChange:L=>I("CSS_SPARQL_ENDPOINT",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(mo,{children:"身份数据库"}),u.jsx(Rn,{value:a.CSS_IDENTITY_DB_URL||"",onChange:L=>I("CSS_IDENTITY_DB_URL",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(mo,{children:"日志级别"}),u.jsxs(bo,{value:a.CSS_LOGGING_LEVEL||"info",onValueChange:L=>I("CSS_LOGGING_LEVEL",L),children:[u.jsx(Ui,{className:"w-40 shrink-0",children:u.jsx(So,{})}),u.jsxs(Hi,{children:[u.jsx(zt,{value:"error",children:"error"}),u.jsx(zt,{value:"warn",children:"warn"}),u.jsx(zt,{value:"info",children:"info"}),u.jsx(zt,{value:"debug",children:"debug"})]})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("input",{type:"checkbox",id:"showStackTrace",checked:a.CSS_SHOW_STACK_TRACE==="true",onChange:L=>I("CSS_SHOW_STACK_TRACE",L.target.checked?"true":"false"),className:"rounded border-input"}),u.jsx("label",{htmlFor:"showStackTrace",className:"text-sm text-foreground",children:"显示错误堆栈"})]})]})]}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(xu,{onClick:()=>{oe()},disabled:v||!!re,children:v?"保存中...":"保存配置"}),u.jsx(xu,{variant:"secondary",onClick:()=>{te()},disabled:v||!!re,children:"保存并重启"})]}),(C||re)&&u.jsx("div",{className:$e("mt-4 text-sm",re||C&&C.includes("失败")?"text-destructive":"text-green-500"),children:C||re})]})}function W2(){const{isInitializing:a,initError:i}=$t();return a?u.jsx(Yv,{}):i?u.jsx(JS,{message:i}):u.jsxs(Mb,{children:[u.jsx(Rt,{path:"/.account/",element:u.jsx(i1,{})}),u.jsx(Rt,{path:"/.account/about/",element:u.jsx(c1,{})}),u.jsx(Rt,{path:"/.account/account/",element:u.jsx(Op,{allowOidcPending:!0,children:u.jsx(r1,{})})}),u.jsx(Rt,{path:"/.account/settings/",element:u.jsx(Op,{allowOidcPending:!0,children:u.jsx(J2,{})})}),u.jsx(Rt,{path:"/chat/",element:u.jsx(x1,{})}),u.jsx(Rt,{path:"/.account/login/",element:u.jsx(d1,{})}),u.jsx(Rt,{path:"/.account/login/password/",element:u.jsx(Mu,{initialIsRegister:!1})}),u.jsx(Rt,{path:"/.account/login/password/register/",element:u.jsx(Mu,{initialIsRegister:!0})}),u.jsx(Rt,{path:"/.account/login/password/forgot/",element:u.jsx(u1,{})}),u.jsx(Rt,{path:"/.account/login/password/reset/",element:u.jsx(f1,{})}),u.jsx(Rt,{path:"/.account/oidc/consent/",element:u.jsx(s1,{})}),u.jsx(Rt,{path:"*",element:u.jsx(Dn,{to:"/.account/",replace:!0})})]})}function $2(){return u.jsx(iS,{children:u.jsx(gS,{children:u.jsx(W2,{})})})}try{const a=new URLSearchParams(location.search).get("provisionCode");a&&sessionStorage.setItem("provisionCode",a)}catch{}Hx.createRoot(document.getElementById("root")).render(u.jsx(Pt.StrictMode,{children:u.jsx($2,{})}));